Tuesday, 18 December 2012

Modifying Steps Affected by Parameterization | QTP Tutorial PDF

➤ Modifying Steps Affected by Parameterization

After parameterizing one step in a test, other test objects might be affected when the value of the parameterized step changes. If so, you must modify the expected values of those objects to match the value resulting from the parameterized step. In this section, you will modify the text checkpoint so that when running the test, QuickTest checks for the text that matches the current departure city.
1 Locate the text checkpoint to modify.
In the Keyword View, expand (+) Welcome: Mercury Tours.
Right-click Flight Confirmation: Mercury and select Checkpoint Properties.
The Text Checkpoint Properties dialog box opens.
2 Parameterize the text checkpoint.
In the Checked Text area, New York is displayed in the Constant box. New York is the expected value for the checkpoint for every iteration.
Select Parameter and click the Parameter Options button. The Parameter Options dialog box opens.
 In the Name box, select departure. This instructs the checkpoint to use the departure parameter values in the Data Table for the expected results.
Click OK to close the Parameter Options dialog box, and then click OK again to close the Text Checkpoint Properties dialog box. The checkpoint is now
parameterized.
3 Save the test.
Select File > Save or click the Save button.

No comments: