macacajs / macacajs/macaca-android

android驱动升级到2.0.40后出现shortMsg=Process crashed

Open
#73 2 comments 0 reactions 1 assignee View on GitHub

@arnozhang is already working on this.

Since Apr 4, 2018.

Dominant language
JavaScript
Stars
52
Forks
21
PR merge metrics
No merged PRs in 30d

Description

`OSX:10.12.3`
`Android:5.1.1`
`Python:2.7`
`macaca-android:2.0.40`
运行用例出现`shortMsg=Process crashed`,从而导致元素没发操作。

```shell
>> responseHandler.js:11:12 [master] pid:12657 Recieve HTTP Request from Client[2017-10-27 15:09:01]: method: POST url: /wd/hub/session/6254c1fb-db0c-4018-929f-8580b1a52a61/element, jsonBody: {"using":"name","value":"Subscribe"}
>> restart UIAutomatorWD server
>> uiautomator-client.js:61:14 [master] pid:12657 INSTRUMENTATION_RESULT: shortMsg=Process crashed.

>> uiautomator-client.js:61:14 [master] pid:12657 INSTRUMENTATION_CODE: 0

>> uiautomator-client.js:61:14 [master] pid:12657 INSTRUMENTATION_STATUS: numtests=1
>> uiautomator-client.js:61:14 [master] pid:12657
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:12657 INSTRUMENTATION_STATUS: stream=
>> uiautomator-client.js:61:14 [master] pid:12657
UIAutomatorWD->http://localhost:9002<-UIAutomatorWD
INSTRUMENTATION_STATUS_CODE: 0

>> UIAutomatorWD http server ready
>> proxy.js:55:14 [master] pid:12657 Proxy: /wd/hub/session/6254c1fb-db0c-4018-929f-8580b1a52a61/element:POST to http://127.0.0.1:9002/wd/hub/session/6254c1fb-db0c-4018-929f-8580b1a52a61/element:POST with body: {"using":"name","value":"Subscribe"}
>> proxy.js:85:20 [master] pid:12657 Got response with status 200: {"sessionId":null,"status":0,"value":{"ELEMENT":"1"}}
>> session.js:109:14 [master] pid:12657 Send HTTP Respone to Client[2017-10-27 15:09:03]: {"sessionId":null,"status":0,"value":"{\"ELEMENT\":\"1\"}"}
>> responseHandler.js:11:12 [master] pid:12657 Recieve HTTP Request from Client[2017-10-27 15:09:03]: method: GET url: /wd/hub/session/6254c1fb-db0c-4018-929f-8580b1a52a61/element/1/displayed, jsonBody: {}
>> restart UIAutomatorWD server
>> uiautomator-client.js:61:14 [master] pid:12657 INSTRUMENTATION_RESULT: shortMsg=Process crashed.

>> uiautomator-client.js:61:14 [master] pid:12657 INSTRUMENTATION_CODE: 0

>> uiautomator-client.js:61:14 [master] pid:12657 INSTRUMENTATION_STATUS: numtests=1
>> uiautomator-client.js:61:14 [master] pid:12657
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:12657 INSTRUMENTATION_STATUS: stream=
UIAutomatorWD->http://localhost:9002<-UIAutomatorWD
INSTRUMENTATION_STATUS_CODE: 0
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.