sltest.testmanager.ResultSet Class
Namespace: sltest.testmanager
Access result set data
Description
Instances of sltest.testmanager.ResultSet
enable you to access the
results from test execution performed by the Test Manager.
The sltest.testmanager.ResultSet
class is a handle
class.
Creation
The function sltest.testmanager.run
creates a
sltest.testmanager.ResultSet
object.
Properties
Name
— Name of result set
character vector
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 sltest.testmanager.setpref
.
The specified name applies to all result
sets when you run a test in the same and future MATLAB sessions.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
Description
— Description of result set
character vector
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
Description
property.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
CoverageResults
— Coverage analysis results
row vector of cvdata
objects
Coverage analysis results, returned as a row vector of aggregated
cvdata
objects across
all simulations. For information on
cvdata
objects, see cvdata
(Simulink Coverage).
Attributes:
SetAccess | private |
GetAccess | public |
Dependent | true |
NonCopyable | true |
Duration
— Length of time the test ran, in seconds
duration
Length of time the test ran, in seconds, returned as a duration.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
Release
— Release in which the test was run
character vector
Release in which the test was run, returned as a character vector.
Attributes:
SetAccess | private |
GetAccess | public |
NumDisabled
— Number of disabled tests
integer
Number of test cases that were disabled in the results set.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
NumIncomplete
— Number of incomplete tests
integer
Number of incomplete tests in the result set.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
NumFailed
— Number of failed tests
integer
Number of failed tests contained in the results set.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
NumPassed
— Number of passed tests
integer
Number of passed tests contained in the results set.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
NumTestCaseResults
— Number of test case result children
integer
Number of test case results that are direct children of the results set object.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
NumTestSuiteResults
— Number of test suite result children
integer
Number of test suite results that are direct children of the results set object.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
NumTestFileResults
— Number of test file result children
integer
Number of test file results that are direct children of the results set object.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
NumTotal
— Total number of tests
integer
Total number of tests in the results set.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
Outcome
— Test outcome
Passed
| Failed
Test outcome, returned as Passed
or
Failed
.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
StartTime
— Time the test began to run
datetime
Time the test began to run, returned as a datetime.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
StopTime
— Time the test completed
datetime
Time the test completed, returned as a datetime.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
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.
Attributes:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
Methods
Public Methods
getTestCaseResults | Get test case results object |
getTestSuiteResults | Get test suite results object |
getTestFileResults | Get test file results object |
getCoverageResults | Get coverage results |
remove | Remove result set |
clearSimulationData | Delete specified simulation test results in result set objects |
Examples
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 sltest.testmanager.run
.
result = sltest.testmanager.run; testCaseResultArray = result.getTestCaseResults; testSuiteResultArray = result.getTestSuiteResults;
Version History
Introduced in R2015a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)