Forum Discussion
So, there are two pieces to this... the process that generates the link, and the link itself which navigayes to a particular page. It seems the actual generation of the email is ancillary.
I'm assuming there is some predictability to the link generation. So, it seems to me you don't really need to check the email, you simply need to a) check in a database or some other storage to see if an email conraining the appropriate link was generated... an SQL query might solve that and check the link against expected values then b) Simply open a browser using the predicted link value and verify that the page to which you navigated is correct. Seems that mucking around with gmail, an application outside of your scope of control, seems a futile effort as all it will take is for Google to change a bit of code and, therefore, invalidate your tests.
Another suggestion : get with your programmers to create a simple email client for he sole purpose to receive the emails. Set up a local exchang server in your test environment and run your emails through that. This way, you control all the pieces and you no longer have to mess with Google.
- AlexKaras8 years agoChampion Level 3
The only $0.02 that I can add to the otherwise absolutely exaustive Robert's reply is that if for some reason you *really need* to check with some external mail server, you may consider some other (free) mail service with much simpler UI. Mailinator.com might be one of the possible alternatives.
- hhagay8 years agoContributor
I agree with your comments however there are scenarios where one has to follow "user" flow in order to accomplish a case, for example; a confirmation process requires certain flow that entails an email invitation to an enrollment page which requires the user to create credentials and as a result, login.
I understand that we can manipulate the url in most cases, but by doing so we stir away from testing the true user flow and confirm the dynamic process the server uses to deliver dynamic pages....
my $0.04 :)
Related Content
- 2 years agojuliemorris
- 3 years agojoaosaidel
- 2 months agoJamesG
Recent Discussions
- 3 days agovladd1