[Webtest] Namespace prefixes in XPath

Denis N. Antonioli Denis N. Antonioli" <denis.antonioli@canoo.com
Wed, 20 Dec 2006 12:45:17 +0100


Hi

On 20 d=E9c. 06, at 12:12, Caleandro wrote:

> Testing webservices responses with Webtest (R_1393) I need to =20
> verify an
> element, with:
>
> <verifyXPath xpath=3D"//SOAP-ENV:Body" description=3D"verify tag =20
> existence"/>
>
> but got an exception like:
>
> com.canoo.webtest.engine.StepExecutionException: Unexpected exception
> caught: org.jaxen.UnresolvableException: Cannot resolve namespace =20
> prefix
> 'SOAP-ENV', Step: VerifyXPath at
> D:\TestsRoot\AAGC\BatchTests\AAGC_WS_0001_VIC.xml:13:  with
> (description=3D"verify tag existence", taskName=3D"verifyXPath",
> xpath=3D"//SOAP-ENV:Body")
> 	at com.canoo.webtest.steps.Step.handleUnexpectedException=20
> (Step.java:463)
> 	at com.canoo.webtest.steps.Step.execute(Step.java:139)
>
>
> Any suggestion?

Have a look at <http://www.jroller.com/page/dna?=20
entry=3Dautomated_tests_for_rss_feeds>.
This entry summarizes previous discussions on the mailing list.

Happy testing
	dna

--=20
A message consists of header fields and, optionally, a body.
   -- Official definition of e-mail in RFC 822