主要内容

sltest.stmv2.results.getAllResultSets

R2026b

Get all result sets (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.

    resultSets = sltest.stmv2.results.getAllResultSets returns the result sets currently loaded by the redesigned Simulink Test Manager.

    example

    Examples

    collapse all

    Get all the result sets in the redesigned Simulink Test Manager. Then, get information for the first result set.

    resultSets = sltest.stmv2.results.getAllResultSets;
    rs = resultSets(1)
    rs =
    
      ResultSet with properties:
    
                                 Name: "Result Set: 2026-Jul-22 11:00:00"
                              Outcome: PASS
                      TestFileResults: [1×1 sltest.stmv2.results.TestFileResult]
                          ProjectRoot: ""
              TestResultOutcomeCounts: [1×1 sltest.stmv2.results.OutcomeCounts]
        ComparisonResultOutcomeCounts: [1×1 sltest.stmv2.results.OutcomeCounts]

    Output Arguments

    collapse all

    Currently loaded result sets, returned as an array of sltest.stmv2.results.ResultSet objects. Each element represents one test execution instance. If no results are currently loaded, resultSets is an empty array.

    Version History

    Introduced in R2026b