I am new with spock-reports I want to know how can I add images to the report? Currently I am working with Geb and I want to add the generated screenshots by Geb in the spock-report
How to add images to the reports
725 Views Asked by Nelson Raul Cabero Mendoza At
1
There are 1 best solutions below
Related Questions in GEB
- Using service beans and dependency Injection in Geb Functional Tests
- Add methods to an assigned closure with GroovyDSL
- Grails remote control plugin - Spring Security Configuration
- Spock Stepwise - Keep running testsuite after single failure
- How to close a confirm dialog opened by another window in GEB
- How to login before executing Geb tests
- How to take screenshots in a module in geb
- Before() method of env.groovy is not called in geb automation
- How can I re-write this method to give me a precise xpath or locator? (Avoiding Stale Element Exception)
- How to reuse code in Spock tests
- Test automation with geb and groovy
- Precompile Grails CoffeeScript assets for Testing with Geb
- Geb overwrite web driver
- Can't access javascript text via css selector
- Using I18N messages in grails cucumber test
Related Questions in SPOCK-REPORTS
- How to get log messages to display in Spock Reports?
- How to generate Spock reports with Eclipse
- Why are Spock Speck tests so wordy?
- How can I embed Geb screenshots and HTML snapshot artifacts into renatoathaydes/spock-reports?
- Customize XML report files in Spock
- Spock Framework: How to create a customized Data Provider
- 'ClassCastException class [B cannot be cast to class [C' when attempting to generate spock reports
- Is there any way to add/print custom step/text in html reports
- Integrating serenity/thucidydes with spock
- Jenkins Publishing Multi Module Spock Test Reports
- Spock & Spock Reports: How print a variable valuable in Label/Block
- Spock & Spock Reports: how "catch" and customize the error message for AssertionError?
- Spock & Spock Reports how retrieve the MockHttpServletResponse (from Spring MVC Testing) for the where block?
- how to apply if and OR if or condition in td tag in html file
- How to take screenshots only for failure step in geb using athaydes plugin
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
adding the screenshots to the reports is not too easy, but there are ways...
The Grails FilmStrip-Plugin just fetches the generated screenshots and displays them as film strip. This might already help. The documentation explains how to get some additional data for the screenshots taken.
Since Spock and Geb don't know too much about each other, it is not easy to bring both together, but it is possible - here is an example. It uses the same approach as the FilmStrip-Plugin together with the spock-reports template engine to create an asciidoc report with screenshots. The source can be found here. Unfortunately, most of the documentation is currently in german.
hope that helps!
Update: this answer was give now nearly two years ago. There is now a better plugin to include screenshots in your spock reports: https://github.com/AOEpeople/geb-spock-reports