@Retention(RetentionPolicy.RUNTIME) @Target({ ElementType.METHOD }) public @interface BeforeTestCase
Marks method that will be invoked before every test case launches. BeforeTestCase methods also invoke before SetUp methods of the launched test case. In BeforeTestCase method, clients can get some related information for the current executed test case by declaring a TestCaseContext parameter. Test listener execution flow:
Invoke all BeforeTestSuite methods Invoke all Test Suite's SetUp methods Each Test Case Invoke all BeforeTestCase methods Invoke all Test Case's SetUp methods Execute Test Case's Script Invoke all Test Case's TearDown methods Invoke all AfterTestCase methods Invoke all Test Suite's TearDown methods Invoke all AfterTestSuite methodsFor more details, please check our document page via https://docs.katalon.com/pages/viewpage.action?pageId=5126383