使用cmd命令运行robotframework用例

使用robotframework设计好测试用例后,我们需要部署到Jenkins上面,下面就介绍一下“Excute windows batch command”方法,即使用command命令运行robotframework中的测试用例。

一、执行整个项目所有用例,pybot 项目路径,例如:

pybot D:\robot

二、 执行某个suite的用例,pybot suite路径,例如:

pybot D:\robot\testsuit.txt

三、执行某个测试用例,pybot –测试用例名 in 该测试用例所在suite,例如:

pybot --testcase1_login in D:\robot\testsuit.txt

四、将测试结果输出到固定路径,call pybot –outputdir 报告路径 用例路径,例如:

call pybot --ouputdir D:\ropot D:robot\testsuit.txt

五、执行某个tag的测试用例,pybot –include [tag name] [项目路径],例如:

pybot --include nomal D:\robot

猜你喜欢

转载自blog.csdn.net/DaxiaLeeSuper/article/details/79126017