Forum Discussion

pichumani's avatar
pichumani
Occasional Contributor
1 hour ago

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.

5 Replies

  • rraghvani's avatar
    rraghvani
    Icon for Champion Level 3 rankChampion Level 3

    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"));
  • pichumani's avatar
    pichumani
    Occasional Contributor

    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.

      • pichumani's avatar
        pichumani
        Occasional Contributor

        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 ?