Project

rwebunit

0.0
No commit activity in last 3 years
No release in over 3 years
An wrap of WATIR/FireWatir for functional testing of web applications
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 1.6.2
= 1.1.12
>= 2.0.2
 Project Readme
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