Google开源Android平台自动化测试框架“Espresso”
2013GTAC谷歌介绍了Android平台自动化测试框架“Espresso”(Video,Slides),10月18号谷歌正式开放“Espresso”。在谷歌测试团队博客中如下介绍“Espresso”:
引用
The compelling thing about developing Espresso was making it easy and fun for developers to write reliable UI tests. Espresso has a small, predictable, and easy to learn API, which is still open for customization. But most importantly - Espresso removes the need to think about the complexity of multi-threaded testing. With Espresso, you can think procedurally and write concise, beautiful, and reliable Android UI tests quickly.
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
相关推荐
MaggieMiaoMiao 2020-07-17
wuxiaaa 2020-07-01
Henryztong 2020-06-14
maxelliot 2020-06-11
abdstime 2020-06-10
Dipa 2020-06-09
Noseparte 2020-06-07
jszy 2020-05-25
mohanzb 2020-05-19
xiaoyezihanghui 2020-05-19
宿命java 2020-05-17
lucialee 2020-03-07
Dipa 2020-03-06
woxxoole 2020-02-23
lucialee 2020-01-12
goodby 2020-01-01
retacnyue 2019-12-26
jszy 2019-12-24