-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Long running tessts in sleep mode #604
Comments
Hey Hannes, I tested 4.3.beta1 with the emulator like you described (with the extendedSample).
|
@NinaTietje Thanks for pointing this out. I found a piece code, how to send a command in Espresso tests |
Hello, any workaround on this? My application disconnects randomly after some hours with the device in sleep mode. Thanks in advance. |
No, |
A test is missing for receive messages in sleep mode.
To archive this, the test needs to send device to sleep
manual task
The emulator will go to sleep after 1 min (default setting) if not changed.
Press the power button to wake up the emulator.
command line
To put the device to sleep using command line, run:
adb shell input keyevent 223
To wake the device from sleep using command line, run:
adb shell input keyevent 224
For more info about key events you can send with ADB, check out the KEYCODE_... constants for KeyEvent,
The text was updated successfully, but these errors were encountered: