Biggs, Katy (ELS-CAM) wrote:
Hi
I am having problems getting the email stesp working for my scripts.
Basically it is just a forgotten password form with a surname and email
field. When the accept button is clicked, an email is sent to the
specified email address.
_Here are my steps:_
<project name="SimpleTest" basedir="." default="main">
<property name="webtest.home" location="C:/apps/webtest" />
<property name="username" value="username"/>
<property name="password" value="password"/>
<property name="mailserver" value="mail.google.com"/>
<property name="servertype" value="pop3"/>
<import file="${webtest.home}/lib/taskdef.xml"/>
<target name="main">
<webtest name="myTest">
<config
host="192.168.64.132"
port="8080"
protocol="http"
basepath="yearbooks" />
<steps>
<invoke
description="Go to Forgotten Password page"
url="forgottenPassword" />
<verifyTitle
description="verify the page title / location"
text="Medical Monitor - Forgotten password" />
<setInputField
value="Biggs"
description="Set the last Name field"
htmlId="lastName"/>
<setInputField
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
description="Set the Email field"
htmlId="emailAddress"/>
<clickButton
description="Click the SUBMIT button"
htmlId="accept"/>
<!-- Email retrieval steps -->
<emailSetConfig server="${mailserver}" password="${password}
username="${username}" delay="30"/>
<emailStoreMessageId
property="email01"
description="Give a name to the email message"/>
</steps>
</webtest>
</target>
</project>
Also, how do I know what the email Id should be?
You would normally just have one or more additional attributes on your
emailStoreMessageId step, e.g. to="[EMAIL PROTECTED]"
Is that what you were asking?
Paul.
Any help would be appreciated.
Regards,
Katy B
This email is from Elsevier Limited, a company registered in England and Wales
with company number 1982084,
whose registered office is The Boulevard, Langford Lane, Kidlington, Oxford,
OX5 1GB, United Kingdom.
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest