How do you run alternate iterations from the data table

Showing Answers 1 - 6 of 6 Answers

chanakya

  • Mar 24th, 2007
 

Set your test settings to run for single iteration.. and use loops to run for all the rows and use code like below...set your first row to watever you want...

Dim LastRow, currow
currow = 1 ( or watver)
Do Until currow = lastrow

**all the action is done here

currow = DataTable.GetCurrentRow
currow = currow + 2
DataTable.SetCurrentRow(currow)

Loop

  Was this answer useful?  Yes

Hi

first fill some data in data table.

next write the below code

m=datatable.GetRowCount
For i=1 to m  step 2
    datatable.SetCurrentRow i
dialog("Login").WinEdit("Agent Name:").Set datatable("A",Global)
wait(2)
Next

bye

  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