Main Content


Class: sltest.testmanager.TestIterationResult
Namespace: sltest.testmanager

Get logical and temporal assessment results for test iteration result

Since R2023b


resultSets = getAssessmentResults(result)


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

Input Arguments

expand all

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

Output Arguments

expand all

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


expand all

This example shows how to get assessment results from a test iteration result.

Import the test results.

results = sltest.testmanager.importResults( ...

Get the assessment results for the test iteration and review the results.

tcr = getTestCaseResults(results);
tir = getIterationResults(tcr);
ar = getAssessmentResults(tir);
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