Main Content

sltest.stmv2.results.assessment.CustomCriteriaAssessmentResultSet

R2026b

Custom criteria assessment 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.

    Use sltest.stmv2.results.assessment.CustomCriteriaAssessmentResultSet objects to access result set information for custom criteria assessments executed by the redesigned Simulink Test Manager.

    Creation

    Create sltest.stmv2.results.assessment.CustomCriteriaAssessmentResultSet objects by using the getCustomCriteriaResultSet function on an sltest.stmv2.results.TestCaseResults object.

    Properties

    expand all

    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.

    Custom criteria callback name, represented as a string.

    Example: test.verifyTrue(t);

    This property is read-only.

    Custom criteria assessments, represented as a CustomCriteriaAssessment object.

    Examples

    collapse all

    Get all currently loaded result sets in the redesigned 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 function to get the custom criteria assessment result set.

    myCustomCriteriaAssessmentResults = getCustomCriteriaAssessmentResultSet(myTestCaseResults);

    Check the outcome of the test.

    myCustomCriteriaAssessmentResults.Outcome
    ans = 
    
      TestOutcome enumeration
    
        PASS

    Version History

    Introduced in R2026b