Sriraj
8 years agoContributor
Dynamic Assertion : Resolving Property in Assertion for JSON Path
Hi ,
I have a JSON path evaluation in one of the assertions where the path is created dynamically based on a value from the response field , Example below .
[?(@.Some_Id_c=='${#EmployeeId}')].Order_Status_Id__c
The above path has been configured in the JSON path expression match Assertion where the expected value at the node is = Received.
The value for the property EmployeeId is captured in one of the steps before running the above assertion .
What i see that when the assertion is resolved , the value for Employee ID is not considered and thus the assertion fails.
Can someone help me with this ?