awetestlib 0.1.29pre1 → 0.1.29pre3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ data.tar.gz: 476d8eecbcafdda5b5bcceeb3a51d4bb1d285cf8
4
+ metadata.gz: 0b9261e53c23130e5d77c9ab2ddbcbfa530df0de
5
+ SHA512:
6
+ data.tar.gz: 9e762b714d2352f6136bcdeb64f89b9a936df0a865a0085c5eadafada39dce0b64845e9c83c793705302b93413b864275b36b01ce0a3aaaa2be2091ff8fa3f6b
7
+ metadata.gz: 9ca38a6a21bc8b6efeb3acfcafb9335a198bc7bf985d8a4ad8e106f56208c558224a25e0cae52f3f8d2dfa3623136649726994f98df3a9113bfee53c95c513f2
data/README.md CHANGED
@@ -5,6 +5,8 @@ Run automated regression and mobile tests
5
5
 
6
6
  After completing this guide you will be able to run tests locally from command line or from an IDE
7
7
 
8
+ v0.1.29pre3 fixes an issue with running scripts against Safari on OSX
9
+
8
10
  ------------
9
11
 
10
12
  ## Prerequisites
@@ -44,7 +46,12 @@ Run the following command to see the different usages
44
46
 
45
47
  ### Setup Safari (Mac OS X only)
46
48
 
47
- To setup support for Safari browser, please follow the instructions at [SafariDriver](http://code.google.com/p/selenium/wiki/SafariDriver)
49
+ To setup support for Safari browser, please follow the instructions at [SafariDriver](http://code.google.com/p/selenium/wiki/SafariDriver)
50
+
51
+ It is important to start a selenium-server-standalone process in a terminal session before running Safari scripts.
52
+ When using raw Watir-webdriver for Safari, open the browser with
53
+
54
+ browser = Watir::Browser.new(:remote, :desired_capabilities=>:'safari')
48
55
 
49
56
  ### Setup Chrome
50
57
  To setup support for Google Chrome browser, please download the latest Chromedriver version from [here](http://code.google.com/p/chromedriver/downloads/list)
@@ -40,6 +40,7 @@ module Awetestlib
40
40
 
41
41
  # Open a browser based on the command line parameters that identify the browser and
42
42
  # version to use for the test.
43
+ # @note Safari currently supported only on Mac OS X
43
44
  # @example
44
45
  # browser = open_browser('www.google.com')
45
46
  # @param [String, Regexp] url When provided, the browser will go to this url.
@@ -53,10 +54,13 @@ module Awetestlib
53
54
  @myHwnd = @myBrowser.hwnd
54
55
  end
55
56
  when 'FF'
56
- @myBrowser = open_ff_for_version
57
+ @myBrowser = open_ff
57
58
  when 'S'
58
- aBrowser = Watir::Browser.new :safari
59
- @myBrowser = aBrowser
59
+ if USING_OSX
60
+ @myBrowser = open_safari
61
+ else
62
+ raise "Safari is not supported under this operating system #{RUBY_PLATFORM}"
63
+ end
60
64
  when 'C', 'GC'
61
65
  @myBrowser = open_chrome
62
66
  else
@@ -82,18 +86,16 @@ module Awetestlib
82
86
  browser
83
87
  end
84
88
 
85
- # Open FF (Firefox) browser instance.
86
- # @param [Fixnum] version A number designating the version of the browser to be opened.
87
- # @return [Watir::Browser, Firewatir::Browser]
88
- # Returns Firewatir::Browser if target browser is Firefox version less than 4.0
89
- def open_ff_for_version(version = @targetVersion)
90
- browser = Watir::Browser.new :firefox
89
+ # Open Safari browser instance.
90
+ # @note Safari currently supported only on Mac OS X
91
+ # @return [Watir::Browser]
92
+ def open_safari
93
+ browser = Watir::Browser.new(:remote, :desired_capabilities=>:'safari')
91
94
  end
92
95
 
93
96
  # Open FF (Firefox) browser instance under FireWatir.
94
- # @return [Firewatir::Browser]
97
+ # @return [Watir::Browser]
95
98
  def open_ff
96
- # Watir::Browser.default = 'firefox'
97
99
  browser = Watir::Browser.new :firefox
98
100
  end
99
101
 
data/lib/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Awetestlib
2
- VERSION = "0.1.29pre1"
3
- VERSION_DATE = "2013-03-21"
2
+ VERSION = "0.1.29pre3"
3
+ VERSION_DATE = "2013-03-26"
4
4
  end
data/test/demo_wwd.rb ADDED
@@ -0,0 +1,7 @@
1
+ require 'rubygems'
2
+ require 'watir-webdriver'
3
+
4
+ b=Watir::Browser.new(:remote, :desired_capabilities=>:'safari')
5
+ b.goto("www.google.com")
6
+ b.text_field(:name ,"q").set("3qilabs")
7
+ b.button(:name,"btnG").click
metadata CHANGED
@@ -1,15 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awetestlib
3
3
  version: !ruby/object:Gem::Version
4
- hash: -223651757
5
- prerelease: 6
6
- segments:
7
- - 0
8
- - 1
9
- - 29
10
- - pre
11
- - 1
12
- version: 0.1.29pre1
4
+ version: 0.1.29pre3
13
5
  platform: ruby
14
6
  authors:
15
7
  - Anthony Woo
@@ -18,19 +10,16 @@ autorequire:
18
10
  bindir: bin
19
11
  cert_chain: []
20
12
 
21
- date: 2013-03-21 00:00:00 Z
13
+ date: 2013-03-26 00:00:00 Z
22
14
  dependencies:
23
15
  - !ruby/object:Gem::Dependency
24
16
  name: watir-webdriver
25
17
  prerelease: false
26
18
  requirement: &id001 !ruby/object:Gem::Requirement
27
- none: false
28
19
  requirements:
29
- - - ">="
20
+ - &id003
21
+ - ">="
30
22
  - !ruby/object:Gem::Version
31
- hash: 3
32
- segments:
33
- - 0
34
23
  version: "0"
35
24
  type: :runtime
36
25
  version_requirements: *id001
@@ -38,194 +27,116 @@ dependencies:
38
27
  name: activesupport
39
28
  prerelease: false
40
29
  requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
30
  requirements:
43
31
  - - ~>
44
32
  - !ruby/object:Gem::Version
45
- hash: 7
46
- segments:
47
- - 3
48
- - 0
49
- - 0
50
33
  version: 3.0.0
51
34
  type: :runtime
52
35
  version_requirements: *id002
53
36
  - !ruby/object:Gem::Dependency
54
37
  name: andand
55
38
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- hash: 3
62
- segments:
63
- - 0
64
- version: "0"
65
- type: :runtime
66
- version_requirements: *id003
67
- - !ruby/object:Gem::Dependency
68
- name: spreadsheet
69
- prerelease: false
70
39
  requirement: &id004 !ruby/object:Gem::Requirement
71
- none: false
72
40
  requirements:
73
- - - "="
74
- - !ruby/object:Gem::Version
75
- hash: 23
76
- segments:
77
- - 0
78
- - 6
79
- - 8
80
- version: 0.6.8
41
+ - *id003
81
42
  type: :runtime
82
43
  version_requirements: *id004
83
44
  - !ruby/object:Gem::Dependency
84
- name: google-spreadsheet-ruby
45
+ name: spreadsheet
85
46
  prerelease: false
86
47
  requirement: &id005 !ruby/object:Gem::Requirement
87
- none: false
88
48
  requirements:
89
49
  - - "="
90
50
  - !ruby/object:Gem::Version
91
- hash: 23
92
- segments:
93
- - 0
94
- - 1
95
- - 6
96
- version: 0.1.6
51
+ version: 0.6.8
97
52
  type: :runtime
98
53
  version_requirements: *id005
99
54
  - !ruby/object:Gem::Dependency
100
- name: roo
55
+ name: google-spreadsheet-ruby
101
56
  prerelease: false
102
57
  requirement: &id006 !ruby/object:Gem::Requirement
103
- none: false
104
58
  requirements:
105
59
  - - "="
106
60
  - !ruby/object:Gem::Version
107
- hash: 61
108
- segments:
109
- - 1
110
- - 10
111
- - 1
112
- version: 1.10.1
61
+ version: 0.1.6
113
62
  type: :runtime
114
63
  version_requirements: *id006
115
64
  - !ruby/object:Gem::Dependency
116
- name: multipart-post
65
+ name: roo
117
66
  prerelease: false
118
67
  requirement: &id007 !ruby/object:Gem::Requirement
119
- none: false
120
68
  requirements:
121
69
  - - "="
122
70
  - !ruby/object:Gem::Version
123
- hash: 27
124
- segments:
125
- - 1
126
- - 1
127
- - 4
128
- version: 1.1.4
71
+ version: 1.10.1
129
72
  type: :runtime
130
73
  version_requirements: *id007
131
74
  - !ruby/object:Gem::Dependency
132
- name: selenium-webdriver
75
+ name: multipart-post
133
76
  prerelease: false
134
77
  requirement: &id008 !ruby/object:Gem::Requirement
135
- none: false
136
78
  requirements:
137
- - - ">="
79
+ - - "="
138
80
  - !ruby/object:Gem::Version
139
- hash: 3
140
- segments:
141
- - 0
142
- version: "0"
81
+ version: 1.1.4
143
82
  type: :runtime
144
83
  version_requirements: *id008
145
84
  - !ruby/object:Gem::Dependency
146
- name: nokogiri
85
+ name: selenium-webdriver
147
86
  prerelease: false
148
87
  requirement: &id009 !ruby/object:Gem::Requirement
149
- none: false
150
88
  requirements:
151
- - - ">="
152
- - !ruby/object:Gem::Version
153
- hash: 3
154
- segments:
155
- - 0
156
- version: "0"
89
+ - *id003
157
90
  type: :runtime
158
91
  version_requirements: *id009
159
92
  - !ruby/object:Gem::Dependency
160
- name: i18n
93
+ name: nokogiri
161
94
  prerelease: false
162
95
  requirement: &id010 !ruby/object:Gem::Requirement
163
- none: false
164
96
  requirements:
165
- - - ">="
166
- - !ruby/object:Gem::Version
167
- hash: 3
168
- segments:
169
- - 0
170
- version: "0"
97
+ - *id003
171
98
  type: :runtime
172
99
  version_requirements: *id010
173
100
  - !ruby/object:Gem::Dependency
174
- name: rb-appscript
101
+ name: i18n
175
102
  prerelease: false
176
103
  requirement: &id011 !ruby/object:Gem::Requirement
177
- none: false
178
104
  requirements:
179
- - - ">="
180
- - !ruby/object:Gem::Version
181
- hash: 3
182
- segments:
183
- - 0
184
- version: "0"
105
+ - *id003
185
106
  type: :runtime
186
107
  version_requirements: *id011
187
108
  - !ruby/object:Gem::Dependency
188
- name: pry
109
+ name: rb-appscript
189
110
  prerelease: false
190
111
  requirement: &id012 !ruby/object:Gem::Requirement
191
- none: false
192
112
  requirements:
193
- - - ">="
194
- - !ruby/object:Gem::Version
195
- hash: 3
196
- segments:
197
- - 0
198
- version: "0"
113
+ - *id003
199
114
  type: :runtime
200
115
  version_requirements: *id012
201
116
  - !ruby/object:Gem::Dependency
202
- name: cucumber
117
+ name: pry
203
118
  prerelease: false
204
119
  requirement: &id013 !ruby/object:Gem::Requirement
205
- none: false
206
120
  requirements:
207
- - - ">="
208
- - !ruby/object:Gem::Version
209
- hash: 3
210
- segments:
211
- - 0
212
- version: "0"
121
+ - *id003
213
122
  type: :runtime
214
123
  version_requirements: *id013
215
124
  - !ruby/object:Gem::Dependency
216
- name: calabash-cucumber
125
+ name: cucumber
217
126
  prerelease: false
218
127
  requirement: &id014 !ruby/object:Gem::Requirement
219
- none: false
220
128
  requirements:
221
- - - ">="
222
- - !ruby/object:Gem::Version
223
- hash: 3
224
- segments:
225
- - 0
226
- version: "0"
129
+ - *id003
227
130
  type: :runtime
228
131
  version_requirements: *id014
132
+ - !ruby/object:Gem::Dependency
133
+ name: calabash-cucumber
134
+ prerelease: false
135
+ requirement: &id015 !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - *id003
138
+ type: :runtime
139
+ version_requirements: *id015
229
140
  description: Awetest DSL for automated testing of browser-based applications.
230
141
  email: patrick@3qilabs.com
231
142
  executables:
@@ -325,6 +236,7 @@ files:
325
236
  - test/create_zoho_account1.rb
326
237
  - test/create_zoho_account2.rb
327
238
  - test/demo.rb
239
+ - test/demo_wwd.rb
328
240
  - test/google_search1.rb
329
241
  - test/google_search2.rb
330
242
  - test/login.xls
@@ -338,35 +250,25 @@ files:
338
250
  homepage: http://3qilabs.com
339
251
  licenses: []
340
252
 
253
+ metadata: {}
254
+
341
255
  post_install_message:
342
256
  rdoc_options: []
343
257
 
344
258
  require_paths:
345
259
  - lib
346
260
  required_ruby_version: !ruby/object:Gem::Requirement
347
- none: false
348
261
  requirements:
349
- - - ">="
350
- - !ruby/object:Gem::Version
351
- hash: 3
352
- segments:
353
- - 0
354
- version: "0"
262
+ - *id003
355
263
  required_rubygems_version: !ruby/object:Gem::Requirement
356
- none: false
357
264
  requirements:
358
- - - ">="
359
- - !ruby/object:Gem::Version
360
- hash: 3
361
- segments:
362
- - 0
363
- version: "0"
265
+ - *id003
364
266
  requirements: []
365
267
 
366
268
  rubyforge_project:
367
- rubygems_version: 1.8.24
269
+ rubygems_version: 2.0.3
368
270
  signing_key:
369
- specification_version: 3
271
+ specification_version: 4
370
272
  summary: Awetest DSL for automated testing of browser-based applications.
371
273
  test_files: []
372
274