itriagetestrail 1.0.28 → 1.0.29
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 898fa6b771b837a565622643331fb0e7bb002e158902e02f63d45850d052753c
|
4
|
+
data.tar.gz: c42798bc295c0c385ca0b710fde77f94fab90497c36d638175ed560237a951dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14c01636f49eb622acf4d068c6c52360c09d1ad3c1a88cfaa41f617ae5db5f47466653ed4b0ba5ad9cb19321c75818030d9ec65bef5342b11cd056d3dd18d2df
|
7
|
+
data.tar.gz: 89cca8f3fc18e6c862d8804247a79c3b962b0539a74a573c18d225124956de879c23ee201aac52655c8cb3324897465a3a11462cc798632b2333da14cfad25a9
|
data/lib/itriagetestrail.rb
CHANGED
@@ -48,9 +48,8 @@ module Itriagetestrail
|
|
48
48
|
def testrail_online
|
49
49
|
# This is the very first call to TestRail
|
50
50
|
make_connection
|
51
|
-
|
52
|
-
|
53
|
-
if @client.response_code == '200'
|
51
|
+
projects
|
52
|
+
if @projects.response_code == '200'
|
54
53
|
true
|
55
54
|
else
|
56
55
|
puts "**** TESTRAIL IS OFFLINE for maintenance or other reason with status code #{@client.response_code}"
|
@@ -24,10 +24,15 @@ module Itriagetestrail
|
|
24
24
|
entry = {runId: @run_id, results: @results[:results]}
|
25
25
|
|
26
26
|
Dir.mkdir('./tmp') unless File.exist?('./tmp')
|
27
|
-
|
28
|
-
file = File.open("./tmp/batch/#{@run_id}", 'a')
|
27
|
+
file = File.open("./tmp/batch", 'a')
|
29
28
|
file.write("#{entry}\n")
|
30
29
|
file.close
|
30
|
+
|
31
|
+
# keep track of what is submitted
|
32
|
+
@submitted[:results] << @results[:results]
|
33
|
+
|
34
|
+
# clear the buffer for next class
|
35
|
+
@results[:results] = []
|
31
36
|
end
|
32
37
|
|
33
38
|
# Use this method to read bulk records of results stored in the temp file, and send entire set as a
|
@@ -51,7 +56,6 @@ module Itriagetestrail
|
|
51
56
|
content = eval(line)
|
52
57
|
unless run_id
|
53
58
|
run_id = content[:runId]
|
54
|
-
puts run_id
|
55
59
|
end
|
56
60
|
content[:results].each { |result| results << result }
|
57
61
|
end
|