testcentricity_web 1.0.4 → 1.0.5
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: acada2c571dec453cbec4de28d0607efc44e267e
|
|
4
|
+
data.tar.gz: 49a1f4ae2be03a57ed4d833b100c956fb5aaa493
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9e6a07b4c065fce75e4cad743db595fef512d9fb34ff4e7bce6cc9ac18fd19266b871042bd43054787e0f06efc5f83ea219b5d357d1fd6a4fb2160113145372a
|
|
7
|
+
data.tar.gz: a8dd9f0535d3a02ce200de98a6bee4a56d465f3d294b7f0c1935503b1f990b44da05d4fc116094133f92ca4fdf9dfd51992ac360a595a3e3dc8fb0c285f66e7c
|
|
@@ -45,9 +45,13 @@ module TestCentricity
|
|
|
45
45
|
|
|
46
46
|
class ExcelDataSource < TestCentricity::DataSource
|
|
47
47
|
def pick_excel_data_source(sheet, row_spec)
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
if ENV['TEST_ENVIRONMENT']
|
|
49
|
+
environment = ENV['TEST_ENVIRONMENT']
|
|
50
|
+
data_file = "#{XL_PRIMARY_DATA_PATH}#{environment}_data.xls"
|
|
51
|
+
data_file = XL_PRIMARY_DATA_FILE unless ExcelData.rowspec_exists?(data_file, sheet, row_spec)
|
|
52
|
+
else
|
|
53
|
+
data_file = XL_PRIMARY_DATA_FILE
|
|
54
|
+
end
|
|
51
55
|
data_file
|
|
52
56
|
end
|
|
53
57
|
|
|
@@ -61,9 +61,9 @@ module TestCentricity
|
|
|
61
61
|
#
|
|
62
62
|
# @param element_hash [Hash] names of buttons (as a symbol) and CSS selectors or XPath expressions that uniquely identifies buttons
|
|
63
63
|
# @example
|
|
64
|
-
# buttons
|
|
65
|
-
#
|
|
66
|
-
#
|
|
64
|
+
# buttons new_account_button: 'button#new-account',
|
|
65
|
+
# save_button: 'button#save',
|
|
66
|
+
# cancel_button: 'button#cancel'
|
|
67
67
|
#
|
|
68
68
|
def self.buttons(element_hash)
|
|
69
69
|
element_hash.each do |element_name, locator|
|
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: 1.0.
|
|
4
|
+
version: 1.0.5
|
|
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-08-
|
|
11
|
+
date: 2016-08-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|