Friday July 20, 2007
Testing Tools for Rich Client Applications
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:
http://testtools.netbeans.org/
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.
Jul 20 2007, 09:19:01 AM PDT Permalink


