How to ignore / skip the open / close browser steps?

Hi guys,

I’m hoping you may be able to help me.

I have a group of 76 test cases put into a test suite that runs through our website and verifies different pages and input different data. Within each test case, I need to open and close a browser.

I don’t want to have to disable all the open/close steps within each test case. Is there any way of skipping them so that the steps remain?

You can set up test listeners that run before or after test suite / test case. Please take a look here: https://docs.katalon.com/katalon-studio/docs/test-listeners-test-hooks.html#visualized-workflow.

So you can do something like this:

@BeforeTestCase
def yourBeforeListener(TestCaseContext testCaseContext){
     WebUI.openBrowser('your-url.com')
}
@AfterTestCase
def yourAfterListener(TestCaseContext testCaseContext){
     WebUI.closeBrowser()
}