• Post Reply Bookmark Topic Watch Topic
  • New Topic

Testing tool for SWING UI

 
Sham Phadtale
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to automate testing of Swing UI. What could be good tool(some plug-n-play like silenium for web) to do this?
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1103
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Marathon is a superb testing tool which I have used. It has record and playback feautures and script used is Jython.
 
Randall Twede
Ranch Hand
Posts: 4519
6
Java Python Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
im not sure what you mean by automate, but when i was at university we used JUnit to do unit testing
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1103
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Randall Twede wrote:im not sure what you mean by automate, but when i was at university we used JUnit to do unit testing


Very similar, but for GUI. For example, I have a GUI and I want a button to enable/disable based on a condition. To test this, I would run the app manually, and see if the button is enabling/disabling.
Instead, I write a script and use assert functions (similar to that in JUnit) - in this case, say assertEnabled("btnAdd") and so on. The "btnAdd" is the 'name' of the component, which is set by calling setName.
Once I write such scripts, I can run them like I run JUnit tests. Writing such scripts by hand will take time, so, tools like Marathon allow you to 'record' and generates the script in the background for you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!