Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Atata Screenshot Comparison #334

Open
iarif20-devops opened this issue Nov 25, 2019 · 3 comments
Open

Atata Screenshot Comparison #334

iarif20-devops opened this issue Nov 25, 2019 · 3 comments

Comments

@iarif20-devops
Copy link

iarif20-devops commented Nov 25, 2019

Hi,

I am working on a test to match two screenshots. I have added some custom functionality to compare the screenshot taken by a user with a screenshot taken using Atata framework.

For some reason, the images comparison don't pass. However, if I generate both images via Atata, the comparison passes.

In all cases, I make sure in my algorithm that images are of the same size. Also, the image Bit Depth is same.

Do you have any idea, what could be cause here.

Apologies for not passing any sample data. It is just because of the privacy.

However, should you require, I will prepare some.

Thanks in advance.

Regards,

Muhammad

@YevgeniyShunevych
Copy link
Member

Hey,

It's hard to say at this point. First, I assume that you save screenshots in PNG format, not JPEG. I think you should check with your comparison algorithm the difference between images, how much are they different. Generate a delta image with highlighted pixels (red or pink color) that differ. That should make it more clear to understand the difference.

Also, it is absolutely OK, from my point of view, to get the expected screenshot in an automatic way from Atata/WebDriver. Run the test once to get the expected screenshot and then store it somewhere for the future comparison as expected image.

Also, I can advise taking a look at Applitools, which does the screenshot comparison in a good way. But it is not free.

@iarif20-devops
Copy link
Author

Thanks for your feedback. I'll look to see if I can stick with Atata generating testing samples for me.

@Piedone
Copy link

Piedone commented Jun 30, 2022

We implemented this in the Lombiq UI Testing Toolbox that uses Atata. Check it out here: Lombiq/UI-Testing-Toolbox#85

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants