Hi,I am new to QTP.Can anyone tell me how to solve thisAfter Running the action with 4(for examle) parameters by setting the Run on all rows option in the Action call properties in the action sheet,if i reduce the No of actions to less than 4 say 2 and run the action again,it is still running the script 4 times(keeping the run on all rows option as it is).Actually it should run for 2 times but running for 4 timesRegardsMurali

Showing Answers 1 - 2 of 2 Answers

vallurisyam

  • Aug 15th, 2006
 

Hi,

Correct me if i am wrong. You tried to do no of iterations as 4(four rows in global data sheet with data).Then you might have deleted the data directly.

what you should do is delete the rows from the data sheet(otherwise it is like having blank data).just select the rows you want do delte the row as you do in an excel spread sheet(the whole row and not the data in the row).

Then you can do the no, of iterations work correctly.

i.e if you enter 100 rows of data and just delete the data in any of the rows QTP thinks as no data it does not think as row is not present. If you refer the datatable options it will guide you more

  Was this answer useful?  Yes

Bob

  • Dec 18th, 2006
 

small sugession. if u want to run the Action more than one time then u can use loop.

ex:For j=1 to 2
For i =1 to 4
msgbox datatable("A",dtglobalsheet)
DataTable.SetNextRow
Next
Next

in the above example i want to run action 2 times so i used for loop.

first u put the run option as "Run as one iteration only

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions