A Message Persona replaces literal user-facing text in a scenario with a descriptive key. The key expresses the expected message, while resolution supplies the exact localized text for assertion. section 17.3
Listing 17.8 Scenario with a message key
*** Features/Ordering.feature ***
Rule: More than 4 large pizzas cannot be delivered as a single order
Scenario: Five large pizzas are ordered
When the customer places an order for 5 pizzas of size large
Then the order should be rejected with message #A
➥ [cannot-deliver-more-than-4-large-pizzas]The scenario names the expected rejection message with a descriptive key instead of hard-coding its wording. section 17.3
When a message depends on scenario data, include the values with the key. For example, [cannot-deliver-too-many-large-pizzas,5] identifies a message that includes the number of pizzas. section 17.3
