You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2013/05/23 16:24:27 UTC
[Bug 55013] New: Suggestion, XPath, it should be possible to define
namespaces (like in SoapUI)
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: issues@jmeter.apache.org
Reporter: ingemar.allqvist@input-consulting.se
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.
[Bug 55013] Suggestion, XPath, it should be possible to define
namespaces (like in SoapUI)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55013
--- Comment #2 from Ingemar Allqvist <in...@input-consulting.se> ---
Thanks for your reply,
Yes, your suggestion sort of works for me. The only issue with it is that thr
namespace declarations effectivly becomes a part of the JMeter installation,
not of the JMeter project, at hand.
Or can I reference a file relative to the project file location?
Best Regards
Ingemar
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 55013] Suggestion, XPath, it should be possible to define
namespaces (like in SoapUI)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55013
Philippe Mouawad <p....@ubik-ingenierie.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |p.mouawad@ubik-ingenierie.c
| |om
Resolution|--- |INVALID
--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
This is already possible using property:
xpath.namespace.config
in jmeter.properties.
See:
http://jmeter.apache.org/usermanual/component_reference.html#XPath_Assertion
If that does not work for you then please provide the full XML including
namespaces, current attachement is not enough.
--
You are receiving this mail because:
You are the assignee for the bug.