-
-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[extension-selenium] Publish screenshot on failure in step scanning barcode #2213
[extension-selenium] Publish screenshot on failure in step scanning barcode #2213
Conversation
Kudos, SonarCloud Quality Gate passed! |
Codecov Report
@@ Coverage Diff @@
## master #2213 +/- ##
============================================
- Coverage 96.24% 88.22% -8.03%
- Complexity 5394 5569 +175
============================================
Files 766 766
Lines 15465 15468 +3
Branches 1027 1027
============================================
- Hits 14884 13646 -1238
- Misses 451 1683 +1232
- Partials 130 139 +9
Continue to review full report at Codecov.
|
bddVariableContext.putVariable(scopes, variableName, result); | ||
} | ||
catch (NotFoundException e) | ||
{ | ||
softAssert.recordFailedAssertion("There is no barcode on the screen", e); | ||
Attachment attachment = new Attachment(ImageTool.toByteArray(viewportScreenshot), "Viewport Screenshot", |
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.
Could you please elaborate @TakeScreenshotOnFailure
annotating not enough?
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.
- performance: duplicate operation taking one more screenshot
- timing: the viewport screenshot contains the most relevant application state, if we take screenshot some time later, the state of the application may be changed (e.g. animations)
No description provided.