Google开源了Espresso,这是一种Adroid自动化测试框架,使测试人员可以在云中x86机器的多线程环境里运行测试,并解决了关于UI测试的并发问题。
示例测试代码:
public void testSayHello() { oView(withId(R.id.ame_field)) .perform(typeText("Steve")); oView(withId(R.id.greet_butto)) .perform(click()); oView(withText("Hello Steve!")) .check(matches(isDisplayed()));}兼容性:
Codeame API
APIFroyo 8
Gigerbread 10
IceCreamSadwich 15
JellyBea 16,17,18
KitKat 19







评论