Android's monkey supports package specific testing and application developers look to use this to automate some tests. However, monkey doesn't guarantee that events would be sent only to the application window corresponding to the package. Events could be sent to both status bar and navigation bar. This could cause issues in some applications as settings via status bar could be updated and the application could be sent to background via navigation bar's home key.
The obvious work around is to look for alternatives to avoid/ignore both status bar and navigation bar. However, this wouldn't really work as navigation within the app via back key can't be tested.
Fortunately, Lollipop's screen pinning feature could be used to ensure that events are sent only to the application. This can be enabled via Settings > Security > Screen pinning. Next, the desired app can be pinned via recent app list.
The obvious work around is to look for alternatives to avoid/ignore both status bar and navigation bar. However, this wouldn't really work as navigation within the app via back key can't be tested.
Fortunately, Lollipop's screen pinning feature could be used to ensure that events are sent only to the application. This can be enabled via Settings > Security > Screen pinning. Next, the desired app can be pinned via recent app list.
Android framework takes care that the user can't expand status bar or go back to launcher app. This works for monkey test process too. The back key works only within the application's nested activities and not from the root activity of the application. User can get out of this mode via pressing both back key and recent app icon and this doesn't happen with monkey's generated events.
No comments:
Post a Comment