-
Notifications
You must be signed in to change notification settings - Fork 587
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
screenshots are duplicated when using ScreenShooterExtension and Allure #1002
Comments
@asolntsev would it be hard to check if logger with name "allure" is present and make condition from it? |
@SeleniumTestAB it's technically possible, but it doesn't seem to be a good idea in terms of design. Selenide core code should not depend on any listeners. |
@asolntsev indeed it seems that fix should be on allure side rather. As for superclass, doesnt SelenideLogger fulfill such role? But there is one catch, how does Selenide notify Allure that it took screenshot? At first i though about checking if such image file is in report folder but the name of file would differ because of time. Second idea is by making some kind of flag that is set false on beforeStep and true on afterStep if screenshot was taken. |
Hi @asolntsev, |
@dstekanov I haven't tried to re-reproduce it yet, but my logic says that
Am I right? |
Now I see and seems it's not a problem with
When we have |
See comment #946 (comment)
The problem
Given a project using
com.codeborne.selenide.junit5.ScreenShooterExtension
When a test fails
Then two screeenshots are takes.
Details
ScreenShooterExtension
takes a screenshot (and just logs it),ScreenShooterExtension
triggers Allure listener (viaSelenideLogger.commitStep
) which also takes a screenshot.It would be nice to avoid taking 2 screenshots.
Tell us about your environment
The text was updated successfully, but these errors were encountered: