scoutui 0.1.1 → 0.1.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 938077e990f3023a4aa9e4dafd7e8ae5bbc3dd3d
4
- data.tar.gz: a5e065f72639d6f9776a82e821dfd9417868ea1e
3
+ metadata.gz: a30ec1b576da5316bdcab5d783e012b38162c8ff
4
+ data.tar.gz: 0fa6ec360deb548399164ea9fd1ecea9726b79a1
5
5
  SHA512:
6
- metadata.gz: e0e95dc05d1f4544bdd6b50ef04e7d98c86edfe9e9ddf24e6e954a6613ceffe7a744bba48bfefbe8de49e95da93ba1de720275a89adec347612a690318090907
7
- data.tar.gz: 765e55a3126b0782041d23fe47ea2d9e3708388f64f2b0c633f177c0a530d5d640d8d18d37d5f23989168013183eed7fc73cbb322effb47e5b89bc000699703e
6
+ metadata.gz: 4115dda6300e3d3ca932060c4ee560f6753db16ccc1adefaae70a3eb4ee40abda227a4d02b3964f712b3cdcefadf0171183d7bfbb1af962ff3d9fc5cc0250a8d
7
+ data.tar.gz: 8380d47fae11e943e80b162fa6338862c05a7170cbcc9481b14761bc21055e94e27ddf4557999b3cb0a1c722c83eaf41e9b7ba3004419c22aaae28c17dcc3ead
@@ -1,4 +1,4 @@
1
- require 'rubygems'
1
+
2
2
  require 'eyes_selenium'
3
3
  require 'httparty'
4
4
 
@@ -1,4 +1,4 @@
1
- require 'rubygems'
1
+
2
2
  require 'eyes_selenium'
3
3
  require 'selenium-webdriver'
4
4
 
@@ -3,17 +3,16 @@
3
3
  module Scoutui::Base
4
4
 
5
5
 
6
- class TestRunner
7
- attr_reader :drv # Selenium Webdriver
8
- attr_reader :eyes # Applitools::Eyes
9
- attr_reader :driver # Applitools::Eyes Driver
6
+ class TestScout
10
7
  attr_reader :context
11
8
  attr_reader :test_settings # { host, localization, dut }
12
9
  attr_reader :userRecord
13
10
  attr_reader :eyesRecord # {'title' , 'app'}
11
+ attr_reader :eyeScout
12
+ attr_reader :results
14
13
 
15
14
  def initialize(_context)
16
-
15
+ @result = nil
17
16
  @test_settings=nil
18
17
  @eyesRecord=nil
19
18
 
@@ -27,19 +26,31 @@ module Scoutui::Base
27
26
  @userRecord = accounts.getUserRecord(@test_settings['user'])
28
27
 
29
28
  @eyesRecord = @test_settings['eyes']
29
+ end
30
+
31
+ end
30
32
 
33
+
34
+ def start
35
+ if hasSettings?
36
+ dumpSettings if Scoutui::Utils::TestUtils.instance.isDebug?
37
+ run()
31
38
  end
39
+ end
32
40
 
41
+ def stop
42
+ # TBD
33
43
  end
34
44
 
45
+ def report
35
46
 
47
+ end
36
48
 
37
49
  def hasSettings?
38
50
  Scoutui::Utils::TestUtils.instance.hasTestConfig?
39
51
  end
40
52
 
41
53
  def dumpSettings()
42
- puts __FILE__ + (__LINE__).to_s + " dumpSettings()"
43
54
  puts '-' * 72
44
55
  puts @test_settings
45
56
 
@@ -49,68 +60,59 @@ module Scoutui::Base
49
60
  end
50
61
 
51
62
  def teardown()
52
- @drv.quit()
63
+ @eyeScout.teardown()
53
64
  end
54
65
 
55
66
  def setup()
56
- browserType = Scoutui::Utils::TestUtils.instance.getBrowserType()
57
- puts __FILE__ + (__LINE__).to_s + " setup() : #{browserType}"
58
67
 
59
- begin
60
- @drv=Selenium::WebDriver.for browserType.to_sym
61
- @eyes=Scoutui::Eyes::EyeFactory.instance.create(true)
62
- puts __FILE__ + (__LINE__).to_s + " eyes => #{eyes}"
68
+ if Scoutui::Utils::TestUtils.instance.isDebug?
69
+ puts __FILE__ + (__LINE__).to_s + " eyes cfg => #{@eyesRecord}"
70
+ puts __FILE__ + (__LINE__).to_s + " title => " + Scoutui::Base::UserVars.instance.getVar('eyes.title')
71
+ puts __FILE__ + (__LINE__).to_s + " app => " + Scoutui::Base::UserVars.instance.getVar('eyes.app')
72
+ end
63
73
 
64
- @driver = @eyes.open(
65
- app_name: @eyesRecord['app'],
66
- test_name: @eyesRecord['title'],
67
- viewport_size: {width: 1024, height: 768},
68
- # viewport_size: {width: 800, height: 600},
69
- driver: @drv)
74
+ begin
70
75
 
76
+ eyeScout=Scoutui::Eyes::EyeFactory.instance.createScout()
71
77
  rescue => ex
72
78
  puts ex.backtrace
73
79
  end
74
- @drv
80
+
81
+ eyeScout
75
82
  end
76
83
 
77
84
 
78
85
 
79
- def goto(url)
80
- @drv.navigate().to(url)
86
+ def goto(url=nil)
87
+ @eyeScout.navigate(url) if !url.nil?
81
88
  end
82
89
 
83
90
  def snapPage(tag)
84
- @eyes.check_window(tag) if Scoutui::Utils::TestUtils.instance.eyesEnabled?
91
+ @eyeScout.check_window(tag)
85
92
  end
86
93
 
87
94
 
88
95
  def run()
89
96
  puts __FILE__ + (__LINE__).to_s + " run()" if Scoutui::Utils::TestUtils.instance.isDebug?
90
97
 
91
- my_driver=nil
92
-
93
98
  begin
94
99
 
95
- app = Scoutui::Base::AppModel.new()
96
-
97
- setup() # Browser is created
100
+ @eyeScout=setup() # Browser is created
98
101
 
99
102
  # Navigate to the specified host
100
103
  goto(Scoutui::Base::UserVars.instance.get(:host))
101
104
 
102
105
  snapPage('Landing Page')
103
106
 
104
- Scoutui::Base::VisualTestFramework.processFile(@drv, @eyes, @test_settings)
107
+ Scoutui::Base::VisualTestFramework.processFile(@eyeScout, @test_settings)
105
108
 
106
109
  teardown()
107
110
 
108
111
  rescue => ex
109
112
  puts ex.backtrace
110
113
  ensure
111
- puts __FILE__ + (__LINE__ ).to_s + " Close Eyes"
112
- eyes.close(false)
113
- eyes.abort_if_not_closed if !eyes.nil?
114
+ puts __FILE__ + (__LINE__ ).to_s + " Close Eyes" if Scoutui::Utils::TestUtils.instance.isDebug?
115
+ @eyeScout.closeOut()
114
116
  end
115
117
 
116
118
  end
@@ -1,4 +1,3 @@
1
- require 'rubygems'
2
1
  require 'singleton'
3
2
 
4
3
  module Scoutui::Base
@@ -10,6 +9,7 @@ module Scoutui::Base
10
9
 
11
10
  def initialize
12
11
  @globals={
12
+ :browser => 'chrome',
13
13
  :userid => nil,
14
14
  :password => nil,
15
15
  :host => nil,
@@ -17,6 +17,10 @@ module Scoutui::Base
17
17
  }
18
18
  end
19
19
 
20
+ def getBrowserType()
21
+ @globals[:browser].to_sym
22
+ end
23
+
20
24
  def getHost()
21
25
  @globals[:host].to_s
22
26
  end
@@ -43,6 +47,10 @@ module Scoutui::Base
43
47
  v
44
48
  end
45
49
 
50
+ def getVar(k)
51
+ @globals[k].to_s
52
+ end
53
+
46
54
  def setVar(k, v)
47
55
  @globals[k]=v
48
56
  v
@@ -1,8 +1,4 @@
1
- require 'rubygems'
2
1
 
3
- ##
4
- # 1. q_applitools
5
- # 2. q_accounts
6
2
 
7
3
  module Scoutui::Base
8
4
 
@@ -64,12 +60,14 @@ module Scoutui::Base
64
60
 
65
61
 
66
62
  # Scoutui::Base::VisualTestFramework.processFile(@drv, @eyes, @test_settings['host'], @test_settings['dut'])
67
- def self.processFile(my_driver, eyes, test_settings)
63
+ def self.processFile(eyeScout, test_settings)
64
+
65
+ my_driver = eyeScout.drv()
68
66
 
69
67
  baseUrl = Scoutui::Base::UserVars.instance.getHost()
70
68
  datafile = test_settings['dut']
71
69
 
72
- puts __FILE__ + (__LINE__).to_s + " processFile(#{my_driver}, #{eyes}, #{baseUrl}, #{datafile})" if Scoutui::Utils::TestUtils.instance.isDebug?
70
+ puts __FILE__ + (__LINE__).to_s + " processFile(#{eyeScout}, #{baseUrl}, #{datafile})" if Scoutui::Utils::TestUtils.instance.isDebug?
73
71
 
74
72
  i=0
75
73
  dut_dupes = YAML.load_stream File.read(datafile)
@@ -127,15 +125,15 @@ module Scoutui::Base
127
125
  obj = Scoutui::Base::QBrowser.getObject(my_driver, xpath)
128
126
 
129
127
  if obj.nil?
130
- puts __FILE__ + (__LINE__).to_s + " NOT FOUND : #{link_name} with xpath #{xpath}"
128
+ puts " NOT FOUND : #{link_name} with xpath #{xpath}"
131
129
  else
132
- puts __FILE__ + (__LINE__).to_s + " link object(#{link_name} with xpath #{xpath}=> #{obj.displayed?}" if Scoutui::Utils::TestUtils.instance.isDebug?
130
+ puts " link object(#{link_name} with xpath #{xpath}=> #{obj.displayed?}" if Scoutui::Utils::TestUtils.instance.isDebug?
133
131
  end
134
132
 
135
133
  end
136
134
  end
137
135
 
138
- eyes.check_window(name) if Scoutui::Utils::TestUtils.instance.eyesEnabled?
136
+ eyeScout.check_window(name)
139
137
 
140
138
  puts "\to links : #{e['page']['links'].class.to_s}" if Scoutui::Utils::TestUtils.instance.isDebug?
141
139
 
@@ -150,7 +148,7 @@ module Scoutui::Base
150
148
  puts __FILE__ + (__LINE__).to_s + " [click]: link object => #{obj.to_s}" if Scoutui::Utils::TestUtils.instance.isDebug?
151
149
  obj.click
152
150
 
153
- eyes.check_window(link_name) if Scoutui::Utils::TestUtils.instance.eyesEnabled?
151
+ eyeScout.check_window(link_name)
154
152
  end
155
153
  end
156
154
 
@@ -0,0 +1,64 @@
1
+
2
+ require 'singleton'
3
+
4
+
5
+ module Scoutui::Eyes
6
+
7
+
8
+ class EyeFactory
9
+ include Singleton
10
+
11
+ attr_accessor :eyesList
12
+
13
+ def initialize
14
+ @eyesList=Array.new()
15
+ end
16
+
17
+ def createScout()
18
+ browserType = Scoutui::Base::UserVars.instance.getBrowserType()
19
+ eyeScout = EyeScout.new(browserType)
20
+ end
21
+
22
+ def createEyes()
23
+
24
+ use_eyes = Scoutui::Utils::TestUtils.instance.eyesEnabled?
25
+
26
+ puts __FILE__ + (__LINE__).to_s + " create(#{use_eyes})" if Scoutui::Utils::TestUtils.instance.isDebug?
27
+ eyes=nil
28
+
29
+ if use_eyes
30
+
31
+ licFile=Scoutui::Utils::TestUtils.instance.getLicenseFile()
32
+
33
+ valid_json=false
34
+ begin
35
+ jFile = File.read(licFile)
36
+ jLicense=jsonData=JSON.parse(jFile)
37
+ valid_json=true
38
+ rescue => ex
39
+ ;
40
+ end
41
+
42
+
43
+ if valid_json
44
+ eyes=Applitools::Eyes.new()
45
+ eyes.api_key = jLicense['api_key'].to_s
46
+ eyes.force_fullpage_screenshot = true
47
+
48
+ match_level = Scoutui::Base::UserVars.instance.getVar('eyes.match_level')
49
+
50
+ eyes.match_level = Applitools::Eyes::MATCH_LEVEL[match_level.to_sym]
51
+ end
52
+
53
+ end
54
+
55
+ # eyes
56
+ @eyesList << eyes
57
+ @eyesList.last()
58
+ end
59
+
60
+ end
61
+
62
+
63
+
64
+ end
@@ -0,0 +1,77 @@
1
+ require 'eyes_selenium'
2
+
3
+ module Scoutui::Eyes
4
+
5
+
6
+ class EyeScout
7
+
8
+ attr_accessor :drv
9
+ attr_accessor :eyes
10
+
11
+ def teardown()
12
+ @drv.quit()
13
+ end
14
+
15
+ def navigate(url)
16
+ @drv.navigate().to(url)
17
+ end
18
+
19
+ def drv()
20
+ @drv
21
+ end
22
+
23
+ def eyes()
24
+ @eyes
25
+ end
26
+
27
+
28
+ def closeOut()
29
+ eyes().close(false)
30
+ eyes().abort_if_not_closed if !eyes().nil?
31
+ end
32
+
33
+ def check_window(tag)
34
+ puts __FILE__ + (__LINE__).to_s + " check_window(#{tag.to_s})" if Scoutui::Utils::TestUtils.instance.isDebug?
35
+
36
+ return if !Scoutui::Utils::TestUtils.instance.eyesEnabled?
37
+
38
+ eyes().check_window(tag.to_s)
39
+ end
40
+
41
+ def initialize(browserType)
42
+ browserType = Scoutui::Base::UserVars.instance.getBrowserType()
43
+
44
+ if Scoutui::Utils::TestUtils.instance.isDebug?
45
+ puts __FILE__ + (__LINE__).to_s + " setup() : #{browserType}"
46
+ puts __FILE__ + (__LINE__).to_s + " eyes cfg => #{@eyesRecord}"
47
+ puts __FILE__ + (__LINE__).to_s + " title => " + Scoutui::Base::UserVars.instance.getVar('eyes.title')
48
+ puts __FILE__ + (__LINE__).to_s + " app => " + Scoutui::Base::UserVars.instance.getVar('eyes.app')
49
+ puts __FILE__ + (__LINE__).to_s + " match_level => " + Scoutui::Base::UserVars.instance.getVar('eyes.match_level')
50
+ end
51
+
52
+ begin
53
+ @drv=Selenium::WebDriver.for browserType.to_sym
54
+ @eyes=Scoutui::Eyes::EyeFactory.instance.createEyes()
55
+
56
+ puts __FILE__ + (__LINE__).to_s + " eyes => #{eyes}" if Scoutui::Utils::TestUtils.instance.isDebug?
57
+
58
+ @driver = @eyes.open(
59
+ app_name: Scoutui::Base::UserVars.instance.getVar('eyes.app'), # @eyesRecord['app'],
60
+ test_name: Scoutui::Base::UserVars.instance.getVar('eyes.title'), # @eyesRecord['title'],
61
+ viewport_size: {width: 1024, height: 768},
62
+ # viewport_size: {width: 800, height: 600},
63
+ driver: @drv)
64
+
65
+ rescue => ex
66
+ puts ex.backtrace
67
+ end
68
+
69
+ end
70
+
71
+
72
+ end
73
+
74
+
75
+
76
+
77
+ end
@@ -1,4 +1,4 @@
1
- require 'rubygems'
1
+
2
2
  require 'singleton'
3
3
  require 'pp'
4
4
  require 'optparse'
@@ -21,12 +21,14 @@ module Scoutui::Utils
21
21
  end
22
22
 
23
23
  @options[:enable_eyes]=true
24
+ @options[:match_level]='strict'
24
25
  end
25
26
 
26
27
  def parseCommandLine()
27
- @options = {}
28
+ # @options = {}
29
+
28
30
  OptionParser.new do |opt|
29
- opt.on('-f', '--file TESTFILE') { |o|
31
+ opt.on('-c', '--config TESTFILE') { |o|
30
32
  if !o.nil?
31
33
  @options[:json_config_file]=o
32
34
 
@@ -37,6 +39,9 @@ module Scoutui::Utils
37
39
  opt.on('-d', '--debug Bool') { |o| @options[:debug] = (o.to_s.downcase=='true')}
38
40
  opt.on('-h', '--host HOST') { |o| @options[:host] = o }
39
41
  opt.on('-l', '--lang LOCAL') { |o| @options[:loc] = o }
42
+ opt.on('-k', '--key EyesLicense') { |o| options[:license_file] = o }
43
+ opt.on('-a', '--app AppName') { |o| @options[:app] = o }
44
+ opt.on('--match [TYPE]', [:layout2, :layout, :strict, :exact, :content], "Select match level (layout, strict, exact, content)") { |o| @options[:match_level] = o }
40
45
  opt.on('-t', '--title TITLE') { |o| @options[:title] = o }
41
46
  opt.on('-b', '--browser BROWSER') { |o| @options[:browser] = o }
42
47
  opt.on('-u', '--user USER_ID') { |o|
@@ -45,6 +50,8 @@ module Scoutui::Utils
45
50
  }
46
51
  opt.on('-p', '--password PASSWORD') { |o| @options[:password] = o }
47
52
  opt.on('-e', '--eyes Boolean') { |o|
53
+ @options[:enabled_eyes]=false
54
+
48
55
  if !o.nil?
49
56
  if !o.match(/true|1/i).nil?
50
57
  @options[:enable_eyes]=true
@@ -55,16 +62,19 @@ module Scoutui::Utils
55
62
  }
56
63
  end.parse!
57
64
 
58
- puts __FILE__ + (__LINE__).to_s + " " + @options.to_s
59
- puts "Test file => #{@options[:test_file]}"
60
- puts "Host => #{@options[:host]}"
61
- puts "Loc => #{@options[:loc]}"
62
- puts "Title => #{@options[:title]}"
63
- puts "Browser => #{@options[:browser]}"
64
- puts "UserID => #{@options[:userid]}"
65
- puts "Password => #{@options[:password]}"
66
- puts "Eyes => #{@options[:enable_eyes]}"
67
- puts "Test Cfg => #{@options[:json_config_file]}"
65
+ if Scoutui::Utils::TestUtils.instance.isDebug?
66
+ puts __FILE__ + (__LINE__).to_s + " " + @options.to_s
67
+ puts "Test file => #{@options[:test_file]}"
68
+ puts "Host => #{@options[:host]}"
69
+ puts "Loc => #{@options[:loc]}"
70
+ puts "Title => #{@options[:title]}"
71
+ puts "Browser => #{@options[:browser]}"
72
+ puts "UserID => #{@options[:userid]}"
73
+ puts "Password => #{@options[:password]}"
74
+ puts "Eyes => #{@options[:enable_eyes]}"
75
+ puts "Test Cfg => #{@options[:json_config_file]}"
76
+ puts "Match Level => #{@options[:match_level]}"
77
+ end
68
78
 
69
79
  @options
70
80
  end
@@ -77,6 +87,10 @@ module Scoutui::Utils
77
87
  @options[:enable_eyes]
78
88
  end
79
89
 
90
+ def getLicenseFile()
91
+ @options[:license_file].to_s
92
+ end
93
+
80
94
  def getBrowser()
81
95
  getBrowserType()
82
96
  end
@@ -95,27 +109,53 @@ module Scoutui::Utils
95
109
  # Returns JSON file contents/format
96
110
  def getTestSettings()
97
111
 
98
- [:host, :userid, :password].each do |k|
112
+ [:browser, :host, :userid, :password].each do |k|
113
+
114
+ puts __FILE__ + (__LINE__).to_s + " opt[test_config].has_key(#{k.to_s}) => #{@options[:test_config].has_key?(k.to_s)}" if Scoutui::Utils::TestUtils.instance.isDebug?
99
115
 
100
- puts __FILE__ + (__LINE__).to_s + " opt[test_config].has_key(#{k.to_s}) => #{@options[:test_config].has_key?(k.to_s)}"
101
116
  if @options[:test_config].has_key?(k.to_s)
102
117
 
103
- puts __FILE__ + (__LINE__).to_s + " opts[#{k}].nil => #{@options[k].nil?}"
118
+ puts __FILE__ + (__LINE__).to_s + " opts[#{k}].nil => #{@options[k].nil?}" if Scoutui::Utils::TestUtils.instance.isDebug?
104
119
  # Ensure commnand line takes precedence
105
120
  if !@options[k].nil?
106
- puts __FILE__ + (__LINE__).to_s + " opt[#{k.to_s} => #{@options[k].to_s}"
121
+ puts __FILE__ + (__LINE__).to_s + " opt[#{k.to_s} => #{@options[k].to_s}" if Scoutui::Utils::TestUtils.instance.isDebug?
107
122
  Scoutui::Base::UserVars.instance.set(k, @options[k].to_s)
108
123
  else
109
-
110
124
  Scoutui::Base::UserVars.instance.set(k, @options[:test_config][k.to_s].to_s)
111
125
  end
112
126
 
113
127
  end
114
128
  end
115
129
 
130
+ puts __FILE__ + (__LINE__).to_s + " test_config => #{@options[:test_config]}" if Scoutui::Utils::TestUtils.instance.isDebug?
131
+
132
+ ['match_level', 'title', 'app'].each do |k|
133
+
134
+ _v=nil
135
+
136
+ if @options[:test_config].has_key?('eyes')
137
+ _v=@options[:test_config]['eyes'][k].to_s
138
+ end
139
+
140
+ if !@options[k.to_sym].nil?
141
+ _v=@options[k.to_sym].to_s
142
+ end
143
+
144
+ if Scoutui::Utils::TestUtils.instance.isDebug?
145
+ puts __FILE__ + (__LINE__).to_s + " #{k} => #{_v}"
146
+ end
147
+
148
+ Scoutui::Base::UserVars.instance.set('eyes.' + k, _v)
149
+
150
+ end
151
+
116
152
  @options[:test_config]
117
153
  end
118
154
 
155
+ def match_level()
156
+ @options[:match_level]
157
+ end
158
+
119
159
  def getUserId()
120
160
  @options[:userid]
121
161
  end
@@ -143,6 +183,9 @@ module Scoutui::Utils
143
183
  loc()
144
184
  end
145
185
 
186
+ def appName()
187
+ @options[:app].to_s
188
+ end
146
189
 
147
190
  def title()
148
191
  @options[:title]
@@ -1,3 +1,3 @@
1
1
  module Scoutui
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/scoutui.rb CHANGED
@@ -1,12 +1,8 @@
1
- #require "scoutui/version"
2
- #require "scoutui/utils"
3
-
4
1
 
5
2
  module Scoutui
6
- # Your code goes here...
3
+
7
4
  ROOT_DIR = File.join(File.dirname(File.expand_path(__FILE__)), 'scoutui').freeze
8
5
 
9
6
  Dir["#{ROOT_DIR}/*.rb"].each { |f| require f }
10
7
  Dir["#{ROOT_DIR}/**/*.rb"].each { |f| require f }
11
-
12
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scoutui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Kim
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-30 00:00:00.000000000 Z
11
+ date: 2015-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -127,14 +127,15 @@ files:
127
127
  - bin/console
128
128
  - bin/setup
129
129
  - lib/scoutui.rb
130
- - lib/scoutui/base/app_model.rb
131
130
  - lib/scoutui/base/q_accounts.rb
132
131
  - lib/scoutui/base/q_applitools.rb
133
132
  - lib/scoutui/base/q_browser.rb
134
- - lib/scoutui/base/test_runner.rb
133
+ - lib/scoutui/base/test_scout.rb
135
134
  - lib/scoutui/base/test_settings.rb
136
135
  - lib/scoutui/base/user_vars.rb
137
136
  - lib/scoutui/base/visual_test_framework.rb
137
+ - lib/scoutui/eyes/eye_factory.rb
138
+ - lib/scoutui/eyes/eye_scout.rb
138
139
  - lib/scoutui/navigator.rb
139
140
  - lib/scoutui/utils/utils.rb
140
141
  - lib/scoutui/version.rb
@@ -1,31 +0,0 @@
1
- require 'rubygems'
2
- #require 'selenium-webdriver'
3
-
4
- module Scoutui::Base
5
-
6
- class AppModel
7
-
8
- attr_accessor :drv
9
- attr_accessor :pages
10
-
11
- def initialize()
12
- @drv=nil
13
- @pages={}
14
- end
15
-
16
- def getPage(n)
17
- @pages[n]
18
- end
19
-
20
- def addPage(n, p)
21
- @pages[n]=p
22
- end
23
-
24
- def setup()
25
- end
26
-
27
- end
28
-
29
-
30
-
31
- end