Symbol used in assessment
An instance of
sltest.testmanager.AssessmentSymbol that specifies the
name, scope, and value of the symbol used in an assessment.
sltest.testmanager.AssessmentSymbol class is a
You do not create an
sltest.testManager.AssessmentSymbol object explicitly.
For assessments in the Test Manager, use
getAssessmentSymbols to obtain the
AssessmentSymbol object. Then, use
to add the symbols to an assessment in another test case. By default when you use
associated symbols are also copied.
Name — Symbol name
string | character vector
Symbol name, returned as a string.
Scope — Symbol scope
Symbol scope, which indicates the type of the assessment symbol, returned as one of these values:
Value — Symbol value
Symbol value, returned as a
Get Assessment Symbols and Add to Test Case
Load an existing test file and get the assessments and symbols from the test file. Create a new test case and add the assessments, but not the symbols, to the new test case. Then, add the associated assessment symbols to the test case.
tf = sltest.testmanager.load('test_traffic.mldatx'); ts = getTestSuites(tf); tc = getTestCases(ts); assessObjs = getAssessments(tc); symbolsObjs = getAssessmentSymbols(tc); tc_New = createTestCase(ts); tc_NewAssess = addAssessment(tc_New,assessObjs,... "AddSymbols",false); addedSymbolsObj = addAssessmentSymbol(tc_New,symbolsObjs);
Clear and close the Test Manager.
sltest.testmanager.clear sltest.testmanager.clearResults sltest.testmanager.close