google android UI測試工具 espresso相關
1 一些具體APi使用的例子
https://code.google.com/p/android-test-kit/wiki/EspressoSamples
onView(withId(R.id.action_save)) .perform(click());
2 從espresso 2開始,已經集成到sdk裏面了。使用studio 時的配置
You can now use the Android Support Repository, available through the SDK Manager to download the latest version.
https://code.google.com/p/android-test-kit/wiki/EspressoSetupInstructions
注意: testInstrumentationRunner 已經更新爲 "android.support.test.runner.AndroidJUnitRunner"
3 https://code.google.com/p/android-test-kit/具體jar包的下載。
使用過原來別人blog寫的用espresso1寫的項目,但是一直編譯不了。只能官方下了demo,然後通過eclipse編譯了一個。