Ifd_Automation 1.1.0 → 1.2.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: 55806978fd18343ef117c9d5289318596aa815d6
4
- data.tar.gz: 5b1ffad2419aaa188816241c79533c30a2d1290a
3
+ metadata.gz: 991d0f84211f38d2a0e5e8d58ad9bad2e4a0368f
4
+ data.tar.gz: e4eaf58e44e4074503f1cd9c53b12882d4fa311a
5
5
  SHA512:
6
- metadata.gz: 06075b99a853adc480dcea447e58f82f109f27a9cd649dadfcf52a9d38cd8c6d5febfe357359aab8f869561b620e18fba38adcfb5816d6a9b90f0744076cf222
7
- data.tar.gz: 79b33f74f0debf6d0bd8c144c3ee40c3abc4254546d77678f05d8fff83ed6a78e828a188ce157ec55f04ae593d581401ba5318c6a26983b7164543443bce4d11
6
+ metadata.gz: d36ed1b78fc55515acbf207f4f8806759219da12ad6e94d3c21d4a17a9122a06d9956d2215cd205652d3b53a26bc559ed8341549e659853b6571a04a94d6b0bb
7
+ data.tar.gz: cbdc4748c7e5efb21416136d09eafd5c62ede213d469c4d1dc9a64346813a68987d0a9c23c596894b3f4cddf8041cfd8da1b0393e93241146b969e4f87c41238
@@ -330,21 +330,23 @@ def get_element_attribute(access_type, access_name, attribute_name)
330
330
  $driver.find_element(:"#{access_type}" => "#{access_name}").attribute("#{attribute_name}")
331
331
  end
332
332
 
333
- #Get data from the 'testdata file'. if not valid, then testdataid is passed back
334
- def getTestData(testdataid)
335
- begin
336
- sTestDataidArr = testdataid.downcase.split('.')
337
- testdata = $globalData[sTestDataidArr.first][sTestDataidArr.last]
338
- puts (testdata)
339
- return testdata
340
- rescue Exception
341
- return testdataid
342
- end
343
- end
333
+ # #Get data from the 'testdata file'. if not valid, then testdataid is passed back
334
+ # def getTestData(testdataid)
335
+ # begin
336
+ # sTestDataidArr = testdataid.downcase.split('.')
337
+ # testdata = $globalData[sTestDataidArr.first][sTestDataidArr.last]
338
+ # puts (testdata)
339
+ # return testdata
340
+ # rescue Exception
341
+ # return testdataid
342
+ # end
343
+ # end
344
344
 
345
345
  def data(name)
346
+ require 'yaml'
347
+ globalData = YAML.load_file("#{$test_data_dir}/globalData.yml")
346
348
  begin
347
- return $globalData[name.downcase]
349
+ return globalData["#{name}"]
348
350
  rescue Exception
349
351
  return name
350
352
  end
@@ -1,5 +1,5 @@
1
1
  module Ifd
2
2
  module Automation
3
- VERSION = '1.1.0'
3
+ VERSION = '1.2.0'
4
4
  end
5
5
  end
@@ -6,7 +6,7 @@ $test_data_dir = $base_dir + '/features/TestData/'
6
6
  $sql_dir = $base_dir + '/features/TestData/SqlScript/'
7
7
  $_CFWEB['Download Dir'] = "#{$test_data_dir}DownloadFolder/"
8
8
  $_CFWEB['Expected Data Dir'] = "#{$test_data_dir}/ExpectedDataFile/"
9
- $globalData = YAML.load_file("#{$test_data_dir}/globalData.yml")
9
+ # $globalData = YAML.load_file("#{$test_data_dir}/globalData.yml")
10
10
  PROJECT_CONFIG = YAML.load_file("#{$current_dir}/project_config.yml")
11
11
 
12
12
  STDOUT.sync = true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Ifd_Automation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anh Pham
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-15 00:00:00.000000000 Z
11
+ date: 2016-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber