Ask a Question

Automation of wpf app - Managing multiple screen resolutions

DiwakarDev
Regular Visitor

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
AlexKaras
Community Hero

Re: Automation of wpf app - Managing multiple screen resolutions

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
================================
Vallalarasu_P
Frequent Contributor

Re: Automation of wpf app - Managing multiple screen resolutions

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/
cunderw
Community Hero

Re: Automation of wpf app - Managing multiple screen resolutions

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
cancel
Showing results for 
Search instead for 
Did you mean: