Create and manage test assignment rules

Test assignment rules automatically assign automated tests to application modules and test owners using filter conditions. This enables ALM Octane to incorporate automated test run results it collects from automation servers or other sources into the product quality analysis.

This topic describes managing test assignment rules from the ALM Octane settings area. DevOps admin permissions are required.

For details on managing test assignment rules from the Tests tab, see Create rules to assign automated tests.

Create test assignment rules

Each rule can assign tests to application modules, a test owner, or both.

  1. In Settings , click Spaces and select a workspace.

  2. Click the DevOps tab. On the left side of the pane, select Test Assignment Rules.

  3. Click + to add a rule.

  4. Give the rule a meaningful name. For example, EndToEndTests.

  5. Select the application modules to which you want to assign automated tests.

  6. Select a test owner to assign to the tests.

  7. Click Add filter to add conditions based on the values of the following fields: Class name, Component, Name, and Package.

    Filters can be multipart and complex and can include '*' as a wildcard. If necessary, click the Add filter button multiple times to add multiple items to the filter.

    Example:  

    • Name is equal to EndtoEnd*
    • Component is not equal to *Internal

    All conditions must be met for the rule to assign the selected values to an automated test.

  8. Select whether the rule should assign application modules and a test owner even if those fields already have values, or only if they are empty.

  9. As you edit the rule, you can see how many currently existing tests will be modified once you save the rule.

    Click Save. The rule affects all current and future tests that match the filter. This includes tests currently in the system, as well as new automated tests detected in pipelines in the future.

Back to top

Run test assignment rules

Test assignment rules run automatically: 

  • When a rule is saved.

  • Each time a new automated test is discovered.

Note: You cannot run a rule manually.

Back to top

Manage test assignment rules

You can edit, sort, filter, group, delete, and export rules, similar to other entities in ALM Octane grids.

For example:

When trying to understand why some tests are not properly being assigned, group or sort the rules according to the properties in the rule's filter. Then compare the properties in the rules to the properties of the test.

Back to top

See also: