是没诱惑力么 都没人回复
非企业合作。租用测试类型,感觉还是很好用的。速度无延迟,机器也比较多。因为非企业合作型,所以无 debug 模式,只能抓 log 和复现特殊机型问题。
请问下各位大神
curl -X POST '-H "Content-Type: application/json"' -d "{\"using\":\"partial link text\",\"value\":\"label=Alerts\"}" http://10.2.211.186:8100/session/$SESSION_ID/element
这定位出来的 element 每次 id 都是变化的。怎么破。
#5 楼 @seveniruby 好,我试试。thx
想请教下:
xctest ui 是需要建立在项目里的,然后用官网的方法是 xcodebuild test xxxx。用 appium 运行的时候,是如何把脚本独立出来就能运行的?中间过度大概如何实现的···。目前用 swift 写了脚本,但是一定要放到项目里。有什么方法可以独立在项目外么。
场景是:
monkey 脚本
加点人气,赞。
#18 楼 @zhangzhao_lenovo 这个问题我解了。就是把这个方法去掉。然后定位下你的 webview 空间,点击一下就切入 webview 了。出来的时候再点击一下外部控件即可
#!/bin/bash
device_num=adb devices | grep "device"$ | wc -l
for ((i=1;i<=$device_num;i++))
do
device_serialname=adb devices | grep "device"$ | awk '{print $1}' | sed -n "${i}p"
adb -s $device_serialname install -r xx.apk &
done
多线程安装,个人感觉这样就已经足够快了。主要还是看你电脑的传输效率和其他没关系了。
这个是需要掌握好时机么。输入文字的时间····
@xdf
求问几个问题:
1:是不是用例编写中,一个 case 失败了。整个 case 集就无法继续跳过失败的 case 继续执行了。
2:每次都是重新安装对应 apk 么?还是杀掉数据重新启动来的
3:用例中的 .webview() .native() 作用是什么,有这些方法的时候会使得脚本执行失败。这是封装好了什么方法么。请问如何找到关联的文件。
小白诚心请教。
4: 截图产出在哪,以及报告的位置
5: adb shell ime set android.unicode.ime/.Utf7ImeService 设置完 utf-7 字体输入后,手机再次启动键盘需要手动切到别的输入法才能继续正常使用输入法。
6: 接问题 3 ,关于进入 webview 以及进入 native 的方面会结果收集 log 报错如下:
1) macaca test sample #4 should go into webview:
Error: [contexts()] Not JSON response
at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:59:17
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:921:12)
2) macaca test sample #5 should go into test:
Error: [contexts()] Not JSON response
at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:59:17
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:921:12)
3) macaca test sample #6 should works with web:
Error: [contexts()] Not JSON response
at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:59:17
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:921:12)
4) macaca test sample #7 should logout success:
Error: [contexts()] Not JSON response
at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:59:17
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:921:12)