Ivan_Trampedach
14 years agoContributor
DataSource and DataSink don't use same row no.
Hi
I have made this example, where I can't get datasink to update correct row. It look like DataSink and DataSource do not count in same way,
In DataSource I retreive data from an xls sheet,
I validate data in groovy, if validation pass I gotoStepByName "DataSource Loop"
In dataSink I update first column with a value.
It look like this in SoapUI
DataSource
Groovy
DataSink
DataSource Loop
Example
My groovy script jump to DataSource Loop if column 1 is not empty. If ='' DataSink should update with value 44
I can see in the log that my groovy script is jumping correct.
Is it possible to allign DataSink and DataSource to use same row ??
I have made this example, where I can't get datasink to update correct row. It look like DataSink and DataSource do not count in same way,
In DataSource I retreive data from an xls sheet,
I validate data in groovy, if validation pass I gotoStepByName "DataSource Loop"
In dataSink I update first column with a value.
It look like this in SoapUI
DataSource
Groovy
DataSink
DataSource Loop
Example
My groovy script jump to DataSource Loop if column 1 is not empty. If ='' DataSink should update with value 44
[/font:222vk990]
before run: After run Expected
Column 1 Column 2 Column 1 Column 2 Column 1 Column 2
1 AA 44 AA 1 AA
BB 44 BB 44 BB
2 CC 2 CC 2 CC
DD DD 44 DD
I can see in the log that my groovy script is jumping correct.
Is it possible to allign DataSink and DataSource to use same row ??