Home / Companies / Octopus Deploy / Blog / Post Details
Content Deep Dive

Selenium series: Emailing the results

Blog post from Octopus Deploy

Post Details
Company
Date Published
Author
Matthew Casperson
Word Count
1,507
Language
English
Hacker News Points
-
Summary

Matthew Casperson's article discusses the integration of AWS services to create a scalable and reliable Selenium WebDriver test framework that runs tests asynchronously due to the time limits of API Gateway and Lambda requests. To address the issue of returning test results, the framework uses AWS Simple Email Service (SES) to send the test outcomes via email, allowing for seamless communication without building custom solutions. The process involves verifying email addresses in the SES console, adding the necessary AWS Java SDK dependency in the project's configuration file, and incorporating email sending functionality into the code. Additionally, the framework requires updating the runCucumber method to save test results in a text file and send them through email, while configuring the necessary permissions in AWS Identity and Access Management (IAM) to allow the Lambda function to use SES. Upon deploying the updated configuration with Serverless, test results are efficiently communicated through email, demonstrating the effectiveness of cloud services in enhancing test execution and result dissemination.