Appium-ios MAC Environment Structure

Source: Internet
Author: User
Tags install node appium

Appium-ios MAC Environment Structure

Author: Max.bai

Time: 2014/10


1. Build the iOS development environment

1.1 System Requirements

MacOS X 10.7 or higher, 10.9.2 recommended

1.2 Xcode requirements

xcode6.0 (Appium 1.3). xcode5.0 (Appium1.2)

1.3 Apple Developer Tools (iPhone simulator SDK, command line Tools)

Install iOS Sdk,command line tools

2. Node JS Installation

Method 1. Open http://nodejs.org/Install node JS

Method 2. Homebrew Install node. js

Successful Install command line run

Node-v correctly display node JS version number

NPM-V Display NPM version number

3. Appium Installation

1. Check path including/usr/local/bin

$PATH output includes/usr/local/bin

2. Installation

Remember: Do not use sudo npm install-g appium installation

         Cd/usr/local         sudo chown-rf < current user >:staff/usr/local         npm install-g appium         npm Install [email protected ] Version

3. Assume that the installation occurs such as the following error:

NPM err! Fetch failed HTTPS://REGISTRY.NPMJS.ORG/APPIUM/-/APPIUM-0.12.1.TGZ

Change NPM configuration: NPM Config Set registry http://registry.npmjs.org

Ability to use domestic source installation

NPM--registry http://registry.cnpmjs.org install-g appiumnpm--registry https://registry.npm.taobao.org install-g Appium


APPIUM-V display version installed correctly

4. Webdriver Installation

NPM Install WD

5. Appium permission settings

sudo authorize_ios

6. Appium Detection Environment

Node Appium-doctor

7. Appium Open

Open Appium

Appium-a 192.168.9.63-p 4723

If you need to connect to the grid hub, please open the hub yourself, how to open the hub

Link Grid hub requires --nodeconfig /abs/path/to/nodeconfig.json

Other parameter opening parameters such as the following:

Https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/server-args.md


Nodeconfig.json

    {"        capabilities":            [              {                         "browsername": "Safari (or IPhone ...)",                "version": "7.1",                " Maxinstances ": 1,                          " platform ":" Mac ",                " PlatformName ":" IOS ",            " platformversion ":" 7.1 "              }            ],        "Configuration":        {          "cleanupcycle": $,          "timeout": 30000,          "proxy": " Org.openqa.grid.selenium.proxy.DefaultRemoteProxy ",          " url ":" Http://192.168.9.63:4723/wd/hub ",          " Maxsession ": 1,          " port ": 4723,          " host ":" 192.168.9.63 ",          " register ": True,          " registercycle ": 5000,          "Hubport": 4444,          "Hubhost": "192.168.9.60"        }      }  
When the stand-alone opens

After successful, you can view http://192.168.9.63:4723/ through the link.

Show That URL does not map to a valid JSONWP resource

Description Open Success


Link to the grid hub to view on the hub. For example 192.168.9.60:4444/grid/console/

Check to see if the iOS Appium are connected.




Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.

Appium-ios MAC Environment Structure

Related Article

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.