sltest.testmanager.TestFileResult class

Package: sltest.testmanager
Superclasses:

Access test file results data

Description

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

Construction

The function sltest.testmanager.run creates a sltest.testmanager.ResultSet object, which contains the test file result object. You can also create a test file result directly if you use run to execute tests in an individual test file.

Properties

expand all

This property is read-only.

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

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

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

The number of test cases that did not execute in the test file result.

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

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

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

The total number of tests in the test file result.

Parent of the result. The parent of a test file result is a result set object.

This property is read-only.

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

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.

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

The hierarchy path in the result set.

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

Methods

getCleanupPlotsGet plots from cleanup callbacks
getCoverageResultsGet coverage results
getSetupPlotsGet plots from setup callbacks
getTestSuiteResultsGet test suite results object

Examples

collapse all

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

% Get the test file result object
tfr = getTestFileResults(resultset);
Introduced in R2016a