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.

Scaling Browser Test Automation

663 views

Published on

Slides from my presentation at Boston meetup
http://www.meetup.com/Automated-Testing-Boston/events/136799792/

Published in: Technology, Business
  • Be the first to comment

  • Be the first to like this

Scaling Browser Test Automation

  1. 1. Boston Meetup: Best Practices for Continuous Integration at Scale Scaling Browser Test Automation Framework and Demo Arpit Gupta @arpitgupta
  2. 2. Agenda • Writing sample Automated test case 1. Basic example 2. Intermediate example 3. Slightly advanced example • Actual test suite – Demo – Code Walk through • More examples
  3. 3. Getting Started Using watir-webdriver
  4. 4. Simple Test require 'watir-webdriver’ b=Watir::Browser.new b.goto 'amazon.com’ b.text_field(:id => 'twotabsearchtextbox').set 'test automation’ b.button(:type => 'submit').click b.div(:class => 'topBarCol').h2.span.text "Showing 1 - 16 of 3,411 Results"
  5. 5. Advanced Tests https://github.com/thearpitgupta/Get_Start ed_With_Browser_Automation
  6. 6. Page-objects Layer to store all the details about the elements on the webpage
  7. 7. Test Cases (spec) Page-objects Helper Methods Browser Automation Library Browser elements
  8. 8. Browser Automation library • Opening & closing different browser types – Chrome – Firefox – Safari • File downloading & comparing with csv – Via Firefox profile • • • • • Alert pop ups Database connection Generating Test Data Waiting for a process to complete Support for complex browser elements: chzn dropdown, high charts, tables, etc.
  9. 9. Thank You! Arpit Gupta @arpitgupta

×