Infinite Scaling of Selenium headless .jar tests using AWS Lambda

0

Current State I have a gradle Java 11 project (.jar file) that uses Selenium and TestNG to test several web applications in Google Chrome; for each web app one end to end test case is executed. This .jar file runs in a docker container on a Windows Server and it executes the test cases sequentially.

Desired State I want to run all the test cases concurrently or in parallel where each end to end test case would execute in it's own AWS Lambda Function. Furthermore, I want my set up to allow for the AWS Lambda Functions to scale out or in horizontally depending on the number of end to end test cases that are added or remove in the future. I am trying to figured out how to best approach this.

Possible Solution Should I use an AWS Lambda Function with the Java runtime and the AWS RequestHandler.java or should I use an AWS Lambda Function container.

Questions How do I dynamically spawn off AWS Lambda functions? How do I gather all the TestNG test case reports? Should put them in an S3 bucket?

Reference or Context The following link is the closest one explaining the bigger picture of what I am trying to achieve https://aws.amazon.com/blogs/startups/infinite-scaling-of-selenium-ui-tests-using-aws-lambda/

1개 답변
0

Have you tried the following tutorial?

It will help you out with the Selenium tests: https://aws.amazon.com/blogs/devops/serverless-ui-testing-using-selenium-aws-lambda-aws-fargate-and-aws-developer-tools/

AWS
vtjean
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠