AdapterViews and Espresso - Android Testing Patterns #3

39 292
46.3
Опубликовано 1 июня 2016, 17:00
Learn up-to-date Android testing practices by checking out the new testing course material:
Advanced Android in Kotlin Testing codelab course, lesson 2 - goo.gle/37N3Pzk
Advanced Android in Kotlin video course (Testing Lessons) - goo.gle/2wxraYZ

Testing lists, grids and spinners with Espresso needs a different approach than the standard View matching with onView(). Learn how to use onData() to look for data in the Adapters backing your AdapterViews to easily bring the required row on screen.

Further reading:

AdapterViews and Espresso on Medium: goo.gl/PYBsOq
Espresso onData documentation: goo.gl/sMBXJY
Espresso DataAdapter Sample: goo.gl/1EwQs2

Watch more episodes of Android Testing Patterns here: goo.gl/g1bLh4

#testing

Subscribe to the Android Developers channel at goo.gl/GEh1ds
автотехномузыкадетское