appium + python framework for building automation

A. You need to install software

    1.jdk1.6.0 (64-bit)

    2.android-sdk-windows

    3.python: 2.7 (3.6 also)

    4.appium: 1.4.13.1

    5.Node.js:node-v4.4.7-x64

    6.Appium-python-client

Two, jdk installation

    1. Download jdk package, small series of 64-bit version 1.6, other advanced version should also be possible. Select the corresponding version of the system according to their own

    2. all the way to fool installation, pay attention to the installation path without spaces, do not have Chinese. jdk and jre do not put a folder

    3. Set the three environment variables, My Computer> select "Properties" -> "Advanced" -> "Environment Variables" -> "System Variables" -> "New"

JAVA_HOME ---- D: \ Java \ jdk1.6.0 "(fill in according to your installation path)

 

4. New System Variable: CLASSPATH variable value;% JAVA_HOME% \ lib;% JAVA_HOME% \ lib \ tools.jar; (Note that the variable value in front of a point).

5. Edit the path variable the value of the environment variable;% JAVA_HOME% \ bin;% JAVA_HOME% \ jre \ bin; (semicolon does not remember if the previous note with a semicolon)

6. Install successfully opened cmd, enter the command javac -version, you can see jdk version number, I congratulate you install success

Three. Android-sdk installation

  1. Download android-sdk, android to do this is to test and develop the necessary environment, download links https://i.cnblogs.com/EditPosts.aspx?opt=1

    2. After decompression, which has a double-click to open the SDK manager.exe

  3. Check the android version you want to download the corresponding version of the API and, behind the simulator will be used (not downloaded by other simulator can do, or real machine) and then wait for downloads 

 1.在系统变量新建:ANDROID_HOME,对应变量值为:D:\androidsdk\android-sdk-windows(sdk安装路径)

 2.path添加两个变量,将以下箭头所指的两个文件路径添加到path里

  3.path里面添加D:\androidsdk\android-sdk-windows\tools和D:\androidsdk\android-sdk-windows\platform-tools

 

四、adb环境

  1.因为adb是在D:\androidsdk\android-sdk-windows\platform-tools这个目录下的,所以上面添加了环境变量后,可以直接在cmd里面运行了。

 

  2.在cmd输入adb可以查看对应版本号

 

五、Python安装

    1.小编的电脑操作系统:win7 64位系统

    2.下载Python安装包,选择2.7版本和3.6版本都可以

官网下载地址:https://www.python.org/15

    3.Python安装,双击傻瓜式安装(别安装在c盘哦)

    4.小编的安装目录在d盘:D:\python

    5.安装完成后,看下这个目录D:\python\Scripts,有没pip.exe和easy_install.exe(一般都有)

    6.将D:\python和D:\python\Scripts,添加到环境变量path下

    7.打开cmd输入python,出现版本号,然后输入print("hello world!")

六、安装node.js

    1.下载官网地址:https://nodejs.org/en/download/23

  2.下载后一路傻瓜式安装,安装完成后,运行cmd,输入node –v查看版本号,然后输入npm

 3.出现如上图信息,表示node.js安装成功。npm是一个node包管理和分发工具,有了npm,

后面就可以输入指令在线安装appium(打开 cmd输入:npm install –g appium但是一般不推荐这种,下载比较慢,所以用下面这种客户端安装)

七、安装appium

   1.下载安装地址:https://bitbucket.org/appium/appium.app/downloads/16

   2.直接双击appium-installer.exe文件安装就好,桌面会生成一个appium的图标,启动后界面显示如下

 

八、安装.net framework

    1.Appium是用.net开发的,所以需要安装.net framework4.5,下载地址:https://www.microsoft.com/zh-cn/download/details.aspx?id=3065332

九、appium-doctor

    1.appium安装好后,找到这个文件目录D:\appium\Appium\node_modules\.bin

    2.将上面的地址添加到环境变量path下

    3.打卡cmd,输入appium-doctor,检查环境是否OK,出现如下图所示,说明环境OK

十、安装Appium-Python-Client

    1.前面python环境安装,已经准备好pip了,所以这里直接打开cmd,输入:pip install Appium-Python-Client

到此,该安装的软件都已经安装好,接下来就是怎么用了!!

 

Guess you like

Origin www.cnblogs.com/ymbd/p/10972737.html