I have builds running on an iOS simulator daily. I have noticed after some days the memory usage of WebdriverAgentRunner-Runner increases, and some builds fail with org.openqa.selenium.WebDriverException: Connection refused (Connection refused).
I have the following reset capabilities on iOS:
BeforeTest I start Appium server
BeforeClass I create the Driver
AfterTest I stop Appium server
AfterMethod I resetApp
appium version 1.22.0
Does anyone know how can I maybe restart the WebdriverAgentRunner programatically? Or what is that I do wrong?
Thanks in advance!