getComparisonResult
Class: sltest.testmanager.TestIterationResult
Namespace: sltest.testmanager
Get test data comparison result
Syntax
cr = getComparisonResult(tir)
Description
returns baseline or equivalence data comparison results cr
= getComparisonResult(tir
)cr
from the
sltest.testmanager.TestIterationResult
object
tir
.
Input Arguments
Output Arguments
Examples
Get Comparison Results of a Baseline Test
This example shows how to programmatically get the comparison results of the second iteration of a baseline test case.
1. Get the path to the test file, then run the test file.
extf = 'sltestBaselineComparisonResults.mldatx';
tf = sltest.testmanager.TestFile(extf);
ro = run(tf);
2. Get the test iteration results.
tfr = getTestFileResults(ro); tsr = getTestSuiteResults(tfr); tcr = getTestCaseResults(tsr); tir = getIterationResults(tcr);
3. Get the comparison run result of iteration 2.
cr2 = getComparisonResult(tir(2))
cr2 = ComparisonRunResult with properties: Outcome: Passed
4. Get the comparison signal result of the run result.
cr2sig = getComparisonSignalResults(cr2)
cr2sig = 1x4 ComparisonSignalResult array with properties: Outcome Baseline ComparedTo Difference
5. Clear the results and the Test Manager.
sltest.testmanager.clearResults; sltest.testmanager.clear; sltest.testmanager.close;
sltest.testmanager.ComparisonRunResult
Related Topics
Version History
Introduced in R2017b