GitLab Integration
GitLab is a web-based Git-repository manager with the purpose of facilitating entire DevOps lifecycle. It helps in collaboration of different teams working on a project. Ensuring Development, QA, Security, Operations and Product team to sync simultaneously on the same project. GitLab helps in bringing your product a lot faster in the market by reducing time taken to complete a release cycle in a very significant manner.
The LambdaTest GitLab Integration allows you to create a card directly in your repository from LambdaTest platform. Push an issue to your respective repository anytime, even in the middle of your test session. The fields populated by you when marking as bug through LambdaTest are displayed as information on the bug in GitLab repository for that testing instance.
GitLab Integration with LambdaTest, like all of our other integrations to 3rd party applications, is available for freemium as well as premium plan.
How to integrate GitLab with your LambdaTest account?
Step 1: Login to your LambdaTest account. You would need to have Admin or User level access to see and install integrations.
Step 2: Select ‘Settings’ from the left navigation menu bar & click on 'Integrations'. This will guide you to a screen where you will find a list of 3rd party applications, available to integrate with your LambdaTest account.
Step 3: Click on ‘INSTALL’ under the block that says 'GitLab'.
Step 4: Once you click on install, you’ll be redirected to a screen. There would 2 options available for you to choose in order to authenticate GitLab.
1. Via OAuth
The purpose of logging in is to bypass the authentication that is applied when two different applications interact using their respective APIs. GitLab APIs uses OAuth 2.0's authorization code grant flow for generating access tokens on user's behalf.
Access tokens are strings with authorization key required to access an API. They are issued to the client server and are usually opaque. They are used for requesting access to protected, user-specific resources. Access tokens are vital from a security point of view & can be generated in different formats, depending upon security requirements specified on the resource server.
That's it! Go to Integrations again and you will be able to notice a green tick indicating that GitLab is successfully installed. You can now experience bug logging in a fly from any of your running test session in Lambdatest to your repository directly by a single click.
2. Using Personal Access Token
In scenarios where OAuth is excessively utilized, Personal Access Tokens comes to aid in accessing the API. While generating a token, make sure you provide a description that is easy to remember, as your Personal Access Token will be derived from it. Treat this token just as you would treat your own password! Access tokens are strings with authorization key required to access an API. They are issued to the client server and are usually opaque. They are used for requesting access to protected, user-specific resources. Access tokens are vital from a security point of view & can be generated in different formats, depending upon security requirements specified on the resource server.
That's it! Go to Integrations again and you will be able to notice a green tick indicating that GitLab is successfully installed. You can now experience bug logging in a fly from any of your running test session in Lambdatest to your repository directly by a single click.
Logging your first bug through GitLab integration?
NOTE: You need to have a project created on Gitlab before you perform one click bug logging through LambdaTest. If a project is not created then you will face the below error message when logging a bug.
Step 1: Go for any of the test from the left navigation menu. For demo, we will be taking "Real Time Test" option.
Step 2: Present a URL of the web-app you need to test in the dialog box. After that, select any configuration for browser and operating system of your choice & hit 'Start'.
Step 3: After the VM is launched and operable. You can perform testing on your web-app for finding bugs. If a bug gets revealed, then you need to click on the camera icon from the left panel for capturing a screenshot of the same. We have highlighted that option with yellow in the below image.
Step 4: After a screenshot is captured, you can annotate any issue or a task with an in-built image editor. Once you are done highlighting the bug, click on the button that says "Mark as Bug".
Step 5: After clicking on "Mark as Bug" button a GitLab specific form would open up. Fill the fields as per your requirement.
Step 6: Click on "Create Bug" & observe it being successfully marked through a single click effort. Once you hit the button, you will get prompt messages on top of your Virtual Machine indicating the progress of bug logging. You will get a prompt message in few seconds mentioning "Bug successfully marked" indicating that the bug has been pushed to the desired GitLab repository.
Step 7: Visit your repository. You will be able to notice the bug logged right away! You will receive a notification under the Issues on the left as well as under the Todos icon on the top right.
Click on any of the two options and you will find the issue. You will find the description field populated the same as you did in LambdaTest.
Click on the description of bug and you will be redirected to the detail page of the bug. You will find all the data that you provided through Lambdatest already presented in the bug. LambdaTest automatically includes test environment details and related screenshots in the repository as attachments.
How to uninstall GitLab integration?
You can work with one integration at a time. So if you would want to integrate to some 3rd party application of the similar type, other than the GitLab then you would have to uninstall your present integration. Here is how you can do it.
Step 1: Login to your LambdaTest account.
Step 2: Select ‘Settings’ from the left navigation menu bar & click on 'Integrations'. This will guide you to the same screen from where you initiated GitLab installation. You will also find other 3rd party applications, available to integrate with your LambdaTest account.
Step 3: To remove the GitLab integration, click on ‘Uninstall’. You can find the Uninstall button right under the GitLab block which is highlighted with a green tick.
That was all you need to know for LambdaTest + GitLab Integration. Increase your productivity with our integrations. If you still have any questions for us, please feel free to let us know. Our experts are always available on chat to help you out with any roadblock regarding our product. Happy testing!