Ask a Question

TestComplete scripts are failing with Different Screen Resolutions.

SOLVED
thoshima
Occasional Contributor

TestComplete scripts are failing with Different Screen Resolutions.

Hello,

 

I have the below query related to TestComplete:

 

 I have created Testcomplete scripts with Machine Screen Resolution lets say (1366 *768) and I am able to run the scripts successfully and the same scripts are failing if another user trying to run the scripts with different screen resolution.

 

Query: Is there is any impact in Results if there is a change in Screen Resolution. Would be great full if anyone confirm on this.

4 REPLIES 4
Marsha_R
Community Hero

Yes, if you are using screen coordinates in your test, then they are likely to fail on different screen resolutions.  You should be working with objects rather than coordinates.

 

https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/index.html


Marsha_R
[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
sonya_m
SmartBear Alumni (Retired)

Thank you Marsha!

 

Hi @thoshima ! Does this answer your question?


Sonya Mihaljova
Community and Education Specialist

anupamchampati
Frequent Contributor

if your screen resolution are changing please fixed the application sized on the launch so try to use some common size in which you have recorded the script.

if(Window.Visible)
{
Window.Restore();
Window.Position(0, 0, 1366 ,768); // this is to fill all standard recommended display screen
}

thoshima
Occasional Contributor

Thank You so much everyone.

 

I got the solution for this and instead of x,y coordinates, I have provided calculative coordinates ie., Object identification using unique properties and now my script is working fine.

 

@anupamchampati - Yeah I will try this way as well. Thanks

cancel
Showing results for 
Search instead for 
Did you mean: