Forum Discussion

Fred_at_Remsoft's avatar
Fred_at_Remsoft
New Contributor
9 years ago

How do I do a region compare with different resolutions between record and replay?

I'm testing a desktop application, developing the tests (using testcomplete) on my PC, and then executing them (with testexecute) on a series of remote machines.  I need to do a region compare on a map drawn by the software (based on the parameters I put in the test, the map changes, and I need to verify the rendering is correct).

 

My problem is, I'm running windows 10 on my PC, and a series of VM's remotely - and I can't put my windows machine into the one and only resolution available by the remote machines.  The net result, is that the image won't match, because the size is different between the two.

 

Any suggestions on how to do the region compare?

  • Ryan_Moran's avatar
    Ryan_Moran
    9 years ago

    You are exactly right that the different sized window will be too different to compare, but you could force the window to a specific size, like 800x706 (to be small enough to fit both screens) and just compare within the window.

  • Ryan_Moran's avatar
    Ryan_Moran
    Valued Contributor

    Seems like you should be able to set the resolution on your VM so I would just suggest investigating that further.

    If the resolution is different between the two machines then your image will not be the same, and thus region compare will show differences. Alternatively, you can run and update the region compare on the VM and NOT update it on your computer with the different resolution. Ultimately though it is as you said that two different resolutions will produce different images.

    • Fred_at_Remsoft's avatar
      Fred_at_Remsoft
      New Contributor

      Thanks - I did my best to get the VM to change its resolution, but the software we're using seems to have one set resolution for some reason.  I have a call into our vendor on that side for that - because their help system isn't NEARLY as robust as the setup here, sadly.

       

      I ended up cannibalizing an external video adaptor from another machine in the office, so I could add a 3rd screen that WOULD allow me to set it to the resolution of the VM exactly, and after some playing around with tolerances, I got it to accept the updated image.

       

      And while that’s solved it for this particular instance - Isn’t there a way to take/capture the results from the failed test, and say “Yeah, that’s close enough, use that as your basis for comparison going forward.” …?