facebookarchive / WebDriverAgent

A WebDriver server for iOS that runs inside the Simulator.
Other
4.14k stars 1.34k forks source link

iOS app working fine while testing manually but crashes in automation run #1075

Open manishboricha opened 5 years ago

manishboricha commented 5 years ago

Appium Version : 1.9.1 iOS Version : 12.0 Xcode Version : 10.0 App compiled using xcode version : 10.1 Framework : Hybrid (Maven+Testng+Apache poi+Java) Java version : 1.8.1

Applications runs smoothly while testing manually but it starts crashing when running automation with above configuration in some specific screens.

Automation is working fine with appium 1.7.2 and 1.8.0

I dont know what is wrong with Appium version 1.9.1

Xcode device logs shows critical memory error and app crashes.

Crash Logs in appium

[debug] [MJSONWP] Matched JSONWP error code 889 to UnknownError [debug] [BaseDriver] Waited for 90 ms so far [debug] [JSONWP Proxy] Matched ‘/elements’ to command name ‘findElements’ [debug] [JSONWP Proxy] Proxying [POST /elements] to [POST http://localhost:8100/session/C68B02B5-3501-40CF-8F30-5C7F7167FEC0/elements] with body: {“using”:“id”,“value”:“UILabel_lvLabel”} [debug] [JSONWP Proxy] Got response with status 200: {“value”:“The application under test with bundle id ‘here is my app bundle id’ is not running, possibly crashed”,“sessionId”:“C68B02B5-3501-40CF-8F30-5C7F7167FEC0”,“status”:889}

ritesh2689 commented 5 years ago

Appium Version - 1.12.0 iOS version - iPhone 6s - 12.1 , iPhone 6 - 11.4 (Real Device) macOS version - 10.14.4 Appium Java Client - 6.1.0 Xcode version - 10.2.1 node version - 10.15.3 npm version - 6.9.0

I am facing the same issue. can any one help here....

2019-05-03 10:24:32:983 - [WD Proxy] Got an unexpected response: {"value":"The application under test with bundle id '' is not running, possibly crashed","sessionId":"A53231FF-183D-49BD-9063-52644A2E414B","status":889}

manifity commented 5 years ago

I have the same problem. Who can to help us with?