Android Testing: UIAutomator vs Espresso

后端 未结 7 1304
醉酒成梦
醉酒成梦 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:35

    I've found an interesting article, which talks about why you should use them both. Take a look at:

    http://qathread.blogspot.com/2015/05/espresso-uiautomator-perfect-tandem.html

    Already Espresso is enough for me, but for some reasons like testing app notifications I would in just a few weeks learn uiautomator.

    Spend some time to

    • check Google's examples of using these frameworks:

    https://github.com/googlesamples/android-testing/tree/master/ui

    • read a documentation of these frameworks:

    http://developer.android.com/training/testing/ui-testing/espresso-testing.html

    http://developer.android.com/training/testing/ui-testing/uiautomator-testing.html

提交回复
热议问题