in https://svn.canoo.com/versions/webtest/LAST_BUILD/selftests/tests/store.xml
you can see the functional tests that we run against every build of webtest.
You can verify that this test is working under
http://webtest.canoo.com/webtest/reports/selftest/181_StoreShowUsageOfStoreXPathAndTestIt/WebTestReport.html
How does your test differ from what we do in <target name="testStoreRegEx"> ?
It is probably the use of $ (i.e. 'ant' property) instead of # (i.e. 'dynamic'
property).
cheers
Dierk
Am 26.03.2010 um 15:19 schrieb sriharini sriharini:
> it returns ${accID}, but not the actual value which is 1234567
>
> --srini
>
> On Thu, Mar 25, 2010 at 6:00 PM, Jonathan Rosenberg <[email protected]>
> wrote:
> What happens if you echo ${accID}?
>
>
> --
> Jonathan Rosenberg
> Founder & Executive Director, Tabby's Place
> http://www.tabbysplace.org/
>
>
>
>
> From: [email protected] [mailto:[email protected]] On
> Behalf Of sriharini sriharini
> Sent: Thursday, March 25, 2010 5:57 PM
> To: [email protected]
> Subject: [Webtest] storeXPath results
>
>
> Hi All,
>
> I am unable to use the xpath element stored in property. Below are the step.
> Any help is appreciated.
>
>
> the xpath is correct. I see the value as 1234567, but when i echo the
> property it returns #{accID}
>
>
> Thanks,
>
> Srini
>
>
> <storeXPath
> xpath="(//span[...@class='normalText'])[2]/text()" property="accID"/>
>
> <echo message="#{accID}"/>
>
> <followFrame name="topBar"/>
>
> <setInputField
> name="searchDataBean.searchString" value="#{accID}"/>
>
>