How to read two rows returned by query | SOAPUI Forum

How to read two rows returned by query

M
Mustapha Rhouate Post on 08/02/2019

Hi
How I can read 2 rows returned from query using groovy

Thanks 

M
Mustapha Rhouate Reply on 09/02/2019

println "\n------------------------------Print Multiple Rows (using rows)----------------------------------------\n"
println "ID    NAME         EMAIL"
def fetch = sql.rows("select * from users")
fetch.each { it ->
log.infoit.id + " " + it.name + " " +it.email
}