sltest.testmanager.ResultSet class

Package: sltest.testmanager
Superclasses:

Access results set data

Description

Instances of sltest.testmanager.ResultSet enable you to access the results from test execution performed by the Test Manager.

Construction

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

Properties

expand all

This property is read-only.

Coverage analysis results, returned as a row vector of cvdata objects. For information on cvdata objects, see cv.cvdatagroup (Simulink Coverage).

This property is read-only.

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

This property is read-only.

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

This property is read-only.

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

This property is read-only.

Number of failed tests contained in the results set.

This property is read-only.

Number of passed tests contained in the results set.

This property is read-only.

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

This property is read-only.

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

This property is read-only.

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

This property is read-only.

Total number of tests in the results set.

This property is read-only.

Test outcome, returned as Passed or Failed.

This property is read-only.

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

This property is read-only.

Time the test completed, returned as a datetime.

This property is read-only.

Custom data stored with the result set, specified as any type of data.

Methods

getCoverageResultsGet coverage results
getTestCaseResultsGet test case results object
getTestFileResultsGet test suite results object
getTestSuiteResultsGet test suite results object
removeRemove result set

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