Access results set data
sltest.testmanager.ResultSet enable you to access the
results from test execution performed by the Test Manager.
sltest.testmanager.ResultSet class is a
For information on class attributes, see Class Attributes.
sltest.testmanager.run creates a
CoverageResults — Coverage analysis results
row vector of
Coverage analysis results, returned as a row vector of aggregated
cvdata objects across
all simulations. For information on
cvdata objects, see
cvdata (Simulink Coverage).
Duration — Length of time the test ran, in seconds
Length of time the test ran, in seconds, returned as a duration.
Release — Release in which the test was run
Release in which the test was run, returned as a character vector.
NumDisabled — Number of disabled tests
Number of test cases that were disabled in the results set.
NumFailed — Number of failed tests
Number of failed tests contained in the results set.
NumPassed — Number of passed tests
Number of passed tests contained in the results set.
NumTestCaseResults — Number of test case result children
Number of test case results that are direct children of the results set object.
NumTestSuiteResults — Number of test suite result children
Number of test suite results that are direct children of the results set object.
NumTestFileResults — Number of test file result children
Number of test file results that are direct children of the results set object.
NumTotal — Total number of tests
Total number of tests in the results set.
Outcome — Test outcome
Test outcome, returned as
StartTime — Time the test began to run
Time the test began to run, returned as a datetime.
StopTime — Time the test completed
Time the test completed, returned as a datetime.
UserData — Custom data stored with result set
any data type
Custom data stored with the result set, specified as any type of data. Use this field to add custom information about the results, such as the settings used to obtain the results.
|Get test case results object|
|Get test suite results object|
|Get test file results object|
|Get coverage results|
|Remove result set|
|Delete specified simulation test results in result set objects|
Get Test Result Set Data
Get results from running a test file with
result = sltest.testmanager.run; testCaseResultArray = result.getTestCaseResults; testSuiteResultArray = result.getTestSuiteResults;
Introduced in R2015a
cvdata (Simulink Coverage)