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
726 views Asked by Nelson Raul Cabero Mendoza At
1
There are 1 answers
Related Questions in GEB
- How can I embed Geb screenshots and HTML snapshot artifacts into renatoathaydes/spock-reports?
- Geb with Selenoid - new session for each test in a class/spec
- How to do a order based testing in Geb and Spock using Groovy, I want to verify if the given values are in order from UI
- Groovy issue "groovy.lang.MissingMethodException"
- LocalFileDetector can't find uploaded files in Selenium Grid tests
- DriverUrlNotFoundException: Driver url not found error?
- How to I kick of tests written in Geb and Spock using SpockConfig.groovy file
- Groovy Geb - groovy-xml module conflick
- Groovy: General error during conversion : MacroTransformation cannot be run. ( Using Groovy in eclipse)
- How to write xpath in groovy for table dom
- How to run geb functional test in https?
- geb withconfirm throwing No signature of method: geb.navigator.NonEmptyNavigator.getJs()?
- How to parametrise a test?
- Implementing parallel execution of autotests using JUnit 5 + GEB (without spock)
- How to navigate to same page before running any test script in GEB SPOCK
Related Questions in SPOCK-REPORTS
- How can I embed Geb screenshots and HTML snapshot artifacts into renatoathaydes/spock-reports?
- 'ClassCastException class [B cannot be cast to class [C' when attempting to generate spock reports
- java.lang.AbstractMethodError in implementing Spock-Reports Extension (renatoathaydes) for my SPOCK test
- How to customize Spock Report table content?
- Customize XML report files in Spock
- Spock - exclude test class from being in test report
- Screenshots are not coming in index.html for geb spock appium
- Is there any way to add/print custom step/text in html reports
- 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
- How to generate Spock reports with Eclipse
- How to get log messages to display in Spock Reports?
- Jenkins Publishing Multi Module Spock Test Reports
- Integrating serenity/thucidydes with spock
- How to add images to the reports
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?
Popular Tags
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)
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