androidjenkinsandroid-emulatorcucumbercalabash-android

How to disable showcase view in Android emulator


I'm using Android emulator in Jenkins to run functional tests (Cucumber). Everything works fine if the emulator doesn't contain showcase view at the start.

But if there is a showcase view my tests fail, because application runs behind this view.

screenshot

I've tried to send keyevents using adb to the emulator before using it:

adb shell input keyevent KEYCODE_MENU;

but it doesn't help. I've tried KEYCODE_MENU, KEYCODE_BACK and other keys, but they don't disable this view.

I guess this property should be available as a system preference in the Android, but I can't find it :(

How can I disable showcase view in emulator? I have access to the emulator using adb.


UPDATE

There's no such flag which can be set in emulator config file or passed to emulator at the start.

And I still don't have a clean solution for this, but few workarounds exist. And that's understandable as showcase view is just a view from Launcher application and logic for that is inside Launcher application.


Solution

  • You should be able to send a tap event, for example:

    adb shell input tap 700 900
    

    That would tap at approximately the correct x,y pixel coordinate for that button on a Nexus 4.