testrail_helper 0.0.5 → 0.0.6

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
  SHA1:
3
- metadata.gz: 3ddb90fa28658965c154e0f7c5c6c53c944abd5a
4
- data.tar.gz: 6173e6822e209628bd89550e617cf7e5d556b058
3
+ metadata.gz: 730b1557707c1ac7a3b5ecf88af66b3c1731e472
4
+ data.tar.gz: f7d7735bf8ae997708d56c11b5c94dca0c481373
5
5
  SHA512:
6
- metadata.gz: c4d27cbe9d64dc3ee7966328542c37fd72866f8b5b4dbbd724d04bc7b0eeb96dd1d14fd9925b9af54c3d24336eb8a55ae3a007a3ba0ceb01cfd0416c762fbd39
7
- data.tar.gz: 2873e757a09a6ec088e32563eb7108fee568ddae36b6fb619e160b81cff03102f2226ff887784ceaa7c5efc86c53d8c25e741aa7d699e5f63c15298cba6b3164
6
+ metadata.gz: c3daa6a5d0b4dc754a4346bb43ec825dcb4c3506f5894243717efcb25975d00958b575fd783c14c877ac74befbf7c3b3644eed6dfb6fb84a19d583b9746e4e26
7
+ data.tar.gz: ab742e48167399b8e4e345b503694a1f4c878f1b8f642815ab2b8d696c2f3e40a22fb0bf88c49cd3c314ae85430c41c93b7a9a3c32077ceb35fc596633e99736
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- testrail_helper (0.0.1)
4
+ testrail_helper (0.0.6)
5
5
  json
6
6
  testrail
7
7
 
@@ -1,3 +1,3 @@
1
1
  module TestrailHelper
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -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:'mattfairbourn@gmail.com',password: 'CanvasP@$$',url: 'https://canvas.testrail.com/')
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
- # cases = client.get_all_test_cases_in_section(suite_id: "729", section_id: "8")
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.5
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: 2015-07-18 00:00:00.000000000 Z
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.2.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: