Macaca 执行安卓样例报错

wholegale39 · October 16, 2017 · 650 hits

UIAutomatorWD http server ready

proxy.js:55:14 [master] pid:18500 Proxy: /wd/hub/session/4c70c99a-437c-41fa-9a4c-ebf084fa17c7/element:POST to http://127.0.0.1:9001/wd/hub/session/4c70c99a-437c-41fa-9a4c-ebf084fa17c7/element:POST with body: {"using":"name","value":"HO
ME"}

proxy.js:85:20 [master] pid:18500 Got response with status 200: {"status":32,"value":"Argument was an invalid selector (e.g. XPath/CSS).","sessionId":"4c70c99a-437c-41fa-9a4c-ebf084fa17c7"}

session.js:109:14 [master] pid:18500 Send HTTP Respone to Client[2017-10-16 20:56:09]: {"status":32,"value":"\"Argument was an invalid selector (e.g. XPath/CSS).\"","sessionId":"4c70c99a-437c-41fa-9a4c-ebf084fa17c7"}

responseHandler.js:11:12 [master] pid:18500 Recieve HTTP Request from Client[2017-10-16 20:56:14]: method: POST url: /wd/hub/session/4c70c99a-437c-41fa-9a4c-ebf084fa17c7/element, jsonBody: {"using":"name","value":"Alert"}

restart UIAutomatorWD server

uiautomator-client.js:61:14 [master] pid:18500 INSTRUMENTATION_RESULT: shortMsg=Process crashed.

INSTRUMENTATION_CODE: 0

uiautomator-client.js:61:14 [master] pid:18500 INSTRUMENTATION_STATUS: numtests=1

INSTRUMENTATION_STATUS: stream=

com.macaca.android.testing.UIAutomatorWD:

INSTRUMENTATION_STATUS: id=AndroidJUnitRunner

INSTRUMENTATION_STATUS: test=MacacaTestRunner

INSTRUMENTATION_STATUS: class=com.macaca.android.testing.UIAutomatorWD

INSTRUMENTATION_STATUS: current=1

INSTRUMENTATION_STATUS_CODE: 1

uiautomator-client.js:61:14 [master] pid:18500 INSTRUMENTATION_STATUS: stream=

UIAutomatorWD->http://localhost:9001<-UIAutomatorWD

INSTRUMENTATION_STATUS_CODE: 0

UIAutomatorWD http server ready

proxy.js:55:14 [master] pid:18500 Proxy: /wd/hub/session/4c70c99a-437c-41fa-9a4c-ebf084fa17c7/element:POST to http://127.0.0.1:9001/wd/hub/session/4c70c99a-437c-41fa-9a4c-ebf084fa17c7/element:POST with body: {"using":"name","value":"Al
ert"}

proxy.js:85:20 [master] pid:18500 Got response with status 200: {"status":32,"value":"Argument was an invalid selector (e.g. XPath/CSS).","sessionId":"4c70c99a-437c-41fa-9a4c-ebf084fa17c7"}

session.js:109:14 [master] pid:18500 Send HTTP Respone to Client[2017-10-16 20:56:16]: {"status":32,"value":"\"Argument was an invalid selector (e.g. XPath/CSS).\"","sessionId":"4c70c99a-437c-41fa-9a4c-ebf084fa17c7"}

responseHandler.js:11:12 [master] pid:18500 Recieve HTTP Request from Client[2017-10-16 20:56:17]: method: POST url: /wd/hub/session/4c70c99a-437c-41fa-9a4c-ebf084fa17c7/element, jsonBody: {"using":"name","value":"Alert"}

restart UIAutomatorWD server

uiautomator-client.js:61:14 [master] pid:18500 INSTRUMENTATION_RESULT: shortMsg=Process crashed.

INSTRUMENTATION_CODE: 0

uiautomator-client.js:61:14 [master] pid:18500 java.lang.SecurityException: Calling from not trusted UID!

at android.app.UiAutomationConnection.throwIfCalledByNotTrustedUidLocked(UiAutomationConnection.java:376)

at android.app.UiAutomationConnection.shutdown(UiAutomationConnection.java:275)

at android.app.IUiAutomationConnection$Stub.onTransact(IUiAutomationConnection.java:118)

at android.os.Binder.execTransact(Binder.java:455)

uiautomator-client.js:61:14 [master] pid:18500 java.lang.SecurityException: Calling from not trusted UID!

at android.os.Parcel.readException(Parcel.java:1546)

at android.os.Parcel.readException(Parcel.java:1499)

at android.app.ActivityManagerProxy.startInstrumentation(ActivityManagerNative.java:3913)

at com.android.commands.am.Am.runInstrument(Am.java:976)

at com.android.commands.am.Am.onRun(Am.java:317)

at com.android.internal.os.BaseCommand.run(BaseCommand.java:47)

at com.android.commands.am.Am.main(Am.java:97)

at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)

at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:284)

No Reply at the moment.
需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up