Ifd_Automation 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/Ifd_Automation/methods/core.rb +14 -12
- data/lib/Ifd_Automation/version.rb +1 -1
- data/project/features/support/env.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: 991d0f84211f38d2a0e5e8d58ad9bad2e4a0368f
|
4
|
+
data.tar.gz: e4eaf58e44e4074503f1cd9c53b12882d4fa311a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
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
|
349
|
+
return globalData["#{name}"]
|
348
350
|
rescue Exception
|
349
351
|
return name
|
350
352
|
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.
|
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-
|
11
|
+
date: 2016-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|