question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[allure-testng] Could not write Allure test result

See original GitHub issue

from https://github.com/allure-framework/allure2/issues/738

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?

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

In my testcase,if run failed,it will throw AllureResultsWriteException

What is the expected behavior?

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

Please tell us about your environment:

Allure version 2.2.0
Test framework testng@6.12
Allure adaptor allure-testng@2.0-BETA21
Generate report using allure-maven@2.19

Other information

io.qameta.allure.AllureResultsWriteException: Could not write Allure test result at io.qameta.allure.FileSystemResultsWriter.write(FileSystemResultsWriter.java:43) at io.qameta.allure.AllureLifecycle.lambda$writeTestCase$12(AllureLifecycle.java:197) at java.util.Optional.ifPresent(Optional.java:159) at io.qameta.allure.AllureLifecycle.writeTestCase(AllureLifecycle.java:195) at io.qameta.allure.testng.AllureTestNg.onTestFailure(AllureTestNg.java:260) at org.testng.internal.Invoker.runTestListeners(Invoker.java:1738) at org.testng.internal.Invoker.runTestListeners(Invoker.java:1722) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1258) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.nio.channels.ClosedByInterruptException at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202) at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:216) at java.nio.channels.Channels.writeFullyImpl(Channels.java:78) at java.nio.channels.Channels.writeFully(Channels.java:101) at java.nio.channels.Channels.access$000(Channels.java:61) at java.nio.channels.Channels$1.write(Channels.java:174) at com.fasterxml.jackson.core.json.UTF8JsonGenerator._flushBuffer(UTF8JsonGenerator.java:2085) at com.fasterxml.jackson.core.json.UTF8JsonGenerator.close(UTF8JsonGenerator.java:1127) at com.fasterxml.jackson.databind.ObjectMapper._configAndWriteValue(ObjectMapper.java:3898) at com.fasterxml.jackson.databind.ObjectMapper.writeValue(ObjectMapper.java:3164) at io.qameta.allure.FileSystemResultsWriter.write(FileSystemResultsWriter.java:41) ... 12 more

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:18 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
tlytvyncommented, Mar 14, 2018

Updating jackson-core, jackson-annotation and jackson-databind to version 2.9.4 fixed the issue

1reaction
AutomatedOwlcommented, Jul 19, 2018

Looks like it’s fixed in 2.7.0 😃 Thanks @baev for your review

Read more comments on GitHub >

github_iconTop Results From Across the Web

[allure-testng]Could not write Allure test result #738 - GitHub
I'm submitting a ... bug report feature request support request => Please do not submit support request here, see note at the top...
Read more >
Unable to generate allure report using testng and maven
The problem here is with Allure reports which is NOT compatible with TestNG 7.1.0 . TestNG 7.1.0 removed the listener IInvokedMethodListener2 ...
Read more >
allure-framework/allure-core - Gitter
Hello. While trying to generate a report with Jenkins allure plugin I'm getting java.io.IOException: Can't find allure commandline <null> . I have allure...
Read more >
Allure Framework
Allure Framework is a flexible lightweight multi-language test report tool that not only shows a very concise representation of what have ...
Read more >
Allure report integration in selenium-gradle - Road to SDET
It will happen when allure path is not set to the environment variable. Now just type following command: allure --version Output ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found