3. Framework for Automating Browsers for
testing
Uses actual Browsers, ergo functions like
a real user (mostly)
Can run locally or remotely
•
•
•
Selenium
4. Appium is a Selenium
Server for iOS
Native app controls are kinda web
controls
Find things, click them, assert on content
Run your tests under automation
•
•
•
9. Example - Find, Values
require 'selenium-webdriver'
include Selenium::WebDriver::DriverExtensions::HasInputDevices
include Selenium::WebDriver::DriverExtensions::HasTouchScreen
rows = driver.find_elements(:tag_name, "tableCell")
rows[0].attribute(:name).should eq "Buttons, Various uses of
UIButton"
third_row = driver.find_elements(:tag_name, "tableCell")[2]
third_row.location.y.should be 152
10. Example - Interaction
@driver.find_elements(:tag_name, "tableCell")[9].click
@switch = @driver.find_element(:tag_name, "switch")
@switch.displayed?.should be_true
@switch.attribute("value").should be 0
@switch.click
@switch.attribute("value").should be 1
@text_field = @driver.find_element(:tag_name, "textField")
@text_field.send_keys("discombobulate")
@text_field.attribute("value").should eq "discombobulate"
15. Thanks for Listening;
Have free sh... stuff
Appium Site: Appium.io
Free Sauce Labs minutes: RailsConf13
PSST: Totally free for FOSS projects
Hit me up with Questions: @dylanlacey
or dylan@saucelabs.com
•
•
•
•