Forum Discussion
nmrao
Champion Level 3
Can't you use data source of groovy type?
sumeetb
8 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)
- nmrao8 years agoChampion Level 3Can you show test case structure?