app install the automated test environment

Before making automation app,

1, first install Appium (to be understood that an intermediate transmission bridge client mobile terminal and / simulator);

2, mounting the adb (the Android Debug  Bridge ) tools;

3, phone simulator (recommended radar, night divine, web MUMU- support Andrews and ios), if a real machine, then to open the developer debug mode switch;

 

1, Appium environment installation instructions

1) First, check the machine has been installed 4.5 and above versions of Microsoft .NET Framework. It is not installed, then to download the corresponding installation package installed exe

 

2) Installation node-v6.11.4-x64.msi

               Appium installation environment dependence, node.js;  

              Download:  https://nodejs.org/en/

3) installation appium, download the new installation is recommended Appium-windows-1.13.0 .exe

The official website address: http://appium.io/

 

4) installation JDK, installation JDK1.8 and above

 

2, Andrews Android Develop Tools Tools

  ADT installation:

 1) using Android Studio installed ADT Tools

 

 

 

 

 

 

 

 

 

 

 

 

 

 

When you first install Android studio pop unable to access android sdk add-on list reason: you and your computer does not download the SDK android studio is without the SDK; 

解决方法:在自己安装的目录下找到:bin\idea.properties打开这个文件末尾添加一行:disable.android.first.run=true,表示初次启动不检测SDK;

或者点击Cancel按钮跳过,在下一个界面手动选择本地SDK目录就可以了

 

 

 

 

 

 

 

 

 

 

 

 

 

配置环境变量:

1)添加ANDROID_HOME环境变量,配置sdk根目录。

ANDROID_HOME=D:\android-sdk_r24.4.1-windows\android-sdk-windows

 

 

2)在PATH变量中添加三项内容:

%ANDROID_HOME%\platform-tools

%ANDROID_HOME%\tools

%ANDROID_HOME%\build-tools\29.0.2

 

检测:

进入cmd命令行,输入adb --version

能正常显示adb的版本就ok

 

 

3、安装夜神模拟器(推荐雷电、夜神、网页mumu,前两个支持安卓,后一个支持ios和安卓)

官方网站下载地址:https://www.yeshen.com/

安装成功后,第一步:将%ANDROID_HOME%\platform-tools目录下的adb.exe拷贝到桌面,更改名称为nox_adb.exe

 

第二步:将第一步中的nox_adb拷贝到夜神模拟器安装目录下,替换原来的文件。

 

 

完成替换后进入cmd命令行,输入命令adb devices,显示如下表示安装ok

 

 

 4.安装appium python客户端

直接使用pip在线安装

pip install Appium-Python-Client

 

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/lemon---/p/11792852.html