Back to QMetry All Products Help Page
Integration with GitLab
Introduction
QAS Integration with GitLab enables you to access GitLabs features from within QAS. The integration allows teams to collaborate on code by pushing the codes to GitLab. It also facilitates merging of finished code into existing projects.
Steps to Integrate QAS with GitLab
Step 1. Add the GitLab workflow extension in QAS.
Search for GitLab workflow in QAS > Extensions and install GitLab Workflow.
Â
Step 2. Generate access token in GitLab.
1. Sign into your Bitbucket/Github account. Generate the Personal Access Token from https://gitlab.com/profile/personal_access_tokens
2. Enter name of the application with expiry date.
3. Select required Scopes that you want to grant with the token.
 4. Click on the Create personal access token button.
5. The Personal Access Token is generated. Copy the token and save it.
Â
Step 3. Set Personal Access Token in QAS.
1. In QAS, go to QMetry > More Commands.
2. Search ‘Gitlab: Set GitLab Personal Access token’ in command palette.
3. Set the GitLab instance URL https://gitlab.com and press the ENTER key.
4. Set the generated Personal Access Token and press the ENTER key.
Â
 Step 4. Create a project repository in GitLab (https://gitlab.com/projects/new).
 1. Enter Project Name and click on the Create Project button.
You can see the commands to upload existing files to GitLab.Â
Â
Step 5. Commit and Push your changes to GitLab from QAS terminal.
1. In QAS, open Terminal > New Terminal.
2. Execute the commands for Push an existing folder section of GitLab (displayed in screenshot above).
Â
3. After the last command, you will need to authenticate your GitLab account from QAS terminal.
The code is committed to GitLab once the authentication is successful.
Â
 Step 6. Verify the commit on GitLab.
Â
Back to QMetry All Products Help Page