Main Content

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.

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

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 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 results from running a test file with sltest.testmanager.run.

result = sltest.testmanager.run;
testCaseResultArray = result.getTestCaseResults;
testSuiteResultArray = result.getTestSuiteResults;
Introduced in R2015a