机器人框架重新机器人 --与自定义报告合并而不是报告.html



我有一个 --rerunfailed pybot 用于重新运行失败的案例,但最终报告始终显示为报告.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"(,我会得到名为报告的报告.html

在上面的示例中,而不是测试.html 我收到以下错误

[错误] 读取 XML 源"--name"失败:没有此类文件或目录

我也尝试了-r ->与以前相同的错误

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

在文档中,它说得很清楚:Usage: rebot|jyrebot|ipyrebot [options] robot_outputs

最新更新