First, automatically delete Contactmanager
Automated Test Appium provides the following sample package/activity:com.example.android.contactmanager/. Contactmanager, notice the following error
Info: [Debug] error:activity used to start app doesn ' t exist or cannot be launched! Make sure it exists and is a launchable activity
> at [Object object].<anonymous> (C:\Program Files (x86) \appium\node_modules\appium\node_modules\appium-adb \LIB\ADB.JS:1146:21)
> at [Object object].<anonymous> (C:\Program Files (x86) \appium\node_modules\appium\node_modules\appium-adb \lib\adb.js:180:9)
> at Childprocess.exithandler (child_process.js:742:7)
> at Childprocess.emit (events.js:110:17)
> at Maybeclose (child_process.js:1016:16)
> at Process.childprocess._handle.onexit (child_process.js:1088:5)
> Info: [Debug] Responding to client with error: {"status": $, "value": {"message": "A new session could not be created. (Original Error:Activity used to start app doesn ' t exist or cannot be launched!Make sure it exists and was a launchable activity) "," Origvalue ":" Activity used to start app doesn ' t exist or cannot be Laun ched! Make sure it exists and is a launchable activity "}," SessionId ": null}
> Info: <--post/wd/hub/session 2518.066 ms-346
Discovery indicates that the package does not exist. It's strange that I installed the Automation code after I confirm that I can run it and then run it, why does the hint not exist?
Then observe the emulator run interface information, found that the boot code automatically after the simulator Contactmanager deleted, of course, can not find this package and activity.
Second, Failed to the start an Appium session, Err was:Error:Requested a new session but one is in progress
This is because the previous session was not closed, and then you opened the test instance, the workaround:
1. Stop Appium Service
2. Set cover session in Genarel setting, restart Appium
End of Test at Afterclass plus Driver.quit ()
Appium+python problems in automated test process