testcentricity_web 0.6.8 → 0.6.9
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/README.md +7 -7
- data/lib/testcentricity_web/data_objects_helper.rb +15 -1
- data/lib/testcentricity_web/excel_helper.rb +0 -10
- data/lib/testcentricity_web/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03703d2b0ac30d1ce1ee17b03a87aaba02182010
|
4
|
+
data.tar.gz: 378535ae31a639179f88579bcd3ac9b369bed9dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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
|