SIL and Model Test Status Distributions
Metric ID
slcomp.sil.SilMtTestStatusDistribution
Description
This metric returns a distribution of the statuses of the software-in-the-loop (SIL) and simulation (model testing) test results.
Supported Artifacts
This metric collects metric results for Units in the project. To control what the dashboard classifies as a unit, see Categorize Models in Hierarchy as Components or Units.
Computation Details
The metric:
Includes only tests in the project that test the model or subsystems in the unit for which you collect metric data.
Shows tests as untested if the test only ran in processor-in-the-loop (PIL) mode.
Collection
To collect data for this metric, use getMetrics with the metric ID
slcomp.sil.SilMtTestStatusDistribution.
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 a distribution structure that contains these fields:
BinCounts— The number of tests in each bin, returned as a vector.BinEdges— The outputs of thesil.SilMtTestStatusmetric, returned as a vector. The outputs represent the test result statuses:'Incomplete'— The test results are incomplete.'Failed in code only'— Only the SIL test results failed.'Failed in model only'— Only the model test results failed.'Failed in model and code'— Both the SIL and model test results failed.'Passed in model and code'— Both the SIL and model test results passed.
Compliance Thresholds
This metric does not have predefined thresholds.