【发布时间】:2020-04-08 19:59:59
【问题描述】:
我正在尝试使用“退出循环”来检查 Api 可用性
sleep till Rest api
FOR ${i} IN RANGE 20
Sleep 5s till rest api is available
Exit For Loop If Rest Api == True
Log to Console try again in 5 sec
END
当我尝试执行此操作时,exit for loop 语句无法将 Rest Api 识别为另一个关键字,它会引发错误,例如“没有名为 Exit For Loop If Rest Api 的关键字”。我们可以评估一个关键字以退出 for 循环而不仅仅是变量吗?
【问题讨论】:
标签: robotframework