Forum Discussion
nmrao
8 years agoChampion Level 3
May be if you can show the json and what do you need to assert, that would be helpful.
- Sriraj8 years agoContributor
nmrao thanks for the note.
Consider the JSON snippet Below.
"Name": "ABC",
"Item_Id": "<EmployeeId>",
"Status_Id": "Received",
"Points": 5,An assertion with the below path will yield value as "Received"
[?(@.Item_Id=='${#prop_EmployeeId}')].Status_Id.
However in my case the value which goes in the property <prop_EmployeeId> is captured from a response and this is got at run time .
I want to use this property prop_EmployeeId which is filled at run time and place it in the JSON path in the assertion so that i can validate the value "Received".
Please let me now if you need more information
Related Content
- 3 months agoarmygrad
- 8 months agoalinabond
- 3 years agoaeswaramoorthy