One: Environment
1.Mac OS X 10.9.1
2.Xcod 5.0.2
3.Appium 1.3.6
: HTTPS://BITBUCKET.ORG/APPIUM/APPIUM.APP/DOWNLOADS/APPIUM-1.3.6.DMG
4.adt-bundle-mac-x86_64-20140702
: Http://dl.google.com/android/adt/adt-bundle-mac-x86_64-20140702.zip
5. (optional) node-v0.12.0.pkg
: http://nodejs.org/dist/v0.12.0/node-v0.12.0.pkg
6. (optional) python-3.4.3-macosx10.6.pkg
: https://www.python.org/ftp/python/3.4.3/python-3.4.3-macosx10.6.pkg
7.jdk-8u40-macosx-x64.dmg
: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Two: Code and framework
1.selenium-2.45.0 (official website: http://docs.seleniumhq.org/download/)
: Http://selenium-release.storage.googleapis.com/2.45/selenium-java-2.45.0.zip
2.appium Java Client
: https://search.maven.org/#search%7cga%7c1%7cg%3aio.appium%20a%3ajava-client
3.sample-code-master.zip (inside will use TestApp)
: Https://github.com/appium/sample-code
Three: Commissioning
1. The first step, start Appium, click the Doctor icon will automatically check the Appium dependent environment.
Some of the checks will prompt you to automatically install input ' Y ' to continue, such as: Xcode Command line Tools.
Some will not be prompted to install their own configuration, such as: Environment variables Java_home, Android_home.
Environment variables can be referenced: MAC environment variable configuration, multiple JDK versions under Mac.
2. The second step is to open the Eclipse.app in ADT.
We use Testng,eclipse to install testng-->install New software-->http://beust.com/eclipse.
JDK exceptions can be consulted: unbound classpath container
A. New Java project
B. Select JRE System library:javase-1.7
C, Add External Jars:java-client-2.1.0.jar, Selenium-java-2.45.0.jar, Selenium-java-2.45.0-srcs.jar
D, Add Library:user Library, create the User library with the contents of all the jar files under Selenium-2.45.0\libs.
E, Add library:testng
F, complete the creation of the Java project, add the other-->testng Class, wear pieces suit XML file.
3. The third step is to write the test script in Java.
4. Fourth step, configure Appium
App Path: You can refer to: Xcode to generate the app files, or use sample-code-master.zip inside the TestApp. App file.
Bundle ID: Startup activity similar to Android. such as: Io.appium.TestApp.
Force Device: Yes DeviceName
UDID: The identity of the real machine.
Platform The version number of the Version:ios system.
It will be used when running the real machine:Ideviceinstaller. The installation method is as follows:
A, install homebrew by the This command
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
B, installation Ideviceinstaller run: Brew Install--head Ideviceinstaller
Reference website:
http://testerhome.com/topics/1948
http://testerhome.com/topics/2198
https://github.com/appium/appium/issues/4584
Http://technotesonthego.blogspot.ru/2013/10/install-libimobiledevice-on-mac-os-x.html
Appium for IOS testing on MAC