Skip to content

AllureLifecycle method getCurrentTestCase() returns UUID of step #373

@Sletov

Description

@Sletov

I'm submitting

  • bug report

Current behavior:

Allure.getLifecycle().getCurrentTestCase() returns UUID of current running test step

Steps to reproduce:

Calling Allure.getLifecycle().getCurrentTestCase() in any Cucumber step (or hook) returns UUID of the step.

Expected behavior:

Allure.getLifecycle().getCurrentTestCase() returns UUID of current running test case

Motivation / use case for changing the behavior:

It's impossible to update current test case (write steps or add attachment) with method AllureLifecycle public updateTestCase(String, Consumer).
Method AllureLifecycle public updateTestCase(Consumer) (for current running test case) doesn't work too.

Environment:

| Allure version | 2.12.1 |
| Test framework | [email protected] |
| Allure integration | [email protected] |
| Generate report using | [email protected] |

Other information

I think problem is at io.qameta.allure.AllureLifecycle.java:223 (threadContext.clear() when starting fixture (hook))

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions