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

Step is removed from storage before listener execution #177

Closed
1 of 3 tasks
sskorol opened this issue Dec 24, 2017 · 1 comment · Fixed by #269
Closed
1 of 3 tasks

Step is removed from storage before listener execution #177

sskorol opened this issue Dec 24, 2017 · 1 comment · Fixed by #269
Labels
theme:api Java API related issue type:bug Something isn't working work:in progress Some work in progress at the moment

Comments

@sskorol
Copy link
Contributor

sskorol commented Dec 24, 2017

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 [email protected]
Allure integration [email protected]
Generate report using [email protected]
@Savostytskyi
Copy link

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

@baev baev added type:bug Something isn't working work:in progress Some work in progress at the moment theme:api Java API related issue labels Nov 12, 2018
@baev baev closed this as completed in #269 Nov 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme:api Java API related issue type:bug Something isn't working work:in progress Some work in progress at the moment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants