Main Content

sltest.stmv2.results.assessment.CustomCriteriaAssessment

R2026b

Custom criteria assessment 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.CustomCriteriaAssessment objects to access results information for custom criteria assessments executed by the redesigned Simulink Test Manager.

    Creation

    Create sltest.stmv2.results.assessment.CustomCriteriaAssessment objects by accessing the Assessments property of a CustomCriteriaAssessmentResultSet 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.

    Diagnostic information for the test, represented as a string array.

    Example: "Custom Criteria Assessment"

    This property is read-only.

    Diagnostic information for the test framework, represented as a string array.

    Example: "verifyTrue passed."

    Examples

    collapse all

    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;

    Get the custom criteria assessment result set.

    myCustomCriteriaResultSet = getCustomCriteriaAssessmentResultSet(myTestCaseResults);

    Get the custom criteria assessment results.

    myCustomCriteriaResult = myCustomCriteriaAssessmentResultSet.Assessments;

    Check the FrameworkDiagnosticInfo property.

    myCustomCriteriaResult.FrameworkDiagnosticInfo
    
    ans = 
    
        "verifyTrue passed.
         
         Actual Value:
           logical
         
            1"
    

    Version History

    Introduced in R2026b