Forum Discussion
Since routes is an array, you need to:
- index the first route
- get the code of the route
In JSONPath:
$.routes[0].code
This JSONPath should be safe. Besides SoapUI you can check e.g. on https://jsonpath.com/ .
I assume the implementation of the JSONPath library used in SoapUI evolved during the time and that's why you see different results in SoapUI 5.5.0 and 5.7.0.
Best regards,
Karel
- DanielMoutelik3 years agoNew Contributor
Sorry , I have more then 500 property transfer in my test . I have no time to rewrite each JSON only to work in new version 5.7
- KarelHusa3 years agoChampion Level 1
I understand your point that updating large scripts to do the same as before is nothing to be happy about.
But anyway, I think this issue is more related to JSONPath than SoapUI 5.7.0 as other JSONPath implementations produce the same result as 5.7.0.
During the past years multiple JSONPath implementations emerged and evolved (Goessner, Nebhale, Jayway to name few), the website https://jsonpath.herokuapp.com/ provides a nice comparisson.
My conclusion is to use the safest possible JSONPath (works in multiple implementations). Then there's high probability it will work in different times and places.
Similarly, also other REST API technologies lack standardisation and the tools still aren't as mature as their counterparts in WSDL/SOAP/XML stack.
Regarding the bulk updates of SoapUI projects -- editing project xml (either by scripts or by smart text editor) is the most efficient method for me, even hundreds of changes can be done quite quickly.
Best regards,
Karel
Related Content
- 10 months ago
- 2 years ago
- 6 years ago
- 9 years ago
Recent Discussions
- 15 years ago