Export test results to Gitlab
Prepare Gitlab credentials and IssueTracker
Create an issue tracker for Gitlab system. Use Gitlab type and check properties for Sync and Export.
Create an access token: https://gitlab.com/profile/personal_access_tokens .
Create a credential for Github under Administration area in Allure TestOps. Use token type.
Create an issue tracker for gitlab. For example https://gitlab.com/ Use gitlab type and check properties for Sync and Export. Use Test Connection to check a connection.
Link launch with issue
Open Launches menu area
Select Export to issue on the left side menu
Select Gitlab issue tracker created before
Type issue key and select a create option or choose the existing one from the suggested list
For the integration with Gitlab the following issue key format can be used:
owner- namespace is either a team or user.
project- project name.
type- the type of object where we want to send an information about the launch (you can use “issue” or “pr” values).
number- the issue or merge request id
5.Select required amount of issues
![Export to issue popup](../../images/server-gitlab-export-to-issue.png)
6.Push Submit button
See the results
1.Open required object on Gitlab server (issue/merge request)
2.You will see the following comment
To provide a link on launch name the environment variable `ENDPOINT` required on Allure TestOps side.