itriagetestrail 1.0.20 → 1.0.25
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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 45b711aadab241839d40b0b6f4800224902e3d013833c3af8add62123c855620
|
4
|
+
data.tar.gz: e58c709d9e06b9bc36b5f69e92bbf9a1337e6efc4c515474600b2ca6aaeb6da3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e25443719e4a6ec98ea7800aba8ed3de34f3ba54f83488e592ac9d6236700dd0edd660cf9aadcac36180bf4fd097081b5fa8dfd21f9be0a1e6875628e4b0d4a
|
7
|
+
data.tar.gz: 3d8da4feb3c569a92dc3b9c45d5883af71c7f1491915072092dde88696bf9146ac6cedd008fe6c357ce19ebdc5f9a90654e226d3705e7ab423c42e12f9394ef3
|
data/lib/itriagetestrail.rb
CHANGED
@@ -171,14 +171,14 @@ module Itriagetestrail
|
|
171
171
|
|
172
172
|
#Supports tagging
|
173
173
|
@testrail_case_fields = @client.send_get('get_case_fields')
|
174
|
-
|
175
|
-
# TODO: Look into configuration_ids to add a plan
|
176
|
-
add_testrail_run if @run_id.to_i.zero?
|
177
|
-
|
178
174
|
@pool = Pool.new(1)
|
179
|
-
|
180
175
|
@setup = true
|
181
176
|
end
|
177
|
+
|
178
|
+
def create_run_id
|
179
|
+
# TODO: Look into configuration_ids to add a plan
|
180
|
+
add_testrail_run if @run_id.to_i.zero?
|
181
|
+
end
|
182
182
|
|
183
183
|
def initialize_variables
|
184
184
|
make_connection
|
@@ -226,8 +226,8 @@ module Itriagetestrail
|
|
226
226
|
# This method is only used publicly
|
227
227
|
def initialize_temp_files
|
228
228
|
Dir.mkdir('./tmp') unless File.exist?('./tmp')
|
229
|
-
File.write(run_tempfile_name, @run_id
|
230
|
-
File.write(plan_tempfile_name, @plan_id
|
229
|
+
File.write(run_tempfile_name, @run_id)
|
230
|
+
File.write(plan_tempfile_name, @plan_id)
|
231
231
|
|
232
232
|
@shared_run = true
|
233
233
|
end
|
@@ -113,6 +113,7 @@ module TestRail
|
|
113
113
|
response = conn.request(request)
|
114
114
|
@response_code = response.code
|
115
115
|
if @response_code == '429'
|
116
|
+
write_to_529_file
|
116
117
|
sleep(response.header['retry-after'].to_i)
|
117
118
|
elsif @response_code == '500'
|
118
119
|
puts response.to_s
|
@@ -131,6 +132,14 @@ module TestRail
|
|
131
132
|
|
132
133
|
result
|
133
134
|
end
|
135
|
+
|
136
|
+
# This method is only used publicly
|
137
|
+
def write_to_529_file
|
138
|
+
Dir.mkdir('./tmp') unless File.exist?('./tmp')
|
139
|
+
file = File.open('./tmp/testrail_529s', 'a')
|
140
|
+
file.write(Time.now)
|
141
|
+
file.close
|
142
|
+
end
|
134
143
|
end
|
135
144
|
|
136
145
|
class APIError < StandardError
|
@@ -29,6 +29,9 @@ module Itriagetestrail
|
|
29
29
|
|
30
30
|
add_testrail_test_case(scenario_title, external_id, scenario_steps, section_id)
|
31
31
|
sleep 1
|
32
|
+
|
33
|
+
# Update Test Run
|
34
|
+
extend_testrail_run
|
32
35
|
end
|
33
36
|
# store the case id associated with the external_id
|
34
37
|
associate_result(external_id)
|
@@ -74,12 +77,7 @@ module Itriagetestrail
|
|
74
77
|
if testrail_case_tag_ids == scenario_tag_ids || testrail_case_steps == @scenario_steps
|
75
78
|
@client.send_post("update_case/#{case_id}", { 'custom_tags': scenario_tag_ids, 'custom_steps': @scenario_steps})
|
76
79
|
end
|
77
|
-
|
78
|
-
# Now that we have the case id, lets update tags
|
79
80
|
end
|
80
|
-
|
81
|
-
# Update Test Run
|
82
|
-
extend_testrail_run
|
83
81
|
end
|
84
82
|
end
|
85
83
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: itriagetestrail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.25
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- a801069
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tzinfo
|
@@ -120,8 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
- !ruby/object:Gem::Version
|
121
121
|
version: '0'
|
122
122
|
requirements: []
|
123
|
-
|
124
|
-
rubygems_version: 2.5.2.3
|
123
|
+
rubygems_version: 3.0.3
|
125
124
|
signing_key:
|
126
125
|
specification_version: 4
|
127
126
|
summary: Plugin to export your cucumber tests in the Testrail
|