Skip to content
Matthew Casperson edited this page Aug 8, 2019 · 2 revisions

AWS Lambda

Iridium can be run as a AWS Lambda function. This allows you to take advantage of the scale and geographical reach of the AWS cloud while running Iridium tests, which is ideal for load testing.

The following instructions show you how to execute Iridium as a Lambda function.

Function Code

Code entry type

Upload a file from Amazon S3

S3 link URL

https://s3.amazonaws.com/iridium-lambda/IridiumApplicationTesting.jar

Runtime

Java 8

Handler

au.com.agic.apptesting.lambda.LambdaEntry

![](/assets/Screenshot-2017-10-19 Lambda Management Console.png)

Environment variables

JAVA_TOOL_OPTIONS

-DreportsDirectory=/tmp -DuseSuppliedWebdrivers=false -DstartInternalProxy=-browserMob -DsaveReportsInHomeDir=false

These are the common settngs that should be used for all Lambda tests.

Basic settings

Memory

320mb

Timeout

5 minutes

![](/assets/Screenshot-2017-10-19 Lambda Management Console%282%29.png)Configure test event

The input should be a JSON object with the system property names as keys.

{
  "testSource": "https://mcasperson.github.io/iridium/features/firsttest.feature",
  "testDestination": "PHANTOMJS"
}

Test Run

A simple test that opens google.com took around 50000 ms and consumed around 250 MB. Your results will vary, but these values are a good starting place for any customisation.