环境1阶段
************************************************************************
1、安装java sdk ,1.7+以上:
1)安装包:\\xxx
2)环境变量:
- 新增JAVA_HOME
- 新增CLASSPATH: .;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar
- 修改path,追加 ;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin
2、安装android sdk:
1)安装包:
http://dl.google.com/android/installer_r23.0.2-windows.exe
2)环境变量:
- 新增ANDROID_HOME
- 修改path,追加 ;%ANDROID_HOME%\platform-tools;%ANDROID_HOME%\tools;
3、安装appium
1)安装包:
- 共享路径:\\xxx
- 最新安装包:https://bitbucket.org/appium/appium.app/downloads/
2)环境变量:
- 修改path,追加 ;C:\Program Files (x86)\Appium;C:\Program Files (x86)\Appium\node_modules\.bin,
3)node.js安装法:
- https://nodejs.org/
- cmd:
国外:npm install -g appium
国内代理:npm --registry http://registry.cnpmjs.org install -g appium
4)其他:
- 官方参考:http://appium.io/documentation.html
4、环境检测:
1)cmd运行:
----------------------------
C:\Users\xxxxxx>appium-doctor
Running Android Checks
✔ ANDROID_HOME is set to "E:\sdk\sdk"
✔ JAVA_HOME is set to "C:\Program Files (x86)\Java\jdk1.7.0_10."
✔ ADB exists at E:\sdk\sdk\platform-tools\adb.exe
✔ Android exists at E:\sdk\sdk\tools\android.bat
✔ Emulator exists at E:\sdk\sdk\tools\emulator.exe
✔ Android Checks were successful.
✔ All Checks were successful
----------------------------
2)连接一个手机:
----------------------------
C:\Users\xxxxxx>adb devices -l
List of devices attached
xxxxxxxxx device product:ido model:XXXXXX device:ido
----------------------------
3)appium命令能成功打开Appium GUI界面。
************************************************************************
1、安装java sdk ,1.7+以上:
1)安装包:\\xxx
2)环境变量:
- 新增JAVA_HOME
- 新增CLASSPATH: .;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar
- 修改path,追加 ;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin
2、安装android sdk:
1)安装包:
http://dl.google.com/android/installer_r23.0.2-windows.exe
2)环境变量:
- 新增ANDROID_HOME
- 修改path,追加 ;%ANDROID_HOME%\platform-tools;%ANDROID_HOME%\tools;
3、安装appium
1)安装包:
- 共享路径:\\xxx
- 最新安装包:https://bitbucket.org/appium/appium.app/downloads/
2)环境变量:
- 修改path,追加 ;C:\Program Files (x86)\Appium;C:\Program Files (x86)\Appium\node_modules\.bin,
3)node.js安装法:
- https://nodejs.org/
- cmd:
国外:npm install -g appium
国内代理:npm --registry http://registry.cnpmjs.org install -g appium
4)其他:
- 官方参考:http://appium.io/documentation.html
4、环境检测:
1)cmd运行:
----------------------------
C:\Users\xxxxxx>appium-doctor
Running Android Checks
✔ ANDROID_HOME is set to "E:\sdk\sdk"
✔ JAVA_HOME is set to "C:\Program Files (x86)\Java\jdk1.7.0_10."
✔ ADB exists at E:\sdk\sdk\platform-tools\adb.exe
✔ Android exists at E:\sdk\sdk\tools\android.bat
✔ Emulator exists at E:\sdk\sdk\tools\emulator.exe
✔ Android Checks were successful.
✔ All Checks were successful
----------------------------
2)连接一个手机:
----------------------------
C:\Users\xxxxxx>adb devices -l
List of devices attached
xxxxxxxxx device product:ido model:XXXXXX device:ido
----------------------------
3)appium命令能成功打开Appium GUI界面。
************************************************************************
环境2阶段
************************************************************************
5、安装eclipse
1)安装eclipse,并安装testng插件。
6、装cygwin
7、testNg设置:
1)新建一个目录,存放以下jar包:
testng-6.9.4.jar
2)环境变量:
- 新增TESTNG_HOME
- 修改CLASSPATH,追加 ;%TESTNG_HOME%\testng-6.9.4.jar