testrail-ruby 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/endpoints.rb +19 -0
- data/lib/version.rb +1 -1
- 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: 966f43685640d88c1be60e24a71b63113ee50fe4
|
4
|
+
data.tar.gz: 042a7940f3645a2cda1fe349fce5e5f556e6a8a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf54d28e67b3e694c585438df9c42383e017ac4943a17ea0e3b5516ef0b2bec62a3516f1b6e523e08f0543770774bbe7a7a8fc64fb1a18bb1981ce5259427bc7
|
7
|
+
data.tar.gz: 2e27b6bb3d6afc8ecc86404d8d2bbdf781c849a235a2a9b9622ee559f38b96672ba779464b5c5f1992fea9fa595f97cbe3681a45ab36337eea80584533cc74f8
|
data/lib/endpoints.rb
CHANGED
@@ -15,6 +15,25 @@ module Endpoints
|
|
15
15
|
send_get("get_cases/#{project_id.to_s}", opts)
|
16
16
|
end
|
17
17
|
|
18
|
+
# Return all test cases in a given project by suite_id and section_id
|
19
|
+
# @param project_id [int] The id of the project that contains your tests
|
20
|
+
# @param suite_id [int] The id of the suite within the project
|
21
|
+
# @param section_id [int] The id of the section within the suite
|
22
|
+
# @param opts [hash]
|
23
|
+
# @see http://docs.gurock.com/testrail-api2/reference-cases
|
24
|
+
def get_cases_by_section(project_id, suite_id, section_id, opts = {})
|
25
|
+
send_get("get_cases/#{project_id.to_s}&suite_id=#{suite_id.to_s}§ion_id=#{section_id.to_s}", opts)
|
26
|
+
end
|
27
|
+
|
28
|
+
# Return all test cases in a given project by suite_id
|
29
|
+
# @param project_id [int] The id of the project that contains your tests
|
30
|
+
# @param suite_id [int] The id of the suite within the project
|
31
|
+
# @param opts [hash]
|
32
|
+
# @see http://docs.gurock.com/testrail-api2/reference-cases
|
33
|
+
def get_cases_by_suite(project_id, suite_id, opts = {})
|
34
|
+
send_get("get_cases/#{project_id.to_s}&suite_id=#{suite_id.to_s}", opts)
|
35
|
+
end
|
36
|
+
|
18
37
|
# Add results to a geven test case
|
19
38
|
# @param case_id [int] The id of the test case
|
20
39
|
# @param opts [hash]
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testrail-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frances Morales
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|