我希望我在 iOS 中的葫芦测试运行一定数量的步骤,然后在某一行停止
是否有“ sleep ”、“暂停”或“停止”命令?
最佳答案
根据calabash documentation ,有一个sleep
方法,不过也有几个wait
方法,推荐超过 sleep
.来自维基:
Notes: Waiting for a condition to occur is superior to using the sleep function. With sleep you end up either specifying too long waits which slows the test down or you become sensitive to timing issues. Sometimes you do need sleep (to wait for animations to complete), but try to use waiting as much as possible.
关于ios - 暂停、 sleep 或停止葫芦的命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21023206/