[ERROR] [11/13/2012 17:20:40.211] [GatlingSystem-akka.actor.default-dispatcher-1] [akka://GatlingSystem/user/$g/$a] null
java.lang.UnsupportedOperationException
at com.excilys.ebi.gatling.core.check.extractor.jsonpath.JacksonNavigator.getElementName(JacksonNavigator.scala:67)
at com.excilys.ebi.gatling.core.check.extractor.jsonpath.JacksonNavigator.getElementName(JacksonNavigator.scala:26)
at org.jaxen.expr.DefaultNameStep.matches(DefaultNameStep.java:327)
Select all the id element with only 1 ancestor, but I encounter the following error :
Caused by: org.jaxen.UnsupportedAxisException: parent
at org.jaxen.DefaultNavigator.getParentAxisIterator(DefaultNavigator.java:115)
at org.jaxen.DefaultNavigator.getParentNode(DefaultNavigator.java:261)
As it is stated in the documentation :
Similar to XPath 1.0, but to be applied on a JSON response body. It is intended for capturing leaves of the JSON tree, so only a subset of XPath is supported.
Gatling developers, could you please specify what is the subset of XPath that is actually supported ?
I properly implemented the wildcard support, so you should be fine with the snapshot that should appear in about 20 minutes on cloudbees: https://github.com/excilys/gatling/issues/820
I think we will have to think deeper on how we map the json model to the xml one before releasing 1.4.0.
It possible that by then, maybe only one of “/id” and “/*/id” will work for your use case.
So, stay tuned.