https://medium.com/mercari-engineering/android-device-farm-at-mercari-3197237df0e1
- Why Device Farm?
- About STF
- STF Architecture
- Device Side
- Server Side
- Deployment
- STF Deployment
- Overall STF Setup Architecture
- About Latency & Stability
https://medium.com/mercari-engineering/android-device-farm-at-mercari-3197237df0e1
Testing asynchronous RxJava code using Mockito
Using Espresso and UiAutomator
Android task manager or system dialog
[code language=”java”]
Intent closeDialog = new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);
sendBroadcast(closeDialog);
[/code]
[code language=”java”]
public void onWindowFocusChanged(boolean hasFocus) {
super.onWindowFocusChanged(hasFocus);
Log.e("Focus debug", "Focus changed !");
if (!hasFocus) {
Log.e("Focus debug", "Lost focus !");
Intent closeDialog = new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);
sendBroadcast(closeDialog);
}
}
[/code]
overriding @Module
classes with Dagger 2 [in tests]
ActivityTestRule, Building Instrumented Unit Tests, JUnit4 Rules with Testing Support Library, Testing Support Library, Getting Started with Testing
Example: