I am looking to change the way I test emails.
At present im tetsing using gmail and going through the UI. Go to web app, log in, read emails and click links. All done via the UI as if a person was.
This works but is slow and with gmail enforcing 2FA no longer the most secure way.
Does anyone use any external providers i.e. mailtrap or mailslurp?
What I am aiming to test:
• Receiving sign up emails and clicking links (forgotten password etc).
• Checking content of emails is correct.
• Check one time only links expire after clicked
I do not need to test gmail functionality but the above content and to click links set out etc.
Best option i can see is to spoof an inbox have mail delivered, get content, chcek content then delete inbox.
I would prefer a static email address as user use this for logging in so a new emaileach time would require setting up a new user which would increase test time.
Any help would be appreciated.
Why spoof email, when you can just use and set up test email ?
Also, why use the UI to access Gmail? You can access that shit programmatically!
Set up your test email, and I can guide you through accessing its messages and threads programmatically, for testing… (WARNING: it is going to be a lengthy process, mostly of API-related configuration)
Please get API credentials from Dev Team and reuse the same for reading/writing emails etc instead of using UI
Hi, I’d be interested to get GMail API running. I had assumed that Google would stop any attempt to automate their mail accounts, as they’ve done with the UI (stoppping webdriver from accessing accounts). Is the link you shared enough to get started or are there Katalon-hurdles to avoid? Cheers
I’m about to make a post on this later on today… Stay tuned
UPDATE: I’ma drop the post tomorrow…
It’s really involved…
Once it’s done, I will link it on here…
The blog post is live!
Let me know if you have any questions !
Thanks for the reply and the blog post looks excellent.
I will get it all set up today and then mark this as a solution.
Thanks again everyone!