Access test case results data
sltest.testmanager.TestCaseResult enables you to access results from
executing test cases or test files.
NumPassedIterations— Number of passed tests
The number of passed tests in an individual test case result, returned as an integer.
NumFailedIterations— Number of failed tests
The number of failed tests in an individual test case result, returned as an integer.
NumDisabledIterations— Number of disabled tests
The number of disabled tests in an individual test case result, returned as an integer.
NumIncompleteIterations— Number of incomplete tests
The number of incomplete tests in an individual test case result, returned as an integer.
NumTotalIterations— Total number of tests
The total number of tests in an individual test case result, returned as an integer.
Outcome— Outcome of test case result
The outcome of an individual test case result. The integer
the test case was disabled,
1 means the test case
execution was incomplete,
2 means the test case
3 means the test case failed.
Release— Release in which the test was run
This property is read-only.
Release in which the test was run, returned as a character vector.
TestFilePath— Test file path
The path of the test file used to create the test case result.
TestCasePath— Result hierarchy path
The hierarchy path in the parent result set.
TestCaseType— Type of test case
The type of test case from the three available test cases in the Test Manager: simulation, baseline, and equivalence.
RunOnTarget— Target indicator
Indicates if the simulation runs on a target, returned as a cell array of Booleans.
|getBaselineRun||Get test case baseline dataset|
|getComparisonResult||Get test data comparison result|
|getComparisonRun||Get test case signal comparison results|
|getCoverageResults||Get coverage results|
|getCustomCriteriaPlots||Get plots from test case custom criteria|
|getCustomCriteriaResult||Get custom criteria results from test case result|
|getInputRuns||Get inputs from simulations captured with the test result|
|getIterationResults||Get iteration results|
|getOutputRuns||Get test case simulation output results|
|getSimulationPlots||Get plots from test case callbacks|
|getVerifyRuns||Get test case verify statement|
% 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);