Running Android Tests on Sauce Labs

Hi,

Trying to run Android tests on Sauce Labs emulators. I received this error.

Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: Remote install failed: pkg: /data/local/tmp/cc71322356228d0fd0e1cfdef222dcee.apk\r\nFailure [INSTALL_FAILED_MISSING_SHARED_LIBRARY])”,“origValue”:“Remote install failed: pkg: /data/local/tmp/cc71322356228d0fd0e1cfdef222dcee.apk\r\nFailure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]”},“sessionId”:null}

The apk I’m testing uses Google Play services. It looks like all Sauce Labs Android emulators do not have this installed.

Is there an Appium-Sauce Labs representative here that can confirm this? If yes, is there any plan in the near future to have google play services installed on a few emulators?

I understand I can do this locally and I have (through Genymotion). We’re trying to expand our testing through the cloud.

Thanks,
Tnguyen

I’m running into the same situation and according to some SauceLabs forum posts, support for this isn’t targeted any time soon. Is there any way to install the gapps apks via appium prior to running a test … similar to the way our app apk gets installed by appium with the ADB install command?

What I’d recommend is launching an on app activity (for example Settings) then use the install_app method to install any required apks, and finally use install_app to install your apk. After the apks are installed, you can invoke start_activity to start your app.

Facing same issue. I believe there should be some way to specify additional setup required by application to run tests on Saucelabs (Google Play Services version x installed, back camera emulated etc).

Hi ,
I am also facing similar type of issue:

1152015-07-28 11:55:50:256 - info: [debug] Error: Remote install failed: pkg: /data/local/tmp/2e6e01c42c58bfea46e1395aed30ad67.apk
116Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]
117 at /home/chef/appium/node_modules/appium-adb/lib/adb.js:1358:17
118 at [object Object]. (/home/chef/appium/node_modules/appium-adb/lib/adb.js:180:9)
119 at ChildProcess.exithandler (child_process.js:635:7)
120 at ChildProcess.EventEmitter.emit (events.js:98:17)
121 at maybeClose (child_process.js:743:16)
122 at Process.ChildProcess._handle.onexit (child_process.js:810:5)
1232015-07-28 11:55:50:257 - info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: Remote install failed: pkg: /data/local/tmp/2e6e01c42c58bfea46e1395aed30ad67.apk\r\nFailure [INSTALL_FAILED_INSUFFICIENT_STORAGE])”,“origValue”:“Remote install failed: pkg: /data/local/tmp/2e6e01c42c58bfea46e1395aed30ad67.apk\r\nFailure [INSTALL_FAILED_INSUFFICIENT_STORAGE]”},“sessionId”:null}
1242015-07-28 11:55:50:263 - info: <-- POST /wd/hub/session 500 28056.887 ms - 380

Please help.
Thanks,
Sandeep Panghal