Event data for qualification event listeners
matlab.unittest.qualifications.QualificationEventData class holds event
data for qualification event listeners. Qualification event listeners are callback functions
that you register with the testing framework to listen for passing qualifications, failing
qualifications, or both. Qualifications can be assertions, fatal assertions, assumptions, or
verifications performed on test content. The corresponding qualification classes define these
The testing framework instantiates this class. You cannot create an object of the
matlab.unittest.qualifications.QualificationEventData class directly.
matlab.unittest.qualifications.QualificationEventData class is a
ActualValue — Value passed to constraint for qualification
Value passed to the constraint for qualification, returned as a value of any data type.
Constraint — Constraint used for qualification
Constraint used for qualification, returned as a
When you use a qualification method on a
matlab.unittest.fixtures.Fixture object, the
property contains the underlying constraint used for the qualification. For example, if
you use the
verifyEqual method, the underlying constraint is the
IsEqualTo constraint. Therefore, if you invoke the
getDiagnosticFor method of the constraint, the diagnostic result can
appear different from what the testing framework displays.
TestDiagnostic — Diagnostic action to be performed
character vector | string scalar | function handle |
Diagnostic action to be performed in the qualification, returned as a character
vector, string scalar, function handle, or
TestDiagnosticResults — Results of diagnostic action
Results of the diagnostic action performed in the qualification, returned as an
FrameworkDiagnosticResults — Results of diagnostic action from constraint
Results of the diagnostic action from the constraint used for the qualification,
returned as an array of
Stack — Function call stack
Function call stack containing the list of function calls that led to the qualification event, returned as a structure array.
Introduced in R2014a