How to read two rows returned by query | SOAPUI Forum
M
Mustapha Rhouate Posted on 08/02/2019

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

Thanks 


M
Mustapha Rhouate Replied 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
}