Project

rwebspec

0.01
No commit activity in last 3 years
No release in over 3 years
Executable functional specification for web applications in RSpec syntax with Watir or Selenium WebDriver
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme
RWebSpec wraps the popular web testing framework WATIR with RSpec Syntax to provide better easy to read automated web test cases. By using TestWise/Watir recorder, the RWebSpec test scripts can be recorded in Firefox. TestWise, The Next-Generation Functional Testing IDE,  makes editing/executing test cases with ease. 

Sample RWebSpec Test:

load File.dirname(__FILE__) + '/test_helper.rb'

specification "User Profile" do
  include TestHelper

  before(:all) do
    open_browser(:base_url => "http://demo.adminwise.com")
    reset_database
  end

  after(:all) do
    fail_safe { logout }
  end

  story "[8] User can change password" do
    login_as("bob", "password")
    click_link("Profile")
    click_link("Change password")
    
    password_change_page = expect_page PasswordChangePage
    password_change_page.enter_current("password")
    password_change_page.enter_new("newpass")
    password_change_page.enter_confirm("newpass")
    password_change_page.click_button("Change")
    
    logout
    login_as("bob", "newpass")
    assert_link_present_with_text("Profile") # login Ok
  end

end



TestWise Homepage: http://www.testwisely.com/en/testwise