TestLinkClient 0.0.1 → 0.0.2
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.
- data/lib/TestLinkClient.rb +84 -84
- metadata +2 -2
data/lib/TestLinkClient.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
#!/usr/bin/env ruby
|
2
2
|
require 'xmlrpc/client'
|
3
3
|
# Author:: Sadahiko Hantani (garyohosu@gmail.com)
|
4
4
|
# Copyright:: Copyright (c) 2008 Sadahiko Hantani
|
@@ -6,11 +6,11 @@ require 'xmlrpc/client'
|
|
6
6
|
|
7
7
|
class TestLinkClient
|
8
8
|
#
|
9
|
-
#===
|
9
|
+
#=== �T�v
|
10
10
|
#
|
11
11
|
# initialize
|
12
12
|
#
|
13
|
-
#===
|
13
|
+
#=== ����
|
14
14
|
#
|
15
15
|
#+server_url+::
|
16
16
|
# TestLink Server URL
|
@@ -19,26 +19,26 @@ class TestLinkClient
|
|
19
19
|
#+api_path+::
|
20
20
|
# xmlrpc.php path (Option)
|
21
21
|
#
|
22
|
-
#===
|
22
|
+
#=== �߂�l
|
23
23
|
#
|
24
|
-
#
|
24
|
+
# �Ȃ�
|
25
25
|
#
|
26
|
-
#===
|
26
|
+
#=== ��O
|
27
27
|
#
|
28
|
-
#===
|
28
|
+
#=== �ڍ�
|
29
29
|
#
|
30
|
-
# TestLink
|
31
|
-
# Personal API access key
|
30
|
+
# TestLink��ݒu�����T�[�o�[��URL��Personal API access key��ݒ肵�܂��B
|
31
|
+
# Personal API access key����肷��ɂ͈ȉ������s���Ă��������B
|
32
32
|
#
|
33
|
-
#1. TestLink
|
33
|
+
#1. TestLink��config.inc.php��ύX���܂�
|
34
34
|
# /** SOAP API availability (disabled by default) */
|
35
35
|
# $tlCfg->api_enabled = TRUE;
|
36
|
-
#2. user_api_key
|
37
|
-
# TestLink
|
38
|
-
#
|
36
|
+
#2. user_api_key���擾
|
37
|
+
# TestLink���J���uPersonal�v���J���B
|
38
|
+
# �uGenerate a new key�v�{�^�����N���b�N
|
39
39
|
# Personal API access key = xxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
40
40
|
#
|
41
|
-
#===
|
41
|
+
#=== ��
|
42
42
|
# client = TestLinkClient.new("http://foo.org/testlink_18RC1","413a5f43341axxxxxx91f166501740ec")
|
43
43
|
#
|
44
44
|
def initialize(server_url,dev_key,api_path = "/lib/api/xmlrpc.php")
|
@@ -47,36 +47,36 @@ class TestLinkClient
|
|
47
47
|
end
|
48
48
|
|
49
49
|
#
|
50
|
-
#===
|
50
|
+
#=== �T�v
|
51
51
|
#
|
52
52
|
# getProjects
|
53
53
|
#
|
54
|
-
#===
|
54
|
+
#=== ����
|
55
55
|
#
|
56
|
-
#
|
56
|
+
# �Ȃ�
|
57
57
|
#
|
58
|
-
#===
|
58
|
+
#=== �߂�l
|
59
59
|
#
|
60
|
-
#
|
61
|
-
#
|
60
|
+
# ���݂̃e�X�g�v���W�F�N�g��Ԃ�܂�
|
61
|
+
# ��
|
62
62
|
#[{"name"=>"project", "prefix"=>"test", "tc_counter"=>"15", "option_automation"=>"1", "option_priority"=>"1", "notes"=>"", "id"=>"1", "color"=>"", "option_reqs"=>"1", "active"=>"0"}, {"name"=>"testproject2", "prefix"=>"tp2", "tc_counter"=>"6", "option_automation"=>"1", "option_priority"=>"1", "notes"=>"<p>comment</p>","id"=>"35", "color"=>"", "option_reqs"=>"1", "active"=>"1"}]
|
63
63
|
#
|
64
|
-
#===
|
64
|
+
#=== �ڍ�
|
65
65
|
#
|
66
|
-
#
|
66
|
+
# �v���W�F�N�g���Ɉȉ��̒l�邱�Ƃ��ł��܂�
|
67
67
|
#
|
68
|
-
# name
|
69
|
-
# prefix
|
70
|
-
# tc_counter
|
71
|
-
# option_automation:automation
|
72
|
-
# option_priority
|
73
|
-
# notes
|
74
|
-
# id
|
68
|
+
# name:�e�X�g�v���W�F�N�g��
|
69
|
+
# prefix:�v���t�B�b�N�X
|
70
|
+
# tc_counter:�e�X�g�P�[�X��
|
71
|
+
# option_automation:automation���g�p���邩
|
72
|
+
# option_priority:�D��x���g�p���邩
|
73
|
+
# notes:�m�[�g
|
74
|
+
# id:�e�X�g�v���W�F�N�gID
|
75
75
|
# color:
|
76
|
-
# option_reqs
|
77
|
-
# active
|
76
|
+
# option_reqs:�v���Ǘ����g�p���邩
|
77
|
+
# active:�A�N�e�B�u�v���W�F�N�g��
|
78
78
|
#
|
79
|
-
#===
|
79
|
+
#=== ��
|
80
80
|
# getProjects #=>[{"name"=>"project", "prefix"=>"test", "tc_counter"=>"15", "option_automation"=>"1", "option_priority"=>"1", "notes"=>"", "id"=>"1", "color"=>"", "option_reqs"=>"1", "active"=>"0"}]
|
81
81
|
#
|
82
82
|
def getProjects
|
@@ -85,33 +85,33 @@ class TestLinkClient
|
|
85
85
|
end
|
86
86
|
|
87
87
|
#
|
88
|
-
#===
|
88
|
+
#=== �T�v
|
89
89
|
#
|
90
90
|
# getProjectTestPlans(pid)
|
91
91
|
#
|
92
|
-
#===
|
92
|
+
#=== ����
|
93
93
|
#
|
94
94
|
#+pid+::
|
95
|
-
#
|
95
|
+
# �e�X�g�v���W�F�N�gID
|
96
96
|
#
|
97
|
-
#===
|
98
|
-
#
|
97
|
+
#=== �߂�l
|
98
|
+
# ��
|
99
99
|
# [{"3"=>{"name"=>"test plan", "notes"=>"note", "id"=>"3", "testproject_id"=>"1", "active"=>"1"}}]
|
100
100
|
#
|
101
|
-
#===
|
101
|
+
#=== ��O
|
102
102
|
#
|
103
|
-
#===
|
103
|
+
#=== �ڍ�
|
104
104
|
#
|
105
|
-
#
|
105
|
+
# �e�X�g�v���W�F�N�gID��n���ƃe�X�g�v��̏ڍ���Ԃ�
|
106
106
|
#
|
107
|
-
# -
|
108
|
-
# name
|
109
|
-
# notes
|
110
|
-
# id
|
111
|
-
# testproject_id
|
112
|
-
# active
|
107
|
+
# - :�e�X�g�v��ID
|
108
|
+
# name:�e�X�g�v�於
|
109
|
+
# notes:�m�[�g
|
110
|
+
# id:��ID
|
111
|
+
# testproject_id:�e�X�g�v���W�F�N�gID
|
112
|
+
# active:�A�N�e�B�u��
|
113
113
|
#
|
114
|
-
#===
|
114
|
+
#=== ��
|
115
115
|
#
|
116
116
|
# getProjectTestPlans(pid) #=>[{"3"=>{"name"=>"test plan", "notes"=>"note", "id"=>"3", "testproject_id"=>"1", "active"=>"1"}}]
|
117
117
|
#
|
@@ -121,32 +121,32 @@ class TestLinkClient
|
|
121
121
|
end
|
122
122
|
|
123
123
|
#
|
124
|
-
#===
|
124
|
+
#=== �T�v
|
125
125
|
#
|
126
126
|
# getBuildsForTestPlan(tpid)
|
127
127
|
#
|
128
|
-
#===
|
128
|
+
#=== ����
|
129
129
|
#
|
130
130
|
#+tpid+::
|
131
|
-
#
|
131
|
+
# �e�X�g�v��ID
|
132
132
|
#
|
133
|
-
#===
|
134
|
-
#
|
133
|
+
#=== �߂�l
|
134
|
+
# ��
|
135
135
|
# [{"name"=>"build1", "notes"=>"", "id"=>"1", "is_open"=>"1", "testplan_id"=>"3", "active"=>"1"}]
|
136
136
|
#
|
137
|
-
#===
|
137
|
+
#=== ��O
|
138
138
|
#
|
139
|
-
#===
|
139
|
+
#=== �ڍ�
|
140
140
|
#
|
141
|
-
#
|
142
|
-
# name
|
143
|
-
# notes
|
144
|
-
# id
|
145
|
-
# is_open
|
146
|
-
# testplan_id
|
147
|
-
# active
|
141
|
+
# �e�X�g�v��ID��n���ƃr���h�̏ڍ���Ԃ�
|
142
|
+
# name:�r���h��
|
143
|
+
# notes:�m�[�g
|
144
|
+
# id:��ID
|
145
|
+
# is_open:�I�[�v�����H
|
146
|
+
# testplan_id:�e�X�g�v��ID
|
147
|
+
# active:�A�N�e�B�u��
|
148
148
|
#
|
149
|
-
#===
|
149
|
+
#=== ��
|
150
150
|
#
|
151
151
|
# getBuildsForTestPlan(tpid) #=>[{"name"=>"build1", "notes"=>"", "id"=>"1", "is_open"=>"1", "testplan_id"=>"3", "active"=>"1"}]
|
152
152
|
#
|
@@ -156,28 +156,28 @@ class TestLinkClient
|
|
156
156
|
end
|
157
157
|
|
158
158
|
#
|
159
|
-
#===
|
159
|
+
#=== �T�v
|
160
160
|
#
|
161
161
|
# getTestSuitesForTestPlan(tpid)
|
162
162
|
#
|
163
|
-
#===
|
163
|
+
#=== ����
|
164
164
|
#
|
165
165
|
#+tpid+::
|
166
|
-
#
|
166
|
+
# �e�X�g�v��ID
|
167
167
|
#
|
168
|
-
#===
|
169
|
-
#
|
168
|
+
#=== �߂�l
|
169
|
+
# ��
|
170
170
|
# {"name"=>"testsuite1", "id"=>"36"}
|
171
171
|
#
|
172
|
-
#===
|
172
|
+
#=== ��O
|
173
173
|
#
|
174
|
-
#===
|
174
|
+
#=== �ڍ�
|
175
175
|
#
|
176
|
-
#
|
177
|
-
# name
|
178
|
-
# id
|
176
|
+
# �e�X�g�v��ID��n���ƃe�X�g�X�C�[�g�̏ڍ���Ԃ�
|
177
|
+
# name:�e�X�g�X�C�[�g��
|
178
|
+
# id:��ID
|
179
179
|
#
|
180
|
-
#===
|
180
|
+
#=== ��
|
181
181
|
#
|
182
182
|
# getTestSuitesForTestPlan(tpid) #=>{"name"=>"testsuite1", "id"=>"36"}
|
183
183
|
#
|
@@ -186,28 +186,28 @@ class TestLinkClient
|
|
186
186
|
ret = @server.call("tl.getTestSuitesForTestPlan",args)
|
187
187
|
end
|
188
188
|
#
|
189
|
-
#===
|
189
|
+
#=== �T�v
|
190
190
|
#
|
191
191
|
# getTestSuitesForTestPlan(tpid)
|
192
192
|
#
|
193
|
-
#===
|
193
|
+
#=== ����
|
194
194
|
#
|
195
195
|
#+tpid+::
|
196
|
-
#
|
196
|
+
# �e�X�g�v��ID
|
197
197
|
#
|
198
|
-
#===
|
199
|
-
#
|
198
|
+
#=== �߂�l
|
199
|
+
# ��
|
200
200
|
# {"name"=>"testsuite1", "id"=>"36"}
|
201
201
|
#
|
202
|
-
#===
|
202
|
+
#=== ��O
|
203
203
|
#
|
204
|
-
#===
|
204
|
+
#=== �ڍ�
|
205
205
|
#
|
206
|
-
#
|
207
|
-
# name
|
208
|
-
# id
|
206
|
+
# �e�X�g�v��ID��n���ƃe�X�g�X�C�[�g�̏ڍ���Ԃ�
|
207
|
+
# name:�e�X�g�X�C�[�g��
|
208
|
+
# id:��ID
|
209
209
|
#
|
210
|
-
#===
|
210
|
+
#=== ��
|
211
211
|
#
|
212
212
|
# getTestSuitesForTestPlan(tpid) #=>{"name"=>"testsuite1", "id"=>"36"}
|
213
213
|
#
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: TestLinkClient
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SADAHIKO Hantani
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-12-
|
12
|
+
date: 2008-12-15 00:00:00 +09:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|