可以使用 Config.xml 文件自定义 klove reporter(Extent Report)吗?

Can klove reporter (Extent Report) be customized using Config.xml file?

我们可以使用 Config.xml 自定义 klov 报告器吗?我正在使用下面的代码尝试这个,但我没有看到它工作。请看一看,如果我在这里做错了什么,请告诉我。

        var klovReporter = new KlovReporter();

        klovReporter.LoadConfig(configFilePath);

        // specify mongoDb connection
        klovReporter.InitMongoDbConnection("192.168.28.88", 27017);

        // specify project ! you must specify a project, other a "Default project will be used"
        klovReporter.ProjectName = "CsharpReports";

        // you must specify a reportName otherwise a default timestamp will be used
        klovReporter.ReportName = "Build " + DateTime.Now.ToString();

        // URL of the KLOV server
        klovReporter.KlovUrl = "192.168.28.88:8090";

        _extent = new ExtentReports();
        _extent.AttachReporter(klovReporter);

我正在使用下面的 xml 文件进行自定义配置。

<?xml version="1.0" encoding="UTF-8" ?>
<extentreports>
  <configuration>
    <!-- report theme -->
    <!-- standard, dark -->
    <theme>dark</theme>

    <!-- document encoding -->
    <!-- defaults to UTF-8 -->
    <encoding>UTF-8</encoding>

    <!-- protocol for script and stylesheets -->
    <!-- defaults to https -->
    <protocol>https</protocol>

    <!-- title of the document -->
    <documentTitle>Automation Test Report</documentTitle>

    <!-- report name - displayed at top-nav -->
    <reportName>Automation Test Report</reportName>

    <!-- location of charts in the test view -->
    <!-- top, bottom -->
    <testViewChartLocation>bottom</testViewChartLocation>

    <!-- custom javascript -->
    <scripts>
      <![CDATA[

       ]]>
    </scripts>
  </configuration>
</extentreports>

我也有兴趣了解 klov reporter(社区版)中可用的视图类型。正如我所看到的,我的报告中缺少一些观点,这些观点在 demo klov 记者那里。请查看以下报告以便更好地理解。

我的 klov 报告中的可用视图:

klov 记者演示中可用的视图。

没有。要对 Klov 进行任何更改,您必须直接修改源代码。您共享的版本是 0.1.0,现在可用。某些元素不适用于社区版本 API,这就是标签 link 不可见的原因。

您所说的更改源是什么意思?