onlyoffice_testrail_wrapper 0.2.0 → 0.3.0
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
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19634fbfe2b46911fd5e1f2cb47fd4d832bb0daea5ef9696ee1b8af9c3437b6e
|
4
|
+
data.tar.gz: 3fb395f8bf1ae4f6358de89f79c2fa84aab9841981c7708c3e1c2238606683cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4adc0fea2c094fa440e75af45428e11d3c5e719ebe2b0bf1448fc827ae26d70dcac81ac6bbc0b70941a2bc2ac647415f711efa2b02648d294167261863d9960
|
7
|
+
data.tar.gz: b84ee3c105b0266d153dd095f27303af39620d75342018c71eaab625d10d533496628e0b9801ecfb9589b5b680cdb5a82253764162cbe34390c38ec2603fc823
|
@@ -22,6 +22,8 @@ module OnlyofficeTestrailWrapper
|
|
22
22
|
attr_reader :created_on
|
23
23
|
# @return [String] url to current test plan
|
24
24
|
attr_reader :url
|
25
|
+
# @return [String] error message if any happens
|
26
|
+
attr_reader :error
|
25
27
|
|
26
28
|
def initialize(name = '', entries = [], description = '', milestone_id = nil, id = nil)
|
27
29
|
@name = name
|
@@ -22,6 +22,8 @@ module OnlyofficeTestrailWrapper
|
|
22
22
|
def get_plan_by_id(id)
|
23
23
|
plan = HashHelper.parse_to_class_variable(Testrail2.http_get("index.php?/api/v2/get_plan/#{id}"), TestrailPlan)
|
24
24
|
OnlyofficeLoggerHelper.log("Initialized plan: #{plan.name}")
|
25
|
+
raise("`get_plan_by_id(#{id})` return an error: `#{plan.error}`") if plan.error
|
26
|
+
|
25
27
|
plan.entries.each_with_index do |test_entry, index|
|
26
28
|
entry = HashHelper.parse_to_class_variable(test_entry, TestrailPlanEntry)
|
27
29
|
entry.runs.each_with_index { |run, i| entry.runs[i] = HashHelper.parse_to_class_variable(run, TestrailRun) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onlyoffice_testrail_wrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ONLYOFFICE
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-
|
13
|
+
date: 2021-04-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: onlyoffice_bugzilla_helper
|
@@ -234,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
234
234
|
- !ruby/object:Gem::Version
|
235
235
|
version: '0'
|
236
236
|
requirements: []
|
237
|
-
rubygems_version: 3.2.
|
237
|
+
rubygems_version: 3.2.14
|
238
238
|
signing_key:
|
239
239
|
specification_version: 4
|
240
240
|
summary: ONLYOFFICE Testrail Wrapper Gem
|