cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Groovy Script required for calling values dynamically

VijenderGouda
Active Participant
0 Likes
237

HI Experts,

I have a scenario in which I need to collect the response from Request Reply from HTTP adapter which I used for the POST operation and from that response I need to use the "Request Number" for the flow of GET operation of HTTP.

It should be a dynamic flow.

Sample Response:

{

"result": {

"sys_id": "ec9ad802",

"number": "REQ0075",

"request_number": "REQ0075",

"request_id": "ec9ad8072",

}

}

Please help me out.

Regards,

Vijender

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

Hi ,

If i understood your requirement , convert back to xml (From the component json to xml converter). then you can use the Content Modifier with xpath option .

Alternatively you may Use JSON path , find the link below.

https://www.toolsqa.com/rest-assured/jsonpath-and-query-json-using-jsonpath/

Regards,Vijay