Following our exciting Share Center announcement and to kick off this awesome new capability, we’re sharing with you a cool “Check my weather” test: enabling you to automatically get your real daily weather forecast based on your location, directly to your email! Below you can read more about what this test includes, or simply hop into the shared test and explore it today!
This codeless shared test example contains 4 steps:
- Navigating to https://weather.com/weather/today which will automatically find your location and display a banner of Today’s Forecast.
- Scrolling to the Daily Forecast section on the website
- Taking a screenshot of this banner and saving it on the machine the test is running on.
- Sending an email that contains the weather banner image taken at step number 2.
For this, we should install 3 Addons:
- Image Comparison Addon – provides “Take Element Screenshot” action.
- Send Email Addon – provides “Send Email” action.
Once you want to execute this test, you will be able to fill out the following parameters as per your desired details. The following fields are required:
- From_Email: From email address.
- To_Email: To email address.
- From_Email_Password: Password of the From email account.
- Local_Path_To_Img_Dir: Local path to save the weather banner image.
- Host: Host of the SMTP server (optional! default: smtp.gmail.com).
- Port: Port of the SMTP server (optional! default: 465).
Now you are all set to run the test, and an email with today’s weather will automatically be sent to the To_Email address you filled out, as seen below. You can assign this test to a job and schedule it for notifying the weather each day at a specific hour. Never get confused if it’s cold outside or not 😉
Here’s the automatic mail you’ll receive from this test, with a forecast image attached:
Here is the image that will be attached to the email, according to the day and your location:
❗ Gmail accounts only: you should first enable lesssecureapps option.
Keep Calm and Share Your Tests! 🌍🧡🚀
The post Share Codeless Automation with Anyone: Shared Test Example appeared first on TestProject.