testrail_helper 0.0.5 → 0.0.6
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/Gemfile.lock +1 -1
- data/lib/testrail_helper/version.rb +1 -1
- data/lib/testrail_helper.rb +16 -0
- data/test.rb +17 -2
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 730b1557707c1ac7a3b5ecf88af66b3c1731e472
|
4
|
+
data.tar.gz: f7d7735bf8ae997708d56c11b5c94dca0c481373
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3daa6a5d0b4dc754a4346bb43ec825dcb4c3506f5894243717efcb25975d00958b575fd783c14c877ac74befbf7c3b3644eed6dfb6fb84a19d583b9746e4e26
|
7
|
+
data.tar.gz: ab742e48167399b8e4e345b503694a1f4c878f1b8f642815ab2b8d696c2f3e40a22fb0bf88c49cd3c314ae85430c41c93b7a9a3c32077ceb35fc596633e99736
|
data/Gemfile.lock
CHANGED
data/lib/testrail_helper.rb
CHANGED
@@ -117,5 +117,21 @@ module TestrailHelper
|
|
117
117
|
list.each { |element| f.puts(element) }
|
118
118
|
end
|
119
119
|
end
|
120
|
+
|
121
|
+
def get_test_plan(plan_id)
|
122
|
+
uri = "get_plan/#{plan_id}"
|
123
|
+
@client.send_get(uri)
|
124
|
+
end
|
125
|
+
|
126
|
+
|
127
|
+
def get_test_run(run_id)
|
128
|
+
uri = "get_run/#{run_id}"
|
129
|
+
@client.send_get(uri)
|
130
|
+
end
|
131
|
+
|
132
|
+
def get_results_for_run(run_id)
|
133
|
+
uri = "get_results_for_run/#{run_id}"
|
134
|
+
@client.send_get(uri)
|
135
|
+
end
|
120
136
|
end
|
121
137
|
end
|
data/test.rb
CHANGED
@@ -1,9 +1,24 @@
|
|
1
1
|
require File.expand_path(File.dirname(__FILE__) + '/lib/testrail_helper')
|
2
2
|
|
3
3
|
# create a new client
|
4
|
-
client = TestrailHelper::Client.new(username:'
|
4
|
+
client = TestrailHelper::Client.new(username:'',password: '',url: 'https://blarg.testrail.com/')
|
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
8
|
|
9
|
+
# filter your list down by various required fields. AND
|
10
|
+
filtered_cases_with_and = client.filter_by_fields_and(cases,priority_id: 4, created_by: 34)
|
9
11
|
|
12
|
+
# filter your list down by various required fields. OR
|
13
|
+
filtered_cases_with_or = client.filter_by_fields_or(cases,priority_id: 4, created_by: 34)
|
14
|
+
|
15
|
+
# write list to file
|
16
|
+
write_to_file(cases,'/output/filename')
|
17
|
+
|
18
|
+
# update a test case by simply putting the test_id
|
19
|
+
update_test_case(12345,priority_id:2,type_id:1)
|
20
|
+
|
21
|
+
# results
|
22
|
+
get_test_plan("5000")
|
23
|
+
get_test_run("5001")
|
24
|
+
get_results_for_run("5001")
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kinezu
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -104,9 +104,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
104
|
version: '0'
|
105
105
|
requirements: []
|
106
106
|
rubyforge_project:
|
107
|
-
rubygems_version: 2.
|
107
|
+
rubygems_version: 2.6.11
|
108
108
|
signing_key:
|
109
109
|
specification_version: 4
|
110
110
|
summary: A tool to help get and parse testrail data
|
111
111
|
test_files: []
|
112
|
-
has_rdoc:
|