Solved
Forum Discussion
HKosova
Alumni
9 years agoHi Lucy,
Property expansions in JSONPath in Property Transfer are supported in Ready! API, but not in the open-source SoapUI. As a workaround you can use XPath instead. Change the source property from Response to ResponseAsXml and use this:
//*:roles/*[*:service_name='${#TestCase#ServiceName}']/*:id
In Ready! API 2.0, both your examples work if you add [0] at the end:
$.roles[?(@.service_name=='${#TestCase#ServiceName}')].id[0] $.roles[?(@.service_name==${#TestCase#ServiceName})].id[0]