Appium 1.7.0 crashes Java client 5.0.3 when testing iOS
See original GitHub issueDescription
When attempting to use java-client 5.0.3 to test an iOS device with Appium 1.7.0, the java-client crashes with java.lang.NullPointerException: null value in entry: browserName=null
Environment
- java client build version or git revision if you use some shapshot: 5.0.3
- Appium server version or git revision if you use some shapshot: 1.7.0
- Desktop OS/version used to run Appium if necessary: macOS Sierra 10.12.6
- Node.js version (unless using Appium.app|exe) or Appium CLI or Appium.app|exe: Node.js v8.5.0, Appium 1.7.0
- Mobile platform/version under test: iOS
- Real device or emulator/simulator: Real Device
Details
Using the same Appium Server, I can use appium-desktop using the custom server option to connect to the iOS device just fine. Android is unaffected. I believe this chunk of the logs are could relevant:
2017-09-19 22:43:55:863 - info: [HTTP] <-- POST /wd/hub/session 200 23221 ms - 589
2017-09-19 22:43:55:908 - info: [HTTP] --> GET /wd/hub/session/c4c0364a-9a80-442e-b328-3dbb5d77418b {}
2017-09-19 22:43:55:909 - info: [debug] [MJSONWP] Calling AppiumDriver.getSession() with args: ["c4c0364a-9a80-442e-b328-3dbb5d77418b"]
2017-09-19 22:43:55:909 - info: [debug] [XCUITest] Executing command 'getSession'
2017-09-19 22:43:55:924 - info: [debug] [JSONWP Proxy] Proxying [GET /] to [GET http://localhost:8100/session/25E38EC3-E56F-44E4-806E-9B404F0A9D80] with no body
2017-09-19 22:43:56:103 - info: [debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"sessionId\" : \"25E38EC3-E56F-44E4-806E-9B404F0A9D80\",\n \"capabilities\" : {\n \"device\" : \"iphone\",\n \"browserName\" : null,\n \"sdkVersion\" : \"10.3.2\",\n \"CFBundleIdentifier\" : \"local.pid.53\"\n }\n },\n \"sessionId\" : \"25E38EC3-E56F-44E4-806E-9B404F0A9D80\",\n \"status\" : 0\n}"
2017-09-19 22:43:56:103 - info: [XCUITest] Merging WDA caps over Appium caps for session detail response
2017-09-19 22:43:56:104 - info: [debug] [MJSONWP] Responding to client with driver.getSession() result: {"udid":"67e44e99a952683ca27e8beccc50687bf4a71490","app":"/Users/nwelna/Documents/app-automation/appFiles/ios/app.ipa","xcodeOrgId":"UTURYJS693","automationName":"XCUITest","browserName":null,"platformName":"iOS","deviceName":"Test Device","xcodeSigningId":"iPhone Developer","usePrebuiltWDA":true,"device":"iphone","sdkVersion":"10.3.2","CFBundleIdentifier":"local.pid.53"}
2017-09-19 22:43:56:105 - info: [HTTP] <-- GET /wd/hub/session/c4c0364a-9a80-442e-b328-3dbb5d77418b 200 196 ms - 486
2017-09-19 22:43:56:196 - info: [Appium] Received SIGTERM - shutting down
Code To Reproduce Issue [ Good To Have ]
Just attempt to connect to a real iOS device
Ecxeption stacktraces
Issue Analytics
- State:
- Created 6 years ago
- Comments:26 (13 by maintainers)
Top Results From Across the Web
Appium opens app but crashes when executing test
But when I try to execute the test with appium the app opens in the emulator but it doesn't continue with the tests...
Read more >Appium 1.7.0 Released - News
We have been noticing an issue not mentioned here: Screenshots not working with the latest IOSDriver and Xcode 9 / iOS 11 and...
Read more >iOS - Test Suite run crashes half way through - Appium Discuss
The testcase because of which Testsuite is crashed. If u run it individually does it works ? If yes some issue with Appium...
Read more >IOSDriver (java-client API) - javadoc.io
Creates a new instance based on Appium driver local service, HTTP client factory and capabilities . ... Retrieves battery info from the device...
Read more >View maven: io.appium:java-client - Debricked
Get an overview of maven: io.appium:java-client. See weekly downloads, latest versions and community scores in the Debricked Open Source ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@welnanick i will check in sometime and update you.
@mykola-mokhnach Thanks a lot… It worked…