=
from:http://www.cnblogs.com/appstest/p/5253257.html
默认60秒貌似可以,超时了,一般都是程序问题了。但是调试阶段,60就不好了,因为需要调试元素么,可你当等较长时间。
=
日前在写Appium测试代码时,有个测试用例是在执行过程中需要等待一段时间后执行的,发现log上出现如下记录:
info: [debug] Didn't get a new command in 60 secs, shutting down...
无法继续执行,因为session都关闭了。
查了下相关文档,是因为:
Appium的默认的命令间隔时间是60s,如果在60s内没有找到,就会自动退出。
解决方法:
可以使用newCommandTimeout
设置为更大的数值。
capabilities.setCapability("newCommandTimeout",240);
更多参数看官方文档:
扫描二维码关注公众号,回复:
219752 查看本文章
http://appium.io/slate/en/master/?ruby#the---default-capabilities-flag
=
=
=