-
Notifications
You must be signed in to change notification settings - Fork 237
AllureLifecycle method getCurrentTestCase() returns UUID of step #373
Description
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))