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!

☔⛅🌈 Access the Shared Test and Enjoy Daily Weather Reports! ☔⛅🌈

This codeless shared test example contains 4 steps:

  1. Navigating to https://weather.com/weather/today which will automatically find your location and display a banner of Today’s Forecast.
  2. Scrolling to the Daily Forecast section on the website
  3. Taking a screenshot of this banner and saving it on the machine the test is running on.
  4. Sending an email that contains the weather banner image taken at step number 2.

TestProject Codeless Automation Test

For this, we should install 3 Addons:

  1. Image Comparison Addon – provides “Take Element Screenshot” action.
  2. Send Email Addon – provides “Send Email” action.
  3. JS Actions Addon – provides “Scroll To Element With Javascript” action.

Image Comparison Addon - TestProject

Send Email Addon - TestProject

JS Actions Addon - TestProject

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).

Send Email Parameters

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:

TestProject Weather Forecast

Here is the image that will be attached to the email, according to the day and your location:

Daily Forecast

Gmail accounts only: you should first enable lesssecureapps option.

Go ahead and explore this weather shared test, or these awesome API shared tests, or even start sharing your own tests for everyone to enjoy and benefit from!

Keep Calm and Share Your Tests! 🌍🧡🚀

The post Share Codeless Automation with Anyone: Shared Test Example appeared first on TestProject.