For example, if there are 3 rows in a Globalsheet, the script may execute for 3x3 = 9 iterations.
The solution:
This is a simple issue that most of the beginners face. By default QTP has a setting that lets the script to execute for every row on the global data sheet. To overcome the issue, following the below steps:
1) Click on File > Settings
2) Click on run tab
3) Select "Run one iteration only" option under, data table iterations
4) Click on "Apply"
5) Click on "Ok"
The solution:
This is a simple issue that most of the beginners face. By default QTP has a setting that lets the script to execute for every row on the global data sheet. To overcome the issue, following the below steps:
1) Click on File > Settings
2) Click on run tab
3) Select "Run one iteration only" option under, data table iterations
4) Click on "Apply"
5) Click on "Ok"
QTP test settings : Run Tab (click on the image to enlarge) |
how do i do that scripting it inside the test in vbscript? is there something like this but running it from qtp?
ReplyDelete' set run settings for the test
Set qtTest = qtApp.Test
qtTest.Settings.Run.IterationMode = "OneIteration" ' Run only 1 iteration
qtTest.Settings.Run.OnError = "NextStep" ' Instruct QuickTest to perform next step when error occurs
All settings within QTP can be controlled through VBScripts.... anything .....
Delete