testrail_helper 0.0.6 → 0.0.7

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: 730b1557707c1ac7a3b5ecf88af66b3c1731e472
4
- data.tar.gz: f7d7735bf8ae997708d56c11b5c94dca0c481373
3
+ metadata.gz: 386d07dc8111f5b2edaf838311c079162a6f9184
4
+ data.tar.gz: 89771ed3b55515ba57c700afe3c5b62731a811ae
5
5
  SHA512:
6
- metadata.gz: c3daa6a5d0b4dc754a4346bb43ec825dcb4c3506f5894243717efcb25975d00958b575fd783c14c877ac74befbf7c3b3644eed6dfb6fb84a19d583b9746e4e26
7
- data.tar.gz: ab742e48167399b8e4e345b503694a1f4c878f1b8f642815ab2b8d696c2f3e40a22fb0bf88c49cd3c314ae85430c41c93b7a9a3c32077ceb35fc596633e99736
6
+ metadata.gz: d92559c272b8c82a88a4b2646a31f0d66117bd9533016b2f2349ebb2b269ee08c8bd66f23972b4dd3775ad1f93cf18e3e2bc710f1fd79180ce51f746161945e9
7
+ data.tar.gz: 10da643b7fab0023c9c3a539bc7e44f284ef6a43e6ffaa20445798b05a6a4890146ef412cc129496f3dc13cf938b0a6af45eadf5a6ba4955a0f068deafda30d4
@@ -1,3 +1,3 @@
1
1
  module TestrailHelper
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -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 + "&section_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.6
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-10-05 00:00:00.000000000 Z
11
+ date: 2017-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json