我有一个文件夹(测试)在机器人的文件,如下图所示:如何强制机器人框架按顺序选择机器人文件?
tests
1_robotfile1.robot
2_robotfile2.robot
3_robotfile3.robot
4_robotfile4.robot
5_robotfile5.robot
6_robotfile6.robot
7_robotfile7.robot
8_robotfile8.robot
9_robotfile9.robot
10_robotfile10.robot
11_robotfile11.robot
现在如果我执行'/root/users1/power$ pybot root/user1/tests'
指令,机器人的文件按照以下顺序运行:
tests
1_robotfile1.robot
10_robotfile10.robot
11_robotfile11.robot
2_robotfile2.robot
3_robotfile3.robot
4_robotfile4.robot
5_robotfile5.robot
6_robotfile6.robot
7_robotfile7.robot
8_robotfile8.robot
9_robotfile9.robot
我想迫使robot_framework按顺序选择机器人文件,如1,2,3,4,5 ....
我们有任何选择吗?
你有能力重新命名你的测试吗?给他们所有三位数前缀:001_robotfile1.robot,002_robotfile2.robot,010_robotfile10.robot,... –
@BryanOakley谢谢。重命名文件后,它按预期工作。 – rcubefather