主要内容

getCustomCriteriaAssessmentResultSet

R2026b

Get custom criteria results (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.

    customCriteraResObj = getCustomCriteriaAssessmentResultSet(resultObj) extracts the custom criteria result set, customCriteraResObj, from the test case results, resultObj.

    example

    Examples

    collapse all

    When you run tests using the redesigned Test Manager you can access custom criteria assessment results in the MATLAB® workspace.

    Get all currently loaded result sets in the redesigned Simulink Test Manager.

    allResults = sltest.stmv2.results.getAllResultSets;

    Step through the results object hierarchy to get the test case results.

    myTestFileResults = allResults.TestFileResults;
    myCUTResults = myTestFileResults.CUTResults;
    myTestCaseResults = myCUTResults.TestCaseResults;

    Use getCustomCriteriaAssessmentResultSet to get the custom criteria assessment results.

    myCustomCriteriaAssessmentResults = getCustomCriteriaAssessmentResultSet(myTestCaseResults);

    Input Arguments

    collapse all

    Test case results, specified as a sltest.stmv2.results.TestCaseResults object.

    Example: getCustomCriteriaAssessmentResultSet(myTestCaseResults)

    Output Arguments

    collapse all

    Custom criteria result set, returned as an sltest.stmv2.results.assessment.CustomCriteriaAssessmentResultSet object.

    Version History

    Introduced in R2026b