Forum Discussion

PrakashKannan's avatar
PrakashKannan
Contributor
8 years ago
Solved

Update datasource loop 'DataSource Step' using groovy script

I tried to update the 'DataSource Step' in the datasource loop using groovy script. I tried with the following script but it does not work. Code complied without any errors. Do we have any option to do this or is it a bug ?

 

testRunner.testCase.getTestStepByName("DataSource Loop").setPropertyValue("DataSource Step", "DataSource2")

  • Below code is the working code 

     

    testRunner.testCase.getTestStepByName("DataSource Loop").setDataSourceStep("QA")

1 Reply

  • Below code is the working code 

     

    testRunner.testCase.getTestStepByName("DataSource Loop").setDataSourceStep("QA")