Hi Srini,
you use
<echo message="${accID}"/>
whereas you should use
<echo message="#{accID}"/>
Cheers,
Marc.
--
Blog: http://mguillem.wordpress.com
sriharini sriharini wrote:
Hi Dierk,
Below is my webtest.
Thanks,
Srini
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE project SYSTEM "../../dtd/Project.dtd">
<project default="csr">
<target name="csr">
<dataDriven
tableContainer="${test.data}/csrJumpSearch/csr_jump_search_data.xls">
<webtest name="CSR Jump Search">
&config;
<steps>
<antcall target="jumpsearch_account" />
</steps>
</webtest>
</dataDriven>
</target>
<target name="jumpsearch_account">
<steps description="CSR Jump Search">
&csrLogin1;
<followFrame name="topBar"/>
<setInputField name="searchDataBean.searchString" value="${account}"/>
<setSelectField name="searchDataBean.searchField" text="Account #"/>
<clickElement xpath="//i...@name='sa']"/>
<followFrame name="LookupLeft"/>
<storeXPath xpath="(//span[...@class='normalText'])[2]/text()"
property="accID"/>
<echo message="${accID}"/>
<followFrame name="topBar"/>
<setInputField name="searchDataBean.searchString" value="#{accID}"/>
<setSelectField name="searchDataBean.searchField" text="Account #"/>
<clickElement xpath="//i...@name='sa']"/>
</steps>
</target>
</project>
2010/3/26 Dierk König <[email protected]
<mailto:[email protected]>>
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] <mailto:[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]>
[mailto:[email protected]
<mailto:[email protected]>] *On Behalf Of
*sriharini sriharini
*Sent:* Thursday, March 25, 2010 5:57 PM
*To:* [email protected] <mailto:[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}"/>
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest