Is there a way to do functional testing using googleMaps (android)?

I am currently doing functional testing using my Android app using Espresso , its amazing. The problem is that I would like to be able to check specific actions on the Map. Since this entire application is centered around interacting with a map, is there a way to do this?

What would be great to do:

  • Click on a map on a specific latLng
  • Get a certain level of scaling, etc.
  • Anything else I can do with the map.

I initially thought that I could call onView (withId (R.id.map))) to get an instance of the map, but this returns interactions that, it seems to me, do not believe. I am ready to use other frameworks, but if it can be done in espresso, it will be fine.

+5
source share

Source: https://habr.com/ru/post/1201453/


All Articles