Android OS automation and Close Application not working
Posted: Tue Aug 07, 2018 5:37 pm
Hi, I am new to Ranorex and currently doing a trial. I am trying to reproduce tests we have created with another UI test tool with Ranorex, however the tools work very differently.
I am running Ranorex version 8.2.0 on a Windows 7 machine. The DUT is a NEXUS 6P running Android 8.1.0.
The app being tested is one that has a lot of security which means it cannot be tested un-obfuscated without triggering security checks and altering the app behaviour. As such I cannot use the Ranorex instrumentation. However I have found that if I install the app as usual on the phone I can interact with it using the 'Android OS automation'.
During our test cases we test things such as minimising and closing the app at different points to see what it remembers of where it was before hand but I am having trouble reproducing these now.
For minimise I can just do Mobile key press {HOME} - which I hope will work on the various app screens.
But for Close there are problems:
Using the Close Application-CloseWindow action doesn't have any affect on the app though the test seems to think it worked. I have tried selecting different Repository items from the 'AndroidOS' down to items on the app but none seem to have an effect. To check it was working I tried the CloseApplication with a different app which was instrumented and deployed through the tool and this essentially minimised it not closed it completely. Other apps on the phone but not instrumented also do not close.
Another solution would be to press the Android 'Recent Apps'/'Overview' button and close the app that way, however there doesn't seem to be a mobile key press action for this.
Can you please help me find a solution to this?
The Snapshot I have attached isn't for the app i am testing as that has confidential information on but another phone app which is showing the same behaviour. Also for some reason the end point in the snapshot isn't the one it is actually connected to - not sure why that is.
Regards,
Katie
I am running Ranorex version 8.2.0 on a Windows 7 machine. The DUT is a NEXUS 6P running Android 8.1.0.
The app being tested is one that has a lot of security which means it cannot be tested un-obfuscated without triggering security checks and altering the app behaviour. As such I cannot use the Ranorex instrumentation. However I have found that if I install the app as usual on the phone I can interact with it using the 'Android OS automation'.
During our test cases we test things such as minimising and closing the app at different points to see what it remembers of where it was before hand but I am having trouble reproducing these now.
For minimise I can just do Mobile key press {HOME} - which I hope will work on the various app screens.
But for Close there are problems:
Using the Close Application-CloseWindow action doesn't have any affect on the app though the test seems to think it worked. I have tried selecting different Repository items from the 'AndroidOS' down to items on the app but none seem to have an effect. To check it was working I tried the CloseApplication with a different app which was instrumented and deployed through the tool and this essentially minimised it not closed it completely. Other apps on the phone but not instrumented also do not close.
Another solution would be to press the Android 'Recent Apps'/'Overview' button and close the app that way, however there doesn't seem to be a mobile key press action for this.
Can you please help me find a solution to this?
The Snapshot I have attached isn't for the app i am testing as that has confidential information on but another phone app which is showing the same behaviour. Also for some reason the end point in the snapshot isn't the one it is actually connected to - not sure why that is.
Regards,
Katie