Teardown method runs before listener

**## Operating System: Windows 10 **

## Katalon Studio Version: 5.6.0

## Environment (for Web testing)

  • Chrome

## Expected Behavior

According to https://docs.katalon.com/pages/viewpage.action?pageId=5126383, teardown method should run after all test listeners are finished.

## Actual Behavior

Teardown runs before the test listener.

**## Screenshots / Videos: **

Log snippet:

09-04-2018 12:16:02 PM - [PASSED] - Method 'tearDown' complete successfully
09-04-2018 12:16:02 PM - [END]    - End End action : tearDown
09-04-2018 12:16:02 PM - [START]  - Start listener action : reporterAfterTestSuite
09-04-2018 12:16:02 PM - [INFO]   - Starting invoke 'com.kms.katalon.core.annotation.AfterTestSuite' method: 'EmailReporter.reporterAfterTestSuite(...)'
09-04-2018 12:16:02 PM - [START]  - Start action : comment





1 Like

I had an image in mind as follows (yellow arrows).

Now I share with you a doubt about the documentation.

image2018-6-8 18_12_39.png

Has anyone from @Katalon Studio seen this?

I can only confirm your findings and I just add following from Katalon’s documentation:

which also does imply another flow on the @SetUp part (Listeners ALWAYS triggered FIRST) than what is depicted in the Test Execution lifecycle pic.


Hi all,

Thank you for bringing this issue to our attention. After investigating thoroughly, Test Listeners does trigger first before @Setup/@Teardown method. We have updated our documentation as well.

We apology for the documentation error and for the confusion it may cause. Please feel free to report any other issues that need to be addressed. We are happy to help!


1 Like