Transferred from: http://www.cnblogs.com/nbkhic/p/3803883.html
Original address
Thank Testerhome for his hard translation.
The copyright of this article is owned by ethanol, welcome reprint, but please specify the author and source, strictly prohibited for any commercial use
Limit
If you install Appium on Windows, you won't be able to use pre-compiled. app files dedicated to OS X, and you will also be unable to test iOS apps because Appium relies on OS X-specific libraries to support iOS testing. This means that you can only run iOS app tests on your Mac. This is a pretty big limit.
Start installation
-
Install Nodejs version 0.8 and above, and install it through the official installation program.
-
Install the Android SDK package, (http://developer.android.com/sdk/index.html), run the ' Android ' tool in dependent SDK. And make sure you have the LEVEL17 or above version API installed. Set the ANDROID_HOME system variable to your Android SDK path and add tools Platform-tools two directories to the system's path path. Because the bread here contains some execution orders.
-
Install the Java JDK and set the JAVA_HOME variable to your JDK directory.
-
Install Apache ant or use the ant that comes with the Android Windows SDK directly, the address in the Eclipse\plugins directory, you need to add this directory to your system PATH variable
-
Install Apache Maven. and set the M2home and M2 environment variables, add the M2 environment variable to your system path variable.
-
Install Git. Make sure you have Git installed under windows so that you can run common command commands
Now that you have downloaded all the dependencies installed, start running Reset.bat
Run Appium
To run test cases on Windows, you need to start the Android emulator or connect the Android LEVEL17 above the previous API. Then run appium node at the command line.
Note
- You must bring the--no-reset and--full-reset tags to use for Android on Windows
- There is a hardware acceleration simulator for Android, but it has some limitations of its own, if you want to learn more, please refer to the page
- Make sure that
config.ini there is a configuration item in your AVDhw.battery=yes
The simplest way to install
Due to the respect for official documents, I translate according to the original, the following describes my installation experience. Some of the tools that are officially mentioned don't actually need to be installed. Here are the installation and use procedures I have tested
Installing Appium
- Installing Nodejs
2. Use NPM to install APPIUM,NPM install-g appium
Note: In some cases, appium installation will not put the Appium path into the system path, this time need to manually add a bit.
Run Appium
Start Appium and run Appium directly.
Update Appium
by npm install -g appium updating Appium, you can
Appium--appium installation of Windows edition