01-20-2012, 07:55 PM
What I could get from your screenshot is you are trying to read the values from the table and if the value is equal to some "text string" then you will run the test case. Hope I got this right.
For this you need to set the current row before you retrieve the value from data table not after retreiving or else use setNextRow at the end of the for loop as below:
Hope this clarifies
Thanks
For this you need to set the current row before you retrieve the value from data table not after retreiving or else use setNextRow at the end of the for loop as below:
Code:
row_count=DataTable.GetRowCount
For i=1 to row_count
DataTable.SetCurrentRow(i) '*Sets the pointer to the ith row of the excel sheet*'
temp=DataTable.Value("No","Global") '*Its advisable to use the sheetId or sheetName for better reading*'
If temp="text string" then
***your steps***
End If
DataTable.SetNextRow '*Do not use this if you are using setCurrentRow method*'
Next
Hope this clarifies
Thanks