Forum Discussion

jsc's avatar
jsc
Regular Contributor
12 years ago

Screenshots in chrome still fail

Hi all,



I created a little web-test that is using region comparison to check the correct layout of the webpage. I create the tests on PC1 with TestComplete and run them on PC2 with TestExecute. The browser is chrome (current version).



Unfortunately all the screenshots fail on PC2 although I applied the same settings on PC2 as they were on PC1.



- OS: windows 7

- same windows scheme (aero, harmony)

- graphics solution: 1280 x 1024

- color depth: 16 bit

- settings for visual effects in windows

- clear type

- windows color profiles (WCS, ICC)

- same chrome version (firefox, ie are not an option)

..



In all other tests with desktop software I do not have any problem with screenshots.



Can anybody help me, which settings I forgot to adjust?

See attached screenshot for an example of a failed checkpoint.



Best regards

Joachim





  • jsc's avatar
    jsc
    Regular Contributor
    Hi Tanya,



    I already checked all these points before creating the checkpoints



    The browser screenshots fail on background color and borders of the fonts.



    Other tests (desktop software) are completely OK, the screenshots are the the same as taken from the development PC.



    I have no clue what to do...



    Best regards

    Joachim
  • jsc's avatar
    jsc
    Regular Contributor
    here's a more detailed picture how the screenshots fail:

    - 1st row = expected / actual

    - 2nd row = expected / difference
  • jsc's avatar
    jsc
    Regular Contributor
    I already tried that, but color tolerance is not an option as the color difference of some screenshots is > 90%.
  • maximojo's avatar
    maximojo
    Frequent Contributor
    I had this problem with IE and flash as we test on multiple desktop PCs and VMs. It was very difficult to solve though I have (somewhat) with a  lot of research.



    The issues are probably similar for Chrome, mostly that it does some anti-aliasing/smoothing by default which is difficult to turn off. I'd do some research on that.



    I assume you've done all the usual things like turn off cleartype, etc.



    For IE someone had written some dlls which disabled font smoothing:

    http://www.softwareninjas.ca/dwrite-dll-wrapper



    All of the above said, in some cases I have to record images on a specific virtual machine and then always run the tests back on the same machine (with the same flash plugin) to be sure they will match. SOMETIMES it will work across machines, other times not. For me, it depends on the flash anti-aliasing and perhaps how our flash programmers have setup things internally with respect to anti-aliasing and smoothing. Very tedious to solve.
  • jsc's avatar
    jsc
    Regular Contributor
    Thanks for your reply!



    Sorry for not answering to your post for this long time, but I am currently no more envolved in this project. I will report the progress as soon as I am working on this project again.



    Best regards,

    Joachim