-
Hello, In the readme, there's a section about Allure report (https://github.com/seleniumbase/SeleniumBase#allure-reports). I tried it but screenshots are not attached. With my tests that are not using SeleniumBase, it works. How can I add screenshots of failed tests in a Allure report using SeleniumBase? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @sebtechni, the Allure integration is a stand-alone pytest plugin integration. By default SeleniumBase saves screenshots to pytest-html reports (after all tests complete) and to the |
Beta Was this translation helpful? Give feedback.
Hello @sebtechni, the Allure integration is a stand-alone pytest plugin integration. By default SeleniumBase saves screenshots to pytest-html reports (after all tests complete) and to the
latest_logs/
folder (for failing tests). If you want screenshots to appear in Allure reports, you'll need to create a customtearDown()
method and send a request in there for the screenshots to appear in Allure reports. For instructions on creating a customtearDown()
method that doesn't override the existing SeleniumBasetearDown()
method, see: https://github.com/seleniumbase/SeleniumBase/blob/master/examples/boilerplates/base_test_case.py