我有android espresso测试的问题.测试在本地传递但在FTL上失败.这是一个简单的测试
onView(allOf(withId(R.id.text_supercategory_name), withText("Air conditioners"))).
check(matches(withText("Air conditioners")));
这个测试通过本地.在FTL我有错误:
android.support.test.espresso.NoMatchingViewException: No views in hierarchy found matching: (with id: blablabla:id/text_product_verdict and with text: is "Air conditioners")
我不明白,我看到我的测试中没有使用的id/text_product_verdictID ......以及来自其他活动的ID ...测试活动是正确的
@Rule
public ActivityTestRule<HomeActivity> mActivityTestRule = new ActivityTestRule<>(HomeActivity.class);
我查看了FTL上失败测试的视频,并在FTL上看到了很多关于模拟器img的通知
我认为问题是来自Google环聊的粘性通知,并尝试使用--no-auto-google-login旗帜运行我的测试.但是有相同的结果.随着onView(withText("Air conditioners")).check(matches(isDisplayed()));测试通过对FTL.
有人可以帮忙解决问题吗?
automation android firebase android-espresso firebase-test-lab