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

Selenium series: Launching Cucumber tests

Blog post from Octopus Deploy

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

Matthew Casperson's post, part of a series on creating a Selenium WebDriver test framework, details the process of setting up an AWS Lambda function to execute WebDriver tests using Cucumber and Gherkin feature files. The framework utilizes a LambdaEntry class that downloads necessary Chrome binaries from an S3 bucket, creates temporary files for testing, and executes the tests, generating JSON reports of the results. The post underscores the importance of managing resources, as Lambda may reuse underlying Linux instances, and highlights a method for converting Gherkin feature files into JSON strings for Lambda compatibility. By leveraging AWS services such as S3 and Lambda, the solution enables scalable and efficient test execution, although the current method of running tests via the Lambda web console is noted as inconvenient, with a future post promising a method to trigger tests through HTTP requests.