Skip to content

This repository contains a sample code of using TestOps public APIs to migrate external issues.

Notifications You must be signed in to change notification settings

katalon-studio/katalon-external-issue-migration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Katalon external issue migration

Overview

This Python script offers the ability to migrate external issues, such as requirements and Xray tests, from test cases in one script repository to another based on the test case name.

Technically, the script utilizes the public APIs of Katalon, which can retrieve test cases and external issues, then update the relationship between test cases and external issues as needed.

Note

  • This app is written on Python 3.9.
  • Page size of Get Test Case endpoint is 300.
  • Provided data will not be stored.

Usage

  1. Creating a .env file with the below params

    • username: Your username that is used in Katalon
    • apiKey: Your valid API key that is created in Katalon
    • hostURL: Your Katalon server
    • projectID: Your Katalon project ID
    • sourcePath: The directory of test cases in your legacy repository
    • destinationPath: The directory of test cases in your current repository
    • sourceRepoID: Your legacy repository ID (Leave this param blank if your source repository is Uploaded Data folder)
    • destinationRepoID: Your current repository ID (Leave this param blank if your destination repository is Uploaded Data folder)
  2. (Optional) Set up your vitural environment

    python3 -m venv venv

    source venv/bin/activate

  3. Install dependencies

    pip3 install -r requirements.txt

  4. Trigger the script

    python3 main.py

About

This repository contains a sample code of using TestOps public APIs to migrate external issues.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages