Biggs, Katy (ELS-CAM) wrote:
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:
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?

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


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Habbert
Sent: 09 August 2007 10:23
To: [email protected]
Subject: Re: [Webtest] Email steps

Biggs, Katy (ELS-CAM) wrote:
Hi
I am having problems getting the email stesp working for my scripts.
[...]
<!-- 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>
[...]

Hi Katy,

in our email-related-tests we do:

<!-- we do extract the new password from email --> <emailSetConfig description="connection to 
mail server" server="${chewi.mailserver.name}"
   type="${chewi.mailserver.servertype}" username="${chewi.mailserver.username}"
   password="${chewi.mailserver.password}" delay="5" /> <emailStoreMessageId 
description="store messageID for subject: ${chewi.user.resetpw.mailSubject}"
   subject="${chewi.user.resetpw.mailSubject}"
   from="/#{chewi.user.lastname}, #{chewi.user.firstname}/" 
property="chewi.user.resetpw.mail.id"
   propertyType="dynamic" />

as you do. Now we get the Email by selecting with:

<emailMessageContentFilter description="return message content as response"
   messageId="#{chewi.user.resetpw.mail.id}" saveResponse="true" />
<!-- mail-body is something like: Ihr Passwort wurde auf den folgenden Wert gesetzt:CY44qt 
--> <storeRegEx description="resetPassword: Extract new user's password"
   text=".*${chewi.user.resetpassword.mail.content}\s(\w{6}).*" group="1"
   property="chewi.user.new.password" propertyType="dynamic" />

so we read the new, initial passwort to relogin to the system.

hopefuly it help for your test.

your

--
Mit freundlichen Grüßen

Michael Habbert

_______________________________________________
WebTest mailing list
[email protected]
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, Oxford, 
OX5 1GB, United Kingdom.


_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest



_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to