Forum Discussion
- nmrao
Champion Level 2
What kind of assertion are you using?- CoreBitNew Contributor
Hi,
I have got the same issue with property expansion inside JSONPath:
I have a custom property "Property_Name" with value "Property_Value" in the TestSuite.
Inside a transfer step I want to use it like this:
$.response.data[?(@.label=='${#TestSuite#Property_Name}')]
It does not work, result is [[]].
But when I specify the value like in the following expression, then I get my desired result:
$.response.data[?(@.label=='Property_Value')]
Is property expansion inside JSONPath not possible at all or am I doing it wrong?
Regards,
Adam
- nmrao
Champion Level 2
Is it possible for you to post the raw response?