smqacloud 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/smqacloud.rb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffd890a353e49f12565e7915806655dde97dd261
|
4
|
+
data.tar.gz: 1319e65d24c82df13a4f602087849a8d9c3a5afb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 439fadec7200641934c7b4631fdc41b4b17997e99b042a7177ee625a7eba0e1f215627c44f020c2ed56be862c971f13713e6bd4408e04bed908b6169674883ff
|
7
|
+
data.tar.gz: 7bf8d0f22e973ce864a6ab435fbeb69b42a33a205c0215c9445bb6038290a114fd8f57d33939865f6eda8d7e3321d54deec170a61d87e1fbb5aca7b8845bd101
|
data/lib/smqacloud.rb
CHANGED
@@ -7,10 +7,10 @@ require 'watir-webdriver'
|
|
7
7
|
|
8
8
|
$fullTaskName = nil
|
9
9
|
@found = false
|
10
|
+
@path_here = Dir.pwd
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
Dir.glob("#{path}/**/*.rb") do |rb_file|
|
12
|
+
def self.get_file_full_path(taskname)
|
13
|
+
Dir.glob("#{@path_here}/src/pageObjects/**/*.rb") do |rb_file|
|
14
14
|
filename = File.basename(rb_file,File.extname(rb_file))
|
15
15
|
if filename == taskname then
|
16
16
|
$fullTaskName = rb_file
|
@@ -50,7 +50,7 @@ $add_variable = Hash.new
|
|
50
50
|
begin
|
51
51
|
|
52
52
|
dur1 = Time.now
|
53
|
-
get_file_full_path($
|
53
|
+
get_file_full_path($task_name)
|
54
54
|
begin
|
55
55
|
load "#{$fullTaskName}"
|
56
56
|
rescue => e
|
@@ -110,7 +110,7 @@ $add_variable = Hash.new
|
|
110
110
|
|
111
111
|
dur1 = Time.now
|
112
112
|
begin
|
113
|
-
get_file_full_path($
|
113
|
+
get_file_full_path($task_name)
|
114
114
|
rescue => e
|
115
115
|
puts e
|
116
116
|
end
|