qaf junit xml report path customization

20 views
Skip to first unread message

mohan s

unread,
May 26, 2025, 1:32:12 PMMay 26
to qaf users
Hi Chirag,

Is it possible to customize the path of junit xml report generated by qaf for both maven & gradle projects?

Thanks,
Mohan

cjayswal

unread,
May 26, 2025, 2:06:45 PMMay 26
to qaf users
You should be able to set it by setting output directory.
If you have existing project refer pom or build file.

mohan s

unread,
May 26, 2025, 2:45:56 PMMay 26
to qaf-...@googlegroups.com
can I set separate path for junit result file TEST-TestSuite.xml alone(currently it's going under ${test.results.dir}/${run.time} along with testng html/xml/json reports)?

<reportsDirectory>${test.results.dir}/${run.time}</reportsDirectory>
<systemPropertyVariables>
<org.uncommons.reportng.xml-dialect>testng</org.uncommons.reportng.xml-dialect>
<org.uncommons.reportng.escape-output>false</org.uncommons.reportng.escape-output>
<log4j.configuration>file:///${resource.dir}/log4j.properties</log4j.configuration>
<outputDir>${output.dir}</outputDir>
<test.results.dir>${output.dir}/html</test.results.dir>
<json.report.root.dir>${test.results.dir}</json.report.root.dir>

--
You received this message because you are subscribed to a topic in the Google Groups "qaf users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qaf-users/41TAjOw5fS0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qaf-users+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/qaf-users/08e40b31-8d10-4973-8afd-0695cc1ed089n%40googlegroups.com.

cjayswal

unread,
May 26, 2025, 2:56:13 PMMay 26
to qaf users
You can customize as per your need. 
For example you can have different properties or value for output directory.

<outputDir>${xmloutput.dir}</outputDir>

<test.results.dir>${output.dir}/html</test.results.dir>
<json.report.root.dir>${test.results.dir}</json.report.root.dir>
Message has been deleted

mohan s

unread,
May 27, 2025, 12:13:58 PMMay 27
to qaf users
I realized that for maven it’s generating a consolidated junit xml file. But for gradle, there is a junit xml report created for every class individually. Any clue how to generate consolidated junit xml file for gradle test task?
Reply all
Reply to author
Forward
0 new messages