citrusframework / citrusframework/citrus

Improve error message on unexpected message types

Open
#468 0 comments 0 reactions 0 assignees View on GitHub
enhancement prio-low
Dominant language
Java
Stars
485
Forks
155
Avg merge
4d 22h
Merged PRs (30d)
6

Description

**Citrus Version**
v2.7.6

**Scenario**
Citrus receives a message of type plaintext where the expected message type for validation is XML. The resulting error message is misleading and not pointing to the actual unexpected message type.

The current error message is:

> Could not find proper message validator for message type 'xml', please define a capable message validator for this message type

Improve the error message so it is clear that the validation could not perform because of message type mismatch.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the plaintext-versus-XML validation scenario described for Citrus v2.7.6, then trace where the current validator error is assembled. Done means the error clearly identifies the message-type mismatch rather than suggesting that an XML validator is missing.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.