Allure TestOps - export test results to Gitlab

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.

  1. Create an access token: .

  2. Create a credential for Github under Administration area in Allure TestOps. Use token type.

  3. Create an issue tracker for gitlab. For example Use gitlab type and check properties for Sync and Export. Use Test Connection to check a connection.

  1. Open Launches menu area

  2. Select Export to issue on the left side menu

    Launch menu

  3. Select Gitlab issue tracker created before

  4. 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>/<project>/<type>/<number>

    • 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

![Gitlab comment](../../images/gitlab-launch-comment.png)
To provide a link on launch name the environment variable
`ENDPOINT` required on Allure TestOps side.