Issue with making a report attachment from TestNG's Reporter logs using IResultListener implementation #2574
Unanswered
FlawlessTheory
asked this question in
Questions & Support
Replies: 1 comment
-
Forgot to mention plugin |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm using Allure with TestNG in my Java project, and I'm currently trying to add some logging which will be attached to the report. Here's how I thought it would work;
io.qameta.allure:allure-testng
andorg.aspectj:aspectjweaver
to the project;ITestListener
/IResultListener
implementation which will get the output throughReporter.getOutput()
on the test finish (be it success or failure) and attach it to Allure report;Reporter.log()
in test body whenever I need to.The thing is, while I can see the attachement files with my logs in report directory, they aren't present on the report page. Is there's something that I'm missing? Any advice would be welcome.
The dependencies I'm using are as follows:
org.testng:testng
, version 7.9.0;io.qameta.allure:allure-testng
, version 2.27.0;org.aspectj:aspectjweaver
, version 1.9.22.1.Here's my TestNG listener:
And here's an example of test that I'm running:
Beta Was this translation helpful? Give feedback.
All reactions