Access result 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
Name — Name of result set
Name of the result set, returned as a character vector. To change the name
of a result set, use
sltest.testmanager.getResultSets and set the
Name property of the result set object.
You can set a preference for result set names using
The specified name applies to all result
sets when you run a test in the same and future MATLAB sessions.
Description — Description of result set
Description of result set, returned as a character vector. To add a
description of a result set, use
sltest.testmanager.getResultSets and then set the result set
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.
NumIncomplete — Number of incomplete tests
Number of incomplete tests in the result 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 Result Sets
Get all result sets currently in the Test Manager.
allresultsets = sltest.testmanager.getResultSets
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