|
tl_step ( step_name, status, description );
step_name the name of the test step.
status sets whether the step passed or failed. Set to 0 for pass, or any other integer for failure.
description a short explanation of the step.
The tl_step function divides test scripts into sections and determines whether each section passes or fails. When the test run is completed, you view the test results in the Test Results window. The report displays a result (pass/fail) for each step you defined.
When WinRunner is connected to a Quality Center project, the message is inserted in the Quality Center "step" table as well.
When using Quality Center to plan and design tests, use tl_step to create test steps in your automated test scripts. For more information, refer to the "Creating Automated Tests" chapter in your Quality Center User's Guide.
# Get the fries quantity.
static_get_text("Fries Quantity",text);
if (text>0)
tl_step("Verify Text", 0, "The Fries quantity field is OK.");
else
tl_step("Verify Text", 1, "The Fries quantity field is not reset to zero."); |
|