sltest.testmanager.ResultSet class
Package: sltest.testmanager
Access results 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
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 |
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 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
See Also
sltest.testmanager.TestFileResult
| sltest.testmanager.TestSuiteResult
| sltest.testmanager.TestCaseResult
| cvdata
(Simulink Coverage)
Comando MATLAB
Hai fatto clic su un collegamento che corrisponde a questo comando MATLAB:
Esegui il comando inserendolo nella finestra di comando MATLAB. I browser web non supportano i comandi MATLAB.
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)