scoutui 2.0.3.37.pre → 2.0.3.38.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/scoutui/base/visual_test_framework.rb +7 -19
- data/lib/scoutui/commands/type.rb +1 -1
- data/lib/scoutui/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cec9b0736bf565a2215a60c142d20e588c9b1c4d
|
4
|
+
data.tar.gz: 5fd8c71c92ee75d5bd6f61415112a00a5386542f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9509ba1faeef032c320e428abc4bfdfa5c535743e844a40446256f9b71f6dca9f89fc48dbd2438946f1f5ad38ef8ae62bf40c72cc52e01940fc8c6c0ef79ae8d
|
7
|
+
data.tar.gz: e6a559b672d667d54aba848e86426049d3ccc43d872a3c189477c3152f840b98d5f8a61662cc0ddcad5fcac8dc16fe33021a099e6798e8b8108786a07f91055f
|
@@ -832,7 +832,7 @@ module Scoutui::Base
|
|
832
832
|
|
833
833
|
Scoutui::Logger::LogMgr.instance.debug '-' * 72
|
834
834
|
Scoutui::Logger::LogMgr.instance.debug " [Pre-cmd]: Total Windows : #{totalWindows.to_s}"
|
835
|
-
Scoutui::Logger::LogMgr.instance.debug "#{i.to_s}. Processing #{e.inspect}"
|
835
|
+
Scoutui::Logger::LogMgr.instance.debug " #{i.to_s}. Processing #{e.inspect}"
|
836
836
|
i+=1
|
837
837
|
|
838
838
|
Scoutui::Utils::TestUtils.instance.setReq('UI')
|
@@ -875,10 +875,8 @@ module Scoutui::Base
|
|
875
875
|
|
876
876
|
if _execute_when.is_a?(String) && _execute_when.match(/^\s*(existsalert|existsalert|exists\(alert\))/i)
|
877
877
|
|
878
|
-
|
879
878
|
if QBrowser.existsAlert?(my_driver)
|
880
879
|
Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " Execution continues - alert IS present #{e[STEP_KEY]}"
|
881
|
-
|
882
880
|
else
|
883
881
|
# puts __FILE__ + (__LINE__).to_s + " + Execution skipped - alert is NOT present";; gets()
|
884
882
|
next;
|
@@ -1049,8 +1047,6 @@ module Scoutui::Base
|
|
1049
1047
|
|
1050
1048
|
Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " _command.Result => #{_command}, Passed? : #{_command.passed?}"
|
1051
1049
|
|
1052
|
-
|
1053
|
-
|
1054
1050
|
if my_driver.window_handles.length > totalWindows
|
1055
1051
|
Scoutui::Logger::LogMgr.instance.info "[post-cmd] Total Windows : #{my_driver.window_handles.length.to_s}"
|
1056
1052
|
end
|
@@ -1094,7 +1090,7 @@ module Scoutui::Base
|
|
1094
1090
|
_c.run(driver: my_driver, dut: _pg)
|
1095
1091
|
|
1096
1092
|
rescue => ex
|
1097
|
-
|
1093
|
+
Scoutui::Logger::LogMgr.instance.warn __FILE__ + (__LINE__).to_s + " #{ex.class}"
|
1098
1094
|
Scoutui::Logger::LogMgr.instance.warn "Backtrace:\n\t#{ex.backtrace.join("\n\t")}"
|
1099
1095
|
end
|
1100
1096
|
|
@@ -1110,24 +1106,18 @@ module Scoutui::Base
|
|
1110
1106
|
|
1111
1107
|
_saveAs = e[STEP_KEY]['saveas']['file'].to_s
|
1112
1108
|
|
1113
|
-
|
1109
|
+
Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " == Process SaveAs #{_saveAs}=="
|
1114
1110
|
|
1115
1111
|
_f=File.open(_saveAs, 'w')
|
1116
1112
|
|
1117
1113
|
if _saveAs.match(/.*\.json\s*$/)
|
1118
|
-
# _f.puts e[STEP_KEY]['saveas']['data'].to_json
|
1119
1114
|
_f.puts Scoutui::Utils::TestUtils.instance.expandVars(e[STEP_KEY]['saveas']['data']).to_json
|
1120
1115
|
|
1121
|
-
elsif _saveAs.match(/.*\.(yml|yaml)\s*$/)
|
1122
|
-
|
1123
|
-
# y_file = File.open("#{$yaml_file}", 'a')
|
1124
|
-
puts __FILE__ + (__LINE__).to_s + " Generate a YAML file"
|
1125
|
-
# _f.write(e[STEP_KEY]['saveas']['data'].to_yaml)
|
1126
|
-
|
1116
|
+
elsif _saveAs.match(/.*\.(yml|yaml)\s*$/i)
|
1117
|
+
Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " Generate a YAML file"
|
1127
1118
|
_f.write(Scoutui::Utils::TestUtils.instance.expandVars(e[STEP_KEY]['saveas']['data'].to_yaml))
|
1128
|
-
# _f.close
|
1129
1119
|
else
|
1130
|
-
__FILE__ + (__LINE__).to_s + " Unknown file extension."
|
1120
|
+
Scoutui::Logger::LogMgr.instance.warn __FILE__ + (__LINE__).to_s + " Unknown file extension."
|
1131
1121
|
end
|
1132
1122
|
|
1133
1123
|
_f.close
|
@@ -1183,7 +1173,6 @@ module Scoutui::Base
|
|
1183
1173
|
eyeScout.getStrategy().processCommand('navigate(' + url + ')', e)
|
1184
1174
|
end
|
1185
1175
|
|
1186
|
-
|
1187
1176
|
Scoutui::Logger::LogMgr.instance.info "\to Expected: #{e[STEP_KEY]['expected'].class.to_s}" if Scoutui::Utils::TestUtils.instance.isDebug?
|
1188
1177
|
|
1189
1178
|
processExpected(my_driver, e)
|
@@ -1209,13 +1198,12 @@ module Scoutui::Base
|
|
1209
1198
|
links.each_pair do |link_name, xpath|
|
1210
1199
|
Scoutui::Logger::LogMgr.instance.info "\t\t#{link_name} => #{xpath}" if Scoutui::Utils::TestUtils.instance.isDebug?
|
1211
1200
|
|
1212
|
-
|
1213
1201
|
obj = QBrowser.getObject(my_driver, xpath, Scoutui::Commands::Utils.instance.getTimeout)
|
1214
1202
|
Scoutui::Logger::LogMgr.instance.info __FILE__ + (__LINE__).to_s + " [click]: link object => #{obj.to_s}" if Scoutui::Utils::TestUtils.instance.isDebug?
|
1215
1203
|
obj.click
|
1216
1204
|
|
1217
1205
|
if !_region.nil?
|
1218
|
-
|
1206
|
+
eyeScout.check_window(_name, _region)
|
1219
1207
|
else
|
1220
1208
|
eyeScout.check_window(link_name)
|
1221
1209
|
end
|
@@ -116,7 +116,7 @@ module Scoutui::Commands
|
|
116
116
|
|
117
117
|
if Scoutui::Base::UserVars.instance.isTestData?(_val)
|
118
118
|
|
119
|
-
_v2=Scoutui::Base::
|
119
|
+
_v2=Scoutui::Base::UserVars.instance.normalize(_val)
|
120
120
|
|
121
121
|
Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " getData ==> #{_v2}"
|
122
122
|
else
|
data/lib/scoutui/version.rb
CHANGED
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: 2.0.3.
|
4
|
+
version: 2.0.3.38.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Kim
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|