Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Robot Framework Test Automation

You're reading from   Robot Framework Test Automation Create test suites and automated acceptance tests from scratch

Arrow left icon
Product type Paperback
Published in Oct 2013
Publisher Packt
ISBN-13 9781783283033
Length 98 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Sumit Bisht Sumit Bisht
Author Profile Icon Sumit Bisht
Sumit Bisht
Arrow right icon
View More author details
Toc

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:

CLASSPATH=swinglibrary-1.6.0.jar:myApp.jar jybot testsuites

Here, the swinglibrary is version 1.6.0 and the system under test is bundled as myApp.jar, and the Robot Framework files are present in the testsuites folder. The application is then visible...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image