如何自定义Selenium TestNG默认报告或创建新的HTML报告? [英] How to customize Selenium TestNG default report or create new HTML report?
问题描述
我尝试了ReportNG,但现在不更新报告&我发现从这个答案中 ,不再使用ReportNG. 我想创建一个测试报告/定制TestNG报告以提供给开发团队.我使用混合框架创建了项目,并遵循了本教程.
I tried ReportNG, but it is not updating the report now & I found that ReportNG is no more used from this answer. I want to create a test report/customize TestNG report to gave to development team. I used Hybrid Framework for creating the project and followed this tutorial.
推荐答案
要自定义硒TestNG报告,可以使用testng侦听器.
To customize selenium TestNG report, you can use testng listeners.
-
ITestListener :测试通过/失败记录结果/屏幕截图/skip.
ITestListener: Log Result/Screenshot on test pass/fail/skip.
IReporter :从xml套件结果生成html报告,并日志.
IReporter: To generate html report from xml suite results and log.
但是,您也可以使用 qaf报告.
它提供了详细的实时报告(不必等待完整的执行).
It provides Detailed Live Reporting (Don`t need to wait for complete execution).
这篇关于如何自定义Selenium TestNG默认报告或创建新的HTML报告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!