[Webtest] Email steps

Biggs, Katy (ELS-CAM) Biggs, Katy (ELS-CAM)" <K.Biggs@Elsevier.com
Thu, 9 Aug 2007 14:00:00 +0100


Thanks Paul...will give that a try!=20

-----Original Message-----
From: webtest-admin@lists.canoo.com =
[mailto:webtest-admin@lists.canoo.com] On Behalf Of Paul King
Sent: 09 August 2007 11:44
To: webtest@lists.canoo.com
Subject: Re: [Webtest] Email steps

Biggs, Katy (ELS-CAM) wrote:
> Hi Michael,
>=20
> Thanks so much for your help.
>=20
> I have tried your steps, but my script is still failing in the same =
place. I still get:=20
>=20
> INFO (com.canoowebtest.steps.step) - Message was: Error processing=20
> content: Connect failed
>=20
> Is this because I am trying to connect to hotmail or gmail type sites?

Possibly. The email steps can use POP3 or IMAP. If you have gmail =
configured to enable
POP3 access, I believe it should work. Probably a similar thing is true =
for hotmail.

Paul.

> Regards,
> Katy Biggs
>=20
>=20
> -----Original Message-----
> From: webtest-admin@lists.canoo.com=20
> [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
>=20
> 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>
> [...]
>=20
> Hi Katy,
>=20
> in our email-related-tests we do:
>=20
> <!-- 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" />
>=20
> as you do. Now we get the Email by selecting with:
>=20
> <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" />
>=20
> so we read the new, initial passwort to relogin to the system.
>=20
> hopefuly it help for your test.
>=20
> your
>=20
> --
> Mit freundlichen Gr=FC=DFen
>=20
> Michael Habbert
>=20
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>=20
>=20
> This email is from Elsevier Limited, a company registered in England=20
> and Wales with company number 1982084, whose registered office is The =
Boulevard, Langford Lane, Kidlington, Oxford, OX5 1GB, United Kingdom.
>=20
>=20
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>=20
>=20

_______________________________________________
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