How do I migrate test cases from Xray to Testomat?
Migrating from Xray is a two-stage process, and the test IDs are what keep your CI results from duplicating.
Convert your Xray tests to CSV
Section titled “Convert your Xray tests to CSV”Follow the migrate-xray script. It pulls your test cases through the Xray API and converts them to a Testomat.io-compatible CSV.
Import the CSV
Section titled “Import the CSV”In your project:
- Go to the Imports tab
- Import from CSV
- Choose Testomat.io from the dropdown (not XRay - that option just shows you the script instructions).
- Select the file the script generated and click Create.
Full walkthrough with screenshots: https://docs.testomat.io/project/import-export/import/import-tests-from-xray/
Link your automated tests to the imported cases
Section titled “Link your automated tests to the imported cases”Run check-tests with --update-ids against your test code:
npx check-tests <framework> "<test file pattern>" --update-idsThis writes the Testomat.io test IDs into your test files. From then on, when CI runs those tests, the reporter sends results to the existing test cases instead of creating new ones — that’s what prevents duplication.
Keep it in sync
Section titled “Keep it in sync”Add the same command to CI so new tests get IDs automatically on every push to main: https://docs.testomat.io/project/import-export/import/auto-import/