Issue
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?
Solution
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
Answered By - R. Zagórski
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.