6 messages in com.canoo.lists.webtestRe: [Webtest] Re: Custom Step StoreEn...
FromSent OnAttachments
Paul King07 Aug 2004 02:57 
Roman Moukhine [ram]07 Aug 2004 08:34 
Marc Guillemot09 Aug 2004 05:41 
Roman Moukhine [ram]09 Aug 2004 14:06 
Paul King09 Aug 2004 14:36 
Paul King09 Aug 2004 16:01 
Subject:Re: [Webtest] Re: Custom Step StoreEncodedXPath added to the community site
From:Paul King (pau@asert.com.au)
Date:08/09/2004 02:36:13 PM
List:com.canoo.lists.webtest

Marc Guillemot wrote:

as far as I understand, the extracted link will then be used in an <invoke ...>. What with an additional "encodeUrl" attribute for <invoke ../>?

<storexpath stepid="Extract badly formatted link" xpath="//a[@id='x']/@href'" property="theUrl1"/> <invoke url="#{theUrl1}" encodeUrl="true"/>

All the use cases we have at the moment involve <invoke> or <invokeRelative> (custom step yet to be posted). However, it is also potentially useful for other tasks like <sethiddenfield> or scripting (<scriptStep> is also yet to be posted).

Roman Moukhine [ram] wrote:

Hello everybody

I have a suggestion.

Either we should include this step instead of StoreXPath and provide respectivly <storeregex> (like original but with "enc" attribute) or we should extract encoding in separate step. That could improve granularity and reusablity:

<storexpath stepid="Check for link" xpath="//a[@id='x']/@href'" property="theUrl1"/> <urlencode text="#{theUrl1}" toproperty="urlencoded" /> <!-- store encoded into new property--> <urlencode text="#{theUrl1}" toproperty="theUrl1" /> <!-- replace with urlencoded value-->