Create and manage test assignment rules

Create test assignment rules to automatically assign application modules, test owners, and test fields to automated tests, using filter conditions.

Introduction

You can use test assignment rules to automatically populate automated tests with various details, based on filter conditions. This enables ALM Octane to incorporate automated test run results that it collects from automation servers or other sources into the product quality analysis.

When an automated test matches your filter criteria, the following information can be automatically assigned to the test:

  • Application module

  • Test owner

  • Test framework

  • Test type

  • Test level

  • Testing tool

This topic describes how to manage test assignment rules from the ALM Octane settings area. For details on managing test assignment rules from the Tests tab, see Create and manage rules to assign automated tests.

If a default setting was configured in Topology > Job configuration > Test fields, the default setting overrides the assignment rule.

Create test assignment rules

Each rule can assign one or more of the fields listed above, to the tests that match your filter criteria.

  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. Specify one or more of the following:

    • The application modules to which you want to assign automated tests.

    • A test owner to assign to the tests.

    • The test fields you want to assign (test framework, type, level, and testing tool).

  6. 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.

  7. 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.

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

  8. Click Save.

    Application module and test owner settings affect both 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.

    Automated test fields (test framework, type, level, and testing tool) affect future runs, and are updated according to the latest run.

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

In the DevOps tab, select Test Assignment Rules.

  • To edit a rule, click the rule ID link and modify its definitions as described above.

  • To sort, filter, group, delete, and export rules, use the toolbar options similar to other entities in ALM Octane grids.

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: