How-to
Migration from TestRail
Migration from TestRail
Migration from TestRail imports a TestRail project into ComplexQA through the TestRail API. The background import creates a new ComplexQA project and can include runs and results.
Role: team administrator. Other roles see an access denied message.
Before you start
- Sign in on your team subdomain.
- Confirm that your role in the team is Administrator.
- In TestRail, open Admin > Site Settings > API.
- Enable the API and save the settings.
- Open My Settings > API Keys.
- Create an API key and select Save Settings.
The import always creates a new ComplexQA project named after the TestRail project. You do not need to prepare an empty destination project.
What is imported
| TestRail element | ComplexQA element | Notes |
|---|---|---|
| Project | New project | Created when the job starts |
| Suite | Root test suite | One root suite for each TestRail suite |
| Section | Nested test suite | Parent sections preserve the tree |
| Case | Test case | Includes title, references, preconditions, priority, and estimate |
| Step | Test case step | Text and expected result are imported when available |
| Run | Test run | Imported when runs and results are enabled |
| Result | Test run result | Linked to an imported case when possible |
Start the migration
- Open
/migrations/enon your team subdomain. - Select New TestRail import.
- Enter the TestRail Base URL as the host, without
/index.phpor/dashboard. - Enter the email address used for your TestRail account.
- Enter the TestRail API key value or your account password.
- Select Connect.
- Select a TestRail project.
- Optional: enable Import runs and results.
- Select Start import.
ComplexQA creates the job and a new project. If an active job already imports the same TestRail project, ComplexQA opens that job instead of creating a duplicate.
Monitor the job
The import page shows:
- Status:
PENDING,RUNNING,PAUSED,COMPLETED,FAILED, orCANCELLED. - Current phase.
- Completed, skipped, and failed counters by element type.
- Recent failures for individual elements.
Use Pause and Resume to control processing. Use Cancel to stop the job and clear its stored API credentials. Use Refresh to load the latest counters.
Processing continues while you leave the page. Return to the job from the migrations list.
When the status is COMPLETED, open Projects and review the new project.
Limits
- TestRail steps remain text-oriented. Structured fields such as
step_elementandstep_element_actionstay empty. - Attachments, shared steps, plans, and other TestRail-only objects are not imported.
- One job imports one TestRail project into one new ComplexQA project.
- A resumed job skips elements already recorded for that destination project.
- Large projects are processed in background chunks.
Resolve HTTP 401
An HTTP 401 response means TestRail rejected the credentials.
- Confirm that the API is enabled under Admin > Site Settings > API.
- Confirm that you selected Save Settings after creating the API key.
- Enter the account email and the API key value, not the key name.
- Try the account password in the same field to confirm that the login works.
- Confirm that Base URL contains only the TestRail host.
Do not share an API key in chat or support requests. Revoke and recreate an exposed key.
Did this page help?