rwebunit 0.9.4 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,168 +1,228 @@
1
- CHANGELOG
2
- =========
3
-
4
- == 0.9.4
5
- - change test_context => context, avoid confusing Ruby test
6
- - refactored driver.rb
7
-
8
- == 0.9.3
9
- - add method failsafe {}
10
-
11
- == 0.9.2
12
- - sleep 0.5 seconds after clicking popup window
13
- - save current page
14
- - (0.9.1.1) support rspec 1.1.4: at exit hook
15
-
16
- == 0.9.1 (2008-05-26)
17
- - support storing page source during execution
18
-
19
- == 0.9 (2008-05-21)
20
- - support new syntax
21
- spec "" do
22
- scenario "1" do
23
- end
24
-
25
- story "2" do
26
- end
27
- end
28
-
29
- == 0.8.9
30
- - support Watir 1.5.4 zippy mode, set it as default
31
-
32
- == 0.8.8
33
- - support iTest hiding browse option
34
-
35
- == 0.8.7
36
- - support delay between operations (must be click_... type operation) for iTest2
37
-
38
- == 0.8.6
39
- - Add dependency on activesupport 2.0.x, xml_simple to support 1.days.ago
40
- - RSpec Helper, overwrite rspec patch
41
-
42
- == 0.8.5
43
- - click button with image
44
- - better handling new pop up window
45
- - fixes links_with_text
46
-
47
- == 0.8.4
48
- - better support for iTest
49
- - for firefox support, don't do slow typing, just set text in textfield
50
-
51
- == 0.8.2
52
- - fixed assert_link_not_present has .Text
53
-
54
- == 0.8.1
55
- - fixed attach_browser issue
56
-
57
- == 0.8 (2008-01-18)
58
- - change click_link to click_link_with_text, to for id click, use click_link_with_id
59
- - change click_button to click_button_with_text, to for id click, use click_button_with_id
60
-
61
- == 0.7.2 (2007-12-31)
62
- - Change dependency from Watir => Watir or FireWatir
63
- Now can run on Mac or Linux
64
- - Fixes: shall_not_allow syntax error
65
-
66
- == 0.7.1 (2007-12-24)
67
- - Fixes error when firefox is not available
68
-
69
- == 0.7 (2007-12-18)
70
- - support Firefox using FireWatir
71
-
72
- == 0.6.9
73
- - add shall_not_allow
74
- - more watir wrapper methods
75
-
76
- == 0.6.4 (2007-11-30)
77
- - updated rwebunit 0.6.4
78
- - support javascript window
79
- - support watir td, tr...
80
-
81
- == 0.6.0 (2007-11-18)
82
- - support watir convenient methods
83
-
84
- == 0.5.4 (2007-11-12)
85
- - fixed element_by_id
86
-
87
- == 0.5.3 (2007-11-07)
88
- - fixed ajax_wait_element with web_tester changes
89
- - added wait_for_element
90
-
91
- == 0.5.2 (2007-09-27)
92
- - added element_text
93
-
94
- == 0.5.1 (2007-09-21)
95
- - add wrap of Watir methods, such as buttons, button(...)
96
- - expose Watir low level methods to test/spec through Driver.rb
97
- - removed old way using array and comparision to access individual control
98
- - renamed html_title to page_title
99
- - add method contains_text
100
- - make faster checkbox operations
101
- - make faster radio operations
102
- - added radio operation in driver.rb
103
- - renamed ajax_wait_for_element
104
- - added some comments
105
-
106
- == 0.5.0
107
- - Support Watir 1.5.2
108
-
109
- == 0.4.5
110
- - support checkboxes with same name
111
-
112
- == 0.4.2
113
-
114
- New Features
115
- - Drop support for java syntax methods
116
- - remove assert helper methods in web_tester
117
- - improve support for RSpecs
118
-
119
- == 0.4.0 (2007-05-29)
120
-
121
- New features
122
- - Support RSpec
123
-
124
- == 0.3.1 (2007-04-18)
125
-
126
- Bug fix reelase
127
-
128
- == 0.3.0 (2007-02-16)
129
-
130
- New features
131
- - Deprecated Java like method name, use ruby naming convention instead, beginAt => begin_at
132
- - More ajax related calls: ajax_wait_for_element_show, ajax_wait_for_element_hide, assert_position_in_list
133
-
134
- == 0.2.0 (2006-11-28)
135
-
136
- New features:
137
- - wait_ajax_udpate(elem_id, seconds) - use indicator image id to determine whether the ajax request is completed or not
138
- - browser_opened?
139
-
140
- A number of general fixes and code improvements.
141
-
142
- == 0.1.1
143
-
144
- New jWebUnit API methods implemented:
145
- assertOptionEquals(selectName, optionLabel)
146
- assertOptionValueEquals(selectName, optionValue)
147
- assertCheckboxNotSelected(checkBoxName)
148
- assertCheckboxSelected(checkBoxName)
149
- assertLinkPresentWithExactText(linkText)
150
- assertLinkNotPresentWithExactText(linkText)
151
- assertRadioOptionNotPresent(radioGroup, radioOption)
152
- assertRadioOptionPresent(radioGroup, radioOption)
153
- assertRadioOptionSelected(radioGroup, radioOption)
154
- assertRadioOptionNotSelected(radioGroup, radioOption)
155
- assertTextInTable(tableId, text)
156
- assertTextNotInTable(tableId, text)
157
-
158
- API methods modified:
159
- assertLinkPresentWithText(linkText):
160
- assertLinkNotPresentWithText(linkText):
161
-
162
- New rWebUnit API :
163
- clickRadioOption(radioGroup, radioOption): this method is protected in jWebUnit
164
-
165
- == 0.1.0
166
-
167
- * Initial release.
168
- * Most common web actions and assertions implemented.
1
+ CHANGELOG
2
+ =========
3
+ 1.0.3
4
+ -- add method: dubugging?
5
+ -- add utils method: this_dir, this_file
6
+
7
+ 1.0.2
8
+ - add more unit tests
9
+ Fixes cell_with_id
10
+
11
+ 1.0.1
12
+ [Enhancement] Normalize windows file path before setting upload
13
+
14
+ 1.0 (2008-11-25)
15
+
16
+ TODO:
17
+ Firefox: check the element is hidden or showing,
18
+ Checkfor driver.rb: ajax_call_complete_after_element_hidden
19
+ does not support outerHtml yet
20
+ Firefox: attach browser,
21
+ Unfortundately, Firewatir does not support attaching current window
22
+ Firefox Workaround: element_by_id
23
+
24
+ 0.10.3
25
+ - added label_with_id, span_with_id, cell_with_id
26
+ - better fixes for enabled_popup
27
+
28
+ 0.10.1 (2008-11-08)
29
+ - Upgrade to support Firewatir 1.6.2
30
+ - Work around Firefox reuse one window browser issue
31
+ - Exclude watir/contrib/enabled_popup, user can add themselves
32
+
33
+ 0.9.10 (2008-10-28)
34
+ [Feature] Better support reuse IE window for testing
35
+
36
+ 0.9.9.1
37
+ [Feature] Support pausing in iTest2
38
+
39
+ == 0.9.9
40
+ [Fixes] add "area" method for running tests against Firefox
41
+ [Enhancement] Pass browser type and base_utl when calling attach_browser
42
+
43
+ == 0.9.8
44
+ [New] 'assert_title' to check page title
45
+ [Fixes] Not same two same messages to iTest in a row
46
+
47
+ == 0.9.7
48
+ [TODO] support should.contains?(JAMEs)
49
+ [WORKING] maybe yield to suport
50
+ - add prepare_to_click_button_in_popup() in driver.rb
51
+ - refactor web_tester.rb to use dynamicly create test cases
52
+ - rename web_tester.rb to web_browser.rb
53
+ - add alias visit (goto_page)
54
+ - WebBrowser.attach_browser return rWebUnit WebBrowser instance instead of Watir or Firefox
55
+ - expect_page(Class, argument) added to support one more additional argument
56
+
57
+ == 0.9.6
58
+ - using global variable instead of environment variable passing between rwebunit and iTest
59
+ - add debug()
60
+
61
+ == 0.9.5
62
+ - Add support for iTest to trace execution
63
+
64
+ == 0.9.4 (2008-08-20)
65
+ - change test_context => context, avoid confusing Ruby test
66
+ - refactored driver.rb
67
+
68
+ == 0.9.3
69
+ - add method failsafe {}
70
+
71
+ == 0.9.2
72
+ - sleep 0.5 seconds after clicking popup window
73
+ - save current page
74
+ - (0.9.1.1) support rspec 1.1.4: at exit hook
75
+
76
+ == 0.9.1 (2008-05-26)
77
+ - support storing page source during execution
78
+
79
+ == 0.9 (2008-05-21)
80
+ - support new syntax
81
+ spec "" do
82
+ scenario "1" do
83
+ end
84
+
85
+ story "2" do
86
+ end
87
+ end
88
+
89
+ == 0.8.9
90
+ - support Watir 1.5.4 zippy mode, set it as default
91
+
92
+ == 0.8.8
93
+ - support iTest hiding browse option
94
+
95
+ == 0.8.7
96
+ - support delay between operations (must be click_... type operation) for iTest2
97
+
98
+ == 0.8.6
99
+ - Add dependency on activesupport 2.0.x, xml_simple to support 1.days.ago
100
+ - RSpec Helper, overwrite rspec patch
101
+
102
+ == 0.8.5
103
+ - click button with image
104
+ - better handling new pop up window
105
+ - fixes links_with_text
106
+
107
+ == 0.8.4
108
+ - better support for iTest
109
+ - for firefox support, don't do slow typing, just set text in textfield
110
+
111
+ == 0.8.2
112
+ - fixed assert_link_not_present has .Text
113
+
114
+ == 0.8.1
115
+ - fixed attach_browser issue
116
+
117
+ == 0.8 (2008-01-18)
118
+ - change click_link to click_link_with_text, to for id click, use click_link_with_id
119
+ - change click_button to click_button_with_text, to for id click, use click_button_with_id
120
+
121
+ == 0.7.2 (2007-12-31)
122
+ - Change dependency from Watir => Watir or FireWatir
123
+ Now can run on Mac or Linux
124
+ - Fixes: shall_not_allow syntax error
125
+
126
+ == 0.7.1 (2007-12-24)
127
+ - Fixes error when firefox is not available
128
+
129
+ == 0.7 (2007-12-18)
130
+ - support Firefox using FireWatir
131
+
132
+ == 0.6.9
133
+ - add shall_not_allow
134
+ - more watir wrapper methods
135
+
136
+ == 0.6.4 (2007-11-30)
137
+ - updated rwebunit 0.6.4
138
+ - support javascript window
139
+ - support watir td, tr...
140
+
141
+ == 0.6.0 (2007-11-18)
142
+ - support watir convenient methods
143
+
144
+ == 0.5.4 (2007-11-12)
145
+ - fixed element_by_id
146
+
147
+ == 0.5.3 (2007-11-07)
148
+ - fixed ajax_wait_element with web_tester changes
149
+ - added wait_for_element
150
+
151
+ == 0.5.2 (2007-09-27)
152
+ - added element_text
153
+
154
+ == 0.5.1 (2007-09-21)
155
+ - add wrap of Watir methods, such as buttons, button(...)
156
+ - expose Watir low level methods to test/spec through Driver.rb
157
+ - removed old way using array and comparision to access individual control
158
+ - renamed html_title to page_title
159
+ - add method contains_text
160
+ - make faster checkbox operations
161
+ - make faster radio operations
162
+ - added radio operation in driver.rb
163
+ - renamed ajax_wait_for_element
164
+ - added some comments
165
+
166
+ == 0.5.0
167
+ - Support Watir 1.5.2
168
+
169
+ == 0.4.5
170
+ - support checkboxes with same name
171
+
172
+ == 0.4.2
173
+
174
+ New Features
175
+ - Drop support for java syntax methods
176
+ - remove assert helper methods in web_tester
177
+ - improve support for RSpecs
178
+
179
+ == 0.4.0 (2007-05-29)
180
+
181
+ New features
182
+ - Support RSpec
183
+
184
+ == 0.3.1 (2007-04-18)
185
+
186
+ Bug fix reelase
187
+
188
+ == 0.3.0 (2007-02-16)
189
+
190
+ New features
191
+ - Deprecated Java like method name, use ruby naming convention instead, beginAt => begin_at
192
+ - More ajax related calls: ajax_wait_for_element_show, ajax_wait_for_element_hide, assert_position_in_list
193
+
194
+ == 0.2.0 (2006-11-28)
195
+
196
+ New features:
197
+ - wait_ajax_udpate(elem_id, seconds) - use indicator image id to determine whether the ajax request is completed or not
198
+ - browser_opened?
199
+
200
+ A number of general fixes and code improvements.
201
+
202
+ == 0.1.1
203
+
204
+ New jWebUnit API methods implemented:
205
+ assertOptionEquals(selectName, optionLabel)
206
+ assertOptionValueEquals(selectName, optionValue)
207
+ assertCheckboxNotSelected(checkBoxName)
208
+ assertCheckboxSelected(checkBoxName)
209
+ assertLinkPresentWithExactText(linkText)
210
+ assertLinkNotPresentWithExactText(linkText)
211
+ assertRadioOptionNotPresent(radioGroup, radioOption)
212
+ assertRadioOptionPresent(radioGroup, radioOption)
213
+ assertRadioOptionSelected(radioGroup, radioOption)
214
+ assertRadioOptionNotSelected(radioGroup, radioOption)
215
+ assertTextInTable(tableId, text)
216
+ assertTextNotInTable(tableId, text)
217
+
218
+ API methods modified:
219
+ assertLinkPresentWithText(linkText):
220
+ assertLinkNotPresentWithText(linkText):
221
+
222
+ New rWebUnit API :
223
+ clickRadioOption(radioGroup, radioOption): this method is protected in jWebUnit
224
+
225
+ == 0.1.0
226
+
227
+ * Initial release.
228
+ * Most common web actions and assertions implemented.
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2006 Zhimin Zhan, zhimin@zhimin.com
1
+ Copyright (c) 2006-2008 Zhimin Zhan, zhimin@zhimin.com
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README CHANGED
@@ -1,30 +1,33 @@
1
- rWebUnit is a ruby version of thoughtwork's open source jWebUnit, which 'facilitates creation of
2
- acceptance tests for web applications'.
3
-
4
- rWebUnit wraps the popular web testing framework: WATIR (jWebUnit depends on HttpUnit).
5
- Because underlying technologies are different (HttpUnit simulates a browser, Watir drives IE), rWebUnit does
6
- not support full jWebUnit API.
7
-
8
- For example,
9
- jWebUnit: checkCheckBox("name", "new_value") can set new value for a checkbox, but rWebUnit/Watir can't.
10
- On the other hand, HttpUnit has limited support of Javascript, You don't need to worry about it in Watir.
11
-
12
- Here are reasons you might want to try rWebUnit instead of using Watir directly.
13
-
14
- * already familar with jWebUnit framework (arguably, more readable tests)
15
- * want to use WebTest - Page framework to design your tests (look at sample\kongming_webtest.rb)
16
- * want to use a high level of API beyond specific framework: WATIR
17
- * utilize common test methods included in rWebUnit (like getToday ...)
18
-
19
- TODO:
20
- ====
21
- * file upload (waiting for Watir 2.0?)
22
- * script to convert jWebUnit -> rWebUnit, and vice versa.
23
-
24
- FAQ:
25
- ===
26
- 1. How can I run rWebUnit tests without showing IE window?
27
-
28
- A: This is really a WATIR question. Append '-b' option your command.
29
- Example: ruby hide_webtest.rb -b
1
+
2
+ 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.
3
+
4
+ Sample rWebUnit Test:
5
+
6
+ require 'rwebunit'
7
+
8
+ spec "Locate a Suncorp Branch" do
9
+ include RWebUnit::RSpecHelper
10
+
11
+ before(:all) do
12
+ open_browser_with("http://suncorp.com.au/")
13
+ end
14
+
15
+ before(:each) do
16
+ goto_page("/locator")
17
+ end
18
+
19
+ after(:all) do
20
+ close_browser
21
+ end
22
+
23
+ scenario "Find by extended trading hours" do
24
+ checkbox(:id, "OpenExtendedTradingHoursSerivceId").click # using Watir directly
25
+ enter_text("Postcode_Locator__Postcode", "4061")
26
+ click_button_with_image("search_button.gif")
27
+ page_source.should include("Queen St Mall")
28
+ end
29
+ end
30
+
31
+
32
+ iTest2 Homepage: http://www.itest2.com
30
33