cancel
Showing results for 
Search instead for 
Did you mean: 

Image Check Point validation

SOLVED
New Contributor

Image Check Point validation

Hi All,

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.

 

Best regards,

AS

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Community Leader

Re: Image Check Point validation

Hi @as46zuny 

 

TC has the ability to do image comparisons on only part of the image - or to exclude some parts of the image from the comparison Comparison masks may be something you could consider


-------------------------------------------------
Standard syntax disclaimers apply
Regards,
Community Manager

Re: Image Check Point validation

Thanks for the help, guys!

@as46zuny, did you find the solution to the issue? Please share it with us.

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
4 REPLIES 4
Highlighted
Community Leader

Re: Image Check Point validation

Hi @as46zuny 

 

TC has the ability to do image comparisons on only part of the image - or to exclude some parts of the image from the comparison Comparison masks may be something you could consider


-------------------------------------------------
Standard syntax disclaimers apply
Regards,
Community Hero

Re: Image Check Point validation

Hi,

 

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.

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members 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. Postings made by [Community Expert Group] members
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.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
Community Hero

Re: Image Check Point validation

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.  

 

https://support.smartbear.com/testcomplete/docs/testing-with/checkpoints/regions/specific-tasks.html...

 

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.


Robert Martin
[Community Expert Group]
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
Extensions available
Community Manager

Re: Image Check Point validation

Thanks for the help, guys!

@as46zuny, did you find the solution to the issue? Please share it with us.

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
New Here?
Join us and watch the welcome video:
Watch the New Interview
APITestingMistake#2
Top Kudoed Authors