R.id.show_text_view)).check(matches(withText(STRING_TO_BE_TYPED))); } } 完整代码:https://github.com/googlesamples/android-testing hasExtra(MainActivity.EXTRA_MESSAGE, MESSAGE))); } } 完整代码:https://github.com/googlesamples/android-testing check(webMatches(getText(), containsString(MACCHIATO))); } } 完整代码:https://github.com/googlesamples/android-testing testing/index.html http://www.jianshu.com/p/74af4c7043c9 google示例代码:https://github.com/googlesamples/android-testing
本次深入浅出教程只介绍前面两种测试,内容参考自android_testing_google_slides和Google Sample项目android-testing,感兴趣可以阅读示例感受下。
setup http://blog.csdn.net/eclipsexys/article/details/45622813 示例代码 https://github.com/googlesamples/android-testing