TestRail integration
Show Tests run results in your TestRail project
TestRail integration allows you to link a test in TestRail to a test in Testim. The test run results will automatically be shown in TestRails giving you full visibility to both your manual test results as well as your automated tests in a single view.
Disconnecting the integration will lose all links.
Setting TestRail integration
This process is required only once.
- Navigate to "Settings", and then to "Integration" tab.
- Click "login" to TestRail link.
- Open TestRail, copy the domain from the URL (make sure you are logged in) and paste it into the URL field. The URL structure should be https://.testrail.io/, where projectName is available in TestRail URL. For example, the projectName in the account below is ranhadar1
- Enter your TestRail username.
- Log into TestRail as Admin user, navigate to "My Settings" and then to "API Keys" tab. Click "Generate Key", enter any key name, copy the generated string and click "Save settings". Paste this key into the ApiKey field.
- Click "Connect"
- Choose the TestRail projects to connect to.
At this point Testim is associated to a project in TestRail, but not mapped to a specific test.
Important Note
You may connect one TMS (Test Management System) at a time. So, if your Testim system is already connected to another TMS, you will need to disconnect this TMS first and only then connect TestRail. Note that by disconnecting the TMS, you will remove the connections between the tests. So, if you want to connect to the previous TMS again you will have to recreate the connections as well.
Connecting a test in Testim to a TestRail test
- Open the test you would like to connect to a TestRail test
- In the setup steps' properties panel, choose the TestRail project and test to connect to
- save the test
After running the test, the result will be presented in the relevant TestRail project under the "Test run and results" tab.
Pass custom parameters to TestRail for a specific run
As part of a CLI run , you are able to add any custom parameters that can be consumed by TestRail, for example:
- version
- executed_by
The JSON should be as followed:
{
"executed_by": "rannn505",
"version" : "v1"
}
In order to pass these parameters use the --tms-field-file flag as part of your CLI command. The flag should be followed by a JSON file path that will contain the parameters and their values.
For example:
--tms-field-file [tms-field-file.json]
Note:
- Testim runs names will always follow this convention :
"Report from Testim.io - Suite\Test name" - Only remote runs results will be shown in TestRail (local runs will not be shown).
- Suite runs will be presented as one run in TestRail, click the certain run in order to see the results of all tests in the suite.
- Mandatory custom fields in TestRail are not supported. Making a custom field on TestRail mandatory may cause the integration to stop working.
Updated 12 months ago