使用参数文件选项运行套件套件 [英] Run suite of suites using argumentfile option
问题描述
我有两个套件文件,child1, child2
,每个文件下都有多个测试用例.现在,我有一个名为 master-suite
的顶级文件,它有两行 - child1
和 child2
,表明它需要运行这两行套房.
I have two suite files, child1, child2
each having multiple test cases under them. Now, i have a top file called as master-suite
that has two lines - child1
and child2
, indicating that it needs to run those two suites.
但是跑步,
pybot --argumentfile master-suite
抛出错误为,
[ ERROR ] Parsing '/home/sk/master-suite' failed: Unsupported file format ''.
我有数百个测试用例,我想将它们按不同的功能分组,并将它们保存在较小的文件中.并维护所有子套房中的一个主套房.
I have hundreds of test cases and i would like to group them under different features and keep them in smaller files. And maintain one master suite of all child suites.
有办法吗?
推荐答案
child1
和 child2
是机器人套件文件的无效文件名.如果您尝试使用 pybot child1
单独运行文件,您将得到完全相同的错误.
child1
and child2
are invalid filenames for robot suite files. You will get exactly the same error if you tried to run the files individually with pybot child1
.
机器人使用后缀知道如何解析文件.如果您给文件一个后缀,例如 .txt
或 .robot
,并相应地修改您的参数文件,它应该可以正常工作.
Robot uses the suffix to know how to parse the file. If you give the files a suffix such as .txt
or .robot
, and modify your argument file accordingly, it should work fine.
话虽如此,如果它们在一个文件夹中,您可以将该文件夹作为参数提供给机器人,它会运行该文件夹中的所有测试,而无需参数文件:
That being said, if they are in a folder, you can give the folder as an argument to robot and it will run all tests in that folder without the need of an argument file:
pybot master-suite
这篇关于使用参数文件选项运行套件套件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!