Katalon Runtime Engine doesn't close a browser

Katalon Runtime Engine 8.0.5 doesn’t close a browser (OS Windows 10), when a test suite is completed, so there are dozens of processes hang in the Task Manager. It drastically impacts a performance and a memory consuming.
On Katalon Runtime Engine 7.6 all works as expected: processes are closing, etc.
Do you have any suggestions?

Project > Settings > Execution > Post execution options

Terminate drivers after each Test Suite

Do you have this option on or off?

I would suggest you not to leave browsers opened after test cases; rather you should explicitly close browsers by calling WebUI.closeBrowser()

Thank you for your responses, but I’m talking about ENGINE, not ENTERPRISE. The settings in the Project sections are the same as on your screenshot. And on older version (which we have to use for now), the browsers close as expected, after every test suite run is completed. The issue happens since version 7.8, I guess.

For sure, we can explicitly close browser in a testcase itself, or in a test suite, etc.
@TearDownTestCase(skipped = false) // Please change skipped to be false to activate this method.
def tearDownTestCase() {
// Put your code here.
}
But we have a huge amount of test cases and test suites - it is a lot to do. :frowning:
It is unclear, why the Katalon Engine are closing browsers successfully after each test suite run on previous versions.

->
@duyluong
@ThanhTo

Hi @Vitallica,

Please share with us the execution log and screenshots of Task Manager when observing KRE and chromedriver processes

Hi,
On the Katalon Enterprise 8.1.0 the Firefox browser is not closing after a test suite run was ended neither even if there is an explicit WebUI.closeBrowser() in the test suite Tear Down section
@TearDown(skipped = false) // Please change skipped to be false to activate this method.
def tearDown() {
nor if you use the TestListener
class EndTestSuiteCloseBrowser {
/**
* Executes after every test suite ends.
* @param testSuiteContext: related information of the executed test suite.
*/
@AfterTestSuite
def sampleAfterTestSuite(TestSuiteContext testSuiteContext) {
WebUI.closeBrowser()
}
}

Please, assist.

I’m seeing firefox.exe processes not closed as well. It’s maximizing the memory usage and halting any further Firefox instances from opening therefore failing further tests because Firefox cannot be opened.

Environment:
VM
Windows 2012 Server R2
KRE - Katalon Version: 8.2.5
Jenkins 2.33.0 - Freestyle Project
Katalon TestOps Plugin 1.0.28

Local KSE environment from which the Katalon test cases/suites/collections are developed does have “Terminate drivers after each Test Suite” enabled. But it’s the Firefox executable/process that is hanging/running

In each test case WebUI.closeBrowser() is present. And when run locally on a Windows 10 environment, the firefox.exe processes do terminate as seen in task manager.

While in the KRE/Jenkins/Windows 2012 R2 environment firefox.exe does not leaving 40 + instances running and maxing out memory usage.

Suggestion most welcome.

In the meantime, I’ve configured a pre build step to clean up the processes - execute bat file:

Runtime.getRuntime().exec(“taskkill /f /im firefox.exe”)
Runtime.getRuntime().exec(“taskkill /f /im geckodriver.exe”)

I’ve configured the same ^^^ into a keyword and will integrate into the Test Suite Teardown step.

John
FEMA