scoutui 2.0.4.0 → 2.0.4.1.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -4
- data/README.md +7 -0
- data/bin/scoutui_driver +1 -0
- data/examples/benchmark/ex.rb +16 -0
- data/examples/capabilities/win10.chrome46.json +6 -0
- data/examples/carmax/appmodel/search_results.json +27 -0
- data/examples/carmax/commands/commands.yml +63 -0
- data/examples/cmdshell/commands/hello.yml +22 -0
- data/examples/converters/jsonupdate.rb +31 -0
- data/examples/ex2/appmodel/common.json +51 -0
- data/examples/ex2/appmodel/page_model.json +106 -0
- data/examples/ex2/appmodel/register.model.json +42 -0
- data/examples/ex2/commands/commands.basic.appmodel.yml +8 -0
- data/examples/ex2/commands/commands.yml +115 -0
- data/examples/ex2/commands/ex1.yml +7 -0
- data/examples/ex2/commands/ex1c.yml +8 -0
- data/examples/ex2/commands/ex1d.yml +22 -0
- data/examples/ex2/commands/ex2.hover.yml +43 -0
- data/examples/ex2/commands/ex2.yml +24 -0
- data/examples/ex2/data.json +6 -0
- data/examples/ex2/test-configs/test.config.basic.json +12 -0
- data/examples/ex2/test-configs/test.config.json +31 -0
- data/examples/ex2/tests/run-test.sh +125 -0
- data/examples/ex2/tests/test-basic-appmodel.sh +14 -0
- data/examples/ex2/tests/test-example.sh +39 -0
- data/examples/ex2/tests/test-example1a.sh +16 -0
- data/examples/ex2/tests/test-example1b.sh +13 -0
- data/examples/ex2/tests/test-example1c.sh +15 -0
- data/examples/ex2/tests/test-example1d.sh +15 -0
- data/examples/ex2/tests/test-example2.forms.eyes.sh +40 -0
- data/examples/ex2/tests/test-example2.hover.eyes.sh +40 -0
- data/examples/ex2/tests/test-example2.hover.sh +26 -0
- data/examples/ex2/tests/test-example2.sh +43 -0
- data/examples/ex2/tests/test-example3.sauce.sh +77 -0
- data/examples/ex2/tests/test-example3.sh +41 -0
- data/examples/headless/run.sh +15 -0
- data/lib/scoutui/base/visual_test_framework.rb +2 -0
- data/lib/scoutui/commands/clauses/do_until.rb +4 -0
- data/lib/scoutui/commands/commands.rb +3 -0
- data/lib/scoutui/commands/exists_alert.rb +3 -0
- data/lib/scoutui/commands/jsalert/action_jsalert.rb +3 -0
- data/lib/scoutui/version.rb +1 -1
- data/scoutui.gemspec +3 -2
- metadata +57 -10
- 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.4.
|
4
|
+
version: 2.0.4.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
|
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
|
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.
|
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.
|
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,12 +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
251
|
- examples/ex1/test-example.sh
|
231
252
|
- examples/ex1/test.config.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
|
232
280
|
- lib/scoutui.rb
|
233
281
|
- lib/scoutui/appmodel/q_model.rb
|
234
282
|
- lib/scoutui/base/assertions.rb
|
@@ -236,7 +284,6 @@ files:
|
|
236
284
|
- lib/scoutui/base/q_applitools.rb
|
237
285
|
- lib/scoutui/base/q_browser.rb
|
238
286
|
- lib/scoutui/base/q_form.rb
|
239
|
-
- lib/scoutui/base/q_har_mgr.rb
|
240
287
|
- lib/scoutui/base/requirements.rb
|
241
288
|
- lib/scoutui/base/test_context.rb
|
242
289
|
- lib/scoutui/base/test_data.rb
|
@@ -299,9 +346,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
299
346
|
version: '0'
|
300
347
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
301
348
|
requirements:
|
302
|
-
- - "
|
349
|
+
- - ">"
|
303
350
|
- !ruby/object:Gem::Version
|
304
|
-
version:
|
351
|
+
version: 1.3.1
|
305
352
|
requirements: []
|
306
353
|
rubyforge_project:
|
307
354
|
rubygems_version: 2.6.2
|
@@ -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
|