2 messages in com.canoo.lists.webtestRe: [Webtest] Namespace support
FromSent OnAttachments
Ritesh Trivedi11 Sep 2006 10:35 
Paul King12 Sep 2006 02:59 
Subject:Re: [Webtest] Namespace support
From:Paul King (pau@asert.com.au)
Date:09/12/2006 02:59:39 AM
List:com.canoo.lists.webtest

There has been an earlier thread on this. Until improved support is implemented, there is a hack to enable namespaces as follows:

<groovy> step.context.xPathHelper.namespaceContext.addNamespace("ns", "http://www.someurl.com/somedir") </groovy> <verifyXPath xpath="//ns:someelement"/>

Cheers, Paul.

Ritesh Trivedi wrote:

Hi,

It doesnt look like we have namespace support for Xpath related tags for XML responses.

e.g. if I have a XML response like <a:person> <b:name str="whatever"/> </a:person>

I am not able to use VerifyXPath to verify the response.

Thanks Ritesh