主要内容

sltest.stmv2.results.ResultSet

R2026b

Result set data (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.

    sltest.stmv2.results.ResultSet objects represent the results of a test execution instance in the redesigned Simulink Test Manager. Use sltest.stmv2.results.ResultSet objects to access the sltest.stmv2.results.TestFileResult objects for each test file you run.

    Creation

    To create sltest.stmv2.results.ResultSet objects, run tests in the redesigned Simulink Test Manager UI, then use the sltest.stmv2.results.getAllResultSets function.

    Properties

    expand all

    This property is read-only.

    Result set name, represented as a string scalar.

    Example: "Result Set: 2026-Jul-22 11:00:00"

    Data Types: string

    This property is read-only.

    Test outcome, represented as one of these options:

    Result OutcomeDescription
    UNTESTEDNo test criteria return a pass or fail result.
    PASSAll test criteria pass.
    FAILOne or more test criteria fail.
    PARTIAL_PASSSome test criteria pass and the others are untested.
    INCOMPLETETest did not complete execution. For example, the test stopped early or has not run.
    ERRORThe test encountered an error during execution and did not complete.

    This property is read-only.

    Test file results, represented as an array of sltest.stmv2.results.TestFileResult objects.

    This property is read-only.

    Project folder path, represented as a string scalar.

    Data Types: string

    This property is read-only.

    Number of test case results by outcome, represented as an sltest.stmv2.results.OutcomeCounts object.

    This property is read-only.

    Number of test case comparison results by outcome, represented as an sltest.stmv2.results.OutcomeCounts object.

    Object Functions

    getCoverageResultGet coverage results (Tech Preview)
    getCoverageResultsTableCreate table of coverage results (Tech Preview)

    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]

    Version History

    Introduced in R2026b