Ignore an instruction in test suits

How I can ignore the start app statement in test cases i if I run test suites

@aobaid The way I have gotten this to work is to use a try/catch statement on the setup area. This can be on each test or inside a test listener. The try will attempt to grab the existing appium driver and if that fails it will call the start app command. There may be a better way to do this but this has worked for me:

AppiumDriver<?> driver
try {
	driver = MobileDriverFactory.getDriver()
} catch (Exception startApp) {
	Mobile.startApplication(appID, false, FailureHandling.STOP_ON_FAILURE)
	driver = MobileDriverFactory.getDriver()
1 Like

Thank you
I used this way but it returned this error
unable to resolve class com.kms.katalon.core.mobile.keyword.internal.Mobile

Actually I know that I must add .jar libraries to my project but I can’t find any JAR file in lib file.