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 +4 -4
- data/lib/testlink/client/version.rb +5 -5
- data/lib/testlink/client.rb +13 -5
- data/tl-api-client.gemspec +1 -1
- metadata +2 -3
- data/lib/testlink/client/tl-api-cli.rb +0 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5690a4fb4f75e4086e1caf05de47f8d6bdd7c095
|
4
|
+
data.tar.gz: 88afa2805805312f3175f428d120313a09edb2a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec2a198f17d872221d223358561bcd31caaebb51222e62408e5d7f97a5248bdcf16a740eb06cf8ac05d255ebe8248d5f2d02a6b74e7aac64e865248a1e714dc7
|
7
|
+
data.tar.gz: 2294c8c980504386ed2af6a6c2877148c9f3008f18c1ee9a7d5c98c00157641f3c7da8b34382d1788072351168799b413e53ba15b3f43ca54bc205a228e2fb5d
|
data/lib/testlink/client.rb
CHANGED
@@ -82,7 +82,7 @@ module Testlink
|
|
82
82
|
end
|
83
83
|
|
84
84
|
|
85
|
-
def get_test_case_keywords tcid =
|
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
|
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 =
|
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 =
|
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 =
|
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,
|
data/tl-api-client.gemspec
CHANGED
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.
|
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-
|
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
|
-
|