itriagetestrail 1.0.19 → 1.0.24

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: c6e0c367c260f8cfccee43ee81d133a72220a787
4
- data.tar.gz: ec32c696a0c2d17da1936dab0b6311cf1ab6385d
3
+ metadata.gz: c3b6e074275e751bfbd87ff98612abaae638f5dd
4
+ data.tar.gz: b848b3e5ccdd448e0657bb8af3a880cbde039d51
5
5
  SHA512:
6
- metadata.gz: 5a9680cba7bf9077af239f6037d4df1386367a79dd4a86778f54296c15025ddee643ba0af0fbd794f779e394621edbb6d8b731a8fe9d32738822fc291a7ab474
7
- data.tar.gz: 6c4f39b84b77a840b876854a67c9737aa7cd1bc377c656c05b0282d68fb1716306500cad2794be4d0af4415d98f14f1bedeb58bb260e3e629aa76517db054b56
6
+ metadata.gz: b17a29abdd9529a1d320fdde01a479defba5e2b441339f76f746a157a100ff5b08d49729c1f0ca267c1ff0636548dd25e10d5dadf8114f7c0f35579989182dee
7
+ data.tar.gz: 14e2ed33864792fab26e62a987dd41329b3761252c04915a5e39c1d61d579f6532ac380a31a86f0709c5abf3ef7b4a49f271c23b1d45d479a4d9ba8996ce02e0
@@ -50,7 +50,12 @@ module Itriagetestrail
50
50
  make_connection
51
51
  @client.send_get('get_projects')
52
52
 
53
- @client.response_code == '200' ? true : false
53
+ if @client.response_code == '200'
54
+ true
55
+ else
56
+ puts "**** TESTRAIL IS OFFLINE for maintenance or other reason with status code #{@client.response_code}"
57
+ false
58
+ end
54
59
  end
55
60
 
56
61
  def _execute
@@ -166,14 +171,14 @@ module Itriagetestrail
166
171
 
167
172
  #Supports tagging
168
173
  @testrail_case_fields = @client.send_get('get_case_fields')
169
-
170
- # TODO: Look into configuration_ids to add a plan
171
- add_testrail_run if @run_id.to_i.zero?
172
-
173
174
  @pool = Pool.new(1)
174
-
175
175
  @setup = true
176
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
177
182
 
178
183
  def initialize_variables
179
184
  make_connection
@@ -221,8 +226,8 @@ module Itriagetestrail
221
226
  # This method is only used publicly
222
227
  def initialize_temp_files
223
228
  Dir.mkdir('./tmp') unless File.exist?('./tmp')
224
- File.write(run_tempfile_name, @run_id.to_s)
225
- File.write(plan_tempfile_name, @plan_id.to_s)
229
+ File.write(run_tempfile_name, @run_id)
230
+ File.write(plan_tempfile_name, @plan_id)
226
231
 
227
232
  @shared_run = true
228
233
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Itriagetestrail
2
- VERSION = '1.0.19'.freeze
2
+ VERSION = '1.0.24'.freeze
3
3
  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.19
4
+ version: 1.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - a801069
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-09 00:00:00.000000000 Z
11
+ date: 2020-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tzinfo