Main Content

Test Case Tag

Metric ID

TestCaseTag

Description

This metric returns the tags for a test case. You can add custom tags to a test case by using the Test Manager.

Computation Details

The metric includes only test cases in the project that test the model or subsystems in the unit for which you collect metric data.

Collection

To collect data for this metric:

  • In the Model Testing Dashboard, click a widget in the Tests with Tag section to display the results in a table.

  • Use getMetrics with the metric ID TestCaseTag.

Collecting data for this metric loads the model file and test files and requires a Simulink® Test™ license.

Results

For each test case, the metric returns a metric.Result object with properties including:

  • Value — Name of the test case tag or tags, returned as a character vector or cell array of character vectors. If a test case does not have tags, the metric returns ''.

  • Scope — Structure with information about the test case.

See Also

Related Topics