From bd4e497a41fd570dad5173a81332530cb0e9948c Mon Sep 17 00:00:00 2001 From: Bharath Krishna <118433150+bharathk08@users.noreply.github.com> Date: Tue, 19 Nov 2024 17:15:06 +0530 Subject: [PATCH] Added a new doc for Gearset Integration Added a new doc for Gearset CI CD as per the ticket https://testsigma.atlassian.net/browse/IDEA-1909. --- src/left-nav-title.json | 7 +- .../copado-integration.md | 8 +- .../docs/continuous-integration/gearset.md | 73 +++++++++++++++++++ 3 files changed, 80 insertions(+), 8 deletions(-) create mode 100644 src/pages/docs/continuous-integration/gearset.md diff --git a/src/left-nav-title.json b/src/left-nav-title.json index c06ef4b6..3ee52486 100644 --- a/src/left-nav-title.json +++ b/src/left-nav-title.json @@ -337,10 +337,10 @@ "/docs/continuous-integration/codeship-ci/": "CodeShip CI" }, "github-cicd": { - "/docs/continuous-integration/github-cicd/": "GitHub CICD" + "/docs/continuous-integration/github-cicd/": "GitHub CI/CD" }, "bitbucket-ci": { - "/docs/continuous-integration/bitbucket-ci/": "Bitbucket CICD" + "/docs/continuous-integration/bitbucket-ci/": "Bitbucket CI/CD" }, "gitlab-cicd": { "/docs/continuous-integration/gitlab-cicd/": "GitLab CI/CD" @@ -683,5 +683,6 @@ "copado-integration": {"/docs/continuous-integration/copado-integration/": "Copado CI/CD" }, "features-and-scenarios": {"/docs/test-cases/manage/features-and-scenarios/": "Features & Scenarios" }, "key-components": {"/docs/testsigma-tunnel/key-components/": "Components & Requirements" }, - "basic-authentication-safari": {"/docs/desired-capabilities/basic-authentication-safari/": "Basic Authentication [Safari]" } + "basic-authentication-safari": {"/docs/desired-capabilities/basic-authentication-safari/": "Basic Authentication [Safari]" }, + "gearset": {"/docs/continuous-integration/gearset/": "Gearset CI/CD" } } \ No newline at end of file diff --git a/src/pages/docs/continuous-integration/copado-integration.md b/src/pages/docs/continuous-integration/copado-integration.md index 6b8a579a..38c02067 100644 --- a/src/pages/docs/continuous-integration/copado-integration.md +++ b/src/pages/docs/continuous-integration/copado-integration.md @@ -22,11 +22,9 @@ Testsigma Copado integration allows you to trigger test plan execution every tim --- -## **Prerequisites** -> Before you proceed, ensure you the following: -> - An [API](https://testsigma.com/docs/configuration/api-keys/#steps-to-generate-api-key) Key from your Testsigma account. -> - [Test Cases](https://testsigma.com/docs/test-cases/create-test-steps/overview/) for Salesforce in Testsigma. -> - A [Test Plan](https://testsigma.com/docs/test-management/test-plans/overview/) in your Salesforce project. +> ## **Prerequisites** +> +> Before you begin, ensure you are familiar with the concepts of [Test Cases](https://testsigma.com/docs/test-cases/manage/add-edit-delete/) for Salesforce, [Test Plans](https://testsigma.com/docs/test-management/test-plans/overview/) for Salesforce, and [Generating API Keys](https://testsigma.com/docs/configuration/api-keys/#steps-to-generate-api-key) in Testsigma. --- diff --git a/src/pages/docs/continuous-integration/gearset.md b/src/pages/docs/continuous-integration/gearset.md new file mode 100644 index 00000000..a05a129a --- /dev/null +++ b/src/pages/docs/continuous-integration/gearset.md @@ -0,0 +1,73 @@ +--- +title: "Integrate Testsigma with Gearset (Salesforce)" +metadesc: "Integrate Testsigma with Gearset for effortless Salesforce test automation | Improve your testing efficiency accelerate Salesforce automation by integrating Testsigma with Gearset" +noindex: false +order: 12.25 +page_id: "Integrate Testsigma with Gearset" +warning: false +contextual_links: +- type: section + name: "Contents" +- type: link + name: "Prerequisites" + url: "#prerequisites" +- type: link + name: "Test Plan Execution Setup in Gearset CI Job" + url: "#test-plan-execution-setup-in-gearset-ci-job" +--- + +--- + +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](https://testsigma.com/docs/test-cases/manage/add-edit-delete/) for Salesforce, [Test Plans](https://testsigma.com/docs/test-management/test-plans/overview/) for Salesforce, and [Generating API Keys](https://testsigma.com/docs/configuration/api-keys/#steps-to-generate-api-key) in Testsigma. + +--- + +## **Test Plan Execution Setup in Gearset CI Job** + +1. On **Outgoing webhooks** section, + + ![Details in Webhook](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/Config_in_Gearset.png) + + - Enter the **API Endpoint** from **cURL** in the **Outgoing webhook url** field. + [[info | **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 ` + + - 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”:”” + } + ``` + + [[info | **NOTE**:]] + | You can find the **Execution ID** under **Test Plans > CI/CD Integrations > REST API call to start Test Plan** + | ![Env ID](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/Gearset_EnvID.png) + +1. Go to **Notifications**, click **Save CI Job**. + + +3. Once the metadata is downloaded, verify that the test plan is triggered from Gearset. + +--- \ No newline at end of file