Skip to content
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

Merged
merged 1 commit into from
Nov 18, 2021

Conversation

valfirst
Copy link
Collaborator

No description provided.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@codecov
Copy link

codecov bot commented Nov 17, 2021

Codecov Report

Merging #2213 (9eb74ee) into master (1a22576) will decrease coverage by 8.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             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     
Impacted Files Coverage Δ
...in/java/org/vividus/bdd/steps/ui/BarcodeSteps.java 100.00% <100.00%> (ø)
...idus/src/main/java/org/vividus/bdd/model/Node.java 0.00% <0.00%> (-100.00%) ⬇️
...s/src/main/java/org/vividus/bdd/model/Failure.java 0.00% <0.00%> (-100.00%) ⬇️
...c/main/java/org/vividus/bdd/model/NodeContext.java 0.00% <0.00%> (-100.00%) ⬇️
.../main/java/org/vividus/runner/BddStepsCounter.java 0.00% <0.00%> (-100.00%) ⬇️
...ain/java/org/vividus/bdd/transformer/JoinMode.java 0.00% <0.00%> (-100.00%) ⬇️
...in/java/org/vividus/bdd/transformer/MergeMode.java 0.00% <0.00%> (-100.00%) ⬇️
...n/java/org/vividus/runner/BddScenariosCounter.java 0.00% <0.00%> (-100.00%) ⬇️
...n/java/org/vividus/runner/KnownIssueValidator.java 0.00% <0.00%> (-100.00%) ⬇️
.../org/vividus/bdd/expression/HashAlgorithmType.java 0.00% <0.00%> (-100.00%) ⬇️
... and 51 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1a22576...9eb74ee. Read the comment docs.

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",
Copy link
Member

@ikalinin1 ikalinin1 Nov 18, 2021

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. performance: duplicate operation taking one more screenshot
  2. 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)

@valfirst valfirst merged commit b21ddfb into master Nov 18, 2021
@valfirst valfirst deleted the publish-screenshot-on-failure-in-barcode-steps branch November 18, 2021 08:07
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants