In JsonPath assertion, how to refer the value in Json request in the expected result?
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2017
08:48 AM
08-23-2017
08:48 AM
In JsonPath assertion, how to refer the value in Json request in the expected result?
Request:
{"test_request":{
"name":"test-name"
}}
Response:
{"test_response":{
"name":"test-name",
"status":"created"
}}
I want to assert the name value in response matches to the request.
In Json path expression, $.test_response.name should match to ${Requeststepname#RawRequest#..test_request.name}
I am not using the right syntax here.
Please help me withe right syntax in the expected results
Solved! Go to Solution.
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2017
09:16 AM
08-23-2017
09:16 AM
Found the solution:
${Requeststepname#RawRequest#$.test_request.name}
