Dan*_*dek 5 android android-testing android-espresso android-orchestrator
在使用 espresso 时,我经常遇到这样的情况:espresso 被卡住(例如 on onView(withId(R.id.somebutton)).perform(click()))等待所有资源空闲,据我所知,这些资源可以是动画、后台任务、队列中的可运行项等。目前我收到的唯一消息是:
E/TestRunner: androidx.test.espresso.PerformException: Error performing 'single click - At Coordinates: 359, 1291 and precision: 16, 16' on view 'with id: com.example:id/somebutton'.
(...)
Caused by: androidx.test.espresso.AppNotIdleException: Looped for 7 iterations over 60 SECONDS. The following Idle Conditions failed .
Run Code Online (Sandbox Code Playgroud)
该应用程序非常复杂,有什么可以帮助缩小导致 espresso 认为该应用程序不空闲的原因吗?
| 归档时间: |
|
| 查看次数: |
966 次 |
| 最近记录: |