Gauge take screenshot for each step

832 views
Skip to first unread message

cher...@gmail.com

unread,
Apr 7, 2016, 3:58:36 AM4/7/16
to getgauge
How to implement gauge to take screenshot for each step of specification. Here i found simple introduction about this.http://getgauge.io/documentation/user/current/test_code/java/custom_screenshots_support.html
can anybody give a detailed example how to use this? 

Thanks.

apoorvam

unread,
Apr 7, 2016, 5:19:22 AM4/7/16
to getgauge
Hi @cherrygty,

Currently, Gauge takes screenshot automatically on every step failure. This can also be customized and user can take screenshot and send to Gauge. This screenshot will be displayed in html-report of Gauge. 

If I understand correctly, you want to take screenshot for every step and display it in html-report? It would be great if you can explain your specific use case.

郭泰瑜

unread,
Apr 7, 2016, 10:24:29 PM4/7/16
to getg...@googlegroups.com
Hi apoorvam,
Yes, i want to take screenshot for each guage step. but i don't know how to do.

--
You received this message because you are subscribed to a topic in the Google Groups "getgauge" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/getgauge/zDvx-ZmTnBM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to getgauge+u...@googlegroups.com.
To post to this group, send email to getg...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/getgauge/23554810-7991-4cc5-83f7-3f7ee161e9b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mahendra Kariya

unread,
Apr 8, 2016, 12:02:56 AM4/8/16
to getgauge
Hey,

Gauge takes screenshots only on failure. As of now, Gauge doesn't take screenshot for the steps that are successfully executed.



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

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

cher...@gmail.com

unread,
Apr 29, 2016, 3:53:39 AM4/29/16
to getgauge
Hi,

And want to confirm whether this mean we can actually take screenshot for passed step.
And could you please also help to suggest where i should use the ICustomScreenshotGrabber ? in step definition or page object level.
Thanks,
Cherry

在 2016年4月8日星期五 UTC+8下午12:02:56,Mahendra Kariya写道:

Srikanth V

unread,
Apr 29, 2016, 4:13:28 AM4/29/16
to getgauge
Hi,

Currently, Gauge takes screenshot only on Failed steps. The ICustomScreenshotGrabber implementation allows you to override the screenshot capture logic, i.e. if you want to use a different screenshot mechanism such as Selenium's API, then ICustomScreenshotGrabber enables you to do that.

However, all implementation of ICustomScreenshotGrabber (or the DefaultScreenshotGrabber) would be invoked only when a step fails.

Hope this helps.

thanks
Srikanth

surinder kaur

unread,
Apr 20, 2017, 11:02:37 PM4/20/17
to getgauge

Hi all
I want the feature of Gauge to capture screenshot and insert into its web report to work whenever I want (not just when a step fails). Clearly the feature is there but I guess, there's no handle for end user to use it as and when required.
Is it possible at the moment to capture a screenshot and insert into final test report using a piece of code? If not, is it what can be expected in near future?   

Reply all
Reply to author
Forward
0 new messages