When selecting multiple scenarios to run every other test fails to launch the app with the error message:
System.InvalidOperationException : An unknown server-side error occurred while processing the command. Original error: Error occured while starting App. Original error: Activity used to start app doesn’t exist or cannot be launched! Make sure it exists and is a launchable activity.
If i select 5 of my tests to run which should run one after the other, the first, third and fifth test pass and the second and fourth fail.
It doesn’t matter if I start the appium server from the code or locally from the command prompt.
Environment:
Appium1.7.1
Android 6.0
My capabilities are set as follows:
commandTimeout = 120
fullReset = true
platformName = Android
plaftormVersion = 6.0.0
deviceName = Cubot
udid = "X562XXDH68220238
app = path to apk
appWaitActivity = md5ca5626392feb4628a1f95c95504ee963.*
I know these settings are correct as they work for three of the tests and if I ran all my scenarios selecting one at a time they all pass.
Any ideas how to fix?
I’ve attached the appium log from running 5 scenarios
SecondAndFourthTestFailToLaunchApp.txt (330.7 KB)