Android Testing: UIAutomator vs Espresso

后端 未结 7 1313
醉酒成梦
醉酒成梦 2020-12-04 15:32

I was seeking for test frameworks for Android UI automation and I stumbled upon UI Automator and Espresso and this is the part I am confused about

7条回答
  •  忘掉有多难
    2020-12-04 15:47

    When using UIAutomator you must use an 18+ API while with Espresso, you can go as low as API 8.

    As the Android documentation states, multi-application tests should be done with UIAutomator while if you only want the tests to run inside of your own app package you can use Espresso.

    At the bottom of this documentation's page, you can find the introduction, as well as examples to both of these testing styles.

提交回复
热议问题