I am running a script in which there are two variables (say User Name and Password) which I have parameterized. Now when I run the script, I want that during first run, only first set of values from the data table should be retrieved and the script should be run. When I initiate QTP for the second time and run the script, second set of values (Row 2) should be retrieved and the script should be run using those values and so on. How can this be done???
1. Write into Excel (GloabalSheet) all your desired value row by row, according defined parameters (Say: 1 column - UserName, 2 column - Passw)
2. Check "Run All Rows" in the Run options of QTP
3. Adjust starting and ending points of your script
When you run it, it will capture row from Excel file one by one for each next iteration.
Number of iterations will be equal numbers of rows you have in GlobalSheet.