I'm inviting you to a new Community challenge which we are starting next Monday (April 2)! Earn badges to get more points. Read more information
Reply
Occasional Contributor

Does anyone use automation to check emails sent by the application they are testing?

Part of the requirements for many of our processes include emails that get sent out to managers and/or employees. I was curious if anyone has used Smartbear to interact with their email system (ex. Microsoft Outlook) to verify links display and are able to be clicked. I could also try to login via Office365.com if anyone thinks that might be easier.

 

A few of the processes include receiving an email for a forgotten password where the end user has to click a link in order to get redirected to the page in order to complete some information and update to a new password.

 

Any information positive or negative would be greatly appreciated! Thanks! 

Contributor

Re: Does anyone use automation to check emails sent by the application they are testing?

I've done it before, but it's been a long time.  The only drawback I remember was you had to expend licenses for Office on your test machines, and that could potentially get expensive.  You may want to go with a different email client, as there are many free alternatives that will work with MSExchange, just not as fully featured.

Highlighted
Community Leader

Re: Does anyone use automation to check emails sent by the application they are testing?

[ Edited ]

Hi,

 

We are using API of our own mail server to control incoming emails and its content.

 

Any interaction with graphical interface of some email client (e.g. clicking on the link inside email) is a bad practice. Of course, if the mail client is not the product, that you are developing.

Posts: 1,920
Topics: 15
Kudos: 755
Solutions: 151
Registered: ‎07-18-2013

Re: Does anyone use automation to check emails sent by the application they are testing?

I'm going to agree with everyone above that it's not a good idea.  If you start trying to open things in the email client, then you're fighting with their software and not yours.  

 

Use the API to confirm that the email was sent->received and then if you really need to keep checking the emails, do it manually.

 

If you are using the same "Reset Password" links (or whatever) every time, what is the issue?  Are you concerned that the link is wrong or that the email won't open it?

Posts: 5,193
Topics: 42
Kudos: 2,208
Solutions: 439
Registered: ‎11-30-2009

Re: Does anyone use automation to check emails sent by the application they are testing?

The same question has come up in my work... and another thing to consider is a security concern... who's inbox are you checking when you check the results?  Is this something that can be a unique inbox just for your automation user?  Do you need to actually get access to a "real" inbox? All major concerns, especially if you are in a regulated industry where data access is closely monitored.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Extensions available
Community Leaders Program
Occasional Contributor

Re: Does anyone use automation to check emails sent by the application they are testing?

Thank you all for your input. I will take back these answers and questions to my team, and see where we go from here.

Frequent Contributor

Re: Does anyone use automation to check emails sent by the application they are testing?

best if you use a standard email address that's only used for the automation,  with a web based interface like gmail for instance....