Forum Discussion
AlexeyK
Alumni
13 years agoStephanie,
In case of an error, you can skip the test command that moves the pointer to the next row in the data source. Here is the pseudo-code:
As you can see, to achieve what you want, you have to implement the data-driven loop commands in your tests.
This approach will not work if you have a keyword test with the Data-Driven Loop operation in it. This operation does not let you control the execution of the "Next" command.
In case of an error, you can skip the test command that moves the pointer to the next row in the data source. Here is the pseudo-code:
While Not Driver.EOF ' While the driver has data to retrieve
... ' Do some testing here ...
If Success Then ' If there was no error
Driver.Next ' Switch to next data
End If ' Else, the Next command is skipped and the test continues with the same data
WEnd
As you can see, to achieve what you want, you have to implement the data-driven loop commands in your tests.
This approach will not work if you have a keyword test with the Data-Driven Loop operation in it. This operation does not let you control the execution of the "Next" command.