Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output Messages #79

Open
EliottPaillard opened this issue Sep 25, 2024 · 1 comment
Open

Output Messages #79

EliottPaillard opened this issue Sep 25, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@EliottPaillard
Copy link

Hello @costas80,

We have started to integrate output messages in our tests. However we would want to display multiples messages for a single testcase.

Do you think it would be possible to implement that one day?

@costas80
Copy link
Contributor

Hi @EliottPaillard,

I have my doubts about this one. The goal of the output section is to provide a concise and user-friendly short message to the user to inform her of the overall result. I'm afraid if we add support for multiple messages this could be abused by e.g. listing a long set of errors as individual messages. Keep in mind also that this message figures also in PDF reports and tooltips, meaning that it should not be something too extensive. There is also a technical challenge here, given that the output conditions are applied in sequence and will stop when a condition match is successful. This allows you to check in sequence for conditions and stop on the most accurate match, avoiding multiple incorrect matches if you would continue to check all conditions.

If you need to create a more complete report with custom outputs for the user you could potentially find useful the DisplayProcessor. This is a processing handler that allows you to pass any set of inputs to create a customised report. You could for example construct this at the end of a test session to show multiple sets of feedback (although this would not be executed if you've set the test case to stop on errors).

To better understand your needs could you explain how you envisage using multiple output messages?

@costas80 costas80 added the enhancement New feature or request label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants