Skip to content
You're viewing the v2 docs. Looking for v1?Go to v1 docs
Docs
Testsigma
Popular questions
↑↓ to navigate↵ to selectesc to close
Book a demo

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.
  1. Create the function: under AWS Lambda > Functions, click Create Function. Fill in the basic information and click Create Function.

  2. Check the handler: scroll down to Basic Settings for the handler file and timeout details. In the example, hello.handler is the handler file, and it contains the aws-testsigma.sh file.

  3. Set the script inputs: aws-testsigma.sh carries 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=180
    JSON_OUTPUT_REPORTS_DIR=.
    #********END USER_INPUTS***********

    The test plan URL comes from the REST API call to start Test Plan section in Testsigma.

  4. Trigger the run: click TEST at the top right corner. The function fires and the test plan starts.

Was this page helpful?