Solved
Forum Discussion
HimanshuTayal
7 years agoCommunity Hero
Hi mpw83 ,
In that case you can use groovy script and use jsonSlurper, use the below groovy code.
import groovy.json.JsonSlurper def ResponseMessage = testRunner.testCase.getTestStepByName("Name of your Test Step").getPropertyValue("response"); def jsonSlurper = new JsonSlurper().parseText(ResponseMessage) mainRecord = jsonSlurper.records for(i=0;i<mainRecord.size();i++){ recordsID = mainRecord[i].peer__Schedule__r.records; for(j=0;j<recordsID.size();j++){ log.info recordsID.Id[j] } }
Hope it will help you i n resolving your problem.
mpw83
7 years agoContributor
HimanshuTayal , Thanks for sharing your code. I will use that to solve my problem.