Appium 1.5.3 fails to push .apk
on Android Emulator API 17.
[MJSONWP] Encountered internal error running command: Error: Error executing adbExec. Original error: Command '/Users/vchimev/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 push /Users/vchimev/Work/git/functional-tests-new/testapp/CutenessIO-release.apk /data/local/tmp/7c0f27e2e31b49fcc7204e02714e80ad.apk' timed out after 90000ms{"stdout":"","stderr":"","code":null}
https://gist.github.com/vchimev/a931591c7b38f1049cfe326e74c1b651
It seems like it takes a lot of time for ADB tool to install your application. The default timeout for this in Appium is hardcoded and equals to 90000 milliseconds.
You can manually set this constant to a greater value by editing this file (this is the place where _npm_ installs Appium in Mac OS if you provide _-g_ option):
/usr/local/lib/node_modules/appium-android-driver/build/lib/android-helpers.js
Change the value of
var REMOTE_INSTALL_TIMEOUT = 90000; // milliseconds
constant to _90000 * 2_ and check whether your test still fails.
@imurchie it would be good to make this constant configurable from capabilities
The androidInstallTimeout
cap implements this.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
It seems like it takes a lot of time for ADB tool to install your application. The default timeout for this in Appium is hardcoded and equals to 90000 milliseconds.
You can manually set this constant to a greater value by editing this file (this is the place where _npm_ installs Appium in Mac OS if you provide _-g_ option):
/usr/local/lib/node_modules/appium-android-driver/build/lib/android-helpers.js
Change the value of
constant to _90000 * 2_ and check whether your test still fails.
@imurchie it would be good to make this constant configurable from capabilities