path r'c test.html',robot framework - robot命令参数解析

本文档详细解析了Robot Framework的命令行参数,包括--extension、--name、--doc、--metadata、--settag等,涵盖了测试执行范围控制、测试报告定制、参数设置等多个方面。
摘要由CSDN通过智能技术生成

robot 命令参数解析

version > 3.0.1

原文档查看命令:

robot --help

robot -h

-F --extension value

通过文件扩展名控制需要执行的用例。如果只执行一个文件,这个参数无效。需要执行多个扩展名时,用“:”分隔开。

Examples:

--extension robot

-F robot:txt

-N --name name

设置测试套件的名称。如果包含“_”显示为空格。默认值为脚本所在目录的名称。不影响测试的执行过程。

Examples:

--name Regression_Test

-N Smoke

-D --doc documentation

设置整体测试报告的文档。如果包含“_”显示为空格。支持简单的html格式。不影响测试的执行过程。

Examples:

***bold***

http://url/

-M --metadata name:value

设置整体测试报告的数据信息,会显示在测试报告中。不影响测试的执行过程。

Examples:

--metadata version:1.2

--M version:1.2

-G --settag tag *

设置全局标签

Examples:

--settag tag1

--G tag2

-t --test name *

通过测试用名称控制执行范围

Examples:

--test casename1

-t testname2

-s --suite name *

通过测试套件名称控制测试执行范围

Examples:

--suite parentname.childname

-s suitename

-i --include tag *

通过标签控制测试执行范围,可以使用AND, OR, and NOT 操作符

Examples:

--include foo --include bar*

--include fooANDbar*

-e --exclude tag *

通过标签控制测试不执行范围

Examples:

--exclude tag1

-e tag2

-R --rerunfailed output

重新执行一个更早的output文件中的Fail的测试用例

Examples:

--rerunfailed output.xml

-R output.xml

-S --rerunfailedsuites output

重新执行一个更早的output文件中的Fail的Testsuite中的测试用例

Examples:<

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值