# How can I take screenshots of every step and log them to reports

**URL:** <https://forum.katalon.com/t/how-can-i-take-screenshots-of-every-step-and-log-them-to-reports/6745>\
**Category:** Miscellaneous\
**Tags:** katalon-studio\
**Created:** [May 16, 2017, 4:43am UTC](https://forum.katalon.com/t/how-can-i-take-screenshots-of-every-step-and-log-them-to-reports/6745 "2017-05-16T04:43:29Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hari\_Charan](https://avatars.discourse-cdn.com/v4/letter/h/a88e57/32.png) [@Hari\_Charan](https://forum.katalon.com/u/Hari_Charan)\
**Post date:** [May 16, 2017, 4:43am UTC](https://forum.katalon.com/t/how-can-i-take-screenshots-of-every-step-and-log-them-to-reports/6745/1 "2017-05-16T04:43:29Z")

</div>

I wanted to take screenshot of every test step intially to prove build is functional as expected. I could find an option take screenshots for failure tests but how about capturing them for both passed and failed?

---

<div class="post-metadata">

**Author:** ![Zarashima](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/zarashima/32/928_2.png) [@Zarashima](https://forum.katalon.com/u/Zarashima)\
**Post date:** [May 16, 2017, 8:42am UTC](https://forum.katalon.com/t/how-can-i-take-screenshots-of-every-step-and-log-them-to-reports/6745/2 "2017-05-16T08:42:41Z")

</div>

Hi there,

Please find out captured location on this keyword [page](https://docs.katalon.com/display/KD/%5BWebUI%5D+Take+Screenshot). In the next release, captured screenshot can saved to user-defined location :).

> Captured screenshot will be stored into temp folder of Katalon Studio: **C:\Users\\AppData\Local\Temp\Katalon\Test Cases.** In this folder, you will find the executed test case along with its folder’s report. If you capture any screenshot using ‘Take Screenshot’ keyword, it will be stored in folder’s report.
> 
> By default, screenshot will be captured automatically on failed step which interacts with the browser. The settings is available at **Project → Settings → Report**. Captured screenshot will be stored in ‘Image’ tab of test suite report:  
> [https://docs.katalon.com/display/KD/Test+Suite+Report#TestSuiteReport-TestLogsDetails](https://docs.katalon.com/display/KD/Test+Suite+Report#TestSuiteReport-TestLogsDetails)

---

<div class="post-metadata">

**Author:** ![Hari\_Charan](https://avatars.discourse-cdn.com/v4/letter/h/a88e57/32.png) [@Hari\_Charan](https://forum.katalon.com/u/Hari_Charan)\
**Post date:** [May 16, 2017, 5:46am UTC](https://forum.katalon.com/t/how-can-i-take-screenshots-of-every-step-and-log-them-to-reports/6745/3 "2017-05-16T05:46:27Z")

</div>

So where it gets stored? And does it appended to reports directly?  
Where I can find failed screenshots? I couldn’t find in the workspace

---

<div class="post-metadata">

**Author:** ![Ha\_Nguyen](https://avatars.discourse-cdn.com/v4/letter/h/54ee81/32.png) [@Ha\_Nguyen](https://forum.katalon.com/u/Ha_Nguyen)\
**Post date:** [May 16, 2017, 5:31am UTC](https://forum.katalon.com/t/how-can-i-take-screenshots-of-every-step-and-log-them-to-reports/6745/4 "2017-05-16T05:31:35Z")

</div>

Hi there,

That option is not available in current version. This feature has been noted and will be implemented in future releases.

So I think for now you can add ‘Take Screenshot’ step after every step if you want to capture passed test step as well

Thanks

---

<div class="post-metadata">

**Author:** ![januari](https://avatars.discourse-cdn.com/v4/letter/j/35a633/32.png) [@januari](https://forum.katalon.com/u/januari)\
**Post date:** [March 5, 2019, 9:44am UTC](https://forum.katalon.com/t/how-can-i-take-screenshots-of-every-step-and-log-them-to-reports/6745/5 "2019-03-05T09:44:23Z")

</div>

Halooo… how about this feature? already implemented?

---

<div class="post-metadata">

**Author:** ![Antoine\_Bulteau](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/antoine_bulteau/32/2177_2.png) [@Antoine\_Bulteau](https://forum.katalon.com/u/Antoine_Bulteau)\
**Post date:** [March 5, 2019, 9:49am UTC](https://forum.katalon.com/t/how-can-i-take-screenshots-of-every-step-and-log-them-to-reports/6745/6 "2019-03-05T09:49:22Z")

</div>

Hello,  
I think you can look at the post

> [@Is there anyway to implement more annotation in Test Event Listener?](http://forum.katalon.com/t/is-there-anyway-to-implement-more-annotation-in-test-event-listener/14385):
>
> - I have some situations that need to take an action (like capture screenshot,…) after each step in a test case. - I find out that default Test Event Listener of Katalon does not support this situation. - I don’t want to create a step take screenshot manually after each step. - Anyone have faced this issue or any idea can help me? PLEASE HELP.

It may suite your needs

---

<div class="post-metadata">

**Author:** ![januari](https://avatars.discourse-cdn.com/v4/letter/j/35a633/32.png) [@januari](https://forum.katalon.com/u/januari)\
**Post date:** [March 5, 2019, 10:05am UTC](https://forum.katalon.com/t/how-can-i-take-screenshots-of-every-step-and-log-them-to-reports/6745/7 "2019-03-05T10:05:33Z")

</div>

I think for Mobile Testing sir

---

<div class="post-metadata">

**Author:** ![rameshrajendran](https://avatars.discourse-cdn.com/v4/letter/r/439d5e/32.png) [@rameshrajendran](https://forum.katalon.com/u/rameshrajendran)\
**Post date:** [March 14, 2019, 2:46am UTC](https://forum.katalon.com/t/how-can-i-take-screenshots-of-every-step-and-log-them-to-reports/6745/8 "2019-03-14T02:46:19Z")

</div>

Hi Antoine,

Did you found any solution to overcome this ?

---

<div class="post-metadata">

**Author:** ![Antoine\_Bulteau](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/antoine_bulteau/32/2177_2.png) [@Antoine\_Bulteau](https://forum.katalon.com/u/Antoine_Bulteau)\
**Post date:** [March 14, 2019, 9:50am UTC](https://forum.katalon.com/t/how-can-i-take-screenshots-of-every-step-and-log-them-to-reports/6745/9 "2019-03-14T09:50:09Z")

</div>

Hi @rameshrajendran,  
For Web UI you can look at the post I linked, there is a solution to take screenshots of every step (they will be logged automaticaly in the report). For Mobile testing, I don’t see any reason why you can’t adapt it with MobileBuiltInKeywords instead of WebUiBuiltInKeywords, with the takeScreenshot() method of Mobile 🙂  
The trick is in the code logic (Groovy’s metaprogramming) : you can do anything you want before or after any keyword is called using this.

---

<div class="post-metadata">

**Author:** ![rameshrajendran](https://avatars.discourse-cdn.com/v4/letter/r/439d5e/32.png) [@rameshrajendran](https://forum.katalon.com/u/rameshrajendran)\
**Post date:** [March 18, 2019, 4:06am UTC](https://forum.katalon.com/t/how-can-i-take-screenshots-of-every-step-and-log-them-to-reports/6745/10 "2019-03-18T04:06:29Z")

</div>

@Antoine_Bulteau - Thanks got it 👍
