Forum Discussion

RobinOng's avatar
RobinOng
Occasional Contributor
9 years ago
Solved

Looping a Datasource in Groovy script (Always starts at last row)

Hi,   I have been trying to build a datasource loop in Groovy Script. For testing purposes I can't use the DataSourceLoop step. Below is the case.   I have a Datasource (JDBC) with 4 rows in it ...
  • RobinOng's avatar
    9 years ago

    Hi all,

     

    I posted too soon. I figured it out. You can call repositionAtStartRow to reset the source to the first row.

     

    TSDS1.repositionAtStartRow( testRunner, context)