# Take Screenshot when execution failed takes a screenshot whenever a test step fails

**URL:** <https://forum.katalon.com/t/take-screenshot-when-execution-failed-takes-a-screenshot-whenever-a-test-step-fails/26842>\
**Category:** Feature Request\
**Tags:** feature-request, katalon-studio\
**Created:** [June 3, 2019, 9:00am UTC](https://forum.katalon.com/t/take-screenshot-when-execution-failed-takes-a-screenshot-whenever-a-test-step-fails/26842 "2019-06-03T09:00:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rj1](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/rj1/32/3523_2.png) [@rj1](https://forum.katalon.com/u/rj1)\
**Post date:** [June 3, 2019, 9:00am UTC](https://forum.katalon.com/t/take-screenshot-when-execution-failed-takes-a-screenshot-whenever-a-test-step-fails/26842/1 "2019-06-03T09:00:09Z")

</div>

I understand the feature to take a screenshot when the execution fails so you get a screenshot from the last working step. I experienced it to take a screenshot everytime a test step fails even though the test still continues. For example I have a test where I check for an element to not be present and I have to set the failure handling to “optional” because Katalon can’t find the element if everything goes right and I want the test to continue. But everytime Katalon can’t find the element it takes a screenshot although the overall test doesn’t fail. As I loop this particular test I end up with lots of screenshots I don’t need.  
Please tell me if this is a bug or if I’m just using the feature VerifyElementNotPresent wrong.  
Thanks in advance 🙂

![grafik](https://europe1.discourse-cdn.com/katalon/original/2X/f/fbf11865e8dfcbe678072523f9c5295c89f6b993.png)

I’m using version 6.1.5

---

<div class="post-metadata">

**Author:** ![streamgroup.testing](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@streamgroup.testing](https://forum.katalon.com/u/streamgroup.testing)\
**Post date:** [August 6, 2019, 1:18pm UTC](https://forum.katalon.com/t/take-screenshot-when-execution-failed-takes-a-screenshot-whenever-a-test-step-fails/26842/2 "2019-08-06T13:18:34Z")

</div>

I think it would be a solid enhancement if taking screenshots for optional test steps becomes, well, optional.

That way test reports don’t get unnecesarrily bloated.

---

<div class="post-metadata">

**Author:** ![albert.vu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/albert.vu/32/20595_2.png) [@albert.vu](https://forum.katalon.com/u/albert.vu)\
**Post date:** [August 8, 2022, 7:42am UTC](https://forum.katalon.com/t/take-screenshot-when-execution-failed-takes-a-screenshot-whenever-a-test-step-fails/26842/3 "2022-08-08T07:42:59Z")

</div>

Archived on August 8, 2022, 7:42am UTC


