matlab.unittest.plugins.diagnosticrecord.QualificationDiagnosticRecord class

Package: matlab.unittest.plugins.diagnosticrecord
Superclasses: matlab.unittest.plugins.diagnosticrecord.DiagnosticRecord

Diagnostic information about qualification events

Description

The QualificationDiagnosticRecord class defines the diagnostic information about qualification events that the DiagnosticsRecordingPlugin includes on the TestResult. The DiagnosticsRecordingPlugin creates this class, so there is no need for test authors to construct the class directly.

Properties

expand all

Test diagnostic result, returned as a cell array of character vectors. A single qualification can result in multiple test diagnostics.

Data Types: char

Framework diagnostic result, returned as a cell array of character vectors. A single qualification can result in multiple framework diagnostics.

Example: {'verifyClass failed.…'}

Data Types: char

These properties are inherited from matlab.unittest.plugins.diagnosticrecord.DiagnosticRecord:

Name of recorded event, returned as a character vector. This property corresponds to the event on the TestCase instance.

Example: 'VerificationPassed'

Example: 'ExceptionThrown'

Example: 'DiagnosticLogged'

Data Types: char

Scope of the failure, returned as a character vector. This property corresponds to the label of the test content.

Example: 'myTestClass'

Example: 'myTestClass/testMethod1'

Example: 'myTestClass[classSetupParam=value1]/testMethod1'

Example: 'mySharedTestFixture'

Data Types: char

Stack trace to the location of the diagnostic event, returned as a structure containing the fields file, name, and line.

Data Types: struct

All diagnostic information, returned as a character vector. The report provides an overall summary of the event.

Data Types: char

Methods

Inherited Methods

selectFailedReturn diagnostic records for failed events
selectIncompleteReturn diagnostic records for incomplete events
selectLoggedReturn diagnostic records for logged events
selectPassedReturn diagnostic records for passed events

Introduced in R2016a

Was this topic helpful?