Using jenkins to start appium server remotely and executing iOS automation will crash
See original GitHub issueThe problem
Using jenkins to start appium remotely and executing iOS automation will crash
Environment
- Appium version : v1.7.1
- iwdp version: ios_webkit_debug_proxy 1.8,Built with libimobiledevice v1.2.1, libplist v2.0.0
- Desktop OS/version used to run Appium:Mac 10.12.6
- Node.js version: v6.11.4
- Mobile platform/version under test: iPhone 6sp iOS 11.0.3
- Real device or emulator/simulator: Real device
- Appium CLI or Appium.app|exe: Appium CLI
Details
first I set capabilities capabilities.setCapability("startIWDP", true);
then I use jenkins or ssh(by using JSch ) to start appium server remotely and start executing iOS automation. when the test Started IWDP, the appium server was crashed, you can watch the logs below;
But, when I set capabilities capabilities.setCapability("startIWDP", false);
the the appium server won’t be crashed.
pls help me out. thx!!!
Link to Appium logs
2017-11-27 17:41:52:253 - [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1511775712253 (17:41:52 GMT+0800 (CST))
2017-11-27 17:41:52:254 - [debug] [XCUITest] Sending createSession command to WDA
2017-11-27 17:41:52:256 - [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxx.xxx","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
ldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"should
UseSingletonTestManager":true}}
2017-11-27 17:41:54:781 - [HTTP] --> GET /wd/hub/status {}
2017-11-27 17:41:54:782 - [debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
2017-11-27 17:41:54:795 - [debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.7.1","revision":"0a95e77000515c1156be593642dd4e452f2f098e"}}
2017-11-27 17:41:54:797 - [HTTP] <-- GET /wd/hub/status 200 14 ms - 121
2017-11-27 17:41:58:650 - [debug] [JSONWP Proxy] Got response with status 200: {"value":{"sessionId":"D539F7A4-92E1-4788-AE7C-977E140265BD","capabilities":{"device":"iphone","browserName":"xxx","sdkVersion":"11.0.3","CFBundleIdentifier":"com.xxx.xxx"}},"sessionId":"D539F7A4-92E1-4788-AE7C-977E140265BD","status":0}
2017-11-27 17:41:58:651 - [debug] [BaseDriver] Event 'wdaSessionStarted' logged at 1511775718650 (17:41:58 GMT+0800 (CST))
2017-11-27 17:41:58:651 - [debug] [BaseDriver] Event 'wdaStarted' logged at 1511775718651 (17:41:58 GMT+0800 (CST))
2017-11-27 17:41:58:652 - [debug] [XCUITest] Setting initial orientation to 'PORTRAIT'
2017-11-27 17:41:58:658 - [debug] [JSONWP Proxy] Proxying [POST /orientation] to [POST http://localhost:8100/session/D539F7A4-92E1-4788-AE7C-977E140265BD/orientation] with body: {"orientation":"PORTRAIT"}
2017-11-27 17:41:59:803 - [HTTP] --> GET /wd/hub/status {}
2017-11-27 17:41:59:803 - [debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
2017-11-27 17:41:59:811 - [debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.7.1","revision":"0a95e77000515c1156be593642dd4e452f2f098e"}}
2017-11-27 17:41:59:812 - [HTTP] <-- GET /wd/hub/status 200 9 ms - 121
2017-11-27 17:42:00:064 - [debug] [JSONWP Proxy] Got response with status 200: {"value":{},"sessionId":"D539F7A4-92E1-4788-AE7C-977E140265BD","status":0}
2017-11-27 17:42:00:064 - [debug] [BaseDriver] Event 'orientationSet' logged at 1511775720064 (17:42:00 GMT+0800 (CST))
2017-11-27 17:42:00:065 - [debug] [BaseDriver] Event 'iwdpStarting' logged at 1511775720065 (17:42:00 GMT+0800 (CST))
2017-11-27 17:42:00:069 - [debug] [iOS] Starting ios_webkit_debug_proxy at port 27753 on device ed1ecf1e2ddd960ec5acac87da88a38b387cca15
Error: write EPIPE
at exports._errnoException (util.js:1020:11)
at WriteWrap.afterWrite (net.js:800:14)
Issue Analytics
- State:
- Created 6 years ago
- Comments:14
Top Results From Across the Web
How to integrate appium and run those unit test cases from ...
I've been doing this for a few weeks now. The way I work is to have Appium running all the time. Since we...
Read more >How to install/run Appium on Jenkins on remote server?
I'm trying to run my Appium tests (from Git) on Jenkins on remote server. My project starts running but appium server is installed...
Read more >Integrate Appium test suite with Jenkins | BrowserStack Docs
Integrate your Appium test suite with Jenkins and the BrowserStack device cloud for testing native and hybrid apps using our Jenkins plugin.
Read more >Most common Errors - Appium-specific : Help Center - Support
Confirm that you have started the Appium Server on the local machine using Command line or Appium Desktop App. A running Appium-server is...
Read more >Appium Tutorial Step by Step Appium Automation
I will use Appium Desktop and Android Studio to create a sample mobile ... To run ARM-based apk files on X86 platforms (windows...
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
The third option helped me.
@ochubey ok, I give the log when running ios_webkit_debug_proxy, It’s all ok:
And I know that ios_webkit_debug_proxy won’t be triggered by appium server start, But the java_client(5.0.0BETA9) has the capability
capabilities.setCapability("startIWDP", true)
to start the iwdp automated. If you think that Jenkins might have its own environment, I understand you. however, when I use JSch or Ganymed SSH-2 by java to ssh the remote server and start the appium, then I excute the ios test .(the device is connected to the remote server and the test script is also on the remote server ) It was still crashed. Can you see what I mean?