开发者

Generating HTML TestNG reports [duplicate]

This question already has answers here: Closed 11 years ago.

Possible Duplicate:

Generating HTML TestNG reports

Hi, I have two methods: addUser开发者_如何学编程() and deleteuser(). Now I have to generate a HTML report for that using TestNG. I am using Selenium to test our website. So while running it is generating it's own html file. I want to create my own. My class structure looks like this:

public class test{

setup method
testcase method
stop method
}

Now where I have to include code for generating reports. I didn't have any idea about this. Actually I tried to use ITestListener and IReporter but they ask me to override generateMethod. But I don't know how to use those methods. Can anyone guide me with sample code ?


The documentation explains how to do this, along with an example:

http://testng.org/doc/documentation-main.html#logging

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜