In the section First Test Script, we created a simple script. This section will cover how to execute that script.
Start the GUI by double-clicking on jameleon.bat in the jameleon-test-suite directory. You should be presented with a screen with one file listed to the left. This is the file we created in First Test Script. Simply click on this file and wait for the test case docs to be generated in the window to the right. You should see something like the picture below:
Notice how in the image above the Summary, Author, Application Tested and ... fields aren't populated. This will be covered in Documenting Test Scripts.
Now, click the Run button. It's the button with the icon of the blue person running. You should be presented with the results tab, showing that the test passed.
You can then click on the green checkmark and the html results should appear. Try it out!
Now let's make the script fail by creating a new file like the first test script and change the expected value to value 2.
The script should now look like:
<testcase xmlns="jelly:jameleon"> <junit-session> <ju-assert-equals functionId="Compare two different values" expected="value 2" actual="value 1"/> </junit-session> </testcase>
Save the above as failingAssertEquals.xml in the scripts folder. To see the new script, double-click on the Test Cases folder on the top left twice. Then click on the failing script and you should see something like:
Now, click the Run button like you did above You should be presented with the results tab, showing that the test failed.
You can then click on the red X and the html results should appear. Try it out!
In the section marked with blue, there are several columns. Each of these columns are explained below
It is also possible to run multiple scripts. This can be done by holding down on the shift or ctrl key while selecting another script with your mouse.
After selecting both the passing and failing script, click the run button. The results should appear like the image below. The order of execution depends on the order the scripts were selected. Therefore, you may see the first script pass and the second script fail. Just look at the test case name to be sure which script passed or failed.
If writing custom tags is required to test your application, you will need to use the provided Ant task to build and register your tags. The scripts can still be executed via the GUI, but sometimes you may want to run your scripts via the command line. An example build.xml file is provided in the Installation section of the site and all Ant tasks are documented in the Ant Tasks section of the site. Please see those areas for full documentation. We run both Ant and the GUI. We keep the GUI running while we create and compile new tags or rebuild existing tags via Ant.