Gearset
Gearset integration triggers a Testsigma test plan on every Gearset deployment. An outgoing webhook on the Gearset CI job calls the test plan’s trigger endpoint.
Prerequisites
- A test plan, an API key (Settings > API Keys), and the plan’s execution ID.
Configure the webhook in the CI job
Section titled “Configure the webhook in the CI job”-
Open the webhook settings: In the Gearset CI job, go to the Outgoing webhooks section.
-
Enter the URL: In the Outgoing webhook url field, enter the API endpoint from the cURL command shown under Test Plans > CI/CD Integrations > REST API call to start Test Plan.
-
Set the payload type: In the Payload field, select Custom.
-
Set authentication: In the Authentication field, select Authorization. In the Credentials field, add the API key as
Bearer <API-KEY>. -
Add the header: Add a header with key
Acceptand valueapplication/json. In the Content-Type field, select application/json. -
Enter the payload: In the Payload field, enter the execution ID:
{"executionId":"<id>"} -
Save the job: Go to Notifications and click Save CI Job.
Verify the trigger
Section titled “Verify the trigger”Once the deployment’s metadata is downloaded, check that the test plan run has started in Testsigma.
Was this page helpful?
Thanks for the feedback.