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

Web Testing

Avatar for Ash Wu Ash Wu
April 17, 2014

Web Testing

Avatar for Ash Wu

Ash Wu

April 17, 2014
Tweet

More Decks by Ash Wu

Other Decks in Programming

Transcript

  1. Remote Testing Server 4 Server host windows VMs 4 VM

    contains Selenium server 4 Connect ports between Macbook & VM using SSH tunnels via Server 4 Run test from Macbook, execute on VM, save screenshot on Macbook.
  2. Capybara Sampe Code describe "the signin process", :type => :feature

    do before :each do User.make(:email => '[email protected]', :password => 'caplin') end it "signs me in" do visit '/sessions/new' within("#session") do fill_in 'Login', :with => '[email protected]' fill_in 'Password', :with => 'password' end click_link 'Sign in' expect(page).to have_content 'Success' end end
  3. Interacting with forms fill_in('First Name', :with => 'John') fill_in('Password', :with

    => 'Seekrit') fill_in('Description', :with => 'Really Long Text...') choose('A Radio Button') check('A Checkbox') uncheck('A Checkbox') attach_file('Image', '/path/to/image.jpg') select('Option', :from => 'Select Box')
  4. SauceLabs Run your web and mobile app tests across hundreds

    of real browsers and platforms instantly. Basically the same thing.