iOS simulator or iPhone real device automation steps

shape
shape
shape
shape
shape
shape
shape
shape

iOS simulator automation step by step process

Step1: Install homebrew [package manager for macOS and is used to install software packages]

==================================================================
Link: https://brew.sh/
Command: /usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”

Step2: Install node and npm [Appium dependencies]
===============================================
Commands to check if node and npm are installed:
node -v
npm -v
Command to install node: brew install node [This will install npm as well]
Command to check node installation path: where node or which node

Step3: Install Appium server using NPM (Appium CLI)
===================================================
Command to install Appium: npm install –g appium
Command to check Appium version: appium -v
Command to check Appium installation path: where appium or which Appium

Step4: Install Appium server using Appium Desktop client
=======================================================
Download link: https://appium.io

Step5: Install Xcode
====================
Configure Apple ID in Account preferences
Install from App Store

Step6: Install Xcode command line tools
======================================
Command: xcode-select — install

Step7: Install xcpretty [to make Xcode output reasonable]
======================================================
Command to install xcpretty: gem install xcpretty

Step8: Install Carthage [dependency manager, required for WebDriverAgent]
=======================================================
Command to install Carthage: brew install Carthage

Step9: Install Appium-doctor and check Appium setup
===================================================
Command to install Appium doctor: npm install -g appium-doctor
Command to get help: appium-doctor — h
Command to check setup for iOS: appium-doctor — ios

Step10: Build UIKitCatalog app for simulator
===========================================
Download link: https://github.com/appium/ios-uicatalog
Command to get simulator name: xcodebuild -showsdks
Command to build app for the simulator: xcodebuild -sdk
Command to build UIKitCatalog app for simulator: npm install

Step11:Start session with UIKitCatalog app using Appium Desktop/Appium CLI
========================================================
Command to get UDID: instruments -s devices

if u need more help please contact us at +91- 93 92 91 89 89 or [email protected], www.qaprogrammer.com�

Leave a Reply

Your email address will not be published. Required fields are marked *

Call Now Button