Main Content

Test Status Details for SIL Mode

R2026b
Since R2026b

Metric ID

modeltesting.sil.TestResultAnalysis[slcomp.TestStatusDetails]

Description

This metric returns detailed test status information for each test in the unit, including the status of model simulation, software-in-the-loop (SIL) execution, combined model and SIL status, and back-to-back comparison status.

Use this metric to investigate test results at the individual test level and identify specific tests that require attention.

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.

Collection

To collect data for this metric, execute the metric engine with the metric ID.

metric_engine = metric.Engine;
results = execute(metric_engine,"modeltesting.sil.TestResultAnalysis[slcomp.TestStatusDetails]")

View the metric result values.

results(1).Value

To collect all metrics in the modeltesting.sil.TestResultAnalysis group at once, use the group name with empty brackets.

results = execute(metric_engine,"modeltesting.sil.TestResultAnalysis[]")
Use the MetricID property to distinguish results from different metrics in the group.

Results

The metric returns a metric.Result object for each unit in the project. If the unit has no SIL tests, the Value property is missing.

When tests exist, the Value property returns a structure array with one element per test. Each element contains these fields:

  • Test — Structure identifying the test, with these fields:

    • Alias — Display name of the test.

    • URI — Digital thread URI of the test.

  • MilStatus — Status of the test in model simulation (normal mode). Possible values are 'Passed', 'Failed', 'Disabled', and 'Not run'.

  • SilStatus — Status of the test in SIL execution. Possible values are 'Passed', 'Failed', 'Disabled', and 'Not run'.

  • SilMilTestStatus — Combined status of model simulation and SIL execution. Possible values are 'Passed', 'Failed', 'Disabled', and 'Incomplete'.

  • B2BStatus — Status of the back-to-back comparison between model simulation and SIL execution. Possible values are 'Passed', 'Failed', and 'Not run'.

  • SilTestResults — SIL test result references, returned as a structure array with Alias and URI fields. Empty when the test has not been run.

See Also

Objects

Functions

Topics