appium environment to build in the windows system

For the introduction of appium I will not say, before the article introduced. The following straight into the subject.

Command version during the installation process requires python2 environment, you can install python3 Bahrain to write the script.

 

Environmental requirements:

  • JDK "java language installation packages
  • Node.js "appium command-line version of the service depends on the environment
  • android-sdk "Android Developer's Kit
  • python2 "required when installing appium command line version of Service
  • .net framework
  • appium-python-client "python API
  • appium-desktop "desktop version of appium service
  • appium command line version and appium-doctor

Build the following steps:

A, JDK installation configuration (version 1.8 recommended)

System Variables → New Variable JAVA_HOME
variable value to fill the jdk installation directory (it was E: \ Java \ jdk1.7.0)
system variable → → Edit Path variable to find
the last input% JAVA_HOME% \ bin in the value of the variable;% JAVA_HOME% \ jre \ bin;
(note that the original value of the variable Path end there; number, if not, the first input; number enter the code above)

System Variables → New Variable CLASSPATH
variable values to fill in;.% JAVA_HOME% \ lib; % JAVA_HOME% \ lib \ tools.jar ( Note that the preceding bit)

Then open cmd verification: java -version

 

Two, node.js (recommended version 10.14)

Official website to download https://nodejs.org/en/

After the download is complete, the next step directly next default installation, the installation is complete, run cmd to open a command prompt, enter node -v will show the version of node.js

 

 Three, android sdk

Cloud disk Download:

Link: https: //pan.baidu.com/s/1-KkDKNKpyYN67xM6--CG0w
extraction code: 7is6

→ New ANDROID_HOME system variable variable
variable values to fill in the installation directory sdk (I is D: \ sdk-bundle-windows -x86-20130917 \ sdk)

System Variables → Looking Path variable → edit
variable values input last% ANDROID_HOME% \ Platform-Tools;% ANDROID_HOME% \ Tools;
(note that the original Path variable value at the end there; number, if not, the first input; No. enter above code)
configuring - open run cmd command prompt, type adb adb command will display presentation.

 

 

 Four, python2

Baidu how can self-configure python2, too simple process is omitted here. . .

 

五、.net framework

Systems are generally built control panel - process Sequence - functional check procedures and .net framework 3.5 can be determined.

 

 

 

 

 六, appium-python-client

Using python package installation tools pip, so first check your python have this tool oh.

Open cmd

Input: pip.exe install Appium-Python-Client

 

Seven, appium command line version (focus)

 Set npm Taobao mirror, appium command-line version (cmd as administrator)

 asl install -g cnpm --registry = https: //registry.npm.taobao.org

Installation node-gyp to support C ++ compiler extensions
cnpm install node-gyp -g

The first command the following default installation appium latest version; also available in appium after the @ version number, such as installing version 1.7.2:

cnpm install appium -g

cnpm install [email protected] -g

安装 appium 完成后,继续安装 appium-doctor

cnpm install appium-doctor -g

这个过程会有些报错信息,但是不要紧。

最后使用 appium-doctor 检查所有配置均已正确即表示安装成功:

 

 

八、appium-desktop(appium桌面版可不装)

官网下载地址https://github.com/appium/appium-desktop/releases

下载后双击安装会生成桌面快捷键

 

 

 

小白入口 ↓【配套视频教程】

 https://ke.qq.com/webcourse/index.html#cid=324092&term_id=100384648&taid=2706963268170236&type=1024&vid=b1430tl5h2c

 

Guess you like

Origin www.cnblogs.com/FR-Long/p/11455660.html
Recommended