# New Test Listeners are not working as expected when My Test case has multiple Call Test Case

**URL:** <https://forum.katalon.com/t/new-test-listeners-are-not-working-as-expected-when-my-test-case-has-multiple-call-test-case/8989>\
**Category:** Integrations\
**Tags:** integrations, katalon-studio\
**Created:** [January 23, 2018, 5:00am UTC](https://forum.katalon.com/t/new-test-listeners-are-not-working-as-expected-when-my-test-case-has-multiple-call-test-case/8989 "2018-01-23T05:00:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chandrasekaran\_Ganap](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@Chandrasekaran\_Ganap](https://forum.katalon.com/u/Chandrasekaran_Ganap)\
**Post date:** [January 23, 2018, 5:00am UTC](https://forum.katalon.com/t/new-test-listeners-are-not-working-as-expected-when-my-test-case-has-multiple-call-test-case/8989/1 "2018-01-23T05:00:06Z")

</div>

Hi,

The below is my structure of code.

1. Call Login Test Case  
2. Book Appointment  
3. Call Logout Test Case.

I have added to clear history,. kill IEdriverserver.exe in Test Listeners once each Test case completed.

I expected that once all three activity completed it should clear cookies and histories. But Currently after step 1 (called test executed) it clears the cookies and history so that the subsequent test steps getting failed.

How to use Test listeners when I have multiple call Test case in my original Test case.

---

<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:** [January 23, 2018, 8:55am UTC](https://forum.katalon.com/t/new-test-listeners-are-not-working-as-expected-when-my-test-case-has-multiple-call-test-case/8989/2 "2018-01-23T08:55:47Z")

</div>

In your scenario, you should use ‘AfterTestSuite’ trigger as it will call this trigger after all of above activities. Using ‘AfterTestCase’ will trigger steps after one of these activities, so that’s why you see your cookies and histories are cleared.

---

<div class="post-metadata">

**Author:** ![Chandrasekaran\_Ganap](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@Chandrasekaran\_Ganap](https://forum.katalon.com/u/Chandrasekaran_Ganap)\
**Post date:** [January 23, 2018, 12:21pm UTC](https://forum.katalon.com/t/new-test-listeners-are-not-working-as-expected-when-my-test-case-has-multiple-call-test-case/8989/3 "2018-01-23T12:21:24Z")

</div>

Thanks for the Reply. My Suite has say eg. 25 test cases… Each Test case has many call Test case… will this solution work out? or this will clear after ONLY executing all 25 test cases?
