# Is there any way to be added before testsuite logs to html report

**URL:** <https://forum.katalon.com/t/is-there-any-way-to-be-added-before-testsuite-logs-to-html-report/91107>\
**Category:** API Testing\
**Tags:** web-testing, api-testing, katalon-studio\
**Created:** [June 19, 2023, 8:24am UTC](https://forum.katalon.com/t/is-there-any-way-to-be-added-before-testsuite-logs-to-html-report/91107 "2023-06-19T08:24:45Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![samsuthen.akbarali](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/samsuthen.akbarali/32/24066_2.png) [@samsuthen.akbarali](https://forum.katalon.com/u/samsuthen.akbarali)\
**Post date:** [June 19, 2023, 8:24am UTC](https://forum.katalon.com/t/is-there-any-way-to-be-added-before-testsuite-logs-to-html-report/91107/1 "2023-06-19T08:24:45Z")

</div>

I am running test suites using a test suite collection. For each suite, I need to execute the “beforeTestSuite” listeners to ensure smooth execution of the test suite. The tests are running correctly, but I cannot see the logs from the “beforeTestSuite” listeners in the HTML report. I have attached screenshots for your reference.

![image](https://europe1.discourse-cdn.com/katalon/optimized/3X/a/3/a3a8e90c29147ad756d1a7fb625ee18e05250b7a_2_690x67.png)

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/e/1/e115fecfc01bc6bb348f07d5d4bfe42e764349ed.png)

Is there anything that I might have overlooked? Can you provide guidance on how to achieve this?

---

<div class="post-metadata">

**Author:** ![Elly\_Tran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/elly_tran/32/21874_2.png) [@Elly\_Tran](https://forum.katalon.com/u/Elly_Tran)\
**Post date:** [June 20, 2023, 5:03am UTC](https://forum.katalon.com/t/is-there-any-way-to-be-added-before-testsuite-logs-to-html-report/91107/2 "2023-06-20T05:03:18Z")

</div>

Hi,

Let me ask my team and seek for help

---

<div class="post-metadata">

**Author:** ![samsuthen.akbarali](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/samsuthen.akbarali/32/24066_2.png) [@samsuthen.akbarali](https://forum.katalon.com/u/samsuthen.akbarali)\
**Post date:** [June 20, 2023, 5:22am UTC](https://forum.katalon.com/t/is-there-any-way-to-be-added-before-testsuite-logs-to-html-report/91107/3 "2023-06-20T05:22:38Z")

</div>

Thanks for your reply, Mate.

---

<div class="post-metadata">

**Author:** ![samsuthen.akbarali](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/samsuthen.akbarali/32/24066_2.png) [@samsuthen.akbarali](https://forum.katalon.com/u/samsuthen.akbarali)\
**Post date:** [June 26, 2023, 10:02am UTC](https://forum.katalon.com/t/is-there-any-way-to-be-added-before-testsuite-logs-to-html-report/91107/4 "2023-06-26T10:02:40Z")

</div>

Is there any update?

---

<div class="post-metadata">

**Author:** ![samsuthen.akbarali](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/samsuthen.akbarali/32/24066_2.png) [@samsuthen.akbarali](https://forum.katalon.com/u/samsuthen.akbarali)\
**Post date:** [July 4, 2023, 4:49am UTC](https://forum.katalon.com/t/is-there-any-way-to-be-added-before-testsuite-logs-to-html-report/91107/5 "2023-07-04T04:49:18Z")

</div>

@kazurayam. I need your input on this

---

<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:** [July 4, 2023, 4:51am UTC](https://forum.katalon.com/t/is-there-any-way-to-be-added-before-testsuite-logs-to-html-report/91107/6 "2023-07-04T04:51:51Z")

</div>

I don’t understand your question.

You wrote

> [@samsuthen.akbarali](#):
>
> I need to execute the “beforeTestSuite” listeners to ensure smooth execution of the test suite

this tells me you are doing somehting in a [Test Listener](https://docs.katalon.com/docs/create-tests/create-test-cases/test-fixtures-and-test-listeners-test-hooks-in-katalon-studio) class.

However you attached a screenshot:  
[https://europe1.discourse-cdn.com/katalon/uploads/default/uploads/default/original/3X/e/1/e115fecfc01bc6bb348f07d5d4bfe42e764349ed.png](https://europe1.discourse-cdn.com/katalon/uploads/default/uploads/default/original/3X/e/1/e115fecfc01bc6bb348f07d5d4bfe42e764349ed.png)  
This is not a Test Listener.

So I do not understand what you are doing, what you want to do.

---

<div class="post-metadata">

**Author:** ![samsuthen.akbarali](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/samsuthen.akbarali/32/24066_2.png) [@samsuthen.akbarali](https://forum.katalon.com/u/samsuthen.akbarali)\
**Post date:** [July 4, 2023, 5:09am UTC](https://forum.katalon.com/t/is-there-any-way-to-be-added-before-testsuite-logs-to-html-report/91107/7 "2023-07-04T05:09:17Z")

</div>

I would like to add the execution logs of the `setUp()` method to the HTML report. How can I achieve this?

---

<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:** [July 4, 2023, 5:11am UTC](https://forum.katalon.com/t/is-there-any-way-to-be-added-before-testsuite-logs-to-html-report/91107/8 "2023-07-04T05:11:28Z")

</div>

I have never used `setup()` method. I have no idea.

---

<div class="post-metadata">

**Author:** ![samsuthen.akbarali](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/samsuthen.akbarali/32/24066_2.png) [@samsuthen.akbarali](https://forum.katalon.com/u/samsuthen.akbarali)\
**Post date:** [July 4, 2023, 5:14am UTC](https://forum.katalon.com/t/is-there-any-way-to-be-added-before-testsuite-logs-to-html-report/91107/9 "2023-07-04T05:14:51Z")

</div>

@kazurayam - Thanks. @Elly_Tran - Waiting for your reply

---

<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:** [July 4, 2023, 11:18am UTC](https://forum.katalon.com/t/is-there-any-way-to-be-added-before-testsuite-logs-to-html-report/91107/11 "2023-07-04T11:18:24Z")

</div>

Katalon provides no customizability for the built-in report. You would not be able to find your way to change the HTML report.

---

<div class="post-metadata">

**Author:** ![Elly\_Tran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/elly_tran/32/21874_2.png) [@Elly\_Tran](https://forum.katalon.com/u/Elly_Tran)\
**Post date:** [July 6, 2023, 8:02am UTC](https://forum.katalon.com/t/is-there-any-way-to-be-added-before-testsuite-logs-to-html-report/91107/12 "2023-07-06T08:02:13Z")

</div>

Hi,

Sorry for my late response. As mentioned in this doc [Test Fixtures and Test Listeners (Test Hooks) in Katalon Studio | Katalon Docs](https://docs.katalon.com/docs/create-tests/create-test-cases/test-fixtures-and-test-listeners-test-hooks-in-katalon-studio#activate-setup-and-teardown-in-a-test-suite), @beforeTestSuite only generates a sample template testing, so it does not contribute to the final status of the test. Therefore, I think the operation of @beforeTestSuite will not be captured in the report. If you want your code is generated in Test Suite report, please use `setUpTestCase`. Read the doc for the instruction. Thank you!
