Forum Discussion

itsika's avatar
itsika
Occasional Contributor
7 years ago

Groovy reading from Data Source - Grid

hi

i'm trying to read from my Data Source of type grid

i'm always getting the last element.

 

context.testCase.getTestStepByName("xPathsToRemoveB4Compare").setStartRow("0")
def ds = testRunner.testCase.testSteps['xPathsToRemoveB4Compare']
def rowCount = context.testCase.getTestStepByName("xPathsToRemoveB4Compare").rowCount
ds.repositionAtStartRow( testRunner, context)

def element = ds.getPropertyValue("eName")

 

 

it seems that the command ds.repositionAtStartRow( testRunner, context) is doing nothing.