Geertjan's Blog

  • July 20, 2007

Testing Tools for Rich Client Applications

Geertjan Wielenga
Product Manager
There are surprisingly many ways of testing applications built on the NetBeans Platform. Or any other kind of Java application in NetBeans IDE. In this regard, the URL that you should paint on your bedroom ceiling is this one:


That page sums everything up. Let's set up the IDE with the modules that will provide all the functionality we need. These modules will soon be in the update center, but for now can be downloaded here. When you go there, you will see this:

Be greedy and click 'all files in zip'. Download the ZIP and unzip it. You now have a bunch of NBM files. Use the Plugin Manager to install the whole lot, so that in the Plugin Manager you see this:

After installation, go to the New Project wizard and you will see a new Test Tools category, containing two sample projects:

If you complete the wizard for the Paint Application, you will find that you end up with the same familiar Paint application, together with two test classes:

Run the tests by right-clicking the Paint module and choosing from the XTest menu. Make sure to build the Paint Application suite first.

Meanwhile, the New File wizard now contains the following two templates, so that you can add some test classes to your own existing applications:

Experiment with the above and see the results. Then apply what you like to your own applications. I will be discussing my own discoveries in the coming blog entries on this topic. So, this is basically Part 1, where you now have everything set up and ready for some experimentation.

Join the discussion

Comments ( 10 )
  • Tom Wheeler Friday, July 20, 2007
    Once again, you managed to read my mind and blog about exactly what I am working on!
  • Fabrizio Giudici Friday, July 20, 2007
    He read mine too... :-) I was just going to ask about testing tools to the mailing list...
  • Abubakar Gurnah Sunday, July 22, 2007
    He can't control mine MUHAHAHAHA...
    I like the tips
  • Abubakar Gurnah Sunday, July 22, 2007
    Im back again!
    On Netbean M10, i was trying to add the plugins for
    Plugin NB JUnit cannot match its dependencies:
    module org.netbeans.insane/1
    Plugin NB JUnit IDE Integration cannot match its dependencies:
    module org.netbeans.modules.nbjunit/1
    Any idea on this...
  • Geertjan Monday, July 23, 2007
    Hi Abubakar, I had the same problem in M10. Trying to find out why. In builds after M20 (i.e., daily builds) I diodn't encounter this problem.
  • Geertjan Monday, July 23, 2007
    Sorry, not M20. M10... So, in builds after M10, I didn't have this problem...
  • Vadiraj Monday, July 23, 2007
    Hi Geertjan, I am not able to use the 'Run in the same JVM' for capturing the UI fields using Jemmy Browser for my module. When I make my module as 'Main project', the toolbar buttom for Jemmy component browser stays disabled. For any other projects, say Java GUI projects, its enabled. Can you please help? Thnx.
  • guest Tuesday, July 24, 2007
  • Geertjan Tuesday, July 24, 2007
    Hi Vadiraj, sorry I don't know the answer, better to ask this on the mailing list.
  • Jiri Skrivanek Tuesday, July 31, 2007
    Hi Vadiraj, feel free to submit issues related to Jemmy Browser into issuezila for jemmysupport component. Anyway 'Run Internally' action should work for any java main class.
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.