My study notes for appium
Since we are using appium python, we need to install pip
sudo easy_install pip
Install from PyPi, as 'Appium-Python-Client'.
sudo chown -R `whoami` /Library/Python/2.7/
pip install Appium-Python-Client
Install xcode command line tool
- open xcode
- click on xcode on the top left corner navigation bar->Open Developer Tool -> More Developer Tool
- Find correct commend-line tool
- download and install
Install brew
ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
Install Ideviceinstaller
brew install ideviceinstaller
I like to open two terminal, 1 for Appium, and 1 for running appium
/Users/chenchenzheng/github/appium/python-client
user commandline like this under your app directory
xcodebuild -workspace whistler.xcworkspace -scheme whistler -configuration Debug -sdk iphonesimulator9.1
This is device configuration file, you need to choose the correct device. In my example, I'm using a actual device. You can find more definition here: http://appium.io/slate/en/master/?python#appium-server-capabilities
def get_desired_capabilities(app):
desired_caps = {
'deviceName': 'iPhone 6s',
'platformName': 'iOS',
'platformVersion': '9.1',
'udid': 'bc41d7bbe35223441656630117358998015b5c8f',
# 'app' : '/Users/chenchenzheng/Desktop/whistler.ipa',
'app': PATH('../../apps/' + app),
'bundleId':'com.ar-devices.whistler'
}
return desired_caps
- verify walkthrough
- verify facebook login
- verify digits login
- verify if there are five tabs
- verify logout will bring app to walkthrough
- Read more information here: https://github.com/appium/python-client
- if encounter error: Brew doctor says: “Warning: /usr/local/include isn't writable.”
- user this:
sudo chown -R `whoami` /usr/local/
- user this: