Slow interaction with Android apps - possible solution

Mobile Testing, Android App Testing.
User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 4421
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Slow interaction with Android apps - possible solution

Post by odklizec » Thu Mar 07, 2019 3:28 pm

Hi guys,

I've recently started automating Android apps and I was shocked about the speed (slowness) of interaction with instrumented apps via spy and overall speed of playback. A simple test consisting of login, few touches and validations here or there and logout took about 18-20m! Plus it was incredibly slow to interact with the app UI, via Spy. Just today, I found an old post discussing similar issue. And sure enough, disabling "Full image comparison" in instrumentation settings helped also in my case! The same test now finished in 1.8-1.9m and interaction with UI via Spy is smooth, like working with desktop/web apps. I can finally track elements, without 30s or longer delays, between clicks in mobile app UI tree :D
FullImageComparison.png
FullImageComparison.png (33.03 KiB) Viewed 46 times
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

dugovic.milan
Posts: 55
Joined: Wed Jun 29, 2016 1:19 pm
Location: Frankfurt, Germany
Contact:

Re: Slow interaction with Android apps - possible solution

Post by dugovic.milan » Mon Mar 11, 2019 9:01 am

You are most likely aware of this, but when you run your tests over WiFi, not via USB it also speeds up you test execution. But anyhow, thanks for the hint. Much appreciated!
Support my Ranorex Ideas & Improvements
My current approach: Ranorex 8.3.0

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

Re: Slow interaction with Android apps - possible solution

Post by odklizec » Mon Mar 11, 2019 9:49 am

Hi Milan,

Yes, I'm aware that wifi is supposed to be faster. However, it was not helpful in this particular case. It appears that if the instrumented app features camera functionality, this instrumentation flag dramatically slows the Ranorex/AUT interaction performance.
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