How to set data source current row using groovy
Hi,
as attached I am having couple of data source in my current test case. I am using excel sheet to read data. Based on Flag set in first excel sheet, i am deciding wether that row needs be executed or not using groovy script.
For First iteration it takes data from each sheet currently for second row it picks data from correct sheet but for all other data source it picks data from again first row. Can someone tell me how to set data source current row programmatically?
Groovy Script I am using:
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context)
def row = testRunner.testCase.testSteps["TestData_CreateApplication"].currentRow
testRunner.testCase.setPropertyValue("RunningRow",row.toString() )
def ds = testRunner.testCase.testSteps["TestData_Abc"]
def rr = ds.getPropertyValue('RunRow')
log.info(rr)
if ( rr == 'Y' ) {
testRunner.gotoStepByName("GetCountyDetails_SubjectProperty")
} else {
testRunner.gotoStepByName("DataSource Loop")
}