Access google map view inside a native android application

Mobile Testing, Android App Testing.
User avatar
sandamal
Posts: 28
Joined: Wed Jul 08, 2015 7:50 am

Access google map view inside a native android application

Post by sandamal » Mon Jan 02, 2017 11:43 am

Hi , this question might have asked before but couldn't find a specific solution yet :(

Im automating a Android application (kind of a order management) and when open order details it loads a google map part inside a view which plot the order location,

As you may have experienced ranorex is failing to identify this google map elements (loads as a blank view), :cry:

Im trying to integrate appium to pass that part of the test but still no luck.( issues like appium aslo trying to reload the activity )

can anyone suggest a solution on this. (I need to click on the plot in map and verify the label text)
:oops:

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Access google map view inside a native android application

Post by Support Team » Mon Jan 02, 2017 12:37 pm

Hi Sandamal,

To interact with the Google Maps elements, it is necessary to sign the instrumented application using the same certificate that was used during the build of the APK file.
To set these additional parameters, please open the "Settings..." dialog as shown below.
Android_settings.png
Android_settings.png (10.5 KiB) Viewed 871 times

Afterwards, please enter the “APK Signing” details.
Android_Settings_2.png
Android_Settings_2.png (12.21 KiB) Viewed 871 times

Please ensure that the same signing is used for building and instrumenting the APK and that you need to enter the JDK bin path manually.

I hope this solves your problem.

Regards,
Markus (S)
.
Image

User avatar
sandamal
Posts: 28
Joined: Wed Jul 08, 2015 7:50 am

Re: Access google map view inside a native android application

Post by sandamal » Tue Jan 03, 2017 1:33 pm

Support Team wrote:Hi Sandamal,

To interact with the Google Maps elements, it is necessary to sign the instrumented application using the same certificate that was used during the build of the APK file.
To set these additional parameters, please open the "Settings..." dialog as shown below.
Android_settings.png

Afterwards, please enter the “APK Signing” details.
Android_Settings_2.png

Please ensure that the same signing is used for building and instrumenting the APK and that you need to enter the JDK bin path manually.

I hope this solves your problem.

Regards,
Markus (S)
Hi , I followed the above and still it is failing to identify the google map view. is there a way for me to share the snapshot with you and get an advice ?