JsonPath Assertion difference between ReadyAPI and SoapUI Community
Context : I develop my test using ReadyAPI/SoapUI Pro from my own computer. I launch tests in continuous integration process from Jenkins using testrunner.sh from free SoapUI.
ReadyAPI 2.4.0 (same result when testing with version 2.5.0) - SoapUI Community 5.4.0
Issue: One JsonPath assertion is OK with SoapUI Pro but not with Community version
Given this Json Response
{ "a": [
{ "b":["name"] }
] }
I want to assert the value of field "b". I use JsonPath "$.a[0].b" and get expected result with "Select from current" button.
With SoapUI Pro I got this : name
With SoapUI Community I got this : ["name"]
It feel like SoapUI Community result is the good one, but I am stuck between local test development using Pro version and Jenkins test running using community version.
Does anyone have the same issue ? Do you have any workaround, tips to figure out a solution ?
PS: I was not able to give a full project example from my data. I didn't find community project to explain and reproduce my case. Feel free to give me project to try.
You said it is a bug, but here is an extract of the documentation from json-match Documentation page
Expression containing filters (
[?(filter)]
and array slices ([start:end]
always returns arrays, even if the resulting array contains a single item.So, it seems like a featured-bug or so one !