I am new to Espresso. I want to test UI performance for an app(fluidity). I can create custom annotation in Espresso for getting fluidity for a particular test or automate new test cases. Does anyone know how to send command like "adb shell dumpsys gfxinfo app_package" from an espresso test?
There's a method android.app.UiAutomation#executeShellCommand added in Android 21.
And then just reading the result is needed with sth similar to what was implemented in the project screenshot-tests-for-android: implemented here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With