Closed shynkevichalex closed 2 years ago
I have the same question,Have you found the solution?
Currently I am facing the same issue. I have asked the same question on stack-overflow. https://stackoverflow.com/questions/57566093/allure-test-ng-report-testbody-is-missing @baev do you know any fix for this desperately looking for it. :-)
@LisaHoney @shynkevichalex did you find any solutions for this :-)
Guys, please update if any solution or workaround found
@KroArtem Yeah same here desperately waiting for a workaround or solution.
@baev Any update on this issue?
@baev - Any update on this issue?
Observe same issue when in jest-allure. any fixes???
@baev can you reply please?
You need to add AspectJWeaver javaagent to your command:
java -javaagent:aspectjweaver.jar -jar tests.jar org.testng.TestNG suite.xml
AspectJWeaver agent is added as below
Should we mention suite.xml as well?
Attaching pom.xml for reference Allure2POM.txt
@baev - Any updates on the issue?
@baev - Any updates on the issue?
@baev I have almost the same issue and reported it here https://github.com/allure-framework/allure-java/issues/398 . Please help us fix this
@baev Any update on this issue? Do we have any workaround?
@baev Any update on this issue? i have same problem
any updates?
any updates?
Was having the same issue, after hours and days of debugging found the solution that works for me.
Added aop.xml into resources/META-INF folder (if these is no such folder - create one)
The content of such xml should be:
<aspectj>
<weaver> <!--<weaver options="-verbose -showWeaveInfo">-->
<include within="io.qameta.allure..*"/>
<include within="org.testng..*"/>
<include within="com.changethispath.testautomation..*"/>
</weaver>
</aspectj>
After that Test body with steps and screenshots are visible again.
@galkina-anna <include within="com.changethispath.testautomation..*"/>
Which path is it?
@galkina-anna
<include within="com.changethispath.testautomation..*"/>
Which path is it?
path to tests package
Try to use earlier version of aspectjweaver, e.g. 1.9.0
@galkina-anna this aol.xml file should be added for test resources or for the main part of a project?
And a path for tests should be like src/test/resources/features?
Now I can't resolve this problem with your fix. Can you explain how do you solve this problem for your project? Thank you.
Could someone please given valid solution. I too facing this issue.
@Sergiy1987 sorry for slight delay in reply.
file should be added for test resources or for the main part of a project?
it should be in both places. Same file, same folder
And a path for tests should be like src/test/resources/features?
for me it was path to parent folder which contains page objects or test classes. As far as I understand just the path where allure need to search mentioning of itself
Can you explain how do you solve this problem for your project?
Basically the root cause of it this issue was third-party jar that also was using allure, so some collisions appeared. When I added those 2 files with direct mentioning where allure should search - it worked out for me.
Is anybody have another workaround? I met the same issue.
It would be fine if you use the gradle to generate allure report.
Hi all, I'm using IntelliJ (TestNG + Maven). ### I found an easy solution for this issue: apparently running xml suites directly via the IntelliJ would not work fine, as described in this topic. My solution is:
Attached is an example for pom.xml profile:
`
</profiles>`
I've been having this issue with allure-testng v.2.17.0 and TestNG v.7.5.0
The only thing that helped me was downgrading TestNG to 7.4.0 after which the test bodies started showing as they should.
So try playing around with allure-testng and testng versions to find the compatible combination
i solved this issue using code of this question
`
<plugins>
<plugin>
<groupId>io.qameta.allure</groupId>
<artifactId>allure-maven</artifactId>
<version>2.11.2</version>
<configuration>
<reportDirectory>${basedir}\target\allure-report</reportDirectory>
</configuration>
</plugin>
</plugins>
</reporting>`
Pom.xml configured via documentation https://docs.qameta.io/allure/#_maven_3. When I run test via "mvn test" all works fine.
But I would build jar of test project then extract it on slaves and run tests via command "java org.testng.TestNG suite.xml"
Current result
Test report generates but test body is missed.
Is there any solution to display test body when test run in this way?