[ http://webtest-community.canoo.com/jira/browse/WT-253?page=all ]
     
Marc Guillemot closed WT-253:
-----------------------------

    Fix Version: future versions
     Resolution: Fixed
      Assign To: Marc Guillemot

Fixed in build 1527.

In fact it is strange that Jaxen doesn't detect the namespaces by itself. In 
the mean time, WebTest does it itself.

> 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
>     Assignee: Marc Guillemot
>      Fix For: future versions

>
> 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

Reply via email to