我是新来的意式咖啡。我想测试一个应用程序的UI性能(流畅性)。我可以在Espresso中创建自定义注释,以获得特定测试的流动性或自动化新的测试用例。有谁知道如何在咖啡测试中发送像"adb shell dumpsys gfxinfo app_package“这样的命令?
发布于 2021-04-12 22:18:00
在Android21中添加了一个方法android.app.UiAutomation#executeShellCommand。然后,只需要使用类似于项目screenshot-tests-for-android中实现的东西读取结果:implemented here
https://stackoverflow.com/questions/67055688
复制相似问题