i testing scenarios rotate screen landscape mode , brings portrait mode in tests once turn screen landscape never turn portrait , test framework stuck , never fails. seems there activity going on. used mainactivity in test setup
activity.setrequestedorientation(activityinfo.screen_orientation_landscape); activity.setrequestedorientation(activityinfo.screen_orientation_portrait);
i use same call doing in of tests, , works fine. activity being destroyed , recreated when go landscape? if yes, maybe there processing happening on destroy/creation stuck. there slight different thing do, maybe can check. if activity destroyed when turn landscape, maybe second call happens activity object ready destroyed, , hence not resume again. can try call getactivity() before going portrait again. rotate current resumed activity, using function described here: http://qathread.blogspot.com.br/2014_09_01_archive.html
Comments
Post a Comment