ios - 暂停、 sleep 或停止葫芦的命令

标签 ios cucumber calabash

我希望我在 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/

相关文章:

ios - 使用 Calabash 测试应用程序关闭

ios - 当文本下降到 Swift 中的键盘级别时,如何在我的 TextView 中实现自动滚动?

ios - Swift float 减法的精度损失

maven - 我如何在Groovy项目中使用 cucumber 定义缺少的步骤?

用于检查具有特定类的元素的父级的 cucumber 测试

ios - 尝试启动时 Calabash RunLoop::Fifo::NoReaderConfiguredError

ios - Apple Pay - 支付后端服务器 - iOS

ios - collectionView didSelectItemAtIndexPath 在迁移到 Xcode 10.2 后停止工作

ruby - cucumber / capybara 错误:参数 [0] 未定义(Selenium::WebDriver::Error::JavascriptError)

ios - calabash-ios 不适用于 iOS 7.1 模拟器