【问题标题】:robotframework rebot --merge with custom report instead of report.htmlrobotframework rebot --merge 与自定义报告而不是 report.html
【发布时间】:2020-02-06 11:27:41
【问题描述】:

我有一个 --rerunfailed pybot 用于重新运行失败的案例,但最终报告始终显示为 report.html

我需要一个自定义名称而不是报告

pybot --noncritical mayFail --suitestatlevel 2 --output "report_details/reportdetail".xml --log "report_details/reportlog".html --report "testreport".html \
--argumentfile "$DIR/../../web.args" || pybot --**rerunfailed** "report_details/firstreport.xml" --noncritical mayFail --suitestatlevel 2 --output "report_details/reportrerun.xml" --log "report_details/reportlog".html --report "testreport.html" \
--argumentfile "$DIR/../../web.args" || rebot --merge "report_details/firstreport.xml" "report_details/reportrerun.xml" --name "test.html"

如果我在合并中不使用 (--name "test.html") 或 (--output "test.html"),我会得到名称为 report.html 的报告

在上面的例子中而不是 test.html 我收到以下错误

[错误] 读取 xml 源 '--name' 失败:没有这样的文件或目录

我也试过 -r -> 和之前一样的错误

【问题讨论】:

  • 我认为这里显然不需要selenium标签...

标签: python shell selenium automated-tests robotframework


【解决方案1】:

当使用rebot 命令时,xml 文件应该是最后一个参数。尝试将顺序更改为:--name "test.html" "report_details/reportrerun.xml"

docs 中写得很清楚:Usage: rebot|jyrebot|ipyrebot [options] robot_outputs

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-12-16
    • 2014-06-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多