Appium+python problems in automated test process

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.