kirk_bottomley
13 years agoContributor
(X,Y) in Different Resolutions
I've tried looking for an answer to this; everything I've come across advises to avoid (X,Y) coordinates and address objects.
The application being tested is an imaging module. One of the tests uses a calibration image of various points and shapes. Human testing calls for the program to acquire a scale by having the user click the picture at the specified points. There are no objects, it's just a picture.
I can write this test using a low level recording, but is there a function or script that would be able to calculate the changes to the coordinates to run the test on any given monitor resolution? Ideally, have the test look at the display properties of the system and translate the mouse click locations accordingly.
The application being tested is an imaging module. One of the tests uses a calibration image of various points and shapes. Human testing calls for the program to acquire a scale by having the user click the picture at the specified points. There are no objects, it's just a picture.
I can write this test using a low level recording, but is there a function or script that would be able to calculate the changes to the coordinates to run the test on any given monitor resolution? Ideally, have the test look at the display properties of the system and translate the mouse click locations accordingly.