Ryan2009 / aster

Automatically exported from code.google.com/p/aster
Other
0 stars 0 forks source link

Orientation of device infects the coordinates of screen #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open an application that turns on landscape mode (e.g. AngryBirds)
2. Run wookieerunner and press the target with coordinate of screen

What is the expected output? What do you see instead?
The expected output should be: target being pressed.
But instead, another target is pressed.

Cause:
This is actually cause by the change between normal mode and landscape mode by 
the application. In landscape mode, monkey calculate the target coordinate with 
x, y interchanged.

Solution:
Need to find a way to detect device orientation and update the corresponding 
view of IDE. The calculated coordinate should be swapped before sending to 
monkeyrunner.

Original issue reported on code.google.com by aitjcize on 25 Jul 2011 at 9:45

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Still can't find a good way to deal with this issue, please advice.

One way to do it might be pushing a executable to the device for reporting 
screen orientation before testing.

Original comment by aitjcize on 27 Jul 2011 at 9:32

GoogleCodeExporter commented 9 years ago
This is solved by adding a button on the UI to let user specify the orientation.

Original comment by aitjcize on 8 Aug 2011 at 3:30