testcentricity_web 0.9.9.7 → 0.9.9.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c71416cfd99a10dea2dc2be6f6839d84a137c1e
4
- data.tar.gz: 60cc79fe28da6e8d69c52e23068432073fb16569
3
+ metadata.gz: 29f9ccbbaeaff5d2cd2d9e18c5dcb23eac4312d7
4
+ data.tar.gz: 94322548cb6730c84dea5775f8d1ac7f639f50c3
5
5
  SHA512:
6
- metadata.gz: 2368e5897e8f191883d036c34eb9a3fef18700aa60d63e690622d70a4e76ce068f510e9fcabf46c76ff6d70460dd8c3ac20f05da03a0385ff44dbd286192d060
7
- data.tar.gz: 94c4fc2a6d9c59d04b1548de667d73c97170983f4816fd9b3c9bd1b287fc898facbebcda560fda1c692e06142a8d1b9ba3c4b7e91f515e8962cf9087638064c2
6
+ metadata.gz: 71c08deb536ab8d8f513355ac5e8acd9cc2c569609c6cd871ad0dc5a455c50975c20afe7e15598e2c77127a6fbf03f1321e9c277b2bdab94d50b642f47c79569
7
+ data.tar.gz: 709f265a8e6d7d05bfb8840ba32ef90821b0340823fefa02979072eb690284d82c791242b825629f9b6270bac7f0f47c9b72cd61ccecc33474287fe89e315e3c
@@ -44,19 +44,21 @@ module TestCentricity
44
44
 
45
45
 
46
46
  class ExcelDataSource < TestCentricity::DataSource
47
- def pick_excel_data_source(sheet, row_name)
47
+ def pick_excel_data_source(sheet, row_spec)
48
48
  environment = ENV['TEST_ENVIRONMENT']
49
49
  data_file = "#{XL_PRIMARY_DATA_PATH}#{environment}_data.xls"
50
- data_file = XL_PRIMARY_DATA_FILE unless ExcelData.rowspec_exists?(data_file, sheet, row_name)
50
+ data_file = XL_PRIMARY_DATA_FILE unless ExcelData.rowspec_exists?(data_file, sheet, row_spec)
51
51
  data_file
52
52
  end
53
53
 
54
- def read_excel_row_data(sheet, row_name)
55
- ExcelData.read_row_data(pick_excel_data_source(sheet, row_name), sheet, row_name)
54
+ def read_excel_row_data(sheet, row_name, parallel = false)
55
+ (parallel == :parallel && ENV['PARALLEL']) ? row_spec = "#{row_name}#{ENV['TEST_ENV_NUMBER']}" : row_spec = row_name
56
+ ExcelData.read_row_data(pick_excel_data_source(sheet, row_spec), sheet, row_spec)
56
57
  end
57
58
 
58
- def read_excel_pool_data(sheet, row_name)
59
- ExcelData.read_row_from_pool(pick_excel_data_source(sheet, row_name), sheet, row_name)
59
+ def read_excel_pool_data(sheet, row_name, parallel = false)
60
+ (parallel == :parallel && ENV['PARALLEL']) ? row_spec = "#{row_name}#{ENV['TEST_ENV_NUMBER']}" : row_spec = row_name
61
+ ExcelData.read_row_from_pool(pick_excel_data_source(sheet, row_name), sheet, row_spec)
60
62
  end
61
63
 
62
64
  def read_excel_range_data(sheet, range_name)
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '0.9.9.7'
2
+ VERSION = '0.9.9.8'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testcentricity_web
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.9.7
4
+ version: 0.9.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - A.J. Mrozinski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-26 00:00:00.000000000 Z
11
+ date: 2016-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler