Monday, March 12, 2007

Customizing the Results Information

You could run the test now, but it may be difficult for you to interpret the results for each iteration. You can add iteration-specific information to the reporting statements in your script so that you can see which data is the basis for each result.
1 Modify the tl_step statements.
Locate the first tl_step statement in your script. Delete the words "total is correct." and replace them with, "Correct. "tickets" tickets at $"price" cost $"total"."
tl_step("total",0, "Correct. "tickets" tickets at $"price" cost $"total".");
Use the same logic to modify the next tl_step statement to report an incorrect result. For example:
tl_step("total", 1, "Error! "tickets" tickets at $"price" does not equal $"total". ");
Now you will be able to see which data is used in each iteration when you view the results.
2 Save the test.
Choose File > Save or click the Save button.