c# - 使用范围报告设置 Klov,显示构建但没有可用的项目
问题描述
我正在尝试第一次使用新项目设置 Klov。我已经安装了正确版本的 mongodb 并拥有 klov jar。在运行测试之前,我都在 cmd 中运行。当我在浏览器中查看我的 Klov 报告时,我看到构建正在发生,但是“选择您的项目:”下拉列表中没有列出任何项目。有人知道我为什么会出现这个错误吗?
我遵循了其他建议,但似乎 klov 语法已经改变。
private static ExtentKlovReporter klov;
var htmlReporter = new ExtentHtmlReporter(@"C:file/path/.html");
htmlReporter.Config.Theme = AventStack.ExtentReports.Reporter.Configuration.Theme.Dark;
extent = new ExtentReports();
extent.AttachReporter(htmlReporter);
klov = new ExtentKlovReporter();
klov.InitMongoDbConnection("localhost", 27017);
klov.ProjectName = "ExecuteAutomation Test";
klov.InitKlovServerConnection("http://localhost:5689");
klov.ReportName = "Time "+ DateTime.Now.ToString();
extent.AttachReporter(htmlReporter);
}
我看到了构建,但没有项目。
解决方案
在 extent.attach 报告中,您还需要附加 Klov 报告
推荐阅读
- c# - 如何获取响应正文以及如何使用 HttpURLConnection 类设置请求正文?
- spring - 如何处理假客户端连接超时
- mongodb - MongoDB 上的时区查询
- java - 通过多种意图正确传递价值
- javascript - 预定义函数 display() 时如何覆盖效果并更改数组每个元素中的效果
- mongodb - 我需要使用操作更新 Mongodb Shell 中的值
- javascript - 如何向控制器发送多个 id
- javascript - 如何获取输入值并将其设置为单击状态并控制台记录它以进行反应
- amazon-web-services - 无法将 RDS 快照导出到 S3:“当前不支持此操作”
- google-smart-home - 如何在没有帐户链接的情况下进行本地执行操作?