Ifd_Automation 1.7.0 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/Ifd_Automation/file_steps.rb +19 -2
- data/lib/Ifd_Automation/version.rb +1 -1
- data/lib/Ifd_Automation_support/core.rb +3 -3
- data/project/Gemfile +1 -1
- data/project/features/TestData/globalData.yml +0 -2
- data/project/features/step_definitions/lib_steps/test +0 -0
- metadata +2 -4
- data/project/features/TestData/sshtest.txt +0 -2
- data/project/features/TestData/testfile.sql +0 -2
- data/project/features/step_definitions/lib_steps/test.rb +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d5a9ab98f45901972e11b5813ad31d4f7d1abc9
|
4
|
+
data.tar.gz: 0cd32afb25ebcecf00b74afe4f44d060eb9c2ec9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8271deb6baa6408bca39c9d854e1b7f72c9dc235314b14fddbca2bf40126866f959d6b03b9e65429e79a9f4fbaa893a434ee9749532243f2c6ebc8f3b4bc95db
|
7
|
+
data.tar.gz: 171818110ff8bba9b71cbd800eb74a7ba199356b633a1241fa28824bd4d32f77a7bafb7c7fe7f9ef21202a2c965530d7913b87e4a45085a5abbaef44a2c65c6d
|
@@ -21,10 +21,27 @@ Then /^I delete file "(.*)"$/ do |file_name|
|
|
21
21
|
end
|
22
22
|
|
23
23
|
When /^show me the params of "(.*)"$/ do |params_name|
|
24
|
-
if $PARAMS["#{params_name}"]
|
25
|
-
params_value = $PARAMS["#{params_name}"]
|
24
|
+
if $PARAMS["#{params_name.downcase}"]
|
25
|
+
params_value = $PARAMS["#{params_name.downcase}"]
|
26
26
|
p params_value
|
27
27
|
else
|
28
28
|
p "WARNING: *** Value of parameter #{params_name} not found"
|
29
29
|
end
|
30
30
|
end
|
31
|
+
|
32
|
+
Then /^I run exe file "(.*)" on windows$/ do |filename|
|
33
|
+
if File.exist?(filename)
|
34
|
+
system("'"+filename+"'")
|
35
|
+
else
|
36
|
+
raise "*** ERROR: File #{filename} is not existed."
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
Then /^I run exe file from test data location "(.*)" on windows$/ do |filename|
|
41
|
+
executable_file = $test_data_dir+filename
|
42
|
+
if File.exist?(executable_file)
|
43
|
+
system("'"+executable_file+"'")
|
44
|
+
else
|
45
|
+
raise "*** ERROR: File #{filename} is not existed"
|
46
|
+
end
|
47
|
+
end
|
@@ -13,7 +13,7 @@ end
|
|
13
13
|
|
14
14
|
def resolve_params url
|
15
15
|
# if url.include? "params="
|
16
|
-
condition = url.match(/params='([^']*)'/)[0]
|
16
|
+
condition = url.match(/params='([^']*)'/)[0].downcase
|
17
17
|
if condition
|
18
18
|
params_name = url.match(/params='([^']*)'/)[1]
|
19
19
|
params_value = $PARAMS["#{params_name}"]
|
@@ -36,7 +36,7 @@ end
|
|
36
36
|
# @return [String] binded URL or original URL if no placeholders
|
37
37
|
def resolve_ws_url url
|
38
38
|
unless @grabbed.nil?
|
39
|
-
matched = url.match(/grabbed='([^']*)'/)[0]
|
39
|
+
matched = url.match(/grabbed='([^']*)'/)[0].downcase
|
40
40
|
@grabbed.each { |key, value| url = url.gsub(matched, %/#{value}/) }
|
41
41
|
end
|
42
42
|
url
|
@@ -44,7 +44,7 @@ end
|
|
44
44
|
|
45
45
|
def resolve_script script
|
46
46
|
unless @stored.nil?
|
47
|
-
matched = script.match(/stored='([^']*)'/)[0]
|
47
|
+
matched = script.match(/stored='([^']*)'/)[0].downcase
|
48
48
|
@stored.each { |key, value| script = script.gsub(matched, %/#{value}/) }
|
49
49
|
end
|
50
50
|
script
|
data/project/Gemfile
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Ifd_Automation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anh Pham
|
@@ -294,10 +294,8 @@ files:
|
|
294
294
|
- project/Gemfile.lock
|
295
295
|
- project/Rakefile
|
296
296
|
- project/features/TestData/globalData.yml
|
297
|
-
- project/features/TestData/sshtest.txt
|
298
|
-
- project/features/TestData/testfile.sql
|
299
297
|
- project/features/TestSuite/test
|
300
|
-
- project/features/step_definitions/lib_steps/test
|
298
|
+
- project/features/step_definitions/lib_steps/test
|
301
299
|
- project/features/step_definitions/repositories/project_object.yml
|
302
300
|
- project/features/support/env.rb
|
303
301
|
- project/features/support/hooks.rb
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# When /^I login into system with username "(.*)" and password "(.*)"$/ do |username, password|
|
2
|
-
# steps %Q{
|
3
|
-
# I click on "mym_header.button_cookie"
|
4
|
-
# I click on "mym_header.button_login"
|
5
|
-
# I set text on "mym_login.textbox_username" with "#{username}"
|
6
|
-
# I set text on "mym_login.textbox_password" with "#{password}"
|
7
|
-
# I click on "mym_login.button_login"
|
8
|
-
# I wait for 2 seconds
|
9
|
-
# }
|
10
|
-
# end
|
11
|
-
#
|
12
|
-
# Then /^I should see the error message "(.*)" display$/ do |errormessage|
|
13
|
-
# steps %Q{
|
14
|
-
# I check property "mym_login.label_message_error" with "text" has value "#{errormessage}"
|
15
|
-
# }
|
16
|
-
# end
|