Member-only story
Automating Gmail: A Game Changer for Test Automation
Recently, I got a chance to automate the email flows for one of the applications I was testing. I have tested emails before, but with different servers and paying a hefty amount for those servers. However, I recently got to automate email testing using Gmail.
At first, I was skeptical about whether this was even possible! Why would Gmail let me access email using an automated tool? But, oh boy, I was wrong! In fact, Google has complete APIs and support to not just automate Gmail but also Google Drive, Calendar, and all of their other products.
Well, enough jibber-jabber — let’s dive into automating Gmail! Do let me know if you need help automating other Google tools.
First of all, decide which Gmail account you will be using. If you are just experimenting, do not use your personal Gmail account. If you are working officially, try to have a separate Gmail account for accessing emails.
GitHub Repository: https://github.com/bismaLatif/gmailapifortestautomation.git
Step 1: Create Google Project
1. Navigate to Google Cloud Console.
2. Click on the project dropdown in the top bar and select “New Project.”