Hi,
I'm having the same issue. When the screen is locked, all the tests fail. On Samsung Galaxy phones it's impossible to set the screen lock delay to be longer than 10 minutes, so you have to manually unlock the screen before any tests are run.
Wakey Droid is a minimalist app that allows waking up the phone from the command line using adb (which just starts the app). As a workaround, you could install the app on the phone and run the adb command before the tests, but this seems like something that should be part of Calabash.
The source code for Wakey Droid is available (
http://bitmote.com/index.php?pages/Wakey-Droid) and is only ~20 lines long. I tried to hack together an action that would do the same, but it didn't work. I omitted the setContentView and postDelayed parts, which evidently are necessary, or some of the XML configuration. Does someone have an idea how to get this working?
Regards,
Sampo N.