Forum Discussion
nmrao
10 years agoCommunity Hero
Can't you use data source of groovy type?
sumeetb
10 years agoOccasional Contributor
I can but i am not able to set the property variable named as "id" with multiple rows. Please see below script.
import net.sf.*
import net.sf.json.*
import net.sf.json.groovy.*
def response = context.expand('${Get Summary#Response}' )
def jsonSlurper = new JsonSlurper().parseText(response)
for(String id:jsonSlurper.summary.test.id){
result["id"]=id
}
The result i get is property variable "id" is getting set with last value only (with this only 6780837264054677)
- nmrao10 years agoCommunity HeroCan you show test case structure?