Repairing validation failures
If a message fails validation, you can repair the differences directly from the Console. Right-click the Console entry that details the failure and select a repair option.
- Overwrite Expected Field: Replaces the value in the expected message with the value from the corresponding field in the received message.
- Replace With Regular Expression Match: Replaces the value in the expected message with a regular expression. For example, A004532 would be replaced by ^A\d{6}, which would match the letter "A" followed by any six digits. If a regex match does not apply to the selected message fields, the option is not displayed.
- Replace With Regular Expression Match and Cache: Replaces the value with a regular expression, and creates a rule to apply the same expression when a similar field is encountered. Similarity is computed according to its path relative to the root of the message. If a regex match does not apply to the selected message fields, the option is not displayed. A star is displayed in the affected field in the message editor. For more information, see Rule Cache overview.
- Disable Field Validation: Modifies the test action, disabling validation of the field that was different.
- Disable Field Validation and Cache: Disables field validation and creates a rule to disable validation when a similar field is encountered. For more information, see Rule Cache overview.
- Overwrite Expected Message: Replaces the entire expected message with the contents of the message that was received. During the Overwrite Expected Message action, the filter field values specified for the messages are still maintained except while replacing the schema.