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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df8498418e7065e4ddcc12961d6142d0d5f5c80c
4
- data.tar.gz: 6f32532b72cf8c054e8a00413d0dd464e0215d03
3
+ metadata.gz: 2d5a9ab98f45901972e11b5813ad31d4f7d1abc9
4
+ data.tar.gz: 0cd32afb25ebcecf00b74afe4f44d060eb9c2ec9
5
5
  SHA512:
6
- metadata.gz: 0d8d6b66e566c2510a54338e7a796c9d059c0d03a9a708b41dcdf31a12e513a3b175ad190bbf55d4524c8f7f04f55e0244633224c4fd6d78b5e4677459195e76
7
- data.tar.gz: 1590841f166adde9f93e4d4ab5f7117255ead493d9a847fc68822c5f4c2a3d333ad7b482a34fd465981297f44ea7bb8c40e8da1108ed6b7364d5c8514a338020
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
@@ -1,3 +1,3 @@
1
1
  module IfdAutomation
2
- VERSION = "1.7.0"
2
+ VERSION = "1.8.0"
3
3
  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
@@ -1,3 +1,3 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
- gem 'Ifd_Automation'
3
+ #gem 'Ifd_Automation'
@@ -1,3 +1 @@
1
1
  testpage: http://google.com
2
- testREST: https://hacker-news.firebaseio.com/v0/topstories.json?print=pretty
3
-
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.7.0
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.rb
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,2 +0,0 @@
1
- pwd
2
- ls
@@ -1,2 +0,0 @@
1
- delete from autofeatures where id=12;
2
- delete from autofeatures where id=13;
@@ -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