Test Status Details for PIL Mode
R2026bMetric ID
modeltesting.pil.TestResultAnalysis[slcomp.TestStatusDetails]
Description
This metric returns detailed test status information for each test in the unit, including the status of model simulation, processor-in-the-loop (PIL) execution, combined model and PIL 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.pil.TestResultAnalysis[slcomp.TestStatusDetails]")View the metric result values.
results(1).Value
To collect all metrics in the modeltesting.pil.TestResultAnalysis group
at once, use the group name with empty
brackets.
results = execute(metric_engine,"modeltesting.pil.TestResultAnalysis[]")MetricID property to distinguish results from different metrics in the
group.Results
The metric returns a object for each unit in the project. If the
unit has no PIL tests, the metric.ResultValue 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'.PilStatus— Status of the test in PIL execution. Possible values are'Passed','Failed','Disabled', and'Not run'.PilMilTestStatus— Combined status of model simulation and PIL execution. Possible values are'Passed','Failed','Disabled', and'Incomplete'.B2BStatus— Status of the back-to-back comparison between model simulation and PIL execution. Possible values are'Passed','Failed', and'Not run'.PilTestResults— PIL test result references, returned as a structure array withAliasandURIfields. Empty when the test has not been run.