生成 TestNG 报告 [英] Generating TestNG reports
本文介绍了生成 TestNG 报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 testNG 中运行测试用例.默认情况下,它在名为test-output"的文件夹中生成结果,并在每次运行时覆盖该文件夹.我想在每次运行时创建单独的报告文件夹并放置我的结果.怎么办.??
I am running Test cases in testNG. By default it is producing results in a folder called "test-output" and overriding that folder every time it runs. I want to create seperate report folder every time it runs and place my results. How to do tat.??
推荐答案
好吧,我只是建议一份包含在测试输出目录中的 html 报告的简单副本.这是我所做的:
Well, i would just suggest a simple copy of the html reports that are contained in the test-output directory. Here is what I do:
1. Log output of my tests to "test-output/work/version/timestamp"
2. Email the emailable-report.html using a Java SMTP mailer class
3. Copy the 600KB of html report files into my "test-output
/work/version/timestamp" to archive the reports. This isn't always
necessary IMHO.
这篇关于生成 TestNG 报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文