rwebunit 0.9.4 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,22 +0,0 @@
1
- # the same test used in jWebUnit home page written in rWebUnit
2
- require 'rwebunit'
3
-
4
- class RWebUnitSearchExample < RWebUnit::WebTestCase
5
-
6
- def initialize(name)
7
- super(name)
8
- end
9
-
10
- def setup
11
- getTestContext().setBaseUrl("http://www.google.com")
12
- end
13
-
14
- def test_search()
15
- beginAt("/")
16
- setFormElement("q", "httpunit")
17
- submit("btnG")
18
- clickLinkWithText("HttpUnit Home")
19
- assertTitleEquals("HttpUnit Home")
20
- assertLinkPresentWithText("User's Manual")
21
- end
22
- end
@@ -1,17 +0,0 @@
1
- # a sample watir test check HttpUnit home page
2
- require 'watir'
3
- require 'test/unit'
4
-
5
- class WatirSearchExample < Test::Unit::TestCase
6
-
7
- def test_search
8
- ie = Watir::IE.new
9
- ie.goto("http://www.google.com")
10
- ie.text_field(:name, "q").set("httpunit")
11
- ie.button(:name, "btnG").click
12
- ie.link(:text, "HttpUnit Home").click
13
- assert_equal("HttpUnit Home", ie.document.title)
14
- assert(ie.contains_text("User's Manual"))
15
- end
16
-
17
- end