Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Appium at Scale

Appium at Scale

Execute functional tests (Appium) blazingly fast leveraging Sauce Labs' Appium enabled cloud platform.

Sebastian Tiedtke

January 08, 2014
Tweet

More Decks by Sebastian Tiedtke

Other Decks in Technology

Transcript

  1. Appium at Scale I believe developers should get immediate feedback

    whenever they run their test suites Sebastian Tiedtke @sourishkrout
  2. Automation with Appium ! Appium is an open source test

    automation framework for use with native and hybrid mobile apps. It drives iOS and Android apps using the WebDriver JSON wire protocol. 

  3. Demo App ! Courtesy of Christophe Coenraets from Adobe !

    https://github.com/ccoenraets/directory-backbone-topcoat
  4. Apache Cordova / PhoneGap ! Apache Cordova is a platform

    for building native mobile applications using HTML, CSS and JavaScript.
  5. What’s a Hybrid App? ! Apache Cordova runs a web

    app hosted within a native app (iOS, Android, etc) and make its UI accessible through a “fullscreen” WebView ! Cordova exposes native platform APIs to the web app using a unified Javascript API 
 +
  6. Native vs Webview Context ! Same protocol to talk to

    native as well as webview parts of mobile apps ! API calls available to switch contexts ! ! ! +
  7. Native vs Webview Context ! it('should confirm table cell element

    is visible', function(done) {! h.driver.elementsByTagName('tableCell', function(err, els) {! // do something with native table cell (iOS) elements! });! });! ! it('should confirm spans are visible', function(done) {! h.driver.elementsByTagName('span', function(err, els) {! // do something with span elements (DOM)! });! });! 
 +
  8. [LIVE DEMO] ! 1. Execute 6 iOS tests locally (exec

    time 2min) 2. Execute 6 iOS + 6 Android tests in Sauce Cloud (exec time ~45 sec) 3. Double tests to 24 (exec time ~50 sec) 4. Double tests to 48 (exec time ~75 sec) 5. … ! Show case execution time will remain flat while number of tests increase exponentially.
  9. Sauce Labs Features ! ! ! ! ! ! !

    Rich Test Dashboard + REST API access Fast Diagnosis Screenshots & Screencasts Various Logs to Aid Debugging Pristine VMs (Security) Secure Temporary Storage for Apps
  10. Summary ! ! http://saucelabs.com/ ! Appium: http://appium.io/ ! Gappium: https://github.com/appium/

    io.appium.gappium.sampleapp ! Apache Cordova: http://cordova.apache.org/ ! Topcoat: http://topcoat.io/ ! @sourishkrout