Run suite of suites using argumentfile option

杀马特。学长 韩版系。学妹 提交于 2019-12-11 09:53:23

问题


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.

But running,

pybot --argumentfile master-suite

throws error as,

[ 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.

Is there a way?


回答1:


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.

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


来源:https://stackoverflow.com/questions/32637033/run-suite-of-suites-using-argumentfile-option

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!