pichumani
1 hour agoOccasional Contributor
Region checkpoint
is there a way to make Region checkpoint, display hardware and display settings independent ?
It would be of great help if i get a solution.
is there a way to make Region checkpoint, display hardware and display settings independent ?
It would be of great help if i get a solution.
What do you mean by "display hardware"?
You can display screen resolution for example,
Log.Message("Resolution: " + Sys.Desktop.Width + "x" + Sys.Desktop.Height);
or enviroment variables,
Log.Message("User Profile: " + aqEnvironment.GetEnvironmentVariable("USERPROFILE"));Actually, i am trying to test a picture of an WPF object by using "Object.Picture()" method. i am also using the same method to store the reference image. But the problem is, when i change the display or Scaling/Resolution setting or some other colleague of mine is trying to run the test in his/her system, it fails. i need to update the checkpoint in these cases in the first run. is there a way to fix this issue so that it works in the above cases. Increasing color and pixel tolerance could make pass even when the pictures do not match.
I suggest reading How Image Comparison Works and Factors Affecting Image Comparison to better understand how image comparison works. Then agree on having all development machines set to a specific resolution, scaling etc for automation.
Okay, Thanks a lot for the link, let me go through it and come back.
At Anycase, coming back to the first question, is there any predefined, image processing logic that someone already is using to make the region checkpoint hardware independent ? or we have to live with the fact that when hardware changes, we need to update the checkpoint ?