GitLab CI
Last updated
Last updated
GitLab is a web-based DevOps lifecycle tool that provides a Git repository manager providing wiki, issue-tracking, and CI/CD pipeline features.
With Qase’s GitLab integration, you can:
Link Qase test cases to GitLab issues
Create a new issue in GitLab when you file a defect during a test run in Qase
Link Qase test runs to GitLab issues
Execute automated runs in GitLab from a Qase.
For installation, you will require GitLab URL
and the Access token
.
First, sign-in to your GitLab account and navigate to the Preferences
from the profile menu:
Go to the Access tokens
page:
To create a new Personal Access Token
, select the scope api
and click on the Create Personal Access token:
Copy your token to clipboard.
On Qase, navigate to the Apps section, find the GitLab app and click Install now
.
Here, provide the Access token from the previous step, and URL of your GitLab instance (the field is pre-populated with the default value)
Click the Install
button. After a few seconds, you will be redirected to the Apps
page with a confirmation message as shown below.
Note: If you prefer to use a group token, make sure that a "Maintainer" role level is required for such a group token.
1. To link a GitLab to a Qase test case from Qase:
Select a case in the repository and switch to properties in the sidebar
Click "Link GitLab app issues"
Insert GitLab issue title into the field and hit "Link"
Now the issue is linked:
2. To unlink the GitLab issue, click "x" next to the card title:
3. Link Qase Test Runs to GitLab issues:
Navigate to the Test Runs page
Click on the Run
In the Run's main page, locate the sidebar to the right
Scroll down and under "External Issue" click on "Select an Integration"
Select "GitLab app"
Search for the issue's title and click on "Link"
In the test run, mark your case as Failed, Blocked, or Invalid and proceed with creating a Defect.
in the Defect creation form, under “Choose Integrations” select "GitLab App" and click "Add defect"
Fill in the required fields, then hit "Create"
You can view the link to the GitLab issue in
Defects tag of the test run
From the Qase defect screen
Create the Automated Test Run
:
Select the Gitlab
option in the CI/CD System
field:
Fill in all necessary fields and click the Start a run
button: