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
(feat) Add PixelMatcher to CaptureSupport. #248
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hastebrot
changed the title
(feat) Add ScreenCapture and PixelMatcher support.
(feat) Add ScreenCapturer and PixelMatcher support.
Feb 23, 2016
hastebrot
force-pushed
the
feat-capture-support
branch
2 times, most recently
from
February 23, 2016 10:13
39b292e
to
218f54f
Compare
hastebrot
force-pushed
the
feat-capture-support
branch
from
February 23, 2016 10:15
218f54f
to
00c8215
Compare
hastebrot
force-pushed
the
feat-capture-support
branch
from
February 26, 2016 08:27
fb32fe6
to
fe52568
Compare
hastebrot
force-pushed
the
feat-capture-support
branch
from
February 26, 2016 08:32
fe52568
to
b167435
Compare
hastebrot
force-pushed
the
feat-capture-support
branch
from
February 26, 2016 09:17
c63500a
to
5566cb9
Compare
hastebrot
changed the title
(feat) Add ScreenCapturer and PixelMatcher support.
(feat) Add PixelMatcher to CaptureSupport.
Feb 26, 2016
interface CaptureBuilder {
CaptureBuilder capture(Bounds bounds);
CaptureBuilder annotateWith(Shape shape);
CaptureBuilder saveTo(Path path);
Image toImage();
} |
hastebrot
added a commit
that referenced
this pull request
Feb 27, 2016
(feat) Add PixelMatcher to CaptureSupport.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
In TestFX 3
GuiTest
created screenshots when errors occurred, i.e. when aNode
for a mouse interaction wasn't found or anverifyThat()
assertion failed. We need to port this functionality to TestFX 4FxRobot
andFxAssert
.Solution
Extend
CaptureSupport
which allows to capture nodes and regions (i.e. a desktop, screen, stage, scene, bounds) as an in-memoryImage
. It is possible to annotate captured images with rectangles (e.g. the area of missing nodes) and texts (e.g. the assertion error text).A
PixelMatcher
allows to match two images and return a match result.Testing
PixelMatcherResult::getNonMatchPixels()
varies between Java versions for the sameScene
, e.g. Java 1.8.31 and 1.8.72.Subtask of: #167