AWS Lambda
AWS Lambda triggers Testsigma test plans from a function, with CodeCommit as the typical event source. The handler runs a script holding the test plan details, so any Lambda trigger can start testing.
Prerequisites
- The trigger script (
aws-testsigma.sh) packaged with the function.
Configure the function
Section titled “Configure the function”-
Create the function: under AWS Lambda > Functions, click Create Function. Fill in the basic information and click Create Function.
-
Check the handler: scroll down to Basic Settings for the handler file and timeout details. In the example,
hello.handleris the handler file, and it contains theaws-testsigma.shfile. -
Set the script inputs:
aws-testsigma.shcarries the test plan information the trigger needs:aws-testsigma.sh inputs #********START USER_INPUTS ********TESTSIGMA_USER_NAME=<Username>TESTSIGMA_PASSWORD=<Password>TESTSIGMA_TEST_PLAN_RUN_URL=<Test Plan URL containing the unique Test Plan id>MAX_WAIT_TIME_FOR_SCRIPT_TO_EXIT=180JSON_OUTPUT_REPORTS_DIR=.#********END USER_INPUTS***********The test plan URL comes from the REST API call to start Test Plan section in Testsigma.
-
Trigger the run: click TEST at the top right corner. The function fires and the test plan starts.
Was this page helpful?
Thanks for the feedback.