test_rail_integration 0.0.5.1 → 0.0.5.2
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: 500f811d7afa686b7522dd903d9635d8c435e460
|
4
|
+
data.tar.gz: 7a7d0d126119fdc6a16a213c03d35b49a10cb39e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd920708c0d64cee29f5f332f532c42346d30aeb9072f784ac10db7a42506df5e53ba746e822153886799f249f49434ca5a36b9cd6c6b53f6a552fe079a83444
|
7
|
+
data.tar.gz: 34473e2da745a792b65190d3fb050fbfe3a1b34eba7844c76690250974be200488f02c1d286d2d50c35f43ac93f9cc9586f0816a3e7230508cae136d02932321
|
@@ -17,8 +17,8 @@
|
|
17
17
|
:test_passed_comment: "test **passed**"
|
18
18
|
:test_failed_comment: "test **failed**"
|
19
19
|
|
20
|
-
:ventures:
|
21
|
-
:environments:
|
20
|
+
:ventures: vn|id|ph|my|sg|th #values for generating parametrized url for running test
|
21
|
+
:environments: live_test|staging|showroom #values for generating parametrized url for running test
|
22
22
|
|
23
23
|
:in_progress: " (in progress)" #value for changing test run name for monitoring complete of test run
|
24
24
|
|
@@ -28,8 +28,8 @@ module TestRail
|
|
28
28
|
# Writing test run ID into test rail data file
|
29
29
|
#
|
30
30
|
def self.write_test_run_id(test_run_id)
|
31
|
-
test_rail_data_file = File.read(CONFIG_PATH).gsub(/^:test_run_id: \d+/, ":test_run_id: #{test_run_id}")
|
32
|
-
config_file = File.open(CONFIG_PATH, "w")
|
31
|
+
test_rail_data_file = File.read(TestRailDataLoad::CONFIG_PATH).gsub(/^:test_run_id: \d+/, ":test_run_id: #{test_run_id}")
|
32
|
+
config_file = File.open(TestRailDataLoad::CONFIG_PATH, "w")
|
33
33
|
config_file.write (test_rail_data_file)
|
34
34
|
config_file.close
|
35
35
|
end
|
@@ -11,7 +11,7 @@ module TestRail
|
|
11
11
|
# Checking of correct naming of created test run and return parameters for runnng test run
|
12
12
|
#
|
13
13
|
def initialize
|
14
|
-
parameters = Connection.test_run_name.downcase.match(
|
14
|
+
parameters = Connection.test_run_name.downcase.match(/(#{VENTURE_REGEX}) (#{ENVIRONMENT_REGEX})*/)
|
15
15
|
begin
|
16
16
|
@venture = parameters[1]
|
17
17
|
@environment = parameters[2]
|