Prasanna1 Absent Member.
Absent Member.
1180 views

what do we need to change for silk tests to run on different windows resolution

Hi guys,

We have silk4net tests & workbench tests working perfectly on a windows scaling of (100%) and resolution of 2560*1440 environment. We have a requirement to run tests on different configurations like 4k monitors, 125% scaling. 

I ran existing silk tests on 125% scaling expecting everything would work fine.

Silk test had troubles with TextClick functions, imageclick.

TextClick not working surprised me as the text is clearly visible on the UI in all failed tests.

Is there any agent settings that we need to configure to make our current tests compatible with environment changes?

Thanks much in advance,

Prasanna

0 Likes
2 Replies
Highlighted
Micro Focus Contributor
Micro Focus Contributor

RE: what do we need to change for silk tests to run on different windows resolution

Hi Prasanna,

For testing purposes we strongly recommend that the Windows display settings and indeed the browser display settings are set to 100% as increasing the display setting will negatively impact object recognition. This is especially true if you are executing low level coordinate based clicks or using fall back mechanisms such as image and text recognition; as controls may appear offset or off screen when executing the test after the screen resolution has changed.

If you still wish to pursue testing on this there are some things you can try, for example for imageclick() you can overload the image with multiple images. For example you can add an image for the control where the screen is 100% and then after you have changed the setting to 125% you can add a second screen image to the image to see if this helps. You will also need to ensure that the image is on screen prior to being clicked as the method does not work if the control is not in view.

Likewise for the TextClick() method you will need to ensure that the control is on screen as text recognition does not work with controls that are not visible on screen, so the text needs to be scrolled into view in order to be recognised. You also need to ensure that the fonts used during recording of the test exist on the machine where the test is being executed.

Thanks,
John
0 Likes
Prasanna1 Absent Member.
Absent Member.

RE: what do we need to change for silk tests to run on different windows resolution

Hi John,

please excuse my late response on this. thank you for your inputs. Object recognition is ok at our end after restart but textclick's are still a pain. We requested a enhancement request. Many windows users prefer to use 125% scaling and high res monitors these days. Having our existing regression suite pass on different environments will multiply our assurance with software releases. Hope this will benefit others too.

thanks much for your feedback,
Prasanna
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.