Skip to content

Step is removed from storage before listener execution #177

Closed

Description

@sskorol

I'm submitting a ...

  • bug report
  • feature request
  • support request => Please do not submit support request here, see note at the top of this template.

What is the current behavior?

Unable to set attachment in beforeStepStop. It doesn't appear in test results report.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

public class StepListener implements StepLifecycleListener {

    @Override
    public void beforeStepStop(final StepResult result) {
        addAttachment("Log", "text content");
    }
}

What is the expected behavior?

Attachment specified in beforeStepStop is linked to the step.

What is the motivation / use case for changing the behavior?

Users are not able to use beforeStepStop event to perform attachments.

Please tell us about your environment:

Allure version 2.5.0
Test framework testng@6.13.1
Allure integration allure-testng@2.0-BETA21
Generate report using allure-gradle@2.5

Activity

  1. Savostytskyi commented on Aug 31, 2018

    @Savostytskyi

    Have the same issue. Does it work for other allure/testNg versions?

  2. added a commit that references this issue on Nov 12, 2018
    ad227f2
  3. added theissue type on Jul 10, 2026
  4. removed
    pr:bugSomething isn't working
    on Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions