Android
Android Espresso view class Matcher
Gibson 김형섭
2017. 3. 3. 15:10
Android Ui test with espresso
view class matcher ( custom view ...)
안드로이드 UI 테스트 espresso에서 matcher에 view class로 비교하는방법 (custom view 등)
UI테스팅 코드를 작성하면서 보통 onView(withId(R.id.title)) 이런식으로 id를 비교한다.
그 외에도 add view 해준 view 객체도 class로 비교 할 수 있다.
onView(withClassName(containsString(CustomView.class.getSimpleName())));