Skip to content
Testsigma DOCS

CI/CD

GitLab Integration With Testsigma


This article explains how to integrate GitLab with Testsigma for CI/CD purposes.

Prerequisites

Before you begin, ensure you have:


  1. Login to your GitLab account.

  2. Create a blank project or create a CI/CD project as per your preference by clicking on New project. New Project

  3. On create project page, enter all the details and click on Create project. Create project

  4. Navigate to CI/CD and click on Jobs. Navigate to CI/CD

  5. Click on Create CI/CD Configuration file to create a YML file. Alternatively, you can also use the below YML sample to create the job.

stages:
- build
build-code-job:
stage: build
script:
- echo "Calling Shell Script of testsigma"
- pwd
- ls -la
- chmod a+x gitlabcicd.sh
- ./gitlabcicd.sh

 

 

  1. Once you have access to the shell script, you need to provide the ID of that Test Plan and the API Key along with other parameters.
  1. Click on Commit changes once you have created the YML script, and the job will start to run. Commit changes

  2. From the screenshot below, you can see the job running. You can also notice that the test plan configured inside the shell script would start running. Job running

Once the job is completed you can see the execution report as an XML report based on the path you have shared on the shell script.

  1. Post completion of the job, you can see the details below: Post Run