Documentation

sltest.testmanager.TestCaseResult class

Package: sltest.testmanager
Superclasses:

Access test case results data

Description

Instances of sltest.testmanager.TestCaseResult enable you to access the results from test execution performed by the test manager at a test-case level.

Construction

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

Properties

expand all

The number of passed tests in an individual test case result, returned as an integer.

The number of failed tests in an individual test case result, returned as an integer.

The number of disabled tests in an individual test case result, returned as an integer.

The number of incomplete tests in an individual test case result, returned as an integer.

The total number of tests in an individual test case result, returned as an integer.

The outcome of an individual test case result. The integer 0 means the test case was disabled, 1 means the test case execution was incomplete, 2 means the test case passed, and 3 means the test case failed.

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 test case result.

The hierarchy path in the parent result set.

The type of test case from the three available test cases in the Test Manager: simulation, baseline, and equivalence.

Indicates if the simulation runs on a target, returned as a cell array of Booleans.

Methods

getBaselineRunGet test case baseline dataset
getComparisonRunGet test case signal comparison results
getCoverageResultsGet coverage results
getCustomCriteriaPlotsGet plots from test case custom criteria
getCustomCriteriaResultGet custom criteria results from test case result
getIterationResultsGet iteration results
getOutputRunsGet test case simulation output results
getSimulationPlotsGet plots from test case callbacks
getVerifyRunsGet test case verify statement

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

% Get test case result object
tcr = getTestCaseResults(tsr);

Introduced in R2015a

Was this topic helpful?