Appium for Mac installation and test iOS instructions

Source: Internet
Author: User
Tags appium

A Installation

    1. Install DMG, you can download appium-1.4.0.dmg or to find rtx I want, file too large can not add attachments.
    2. Appium provides a doctor that runs Appium-doctor

    1. 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

    1. If this is a simulator test
    2. Select the location of the app installation package, run the emulator app to get the. app file under the products
    3. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.