Archive for the ‘Squish’ Category

Testing Java applets with Squish/Java

Monday, February 19th, 2007

Since we released our new Squish/Java edition, we got asked a few times if it is possible to test java apples with Squish/Java.

While we don’t support testing applets running in a web browser yet, it is possible to test them through the appletviewer. On Windows, just create a batch file which looks like


c:\java\bin\appletviewer -J%SQUISH_JAVA_DEF_1% -J%SQUISH_JAVA_DEF_2% c:\java\demo\jfc\SwingApplet\SwingApplet.html

Similarly, on Linux create a shell script


#!/bin/sh
/usr/local/jdk/bin/appletviewer -J$SQUISH_JAVA_DEF_1 -J$SQUISH_JAVA_DEF_2 /usr/local/jdk/demo/jfc/SwingApplet/SwingApplet.html

Now set the batch file or script as AUT and start recording!

BTW: SQUISH_JAVA_DEF_1 and SQUISH_JAVA_DEF_2 are set by Squish when starting up the AUT and expand to some options to be passed to the Java runtime.

For future versions of Squish/Java we will add support for testing java applets in the web browser. That combined with Squish/Web will be then really powerful allowing to test the HTML page and java applet in an integrated test.

Well, we will post more about upcoming, exciting Squish 3.2 and Squish 4.0 features in the coming days and weeks. So stay tuned…

Processing squishrunners XML Output

Monday, February 19th, 2007

One feature of our squishrunner program (which starts and controls the test execution) is that the output of the test can be given in different formats. This can be accomplished by using the ‘–reportgen’ argument and specifying an output format and an output file (i.e. ‘–reportgen xml,/tmp/results.xml’). In particular, the current version lets you generate an Excel table or a XML file with the test results instead of plain text output. The former is a simple way to make your PHB happy, the latter can be used as a hook into a whole new range of test result visualizations. (more…)