際際滷

際際滷Share a Scribd company logo
iPhone Webdriver in a CI Environment   
           by James Eisenhauer




息 2012 Cambia Health Solutions.
About Me

     James Jim Eisenhauer
     Chief Quality Scientist, Hubbub Health
     o      Breaking the web for 17 years.most of the time on purpose
     o      Over educated and certified
     o      Scuba Diving, Traveling & Beer! (not necessarily in that order)
     o      Tech Oregon QA Forum - Board Member
     o      Agile Testing Open NW Conference  Board Member
     o      Co-Founder Portland Selenium Meetup Group


                                  @jameseisenhauer       www.jameseisenhauer.com



息 2012 Cambia Health Solutions.
Hubbub

      Health challenge platform
      deployed on Heroku          +   iPhone App &
                                      mobile web
                                                     +   Ruby on Rails web application
                                                         & REST based API




息 2012 Cambia Health Solutions.
COMING SOON!

          Hubbub Motion

        Hubbub Motion Kit: Activity Tracker and Base Station

        Players can automatically track their activity
        daily via Hubbub and their phones.
                                                         2. Track   3. Compare
          No data-entry
          No synching
                                           1. Wear
          No charging
          Just moving!




息 2012 Cambia Health Solutions.
Buzzwords Galore!


          A ton of info to cover and could possibly be 5-7 separate future sessions!

           Setting up Selenium Grid/Server
           Installing iWebdriver app on the iPhone Simulator
           Building a Selenium Framework in Ruby
           Setting up Jenkins CI
           Running Selenium Tests when your mobile website changes




息 2012 Cambia Health Solutions
Disclaimer!!


                                 All work done on




                                                    Mileage may vary on other operating systems




息 2012 Cambia Health Solutions
Selenium Grid/Server


   Download here: http://seleniumhq.org/download/

   Good Info here: http://code.google.com/p/selenium/wiki/Grid2

   Start it Up!




      View Grid Console: http://localhost:4444/grid/console




息 2012 Cambia Health Solutions.
iWebdriver


                Buy a Mac
                Install Xcode
                Download the entire Selenium source tree
                Launch Xcode
                Open the iPhone Xcode project found in the Selenium source tree
                Choose build destination  iPhone simulator
                Build App
                Now iWebdriver is installed on your iPhone simulator
                Install on real iPhone?
                Pay $99 for Apple iOS Developer License
                Repeat above & choose your real iPhone as build destination


          All the info is found here: http://code.google.com/p/selenium/wiki/IPhoneDriver


息 2012 Cambia Health Solutions.
iPhoneWebdriverSim

          Find it on my github account:
          https://github.com/jameseisenhauer/iPhoneWebDriverSim




息 2012 Cambia Health Solutions.
iWebdriver-Hooked to the Grid




息 2012 Cambia Health Solutions.
Selenium Framework in Ruby

          Learning Ruby as we go!!! Almost done!!
          Features
          o     Run from rake
          o     Use bundler
          o     Use Page Objects
          o     Run from Jenkins and reported
          o     Parallel running
          o     Each rspec file is a browser session (for authentication)
          o     Default browser - command line different browsers
          o     Mobile run on emulator in CI
          o     Screen shot on errors - shown in Jenkins
          o     Easy change of selenium grid, sauce, etc..
          o     Easy change of it global test URL
          o     Auto retry at least 2x

          See what I have so far at: https://github.com/jameseisenhauer/PDXSeiPhoneDemo
息 2012 Cambia Health Solutions.
Jenkins




          Download here: http://jenkins-ci.org/

          Lots of help here:
          Start/Stop, etc
          https://wiki.jenkins-
          ci.org/display/JENKINS/Thanks+for+using+OSX+Installer




息 2012 Cambia Health Solutions.
Jenkins



                                                                   Most of the time PERMGEN
                                                                   memory configuration needs
                                                                   increased.
                                                                   defaults write
                                                                   /Library/Preferences/org.jenkins
                                                                   -ci permGen 1024M




                                  After install view: http://localhost:8080

息 2012 Cambia Health Solutions.
Continuous Integration




息 2012 Cambia Health Solutions.
Jenkins


                  https://devcenter.heroku.com/articles/deploy-hooks


                 Simple Ruby on Rails Tutorial
                 http://www.jameseisenhauer.com




息 2012 Cambia Health Solutions.
One More Thing!



                                  Sneak Preview Beta




息 2012 Cambia Health Solutions.
Thank You!!!



                                  @jameseisenhauer   www.jameseisenhauer.com




息 2012 Cambia Health Solutions.
Ad

Recommended

THE HOLY MOUNT ATHOS -Efthymios Warlamis
THE HOLY MOUNT ATHOS -Efthymios Warlamis
Themistocles Papadimopoulos
La contabilidad y yoop ..jijijj..
samysteffany
Structuralia ingenier鱈a formaci坦n_I bar坦metro sobre perspectivas de los profe...
Naudii Romero Raigoza
Kasita's presentation
Kasita's presentation
Chande Kasita
Algorytmy. Od podstaw
Algorytmy. Od podstaw
Wydawnictwo Helion
Dia del trabajador
isaacr55
Brochure Metro Champagnat - Pilar
Pix Propiedades
Encamina windows intune cloud
www.encamina.com
Distribuciones deidad y gym
samugarcia
Revista Pro Monte
Joaqu鱈n Luis Navarro
Yi mu projects presentation micky peng
Yi mu projects presentation micky peng
YiMu Exhibition Services Co.,Ltd.
Smart Europe ASENORG
Smart Europe ASENORG
Isabel ST
Tema 7 Marta Rey
carlosrodriguezfernandez
Hall of Fame Wohlen
Jugendarbeit Wohlen
11 Agust鱈N Cuenca
youlivek
Ju On
Ana Laura Caceres
Logan
Vatica Cherler
Gi畛i thi畛u Phao t炭i kh鱈 v quy tr狸nh h畉 thu畛 tu b畉ng t炭i kh鱈
Gi畛i thi畛u Phao t炭i kh鱈 v quy tr狸nh h畉 thu畛 tu b畉ng t炭i kh鱈
H畉 Thu畛 Tu
Ruta FibraOptica Telmex R38 Huauchinango - San Diego
Jaime Villanueva
INTEGRACIN FRREA INTERNA E INTEROCENICA - CORREDOR FERROVIARIO BIOCENICO ...
CADEX SCZ
Cloud Publishing, Content First, HTML Authoring
Haeme Ulrich
A qu鱈mica dos 坦leos essenciais no ensino m辿dio
Francisco Brito Souza
Mecanica automotriz
Chikii Zaza
Selenium basic
Selenium basic
Dasun Eranthika
Selenium
Selenium
David Rajah Selvaraj
Continuous Development with Jenkins - Stephen Connolly at PuppetCamp Dublin '12
Continuous Development with Jenkins - Stephen Connolly at PuppetCamp Dublin '12
Puppet
Selenium Overview - By Adam Carmi
Selenium Overview - By Adam Carmi
Applitools
Android training in Noida
Android training in Noida
SeoClass
Pdx Se Intro To Se
Pdx Se Intro To Se
An Doan
Basics of Selenium IDE,Core, Remote Control
Basics of Selenium IDE,Core, Remote Control
usha kannappan

More Related Content

Viewers also liked (15)

Distribuciones deidad y gym
samugarcia
Revista Pro Monte
Joaqu鱈n Luis Navarro
Yi mu projects presentation micky peng
Yi mu projects presentation micky peng
YiMu Exhibition Services Co.,Ltd.
Smart Europe ASENORG
Smart Europe ASENORG
Isabel ST
Tema 7 Marta Rey
carlosrodriguezfernandez
Hall of Fame Wohlen
Jugendarbeit Wohlen
11 Agust鱈N Cuenca
youlivek
Ju On
Ana Laura Caceres
Logan
Vatica Cherler
Gi畛i thi畛u Phao t炭i kh鱈 v quy tr狸nh h畉 thu畛 tu b畉ng t炭i kh鱈
Gi畛i thi畛u Phao t炭i kh鱈 v quy tr狸nh h畉 thu畛 tu b畉ng t炭i kh鱈
H畉 Thu畛 Tu
Ruta FibraOptica Telmex R38 Huauchinango - San Diego
Jaime Villanueva
INTEGRACIN FRREA INTERNA E INTEROCENICA - CORREDOR FERROVIARIO BIOCENICO ...
CADEX SCZ
Cloud Publishing, Content First, HTML Authoring
Haeme Ulrich
A qu鱈mica dos 坦leos essenciais no ensino m辿dio
Francisco Brito Souza
Mecanica automotriz
Chikii Zaza
Distribuciones deidad y gym
samugarcia
Revista Pro Monte
Joaqu鱈n Luis Navarro
Smart Europe ASENORG
Smart Europe ASENORG
Isabel ST
Tema 7 Marta Rey
carlosrodriguezfernandez
Hall of Fame Wohlen
Jugendarbeit Wohlen
11 Agust鱈N Cuenca
youlivek
Gi畛i thi畛u Phao t炭i kh鱈 v quy tr狸nh h畉 thu畛 tu b畉ng t炭i kh鱈
Gi畛i thi畛u Phao t炭i kh鱈 v quy tr狸nh h畉 thu畛 tu b畉ng t炭i kh鱈
H畉 Thu畛 Tu
Ruta FibraOptica Telmex R38 Huauchinango - San Diego
Jaime Villanueva
INTEGRACIN FRREA INTERNA E INTEROCENICA - CORREDOR FERROVIARIO BIOCENICO ...
CADEX SCZ
Cloud Publishing, Content First, HTML Authoring
Haeme Ulrich
A qu鱈mica dos 坦leos essenciais no ensino m辿dio
Francisco Brito Souza
Mecanica automotriz
Chikii Zaza

Similar to Hubbub health-i phone-test-automation (20)

Selenium basic
Selenium basic
Dasun Eranthika
Selenium
Selenium
David Rajah Selvaraj
Continuous Development with Jenkins - Stephen Connolly at PuppetCamp Dublin '12
Continuous Development with Jenkins - Stephen Connolly at PuppetCamp Dublin '12
Puppet
Selenium Overview - By Adam Carmi
Selenium Overview - By Adam Carmi
Applitools
Android training in Noida
Android training in Noida
SeoClass
Pdx Se Intro To Se
Pdx Se Intro To Se
An Doan
Basics of Selenium IDE,Core, Remote Control
Basics of Selenium IDE,Core, Remote Control
usha kannappan
An Overview of Selenium
An Overview of Selenium
adamcarmi
From Continuous Integration to Continuous Delivery with Jenkins - javaland.de...
From Continuous Integration to Continuous Delivery with Jenkins - javaland.de...
CloudBees
How to Write & Run a Test Case in Selenium | Selenium Tutorial | Selenium Tra...
How to Write & Run a Test Case in Selenium | Selenium Tutorial | Selenium Tra...
Edureka!
Play Framework: Intro & High-Level Overview
Play Framework: Intro & High-Level Overview
Josh Padnick
Mobile developments at eXo
Mobile developments at eXo
Arnaud H辿ritier
Selenium introduction
Selenium introduction
HGanesh
BCS Selenium Workshop
BCS Selenium Workshop
Colin McDonald
Mobile automation using selenium cucumber & appium
Mobile automation using selenium cucumber & appium
Selenium Cucumber
AliExpress Way to Microservices - microXchg 2017
AliExpress Way to Microservices - microXchg 2017
juvenxu
Starting mobile development
Starting mobile development
Mihai Corlan
Presentation on Introduction to Selenium
Presentation on Introduction to Selenium
hafizrizwanumar10
Devops
Devops
Kris Buytaert
selenium-2-mobile-web-testing
selenium-2-mobile-web-testing
hugs
Continuous Development with Jenkins - Stephen Connolly at PuppetCamp Dublin '12
Continuous Development with Jenkins - Stephen Connolly at PuppetCamp Dublin '12
Puppet
Selenium Overview - By Adam Carmi
Selenium Overview - By Adam Carmi
Applitools
Android training in Noida
Android training in Noida
SeoClass
Pdx Se Intro To Se
Pdx Se Intro To Se
An Doan
Basics of Selenium IDE,Core, Remote Control
Basics of Selenium IDE,Core, Remote Control
usha kannappan
An Overview of Selenium
An Overview of Selenium
adamcarmi
From Continuous Integration to Continuous Delivery with Jenkins - javaland.de...
From Continuous Integration to Continuous Delivery with Jenkins - javaland.de...
CloudBees
How to Write & Run a Test Case in Selenium | Selenium Tutorial | Selenium Tra...
How to Write & Run a Test Case in Selenium | Selenium Tutorial | Selenium Tra...
Edureka!
Play Framework: Intro & High-Level Overview
Play Framework: Intro & High-Level Overview
Josh Padnick
Mobile developments at eXo
Mobile developments at eXo
Arnaud H辿ritier
Selenium introduction
Selenium introduction
HGanesh
BCS Selenium Workshop
BCS Selenium Workshop
Colin McDonald
Mobile automation using selenium cucumber & appium
Mobile automation using selenium cucumber & appium
Selenium Cucumber
AliExpress Way to Microservices - microXchg 2017
AliExpress Way to Microservices - microXchg 2017
juvenxu
Starting mobile development
Starting mobile development
Mihai Corlan
Presentation on Introduction to Selenium
Presentation on Introduction to Selenium
hafizrizwanumar10
selenium-2-mobile-web-testing
selenium-2-mobile-web-testing
hugs
Ad

Hubbub health-i phone-test-automation

  • 1. iPhone Webdriver in a CI Environment by James Eisenhauer 息 2012 Cambia Health Solutions.
  • 2. About Me James Jim Eisenhauer Chief Quality Scientist, Hubbub Health o Breaking the web for 17 years.most of the time on purpose o Over educated and certified o Scuba Diving, Traveling & Beer! (not necessarily in that order) o Tech Oregon QA Forum - Board Member o Agile Testing Open NW Conference Board Member o Co-Founder Portland Selenium Meetup Group @jameseisenhauer www.jameseisenhauer.com 息 2012 Cambia Health Solutions.
  • 3. Hubbub Health challenge platform deployed on Heroku + iPhone App & mobile web + Ruby on Rails web application & REST based API 息 2012 Cambia Health Solutions.
  • 4. COMING SOON! Hubbub Motion Hubbub Motion Kit: Activity Tracker and Base Station Players can automatically track their activity daily via Hubbub and their phones. 2. Track 3. Compare No data-entry No synching 1. Wear No charging Just moving! 息 2012 Cambia Health Solutions.
  • 5. Buzzwords Galore! A ton of info to cover and could possibly be 5-7 separate future sessions! Setting up Selenium Grid/Server Installing iWebdriver app on the iPhone Simulator Building a Selenium Framework in Ruby Setting up Jenkins CI Running Selenium Tests when your mobile website changes 息 2012 Cambia Health Solutions
  • 6. Disclaimer!! All work done on Mileage may vary on other operating systems 息 2012 Cambia Health Solutions
  • 7. Selenium Grid/Server Download here: http://seleniumhq.org/download/ Good Info here: http://code.google.com/p/selenium/wiki/Grid2 Start it Up! View Grid Console: http://localhost:4444/grid/console 息 2012 Cambia Health Solutions.
  • 8. iWebdriver Buy a Mac Install Xcode Download the entire Selenium source tree Launch Xcode Open the iPhone Xcode project found in the Selenium source tree Choose build destination iPhone simulator Build App Now iWebdriver is installed on your iPhone simulator Install on real iPhone? Pay $99 for Apple iOS Developer License Repeat above & choose your real iPhone as build destination All the info is found here: http://code.google.com/p/selenium/wiki/IPhoneDriver 息 2012 Cambia Health Solutions.
  • 9. iPhoneWebdriverSim Find it on my github account: https://github.com/jameseisenhauer/iPhoneWebDriverSim 息 2012 Cambia Health Solutions.
  • 10. iWebdriver-Hooked to the Grid 息 2012 Cambia Health Solutions.
  • 11. Selenium Framework in Ruby Learning Ruby as we go!!! Almost done!! Features o Run from rake o Use bundler o Use Page Objects o Run from Jenkins and reported o Parallel running o Each rspec file is a browser session (for authentication) o Default browser - command line different browsers o Mobile run on emulator in CI o Screen shot on errors - shown in Jenkins o Easy change of selenium grid, sauce, etc.. o Easy change of it global test URL o Auto retry at least 2x See what I have so far at: https://github.com/jameseisenhauer/PDXSeiPhoneDemo 息 2012 Cambia Health Solutions.
  • 12. Jenkins Download here: http://jenkins-ci.org/ Lots of help here: Start/Stop, etc https://wiki.jenkins- ci.org/display/JENKINS/Thanks+for+using+OSX+Installer 息 2012 Cambia Health Solutions.
  • 13. Jenkins Most of the time PERMGEN memory configuration needs increased. defaults write /Library/Preferences/org.jenkins -ci permGen 1024M After install view: http://localhost:8080 息 2012 Cambia Health Solutions.
  • 14. Continuous Integration 息 2012 Cambia Health Solutions.
  • 15. Jenkins https://devcenter.heroku.com/articles/deploy-hooks Simple Ruby on Rails Tutorial http://www.jameseisenhauer.com 息 2012 Cambia Health Solutions.
  • 16. One More Thing! Sneak Preview Beta 息 2012 Cambia Health Solutions.
  • 17. Thank You!!! @jameseisenhauer www.jameseisenhauer.com 息 2012 Cambia Health Solutions.