This script migrates test cases from TestRail to Testomat.io via API.
You are free to customize this script if the default behavior doesn't fit your needs.
- Ensure NodeJS 20+ is installed
- Clone this repository
- Copy
.env.example
to.env
cp .env.example .env
- Fill in TestRail credentials into
.env
file - Create General Token in Testomat.io
- Fill in Testomat.io credentials into
.env
file
TESTOMATIO_TOKEN=testomat_****
TESTOMATIO_PROJECT=**
TESTOMATIO_PROJECT
is a project URL part, e.g. forhttps://app.testomat.io/projects/your-project
it isyour-project
- Install dependencies
npm i
- Run script
npm start
To enable more verbose output you can add debug flags via DEBUG=
environment variable:
DEBUG="testomatio:testrail:in"
- print all data coming from TestRailDEBUG="testomatio:testrail:out"
- print all data posting to Testomat.ioDEBUG="testomatio:testrail:migrate"
- print all data processingDEBUG="testomatio:testrail:*"
- print all debug information
DEBUG="testomatio:testrail:*" npm start
We keep this repository public, so you could customize the data you import.
Update migrate.js
script to customize how sections, suites, and cases are obtained. You can customize the way how steps are transformed or test descriptions.
Update the following file and run the script.
MIT