Github integration
This document shows you how to set up an integration for Github within Katalon TestOps.
Connect a Github account to TestOpsβ
You must have the Account Admin or System Admin role to perform this action.
To set up the connection:
- Go to Admin Settings. (You can find Admin Settings at the upper right corner of the page).
- Navigate to System > Integrations, then click + Create Integration.
-
In the Available Integration list, choose Github. β A green check mark indicates that the integration is currently available.
-
Fill in the required fields to establish the connection. Katalon TestOps supports two types of GitHub instances:
1. Github (SaaS)β
- Integration Name: A custom name for the integration (max 50 characters).
- Organization Account URL: The Github Organization URL that starts with
https://.- Example:
https://github.com/your-group-name
- Example:
- Github Personal Access Token: To generate a PAT, refer to this GitHub documentation on creating a personal access token.
Note:
- Ensure your PAT includes permission to create and manage repository webhooks because the PAT you provide here will also be used later to automatically create GitHub webhooks during project-level GitHub integration.
- Description (Optional): A brief description of the integration (max 255 characters).
2. Self-Managed (On-Premise)β
noteSupported Version: GitHub Server 3.13.16 and above. Older versions may not be fully compatible with TestOps and could cause connection issues.
- Fill in the same fields as listed above (Integration Name, Organization URL, PAT, and optional Description).
-
Click Test Connection to validate the integration.
-
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 Github 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.
Disconnect a Github connectionβ
We only support disconnecting (not deleting) integrations to preserve data integrity, maintain audit history, and allow easy reactivation if needed.
- The status changes to Inactive.
- Click Disconnect icon next to the connection you want to disconnect.
- A confirmation dialog will appear. Click Disconnect if you want to move forward.
Reconnect a Github connectionβ
- The status changes back to Active.
- If the status shows Error, verify all required configuration fields and make necessary corrections.
- Click Reconnect icon next to the connection you want to disconnect.
- A confirmation dialog will appear. Click Reconnect if you want to move forward.
Configure Github integration at the Project levelβ
- You must have the Project Admin role to perform this action.
- A GitHub account must already be connected at the Account-level
- Navigate to your specific project's UI > Settings > Integrations.
- On your linked GitHub connection, click the right edge and select New configuration (Settings icon).
- 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 Github account. Copy and paste the URL into this field.
- For example: If you linked a connection under
https://github.com/katalon-studio, then the URL should look like:
https://github.com/katalon-studio/katalon-repo/tree/main
- For example: If you linked a connection under
- Link existing test execution results with test cases having the exact same paths and names (Optional): Enable this if you want TestOps to automatically attach existing test results to test cases and test suites whose paths and names match your GitHub structure.
- Description (Optional): A brief description of this linked project (max 255 characters).
-
Click Proceed to sync data and finalize the connection. TestOps automatically syncs your project with the GitHub repository.
- A GitHub webhook is created automatically, enabling real-time updates such as test results and GitHub action triggers.
- If webhook creation succeeds β The integration status updates to Active.
- If webhook creation fails β The status shows Inactive, with an error message: βFailed to create GitHub webhook. Please try again.β You can retry by clicking Proceed again once the issue is resolved. Additional behavior:
- 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, the changes are saved, but the status may remain Inactive. To sync data and finalize the connection, you must click Proceed.
-
[Optional] To edit an existing linked Github 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 Github repository is now active within your project.
View test cases or test suites synced from linked GitHub integrationβ
To view test cases or test suites synced from the linked GitHub integration, navigate to Tests > Test Cases/Test Suites.
Archive a linked Github integrationβ
You must have the Project Admin role to perform this action.
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 archive a linked Github integration:
- Navigate to your specific project's UI > Settings > Integrations.
- Click the right edge of your linked connection and select Archive icon.
- A confirmation dialog will appear. Click Archive if you want to move forward.
Unarchive a linked Github integrationβ
You must have the Project Admin role to perform this action.
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 Github integration:
- Navigate to your specific project's UI > Settings > Integrations.
- Click the right edge of your linked connection and select Unarchive icon.
- A confirmation dialog will appear. Click Unarchive if you want to move forward.