Main Content

matlab.automation.diagnostics.DiagnosticResult Class

Namespace: matlab.automation.diagnostics

Result of a diagnosed Diagnostic instance

Renamed from matlab.unittest.diagnostics.DiagnosticResult in R2023a

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 an automation framework, such as the unit testing framework, creates instances of this class. The testing framework assigns property values to a 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 object, returned as an array of artifacts. After the 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 framework diagnoses the Diagnostic object, it copies the value of the DiagnosticText property to the DiagnosticResult instance.

Data Types: char

Version History

Introduced in R2017a

expand all