Upload test scripts from the Git repository to TestOps
Katalon Platform supports uploading test scripts from a Git repository to Katalon TestOps. This allows you to manage version control and synchronization of your test project between different modules in Katalon Platform.
Katalon supports AWS CodeCommit, Azure Repos, Bitbucket, GitHub, and GitLab integration for Git repositories.
This article demonstrates how to upload your test scripts from a Git repository to Katalon TestOps.
You have an existing test project in Azure Repos / Bitbucket / GitHub / GitLab / AWS CodeCommit.
To upload test scripts from a Git repository to Katalon TestOps, do as follows:
Sign in Katalon TestOps and go to the project you want to upload the test scripts to.
Go to Configurations > Script Repositories > Connect Git Repository. Click Create a new Git repository.
The Create a new Git repository tab appears.
In the Source Type dropdown list, choose one of the following source types:
Azure Repos
Bitbucket
GitHub
GitLab
AWS CodeCommit. When you select the AWS CodeCommit option, the Access Key ID and Secret Access Key fields are enabled. Currently, Katalon Studio does not support AWS CodeCommit yet.
For GitHub, see this GitHub document: Creating a personal access token. Make sure you opt to create a classic PAT, and select repo scope to set permission scopes for the PAT.
In the Access Key ID and Secret Access Key fields, enter your access key ID and secret access key in AWS CodeCommit. To retrieve the access key ID and secret access key, you can refer to this AWS document: Manage access keys for IAM.
Optional: You can choose Link existing test execution results with test cases having the same paths and names. This option allows TestOps to attach existing test run results to the uploaded test cases and test suites that has the same paths and names.
For example:
You have an existing test run results from the Login test case in the Test Cases/Common Test Cases folder. By default, if this test case is not from an uploaded Git test project, its test results are in the Uploaded Data folder in the Test Management tab.
You upload a Git repository that also has a Login test case in the Test Cases/Common Test Cases folder.
You check the Link existing test execution results with test cases having the same paths and names option.
Once the Git repository is connected successfully, in the Test Management tab, you can see the existing test results of the Login test case in the <your-git-repo-name>/Test Cases/Common Test Cases folder.
Click Connect.
The following sections appear:
Branch: choose a branch.
Name: enter your project name.
Description: enter your Git project description (optional).
Click Create.
You have successfully uploaded your test scripts from a Git repository to Katalon TestOps. Next, you can start managing your test scripts in Katalon TestOps.
Sync your Git repository latest versions to Katalon TestOps
After you have linked your Git repository to Katalon TestOps, later on you can sync the latest version of your Git repository to Katalon TestOps.