Resolving namespace prefixes in XPath
-------------------------------------
Key: WT-253
URL: http://webtest-community.canoo.com/jira/browse/WT-253
Project: WebTest
Type: New Feature
Environment: Windows XP
Reporter: Vito Caleandro
The task <verifyXPath> in build R_1393 in a form like, for example:
<verifyXPath xpath="//SOAP-ENV:Body" description="verify tag existence"/>
cause a fault with the exception ...
com.canoo.webtest.engine.StepExecutionException: Unexpected exception
caught: org.jaxen.UnresolvableException: Cannot resolve namespace prefix
'SOAP-ENV', Step: VerifyXPath at
D:\TestsRoot\AAGC\BatchTests\AAGC_WS_0001_VIC.xml:13: with
(description="verify tag existence", taskName="verifyXPath",
xpath="//SOAP-ENV:Body")
at com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:463)
at com.canoo.webtest.steps.Step.execute(Step.java:139)
...
Even if there exist a workaround, that work fine, as suggested in
<http://www.jroller.com/page/dna? entry=automated_tests_for_rss_feeds> from
Antonioli and Guillemot, it seems to be usefull that Webtest directly will
support the need of namespace prefix referencing, if only via an attribute of
tasks using the xpath. This processing sould take in count the case of default
namespace as the one of prefix absence.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest