# Screenshot on failure doesn't work - checked in Report settings

**URL:** <https://forum.katalon.com/t/screenshot-on-failure-doesnt-work-checked-in-report-settings/11559>\
**Category:** Bug Report\
**Tags:** bugs-report, katalon-studio\
**Created:** [June 15, 2018, 3:52pm UTC](https://forum.katalon.com/t/screenshot-on-failure-doesnt-work-checked-in-report-settings/11559 "2018-06-15T15:52:19Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marek\_Zitny](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@Marek\_Zitny](https://forum.katalon.com/u/Marek_Zitny)\
**Post date:** [June 15, 2018, 3:52pm UTC](https://forum.katalon.com/t/screenshot-on-failure-doesnt-work-checked-in-report-settings/11559/1 "2018-06-15T15:52:19Z")

</div>

Hi there,

I’ve run a several test suites and no screenshot is taken when test failed.  
I’ve tried to find any workaround, but without success.  
 ![](https://s3.amazonaws.com/katalon-forum/editor/s2/pdq7e3niy0jn.png "Image: https://s3.amazonaws.com/katalon-forum/editor/s2/pdq7e3niy0jn.png")

When I use:

```auto
 WebUI.takeScreenshot

```

it works OK, but I need to perform this action only if test failed.

Video is recorded OK.

Any ideas? I cannot find anything usefull on forums or documentation…

[image.png](https://s3.amazonaws.com/katalon-forum/editor/s2/pdq7e3niy0jn.png)

[aaa.png](https://s3.amazonaws.com/katalon-forum/editor/k7/xq456bckfw0b.png)

---

<div class="post-metadata">

**Author:** ![David\_Edmondson](https://avatars.discourse-cdn.com/v4/letter/d/4bbf92/32.png) [@David\_Edmondson](https://forum.katalon.com/u/David_Edmondson)\
**Post date:** [June 15, 2018, 4:19pm UTC](https://forum.katalon.com/t/screenshot-on-failure-doesnt-work-checked-in-report-settings/11559/2 "2018-06-15T16:19:54Z")

</div>

Which version of Katalon Studio and which Operating System are you running?

---

<div class="post-metadata">

**Author:** ![Alice](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/alice/32/472_2.png) [@Alice](https://forum.katalon.com/u/Alice)\
**Post date:** [June 18, 2018, 7:13am UTC](https://forum.katalon.com/t/screenshot-on-failure-doesnt-work-checked-in-report-settings/11559/3 "2018-06-18T07:13:29Z")

</div>

Hi Marek,

Are you still having the issue? I try to reproduce but it was failed.  
And please provide more details about your issue if you still having it.

Regards,

---

<div class="post-metadata">

**Author:** ![Marek\_Zitny](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@Marek\_Zitny](https://forum.katalon.com/u/Marek_Zitny)\
**Post date:** [June 19, 2018, 7:50am UTC](https://forum.katalon.com/t/screenshot-on-failure-doesnt-work-checked-in-report-settings/11559/4 "2018-06-19T07:50:58Z")

</div>

> David Edmondson said:
> 
> Which version of Katalon Studio and which Operating System are you running?

> Alice said:
> 
> Hi Marek,
> 
> Are you still having the issue? I try to reproduce but it was failed.  
> And please provide more details about your issue if you still having it.
> 
> Regards,

Hi all,

I have Windows 10 Prof,

Katalon Studio - Version: 5.4.2 - Build: 1

```auto
06-19-2018 09:52:38 dop. - [START] - Start action : setText06-19-2018 09:52:38 dop. - [INFO] - Finding Test Object with id 'Object Repository/Login_Page/input_password'06-19-2018 09:52:38 dop. - [END] - End action : setText06-19-2018 09:52:38 dop. - [ERROR] - Test Cases/Login FAILED because (of) Variable 'pwda' is not defined for test case.Video recording for test case 'Test Cases/Login' . 06-19-2018 09:52:40 dop. - [END] - End Test Case : Test Cases/Login06-19-2018 09:52:41 dop. - [END] - End Test Suite : Test Suites/Login

```

---

<div class="post-metadata">

**Author:** ![Marek\_Zitny](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@Marek\_Zitny](https://forum.katalon.com/u/Marek_Zitny)\
**Post date:** [June 19, 2018, 7:58am UTC](https://forum.katalon.com/t/screenshot-on-failure-doesnt-work-checked-in-report-settings/11559/5 "2018-06-19T07:58:00Z")

</div>

Log in the comment above shows that test suite run failed…and below I’ve attached screen that video was recorded, but no screenshot…

![](https://s3.amazonaws.com/katalon-forum/editor/yu/022sx3q1dn5c.png)

[cfdasas.png](https://s3.amazonaws.com/katalon-forum/editor/yu/022sx3q1dn5c.png)

---

<div class="post-metadata">

**Author:** ![Charles\_Bosse](https://avatars.discourse-cdn.com/v4/letter/c/958977/32.png) [@Charles\_Bosse](https://forum.katalon.com/u/Charles_Bosse)\
**Post date:** [September 11, 2018, 7:10pm UTC](https://forum.katalon.com/t/screenshot-on-failure-doesnt-work-checked-in-report-settings/11559/6 "2018-09-11T19:10:16Z")

</div>

I am also experiencing the same issue. No screenshots are taken or saved when option “Take screenshot when execution failed” is enabled. The videos are working properly, but screenshots are not.

Using Katalon Version 5.7.0  
Multiple OS - Windows 10 & Linux

---

<div class="post-metadata">

**Author:** ![Alice](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/alice/32/472_2.png) [@Alice](https://forum.katalon.com/u/Alice)\
**Post date:** [September 12, 2018, 7:19am UTC](https://forum.katalon.com/t/screenshot-on-failure-doesnt-work-checked-in-report-settings/11559/7 "2018-09-12T07:19:19Z")

</div>

Hi guys,  
I didn’t see this issue here. I try to reproduce but KS work ok. You can see an image for step failed on Log Image at Report. Some details below the link: [http://docs.katalon.com/display/KD/Test+Suite+Report](http://docs.katalon.com/display/KD/Test+Suite+Report)

---

<div class="post-metadata">

**Author:** ![Charles\_Bosse](https://avatars.discourse-cdn.com/v4/letter/c/958977/32.png) [@Charles\_Bosse](https://forum.katalon.com/u/Charles_Bosse)\
**Post date:** [September 12, 2018, 5:34pm UTC](https://forum.katalon.com/t/screenshot-on-failure-doesnt-work-checked-in-report-settings/11559/8 "2018-09-12T17:34:42Z")

</div>

I am still not able to find the image in the Report folder. Can you provide more specific instructions on how to retrieve/locate the image please?

---

<div class="post-metadata">

**Author:** ![Alice](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/alice/32/472_2.png) [@Alice](https://forum.katalon.com/u/Alice)\
**Post date:** [September 13, 2018, 2:19am UTC](https://forum.katalon.com/t/screenshot-on-failure-doesnt-work-checked-in-report-settings/11559/9 "2018-09-13T02:19:37Z")

</div>

Hi Charles Bosse,  
Noticed the picture attach… ![](https://s3.amazonaws.com/katalon-forum/editor/8x/tazb7rbk4icn.png "Image: https://s3.amazonaws.com/katalon-forum/editor/8x/tazb7rbk4icn.png")

[bossse02.png](https://s3.amazonaws.com/katalon-forum/editor/8x/tazb7rbk4icn.png)

---

<div class="post-metadata">

**Author:** ![Barry\_Grozner](https://avatars.discourse-cdn.com/v4/letter/b/d26b3c/32.png) [@Barry\_Grozner](https://forum.katalon.com/u/Barry_Grozner)\
**Post date:** [September 27, 2018, 10:26am UTC](https://forum.katalon.com/t/screenshot-on-failure-doesnt-work-checked-in-report-settings/11559/10 "2018-09-27T10:26:50Z")

</div>

> Hi,  
> I have this problem too. Nothing I’ve done is working. I’m not seeing screenshots on failure, even though the option is selected. Videos work OK.  
> I’m not sure a Katalon Ambassador saying they don’t have the problem is really much help. I’m glad it works for them. But it still doesn’t work for us.

---

<div class="post-metadata">

**Author:** ![SIVHD](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/sivhd/32/4955_2.png) [@SIVHD](https://forum.katalon.com/u/SIVHD)\
**Post date:** [October 13, 2018, 7:04am UTC](https://forum.katalon.com/t/screenshot-on-failure-doesnt-work-checked-in-report-settings/11559/11 "2018-10-13T07:04:19Z")

</div>

Hello community its a bug, but I have solved for it

Step to fix it :

1. Default true for this option screenshot on fail  
2. Create new project / open existing  
3. Create one sample test case  
4. Drag this into test suite  
5. Do fail in test case (\*3) eg. WebUI.Check in text input  
6. Run this test suite  
7. See result in raports - no screenshot  
8. Go again into Settings uncheck option screenshot fail  
9. Run test suite  
10. raports ? no screenshot !  
11. Go again into yo options - now check again (true) option screenshot fail  
12. Run test sutie  
13. Work brushy brushy good  
you can find png file, screenhot in pdf / html etc.

yu welcom

---

<div class="post-metadata">

**Author:** ![nam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/nam/32/379_2.png) [@nam](https://forum.katalon.com/u/nam)\
**Post date:** [March 8, 2019, 7:32am UTC](https://forum.katalon.com/t/screenshot-on-failure-doesnt-work-checked-in-report-settings/11559/12 "2019-03-08T07:32:21Z")

</div>

- Please to check in : Folder of Katalon ( Setting when New Project First-Time )
- Folder of Project
- Folder of Report

 ![Screenshot](https://europe1.discourse-cdn.com/katalon/original/2X/2/2282bf42386d4c9bd5994b835eea888606e3e913.jpeg)  
 ![Screenshot1](https://europe1.discourse-cdn.com/katalon/original/2X/f/fbb43c167e31c17790d7bc138b5e5c284feab30f.jpeg)

---

<div class="post-metadata">

**Author:** ![devalex88](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/devalex88/32/336_2.png) [@devalex88](https://forum.katalon.com/u/devalex88)\
**Post date:** [March 10, 2019, 6:37am UTC](https://forum.katalon.com/t/screenshot-on-failure-doesnt-work-checked-in-report-settings/11559/13 "2019-03-10T06:37:49Z")

</div>

We will add some logs in the next version to assist the investigation.

---

<div class="post-metadata">

**Author:** ![Madhav\_Choudhary](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@Madhav\_Choudhary](https://forum.katalon.com/u/Madhav_Choudhary)\
**Post date:** [July 30, 2019, 10:54am UTC](https://forum.katalon.com/t/screenshot-on-failure-doesnt-work-checked-in-report-settings/11559/14 "2019-07-30T10:54:53Z")

</div>

This issue is still there. I am using Katalon version  
Katalon Studio Version: 6.1.5 Build: 3

The automatic screenshot on failures used to work in previous version, but not on this one. The project settings are correct.

Videos are working , but the screenshots are not generated for failing steps.

Please provide a fix.

---

<div class="post-metadata">

**Author:** ![naveenkumar.sampath](https://avatars.discourse-cdn.com/v4/letter/n/35a633/32.png) [@naveenkumar.sampath](https://forum.katalon.com/u/naveenkumar.sampath)\
**Post date:** [May 18, 2020, 4:13am UTC](https://forum.katalon.com/t/screenshot-on-failure-doesnt-work-checked-in-report-settings/11559/15 "2020-05-18T04:13:10Z")

</div>

HI Team,

I am using the katalon version 7.3.0. I am able to find the screenshot for failed test cases and I able to take the folder/log path of the captured screenshot. But on what basis screenshot name is generating. I am finding the captured screenshot starts with numbers and not relates to date and time stamps. Could you please suggest how this screenshot file is generating. Thanks

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/2/269fb2f4d1031bedf372f0ba26c40c215174f5e6.png)

---

<div class="post-metadata">

**Author:** ![Pascal\_Donauer](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/pascal_donauer/32/16104_2.png) [@Pascal\_Donauer](https://forum.katalon.com/u/Pascal_Donauer)\
**Post date:** [May 22, 2020, 11:19am UTC](https://forum.katalon.com/t/screenshot-on-failure-doesnt-work-checked-in-report-settings/11559/16 "2020-05-22T11:19:13Z")

</div>

I also have take screenshot activated but the report shows no screenshot when failure detected. Using Katalon 7.4.

---

<div class="post-metadata">

**Author:** ![1753102](https://avatars.discourse-cdn.com/v4/letter/1/ea666f/32.png) [@1753102](https://forum.katalon.com/u/1753102)\
**Post date:** [August 30, 2020, 2:46am UTC](https://forum.katalon.com/t/screenshot-on-failure-doesnt-work-checked-in-report-settings/11559/17 "2020-08-30T02:46:06Z")

</div>

I am using Katalon Studio 7.5.5.  
The option ‘take screenshot on failure’ just works on test cases failed by click object or set text…the screenshots appears in report folder. Test cases failed at verify step (eg: WebUI.verifyEqual(a,b)) will not generate screenshot.

in my case, i want to capture screen on failure at verify step, i add ‘FailureHandling.CONTINUE\_ON\_FAILURE’ and put ‘WebUI.takeScreenshot(‘test/demo.png’)’ in the end of my script. it worked

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/katalon/original/3X/d/5/d55596ab02785a255798e87ede769734747b30c4.svg) [@system](https://forum.katalon.com/u/system)\
**Post date:** [August 28, 2021, 8:31am UTC](https://forum.katalon.com/t/screenshot-on-failure-doesnt-work-checked-in-report-settings/11559/18 "2021-08-28T08:31:35Z")

</div>



---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [August 28, 2021, 1:15pm UTC](https://forum.katalon.com/t/screenshot-on-failure-doesnt-work-checked-in-report-settings/11559/19 "2021-08-28T13:15:34Z")

</div>

> [@1753102](#):
>
> Test cases failed at verify step (eg: WebUI.verifyEqual(a,b)) will not generate screenshot.

[verifyEqual(Number a, Number b)](https://docs.katalon.com/katalon-studio/docs/common-verify-equal.html#description) does not require TestObject as argument. In other words, verifyEqual() has nothing to do with browsers. It should run without opening browser at all. For example, the following 2 lines is a valid Test Case (though useless).

```auto
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
WebUI.verifyEqual(10, 999)

```

Here we have no browser opened background, therefore it makes sense that a failure at `verifyEqual(x,y)` does not take a screenshot; as it is impossible to take a screenshot without a browser being opened.

There are a few other built-in `verify*` keywords that do not take TestObject as argument. These will not take screenshot at failure:

- [https://github.com/katalon-studio/katalon-studio-testing-framework/tree/master/Include/scripts/groovy/com/kms/katalon/core/keyword/builtin](https://github.com/katalon-studio/katalon-studio-testing-framework/tree/master/Include/scripts/groovy/com/kms/katalon/core/keyword/builtin)

* * *

If you want KS to take screenshot on Keyword failure, you should choose those keywords which take a TestObject as argument, for example `verifyText(TestObject)`, `verifyElementPresent(TestObject)`

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [August 28, 2021, 1:19pm UTC](https://forum.katalon.com/t/screenshot-on-failure-doesnt-work-checked-in-report-settings/11559/20 "2021-08-28T13:19:53Z")

</div>

i closed this as it is inactive.
