https://issues.apache.org/bugzilla/show_bug.cgi?id=55013
Bug ID: 55013
Summary: Suggestion, XPath, it should be possible to define
namespaces (like in SoapUI)
Product: JMeter
Version: unspecified
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Main
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
Created attachment 30316
--> https://issues.apache.org/bugzilla/attachment.cgi?id=30316&action=edit
example of a SoapUI response in need of assertion
I'm trying to validate a SOAP Reply using XPATH:s. The problem is that it's got
an embedded document in the reply, with its own namespace.
The problem is that I can't xpath on that embedded reply. I believa that this
is a known limitation on the xpath processor used in XPATH extractor/asserter.
I've also seen the workaround, using localName() of the node. For my specific
needs, this is not that usable, since I need to qualify my assertion on an
attribute value.
In SoapUI:s xpath-asserter/extracter, you can define a list of
prefix/namespaces for the xpath. That would really solve all my needs! Would
that be a feasible enhancement for the JMeter xpath-asserter/extractor?
I've attached an xml result below.
The xpath-assertion I would need is:
//ns2:term[@ns2:id="W13105"]
and that would be easy enough if I just could define a prefix namespace pair,
like in SoapUI:
"ns2" "http://www.uc.se/schemas/ucOrderReply/"
--
You are receiving this mail because:
You are the assignee for the bug.