【问题标题】:Time stamping output files throws error for report时间戳输出文件引发报告错误
【发布时间】:2015-04-20 03:32:09
【问题描述】:
call pybot --timestampoutputs --log mylog.html --report NONE tests.html      
  [ ERROR ] Parsing 'tests.html' failed: Data source does not exist.

我想创建带有时间戳的报告但抛出错误。有关如何生成具有唯一名称和时间日期的报告的任何示例。

【问题讨论】:

    标签: robotframework


    【解决方案1】:

    您报告的错误“Data source does not exist”不是因为您使用了--timestampoutputs 选项。这是因为机器人找不到“tests.html”。

    --timestampoutputs 在你给它一个有效的测试套件时可以正常工作。例如,当我运行您问题中的代码时,我最终得到了一个名为 mylog-20150220-053904.html 的日志文件。

    【讨论】:

    • 谢谢。我不知道为什么它对我不起作用,但我也在使用 pybot --timestampoutputs --log mylog.html --report NONE tests.html 它生成了日志,报告但没有时间戳。它仍然说失败:数据源不存在,我不知道它是什么。
    • 非常感谢您的帮助。现在我可以创建时间戳了。
    猜你喜欢
    • 2016-03-15
    • 1970-01-01
    • 1970-01-01
    • 2018-04-14
    • 1970-01-01
    • 2013-10-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多