Forum Discussion
SmartBear_Suppo
Alumni
16 years agoHello,
The DataSource TestStep has a method called getCurrentRow(), which returns the current row number. So in a Groovy TestStep for instance, you might access this with:
There is no way to get the total number of rows until the loop has finished. Once done, you can get it through getCurrentRow.
Regards,
Dain
eviware support
The DataSource TestStep has a method called getCurrentRow(), which returns the current row number. So in a Groovy TestStep for instance, you might access this with:
testRunner.testCase.testSteps['DataSource'].currentRow
There is no way to get the total number of rows until the loop has finished. Once done, you can get it through getCurrentRow.
Regards,
Dain
eviware support