CI/CD Rules

(QTM) provides the ability to trigger automation jobs/pipelines for CI/CD tools with a single click. Testers can save remote CI/CD pipeline jobs and launch the jobs directly from QTM. Testers can select and map a configured rule to a test suite, then trigger the pipeline job and automate the uploading of the results after the successful execution of the job. This feature enables all testers to participate in test automation and also reduces the overhead of navigating between multiple tools by automating the testing process and reporting results.

In QTM, users can create and trigger Automation Rules from the Integration and Test Suites modules. Rules added to a project are accessible to all its users.

→ Required Permissions: Users should have CICD Rule view, manage, delete, and execute permissions.

Create a CI/CD Rule in QTM for Jenkins

You can configure CI/CD Rules in the Integration module and Test Suites module of QTM. This section describes configuring the CI/CD Rule from the Integration module. For details about configuring CI/CD Rules from the Test Suites module, refer to Trigger CI/CD Rule from the Test Suites module.

Note

QTM just facilitates the triggering of builds to the CI/CD tools. The resultant action or outcome of triggering the build, including the import of test results back to QTM, is not part of the feature. Though you can import the results back to QTM using multiple methods when configured as part of the Job. Multiple methods are Jenkins Plugin, Maven Plugin, etc.

Steps

  1. In QTM, go to the Integration module.

  2. Open the CI/CD Rules section.

  3. Click the Create New Rule button on the right screen.

    CI/CD Rules page under Integrations with no existing records. The "+ New" button in the top-right corner is highlighted for creating a new rule.

    The New Rule screen opens with the parameter fields on it.

  4. Enter the following parameters to configure an automation job to be triggered in the CI/CD tool.

    Parameter

    Description

    Name

    Enter your preferred name for the rule.

    Webhook URL

    Enter the Webhook URL. For Jenkins, refer to How to Construct Webhook URL?

    Query Params and Value

    Enter the required Query Param and its value.

    For example, TestCycleKey, TestCaseFolderId, TestCycleFolerId, and so forth.

    After adding the Query Params and its value, click the Add button after entering Query Params and its value. The entered details will be displayed below the fields.

    Headers and Value

    Enter Headers and values, for example: Authorization. For Jenkins, refer to Authorization.

    After entering Headers and their values, click on the Add button after entering Header and its value. The entered details will be displayed below the fields.

    Mask Value on Create/Update:

    Enabling this option (by clicking on the checkbox) ensures that the parameter value is hidden and displayed as asterisks when creating or editing a CI/CD rule.

    By default, this checkbox is automatically selected if the system identifies keywords like Authorization, Token, PAT, or API KEY in the Header name. This smart detection helps safeguard commonly recognized sensitive parameters.

    HTTP-Method

    Select HTTP-method from POST/GET/PUT.

    For example, the remote build trigger API for Jenkins is POST.

    Webhook Body

    Select Raw/JSON/None from the drop-down menu and enter the Webhook Data or request body in the field accordingly.

    Mask value on Create/Update: When creating or editing a Webhook URL, enabling this option (by clicking on the checkbox) ensures that the parameter value is hidden and displayed as asterisks.

  5. Click Create to save the configuration for Jenkins.

Mask Value on Create/Update

Use case: When configuring a CI/CD rule using a WebHook URL, the authorization token values are masked after the initial save, safeguarding sensitive information against unauthorized access or misuse.

Note

  • Enabling this checkbox makes the actual values inaccessible after the initial save.

  • The saved token cannot be viewed or accessed; users can only delete or overwrite it.

  • Both new and previous values in the audit history will be masked for the relevant parameters.

The following are examples of triggering a build without parameters, triggering a build with query parameters, and triggering a build with raw parameters.

  • CI/CD Rule Without Parameters

    CI/CD Rule configuration screen showing fields such as Name, Webhook URL, Query Params, Headers, HTTP Method, Webhook Body, and options like "Mask Value on Update." A tip at the bottom explains that masked values cannot be viewed after saving.
  • CI/CD Rule With Query Parameters

    CI/CD Rule configuration screen showing Webhook URL, Query Params, Headers, HTTP Method, Webhook Body, and an option to mask values on update. Example query parameters like token=QTM and PMBoolean=False are included.
  • CI/CD Rule With JSON Parameters

    CI/CD Rule configuration screen showing Webhook URL, Query Params, Headers, HTTP Method, and Webhook Body set to JSON. Parameters include token=QTM and booleanPM=false.

Once the CI/CD Rule is configured, you can:

  • Trigger CI/CD Rule from the Integration module

  • Trigger CI/CD Rule from the Test Suites module

Trigger CI/CD Rule from the Integration module

The configured CI/CD rules are displayed in the CI/CD Rules section of the Integration module.

Click the Trigger icon for the rule using which you want to trigger a job in Jenkins.

CI/CD Rules list view showing rule keys, names, webhook URLs, created by details, status toggles, and trigger icons for execution.

The success message appears on the screen. Now, check in the CI/CD tool in which the build has been triggered.

Trigger CI/CD Rule from the Test Suites module

You can create and trigger CI/CD Rules from the Test Suites module as well. The details of CI/CD Rules will be displayed in the Change Logs tab of the test suite.

When a build is triggered from the test suite, all the related actions are captured in the Change Logs. This helps testers track which CI/CD Rule was triggered from which test suite.

Steps

  1. Go to the Test Suites module.

  2. Open the test suite detail page.

  3. Click the Trigger CI/CD Rule button at the top of the screen.

    Test Execution screen showing test suite with highlighted “Trigger CI/CD Rule” button.

    The Select CI/CD Rule panel opens.

If the CI/CD Rule is not configured from the Integration module:

If you do not have the CI/CD Rule configured in the Integration module of QTM, and you click on the Trigger CI/CD Rule from the Test Case Details page, the Select CI/CD Rule panel opens blank without any records of CI/CD Rule on it. You can create CI/CD Rules from the Test Suites module.

Create a CI/CD Rule from the Test Suites module

Steps

  1. Go to the Test Suites module.

  2. Open the Test Suites Details page.

  3. Click the Trigger CI/CD Rule button at the top of the screen.

    The Select CI/CD Rule screen opens.

To create a new rule from the Test Suites module, click the New button.

CI/CD rule selection screen showing option to create a new rule with “+ New” button highlighted.

The New Rule screen opens.

Perform the same steps described in Create a New Rule in QTM for creating a new CI/CD Rule.

Once the rule is added, it is displayed on the Select Rule screen.

The same CI/CD Rule also reflects in the Integration module.

Once the CI/CD Rules are created either in the Integration module or in the Test Suite module, you can view the summary of the configured rule on the screen.

Click the Key to view more configuration details for the rule.

The configuration details for the rule are displayed on the screen.

You can also make the required changes in the configuration from this screen.

Any changes made in the CI/CD rule configuration here in the Test Suites module will also be synced in the Integration module.

Trigger CI/CD Rule from Test Suite

To trigger the CI/CD rule, click the rule linked with the test suite.

Test Execution screen of a Regression test suite showing a linked CI/CD rule button (Jenkins_QTM).

The CI/CD Rule name gets replaced with the Success label for a while.

Test Execution screen of the Regression test suite showing a green success banner indicating CI/CD rule execution was successful.

Trigger CI/CD Rule from Test Suite List View

Once linked to the test suite, you can also trigger the CI/CD Rule for it from the list view of the Test Suites module.

Test Suites list view showing the CI/CD rule trigger icon highlighted for the Regression test suite.

Edit CI/CD Rule from Test Suite

You can edit the rule configuration details by clicking the Edit icon for the linked CI/CD Rule on the Test Suite Details page. Any changes made in the CI/CD Rule configuration here in the Test Suites module will also be synced in the Integration module.

Test Execution screen of a Regression test suite showing the CI/CD rule link with an Edit icon highlighted.

Change Logs in Test Suite

When a build is triggered from the test suite, all the related actions are captured in the Change Logs. This helps testers track which CI/CD Rule was triggered from which test suite.

Open the Test Suite Details page and open the Change Logs tab.

The Change Logs tab displays all the actions taken for the CI/CD Rules linked to the current test suite.

Change Log tab of a Regression test suite showing actions related to CI/CD rule linking, unlinking, and triggering.

View Details and History

Once the CI/CD Rule is configured, it displays in the CI/CD Rules section of the Integration module.

Click the Key of CI/CD Rule on the screen to view more details about the rule.

The next screen opens with two tabs on it: Details and History.

Details Tab:

The Details tab shows configuration details for that CI/CD Rule. You can also edit/delete details from the screen.

CI/CD Rule details page showing name, webhook URL, and query parameters with values.

History Tab:

The History tab shows the audit logs for the actions performed on the CI/C Rule in the Integration module and in all the test suites with which the rule is linked. The details include Actor, Action, Field, Entity ID, Old Value, New Value, and Date.

When a build is triggered from the test suite, all the related actions are also captured in the History tab. This helps testers track which CI/CD Rule was triggered from which test suite.

CI/CD Rule history tab showing actions performed on the rule, including updates, triggers, and changes in field values.

Disable a CI/CD Rule

You can disable the active CI/CD Rule from the Integration module. Once the rule is disabled, it can not be used to trigger a build to the CI/CD tool from the Integration and Test Suites module. When the rule is disabled, the Trigger icon will be disabled in the Integration module. In the Test Suites module, the disabled rule will not be shown on the Select Rule screen to link with the test suite.

Steps

  1. Go to the Integration module.

  2. Open the CI/CD Rules section.

  3. Turn the Status inactive for the rule that you want to disable.

    CI/CD Rules list view showing rules with their keys, names, webhook URLs, creators, and status toggles. One rule is inactive, and another is active.

    The CI/CD Rule turns disabled/inactive.

Edit CI/CD Rule from CI/CD Section

You can edit a CI/CD Rule from the Integration module.

Steps

  1. Go to the Integration module.

  2. Open the CI/CD Rules section.

  3. Click the config icon and select Edit for the rule that you want to edit.

    CI/CD Rules list view showing an expanded action menu for a rule with options to Edit or Delete.

    The Details page opens. Make the required changes and click the Update button.

Delete a CI/CD Rule

You can delete a CI/CD Rule from the Integration module. If the rule is linked with any of the test suites, then all the references with the associated test suite will be removed upon the deletion of the rule.

Steps

  1. Go to the Integration.

  2. Open the CI/CD Rules section.

  3. Click the config icon and select Delete for the rule that you want to delete.

    CI/CD Rules list view with the action menu expanded, showing the Delete option for a selected rule.

    The confirmation message pops up.

  4. Click Yes to proceed.

Refer to the following pages for details on the configuration of the CI/CD tools.

Publication date: