Screenshot of entire suite of tests Geb Spock

577 views
Skip to first unread message

Karthik Krishnamurthy

unread,
Aug 11, 2015, 3:54:14 PM8/11/15
to Spock Framework - User
Hi,
We have our acceptance test suite written using Geb/Spock. I wanted to know how to capture the entire test run (all pages), not just on failure, as screenshots? Is there something to be added on GebConfig.groovy(I have reportOnTestFailure = false) or do I need to over-ride something in the Geb/Spock core apis?

I did try with the flag on true, but for some reason in either case, it only takes the screenshot of the first page (which is inevitably the login page)

Really appreciate any input. I have searched through and not found much on this subject...

Thank you
Karthik

KARR, DAVID

unread,
Aug 11, 2015, 4:23:32 PM8/11/15
to spockfr...@googlegroups.com

I don’t have a lot of experience with this, but I believe functionality like this is usually handled by higher-level infrastructure managing the test runner.  For instance, I believe BrowserStack is a service that can take screenshots of your tests, but Sauce Labs is a competing framework that records the entire interaction as a screencast/movie.  The latter feature is critical if your pages are dynamically constructed (which will almost always be the most difficult to verify and test).

 

--
You received this message because you are subscribed to the Google Groups "Spock Framework - User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spockframewor...@googlegroups.com.
To post to this group, send email to spockfr...@googlegroups.com.
Visit this group at http://groups.google.com/group/spockframework.
For more options, visit https://groups.google.com/d/optout.

Karthik Krishnamurthy

unread,
Aug 12, 2015, 5:04:05 PM8/12/15
to Spock Framework - User
Thank you. I am looking for something similar to reports that currently exists in geb (http://www.gebish.org/manual/0.10.0/reporting.html) This is what we are using but takes only the first page by default. 

To post to this group, send email to spockf...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages