Model Test Status
Metric ID
slcomp.mt.TestStatus
Description
This metric returns the status of the model test result. A model test can have a status of either:
Passed
Failed
Disabled
Untested
Computation Details
The metric:
Includes only simulation tests in the project that test the model or subsystems in the unit for which you collect metric data.
Does not count the status of tests that run in software-in-the-loop (SIL) or processor-in-the-loop (PIL) mode. The metric shows these tests as untested.
Collection
To collect data for this metric, use the function getMetrics
with
the metric ID slcomp.mt.TestStatus
.
Collecting data for this metric loads the model file and test result files and requires a Simulink® Test™ license.
Results
For
this metric, instances of metric.Result
return Value
as
one of these integer outputs:
0
— The test failed.1
— The test passed.2
— The test is disabled.3
— The test is untested.
Compliance Thresholds
The default compliance thresholds for this metric are:
Compliant
— Each of the tests passed.Non-Compliant
—1
or more tests are untested, disabled, or have failed.Warning
— None