Ask a Question

changing desktop's definition resolution will affect exiting test scripts which contain coordinates?

seafalcon
Contributor

changing desktop's definition resolution will affect exiting test scripts which contain coordinates?

changing desktop's definition resolution will affect exiting test scripts which contain coordinates?




Thanks
Find the faith in life
1 REPLY 1
AlexKaras
Community Hero

RE: changing desktop's definition resolution will affect exiting test scripts which contain coordinates?

Hi Philip,



It depends.

In general, (almost?) all TestComplete methods that use coordinates are working with the coordinates that are relative to the top left corner of the relevant object. So, the script should not be affected if the object's size does not change with the screen resolution. Hovewer, if the object changes its size and the new size appears to be smaller and, as a result of this change, coordinates appear to be out of the object boundaries, in this case the script obviously will fail.

It is possible to remove coordinates from the method parameters (i.e. change obj.Click(15, 20) to obj.Click() ). In this case TestComplete will perform click in the middle of the object and removing coordinates is the preferred method if your test does not require clicking on exact coordinates.
Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
cancel
Showing results for 
Search instead for 
Did you mean: