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: www.itest2.com