testrail_helper 0.0.6 → 0.0.7
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/testrail_helper/version.rb +1 -1
- data/lib/testrail_helper.rb +7 -0
- data/test.rb +1 -0
- 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: 386d07dc8111f5b2edaf838311c079162a6f9184
|
|
4
|
+
data.tar.gz: 89771ed3b55515ba57c700afe3c5b62731a811ae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d92559c272b8c82a88a4b2646a31f0d66117bd9533016b2f2349ebb2b269ee08c8bd66f23972b4dd3775ad1f93cf18e3e2bc710f1fd79180ce51f746161945e9
|
|
7
|
+
data.tar.gz: 10da643b7fab0023c9c3a539bc7e44f284ef6a43e6ffaa20445798b05a6a4890146ef412cc129496f3dc13cf938b0a6af45eadf5a6ba4955a0f068deafda30d4
|
data/lib/testrail_helper.rb
CHANGED
|
@@ -20,6 +20,13 @@ module TestrailHelper
|
|
|
20
20
|
@client.send_get(uri)
|
|
21
21
|
end
|
|
22
22
|
|
|
23
|
+
def get_test_cases(params={})
|
|
24
|
+
uri = "get_cases/#{params[:project_id]}&suite_id=#{params[:project_id]}"
|
|
25
|
+
uri = uri + "&suite_id=#{params[:suite_id]}" if params[:suite_id]
|
|
26
|
+
uri = uri + "§ion_id=#{params[:section_id]}" if params[:section_id]
|
|
27
|
+
@client.send_get(uri)
|
|
28
|
+
end
|
|
29
|
+
|
|
23
30
|
def get_run_info(run_id)
|
|
24
31
|
uri = "get_run/#{run_id}"
|
|
25
32
|
@client.send_get(uri)
|
data/test.rb
CHANGED
|
@@ -5,6 +5,7 @@ client = TestrailHelper::Client.new(username:'',password: '',url: 'https://blarg
|
|
|
5
5
|
|
|
6
6
|
# get a list of test cases by passing in the suite_id and section_id
|
|
7
7
|
cases = client.get_all_test_cases_in_section(suite_id: "729", section_id: "8")
|
|
8
|
+
cases = client.get_test_cases(suite_id: "10685", project_id: "34")
|
|
8
9
|
|
|
9
10
|
# filter your list down by various required fields. AND
|
|
10
11
|
filtered_cases_with_and = client.filter_by_fields_and(cases,priority_id: 4, created_by: 34)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: testrail_helper
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- kinezu
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-11-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|