qTest Integration with Testsigma


qTest is a manual test management tool. With qTest integration in Testsigma, you can link qTest test cases to Testsigma test cases and export Testsigma run results to qTest. This article discusses integrating qTest with Testsigma.


Prerequisites

Before you begin, ensure that:

  1. You have a valid Host URL, Username, and Password from TestRail.
  2. You have referred to the documentation on creating test cases.
  3. You have referred to the documentation on creating test plans.

Steps to Integrate Testsigma with qTest

  1. From the left navigation bar, go to Settings > Integrations. Integrations
  2. Enable toggle on qTest widget. qTest Widget
  3. On the qTest Details dialog, enter Host URL and Bearer Token. qTest Details
  4. Click Save & Enable. Save qTest Details
NOTE:
  1. You must obtain the Bearer Token from the Download qTest Resources page. For more information, see qTest Documentation. Bearer Token
  2. Please copy the token except Bearer.

  1. Open the test case in qTest and copy its ID. qTest ID
NOTE:

Before mapping qTest test cases in Testsigma, ensure you have a project, test runs, and test cases set up in qTest.

  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. Select a qTest Project from the dropdown menu, enter the qTest ID in the input box, click the link icon. Mapping qTest Cases Follow steps 1–3 for each qTest test case you want to map in Testsigma.

qTest Automation Settings

In qTest, activate Automation Integration and map automation statuses accordingly. For more info, see Automation Settings.

Automation Status Mapping

Automation Status qTest Status
PASSED Passed
FAILED Failed
INCOMPLETE Incomplete
BLOCKED Blocked

Make sure that the above mentioned statuses are correctly mapped within qTest to maintain consistency in test result tracking.

qTest Automation Settings


Steps to Execute Test Plan

  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 qTest Addon from the Post Plan Hook dropdown menu. qTest Post Plan Hook
  3. Enter the following details in the respective text boxes:

    • API_KEY: Testsigma API Key (For more information, see Settings > API Keys).
    • RELEASE_ID: ID of the qTest Release.
      Click Release & copy the numeric value after id= in the URL, which is your Release ID. Release ID
    • CYCLE_ID: ID of the qTest Cycle.
      Click Cycle & copy the numeric value after id= in the URL, which is your Cycle ID. Cycle ID
    • OVERRIDE_ON_RERUN: Set to true/false.

      • true: On test plan rerun, pushes results into the original qTest cycle.
      • false: Creates a new cycle with Rerun #num appended to the original cycle name.
    • PROJECT_ID: ID of the qTest Project.
      Click Project & copy the numeric value after /p/ in the URL, which is your Project ID. Project ID
    • TEMPLATE_URL: URL of the JUnit template file used to configure result data for the Testsigma test plan run. (This is an optional field and is required only if customization is needed. For customization requests, contact support@testsigma.com.) Addon Details
    NOTE:
    • The Template URL must be publicly accessible.
    • If the Release ID and Cycle ID are not provided when triggering the execution, Testsigma automatically generates them in qTest for the execution.
  4. Go to Test Plans and click Run Now to execute the test plan. A duplicate test run is created, and results are displayed upon completion. Run Test Plan
  5. Click qTest Result Link in the top right corner to navigate to the qTest run results. qTest Result Link

Trigger qTest Test Plans Using APIs

You can also trigger qTest test plans 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

  • Build Number: The unique identifier for the qTest execution.
  • Hook Data: Includes the following parameters:

    • Testsigma API Key: Copied from Settings > API Keys in Testsigma.
    • Project ID: The project ID from qTest.
    • 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.

Here's a quick GIF demonstrating steps to trigger qTest test plan using APIs.

qTest GIF