Forum Discussion

jcabelloa's avatar
jcabelloa
Occasional Contributor
6 years ago

Set data source end row with property

I would like to set the "end row" of a "data source" using a property ("cycles" for instance) instead of a fixed value. This way I could create a loop of "n" cycles depending of the value I give to t...
  • Radford's avatar
    Radford
    6 years ago

    ... and an example of setting the end row via Groovy:

     

    // Example run from Groovy Script test step
    
    def dataSourceTestStep = testRunner.getTestCase().getTestStepByName("DataSource")
    
    dataSourceTestStep.setEndRow("5")

    Note: The data source test step is the class WsdlDataSourceTestStep.