Appium:出现info: [debug] Didn't get a new command in 60 secs, shutting down...无法继续执行

日前在写Appium测试代码时,有个测试用例是在执行过程中需要等待一段时间后执行的,发现log上出现如下记录:

info: [debug] Didn't get a new command in 60 secs, shutting down...

无法继续执行,因为session都关闭了。

查了下相关文档,是因为:

Appium的默认的命令间隔时间是60s,如果在60s内没有找到,就会自动退出。

解决方法:

可以使用newCommandTimeout设置为更大的数值。

capabilities.setCapability("newCommandTimeout",240);

更多参数看官方文档:

 http://appium.io/slate/en/master/?ruby#the---default-capabilities-flag

posted @ 2016-03-08 11:10  臭臭爸爸  阅读(1462)  评论(1编辑  收藏  举报