1. 执行指定目录下的所有suite

如下的目录,存在两suite

命令行执行robot framework用例的常用命令

运行命令

pybot F:\python_space\robot_frame_work\test_interface\cs

pybot 自动遍历指定目录下的所有suite

命令行执行robot framework用例的常用命令

2. 执行指定的suite

pybot  F:\python_space\robot_frame_work\test_interface\cs\login.txt

3. 执行suite中的单个用例

pybot --test 用例名  suite路径

例如:

命令行执行robot framework用例的常用命令

4. 指定报告的输出地址

call pybot --outputdir 报告路径  用例路径

例如:

命令行执行robot framework用例的常用命令

5. 执行包含指定tag的用例

pybot --include tag名  用例路径

例如:

命令行执行robot framework用例的常用命令

6. 查看更多命令

pybot -h

参考

https://blog.csdn.net/daxialeesuper/article/details/79126017

https://blog.csdn.net/justheretobe/article/details/52937937

相关文章: