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

Properties

expand all

This property is read-only.

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

The number of disabled 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 incomplete tests in an individual test case result, returned as an integer.

The number of passed 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.

Parent of the result. The parent of a test case result is a test suite result or result set object.

This property is read-only.

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

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

This property is read-only.

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

This property is read-only.

Time the test case completed, returned as a datetime.

This property is read-only.

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 parent result set.

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

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

Error messages produced by the test case, returned as an array of strings.

Log messages produced by the test case, returned as an array of strings.

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
getTestCase Get test case that produced result
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