Main Content

getAssessmentResults

Class: sltest.testmanager.TestCaseResult
Namespace: sltest.testmanager

Get logical and temporal assessment results for test case result

Since R2023b

Syntax

resultSets = getAssessmentResults(result)

Description

resultSets = getAssessmentResults(result) returns the logical and temporal assessment results for the specified test case result.

Input Arguments

expand all

Test case result from which to get the assessment results, specified as an sltest.testmanager.TestCaseResult object.

Output Arguments

expand all

Logical and temporal assessment result sets, returned as an array of sltest.testmanager.AssessmentResultSet objects.

Examples

expand 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