主要内容

getComparisonResultsTable

R2026b

Create table from test case comparison result (Tech Preview)

Since R2026b

    Description

    Note

    The redesigned Simulink® Test Manager is a tech preview in R2026b. The primary purpose of the tech preview is to provide early access to the most common testing workflows. For more information about supported workflows, see Overview of the Redesigned Simulink Test Manager (Tech Preview).

    To enable the feature, click the New Test Manager button in the existing Test Manager or use the sltest.stmv2.open function at the command line.

    tbl = getComparisonResultsTable(comparisonResult) creates a table from the Simulink Test Manager comparison results comparisonResult.

    example

    Examples

    collapse all

    Retrieve the comparison results from a test case and display them as a table.

    resultSets = sltest.stmv2.results.getAllResultSets;
    rs = resultSets(1);
    compResults = rs.TestFileResults(1).CUTResults(1).ComparisonResults(1);
    tbl = getComparisonResultsTable(compResults);
    disp(tbl)
           Name            TestFileName          CUTName         RunSettingName1    RunSettingName2    ComparisonConfigName    SweepName    Outcome    AbsTol    RelTol    TimeTol    ReviewAction    ReviewComment
    ___________________    _____________    _________________    _______________    _______________    ____________________    _________    _______    ______    ______    _______    ____________    _____________
    "LogicalAssessment"    "fuelsys_stm"    "fuelsys_stm_CUT"    "RunSettings1"     "RunSettings2"        "Comparison_1"          ""        "PASS"       0         0          0            ""              ""      

    Input Arguments

    collapse all

    Test case comparison result from the redesigned Simulink Test Manager, specified as a sltest.stmv2.results.TestCaseComparisonResult object.

    Output Arguments

    collapse all

    Comparison results table, returned as a table. Each column heading in the table matches the associated field in the TestCaseComparisonResult object, and each column entry is a string scalar.

    Version History

    Introduced in R2026b