[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> </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> </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> </DIV>
<DIV><FONT face=3DCourier size=3D2><SPAN =
class=3D914022011-08082007><project=20
name=3D"SimpleTest" basedir=3D"." =
default=3D"main"></SPAN></FONT></DIV>
<DIV><FONT face=3DCourier size=3D2><SPAN =
class=3D914022011-08082007><FONT=20
color=3D#800080> <property name=3D"webtest.home"=20
location=3D"C:/apps/webtest" /><BR> <property=20
name=3D"username" value=3D"username"/><BR> =
<property=20
name=3D"password" value=3D"password"/><BR> =
<property=20
name=3D"mailserver" value=3D"mail.google.com"/><BR> =
<property name=3D"servertype" =
value=3D"pop3"/></FONT><BR> =20
<import =
file=3D"${webtest.home}/lib/taskdef.xml"/></SPAN></FONT></DIV>
<DIV><FONT face=3DCourier size=3D2></FONT> </DIV>
<DIV><FONT size=3D2><SPAN class=3D914022011-08082007><FONT =
face=3DCourier> =20
<target name=3D"main"><BR> <webtest=20
name=3D"myTest"><BR> =20
<config<BR> =20
host=3D"192.168.64.132"<BR> =20
port=3D"8080"<BR> =20
protocol=3D"http"<BR> =20
basepath=3D"yearbooks" /><BR> =20
<steps><BR> =20
<invoke<BR>  =
; =20
description=3D"Go to Forgotten Password=20
page"<BR> &nbs=
p;=20
url=3D"forgottenPassword" =
/><BR> =20
<verifyTitle<BR> =
=20
description=3D"verify the page title /=20
location"<BR> =
=20
text=3D"Medical Monitor - Forgotten password"=20
/><BR> <FONT=20
color=3D#800080><setInputField<BR> =
=20
value=3D"Biggs"<BR> =
=20
description=3D"Set the last Name=20
field"<BR> &nb=
sp;=20
htmlId=3D"lastName"/><BR> =20
<setInputField<BR> &nbs=
p; =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> &nb=
sp; =20
description=3D"Set the Email=20
field"<BR> &nb=
sp;=20
htmlId=3D"emailAddress"/><BR></FONT> &nbs=
p; =20
<clickButton<BR> =
=20
description=3D"Click the SUBMIT=20
button"<BR> &n=
bsp;=20
htmlId=3D"accept"/><BR>  =
; =20
<BR><!-- Email retrieval steps=20
--><BR> <FONT=20
color=3D#800080><emailSetConfig server=3D"${mailserver}" =
password=3D"${password}=20
username=3D"${username}"=20
delay=3D"30"/><BR> =20
<emailStoreMessageId<BR> &nbs=
p; =20
property=3D"email01"<BR> &=
nbsp; =20
description=3D"Give a name to the email message"/>=20
<BR></FONT> =
</steps><BR> =20
</webtest><BR> =20
</target><BR></project></FONT></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D914022011-08082007></SPAN></FONT> </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> </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> </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> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D914022011-08082007></SPAN></FONT> </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--