Forum Discussion

Prathibha_krish's avatar
Prathibha_krish
Occasional Contributor
12 years ago

Image comparision is getting failed in TC9.2

I am trying to compare reference images with run time image.If the reference image is taken in the same PC the comparision is getting passed but if i try to perform the same comparion in difference PC's with same reference images the comparision is getting failed,even though the PC's configuration are same.

It would be great help if any one can suggest me what could the reason for failing. 
  • Here are the usual suspects:


    • Screen resolution


    • Color depth settings


    • Display DPI setting


    • Operating system


    • Status of ClearType text setting


    • Graphics drivers


    There could be numerous other factors, and at a point it becomes simpler to just assume there will always be more causes of divergence than you can control.



    What I found was most sensible was to build code around image comparisons so that more than one reference image can be kept on file as a backup to more elegant methods to ensure consistency.
  • Have you saved out a copy of each system's image and manually checked what the differences are (if any)? You can use . That would help you determine if the problem is in the object or arguments being used by TestComplete or if it is external to what you can control.