最近重新捡起 macaca,打算落实到公司的自动化中,
但是在覆盖 android native 的时候,一直遇到 app 初始化后,操作控件导致 Process crashed,然后不停的在 restart,麻烦大神定位下问题,是不是环境的问题?
用 recorder 录制脚本也会这样
log 如下:
uiautomator-client.js:62:14 [master] pid:38672 INSTRUMENTATION_STATUS: stream=
UIAutomatorWD->http://localhost:51423<-UIAutomatorWD
INSTRUMENTATION_STATUS_CODE: 0UIAutomatorWD http server ready
macaca-android.js:301:10 [master] pid:38672 start app with: {"package":"com.xxx.xxx"}
responseHandler.js:49:14 [master] pid:38672 Send HTTP Respone to Client[2017-12-27 16:21:01]: {"sessionId":"30146223-e7ef-4049-812c-29d6db4be67e","status":0,"value":"{\"udid\":\"81CEBML224MN\",\"deviceName\":\"xxx\",\"platformName\":\"android\",\"reuse\":0,\"package\":\"com.xxx.xxx\"}"}
responseHandler.js:11:12 [master] pid:38672 Recieve HTTP Request from Client[2017-12-27 16:21:01]: method: POST url: /wd/hub/session/30146223-e7ef-4049-812c-29d6db4be67e/element, jsonBody: {"using":"id","value":"com.xxx.xxx/welcome_login_register"}
restart UIAutomatorWD server
uiautomator-client.js:62:14 [master] pid:38672 INSTRUMENTATION_RESULT: shortMsg=Process crashed.
INSTRUMENTATION_CODE: 0uiautomator-client.js:62:14 [master] pid:38672 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: 1uiautomator-client.js:62:14 [master] pid:38672 INSTRUMENTATION_STATUS: stream=
UIAutomatorWD->http://localhost:51423<-UIAutomatorWD
INSTRUMENTATION_STATUS_CODE: 0