Jenkins: how do you get deviceId using the Android Emulator Plugin

Hi @roy.zheng,

Ah yes, if you’re not running startApplication() at all or running it with a non-existent .apk file, I’m pretty sure that you get the exact error you’re seeing. It definitely isn’t very obvious about what’s really going on.

So, if you point to an actual .apk located on the Jenkins build node, in the startApplication() call, I bet you’ll get further in your test.

Also check out this post that can help you avoid hardcoding the .apk file path in your scripts so it’ll be easier to run on Jenkins:

Hope this helps,

Chris