Main Content

sltest.testmanager.AssessmentResult Class

Namespace: sltest.testmanager

Access logical and temporal assessment results data

Since R2023b

Description

Use objects of the sltest.testmanager.AssessmentResult class to review results information for logical and temporal assessments executed by the Test Manager.

The sltest.testmanager.AssessmentResult class is a handle class.

Class Attributes

HandleCompatible
true

For information on class attributes, see Class Attributes.

Creation

The function sltest.testmanager.run creates instances of sltest.testmanager.AssessmentResult objects for tests with logical and temporal assessments.

Properties

expand all

Name of the assessment result, specified as a character array.

Attributes:

GetAccess
public
SetAccess
private

Data Types: char

Summary of the assessment, specified as a character array.

Attributes:

GetAccess
public
SetAccess
private

Data Types: char

Outcome of an individual assessment, returned as Passed or Failed.

Attributes:

GetAccess
public
SetAccess
private

Data Types: enum

Error message for a failed assessment, specified as a character array.

Attributes:

GetAccess
public
SetAccess
private

Data Types: char

Requirements associated with the assessment, returned as a structure array.

Attributes:

GetAccess
public
SetAccess
private

Data Types: struct

Parent of the assessment result, returned as an sltest.testmanager.AssessmentResultSet object.

Attributes:

GetAccess
public
SetAccess
private

Examples

collapse all

This example shows how to retrieve and review the assessment results from a test case result.

Import the test results.

results = sltest.testmanager.importResults( ...
    "tc_assessment_results.mldatx");

Get the assessment results from the test case results.

tcr = getTestCaseResults(results);
ar = getAssessmentResults(tcr);

Review the assessment result information.

ar.AssessmentResults
ans = 
  AssessmentResult with properties:

            Name: 'Waiting cars'
            Info: ' At any point of time, NumCars must be greater than or equal to int32(0)'
         Outcome: Passed
         Details: ''
    Requirements: [0x1 struct]
          Parent: [1x1 sltest.testmanager.AssessmentResultSet]

Version History

Introduced in R2023b