如何自定义 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.
推荐答案
要自定义 selenium TestNG 报告,可以使用 testng 监听器.
To customize selenium TestNG report, you can use testng listeners.
ITestListener:测试通过/失败时的记录结果/屏幕截图/跳过.
ITestListener: Log Result/Screenshot on test pass/fail/skip.
IReporter:从 xml 套件结果生成 html 报告和记录.
IReporter: To generate html report from xml suite results and log.
但作为替代,您可以使用 qaf-reporting.
But as an alternative you can use qaf-reporting.
它提供详细的实时报告(无需等待完整执行).
It provides Detailed Live Reporting (Don`t need to wait for complete execution).
这篇关于如何自定义 Selenium TestNG 默认报告或创建新的 HTML 报告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!