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.
-
Creating a .env file with the below params
username
: Your username that is used in KatalonapiKey
: Your valid API key that is created in KatalonhostURL
: Your Katalon serverprojectID
: Your Katalon project IDsourcePath
: The directory of test cases in your legacy repositorydestinationPath
: The directory of test cases in your current repositorysourceRepoID
: 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)
-
(Optional) Set up your vitural environment
python3 -m venv venv
source venv/bin/activate
-
Install dependencies
pip3 install -r requirements.txt
-
Trigger the script
python3 main.py