Forum Discussion
- tclotworthy9 years agoContributor
Hi Rao, thanks for your response. I wish I had noticed it earlier. Here is sample output:
HTTP/1.1 200 OK
Content-Type: text/xml
Date: Wed, 06 Jan 2016 18:25:00 GMT
Connection: keep-alive
Transfer-Encoding: chunkedPlanID: 50027
Its the PlanID we want as input to the next test step (next step basically will be endpoint like: someEndpoint/updatePlan?PlanId=whatever
Thanks for any response and Happy New Year!
- tclotworthy9 years agoContributor
ok, I have figured out how to extract response from a test step. Here is example groovy step that works:
def response = context.expand( '${CreatePID#Response}' )
So, now I have the input I want for my next test step (response). I simply want to be able to do something where the next step corresponds to calling a restful endpoint such as:
someEndpoint/updatePlan?PlanId=response
, where "response" is the value I extracted from the previous step.
So, I would be grateful for anyone who might know how to take that "response" and pass to next step to accomplish what I indicated above in bold. Thanks!
- nmrao9 years agoChampion Level 3
Related Content
- 9 months ago
Recent Discussions
- 13 hours ago