Skip to main content

GitLab integration

This document shows you how to create an integration for GitLab within Katalon TestOps.

requirements

To set up GitLab integration, the Account Admin or System Admin must first connect a GitLab account or organization, and then link the desired projects (repository, branch, or directory) to TestOps. Go to Roles for more information.

Connect a GitLab account to TestOps

You must have the Account Admin or System Admin role to perform this action.

To set up the connection:

  1. Go to Admin Settings. (You can find Admin Settings in the upper-right corner of the page.)
  2. Navigate to System > Integrations, then click + Create Integration.
Navigate to TestOps admin integration view
  1. In the Available Integration list, choose GitLab.

    ✅ A green check mark indicates that the integration is currently available.

    Integration list
  2. Fill in the required fields to establish the connection:

    • Integration Name: A custom name for the integration (max 50 characters).
    • Organization Account URL: Your GitLab Group Name that starts with https://.
      • Example: https://gitlab.com/your-group-name.
    • GitLab Personal Access Token: Used to authenticate the connection. Learn how to create a Personal Access Token
    • Description (Optional): A brief description of the integration (max 255 characters).
      🔁 Service Hooks are automatically created at the project level for real-time syncing and automation.
GitLab integration fields
  1. Click Test Connection to validate the integration.
  2. Once validated, click Save, or click Cancel to exit without saving any changes.

Result

To verify if the connection is active, navigate to Admin > System > Integrations. Your Gitlab integration will be listed under the Integration list.

  • If the status initially shows as Inactive, reload the page to update the status to Active.
  • If the status shows Error, verify all required configuration fields, especially the Personal Access Token (PAT), and confirm it is valid and configured correctly in the account-level integration.
Navigate to TestOps admin integration view

Configure GitLab integration at Project level

warning

Once an Account Admin or System Admin sets up the GitLab connection, only a Project Admin can configure project-level settings by linking specific repositories, branches, or directories to Katalon TestOps.

  1. Navigate to your specific project's UI > Settings > Integrations.
Navigate to TestOps admin integration view
  1. Click the right edge of your linked connection and select New configuration (Setting icon).
Gitlab Setting icon
  1. Fill in the required fields:
  • Display Name: A custom name for the linked project (max 50 characters).
  • URL: The URL to the desired repository, branch, or directory from the linked GitLab account. Copy and paste the URL into this field.
    • For example: If you linked a connection under https://gitlab.com/katalon-test, then the URL should look like:
      https://gitlab.com/katalon-test/katalon-project/-/tree/test/Test%20Cases
  • (Optional) Select Link existing test execution results with test cases having the exact same paths and names to enable attaching existing test run results to test cases and suites with matching paths and names in TestOps.
  • (Optional) Description: Brief description about the linked project (max 255 characters).
Filling in required fields in System Integration UI
  1. Click Proceed to sync data and finalize the connection.

    • If the status initially shows as Inactive, reload the page to update the status to Active.
    • If you modify the connection details and click Save, your changes will be saved, but the status may remain Inactive. To sync data and finalize the connection, click Proceed.
  2. [Optional] To edit an existing linked Gitlab integration, click the Edit (pen) icon, make the necessary changes, and click Proceed. After editing, reload the page to ensure data is refreshed.

Result

Your GitLab repository is now active within your project.

Gitlab linked projects

View test cases or test suites synced from linked GitLab integration

To view test cases or test suites synced from the linked GitLab integration, navigate to Tests > Test Cases/Test Suites.

Gitlab linked  in Tests folder

Archive a linked GitLab integration

You must have the Project Admin role to perform this action.

info

When an integration is archived:

  • The status changes to Archived.
  • The integration no longer appears in the Test Cases/Test Suites module.
  • Any scheduled test runs in the Execution module will be automatically canceled at runtime.

To unarchive a linked GitLab integration:

  1. Navigate to your specific project's UI > Settings > Integrations.
  2. Click the right edge of your linked connection and select Archive icon.
Archive Gitlab project
  1. A confirmation dialog will appear. Click Archive if you want to move forward. Confirmed unarchive box

Unarchive a linked GitLab repository

You must have the Project Admin role to perform this action.

info

After you unarchive an integration:

  • The status might appear as Inactive. Reload the page to update it to Active.
  • If the status shows Error, verify all required configuration fields and make necessary corrections.

To unarchive a linked GitLab integration:

  1. Navigate to your specific project's UI > Settings > Integrations.
  2. Click the right edge of your linked connection and select Unarchive icon.
    Showing unarchive icon in System Integration list
  3. A confirmation dialog will appear. Click Unarchive if you want to move forward. Confirmed unarchive box
Was this page helpful?