使用参数文件选项运行套件套件

编程入门 行业动态 更新时间:2024-10-14 12:27:06
本文介绍了使用参数文件选项运行套件套件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有两个套件文件,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

更多推荐

使用参数文件选项运行套件套件

本文发布于:2023-11-17 02:45:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1608523.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:套件   选项   参数   文件

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!