NoSuchElementException in getCurrentStep() method during parallel run
See original GitHub issueI’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?
During parallel run about 50-70 threads using testNg mechanism i faced that sometimes method which annotated with @Step threw NoSuchElementException
java.util.NoSuchElementException at java.util.LinkedList.getFirst(LinkedList.java:244) at io.qameta.allure.internal.AllureStorage.getCurrentStep(AllureStorage.java:37) at io.qameta.allure.AllureLifecycle.startStep(AllureLifecycle.java:203) at io.qameta.allure.aspects.StepsAspects.step(StepsAspects.java:49)
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
Allure threw NoSuchElementException in
public Optional<String> getCurrentStep() { final LinkedList<String> uids = currentStepContext.get(); return uids.isEmpty() ? Optional.empty() : Optional.of(uids.getFirst());
so i think this method should be synchronized
What is the expected behavior?
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Allure version | 2.4.1 |
---|---|
Test framework | testng@6.9.10 |
Allure adaptor | allure-testng@2.6.0 |
Generate report using | allure-gradle@2.5 |
Other information
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Why Am I Getting a NoSuchElementException When Running ...
This error message... org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"class name" ...
Read more >How to Fix the No Such Element Exception in Java - Rollbar
The NoSuchElementException in Java can be thrown by various accessor methods to indicate that the element being requested does not exist.
Read more >org.openqa.selenium.NoSuchElementException when I run ...
A very common method used for the wait is as follows. ... I'm getting an Exception as below ,when i run the selenium...
Read more >Index - R3 Documentation
An abstract class defining fields shared by all transaction types in the system. BaseTransaction() - Constructor for class net.corda.core.transactions.
Read more >25471 (Random test failures with parallel selenium tests)
When running selenium tests in parallel I often get test failures that seem to be some kind ... NoSuchElementException: Message: Unable to locate...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This ticket should be in the allure-java repo
The issue should be fixed in latest allure-java release.