Main Content

getAssessmentSymbols

Class: sltest.testmanager.TestCase
Namespace: sltest.testmanager

Get assessment symbols associated with test case

Since R2022a

Syntax

assessmentSymbols = getAssessmentSymbols(tc)

Description

assessmentSymbols = getAssessmentSymbols(tc) returns the assessment symbols for a test case object.

Input Arguments

expand all

Test case that contains the assessment symbols, specified as an sltest.testmanager.TestCase object.

Output Arguments

expand all

Assessment symbols used in the test case, returned as an array of sltest.testmanager.AssessmentSymbol objects.

Examples

expand all

Get the symbols associated with the assessments in a test case and view the first symbol in the returned AssessmentSymbol object.

tf = sltest.testmanager.load('test_traffic.mldatx');

ts = tf.getTestSuites;
tc = tf.getTestSuites.getTestCases;

symObjs = tc.getAssessmentSymbols; 
symObjs(1)
ans = 
  AssessmentSymbol with properties:

     Name: 'Light1'
    Scope: Signal
    Value: [1x1 struct]

Version History

Introduced in R2022a