Skip to content

zhimin/rwebunit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rWebUnit wraps the popular web testing framework WATIR with RSpec Syntax to provide better easy to read automated web test cases. By using iTest/Watir recorder, the rWebUnit test scripts can be recorded in Firefox. iTest2 makes editing/executing test cases with ease. 

Sample rWebUnit Test:

require 'rwebunit'

spec "Locate a Suncorp Branch" do
  include RWebUnit::RSpecHelper

  before(:all) do
    open_browser_with("http://suncorp.com.au/")
  end

  before(:each) do
    goto_page("/locator")
  end

  after(:all) do
    close_browser
  end

  scenario "Find by extended trading hours" do
    checkbox(:id, "OpenExtendedTradingHoursSerivceId").click # using Watir directly
    enter_text("Postcode_Locator__Postcode", "4061") 
    click_button_with_image("search_button.gif")
    page_source.should include("Queen St Mall")  
  end
end


iTest2 Homepage: http://www.itest2.com
  

About

rWebUnit extends Watir (or FireWatir) to help your write maintainable acceptance tests for web applications

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages