Test Case Type
This metric returns the type of the test case. A test case is either a baseline, equivalence, or simulation test.
Baseline tests compare outputs from a simulation to expected results stored as baseline data.
Equivalence tests compare the outputs from two different simulations. Simulations can run in different modes, such as normal simulation and software-in-the-loop.
Simulation tests run the system under test and capture simulation data. If the system under test contains blocks that verify simulation, such as Test Sequence and Test Assessment blocks, the pass/fail results are reflected in the simulation test results.
The metric includes only test cases in the project that test the model or subsystems in the unit for which you collect metric data.
To collect data for this metric:
In the Model Testing Dashboard, click a widget in the section Tests by Type to display the results in a table.
getMetricswith the metric ID
Collecting data for this metric loads the model file and test files and requires a Simulink® Test™ license.
For this metric, instances of
Value as one of these integer outputs:
0— Simulation test
1— Baseline test
2— Equivalence test