温馨提示:本文翻译自stackoverflow.com,查看原文请点击:robotframework - How wait that Run (from OperatingSystem library) is performed before to do the next step?
robotframework

robotframework - 在执行下一步之前,如何等待运行(来自OperatingSystem库)?

发布于 2020-03-28 23:21:20

我有一个测试用例(TC1)。该测试用例使用命令Run robot -t TC2 mytestsuite.robot另一个测试用例(TC2)进行调用

但是,TC2仅在的结尾执行TC1,而不在调用它的时刻执行。

我们可以在日志中看到。调用在处完成,10:21:55.870但命令仅在处执行10:23:21.463

该算法如下所示:

Some actions
Run    robot -t TC2 mytestsuite.robot
Some actions 2

在这里Some actions 2执行之前Run robot -t TC2 mytestsuite.robot在下一步之前,如何等待运行?

您知道如何解决该问题吗?

查看更多

查看更多

提问者
Royce
被浏览
47
Royce 2020-01-31 19:53

解决方案是将被称为测试用例的项目放在另一个项目中。