A Installation
- Install DMG, you can download appium-1.4.0.dmg or to find rtx I want, file too large can not add attachments.
- Appium provides a doctor that runs Appium-doctor
- If there is a problem, Fix it when you enter Y, you can automatically guide the installation.
If you test only ios,android_home environment variables, you can not configure them.
You need to configure the following:
Bash_profile file
Mac default is not this file, we build a
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)
source. bash_profile
Okay, run Appium-doctor again.
Reference article: http://www.blogjava.net/qileilove/archive/2014/11/06/419574.html
Two APPIU testing iOS using
- If this is a simulator test
- Select the location of the app installation package, run the emulator app to get the. app file under the products
- Then choose the desired simulator platform, iOS version, then click on Launch.
3. Recording:
Click Inspector, the emulator app can be opened, Appium display emulator interface is OK. Turn on the recording feature,
In the appium to find the elements to be manipulated, then click or enter the contents of the operation, the simulator will have a corresponding
The change is OK!
4. Convert the recorded code into a test code
1) Create a MAVEN project in eclipse
2) Replace the Pom.xml file and wait for the MAVEN download to succeed
3) Create a test class, copy and paste the test code into the test class
B. If the test is a real machine
Phone needs to install debug version of the application and device Udid
The path to the. IPA is required by the app path and is the same as the identity of the installed application
Udid Please use itunes to view the summary information, click the serial number location, will find
Several problems encountered in the real-machine testing process
1.Could not initialize Ideviceinstaller
Workaround: Brew Install--head Ideviceinstaller
2.appium real-machine test problem appears instruments crashed on startup
1) appium Real machine test instruments crashed on startup, the UI must be open on the real machine Automation
In the settings:
Developer->enable UI Automation
Open these few.
2) When testing the real machine, you must make sure that the phone is installed to test version App,debug
3) Make sure iOS is already bundled with the developer certificate, and use Xcode to run the real machine
4) When running the real machine, make sure the instrument is turned off
Reference article: http://www.blogjava.net/qileilove/archive/2014/05/08/413429.html
Appium for Mac installation and test iOS instructions