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

How to write custom reporter? #1515

Closed
sandaliqbal1 opened this issue Jan 9, 2019 · 4 comments
Closed

How to write custom reporter? #1515

sandaliqbal1 opened this issue Jan 9, 2019 · 4 comments
Labels

Comments

@sandaliqbal1
Copy link

sandaliqbal1 commented Jan 9, 2019

@wakaleo
I want to write a custom reporter for serenity. I wrote a class that implements AcceptanceTestReporter interface and overrode some of the methods but I dont see this reporter getting executed. Can anyone list the steps needed to write and register a custom reporter with serenity?

@sandaliqbal1
Copy link
Author

Any answers?

@wakaleo
Copy link
Member

wakaleo commented Jan 14, 2019

Since this is a usage question and not a defect, stackoverflow or the RocketChat Serenity community (https://serenity-bdd.rocket.chat) would be a better place to ask the question.

@ssmuthukumaran
Copy link

ssmuthukumaran commented Jan 20, 2019

You need write a listener and listen to test finished event.
From there you can call your reporter class so that reports are automatically generated once test execution is finished.
For creating custom listener you can follow this page

@sandaliqbal1
Copy link
Author

sandaliqbal1 commented Jan 21, 2019 via email

@wakaleo wakaleo closed this as completed Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants