android应用程序自动化的最佳方法

时间:2019-12-31 06:32:41

标签: android automated-tests appium appium-android

这将是自动化Android应用程序测试用例的最佳方法。适用于持续集成

当前使用Java + Appium + Docker进行尝试。还有其他建议吗?

1 个答案:

答案 0 :(得分:0)

您可以尝试使用Espresso,因为Google正式支持了Espresso,并且是最好的android UI测试。

借助Espresso,可以轻松编写可靠的用户界面测试。

浓缩咖啡的简单演示:

@Test
fun checkTextDisplayed() {
onView(withId(R.id.txt_name)).perform(typeText("Steve"))
onView(withId(R.id.btn_click)).perform(click())
onView(withText("Hello Haresh!")).check(matches(isDisplayed()))
}