在Android studio 2.2中录制浓缩咖啡测试用例
我正在使用Android studio 2.2并尝试录制浓缩咖啡测试。我无法向Toast消息、EditText错误消息或Snackbar消息添加断言。 我得到下面的Snackbar文本例外在Android studio 2.2中录制浓缩咖啡测试用例,android,assert,android-espresso,android-studio-2.2,android-espresso-recorder,Android,Assert,Android Espresso,Android Studio 2.2,Android Espresso Recorder,我正在使用Android studio 2.2并尝试录制浓缩咖啡测试。我无法向Toast消息、EditText错误消息或Snackbar消息添加断言。 我得到下面的Snackbar文本例外 android.support.test.espresso.NoMatchingViewException: No views in hierarchy found matching: (with id: com.example.root.myapplication:id/snackbar_text and
android.support.test.espresso.NoMatchingViewException: No views in hierarchy found matching: (with id: com.example.root.myapplication:id/snackbar_text and with text: is "enter email" and Child at position 0 in parent Child at position 2 in parent an instance of android.view.ViewGroup and is displayed on the screen to the user)
感谢您的帮助
谢谢
查看层次结构:可能重复@HowieH,谢谢,但我正在Android Studio 2.2中录制浓缩咖啡测试。我不想编写代码,因为现在我们可以简单地记录这些步骤,并使用Studio 2.2在UI组件上添加断言