티스토리 뷰

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())));

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
링크
TAG
more
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함