Forum Discussion

jinisha's avatar
jinisha
New Contributor
11 years ago

Property Transfer - Is it possible to use test case custom property in jsonpath expression textbox?

I get data from an API in json format. 

 

I am wondering if I can do something like this to filter the data that I get in response. Currently its not working. 

 

For ex;

$.Refinements[?(@.RefinementText=='${#TestCase#VehicleType}')] .RefinementValue

 

If I use $.Refinements[?(@.RefinementText== ‘Auto/Light Trucks’)] .RefinementValue it works however, I need to compare RefinementText with the custom property that I have defined in the test case.

 

Please advise where can I find more information on how to handle this.

 

Thanks!