java - 在 selenium webdriver 中生成报告

标签 java selenium automation selenium-webdriver testng

在 selenium Web 驱动程序中执行测试用例后如何生成报告。我正在尝试测试 NG 来生成报告,但我必须编写不同的代码才能获取报告?

最佳答案

如果您使用 Maven 和 Surefire 插件(我强烈推荐),则报告始终位于 target/surefire-reports/index.html 中。如果这对您来说还不够,您可以使用 ReportNG库,应该有更方便的 HTML 格式报告。

关于java - 在 selenium webdriver 中生成报告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18976959/

相关文章:

java - apache commons CommandLine 对象是否可以防止命令行注入(inject)?

java - 是否可以使用 jmx 监控 gc 压缩?

C# IIS 以编程方式创建站点缺少方法

java - 如何为 B4A 创建插件

python - 如何使用 Python 连接到 Tor 浏览器

asp.net-mvc - Selenium 测试自动化

java.lang.IllegalAccessError : tried to access method com. google.common.util.concurrent.SimpleTimeLimiter 与 Selenium ChromeDriver Chrome 与 Java

automation - 如何在 Ghost Inspector 中通过 xPath 查找元素

build - 自动docker构建运行错误: Unable to find image

java - 动画 TextView 滑出屏幕