Monday, March 12, 2007

Understanding tl_step

Understanding tl_step
In most cases when you run a test, WinRunner reports an overall test result of
pass or fail. By adding tl_step statements to your test script, you can determine
whether a particular operation within the test passed or failed, and send a
message to the report.
For example:
tl_step ("total", 1, "Total is incorrect.");
total is the name you assign to this operation.
1 causes WinRunner to report that the operation failed. If you use 0, WinRunner
reports that the operation passed.
Total is incorrect is the message sent to the report. You can write any message
that will make the test results meaningful.