Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Allure Report: How to show Test Name Value From TestNG Suite XML File On Report?

Tags:

testng

allure

In TestNG framework, we use testng suite xml file to define the tests and call mvn (with -Dtestset=testng.xml) to execute them. In side of the xml file, we have test tag with name value, but this name value does not seem to appear anywhere in Allure report. Is there a way to make it to show on the Allure report (prefer to be in the same place as @Feature annotation)?

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Suite For Debug Run" verbose="10" configfailurepolicy="continue">
<test verbose="10" name="Debug Run" preserve-order="true">
    <classes>
        <class name="com.someTestClassName">
            <methods>
                <include name="someTests"/>
            </methods>
        </class>
    </classes>
</test>
</suite>
like image 847
user3356860 Avatar asked Dec 30 '25 08:12

user3356860


1 Answers

So to give some answer to this question I can state that right now you can solve this problem by implementing your own Allure adapter as described in the Github issue I mentioned above. However this will probably be supported in some of 1.4.x releases.

like image 197
vania-pooh Avatar answered Jan 02 '26 22:01

vania-pooh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!