Android Automation Research: Monkeyrunner Environment construction

Source: Internet
Author: User

--------------------------------------------

Info: Initial study, inevitably there will be omissions, in the future I will continue to revise the completion, until perfect.

2014-10-11: First Edition

--------------------------------------------

Required Environment :

A.android sdk+java+python:http://www.cnblogs.com/dzblog/p/4014078.html

B.eclipse + Pydev

Pydev plug-in installation :

A. Open Eclipse->help->install New software ...

B. In work with, enter: Pydev-http://pydev.org/updates

C. Tick Pydev and click ' Next '

D. Wait for the download to install and the software will prompt you to restart Eclipse to complete the installation.

To create a python project:

1. New->other->pydev->pydev Project (here is an error message telling us that we need to configure the Python interpreter)

2. Fill in the name of the project (take Monkeyrunner as an example) and select ' Click here to configure a interpreter not list '

3. Click on Quick auto-config, the system will automatically search for the Python directory and add it to the green box, click OK

4. Select OK and finish to create the Python project.

To create a python file:

1. Right-click the Monkeyrunner->new->other->pydev->pydev&module and fill in the package name and file name:

2. Select Finish.

Write a print ' I am Python project ' and execute, and you can see that I am Python project is output in the console.

cheers!

Android Automation Research: Monkeyrunner Environment construction

Related Article

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.