Test Fixtures and Test Listeners (Test Hooks)


This is a companion discussion topic for the original entry at https://docs.katalon.com/katalon-studio/docs/fixtures-listeners.html

@Shin

The sample code of Test Listener shown in this document page misses import statements. The sample should include all of necessary import statements; otherwise people would get lost.

import com.kms.katalon.core.annotation.AfterTestCase
import com.kms.katalon.core.annotation.AfterTestSuite
import com.kms.katalon.core.annotation.BeforeTestCase
import com.kms.katalon.core.annotation.BeforeTestSuite
import com.kms.katalon.core.context.TestCaseContext
import com.kms.katalon.core.context.TestSuiteContext
import internal.GlobalVariable as GlobalVariable