TestComplete scripts are failing with Different Screen Resolutions.
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Marsha!
Hi @thoshima ! Does this answer your question?
Sonya Mihaljova
Community and Education Specialist
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
}
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
