macaca 定位工具 app-inspect 启动报错 error:command failed
本帖最后由 芭比哇玩123 于 2017-6-5 09:29 编辑C:\Users\Summe>app-inspector -u F1JSA02000362 --verbose
server.js:16:12 pid:11412 server start with config:
{ port: 5678,
verbose: true,
udid: 'F1JSA02000362',
ip: '192.168.199.148',
host: 'Summe-PC',
loaded_time: '2017-06-01 17:26:46' }
app-inspector.js:43:12 pid:11412 server start at: http://192.168.199.148:5678
{ Error: Command failed: D:\android-sdk\android-sdk-windows/platform-tools/adb -s F1JSA02000362 push C:\Users\Summe\AppData\Roaming\npm\node_modules\app-inspect
or\node_modules\uiautomatorwd\app\build\outputs\apk\app-debug.apk /data/local/tmp/com.macaca.android.testing
at ChildProcess.exithandler (child_process.js:204:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:886:16)
at Socket. (internal/child_process.js:342:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close as _onclose
killed: false,
code: 1,
signal: null,
cmd: 'D:\android-sdk\android-sdk-windows/platform-tools/adb -s F1JSA02000362 push C:\Users\Summe\AppData\Roaming\npm\node_modules\app-inspector\node
_modules\uiautomatorwd\app\build\outputs\apk\app-debug.apk /data/local/tmp/com.macaca.android.testing' }
:lol 支持分享 C:\Users\Summe\AppData\Roaming\npm\node_modules\app-inspector\node_modules\uiautomatorwd\app\build\outputs\apk\app-
debug.apk
这个路径下的apk有没有?
手机上是不是已经存在这个app?
如果没有,重新下载macaca驱动,
将手机上的
android-unlock
com.macaca.android.testing.test
UiAutomator sample
这三个app卸载掉再试试看 一样的问题,刚解决了
就是那个文件夹下面的apk没有生成成功,我的原因是gradle没配好,导致macaca-android安装过程出错
解决了这个问题再重新安装一下app-inspector就行了 \app-inspector\node
_modules\uiautomatorwd\app 把别人这个文件夹下有个build文件夹全部拷过来就好了。 现在出现问题通过qpp-inspector 定位出来的xpath 执行测试的时候提示元素没有找到?
页:
[1]