Documentation

sltest.testmanager.TestSuiteResult class

Package: sltest.testmanager
Superclasses:

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.

Construction

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 sltest.testmanager.TestSuite.run to execute tests in an individual test suite.

Properties

expand all

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

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

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

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

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

The total number of tests in the test suite result.

This property is read-only.

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

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

The hierarchy path in the parent result set.

Methods

getCleanupPlotsGet plots from cleanup callbacks
getCoverageResultsGet coverage results
getSetupPlotsPlots from setup callbacks
getTestCaseResultsGet test case results object
getTestSuiteResultsGet test suite results object

Examples

expand 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);

Introduced in R2015a

Was this topic helpful?