gpt4 book ai didi

f# - 如何让 Canopy 的 Live HtmlReporter 工作?

转载 作者:行者123 更新时间:2023-12-02 01:48:34 25 4
gpt4 key购买 nike

我正在制作一个演示 Canopy 的演示文稿我正在尝试让 LiveHtmlReporter 工作,但没有成功。到目前为止,我已经能够打开显示模板的浏览器并将报告保存到磁盘,但报告永远不会随着测试运行的结果而更新。浏览器和保存的报告均包含默认的 0 Passed 0 Failed 0 Todo 0 Skipped。控制台运行程序显示

0 minutes 3 seconds to execute
2 passed
0 failed
Not saving report
Not saving report

我有以下代码

open types
open configuration
open reporters

reporter <- new LiveHtmlReporter(Firefox) :> IReporter

let liveHtmlReporter = reporter :?> LiveHtmlReporter
liveHtmlReporter.reportTemplateUrl <- @"http://localhost:56295/content/reporttemplate.html"
liveHtmlReporter.saveReportHtml @"C:\Code\CanopyDemo\" "report"

// Code for actual tests here

我认为我错过了一些简单的东西,但我对 Canopy 或 F# 还不够熟悉,还没有发现我错过了什么。

最佳答案

There is similar question

reporter <- new LiveHtmlReporter(Chrome, configuration.chromeDir) :> IReporter
let liveHtmlReporter = reporter :?> LiveHtmlReporter
liveHtmlReporter.reportPath <- Some "reports/AutomationResults"

关于f# - 如何让 Canopy 的 Live HtmlReporter 工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24511062/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com