c# - 如何使用更新的类为 POM QA 自动化框架生成范围报告?
问题描述
我正在使用 C# 开发一个 QA 自动化框架。我想得到关于通过和失败的测试用例的报告。然后我认为范围报告最适合这个,我尝试了但范围报告类不起作用。请帮助我有正确的代码
解决方案
您需要在 POM.XML 中添加依赖项
<dependency>
<groupId>com.aventstack</groupId>
<artifactId>extentreports</artifactId>
<version>3.1.5</version>
</dependency>
使用以下代码设置报告:
ExtentHtmlReporter report=new ExtentHtmlReporter(path);
extentReport=new ExtentReports();
extentReport.attachReporter(report);
推荐阅读
- powershell - Powershell 中的缩短功能
- php - PHP/MYSQL INSERT INTO ON DUPLICATE KEY UPDATE 未按预期工作
- ios - UIImagePickerController 可以用来从文档目录中选择图片吗?
- linux - 如何安装 TCL 包 textutil、tdom 和 udp?
- go - net/http 传输超过 MaxConnsPerHost
- python - 如何在 Python 中只输入一个工作日的日期
- user-interface - 无法将自定义组件添加到 Intellij GUI 表单
- java - Android位置权限错误与null
- c# - 在 ASP.NET Core 应用程序中生成 ASP.NET 4.x 类型的 cookie
- java - 我们如何通过 java 从未知 XML 中获取所有节点名称