Forum Discussion

itaykaldi's avatar
itaykaldi
Contributor
11 years ago

DataSource Grid iteration via Groovy

hey,
how can i iterate Datasorce Grid via Groovy script?

lets say i have 2 columns Id and Time,
i want to iterate via Groovy script in Id column.

10x.

5 Replies

  • Hello,

    In the "datasource" dropdown, there is an option for groovy that will let you do this, If you need to combine grid and groovy, I suggest you have an extra datasource step. Let me know if you have further questions.
  • it was more useful if i could do the loop in Groovy because i need to parse manual the response JSON (via JsonSlurper, SoapUI can't convert to XML).
    So every row i want to assert from the grid i need to parse the same JSON response again.