[Webtest] Email steps
Biggs, Katy (ELS-CAM)
Biggs, Katy (ELS-CAM)" <K.Biggs@Elsevier.com
Thu, 9 Aug 2007 10:54:26 +0100
Hi Michael,
Thanks so much for your help.
I have tried your steps, but my script is still failing in the same =
place. I still get:=20
INFO (com.canoowebtest.steps.step) - Message was: Error processing =
content: Connect failed
Is this because I am trying to connect to hotmail or gmail type sites?
Regards,
Katy Biggs
-----Original Message-----
From: webtest-admin@lists.canoo.com =
[mailto:webtest-admin@lists.canoo.com] On Behalf Of Michael Habbert
Sent: 09 August 2007 10:23
To: webtest@lists.canoo.com
Subject: Re: [Webtest] Email steps
Biggs, Katy (ELS-CAM) wrote:
> Hi
> =20
> I am having problems getting the email stesp working for my scripts.=20
[...]
> <!-- Email retrieval steps -->
> <emailSetConfig server=3D"${mailserver}" =
password=3D"${password}=20
> username=3D"${username}" delay=3D"30"/>
> <emailStoreMessageId
> property=3D"email01"
> description=3D"Give a name to the email message"/>
> </steps>
> </webtest>
> </target>
> </project>
[...]
Hi Katy,
in our email-related-tests we do:
<!-- we do extract the new password from email --> <emailSetConfig =
description=3D"connection to mail server" =
server=3D"${chewi.mailserver.name}"
type=3D"${chewi.mailserver.servertype}" =
username=3D"${chewi.mailserver.username}"
password=3D"${chewi.mailserver.password}" delay=3D"5" /> =
<emailStoreMessageId description=3D"store messageID for subject: =
${chewi.user.resetpw.mailSubject}"
subject=3D"${chewi.user.resetpw.mailSubject}"
from=3D"/#{chewi.user.lastname}, #{chewi.user.firstname}/" =
property=3D"chewi.user.resetpw.mail.id"
propertyType=3D"dynamic" />
as you do. Now we get the Email by selecting with:
<emailMessageContentFilter description=3D"return message content as =
response"
messageId=3D"#{chewi.user.resetpw.mail.id}" saveResponse=3D"true" />
<!-- mail-body is something like: Ihr Passwort wurde auf den folgenden =
Wert gesetzt:CY44qt --> <storeRegEx description=3D"resetPassword: =
Extract new user's password"
text=3D".*${chewi.user.resetpassword.mail.content}\s(\w{6}).*" =
group=3D"1"
property=3D"chewi.user.new.password" propertyType=3D"dynamic" />
so we read the new, initial passwort to relogin to the system.
hopefuly it help for your test.
your
--
Mit freundlichen Gr=FC=DFen
Michael Habbert
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest
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