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

  1. Sign in on your team subdomain.
  2. Confirm that your role in the team is Administrator.
  3. In TestRail, open Admin > Site Settings > API.
  4. Enable the API and save the settings.
  5. Open My Settings > API Keys.
  6. 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 elementComplexQA elementNotes
ProjectNew projectCreated when the job starts
SuiteRoot test suiteOne root suite for each TestRail suite
SectionNested test suiteParent sections preserve the tree
CaseTest caseIncludes title, references, preconditions, priority, and estimate
StepTest case stepText and expected result are imported when available
RunTest runImported when runs and results are enabled
ResultTest run resultLinked to an imported case when possible

Start the migration

  1. Open /migrations/en on your team subdomain.
  2. Select New TestRail import.
  3. Enter the TestRail Base URL as the host, without /index.php or /dashboard.
  4. Enter the email address used for your TestRail account.
  5. Enter the TestRail API key value or your account password.
  6. Select Connect.
  7. Select a TestRail project.
  8. Optional: enable Import runs and results.
  9. 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, or CANCELLED.
  • 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_element and step_element_action stay 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.

  1. Confirm that the API is enabled under Admin > Site Settings > API.
  2. Confirm that you selected Save Settings after creating the API key.
  3. Enter the account email and the API key value, not the key name.
  4. Try the account password in the same field to confirm that the login works.
  5. 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.

Version 1.1.1 · Last updated 2026-09-11

Did this page help?