How to verify whether email is received in google mail
Hi,
There is a challenge of mail notification issue which concerns me for a while, it' about automated verification of certain email in a google mail.
Until now i have mapped google mail obj and verified email via google mail gui, but this test is too depentent on google mail obj. when google mail gui changed, this test will stop working and obj needs to be updated.
Could somebody share the knowledge with me how to do this task in another way, e.g. verifying email in backend?
Thanks in advances,
Lee
You can use an email client library, such as .NET MailKit, to read the inbox. You can use this library in TestComplete via CLR Bridge/dotNET. I don't have a ready TestComplete example, but the MailKit project page has C# examples that should give you the idea of how to accomplish your task.
Note that if you use 2-step verification for your Google account, it does not allow programmatic login with the account password. You need to generate an application-specific password for your test here:
https://security.google.com/settings/security/apppasswords