1 Appium for MAC Environment Preparation article "original Address: http://www.cnblogs.com/oscarxie/p/3894559.html"
1.1 Java
guowenxie-macbookair:~ guowenxie$ java-version
Java Version "1.8.0_05"
Java (TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot (TM) 64-bit Server VM (build 25.5-b02, Mixed mode)
1.2 git
guowenxie-macbookair:~ guowenxie$ git--version
git version 1.8.5.2 (Apple Git-48)
1.3 Ruby
guowenxie-macbookair:~ guowenxie$ Ruby-v
Ruby 2.0.0p451 (2014-02-24 revision 45167) [Universal.x86_64-darwin13]
1.4 Brew
guowenxie-macbookair:~ guowenxie$ Brew-v
Homebrew 0.9.5
Here's the brew installation, brew is an essential Package manager for Mac OS
Execute the following command
Ruby-e "$ (curl-fssl https://raw.github.com/Homebrew/homebrew/go/install)"
Modified to: Ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"
1.5 node
It's convenient to have a brew installation node.
Brew Install node
Note: If the download fails, download the tar package manually, and then install it manually:
CD node #解压缩目录
./configure
Make
sudo make install
1.6 NPM
guowenxie-macbookair:~ guowenxie$ Npm-v
2.0.0-alpha-5
1.7 Appium
You can now start installing Appium
guowenxie-macbookair:~ guowenxie$ Appium-v
1.2.0
You can also download the APPIUM:APPIUM-0.18.0.DMG directly here
1.8 WD
NPM Install WD
1.9 Xcode and Android SDK
I'm not talking about this.
1.10 Checking the environment
Appium provides a doctor that runs Appium-doctor
guowenxie-macbookair:~ guowenxie$ Appium-doctor
Running IOS Checks
? Xcode is installed At/applications/xcode.app/contents/developer
? Xcode Command Line Tools is not installed:Error:Command failed:no receipt for ' com.apple.pkg.CLTools_Executables ' Foun D at '/'.
Fix it? (y/n) Y
Press any key to continue:
? Xcode Command line Tools is installed.
? Devtoolssecurity is enabled.
? The Authorization DB is set up properly.
? Node Binary found At/usr/local/bin/node
? IOS Checks were successful.
Running Android Checks
? Android_home is set and does not exist on the file system at "Users/guowenxie/documents/adt-bundle_mac-x86_64-20140702/sdk "
Appium-doctor detected problems. Please fix and rerun appium-doctor.
Here you can see my Xcode Command line tools is not installed, this handy, Fix it? When you enter Y, you can automatically guide the installation.
Another is the ANDROID_HOME environment variable is not configured well, then we want to configure under.
1.11 Bash_profile File
Mac default is not this file, we build a
CD #进入用户目录
Touch. Bash_profile
VI. bash_profile
Open bash_profile file configuration android_home and Java_home
Export Android_home= "/USERS/GUOWENXIE/DOCUMENTS/ADT-BUNDLE-MAC-X86_64-20140702/SDK"
Export java_home=$ (/usr/libexec/java_home)
Change into
Export android_home=/users/xujin/downloads/android-sdk-macosx #配置Android SDK root directory
Export Path=${path}: $ANDROID _home/tools: $ANDROID _home/platform-tools #配置两个路径
Export java_home=$ (/usr/libexec/java_home)
source. bash_profile
Okay, run Appium-doctor again.
guowenxie-macbookair:~ guowenxie$ Appium-doctor
Running IOS Checks
? Xcode is installed At/applications/xcode.app/contents/developer
? Xcode Command line Tools is installed.
? Devtoolssecurity is enabled.
? The Authorization DB is set up properly.
? Node Binary found At/usr/local/bin/node
? IOS Checks were successful.
Running Android Checks
? Android_home is set to "/USERS/GUOWENXIE/DOCUMENTS/ADT-BUNDLE-MAC-X86_64-20140702/SDK"
? Java_home is set to "/usr/libexec/java_home."
? ADB exists at/users/guowenxie/documents/adt-bundle-mac-x86_64-20140702/sdk/platform-tools/adb
? Android exists at/users/guowenxie/documents/adt-bundle-mac-x86_64-20140702/sdk/tools/android
? Emulator exists At/users/guowenxie/documents/adt-bundle-mac-x86_64-20140702/sdk/tools/emulator
? Android Checks were successful.
? All Checks were successful
Here, the environment is basically ready.
2 Get **.app Format file methods
- When profile without Building is selected, instruments is called
- Open Terminal input: The CD app file path after the input command open. Opening the current path folder, copy and paste the app format file to the desktop
3 Appium Settings
- Click Appium-preferences as Set
- Set the app format file path
Here, the Appium setup is complete.
4 Eclipse Readiness Conditions
Click the menu help→eclipse marktplace to install the following plugins:
1. Android for Maven Eclipse version
2. Maven (Java EE) integration for Eclipse WTP (Luna) version
3. Maven Integration for Eclipse (Luna and newer) version
4. Maven Integration for Eclipse (Luna) version
5. Maven Integration for Eclipse WTP (Juno) version
6. SUBVERSIVE–SVN Team Provider version
7. TestNG for Eclipse
Can be retrieved from the Search-find.
8. Install Apache maven "Apache-maven-3.2.3-bin.tar"
9. Installing Org.testng.eclipse_6.8.6.20141201_2240.jar
5 build/Get Automated test code
More content to be perfected supplement
6 Jenkins Settings
More content to be perfected supplement
Appium for MAC Environment Preparation Chapter