Skip to main content
Version: current

Upload test scripts from the Git repository to Katalon TestOps

To perform test execution in Katalon Platform, you need to upload test scripts to Katalon TestOps from a Git repository. This allows you to manage version control and synchronization of your test project between different modules in Katalon Platform.

Katalon allows 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.

Upload test scripts from a Git repository

  • 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:
  1. Sign in Katalon TestOps and go to the project you want to upload the test scripts to.
  2. Go to Configurations > Script Repositories. Click Create Git Script Repository.
  3. Fill in the following information:
    • Source Type: 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.
    • Repository URL: enter the URL of your Git script repository.

      If you choose AWS CodeCommit, you can refer to this AWS document to retrieve the repository URL: Step 4: Connect to the CodeCommit console and clone the repository.

    • Username: enter your Azure Repos / Bitbucket / GitHub / GitLab / AWS CodeCommit username.
    • Personal Access Token: enter your personal access token (PAT). To create a PAT, you can refer to the following documents:
    • Access Key ID & Secret Access Key: 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.
  4. 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.

  5. Click Connect.

    The following sections appear:

    • Branch: choose a branch.
    • Name: enter your project name.
    • Description: enter your Git project description (optional).

  6. 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.