Appium installation

Installation:
1.JDK
1)download JDK and install
2)set variables:
http://jingyan.baidu.com/article/d45ad148ba5ab169552b80d3.html
(1)my computer-system configuration-enviornment variables
(2)JAVA_HOME the directory which you install JDK, for example:C:\JAVA\jdk
, directory like bin,lib.jre must under this directory.
(3)CLASSPATH .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;
(4)PATH ;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;
(5)Verify the installtion: cmd-java,cmd-javac

2.SDK
http://www.androiddevtools.cn/
1)下载adt/Android studio完美集成,下载好后并进行解压
解压adt集成包到合适的路径下面,比如D:\adt\
2)设置安卓环境变量
设置ANDROID_HOME系统变量为你的android SDK路径,并把tools和platform-tools两个目录加入到系统的Path路径里。
eg:添加变量名:ANDROID_HOME 变量值: D:\adt\sdk
PATH  %ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools;
3)Verify: cmd-adb(it can display current version)-android-h

3.python
1)download and install python e.g:D:\python
2)add environment variables:
PATH D:\python;D:\python\Scripts
3)verify:cmd-python -print("helloworld!")

4.nodejs
1)download and install https://nodejs.org/en/download/
2)verify:cmd-node -v -npm

5.appium
1)download and install https://bitbucket.org/appium/appium.app/downloads/
2)add variables:PATH D:\appium\node_modules.bin
3)open appium
4)verify:npm install -g appium-doctor
appium-doctor
打开cmd,输入appium-doctor,检查环境是否OK,出现allchecks were successful,说明环境OK

6.appium-python-client
cmd- pip install Appium-Python-Client
如果从官方的资源库下载Appium-Python-Client失败,请自行更换下载源重新下载。在命令行输入"pip install Appium-Python-Client -ihttp://pypi.douban.com/simple"重试

Tips:检查selenium版本3.3.3
安装 Appium-Python-Client 的同时会安装一个selenium模块.试着进入python3交互命令行,然后执行下面命令:
import selenium
selenium.version
 如果你显示的 selenium 版本是当前最新版本3.3.3的话,那么最好使用下面命令将版本装成3.0.2,网传某些Api的话会报错。
pip3 install -I selenium==3.0.2

7.pycharm

android simulator
https://blog.csdn.net/ww1314510/article/details/81778938

猜你喜欢

转载自blog.51cto.com/13749917/2336765