Mobile IOS Automation Part 1 - Appium Configuration with MAC

In recent days I got the chance to work on a Mobile Automation assignment. I got enough time for hands-on. I didn't have much experience on mobile automation before. I thought of sharing installation steps for Appium on MAC. I pen down all the configuration details and sharing below, so others could take help from it:                                                                                                                                                                                                                         MAC Configuration with Appium
List of downloads:-1.        Download Appium version 1.XX (.dmg) file      from https://bitbucket.org/appium/appium.app/downloads/2.        Download Appium-master from https://github.com/appium/appium/3.        Download latest android sdk.4.        Install latest Xcode5.        Update Android sdk witha)        Latest API levelb)        Android SDK Build tools, SDK tools and SDK platform-tools from toolsc)        Google USB driver and Google Web-driver from extras.6.        Download safari-launcher from https://github.com/budhash/SafariLauncher for mobile web testing in iPhone.
Environment variables : -1.    Open terminal2.    vi .bash_profile 3.    press 'i' and  enter these export commandsa)              export ANDROID_HOME=android sdk pathb)              export PATH=$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$PATHc)              press Esc key.4.    ‘Shift’ + ’:’5.    wq > enter6.    re open terminal.Installing IOS_Web_PROXY1.      open terminal and enter these commands > ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"> brew update> brew install ios-webkit-debug-proxyInstalling safari-launcher in iPhonel  Require Apple account linked with developer programl  Add device to developer programl  Launch the Safari-launcher.app on connected device from Xcode.Pre-Script Steps In terminal·         ios_webkit_debug_proxy·         cd
·         ./bin/ios-webkit-debug-proxy-launcher.js -c:27753
Configuring Appium from its source codel  npm install appium@1.4.16l  Run this bin/appium-doctor.js from installed appium folder
l  Copy .git folder from cloned appium (git clone https://github.com/appium/appium.git)l  Navigate to appium folder and execute ./reset.sh)
l  Provide path of installed appium source code in “Use External Appium Package” in appium UI under Developer setting.
l  Troubleshooting
n  If error related to ideviceintaller :- Execute brew install --HEAD ideviceinstaller 
n  If error related to provisional profile :- Execute ./reset.sh --ios --ios-safari after navigating to installed appium folder.


Feel free to ask queries or share your thoughts in comments or email me. Happy Coding :)Blog Author: Vaneesh BehlJoin Telegram channel of this blog at https://t.me/techlisticspacex
x
 













                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      



Comments

Post a Comment

Popular Posts

Top 10 Demo Websites to Practice Selenium Webdriver Online

Top 25 Must to know Selenium Webdriver Commands List

Selenium WebDriver - Browser and Navigation Commands

Assignment 6: Automate "User Registration" Process for E-commerce Website using Selenium

Selenium IDE - Sample Script With Most Commonly Used Commands