https://github.com/katalon-studio/katalon-external-issue-migration
This repository contains a sample code of using TestOps public APIs to migrate external issues.
https://github.com/katalon-studio/katalon-external-issue-migration
Last synced: 5 months ago
JSON representation
This repository contains a sample code of using TestOps public APIs to migrate external issues.
- Host: GitHub
- URL: https://github.com/katalon-studio/katalon-external-issue-migration
- Owner: katalon-studio
- Created: 2024-03-05T02:41:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-07T05:06:28.000Z (over 1 year ago)
- Last Synced: 2025-02-17T09:35:03.698Z (8 months ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.txt4. Trigger the script
> python3 main.py