Main Content

sltest.testmanager.DiagnosticRecord Class

Namespace: sltest.testmanager

View custom criteria diagnostic information

Description

An instance of sltest.testmanager.DiagnosticRecord displays diagnostic information returned from custom criteria analysis.

The sltest.testmanager.DiagnosticRecord class is a handle class.

Class Attributes

HandleCompatible
true

For information on class attributes, see Class Attributes.

Creation

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

Attributes:

SetAccess
private
GetAccess
public
Dependent
true
NonCopyable
true

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

Example: 'Final: 0.'

Attributes:

SetAccess
private
GetAccess
public
Dependent
true
NonCopyable
true

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

Example: 'verifyEqual passed.…'

Attributes:

SetAccess
private
GetAccess
public
Dependent
true
NonCopyable
true

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

Example: VerificationPassed

Attributes:

SetAccess
private
GetAccess
public
Dependent
true
NonCopyable
true

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

Attributes:

SetAccess
private
GetAccess
public
Dependent
true
NonCopyable
true

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

Example: MException

Attributes:

SetAccess
private
GetAccess
public
Dependent
true
NonCopyable
true

Examples

collapse 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: '=============================…'

Version History

Introduced in R2016b