【问题标题】:ExtentSparkReporter type or namespace cannot be found, why is this happening? C#找不到 ExtentSparkReporter 类型或命名空间,为什么会这样? C#
【发布时间】:2022-07-26 12:48:07
【问题描述】:

ExtentSprakReporter type or namespace not found我正在尝试为我的项目生成范围报告,但不推荐使用 ExtentV3HtmlReporter。范围网站声明替换为 ExtentSparkReporter。但是,当我尝试创建 ExtentSparkReporter 的新实例时,找不到类型或名称空间。不知道为什么它不起作用。我无法在网上找到任何东西来解决我的问题。

ExtentSparkReporter extentSpark = new ExtentSparkReporter();

【问题讨论】:

    标签: c# selenium automated-tests extentreports selenium-extent-report


    【解决方案1】:

    我自己有这个。为了解决这个问题,我不得不将 ExtentReports 升级到 5.0.0 版

    https://www.nuget.org/packages/ExtentReports/5.0.0-alpha6

    在 Visual Studio 中打开您的终端(查看 -> 终端),转到您的项目目录并运行:

    dotnet 添加包 ExtentReports --version 5.0.0-alpha6

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-03-25
      • 2011-06-28
      • 2021-08-19
      • 1970-01-01
      • 1970-01-01
      • 2019-07-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多