Generate XML Files Used by JUnit Reports

前端 未结 4 997
北荒
北荒 2020-12-29 10:49

I want to create test reports generated by JUnit / TestNG PROGRAMMATICALLY. So, that rules out ANT. My main concern is to generate XML files which are created by Junit while

4条回答
  •  醉酒成梦
    2020-12-29 11:12

    You asked nearly the same here If you look at the TestNG doc you can use :

    The org.testng.IReporter interface which only has one method: public void generateReport(List suites, String outputDirectory) This method will be invoked by TestNG when all the suites have been run and you can inspect its parameters to access all the information on the run that was just completed.

提交回复
热议问题