Documentation

sltest.testmanager.DiagnosticRecord class

Package: sltest.testmanager
Superclasses:

View custom criteria diagnostic information

Description

An instance of sltest.testmanager.DiagnosticRecord displays diagnostic information returned a verification during custom criteria analysis.

Construction

obj = getCustomCriteriaResult(tcResult) creates an sltest.testmanager.CustomCriteriaResult object, which has a property DiagnosticRecord. DiagnosticRecord is an sltest.testmanager.DiagnosticRecord object for the test case result object tcResult.

Properties

expand all

Outcome of diagnostic, returned as an sltest.testmanager.TestResultOutcomes object.

Example: Passed

Diagnostic record of the custom criteria result, returned as a cell array.

Example: 'Final: 0.'

Framework diagnostic record of the custom criteria result, returned as a cell array.

Example: 'verifyEqual passed.…'

Name of the recorded event, returned as a character vector.

Example: VerificationPassed

Report of the diagnostic result, returned as a character vector.

If the custom criteria returns an error, it constructs an Mexception object containing information about the error.

Example: MException

Examples

expand all

Run the test case tc, creating a result set tcResultSet.

tcResultSet = run(tc);

Get the test case result from the result set.

tcResult = getTestCaseResults(tcResultSet);

Get the custom criteria result from the test case result.

ccResult = getCustomCriteriaResult(tcResult);

Display the diagnostic result

ccResult.DiagnosticRecord
ans = 

  DiagnosticRecord with properties:

                      Outcome: Passed
         TestDiagnosticResult: {'Final: 0.'}
    FrameworkDiagnosticResult: {'verifyEqual passed.…'}
                        Event: 'VerificationPassed'
                       Report: '=============================…'

Introduced in R2016b

Was this topic helpful?