Integrate Testsigma with Gearset (Salesforce)


Testsigma Gearset integration allows you to trigger test plan execution every time a Gearset deployment is triggered. This article discusses how to integrate Testsigma with Gearset in Salesforce deployments.


Prerequisites

Before you begin, ensure you are familiar with the concepts of Test Cases for Salesforce, Test Plans for Salesforce, and Generating API Keys in Testsigma.


Test Plan Execution Setup in Gearset CI Job

  1. On Outgoing webhooks section,

    Details in Webhook

    • Enter the API Endpoint from cURL in the Outgoing webhook url field.

      NOTE:

      You can find this under Test Plans > CI/CD Integrations > REST API call to start Test Plan

    • In the Payload field, select Custom.
    • In the Authentication field, select Authorization.
    • In the Credentials field, add the API key in the following format

      Bearer <API-KEY>

    • Add the following Header details:

      Header key: Accept
      Header value: application/json

    • In the Content-Type field, select application/json.
    • In the Payload field, enter the test plan execution ID in the following format:

      {
      “executionId”:”<id>”
      }
    NOTE:

    You can find the Execution ID under Test Plans > CI/CD Integrations > REST API call to start Test Plan Env ID

  2. Go to Notifications, click Save CI Job.
  3. Once the metadata is downloaded, verify that the test plan is triggered from Gearset.