Class: RWebUnit::WebTestCase
- Inherits:
-
Test::Unit::TestCase
- Object
- Test::Unit::TestCase
- RWebUnit::WebTestCase
- Defined in:
- lib/rwebunit/web_testcase.rb
Instance Attribute Summary collapse
-
#web_tester ⇒ Object
readonly
Returns the value of attribute web_tester.
Instance Method Summary collapse
- #default_test ⇒ Object
-
#initialize(name = nil) ⇒ WebTestCase
constructor
A new instance of WebTestCase.
- #open_browser(baseUrl, relativeUrl) ⇒ Object (also: #open_ie)
Methods included from Utils
#days_before, #days_from_now, #random_boolean, #random_char, #random_digit, #random_number, #random_str, #random_string_in, #today, #tomorrow, #yesterday
Methods included from Assert
#assert_button_not_present, #assert_button_not_present_with_text, #assert_button_present, #assert_button_present_with_text, #assert_checkbox_not_selected, #assert_checkbox_selected, #assert_element_not_present, #assert_element_present, #assert_equals, #assert_link_not_present_with_exact, #assert_link_not_present_with_text, #assert_link_present_with_exact, #assert_link_present_with_text, #assert_nil, #assert_not_nil, #assert_option_equals, #assert_option_not_present, #assert_option_present, #assert_option_value_equals, #assert_option_value_not_present, #assert_option_value_present, #assert_radio_option_not_present, #assert_radio_option_not_selected, #assert_radio_option_present, #assert_radio_option_selected, #assert_text_in_element, #assert_text_in_table, #assert_text_not_in_table, #assert_text_not_present, #assert_text_present, #assert_text_present_in_text_field, #assert_title_equals, #fail
Methods included from Driver
#ajax_wait_for_element, #allow, #attach_browser, #begin_at, #click_button_with_image_src_contains, #click_popup_window, #close_browser, #contains_text, #context, #dump_response, #element_text, #expect_page, #failsafe, #goto_page, #ie, #new_popup_window, #on, #operation_delay, #save_current_page, #shall_not_allow, #wait_for_element
Constructor Details
#initialize(name = nil) ⇒ WebTestCase
Returns a new instance of WebTestCase.
19 20 21 22 |
# File 'lib/rwebunit/web_testcase.rb', line 19 def initialize(name=nil) super(name) if name @web_tester = WebTester.new end |
Instance Attribute Details
#web_tester ⇒ Object (readonly)
Returns the value of attribute web_tester.
17 18 19 |
# File 'lib/rwebunit/web_testcase.rb', line 17 def web_tester @web_tester end |
Instance Method Details
#default_test ⇒ Object
24 25 26 |
# File 'lib/rwebunit/web_testcase.rb', line 24 def default_test super unless (self.class == WebTestCase) end |
#open_browser(baseUrl, relativeUrl) ⇒ Object Also known as: open_ie
28 29 30 31 |
# File 'lib/rwebunit/web_testcase.rb', line 28 def open_browser(baseUrl, relativeUrl) context.base_url = baseUrl begin_at(relativeUrl) end |