Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

iOS Automation with Cucumber, Appium and Saucelabs

3,879 views

Published on

This is demo of the using Appium for the iOS automation with Cucumber and Saucelabs

Published in: Technology, Self Improvement
  • Be the first to comment

iOS Automation with Cucumber, Appium and Saucelabs

  1. 1. iOS Automation with Cucumber, Appium and Saucelabs Shashikant Jagtap Twitter:@Shashikant86 Blogs: http://shashikantjagtap.net
  2. 2. Topics ● Appium Introduction ● Installation & Setup ● Running Appium ● Setting up Mobile App for Appium ● Appium Inspector ● Demo:Cucumber+Appium+Saucelabs
  3. 3. Appium ● Open Source test automation Framework ● Hybrid and Native Apps ● Uses WebDriver JSON Protocol
  4. 4. iOS Requirements ● Mac OSX 10.7 + ● Xcode 4.5 + Command Line Tools ● HomeBrew ● NodeJS and npm ● Ruby, RVM and Git
  5. 5. Installing Appium ● NodeJS $ brew install node $ npm install -g appium $ npm install wd ● Appium App Download Appium App http://appium.io/
  6. 6. Running Appium Server ● Start Appium $ ./node_modules/.bin/appium ● Authorize_iOS $./node_modules/.bin/authorize _ios ● OR Strart Appium with App
  7. 7. Setting Mobile App for Appium ● Locally $ cd your_awesome_app $ xcodebuild -sdk iphonesimulator6.0 ● APP_PATH $ cd build/Release- iphonesimulator/
  8. 8. Setup APP for Saucelabs ● Setup $ xcodebuild -sdk iphonesimulator6.0 TARGETED_DEVICE_FAMILY=1 ● Zip Your APP $ zip -r APP.zip /build/Release- iphonesimulator/APP.app ● Upload with Sauce REST
  9. 9. Upload Zip on Saucelabs ● REST API $ curl -u USERNAME:API_KEY -X POST "http://saucelabs.com/rest/v1/stora ge/Shashikant86/PlainNote.zip? overwrite=true" -H "Content-Type: application/octet-stream" --data- binary @/path/to//build/Release- iphonesimulator/APP.zip
  10. 10. Using Appium Inspector ● Record and Playback Scripts of iOS ● Choose Language ● Inspects Elements ● Perform Actions [tap, Swipe, shake] ● Use source code in step_definition
  11. 11. Live Demo Time $ git clone https://github.com/Shashikant86/ cucumber-appium $ cd cucumber-appium $ rvm use 1.9.3 $ bundle install $ bundle exec cucumber features/plain_note.feature
  12. 12. Live Demo Blogs ● Source Code: Shashikant86/cucumber-appium http://tinyurl.com/pvap9ge ● MY Demo blog Saucelabs http://tinyurl.com/nr4onfe ● Demo [Personal blog] http://tinyurl.com/pd2ksxx
  13. 13. YouTube Videos ● Using Appium Inspector http://www.youtube.com/watch?v=Hv9A9 ● Cucumber-Appium Locally http://www.youtube.com/watch?v=uor32 ● Cucumber-appium-saucelabs http://www.youtube.com/watch?v=zCXMu
  14. 14. THANK YOU New Appium 1.0 Comming Today !!

×