I am new to this Forum & new to QTP also, however i am trying as hard as i can to be perfect in QTP & in scripting.
To acheive i would be needed help from you guys.
Scenario: 3Actions are there: Login, Purchase Tickets, Logout.
I want to parameterize Purchase Ticket action only. I have tried but all three actions are getting repeated.
I tried to put Purchase Action in For loop but it is taking only first values from data table not rest of the.
If you are looking to use a for loop, then set the current row for each iteration.
Run Action 1
For i = 1 to 3
Run Action 2
Datatable.setNextRow(this will set the context to next row) and you should work with values stored in local sheet.
msgbox DataTable("test", dtLocalSheet)
Or go to the keyword view and select Action call properties for second action and set the option to run on all rows.