Winium multiple test cases

Hi there,

I am working on desktop automation using katalon and winium. initiated the driver in the first test case but the unable to use the same driver in the next test case.
when trying the use as below in the second test case

WiniumDriver driver;
DesktopOptions options = new DesktopOptions();
driver = new WiniumDriver(options)
facing the exception as [FATAL] Failed to start driver: System.Net.Sockets.SocketException (0x80004005): Only one usage of each socket address

driver initialisation in my first script is as follows

WiniumDriver driver = null

String appPath = ‘’

DesktopOptions option = new DesktopOptions()

option.setApplicationPath(appPath)

option.setDebugConnectToRunningApp(false)

option.setLaunchDelay(2)

driver = new WiniumDriver(new URL(‘http://localhost:9999’), option)

any leads???

~KA

It seems that only one driver can be used at a time. did you try to terminate the first driver first?

driver.close and driver.quit are not working to terminate the driver.
org.openqa.selenium.WebDriverException: Process has exited, so the requested information is not available
how can we terminate the driver?

how can i carry the session to the next test case? for web driver the driver factory class does the same. Any idea for a desktop driver??

Anyone implemented a complete test suite in winium desktop automation?