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

Serenity Report Reason for all failures #3450

Open
3 tasks
Yeshi2021 opened this issue Apr 24, 2024 · 4 comments
Open
3 tasks

Serenity Report Reason for all failures #3450

Yeshi2021 opened this issue Apr 24, 2024 · 4 comments

Comments

@Yeshi2021
Copy link

Yeshi2021 commented Apr 24, 2024

What's the Problem You're Trying to Solve?

Currently from serenity report we only read number of Passed and Failed test cases, without considering a reasons for other failures. currently using serenity 3.7.1
Serenity report shows status for failed Steps and Test cases. Need to know the reason of all failed why is broken, or skipped....
do we need to add proper error message? Looking to improve more our serenity report
e.g.

  1. Test Step: Skipped, Ignored, Pending, Incomplete,Failed

  2. Test cases : Skipped, Ignored, Broken, Compromised, Aborted, Error, Undefined

I find this but is not enough explanation:
https://serenity-bdd.github.io/docs/reporting/the_serenity_reports

Proposed Solution

looking to improve our serenity report

Alternative Solutions

No response

Implementation Support

  • Contribute the feature myself (with guidance from the Serenity BDD team)
  • Hire the Serenity BDD team for implementation
  • Add it to the Serenity BDD backlog and wait for community contribution
@globalworming
Copy link
Collaborator

you can throw specific exceptions, this doc is a bit older but it probably still works like this

https://serenity-bdd.info/docs/articles/semantic-exceptions.html

@Yeshi2021 Yeshi2021 changed the title Serenity Report Missing reason for failure Serenity Report Reason for all failures Apr 25, 2024
@Yeshi2021
Copy link
Author

Yeshi2021 commented Apr 25, 2024

@globalworming thank you, what I am looking is the reasons of failure of the above mentioned

@wakaleo
Copy link
Member

wakaleo commented Apr 25, 2024

You can write your own custom report or propose a PR to enhance the existing reports by adapting the Freemarker templates in the serenity-resources module. Alternatively, if this is valuable for your work or your organisation, you can always request a commercial support package so we can do it for you.

@Yeshi2021
Copy link
Author

@wakaleo Thanks for that info, serenity report is beautiful I was just checking if is any documentation out there where is explain the cause of failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants