I have a test with reusable actions.
Those actions require parameters.
I have a new test where I execute a reusable Action.
Parameters should be taken from the dtGlobalSheet .
In the Global Table I have about 50 rows with parameters. each column has a name (name, birthday, city, etc) .
I execute the reusable Action like this: RunAction "DoStuff [OtherTest]", allIterations, DataTable("name", dtGlobalSheet), DataTable("birthday", dtGlobalSheet), ...
The problem is ... it only runs for one row and then shows the results.
I also checked the File->Settings->Run Dialog. It is set to "Run on all rows".
Does anybody know what could be the cause of QTP not iterating through all rows in the Global Table?
PS: I don't really want to use a for-loop... because if I have more than 50 rows of parameters I have to adjust the loop. (very bad for maintenance if I want to make it an external .xls-file).
Any help is appreciated.
Paramaterize the data table local to the action.
Onward thru the fog...
Do you mean I should put those rows with the parameters to the reusable Action Table of the other test?
The reusable action table that you want to access the data
Go to the Keyword view and right click on the reusable action. Select Action Call Properties and confirm the run tab is set to run on all rows.
If you had to identify, in one word, the reason
why the human race has not achieved, and never
will achieve, its full potential that word would be "meetings".