Hi Admin/All,
I am new to webtest, I am trying to develop a code that will automate an
enrollment process.
<project default="ts1">
<target name="acct_owner_info_submit">
<webtest name="Module acct owner info submit">
<!-If I take the webtest task then everything runs in same session -->
</steps>
<storeRandom description="random Title pick" property="randomTitle"
choice="Mrs.,Mr.,Ms.,Dr."/>
<echo message="property
value is: #{randomTitle}" />
<setSelectField
xpath="//sele...@name='pInfo.title']" value="#{randomTitle}"/>
</steps>
</webtest>
</target>
<target name="ts1">
<webtest name="Open Enrollment Get Start Page">
<steps>
<invoke
url="${enrollment_path}" description="Go to First Page"/>
<antcall target="acct_owner_info_submit"/>
<clickButton
label="Next"/>
</steps>
</webtest>
</target>
The problem I am facing is each <webtest> task is executed in its own
web session, and the execution fails saying there is no previous
invocation.
As mentioned above if I take the webtest task then everything runs in
same session but the webtask functions <setSelectField> is failing
saying cant find the value #{randomTitle} as it is not being
interpreted.
Please suggest some ideas.
Thanks
Sridhar