Appium appium 在截图时,经常遇到卡顿现象,咋解

Wang · 2017年04月06日 · 最后由 Stepthen 回复于 2017年07月09日 · 1399 次阅读

appium 1.5,在截图时,经常遇到卡顿现象,咋解?有遇到过类似情况的同学吗?

[debug] [UIAuto] Sending command to instruments: au.capture('screenshotb2ee6957-84c1-4f9a-a861-99f039a7efbf')
[debug] [Instruments] [INST] 2017-04-06 07:24:14 +0000 Debug: evaluation finished
[debug] [Instruments] [INST] 2017-04-06 07:24:14 +0000 Debug: responding with:
[debug] [Instruments] [INST] 2017-04-06 07:24:14 +0000 Debug: Running system command #8: /usr/local/Cellar/node/6.3.0/bin/node /usr/local/lib/node_modules/appium/node_modules/appium-ios-driver/node_modules/appium-uiauto/build/lib/bin/command-proxy-client.js /var/folders/sq/9tbj9l214qsfnjb1qh9x_nrr0000gn/T/instruments_sock 2,{"status":0,"value":""}...

注:每条 case 中每个步骤都会截图,不知是不是截图太过频繁的缘故,还是其他原因

共收到 5 条回复 时间 点赞
Wang #1 · 2017年04月16日 Author

问题已解

请问楼主是啥原因呢?目前我们也在准备加上每个步骤截图的操作

请问楼主是如何解决的,我这边也有时后会遇到截图太慢的情况,会超过 10 秒截图失败;虽然修改源码超时时间截图成功了,但是测试速度还是没解决。

Wang #4 · 2017年07月08日 Author
Stepthen 回复

弃用 appium 自带的截图功能,采用 libimobiledevice 来截图,速度比较快

Wang 回复

多谢!

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册