The TestRail integration allows you to connect Ranorex Studio and TestRail.
- Import and export TestRail test suites and test cases.
- Synchronize changes between Ranorex Studio and TestRail.
- Run tests in Ranorex Studio (or via CI) and automatically export results to TestRail when reporting is enabled.
- Optionally, upload evidence (screenshots, Ranorex reports) to TestRail as part of reporting.
Getting started
Before you connect Ranorex Studio to TestRail, confirm that TestRail is configured correctly. Refer to the relevant sections of the Integrating with Ranorex for more information.
Configuring TestRail
Enable API
TestRail’s API needs to be enabled so Ranorex Studio and TestRail can interact.
- In TestRail, go to Administration > Site Settings > API.
- Enable Enable API.
Permissions
Being an admin gives you the permissions to set up the integration (to manage all the Add/Edit Cases and Sections, Suites, Add/Edit Test Results, Add/Edit Attachments, Add/Edit Runs & Plans). Other users will need to be permitted these actions.
Depending on how you use the integration, the TestRail user account must have certain permissions.
To set them, go to Administration > Users & Roles and create a role with the appropriate permissions or change the permissions of an existing role.
- Import into Ranorex Studio: No permissions are required.
- Export to existing projects: Add/Edit Cases & Sections, Suites.
- Export to new projects: You need to be an admin on TestRail.
- Report results to an existing TestRail run: Add/Edit Test Results, Add/Edit Attachments.
- Report results to a new TestRail run: Add/Edit Runs & Plans, Add/Edit Test Results, Add/Edit Attachments.
Automation Type field
Ranorex Studio imports and synchronizes only TestRail cases that are marked as automated for Ranorex.
- TestRail 5.5 and later: The Automation Type drop-down field is already present by default. Simply set it to Ranorex.
- TestRail 5.4 and earlier: You will need to add a custom field to the user interface for importing and exporting to work correctly.
- Go to Administration > Customizations > Case Fields
- Add a field with the following values:
- Label: Automation Type
- System Name: automation_type
- Type: Dropdown
- Click Add Projects & Options and specify Ranorex as Option 1. Click the Selected Projects tab and apply the field to your projects.
- Under the Configure Options, ensure Ranorex id is 1, and the Default Value is None.
Required custom fields
If your TestRail project uses required custom fields, ensure required fields have default values. Otherwise, export/sync can fail because Ranorex Studio cannot infer which value to populate.
Fixing this error is explained in Importing, exporting, synchronizing.
Synchronization modes
Ranorex Studio supports two synchronization modes:
- Manual synchronization: You trigger synchronization from the integration UI when you decide it’s needed.
- Automatic synchronization: Ranorex automatically pushes run results to TestRail after execution when enabled.
Automatic synchronization can be enabled:
- From the TestRail integration settings, or
- In the wizard at the end of an import (Import complete).
For details, see:
- Running tests and reporting to TestRail (how reporting works)
- Importing, exporting, synchronizing (what is synchronized and when)
TestRail run naming (to prevent duplicates)
When Ranorex creates or updates runs in TestRail, it uses a standardized run name format so you can distinguish runs clearly and avoid confusing duplicates:
Format[Ranorex Test Suite Name] - [Ranorex Test Run Timestamp] - [Environment/Configuration]
ExampleRanorex_Smoke_Chrome - 2025-06-12_16-26-32 - QA_Environment
TestRail Wizard
- In Ranorex Studio, open the solution you want to work with.
- Go to Tools > TestRail integration > Start TestRail wizard.
- In Connect to TestRail, enter:
- Server address
- Credentials
- Click Sign in.
After signing in, the wizard takes you to Import/Export, where you can import, export, and set up the connection. See Importing, exporting, synchronizing.
Next steps
- Import/export and configure mapping: Importing, exporting, synchronizing.
- Run tests and report results (including evidence uploads): Running tests and reporting to TestRail.
- Team workflows and source control: Collaboration.
- TestRail YAML Connection Credentials.