Main Content

matlab.unittest.diagnostics.DiagnosticResult class

Package: matlab.unittest.diagnostics

Result of a diagnosed Diagnostic instance

Description

A DiagnosticResult object captures the result of a diagnosed Diagnostic instance. It is safer to work with DiagnosticResult instances than to work directly with the Diagnostic instances.

Only the test framework constructs this class directly. The test framework assigns property values to the DiagnosticResult instance from the property values of objects of the QualificationEventData, LoggedDiagnosticEventData, QualificationDiagnosticRecord, and LoggedDiagnosticRecord classes.

Properties

expand all

The artifacts produced during the last diagnostic evaluation of a Diagnostic, returned as an array of artifacts. After the test framework diagnoses the Diagnostic object, it copies the value of the Artifacts property to the DiagnosticResult instance.

Result of a diagnostic evaluation of a Diagnostic object, returned as a character vector. After the test framework diagnoses the Diagnostic object, it copies the value of the DiagnosticText property to the DiagnosticResult instance.

Data Types: char

Introduced in R2017a