12 messages in com.canoo.lists.webtestRe: [Webtest] Email steps| From | Sent On | Attachments |
|---|---|---|
| Luke...@exeloncorp.com | 06 Aug 2007 07:55 | |
| Lisa Crispin | 06 Aug 2007 08:14 | |
| Luke...@exeloncorp.com | 06 Aug 2007 08:21 | |
| Lisa Crispin | 06 Aug 2007 08:55 | |
| Marc Guillemot | 07 Aug 2007 03:53 | |
| John and Pip | 08 Aug 2007 03:14 | |
| Biggs, Katy (ELS-CAM) | 08 Aug 2007 04:30 | |
| Paul King | 08 Aug 2007 13:15 | |
| Michael Habbert | 09 Aug 2007 02:22 | |
| Biggs, Katy (ELS-CAM) | 09 Aug 2007 02:54 | |
| Paul King | 09 Aug 2007 03:43 | |
| Biggs, Katy (ELS-CAM) | 09 Aug 2007 05:59 |
| Subject: | Re: [Webtest] Email steps![]() |
|---|---|
| From: | Paul King (pau...@asert.com.au) |
| Date: | 08/08/2007 01:15:23 PM |
| List: | com.canoo.lists.webtest |
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 value=user...@googlemail.com <mailto:user...@googlemail.com> 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="user...@googlemail.com"
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.




