scoutui 2.0.5.0 → 2.0.5.0.1.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -4
  3. data/README.md +7 -0
  4. data/bin/scoutui_driver +1 -0
  5. data/examples/benchmark/ex.rb +16 -0
  6. data/examples/capabilities/win10.chrome46.json +6 -0
  7. data/examples/carmax/appmodel/search_results.json +27 -0
  8. data/examples/carmax/commands/commands.yml +63 -0
  9. data/examples/cmdshell/commands/hello.yml +22 -0
  10. data/examples/converters/jsonupdate.rb +31 -0
  11. data/examples/ex2/appmodel/common.json +51 -0
  12. data/examples/ex2/appmodel/page_model.json +106 -0
  13. data/examples/ex2/appmodel/register.model.json +42 -0
  14. data/examples/ex2/commands/commands.basic.appmodel.yml +8 -0
  15. data/examples/ex2/commands/commands.yml +115 -0
  16. data/examples/ex2/commands/ex1.yml +7 -0
  17. data/examples/ex2/commands/ex1c.yml +8 -0
  18. data/examples/ex2/commands/ex1d.yml +22 -0
  19. data/examples/ex2/commands/ex2.hover.yml +43 -0
  20. data/examples/ex2/commands/ex2.yml +24 -0
  21. data/examples/ex2/data.json +6 -0
  22. data/examples/ex2/test-configs/test.config.basic.json +12 -0
  23. data/examples/ex2/test-configs/test.config.json +31 -0
  24. data/examples/ex2/tests/run-test.sh +125 -0
  25. data/examples/ex2/tests/test-basic-appmodel.sh +14 -0
  26. data/examples/ex2/tests/test-example.sh +39 -0
  27. data/examples/ex2/tests/test-example1a.sh +16 -0
  28. data/examples/ex2/tests/test-example1b.sh +13 -0
  29. data/examples/ex2/tests/test-example1c.sh +15 -0
  30. data/examples/ex2/tests/test-example1d.sh +15 -0
  31. data/examples/ex2/tests/test-example2.forms.eyes.sh +40 -0
  32. data/examples/ex2/tests/test-example2.hover.eyes.sh +40 -0
  33. data/examples/ex2/tests/test-example2.hover.sh +26 -0
  34. data/examples/ex2/tests/test-example2.sh +43 -0
  35. data/examples/ex2/tests/test-example3.sauce.sh +77 -0
  36. data/examples/ex2/tests/test-example3.sh +41 -0
  37. data/examples/headless/run.sh +15 -0
  38. data/lib/scoutui/eyes/eye_scout.rb +2 -0
  39. data/lib/scoutui/version.rb +1 -1
  40. data/scoutui.gemspec +3 -2
  41. metadata +57 -14
  42. data/examples/ex1/phantom.chrome.json +0 -4
  43. data/examples/ex1/run.sh +0 -85
  44. data/examples/ex1/simple.yml +0 -13
  45. data/examples/ex1/win10.chromebeta.json +0 -6
  46. data/lib/scoutui/base/q_har_mgr.rb +0 -63
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scoutui
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5.0
4
+ version: 2.0.5.0.1.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Kim
@@ -154,16 +154,16 @@ dependencies:
154
154
  name: sauce_whisk
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - '='
157
+ - - ">="
158
158
  - !ruby/object:Gem::Version
159
- version: 0.0.21
159
+ version: '0'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - '='
164
+ - - ">="
165
165
  - !ruby/object:Gem::Version
166
- version: 0.0.21
166
+ version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: testmgr
169
169
  requirement: !ruby/object:Gem::Requirement
@@ -178,20 +178,34 @@ dependencies:
178
178
  - - ">="
179
179
  - !ruby/object:Gem::Version
180
180
  version: 0.3.2.pre
181
+ - !ruby/object:Gem::Dependency
182
+ name: tiny_tds
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
181
195
  - !ruby/object:Gem::Dependency
182
196
  name: DataMgr
183
197
  requirement: !ruby/object:Gem::Requirement
184
198
  requirements:
185
199
  - - ">="
186
200
  - !ruby/object:Gem::Version
187
- version: 0.2.0
201
+ version: 0.1.1.1.pre
188
202
  type: :development
189
203
  prerelease: false
190
204
  version_requirements: !ruby/object:Gem::Requirement
191
205
  requirements:
192
206
  - - ">="
193
207
  - !ruby/object:Gem::Version
194
- version: 0.2.0
208
+ version: 0.1.1.1.pre
195
209
  - !ruby/object:Gem::Dependency
196
210
  name: CmdShellMgr
197
211
  requirement: !ruby/object:Gem::Requirement
@@ -223,16 +237,46 @@ files:
223
237
  - README.md
224
238
  - Rakefile
225
239
  - bin/console
240
+ - bin/scoutui_driver
226
241
  - bin/scoutui_driver.rb
227
242
  - bin/setup
243
+ - examples/benchmark/ex.rb
244
+ - examples/capabilities/win10.chrome46.json
245
+ - examples/carmax/appmodel/search_results.json
246
+ - examples/carmax/commands/commands.yml
247
+ - examples/cmdshell/commands/hello.yml
248
+ - examples/converters/jsonupdate.rb
228
249
  - examples/ex1/commands.holidays.yml
229
250
  - examples/ex1/commands.yml
230
- - examples/ex1/phantom.chrome.json
231
- - examples/ex1/run.sh
232
- - examples/ex1/simple.yml
233
251
  - examples/ex1/test-example.sh
234
252
  - examples/ex1/test.config.json
235
- - examples/ex1/win10.chromebeta.json
253
+ - examples/ex2/appmodel/common.json
254
+ - examples/ex2/appmodel/page_model.json
255
+ - examples/ex2/appmodel/register.model.json
256
+ - examples/ex2/commands/commands.basic.appmodel.yml
257
+ - examples/ex2/commands/commands.yml
258
+ - examples/ex2/commands/ex1.yml
259
+ - examples/ex2/commands/ex1c.yml
260
+ - examples/ex2/commands/ex1d.yml
261
+ - examples/ex2/commands/ex2.hover.yml
262
+ - examples/ex2/commands/ex2.yml
263
+ - examples/ex2/data.json
264
+ - examples/ex2/test-configs/test.config.basic.json
265
+ - examples/ex2/test-configs/test.config.json
266
+ - examples/ex2/tests/run-test.sh
267
+ - examples/ex2/tests/test-basic-appmodel.sh
268
+ - examples/ex2/tests/test-example.sh
269
+ - examples/ex2/tests/test-example1a.sh
270
+ - examples/ex2/tests/test-example1b.sh
271
+ - examples/ex2/tests/test-example1c.sh
272
+ - examples/ex2/tests/test-example1d.sh
273
+ - examples/ex2/tests/test-example2.forms.eyes.sh
274
+ - examples/ex2/tests/test-example2.hover.eyes.sh
275
+ - examples/ex2/tests/test-example2.hover.sh
276
+ - examples/ex2/tests/test-example2.sh
277
+ - examples/ex2/tests/test-example3.sauce.sh
278
+ - examples/ex2/tests/test-example3.sh
279
+ - examples/headless/run.sh
236
280
  - lib/scoutui.rb
237
281
  - lib/scoutui/appmodel/q_model.rb
238
282
  - lib/scoutui/base/assertions.rb
@@ -240,7 +284,6 @@ files:
240
284
  - lib/scoutui/base/q_applitools.rb
241
285
  - lib/scoutui/base/q_browser.rb
242
286
  - lib/scoutui/base/q_form.rb
243
- - lib/scoutui/base/q_har_mgr.rb
244
287
  - lib/scoutui/base/requirements.rb
245
288
  - lib/scoutui/base/test_context.rb
246
289
  - lib/scoutui/base/test_data.rb
@@ -303,9 +346,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
303
346
  version: '0'
304
347
  required_rubygems_version: !ruby/object:Gem::Requirement
305
348
  requirements:
306
- - - ">="
349
+ - - ">"
307
350
  - !ruby/object:Gem::Version
308
- version: '0'
351
+ version: 1.3.1
309
352
  requirements: []
310
353
  rubyforge_project:
311
354
  rubygems_version: 2.6.2
@@ -1,4 +0,0 @@
1
- {
2
- "browser": "phantomjs",
3
- "useragent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36"
4
- }
data/examples/ex1/run.sh DELETED
@@ -1,85 +0,0 @@
1
- #!/usr/bin/env bash
2
- ##
3
- # H20Dragon
4
- ##
5
-
6
- ##
7
- # Execute test on Chrome locally.
8
- ##
9
- run_chrome()
10
- {
11
- CMD=$1
12
- ruby $SCOUTUI_BIN --config ./test.config.json \
13
- --browser chrome \
14
- --host "http://www.elvis-presley.com" \
15
- --viewport 800x600 \
16
- --dut ${CMD} --debug
17
- }
18
-
19
- ##
20
- # Execute test on Firefox locally.
21
- ##
22
- run_firefox()
23
- {
24
- CMD=$1
25
- ruby $SCOUTUI_BIN --config ./test.config.json \
26
- --browser firefox \
27
- --host "http://www.elvis-presley.com" \
28
- --viewport 800x600 \
29
- --dut ${CMD} --debug
30
- }
31
-
32
- ##
33
- # Execute test on phantom (GhostDriver)
34
- ##
35
- run_headless()
36
- {
37
- CMD=$1
38
- ruby $SCOUTUI_BIN --config ./test.config.json \
39
- --browser phantomjs \
40
- --host "http://www.elvis-presley.com" \
41
- --viewport 800x600 \
42
- --dut ${CMD} --debug
43
- }
44
-
45
-
46
- ##
47
- # Run tests on ghostdriver (phantom) as defined in
48
- # its capabilities file.
49
- ##
50
- run_headless2()
51
- {
52
- CMD=$1
53
- ruby $SCOUTUI_BIN --config ./test.config.json \
54
- --capabilities ./phantom.chrome.json \
55
- --host "http://www.elvis-presley.com" \
56
- --viewport 800x600 \
57
- --dut ${CMD} --debug
58
- }
59
-
60
-
61
- ##
62
- # Run a test on ghostdriver (phantom) defined by
63
- # capabilities files, while taking screen shots.
64
- ##
65
- run_screenshots_phantom()
66
- {
67
- CMD=$1
68
- ruby $SCOUTUI_BIN --config ./test.config.json \
69
- --capabilities ./phantom.chrome.json \
70
- --screenshots:run true \
71
- --screenshots:dir /tmp/phantom \
72
- --host "http://www.elvis-presley.com" \
73
- --viewport 800x600 \
74
- --dut ${CMD} --debug
75
- }
76
-
77
-
78
-
79
- run_chrome ./simple.yml
80
- run_firefox ./simple.yml
81
-
82
- #run_headless ./simple.yml
83
- #run_headless2 ./simple.yml
84
- #run_screenshots_phantom ./simple.yml
85
-
@@ -1,13 +0,0 @@
1
- page:
2
- name: Home
3
- action: navigate(http://www.elvis.com)
4
- ---
5
- page:
6
- name: TAB
7
- action: type(__TAB__)
8
- do:
9
- - focused.Highlight
10
- - press(__TAB__)
11
- until:
12
- - true
13
-
@@ -1,6 +0,0 @@
1
- {
2
- "platform": "Windows 10",
3
- "browser": "chrome",
4
- "version": "beta",
5
- "screenResolution": "1280x1024"
6
- }
@@ -1,63 +0,0 @@
1
- require 'singleton'
2
- #require 'browsermob/proxy'
3
-
4
-
5
- module Scoutui::Base
6
-
7
- class QHarMgr
8
- include Singleton
9
-
10
- attr_accessor :proxy_binary
11
- attr_accessor :proxy
12
- attr_accessor :seleniumProfile
13
-
14
-
15
- def initialize()
16
- puts __FILE__ + (__LINE__).to_s + " -- start BrowserMob --" if Scoutui::Utils::TestUtils.instance.isDebug?
17
- @proxy_binary = BrowserMob::Proxy::Server.new(ENV['BROWSER_MOB_BIN'], { :port => 8088 })
18
- end
19
-
20
- def start()
21
- puts __FILE__ + (__LINE__).to_s + " --start --"
22
- @proxy_binary.start
23
- @proxy = @proxy_binary.create_proxy
24
- @seleniumProfile = @proxy.selenium_proxy # Needed by Selenium instance
25
-
26
- @proxy.new_har(:capture_headers => true)
27
- end
28
-
29
-
30
- def getSeleniumProfile()
31
- puts __FILE__ + (__LINE__).to_s + " == getSeleniumProfile() => #{@seleniumProfile} --"
32
- @seleniumProfile
33
- end
34
-
35
- def stop(save_as=nil)
36
- puts __FILE__ + (__LINE__).to_s + " -- stop(#{save_as.to_s} --"
37
- # @proxy.close
38
-
39
- if !save_as.nil?
40
- @proxy.har.save_to(save_as)
41
- end
42
-
43
- @proxy.close
44
- end
45
-
46
- def capture_traffic
47
- # @proxy.new_har
48
- yield
49
- @proxy.har
50
- end
51
-
52
- def run(n)
53
- puts __FILE__ + (__LINE__).to_s + " -- run --"
54
- @har = capture_traffic { yield }
55
- # @proxy.close
56
- # @har.save_to(n)
57
- end
58
-
59
-
60
- end
61
-
62
-
63
- end