GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — AllureSelenide attaches Screenshot and Page source once per nesting level of SelenideLogger.step · Issue #1453 · allure-framework/allure-java DescriptionWhat happened?Summary
Why it happens
public void afterEvent(final LogEvent event) { if (event.getStatus().equals(LogEvent.EventStatus.FAIL)) { lifecycle.getCurrentExecutableKey().ifPresent(owner -> { if (saveScreenshots) { ... addAttachment(owner, "Screenshot", ...) } if (savePageHtml) { ... addAttachment(owner, "Page source", ...) }
catch (RuntimeException | Error e) { SelenideLogger.commitStep(log, e); // -> afterEvent(FAIL) -> another screenshot throw e; } So the number of attachment pairs is (number of enclosing How to reproduceSelenideLogger.addListener("allure", new AllureSelenide().screenshots(true)); SelenideLogger.step("outer step", () -> SelenideLogger.step("inner step", () -> $("#missing").shouldBe(visible))); ActualThree
ExpectedOne ImpactThe duplicates are not copies — each one is a separate Reproduces on 2.24.0 as well — the body of Note on the obvious workaroundSkipping attachments for step wrappers (for example when I have a working implementation of this as a subclass in our own project, with tests for all Question before I send a PRWhich direction would you prefer?
I'm ready to send a PR with unit tests for either — just let me know which one you'd accept. Related: #1439 / #1440 touch What Allure Integration are you using?allure-selenide What version of Allure Integration you are using?3.0.0 What version of Allure Report you are using?2.19.0 Code of Conduct
Reacted by USSQA ActivityMetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |