Boston Meetup: Best Practices for Continuous
Integration at Scale

Scaling Browser Test Automation
Framework and Demo

Arp...
Agenda
• Writing sample Automated test case
1. Basic example
2. Intermediate example
3. Slightly advanced example

• Actua...
Getting Started
Using watir-webdriver
Simple Test
require 'watir-webdriver’
b=Watir::Browser.new
b.goto 'amazon.com’
b.text_field(:id => 'twotabsearchtextbox')....
Advanced Tests
https://github.com/thearpitgupta/Get_Start
ed_With_Browser_Automation
Page-objects
Layer to store all the details about
the elements on the webpage
Test Cases (spec)

Page-objects
Helper Methods
Browser Automation
Library

Browser elements
Browser Automation library
• Opening & closing different browser types
– Chrome
– Firefox
– Safari

• File downloading & c...
Thank You!

Arpit Gupta

@arpitgupta
Upcoming SlideShare
Loading in …5
×

Scaling Browser Test Automation

395
-1

Published on

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

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
395
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

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
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×