到目前为止,我所做的是:
onView(allOf(withId(R.id.button),withText("Download"))).check(matches(isClickable())).perform有时它失败的原因是"No views in hierarchy found matching: (with id: something:id/button and with text: is "Open,我知道在Thread.sleep中使用Espresso
我正在使用中提到的上述技术,但是我注意到它不会等待我试图设置的15秒。我在这里的问题是,如果所有后端任务在15秒前完成,espresso是否识别它并开始下一个连续的操作?TimeUnit.MILLISECONDS);
= new ElapsedTimeIdlingResource(waitingTime);
Espresso.registerIdlingResou
我的android espresso单元测试被阻止了,因为一些后台线程没有空闲。我如何确定哪个线程阻塞了我的应用程序的执行?android.support.test.espresso.AppNotIdleException: Looped for 246 iterations over 60 SECONDS.(DefaultFailureHandler.java:92)
at android.support.test.espresso.base.Defa