Automation of wpf app - Managing multiple screen resolutions
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2018
04:49 AM
11-22-2018
04:49 AM
Automation of wpf app - Managing multiple screen resolutions
I am working on automation a wpf app using testcomplete. My issue is i am recording the tests in a pc which has a resoltuion of 1366*768. I need the tests recorded in 1366*768 resolution to run in a higher resolution screen like 1920*1080. Can you suggest ways to do it, it it is possible.
3 REPLIES 3
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2018
07:07 AM
11-22-2018
07:07 AM
Hi,
Try to either remove coordinates from the recorded .Click() events or replace them with -1 value.
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
================================
/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
================================
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2018
04:45 AM
12-10-2018
04:45 AM
There are two options
Either Replace the click without coordinates
Read the Coordinates in run time and Click on the center of the object
Ob_height = Object.height
Ob_Width = Object.Width
Object.click(Ob_height /2,Ob_Width/2 )
With Regards
Vallalarasu Pandiyan
https://www.linkedin.com/in/vallalarasupandiyan/
Vallalarasu Pandiyan
https://www.linkedin.com/in/vallalarasupandiyan/
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2018
06:44 AM
12-10-2018
06:44 AM
There is no need to manually grab the cooridnates, not specifying cooridnates or using -1, will default the center of the object.
Thanks,
Carson
Click the Accept as Solution button if my answer has helped
