What line of code controls taking screenshot

89 views
Skip to first unread message

Bhaarat Sharma

unread,
Sep 13, 2016, 8:18:52 AM9/13/16
to Geb User Mailing List
I came across an example Geb project using grade. I cloned the project and ran it. It works fine, however, I can't figure out which line of code controls taking screenshots? 

At the moment it is taking screenshots on every test run. How would I modify it to only take screenshots when the tests fail. 



Balaji KM

unread,
Sep 14, 2016, 10:03:25 AM9/14/16
to Geb User Mailing List
http://www.gebish.org/manual/current/#report-test-failures-configuration

Add this line in GebConfig
reportOnTestFailureOnly = true

Stefan Hildebrandt

unread,
Sep 15, 2016, 2:42:02 PM9/15/16
to geb-...@googlegroups.com
Hi,

i guess you are run GebishOrgTest or GebishOrgSpec. This examples extends reporting instances of geb TestCase/Spec (GebReportingTest/GebReportingSpec).

You can configure it in 


with property

reportOnTestFailureOnly = true

Look at the book of geb:

best regards

stefan


--
You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/1aab78d8-0ec7-4638-a033-d9d57a23d6ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raviteja Lokineni

unread,
Sep 15, 2016, 2:42:02 PM9/15/16
to geb-...@googlegroups.com
It is a good practice to read the documentation first.

Read on reportOnTestFailureOnly at: http://www.gebish.org/manual/current/#report-test-failures-configuration

--
You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+unsubscribe@googlegroups.com.

To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/1aab78d8-0ec7-4638-a033-d9d57a23d6ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Raviteja Lokineni | Business Intelligence Developer
TD Ameritrade


Reply all
Reply to author
Forward
0 new messages