Image Check Point validation
I need your help. Currently, I am testing the drawings generated from AutoCAD application and I am comparing these images with the previous versions.
I am using the image checkpoint for comparisons and kept default values of Pixel tolerance to 0.0 and color tolerance as 0.0. I want testComplete to pass the image validation even though the sequence of line numbers in my image is changed. Please find the screenshot and guide me how can we perform this validation.
Your help is highly appreciated.
Solved! Go to Solution.
> the sequence of line numbers in my image is changed.
Effectively, this means that image is different.
Screenshots that you provided are too different to be compared as images.
/Alex [Community Champion]
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
As @RUDOLF_BOTHMA mentions, there are image comparisons that allow you to create a mask to tell the comparison to "ignore" certain parts of the image in that comparison.
However... looking at your two images... it's not just the line numbers that changed... the ordering of the contents changed as well... basically, you have two completely different images. Masking is just going to completely do away with any usefulness in the validation.
Is there a reason why you're using image comparison and not examinng properties of the object? Is any of the text exposed in some object property that you can validate against? It seems that would be the better way than depending on images that are going to change so frequently.
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Thanks for the help, guys!
@as46zuny, did you find the solution to the issue? Please share it with us.
SmartBear Community and Education Manager