首页 > 解决方案 > 使用范围报告设置 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);


    }

我看到了构建,但没有项目。

标签: c#mongodbspecflowextentreports

解决方案


在 extent.attach 报告中,您还需要附加 Klov 报告


推荐阅读