There are some details missing from your question, but I suppose you have two REST TestSteps , assuming the first is called REST Test Request , and the second REST Test Request2 you can set the answer and get the request values ββfor your test steps using the groovy script inside a groovy TestStep :
import groovy.json.JsonSlurper import groovy.json.JsonOutput // request def request = '''{"scopeId":"", "scopeType":"", "userId":"", "fieldToBeEncryptedList":[{"srNo":"","fieldName":"","value":"","echoField":""}] }''' // parse the request def jsonReq = new JsonSlurper().parseText(request); // get the response where you've the values you want to get // using the name of your test step def response = context.expand('${REST Test Request
These scripts get your json and populate it with values ββfrom the first testStep response, and then set that json as a request for the second testStep .
Hope this helps,
source share