Avoid android package installer notifications

Mobile Testing, Android App Testing.
User avatar
HugovdB
Posts: 4
Joined: Fri Sep 18, 2020 2:31 pm

Avoid android package installer notifications

Post by HugovdB » Wed Oct 07, 2020 3:10 pm

When I install an APK using either the Instrumentation Wizard or the Deploy Android app step in a script I face the issue of a confirmation message served by the Package installer. Does anyone know how to either avoid these messages or process them in such a way that the application gets installed? I've attached screenshots of the Package installer screens served.
In this screen I'd like the installation to proceed
Screenshot_20201007-144251_Package installer.jpg
Screenshot_20201007-144251_Package installer.jpg (136.81 KiB) Viewed 36 times
Nothing realy happens here but added the img for the complete flow
Screenshot_20201007-144334_Package installer.jpg
Screenshot_20201007-144334_Package installer.jpg (87.35 KiB) Viewed 36 times
In this screen I'd like the package installer to choose done and not open the application as this is a step in the next test case
Screenshot_20201007-144341_Package installer.jpg
Screenshot_20201007-144341_Package installer.jpg (94.18 KiB) Viewed 36 times
Hugo van den Berg
Test Lead at4PS

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6233
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Avoid android package installer notifications

Post by odklizec » Wed Oct 07, 2020 3:40 pm

Hi,

So if I understand you right, you want to automate these installation steps? Have you tried to find these controls with Ranorex Spy? I guess you will have to enable Android OS option (in Ranorex Settings >> Plugins tab >> Mobile section).
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

User avatar
HugovdB
Posts: 4
Joined: Fri Sep 18, 2020 2:31 pm

Re: Avoid android package installer notifications

Post by HugovdB » Wed Oct 07, 2020 3:57 pm

Hi Pavel,

Thanks for your reply, yes I want to automate the complete installation proces. The issue is that I can't find the controls using Ranorex Spy, even after adjusting my settings as you suggested.
Hugo van den Berg
Test Lead at4PS

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6233
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Avoid android package installer notifications

Post by odklizec » Wed Oct 07, 2020 4:02 pm

Hi,

Well, in this case, you are to ably out of luck and you will have to install the app manually? Unfortunately, it’s hard to suggest something else without seeing the apk.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration