This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

sltest.testmanager.TestCaseResult class

Package: sltest.testmanager
Superclasses:

Access test case results data

Description

An sltest.testmanager.TestCaseResult enables you to access results from executing test cases or test files.

Construction

tcr = getTestCaseResults(ResultSet) returns tcr, a TestCaseResult, from a ResultSet.

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
getComparisonResult Get test data comparison result
getComparisonRunGet test case signal comparison results
getCoverageResultsGet coverage results
getCustomCriteriaPlotsGet plots from test case custom criteria
getCustomCriteriaResultGet custom criteria results from test case result
getInputRunsGet inputs from simulations captured with the test result
getIterationResultsGet iteration results
getOutputRunsGet test case simulation output results
getSimulationPlotsGet plots from test case callbacks
getVerifyRunsGet test case verify statement

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

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

Introduced in R2015a