Skip to content
Testsigma DOCS

Integrations

TestRail Integration with Testsigma


You can integrate Testsigma with TestRail to streamline test management and track progress. TestRail enhances visibility into test coverage, requirements, and release readiness, helping teams stay aligned and deliver high-quality products. With this integration, you can execute tests efficiently, generate detailed reports, and manage bugs discovered during testing, ensuring a seamless testing process. This article discusses integrating Testrail with Testsigma.


Prerequisites

Before you begin, ensure that:


Steps to Integrate Testsigma with Testrail

Section titled “Steps to Integrate Testsigma with Testrail”
  1. From the left navigation bar, go to Settings > Integrations. Integrations

  2. Enable toggle on Testrail widget. Enable TestRail

  3. On the Testrail Details dialog, enter Host URL, Username, and Password. Enter TestRail Details

  4. Click Save & Enable. Save


Section titled “Steps to Link Testrail ID with Testsigma Test Case”
  1. Open the test case in TestRail and copy its ID. TestRail Test Case ID
  1. Navigate to the test case you want to link in Testsigma and select Manage Test Case from the Utility Panel. Manage Test Case

  2. Enter the TestRail ID in the input box and click the link icon. Link TestRail IDs

    Follow steps 1-3 for each TestRail test case you want to map in Testsigma.

Here’s a structured hierarchy flow of test case linkage between Testsigma and TestRail, including Test Case IDs. TestRail x Testsigma


  1. After linking the test cases in Testsigma, create a test suite with the linked test cases and add it to a test plan.

  2. In the Test Plan Settings, select Standard TestRail Addon from the Post Plan Hook dropdown menu.
    Post Plan Hook

  3. Enter the project name in the PROJECT_NAME text box. Project Name

  1. Go to Test Plans and click Run Now to execute the test plan. This will create a duplicate of the test run and display the result once the execution is complete. Test Plan Execution
  1. Click on the TestRail Result Link in the top right corner to navigate to the run result. The result will be displayed along with the Run ID created in Testsigma. TestRail Link

You can also trigger TestRail test runs using APIs. Click here to download the Postman collection.

a. Authorization: Bearer Token (copied from Settings > API Keys in Testsigma).

b. Provide the following details in Request Body

  • TestRail Run ID: The unique identifier for the test run in TestRail.

  • Hook Data: Includes the following parameters:

    • Testsigma API Key: Copied from Settings > API Keys in Testsigma.

    • Project Name: The name of the project associated with the test execution.

    • Template URL: The URL of the template JUnit file used to configure result data.

  • Title: Provide a title.

  • Execution Lab: Specifies the execution environment or lab used for running the test cases.