itriagetestrail 0.4.1 → 0.4.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 +4 -4
- data/lib/itriagetestrail/version.rb +1 -1
- data/lib/itriagetestrail.rb +10 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31691a1e3ede04ad389dddb46d33e6ea3b5c0e03
|
4
|
+
data.tar.gz: 1a17ddd8fc32c8f38c1ae51b340ef9c09bdb6f65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7973546efe0d9ef293ab55da563cbed858231df8444cb2e739dcd726af0e2c0038f7c8fa8617fa080160a8ed93239a9ab47b1c41deac9e8d019d5568d8cfae4
|
7
|
+
data.tar.gz: e2b23265b13ddb2026d101df1b5f499f11cd2f2de9c352f7bf9c7df0db019cabffff3ab1677356717d617069507249e95c2bef254c9305abfa35d9b818fa7664
|
data/lib/itriagetestrail.rb
CHANGED
@@ -303,7 +303,6 @@ module Itriagetestrail
|
|
303
303
|
end
|
304
304
|
|
305
305
|
def extend_testrail_run
|
306
|
-
|
307
306
|
# Reset test scope to include all cases
|
308
307
|
body = { include_all: true }
|
309
308
|
@client.send_post("update_run/#{@run_id}", body)
|
@@ -406,10 +405,10 @@ module Itriagetestrail
|
|
406
405
|
@results[:results].each {|id| executed_ids << id[:case_id]}
|
407
406
|
|
408
407
|
# Save ids for more processes in this run
|
409
|
-
store_case_ids(executed_ids)
|
408
|
+
store_case_ids(executed_ids) if @shared_run == true
|
410
409
|
|
411
410
|
# If previous ids exist, retain them and their results
|
412
|
-
existing_cases.each { |case_id| executed_ids << case_id }
|
411
|
+
existing_cases.each { |case_id| executed_ids << case_id } if @shared_run == true
|
413
412
|
|
414
413
|
send = {include_all: false, case_ids: executed_ids}
|
415
414
|
@client.send_post("update_run/#{@run_id}", send)
|
@@ -424,20 +423,21 @@ module Itriagetestrail
|
|
424
423
|
close_run
|
425
424
|
end
|
426
425
|
|
427
|
-
|
428
|
-
delete_temp_files
|
429
|
-
File.write('./tmp/testrail_id', @run_id.to_s)
|
430
|
-
File.write('./tmp/testrail_ids', '')
|
431
|
-
end
|
432
|
-
|
426
|
+
# This method is only used publicly
|
433
427
|
def delete_temp_files
|
434
428
|
File.delete('./tmp/testrail_id') if File.exist?('./tmp/testrail_id')
|
435
429
|
File.delete('./tmp/testrail_ids') if File.exist?('./tmp/testrail_ids')
|
436
430
|
end
|
437
431
|
|
432
|
+
# This method is only used publicly
|
433
|
+
def initialize_temp_files
|
434
|
+
File.write('./tmp/testrail_id', @run_id.to_s)
|
435
|
+
File.write('./tmp/testrail_ids', '')
|
436
|
+
@shared_run = true
|
437
|
+
end
|
438
|
+
|
438
439
|
def close_run
|
439
440
|
@client.send_post("close_run/#{@run_id}", {})
|
440
|
-
delete_temp_files
|
441
441
|
end
|
442
442
|
|
443
443
|
def shutdown
|
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: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- a801069
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|