郑文强 2013-10-23
2013GTAC谷歌介绍了Android平台自动化测试框架“Espresso”(Video,Slides),10月18号谷歌正式开放“Espresso”。在谷歌测试团队博客中如下介绍“Espresso”:
Google目前已经在超过30多个应用(Drive、Maps、G+)中使用Espresso。
public void testSayHello() { onView(withId(R.id.name_field)) .perform(typeText("Steve")); onView(withId(R.id.greet_button)) .perform(click()); onView(withText("Hello Steve!")) .check(matches(isDisplayed())); }
Espresso
https://code.google.com/p/android-test-kit/wiki/Espresso
EspressoStartGuide
https://code.google.com/p/android-test-kit/wiki/EspressoStartGuide
EspressoSamples
https://code.google.com/p/android-test-kit/wiki/EspressoSamples
EspressoforAndroid-aDemo
http://www.youtube.com/watch?v=qtKx1WxK7cw