Appium+Python environment construction

Tools needed:

1. Python3.6 download address: https://www.python.org/downloads/ The environment variables will be automatically configured during the installation process (it seems that there is an add path, you need to check it, you should pay attention to it when installing), no need to manually Configuration; but you can manually check after installation;

After the installation is complete, go to DOS to check whether the installation is complete,

Indicates that the installation is complete

 

2. Appium-Python-Client: After installing python, the Appium client can be installed directly with the pip command under Windows DOS. The command is as follows:

The installation is complete

3. jdk 1.8 download address: http://www.oracle.com/technetwork/cn/java/javase/downloads/jdk8-downloads-2133151-zhs.html

After downloading and installing, configure the following three variables; in the computer right-click properties, advanced system settings, set in the environment variables

 

After the configuration is complete, check whether the configuration is complete: enter java -version under DOS

Indicates that the configuration is successful!

 

4. android-sdk_r24.3.4-windows Download address: http://tools.android-studio.org/index.php/sdk/

 After opening SDK Manage, it may not start. This may be because your jdk and jre are not configured properly.

After configuring the jdk: start it again:

 

 Configure environment variables after installation: you need to configure it according to your own path

ANDROID_HOME:D:\installs\android-sdk_r24.4.1-windows\android-sdk-windows;

path:%ANDROID_HOME%/tools;%ANDROID_HOME%/platform-tools;

After the configuration is complete, you can successfully run the adb command under DOS. The adb command is associated with %ANDROID_HOME%/platform-tools;

 

 

 

5. Node.js: node-v4.4.7-x64 Download address: https://nodejs.org/en/download/

After downloading, install it in a fool-proof way. After the installation is complete, run cmd, enter node -v to view the version number, and then enter npm

    3. The above information appears, indicating that node.js is installed successfully. npm is a node package management and distribution tool. With npm, you can enter instructions to install appium online (open cmd and enter: npm install –g appium but this is generally not recommended, and the download is slow, so use the following client Install)

 

6. appium: 1.4.13.1: Appium server download address: http://www.pc0359.cn/downinfo/58378.html

Double-click the installation, directly select the next step to complete the installation, after the installation is complete:

Generate desktop icons

 

 

a. After appium is installed, find this file directory D:\appium\Appium\node_modules\.bin

b. Add the above address to the environment variable path

c. Clock in cmd, enter appium-doctor, check whether the environment is OK, the prompt is as shown in the figure, because my SDK has not been installed at this step, and the SDK must be installed first;

 

If installed, it will prompt:

 

 

Now you're done, hahahaha; the first time I installed luck is not bad
. Reference: http://www.cnblogs.com/yoyoketang/p/6128725.html

http://www.cnblogs.com/yoyoketang/p/6128730.html

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325184772&siteId=291194637