-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
[#205] Set Rectangle Color (Diff / Exclude) #206
[#205] Set Rectangle Color (Diff / Exclude) #206
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please. add a test with pictures for ImageComparison.compareImages()
method with modified colors for rectangles.
@@ -464,7 +465,9 @@ public void shouldProperlyWorkGettersAndSetters() { | |||
.setThreshold(400) | |||
.setDifferenceRectangleFilling(true, 35.1) | |||
.setExcludedRectangleFilling(true, 45.1) | |||
.setAllowingPercentOfDifferentPixels(48.15); | |||
.setAllowingPercentOfDifferentPixels(48.15) | |||
.setDifferenceRectangleColor(Color.RED) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's good to set a non-default value here. The same for line 469.
Please, update it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your comment.
Could you please let me know that you mean only set a non-default value for test class or for main modification as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only for test case to be ensure, that setter works as well as we expected.
Default values for production code should be the same as were before.
PR Details
Description
As a new feature, I'm suggesting that client can set color for rectangles with the difference.
Related Issue
#205
Motivation and Context
About my case,
When we release something, we run image comparison for before and after deployment.
It's job of internal automation app based on Selenium WebDriver.
But we sometime take time to find diff rectangle when it's exists because there are some other parts with red colored.
Maybe you can see it with the following page.
https://www.rakuten.co.jp/
That's why I want to set other color so that we can find difference as soon as possible.
How Has This Been Tested
Tested in UT level
Types of changes
Checklist