Need some information on Iteration control in QTP.
I am accessing external data table for my input data and I want iterate on all the rows.
Instead of using FOR loop I want to use Iterate on all rows options from QTP..but the challange is that, every iteration script is importing data table and oparation is getting executed only on the first row.
At the moment a test is run, or at the moment a RunAction statement is executed, QTP evaluates how many rows are in the datatable and whether to run all rows or run just one row (based on the test settings).
This evaluation is made before you execute your DataTable.Import, and importing the data doesn't change those original QTP decisions.
In short, you cannot tell QTP to run all rows on rows that haven't been imported at the time the test begins.
Reddy gave you a great solution.
The alternative is to manually import the data into your datatable before you run the test. Of course, it's much easier to just let QTP handle the import and control your iterations with a For..Next loop.