testrail-rspec 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/testrail-rspec/update-testrails.rb +2 -8
- data/lib/testrail-rspec/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee6a338572d4b5c63227fab4748dea00e2975d390de746ed6fe42291868d6bb6
|
4
|
+
data.tar.gz: bace0b04df1c4a78e22be828a70539ca828ed8a37d3a5c8401daf19f1d10a946
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38d5d5e4d685800da5a144afd40f4bd4e83392352630d28ec34d88410fbb34d48bed80750782a8c3007c563efd9eba8f1f40603dc39fb047dc76f6290add9ac2
|
7
|
+
data.tar.gz: f1d48a18b498ba0a8c7fc9e3b6751e8fd693c4a7cae7b84454abd49e48fe99bfb4b7e1d8203701267976dc92942fac467fe18366798cdb15e76addb6fe96f313
|
@@ -59,11 +59,8 @@ module TestrailRSpec
|
|
59
59
|
@run_id = @@run_id = client.create_test_run("add_run/#{@config['project_id']}", {"suite_id": @config['suite_id']}) if @run_id.nil?
|
60
60
|
|
61
61
|
case_list.map do |case_id|
|
62
|
-
|
63
|
-
response
|
64
|
-
"add_result_for_case/#{@run_id}/#{case_id}",
|
65
|
-
{status_id: status_id, comment: message}
|
66
|
-
)
|
62
|
+
response = client.send_post("add_result_for_case/#{@run_id}/#{case_id}",{ status_id: status_id })
|
63
|
+
warn("\n###################### \ninvalid #case_id: #{case_id} \n######################") if (response.nil? || response['error'] != nil) && (response.class != Integer)
|
67
64
|
end
|
68
65
|
|
69
66
|
response
|
@@ -127,9 +124,6 @@ module TestrailRSpec
|
|
127
124
|
warn("\n###################### \ninvalid #suite_id: #{id} \n######################") if client.send_get("get_suite/#{id}").nil? || client.send_get("get_suite/#{id}")['error'] != nil
|
128
125
|
when :run_id
|
129
126
|
warn("\n###################### \ninvalid #run_id: #{id} \n######################") if client.send_get("get_run/#{id}").nil? || client.send_get("get_run/#{id}")['error'] != nil
|
130
|
-
when :case_id
|
131
|
-
return if client.send_get("get_case/#{id}").class == Integer
|
132
|
-
warn("\n###################### \ninvalid #case_id: #{id} \n######################") if client.send_get("get_case/#{id}").nil? || client.send_get("get_case/#{id}")['error'] != nil
|
133
127
|
else
|
134
128
|
p "no config available"
|
135
129
|
end
|