Main Content

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.

Class Attributes

HandleCompatible
true

For information on class attributes, see Class Attributes.

Creation

The function sltest.testmanager.run creates a sltest.testmanager.ResultSet object.

Properties

expand all

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 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

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

Length of time the test ran, in seconds, returned as a duration.

Attributes:

SetAccess
public
GetAccess
public
Dependent
true
NonCopyable
true

Release in which the test was run, returned as a character vector.

Attributes:

SetAccess
private
GetAccess
public

Number of test cases that were disabled in the results set.

Attributes:

SetAccess
public
GetAccess
public
Dependent
true
NonCopyable
true

Number of incomplete tests in the result set.

Attributes:

SetAccess
public
GetAccess
public
Dependent
true
NonCopyable
true

Number of failed tests contained in the results set.

Attributes:

SetAccess
public
GetAccess
public
Dependent
true
NonCopyable
true

Number of passed tests contained in the results set.

Attributes:

SetAccess
public
GetAccess
public
Dependent
true
NonCopyable
true

Number of test case results that are direct children of the results set object.

Attributes:

SetAccess
public
GetAccess
public
Dependent
true
NonCopyable
true

Number of test suite results that are direct children of the results set object.

Attributes:

SetAccess
public
GetAccess
public
Dependent
true
NonCopyable
true

Number of test file results that are direct children of the results set object.

Attributes:

SetAccess
public
GetAccess
public
Dependent
true
NonCopyable
true

Total number of tests in the results set.

Attributes:

SetAccess
public
GetAccess
public
Dependent
true
NonCopyable
true

Test outcome, returned as Passed or Failed.

Attributes:

SetAccess
public
GetAccess
public
Dependent
true
NonCopyable
true

Time the test began to run, returned as a datetime.

Attributes:

SetAccess
public
GetAccess
public
Dependent
true
NonCopyable
true

Time the test completed, returned as a datetime.

Attributes:

SetAccess
public
GetAccess
public
Dependent
true
NonCopyable
true

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

expand all

Examples

collapse all

Get all result sets currently in the Test Manager.

allresultsets = sltest.testmanager.getResultSets

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