[Webtest] Email steps

Biggs, Katy (ELS-CAM) Biggs, Katy (ELS-CAM)" <K.Biggs@Elsevier.com
Wed, 8 Aug 2007 12:31:18 +0100


This is a multi-part message in MIME format.

------_=_NextPart_001_01C7D9AF.A342CC18
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi
=20
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.
=20
Here are my steps:
=20
<project name=3D"SimpleTest" basedir=3D"." default=3D"main">
    <property name=3D"webtest.home" location=3D"C:/apps/webtest" />
    <property name=3D"username" value=3D"username"/>
    <property name=3D"password" value=3D"password"/>
    <property name=3D"mailserver" value=3D"mail.google.com"/>
    <property name=3D"servertype" value=3D"pop3"/>
    <import file=3D"${webtest.home}/lib/taskdef.xml"/>
=20
  <target name=3D"main">
    <webtest name=3D"myTest">
      <config
        host=3D"192.168.64.132"
        port=3D"8080"
        protocol=3D"http"
        basepath=3D"yearbooks" />
      <steps>
        <invoke
            description=3D"Go to Forgotten Password page"
            url=3D"forgottenPassword" />
        <verifyTitle
            description=3D"verify the page title / location"
            text=3D"Medical Monitor - Forgotten password" />
        <setInputField
            value=3D"Biggs"
            description=3D"Set the last Name field"
            htmlId=3D"lastName"/>
        <setInputField
            value=3Dusername@googlemail.com
<mailto:username@googlemail.com>=20
            description=3D"Set the Email field"
            htmlId=3D"emailAddress"/>
        <clickButton
            description=3D"Click the SUBMIT button"
            htmlId=3D"accept"/>
         =20
<!-- Email retrieval steps -->
        <emailSetConfig server=3D"${mailserver}" password=3D"${password}
username=3D"${username}" delay=3D"30"/>
        <emailStoreMessageId
            property=3D"email01"
            description=3D"Give a name to the email message"/>=20
      </steps>
    </webtest>
  </target>
</project>
=20
Also, how do I know what the email Id should be?
=20
Any help would be appreciated.
=20
Regards,
Katy B
=20
=20



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, Oxfo=
rd, OX5 1GB, United Kingdom.
=0D
------_=_NextPart_001_01C7D9AF.A342CC18
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.6000.16481" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D914022011-08082007>Hi</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D914022011-08082007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D914022011-08082007>I am =
having problems=20
getting the email stesp working for my scripts. Basically it is just a =
forgotten=20
password form with a surname and email field. When the accept button is =
clicked,=20
an email is sent to the specified email address.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D914022011-08082007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D914022011-08082007><U>Here are my=20
steps:</U></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D914022011-08082007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><SPAN =
class=3D914022011-08082007>&lt;project=20
name=3D"SimpleTest" basedir=3D"." =
default=3D"main"&gt;</SPAN></FONT></DIV>
<DIV><FONT face=3DCourier size=3D2><SPAN =
class=3D914022011-08082007><FONT=20
color=3D#800080>&nbsp;&nbsp;&nbsp; &lt;property name=3D"webtest.home"=20
location=3D"C:/apps/webtest" /&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;property=20
name=3D"username" value=3D"username"/&gt;<BR>&nbsp;&nbsp;&nbsp; =
&lt;property=20
name=3D"password" value=3D"password"/&gt;<BR>&nbsp;&nbsp;&nbsp; =
&lt;property=20
name=3D"mailserver" value=3D"mail.google.com"/&gt;<BR>&nbsp;&nbsp;&nbsp; =

&lt;property name=3D"servertype" =
value=3D"pop3"/&gt;</FONT><BR>&nbsp;&nbsp;&nbsp;=20
&lt;import =
file=3D"${webtest.home}/lib/taskdef.xml"/&gt;</SPAN></FONT></DIV>
<DIV><FONT face=3DCourier size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2><SPAN class=3D914022011-08082007><FONT =
face=3DCourier>&nbsp;=20
&lt;target name=3D"main"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;webtest=20
name=3D"myTest"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;config<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
host=3D"192.168.64.132"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
port=3D"8080"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
protocol=3D"http"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
basepath=3D"yearbooks" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;steps&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;invoke<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
description=3D"Go to Forgotten Password=20
page"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;=20
url=3D"forgottenPassword" =
/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;verifyTitle<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
description=3D"verify the page title /=20
location"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;=20
text=3D"Medical Monitor - Forgotten password"=20
/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT=20
color=3D#800080>&lt;setInputField<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
value=3D"Biggs"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
description=3D"Set the last Name=20
field"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;=20
htmlId=3D"lastName"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;setInputField<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
value=3D</FONT></FONT><A href=3D"mailto:username@googlemail.com"><FONT =
face=3DCourier=20
color=3D#800080>username@googlemail.com</FONT></A><BR><FONT =
face=3DCourier><FONT=20
color=3D#800080>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;=20
description=3D"Set the Email=20
field"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;=20
htmlId=3D"emailAddress"/&gt;<BR></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;=20
&lt;clickButton<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
description=3D"Click the SUBMIT=20
button"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;=20
htmlId=3D"accept"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
<BR>&lt;!-- Email retrieval steps=20
--&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT=20
color=3D#800080>&lt;emailSetConfig server=3D"${mailserver}" =
password=3D"${password}=20
username=3D"${username}"=20
delay=3D"30"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;emailStoreMessageId<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;=20
property=3D"email01"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
description=3D"Give a name to the email message"/&gt;=20
<BR></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&lt;/steps&gt;<BR>&nbsp;&nbsp;&nbsp;=20
&lt;/webtest&gt;<BR>&nbsp;=20
&lt;/target&gt;<BR>&lt;/project&gt;</FONT></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D914022011-08082007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D914022011-08082007>Also, =
how do I know=20
what the email Id should be?</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D914022011-08082007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D914022011-08082007>Any =
help would be=20
appreciated.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D914022011-08082007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D914022011-08082007>Regards,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D914022011-08082007>Katy=20
B</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D914022011-08082007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D914022011-08082007></SPAN></FONT>&nbsp;</DIV></BODY></HTML>

<pre>

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, Oxfo=
rd, OX5 1GB, United Kingdom.
=0D
------_=_NextPart_001_01C7D9AF.A342CC18--