tags:

views:

189

answers:

1

Hi,

I'm having problem in generating the testNG-xslt report using Ant. I have did whatever have mention in Varun's blog, I did include the saxon.jar and the testng-results.xsl in my project folder, but still couldn't get my expected result.

1) I would like to know how the testng-results.xml file is generated. Because I couldn't get the testng-results.xml file because that xml file I get is exactly the same name as the test name in testng.xml. How can I change the name to testng-results.xml instead of the test name in testng.xml?

2) As I open the xml file which generated using Ant, it doesn't shown in the correct format where I don't see the any keyword like < testng-results >, < reporter-output >, < test-method > and it is totally different from what I should get as in the sample results from the testng-xslt source code. What I have in my xml file is < testsuite > and < testcase >. I was so curious how can I generate the correct format of TestNG-xslt reporting format?

If anyone have experience in generating TestNG-xslt report, please share some tips on how can I generate the correct testNG-xslt xml format. Thanks in advanced.

A: 

Hi, Please post your ant target used to run tests.

laxman
Thanks for the clue, I have figure out on how to call testNG report from Ant.
huahsin68