Testing desktop applications

Acceptance testing can also be implemented in desktop-based applications, making the Robot Framework tests far more applicable rather than just catering to the needs of some specific problem or a framework alone.

Testing through objects – Java Swing

Swing library is a fully featured library that can be used to test Java Swing-based applications. As this works on Java platform, this needs Jython runtime. To run an acceptance test over a swing application, two things are required in the classpath:

  • Swing library JAR
  • The actual swing application bundled as a JAR

On having the necessary files, the test can be used. The classpath can be set prior to the Jython command, or prefixed with the command itself like the following example: ...

Get Robot Framework Test Automation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.