how to customize testng-results.xml (output )file name.

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

how to customize testng-results.xml (output )file name.

Harpal Lodha
i am running my test case with testng using maven-surefire 
by default its generating xml report in target\surefire-reports\testng-results.xml

i am having requirement to run multiple suites in diff processes and combine report 
i can not rename result files later due to some limitations.

is there any way?  i can customize testng-results.xml file name
 
as testng-results_1.xml and  testng-results_2.xml 

by using some command line arg or by changing in  -DsuiteXmlFile=testng.xml

not willing to implement complete Listener as it will take a lot time.

Thanks
Harpal

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: how to customize testng-results.xml (output )file name.

Krishnan Mahadevan

You can change the filename by passing it via the JVM argument: -Dtestng.report.xml.name

 

Thanks & Regards

Krishnan Mahadevan

 

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

My Scribblings @ http://wakened-cognition.blogspot.com/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/


Reply-To: <[hidden email]>
Date: Friday, March 16, 2018 at 9:01 PM
To: testng-users <[hidden email]>
Subject: [testng-users] how to customize testng-results.xml (output )file name.

 

i am running my test case with testng using maven-surefire 

by default its generating xml report in target\surefire-reports\testng-results.xml

 

i am having requirement to run multiple suites in diff processes and combine report 

i can not rename result files later due to some limitations.

 

is there any way?  i can customize testng-results.xml file name

 

as testng-results_1.xml and  testng-results_2.xml 

 

by using some command line arg or by changing in  -DsuiteXmlFile=testng.xml

 

not willing to implement complete Listener as it will take a lot time.

 

Thanks

Harpal

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[hidden email].
To post to this group, send email to
[hidden email].
Visit this group at
https://groups.google.com/group/testng-users.
For more options, visit
https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: how to customize testng-results.xml (output )file name.

Saurabh Tiwari
Any idea on how would one change it programatically? 
If somebody has instance of TestNG(). 
Right now I am able to do that by using a custom XML reporter in which I am changing the file name. Any other easier way to do that?

On Saturday, March 17, 2018 at 8:22:21 PM UTC-7, Krishnan Mahadevan wrote:

You can change the filename by passing it via the JVM argument: -<a href="http://Dtestng.report.xml.name" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2FDtestng.report.xml.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHZ_-_fq6z-1FGHvM8JMjP_5lAMnw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2FDtestng.report.xml.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHZ_-_fq6z-1FGHvM8JMjP_5lAMnw&#39;;return true;">Dtestng.report.xml.name

 

Thanks & Regards

Krishnan Mahadevan

 

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

My Scribblings @ <a href="http://wakened-cognition.blogspot.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">http://rationaleemotions.wordpress.com/


Reply-To: <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="seMUb9T2CAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">testng...@...>
Date: Friday, March 16, 2018 at 9:01 PM
To: testng-users <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="seMUb9T2CAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">testng...@...>
Subject: [testng-users] how to customize testng-results.xml (output )file name.

 

i am running my test case with testng using maven-surefire 

by default its generating xml report in target\surefire-reports\testng-results.xml

 

i am having requirement to run multiple suites in diff processes and combine report 

i can not rename result files later due to some limitations.

 

is there any way?  i can customize testng-results.xml file name

 

as testng-results_1.xml and  testng-results_2.xml 

 

by using some command line arg or by changing in  -DsuiteXmlFile=testng.xml

 

not willing to implement complete Listener as it will take a lot time.

 

Thanks

Harpal

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="seMUb9T2CAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">testng-users+unsubscribe@googlegroups.com.
To post to this group, send email to
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="seMUb9T2CAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">testng-users@....
Visit this group at
<a href="https://groups.google.com/group/testng-users" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;">https://groups.google.com/group/testng-users.
For more options, visit
<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: how to customize testng-results.xml (output )file name.

Krishnan Mahadevan

You should be able to do it via System.setProperty() no ?

 

Thanks & Regards

Krishnan Mahadevan

 

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

My Scribblings @ http://wakened-cognition.blogspot.com/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/

From: <[hidden email]> on behalf of Saurabh Tiwari <[hidden email]>
Reply-To: <[hidden email]>
Date: Tuesday, April 24, 2018 at 12:29 PM
To: testng-users <[hidden email]>
Subject: Re: [testng-users] how to customize testng-results.xml (output )file name.

 

Any idea on how would one change it programatically? 

If somebody has instance of TestNG(). 

Right now I am able to do that by using a custom XML reporter in which I am changing the file name. Any other easier way to do that?

On Saturday, March 17, 2018 at 8:22:21 PM UTC-7, Krishnan Mahadevan wrote:

You can change the filename by passing it via the JVM argument: -Dtestng.report.xml.name

 

Thanks & Regards

Krishnan Mahadevan

 

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

My Scribblings @ http://wakened-cognition.blogspot.com/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/


Reply-To: <
<a href="javascript:" target="_blank">testng...@...>
Date: Friday, March 16, 2018 at 9:01 PM
To: testng-users <
<a href="javascript:" target="_blank">testng...@...>
Subject: [testng-users] how to customize testng-results.xml (output )file name.

 

i am running my test case with testng using maven-surefire 

by default its generating xml report in target\surefire-reports\testng-results.xml

 

i am having requirement to run multiple suites in diff processes and combine report 

i can not rename result files later due to some limitations.

 

is there any way?  i can customize testng-results.xml file name

 

as testng-results_1.xml and  testng-results_2.xml 

 

by using some command line arg or by changing in  -DsuiteXmlFile=testng.xml

 

not willing to implement complete Listener as it will take a lot time.

 

Thanks

Harpal

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
<a href="javascript:" target="_blank">testng-users+unsubscribe@....
To post to this group, send email to
<a href="javascript:" target="_blank">testng-users@....
Visit this group at
https://groups.google.com/group/testng-users.
For more options, visit
https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[hidden email].
To post to this group, send email to
[hidden email].
Visit this group at
https://groups.google.com/group/testng-users.
For more options, visit
https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.