testcentricity_web 0.6.8 → 0.6.9

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: 9cb0e1a1851e2ac0feb4df8e4f1b0b80b7b7f2d4
4
- data.tar.gz: 35ac1c8ade715fdd4ed7b1157caa297561b8e0a3
3
+ metadata.gz: 03703d2b0ac30d1ce1ee17b03a87aaba02182010
4
+ data.tar.gz: 378535ae31a639179f88579bcd3ac9b369bed9dd
5
5
  SHA512:
6
- metadata.gz: 653539ce697349cc81341c96669abc6cb647e687fa630bc79c57acc844892a667c871d771673501c71b6427b25ad570142d6c0b570c28f9827ba1b3739432043
7
- data.tar.gz: 6305c88271b41331e3dfca4fffd697c8b4223b69a03bc8821523dd0d3fbd98ad2d289922af589c600a7c5241202d00f143a7d5789730b3ea25e52d6c42768b31
6
+ metadata.gz: 843eebcf476273c0b468f19423d80b23c53e34bcd96ffe068993a734c80d641475fc9cbe0258616b82d51c8dbfff452c52d778c9a9e79e127cb00f52e4097d10
7
+ data.tar.gz: 45a2d098a68bdd8fe403f2089ddf2541cefe8000f98a20f41dd155c66f99dddb3d5a58fce1129a1c6abaf023d3774496dac98668e21310a46d04b839720c3d89
data/README.md CHANGED
@@ -380,7 +380,7 @@ staging server inside your LAN, you must set the `TUNNELING` Environment Variabl
380
380
  For remotely hosted desktop web browsers on the BrowserStack service, the following **Environment Variables** must be set as described in
381
381
  the table below. Refer to the [Browserstack-specific capabilities chart page](https://www.browserstack.com/automate/capabilities#capabilities-browserstack) for information regarding the specific capabilities.
382
382
 
383
- **Environment Variable** | Description
383
+ **Environment Variable** | **Description**
384
384
  --------------- | ----------------
385
385
  `WEB_BROWSER` | Must be set to `browserstack`
386
386
  `BS_USERNAME` | Must be set to your BrowserStack account user name
@@ -398,7 +398,7 @@ the table below. Refer to the [Browserstack-specific capabilities chart page](ht
398
398
  For remotely hosted mobile web browsers on the BrowserStack service, the following **Environment Variables** must be set as described in
399
399
  the table below. Refer to the [Browserstack-specific capabilities chart page](https://www.browserstack.com/automate/capabilities#capabilities-browserstack) for information regarding the specific capabilities.
400
400
 
401
- **Environment Variable** | Description
401
+ **Environment Variable** | **Description**
402
402
  --------------- | ----------------
403
403
  `WEB_BROWSER` | Must be set to `browserstack`
404
404
  `BS_USERNAME` | Must be set to your BrowserStack account user name
@@ -416,7 +416,7 @@ the table below. Refer to the [Browserstack-specific capabilities chart page](ht
416
416
  For remotely hosted desktop web browsers on the CrossBrowserTesting service, the following **Environment Variables** must be set as described in
417
417
  the table below. Use the Configuration Wizard on the [Start a Selenium Test page](https://app.crossbrowsertesting.com/selenium/run) to obtain information regarding the specific capabilities.
418
418
 
419
- **Environment Variable** | Description
419
+ **Environment Variable** | **Description**
420
420
  --------------- | ----------------
421
421
  `WEB_BROWSER` | Must be set to `crossbrowser`
422
422
  `CB_USERNAME` | Must be set to your CrossBrowserTesting account user name or email address
@@ -431,7 +431,7 @@ the table below. Use the Configuration Wizard on the [Start a Selenium Test page
431
431
  For remotely hosted mobile web browsers on the CrossBrowserTesting service, the following **Environment Variables** must be set as described in
432
432
  the table below. Use the Configuration Wizard on the [Start a Selenium Test page](https://app.crossbrowsertesting.com/selenium/run) to obtain information regarding the specific capabilities.
433
433
 
434
- **Environment Variable** | Description
434
+ **Environment Variable** | **Description**
435
435
  --------------- | ----------------
436
436
  `WEB_BROWSER` | Must be set to `crossbrowser`
437
437
  `CB_USERNAME` | Must be set to your CrossBrowserTesting account user name or email address
@@ -447,7 +447,7 @@ the table below. Use the Configuration Wizard on the [Start a Selenium Test page
447
447
  For remotely hosted desktop web browsers on the Sauce Labs service, the following **Environment Variables** must be set as described in
448
448
  the table below. Use the Selenium API on the [Platform Configurator page](https://wiki.saucelabs.com/display/DOCS/Platform+Configurator#/) to obtain information regarding the specific capabilities.
449
449
 
450
- **Environment Variable** | Description
450
+ **Environment Variable** | **Description**
451
451
  --------------- | ----------------
452
452
  `WEB_BROWSER` | Must be set to `saucelabs`
453
453
  `SL_USERNAME` | Must be set to your Sauce Labs account user name or email address
@@ -463,7 +463,7 @@ the table below. Use the Selenium API on the [Platform Configurator page](https:
463
463
  For remotely hosted mobile web browsers on the Sauce Labs service, the following **Environment Variables** must be set as described in
464
464
  the table below. Use the Selenium API on the [Platform Configurator page](https://wiki.saucelabs.com/display/DOCS/Platform+Configurator#/) to obtain information regarding the specific capabilities.
465
465
 
466
- **Environment Variable** | Description
466
+ **Environment Variable** | **Description**
467
467
  --------------- | ----------------
468
468
  `WEB_BROWSER` | Must be set to `saucelabs`
469
469
  `SL_USERNAME` | Must be set to your Sauce Labs account user name or email address
@@ -481,7 +481,7 @@ the table below. Use the Selenium API on the [Platform Configurator page](https:
481
481
  For remotely hosted desktop web browsers on the TestingBot service, the following **Environment Variables** must be set as described in
482
482
  the table below. Refer to the [TestingBot List of Available Browsers page](https://testingbot.com/support/getting-started/browsers.html) for information regarding the specific capabilities.
483
483
 
484
- **Environment Variable** | Description
484
+ **Environment Variable** | **Description**
485
485
  --------------- | ----------------
486
486
  `WEB_BROWSER` | Must be set to `testingbot`
487
487
  `TB_USERNAME` | Must be set to your TestingBot account user name
@@ -1,4 +1,9 @@
1
1
  module TestCentricity
2
+
3
+ XL_PRIMARY_DATA_PATH ||= 'features/test_data/'
4
+ XL_PRIMARY_DATA_FILE ||= "#{XL_PRIMARY_DATA_PATH}data.xls"
5
+
6
+
2
7
  class DataObject
3
8
  attr_accessor :current
4
9
  attr_accessor :context
@@ -21,8 +26,13 @@ module TestCentricity
21
26
  class DataSource
22
27
  attr_accessor :current
23
28
 
29
+ def get_environment_data_file
30
+ environment = ENV['TEST_ENVIRONMENT']
31
+ "#{XL_PRIMARY_DATA_PATH}#{environment}_data.xls"
32
+ end
33
+
24
34
  def pick_excel_data_source(sheet, row_name)
25
- data_file = ExcelData.get_environment_data_file
35
+ data_file = get_environment_data_file
26
36
  data_file = XL_PRIMARY_DATA_FILE unless ExcelData.rowspec_exists?(data_file, sheet, row_name)
27
37
  data_file
28
38
  end
@@ -34,5 +44,9 @@ module TestCentricity
34
44
  def read_excel_pool_data(sheet, row_name)
35
45
  ExcelData.read_row_from_pool(pick_excel_data_source(sheet, row_name), sheet, row_name)
36
46
  end
47
+
48
+ def read_excel_range_data(sheet, range_name)
49
+ ExcelData.read_range_data(pick_excel_data_source(sheet, range_name), sheet, range_name)
50
+ end
37
51
  end
38
52
  end
@@ -5,19 +5,9 @@ require 'spreadsheet'
5
5
 
6
6
 
7
7
  module TestCentricity
8
-
9
- XL_PRIMARY_DATA_PATH ||= 'features/test_data/'
10
- XL_PRIMARY_DATA_FILE ||= "#{XL_PRIMARY_DATA_PATH}data.xls"
11
-
12
-
13
8
  class ExcelData
14
9
  @mru = {}
15
10
 
16
- def self.get_environment_data_file
17
- environment = ENV['TEST_ENVIRONMENT']
18
- "#{XL_PRIMARY_DATA_PATH}#{environment}_data.xls"
19
- end
20
-
21
11
  def self.worksheet_exists?(file, sheet)
22
12
  exists = false
23
13
  work_book = Spreadsheet.open file
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '0.6.8'
2
+ VERSION = '0.6.9'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testcentricity_web
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.8
4
+ version: 0.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - A.J. Mrozinski