Main Content

sltest.testmanager.TestSuiteResult class

Package: sltest.testmanager
Superclasses: sltest.testmanager.ResultSet

Access test suite results data

Description

Instances of sltest.testmanager.TestSuiteResult enable you to access the results from test execution performed by the Test Manager at a test-suite level.

The sltest.testmanager.TestSuiteResult 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, which contains the test suite result object. You can also create a test suite result directly if you use run to execute tests in an individual test suite.

Properties

expand all

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

Attributes:

SetAccess
public
GetAccess
public
Dependent
true
NonCopyable
true

The number of test cases that were disabled in the test suite result.

Attributes:

SetAccess
public
GetAccess
public
Dependent
true
NonCopyable
true

The number of failed tests contained in the test suite result.

Attributes:

SetAccess
public
GetAccess
public
Dependent
true
NonCopyable
true

The number of passed tests contained in the test suite result.

Attributes:

SetAccess
public
GetAccess
public
Dependent
true
NonCopyable
true

The number of test case results that are direct children of the test suite result.

Attributes:

SetAccess
public
GetAccess
public
Dependent
true
NonCopyable
true

The number of test suite results that are direct children of the test suite result.

Attributes:

SetAccess
public
GetAccess
public
Dependent
true
NonCopyable
true

The total number of tests in the test suite result.

Attributes:

SetAccess
public
GetAccess
public
Dependent
true
NonCopyable
true

Parent of the result. The parent of a test suite result is another test suite result, test file result, or result set object.

Attributes:

SetAccess
private
GetAccess
public
Dependent
true
NonCopyable
true

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

Attributes:

SetAccess
protected
GetAccess
public
Dependent
true
NonCopyable
true

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

Attributes:

SetAccess
public
GetAccess
public
Dependent
true
NonCopyable
true

Time the test suite completed, returned as a datetime.

Attributes:

SetAccess
public
GetAccess
public
Dependent
true
NonCopyable
true

Tags to filter the test file results. Use tags to view a subset of the test results. See Tags for more information.

Attributes:

SetAccess
public
GetAccess
public
Dependent
true
NonCopyable
true

The path of the test file used to create the result.

Attributes:

SetAccess
private
GetAccess
public
Dependent
true
NonCopyable
true

The hierarchy path in the parent result set.

Attributes:

SetAccess
private
GetAccess
public
Dependent
true
NonCopyable
true

Custom data stored with the test suite results, specified as any type of data. Use this field to add custom information, such as the settings used to obtain the results.

Attributes:

SetAccess
public
GetAccess
public
Dependent
true
NonCopyable
true

Methods

expand all

Examples

collapse all

% Run test file in Test Manager and output results set
resultset = sltest.testmanager.run;

% Get test file result object
tfr = getTestFileResults(resultset);

% Get test suite result object
tsr = getTestSuiteResults(tfr);

Version History

Introduced in R2015a