tl-api-client 0.1.8 → 0.1.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bbf1d5738dd2b52f6a7631e8cc313d81146bee9d
4
- data.tar.gz: e9c9b8a3390054d523a7b583d116b143b7cdbd33
3
+ metadata.gz: 5690a4fb4f75e4086e1caf05de47f8d6bdd7c095
4
+ data.tar.gz: 88afa2805805312f3175f428d120313a09edb2a9
5
5
  SHA512:
6
- metadata.gz: 92e97d24fab582f402542d7db5940187d7119aaed0cb591cb8066604f2f96ce387e0fc92610e11e5c1f71f4d2fb79a0ad7158a3d0817285541df94a11acee972
7
- data.tar.gz: 832d437ca1fc782c41fab4e90bbb8ddedeb7e7fb51e532d05eeb997d8324c301f1126c6ae643bf56ec399e5aec0df2651a8fa6fe5d943135f05ed324edfb1c7e
6
+ metadata.gz: ec2a198f17d872221d223358561bcd31caaebb51222e62408e5d7f97a5248bdcf16a740eb06cf8ac05d255ebe8248d5f2d02a6b74e7aac64e865248a1e714dc7
7
+ data.tar.gz: 2294c8c980504386ed2af6a6c2877148c9f3008f18c1ee9a7d5c98c00157641f3c7da8b34382d1788072351168799b413e53ba15b3f43ca54bc205a228e2fb5d
@@ -1,7 +1,7 @@
1
- module Tl
2
- module Api
3
- module Client
4
- VERSION = "0.1.8"
5
- end
1
+ module Testlink
2
+ module Client
3
+ VERSION = "0.1.9"
6
4
  end
7
5
  end
6
+
7
+
@@ -82,7 +82,7 @@ module Testlink
82
82
  end
83
83
 
84
84
 
85
- def get_test_case_keywords tcid = nil, tcexternalid = nil
85
+ def get_test_case_keywords tcid = "", tcexternalid = ""
86
86
 
87
87
  if tcexternalid.nil?
88
88
  input = { "testcaseexternalid" => tcexternalid }
@@ -99,7 +99,7 @@ module Testlink
99
99
 
100
100
 
101
101
  def get_test_case_keywords_by_tcexternalid tcexternalid
102
- get_test_case_keywords nil, tcexternalid
102
+ get_test_case_keywords "", tcexternalid
103
103
  end
104
104
 
105
105
 
@@ -125,7 +125,7 @@ module Testlink
125
125
  end
126
126
 
127
127
 
128
- def get_test_cases_for_test_plan tplanid, buildid = nil, platformid = nil, testcaseid = nil, keywordid = nil, keywords = nil, executed = nil, assignedto = nil, executestatus = nil, executiontype = nil, getstepinfo = false, details = nil
128
+ def get_test_cases_for_test_plan tplanid, buildid = "", platformid = "", testcaseid = "", keywordid = "", keywords = "", executed = "", assignedto = "", executestatus = "", executiontype = "", getstepinfo = false, details = ""
129
129
 
130
130
  input = { "testplanid" => tplanid,
131
131
  "buildid" => buildid,
@@ -142,6 +142,13 @@ module Testlink
142
142
  get_result "tl.getTestCasesForTestPlan", input
143
143
  end
144
144
 
145
+ def get_test_cases_for_test_suite tsuiteid, deep=true, details = ""
146
+
147
+ input = { "testsuiteid" => tsuiteid,
148
+ "deep" => deep,
149
+ "details" => details }
150
+ get_result "tl.getTestCasesForTestSuite", input
151
+ end
145
152
 
146
153
  def get_test_suites_for_test_suite tsuiteid
147
154
 
@@ -150,7 +157,7 @@ module Testlink
150
157
  end
151
158
 
152
159
 
153
- def get_test_case_id_by_name tcasename, tsuitename = nil, tprojectname = nil, tcasepathname = nil
160
+ def get_test_case_id_by_name tcasename, tsuitename = "", tprojectname = "", tcasepathname = ""
154
161
 
155
162
  input = { "testcasename" => tcasename,
156
163
  "testsuitename" => tsuitename,
@@ -174,6 +181,7 @@ module Testlink
174
181
  else
175
182
  input = { "testcaseexternalid" => tcexternalid }
176
183
  end
184
+ puts input
177
185
  get_result "tl.getTestCase", input
178
186
  end
179
187
 
@@ -204,7 +212,7 @@ module Testlink
204
212
  end
205
213
 
206
214
 
207
- def update_test_case tcid, version = nil, testcasename = nil, summary = nil, preconditions = nil, steps = nil, importance = nil, executiontype = nil. status = nil, estimatedexecduration = nil, user = nil
215
+ def update_test_case tcid, version = "", testcasename = "", summary = "", preconditions = "", steps = "", importance = "", executiontype = "". status = "", estimatedexecduration = "", user = ""
208
216
 
209
217
  input = { "testcaseid" => tcid,
210
218
  "version" => version,
@@ -5,7 +5,7 @@ require 'testlink/client/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "tl-api-client"
8
- spec.version = Tl::Api::Client::VERSION
8
+ spec.version = Testlink::Client::VERSION
9
9
  spec.authors = ["Emma Chen"]
10
10
  spec.email = ["emmac@synopsys.com"]
11
11
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tl-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emma Chen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-17 00:00:00.000000000 Z
11
+ date: 2017-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -69,7 +69,6 @@ files:
69
69
  - bin/console
70
70
  - bin/setup
71
71
  - lib/testlink/client.rb
72
- - lib/testlink/client/tl-api-cli.rb
73
72
  - lib/testlink/client/version.rb
74
73
  - lib/tl-api-client.rb
75
74
  - tl-api-client.gemspec
@@ -1,29 +0,0 @@
1
- require "xmlrpc/client"
2
-
3
- class TestlinkAPIClient
4
-
5
- attr_accessor :url, :key
6
-
7
- def initialize url, key
8
- @key = key
9
- @url = get_api_url url
10
- end
11
-
12
-
13
- def get_api_url url
14
- url + "/lib/api/xmlrpc/v1/xmlrpc.php"
15
- end
16
-
17
-
18
- def get_latest_build_for_test_plan tplanid
19
- connection = XMLRPC::Client.new_from_url @url
20
-
21
- input = { "devKey" => @key,"tplanid" => tplanid }
22
- result = connection.call2 "getLatestBuildForPlan", input
23
- puts result
24
- end
25
-
26
- end
27
-
28
-
29
-