testlink-api-client 0.0.1
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/LICENSE +15 -0
- data/README.rdoc +14 -0
- data/features/create_test_suite.feature +90 -0
- data/features/get_first_level_test_suites_for_test_project.feature +25 -0
- data/features/get_projects.feature +47 -0
- data/features/get_test_suite_by_id.feature +24 -0
- data/features/get_test_suites_for_test_suite.feature +33 -0
- data/features/step_definitions/common.rb +69 -0
- data/features/step_definitions/create_test_suite.rb +14 -0
- data/features/step_definitions/get_first_level_test_suites_for_test_project.rb +14 -0
- data/features/step_definitions/get_projects.rb +56 -0
- data/features/support/db/one_project.sql +1311 -0
- data/features/support/db/some_testsuites.sql +1312 -0
- data/features/support/env.rb +32 -0
- data/features/support/test_link_test_module.rb +32 -0
- data/lib/test_link.rb +22 -0
- data/lib/test_link/adapters.rb +24 -0
- data/lib/test_link/adapters/base.rb +35 -0
- data/lib/test_link/adapters/node_adapter.rb +47 -0
- data/lib/test_link/adapters/project_adapter.rb +32 -0
- data/lib/test_link/adapters/status_adapter.rb +33 -0
- data/lib/test_link/api_link.rb +62 -0
- data/lib/test_link/command.rb +29 -0
- data/lib/test_link/command/argument.rb +31 -0
- data/lib/test_link/command/base.rb +63 -0
- data/lib/test_link/command/create_test_case.rb +40 -0
- data/lib/test_link/command/create_test_suite.rb +35 -0
- data/lib/test_link/command/definition.rb +45 -0
- data/lib/test_link/command/get_first_level_test_suites_for_test_project.rb +29 -0
- data/lib/test_link/command/get_projects.rb +26 -0
- data/lib/test_link/command/get_test_suite_by_id.rb +29 -0
- data/lib/test_link/command/get_test_suites_for_test_suite.rb +29 -0
- data/lib/test_link/exceptions.rb +23 -0
- data/lib/test_link/exceptions/command_failed_exception.rb +26 -0
- data/lib/test_link/exceptions/empty_response_exception.rb +26 -0
- data/lib/test_link/exceptions/error_response_exception.rb +28 -0
- data/lib/test_link/exceptions/exception.rb +21 -0
- data/lib/test_link/objects.rb +24 -0
- data/lib/test_link/objects/methods.rb +29 -0
- data/lib/test_link/objects/node.rb +25 -0
- data/lib/test_link/objects/project.rb +25 -0
- data/lib/test_link/objects/status.rb +25 -0
- data/lib/testlink-api-client.rb +16 -0
- data/spec/spec_helper.rb +39 -0
- data/spec/test_link/adapters/base_spec.rb +56 -0
- data/spec/test_link/adapters/node_adapter_spec.rb +102 -0
- data/spec/test_link/adapters/project_adapter_spec.rb +81 -0
- data/spec/test_link/adapters/status_adapter_spec.rb +51 -0
- data/spec/test_link/api_link_spec.rb +106 -0
- data/spec/test_link/command/argument_spec.rb +43 -0
- data/spec/test_link/command/base_spec.rb +94 -0
- data/spec/test_link/command/create_test_case_spec.rb +88 -0
- data/spec/test_link/command/create_test_suite_spec.rb +67 -0
- data/spec/test_link/command/get_first_level_test_suites_for_test_project_spec.rb +43 -0
- data/spec/test_link/command/get_projets_spec.rb +33 -0
- data/spec/test_link/command/get_test_suite_by_id_spec.rb +43 -0
- data/spec/test_link/command/get_test_suites_for_test_suite_spec.rb +43 -0
- data/spec/test_link/exceptions/command_failed_exception_spec.rb +28 -0
- data/spec/test_link/exceptions/empty_response_exception_spec.rb +28 -0
- data/spec/test_link/exceptions/error_response_exception_spec.rb +30 -0
- data/spec/test_link/objects/node_spec.rb +49 -0
- data/spec/test_link/objects/project_spec.rb +39 -0
- data/spec/test_link/objects/status_spec.rb +43 -0
- metadata +194 -0
@@ -0,0 +1,1312 @@
|
|
1
|
+
-- MySQL dump 10.13 Distrib 5.1.54, for debian-linux-gnu (x86_64)
|
2
|
+
--
|
3
|
+
-- Host: localhost Database: testlink
|
4
|
+
-- ------------------------------------------------------
|
5
|
+
-- Server version 5.1.54-1ubuntu4
|
6
|
+
|
7
|
+
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
8
|
+
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
9
|
+
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
10
|
+
/*!40101 SET NAMES utf8 */;
|
11
|
+
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
|
12
|
+
/*!40103 SET TIME_ZONE='+00:00' */;
|
13
|
+
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
14
|
+
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
15
|
+
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
16
|
+
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
17
|
+
|
18
|
+
--
|
19
|
+
-- Table structure for table `assignment_status`
|
20
|
+
--
|
21
|
+
|
22
|
+
DROP TABLE IF EXISTS `assignment_status`;
|
23
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
24
|
+
/*!40101 SET character_set_client = utf8 */;
|
25
|
+
CREATE TABLE `assignment_status` (
|
26
|
+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
27
|
+
`description` varchar(100) NOT NULL DEFAULT 'unknown',
|
28
|
+
PRIMARY KEY (`id`)
|
29
|
+
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
|
30
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
31
|
+
|
32
|
+
--
|
33
|
+
-- Dumping data for table `assignment_status`
|
34
|
+
--
|
35
|
+
|
36
|
+
LOCK TABLES `assignment_status` WRITE;
|
37
|
+
/*!40000 ALTER TABLE `assignment_status` DISABLE KEYS */;
|
38
|
+
INSERT INTO `assignment_status` VALUES (1,'open'),(2,'closed'),(3,'completed'),(4,'todo_urgent'),(5,'todo');
|
39
|
+
/*!40000 ALTER TABLE `assignment_status` ENABLE KEYS */;
|
40
|
+
UNLOCK TABLES;
|
41
|
+
|
42
|
+
--
|
43
|
+
-- Table structure for table `assignment_types`
|
44
|
+
--
|
45
|
+
|
46
|
+
DROP TABLE IF EXISTS `assignment_types`;
|
47
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
48
|
+
/*!40101 SET character_set_client = utf8 */;
|
49
|
+
CREATE TABLE `assignment_types` (
|
50
|
+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
51
|
+
`fk_table` varchar(30) DEFAULT '',
|
52
|
+
`description` varchar(100) NOT NULL DEFAULT 'unknown',
|
53
|
+
PRIMARY KEY (`id`)
|
54
|
+
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
|
55
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
56
|
+
|
57
|
+
--
|
58
|
+
-- Dumping data for table `assignment_types`
|
59
|
+
--
|
60
|
+
|
61
|
+
LOCK TABLES `assignment_types` WRITE;
|
62
|
+
/*!40000 ALTER TABLE `assignment_types` DISABLE KEYS */;
|
63
|
+
INSERT INTO `assignment_types` VALUES (1,'testplan_tcversions','testcase_execution'),(2,'tcversions','testcase_review');
|
64
|
+
/*!40000 ALTER TABLE `assignment_types` ENABLE KEYS */;
|
65
|
+
UNLOCK TABLES;
|
66
|
+
|
67
|
+
--
|
68
|
+
-- Table structure for table `attachments`
|
69
|
+
--
|
70
|
+
|
71
|
+
DROP TABLE IF EXISTS `attachments`;
|
72
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
73
|
+
/*!40101 SET character_set_client = utf8 */;
|
74
|
+
CREATE TABLE `attachments` (
|
75
|
+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
76
|
+
`fk_id` int(10) unsigned NOT NULL DEFAULT '0',
|
77
|
+
`fk_table` varchar(250) DEFAULT '',
|
78
|
+
`title` varchar(250) DEFAULT '',
|
79
|
+
`description` varchar(250) DEFAULT '',
|
80
|
+
`file_name` varchar(250) NOT NULL DEFAULT '',
|
81
|
+
`file_path` varchar(250) DEFAULT '',
|
82
|
+
`file_size` int(11) NOT NULL DEFAULT '0',
|
83
|
+
`file_type` varchar(250) NOT NULL DEFAULT '',
|
84
|
+
`date_added` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
85
|
+
`content` longblob,
|
86
|
+
`compression_type` int(11) NOT NULL DEFAULT '0',
|
87
|
+
PRIMARY KEY (`id`)
|
88
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
89
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
90
|
+
|
91
|
+
--
|
92
|
+
-- Dumping data for table `attachments`
|
93
|
+
--
|
94
|
+
|
95
|
+
LOCK TABLES `attachments` WRITE;
|
96
|
+
/*!40000 ALTER TABLE `attachments` DISABLE KEYS */;
|
97
|
+
/*!40000 ALTER TABLE `attachments` ENABLE KEYS */;
|
98
|
+
UNLOCK TABLES;
|
99
|
+
|
100
|
+
--
|
101
|
+
-- Table structure for table `builds`
|
102
|
+
--
|
103
|
+
|
104
|
+
DROP TABLE IF EXISTS `builds`;
|
105
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
106
|
+
/*!40101 SET character_set_client = utf8 */;
|
107
|
+
CREATE TABLE `builds` (
|
108
|
+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
109
|
+
`testplan_id` int(10) unsigned NOT NULL DEFAULT '0',
|
110
|
+
`name` varchar(100) NOT NULL DEFAULT 'undefined',
|
111
|
+
`notes` text,
|
112
|
+
`active` tinyint(1) NOT NULL DEFAULT '1',
|
113
|
+
`is_open` tinyint(1) NOT NULL DEFAULT '1',
|
114
|
+
`author_id` int(10) unsigned DEFAULT NULL,
|
115
|
+
`creation_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
116
|
+
`release_date` date DEFAULT NULL,
|
117
|
+
`closed_on_date` date DEFAULT NULL,
|
118
|
+
PRIMARY KEY (`id`),
|
119
|
+
UNIQUE KEY `name` (`testplan_id`,`name`),
|
120
|
+
KEY `testplan_id` (`testplan_id`)
|
121
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Available builds';
|
122
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
123
|
+
|
124
|
+
--
|
125
|
+
-- Dumping data for table `builds`
|
126
|
+
--
|
127
|
+
|
128
|
+
LOCK TABLES `builds` WRITE;
|
129
|
+
/*!40000 ALTER TABLE `builds` DISABLE KEYS */;
|
130
|
+
/*!40000 ALTER TABLE `builds` ENABLE KEYS */;
|
131
|
+
UNLOCK TABLES;
|
132
|
+
|
133
|
+
--
|
134
|
+
-- Table structure for table `cfield_design_values`
|
135
|
+
--
|
136
|
+
|
137
|
+
DROP TABLE IF EXISTS `cfield_design_values`;
|
138
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
139
|
+
/*!40101 SET character_set_client = utf8 */;
|
140
|
+
CREATE TABLE `cfield_design_values` (
|
141
|
+
`field_id` int(10) NOT NULL DEFAULT '0',
|
142
|
+
`node_id` int(10) NOT NULL DEFAULT '0',
|
143
|
+
`value` varchar(4000) NOT NULL DEFAULT '',
|
144
|
+
PRIMARY KEY (`field_id`,`node_id`),
|
145
|
+
KEY `idx_cfield_design_values` (`node_id`)
|
146
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
147
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
148
|
+
|
149
|
+
--
|
150
|
+
-- Dumping data for table `cfield_design_values`
|
151
|
+
--
|
152
|
+
|
153
|
+
LOCK TABLES `cfield_design_values` WRITE;
|
154
|
+
/*!40000 ALTER TABLE `cfield_design_values` DISABLE KEYS */;
|
155
|
+
/*!40000 ALTER TABLE `cfield_design_values` ENABLE KEYS */;
|
156
|
+
UNLOCK TABLES;
|
157
|
+
|
158
|
+
--
|
159
|
+
-- Table structure for table `cfield_execution_values`
|
160
|
+
--
|
161
|
+
|
162
|
+
DROP TABLE IF EXISTS `cfield_execution_values`;
|
163
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
164
|
+
/*!40101 SET character_set_client = utf8 */;
|
165
|
+
CREATE TABLE `cfield_execution_values` (
|
166
|
+
`field_id` int(10) NOT NULL DEFAULT '0',
|
167
|
+
`execution_id` int(10) NOT NULL DEFAULT '0',
|
168
|
+
`testplan_id` int(10) NOT NULL DEFAULT '0',
|
169
|
+
`tcversion_id` int(10) NOT NULL DEFAULT '0',
|
170
|
+
`value` varchar(4000) NOT NULL DEFAULT '',
|
171
|
+
PRIMARY KEY (`field_id`,`execution_id`,`testplan_id`,`tcversion_id`)
|
172
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
173
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
174
|
+
|
175
|
+
--
|
176
|
+
-- Dumping data for table `cfield_execution_values`
|
177
|
+
--
|
178
|
+
|
179
|
+
LOCK TABLES `cfield_execution_values` WRITE;
|
180
|
+
/*!40000 ALTER TABLE `cfield_execution_values` DISABLE KEYS */;
|
181
|
+
/*!40000 ALTER TABLE `cfield_execution_values` ENABLE KEYS */;
|
182
|
+
UNLOCK TABLES;
|
183
|
+
|
184
|
+
--
|
185
|
+
-- Table structure for table `cfield_node_types`
|
186
|
+
--
|
187
|
+
|
188
|
+
DROP TABLE IF EXISTS `cfield_node_types`;
|
189
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
190
|
+
/*!40101 SET character_set_client = utf8 */;
|
191
|
+
CREATE TABLE `cfield_node_types` (
|
192
|
+
`field_id` int(10) NOT NULL DEFAULT '0',
|
193
|
+
`node_type_id` int(10) NOT NULL DEFAULT '0',
|
194
|
+
PRIMARY KEY (`field_id`,`node_type_id`),
|
195
|
+
KEY `idx_custom_fields_assign` (`node_type_id`)
|
196
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
197
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
198
|
+
|
199
|
+
--
|
200
|
+
-- Dumping data for table `cfield_node_types`
|
201
|
+
--
|
202
|
+
|
203
|
+
LOCK TABLES `cfield_node_types` WRITE;
|
204
|
+
/*!40000 ALTER TABLE `cfield_node_types` DISABLE KEYS */;
|
205
|
+
/*!40000 ALTER TABLE `cfield_node_types` ENABLE KEYS */;
|
206
|
+
UNLOCK TABLES;
|
207
|
+
|
208
|
+
--
|
209
|
+
-- Table structure for table `cfield_testplan_design_values`
|
210
|
+
--
|
211
|
+
|
212
|
+
DROP TABLE IF EXISTS `cfield_testplan_design_values`;
|
213
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
214
|
+
/*!40101 SET character_set_client = utf8 */;
|
215
|
+
CREATE TABLE `cfield_testplan_design_values` (
|
216
|
+
`field_id` int(10) NOT NULL DEFAULT '0',
|
217
|
+
`link_id` int(10) NOT NULL DEFAULT '0' COMMENT 'point to testplan_tcversion id',
|
218
|
+
`value` varchar(4000) NOT NULL DEFAULT '',
|
219
|
+
PRIMARY KEY (`field_id`,`link_id`),
|
220
|
+
KEY `idx_cfield_tplan_design_val` (`link_id`)
|
221
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
222
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
223
|
+
|
224
|
+
--
|
225
|
+
-- Dumping data for table `cfield_testplan_design_values`
|
226
|
+
--
|
227
|
+
|
228
|
+
LOCK TABLES `cfield_testplan_design_values` WRITE;
|
229
|
+
/*!40000 ALTER TABLE `cfield_testplan_design_values` DISABLE KEYS */;
|
230
|
+
/*!40000 ALTER TABLE `cfield_testplan_design_values` ENABLE KEYS */;
|
231
|
+
UNLOCK TABLES;
|
232
|
+
|
233
|
+
--
|
234
|
+
-- Table structure for table `cfield_testprojects`
|
235
|
+
--
|
236
|
+
|
237
|
+
DROP TABLE IF EXISTS `cfield_testprojects`;
|
238
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
239
|
+
/*!40101 SET character_set_client = utf8 */;
|
240
|
+
CREATE TABLE `cfield_testprojects` (
|
241
|
+
`field_id` int(10) unsigned NOT NULL DEFAULT '0',
|
242
|
+
`testproject_id` int(10) unsigned NOT NULL DEFAULT '0',
|
243
|
+
`display_order` smallint(5) unsigned NOT NULL DEFAULT '1',
|
244
|
+
`location` smallint(5) unsigned NOT NULL DEFAULT '1',
|
245
|
+
`active` tinyint(1) NOT NULL DEFAULT '1',
|
246
|
+
`required_on_design` tinyint(1) NOT NULL DEFAULT '0',
|
247
|
+
`required_on_execution` tinyint(1) NOT NULL DEFAULT '0',
|
248
|
+
PRIMARY KEY (`field_id`,`testproject_id`)
|
249
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
250
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
251
|
+
|
252
|
+
--
|
253
|
+
-- Dumping data for table `cfield_testprojects`
|
254
|
+
--
|
255
|
+
|
256
|
+
LOCK TABLES `cfield_testprojects` WRITE;
|
257
|
+
/*!40000 ALTER TABLE `cfield_testprojects` DISABLE KEYS */;
|
258
|
+
/*!40000 ALTER TABLE `cfield_testprojects` ENABLE KEYS */;
|
259
|
+
UNLOCK TABLES;
|
260
|
+
|
261
|
+
--
|
262
|
+
-- Table structure for table `custom_fields`
|
263
|
+
--
|
264
|
+
|
265
|
+
DROP TABLE IF EXISTS `custom_fields`;
|
266
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
267
|
+
/*!40101 SET character_set_client = utf8 */;
|
268
|
+
CREATE TABLE `custom_fields` (
|
269
|
+
`id` int(10) NOT NULL AUTO_INCREMENT,
|
270
|
+
`name` varchar(64) NOT NULL DEFAULT '',
|
271
|
+
`label` varchar(64) NOT NULL DEFAULT '' COMMENT 'label to display on user interface',
|
272
|
+
`type` smallint(6) NOT NULL DEFAULT '0',
|
273
|
+
`possible_values` varchar(4000) NOT NULL DEFAULT '',
|
274
|
+
`default_value` varchar(4000) NOT NULL DEFAULT '',
|
275
|
+
`valid_regexp` varchar(255) NOT NULL DEFAULT '',
|
276
|
+
`length_min` int(10) NOT NULL DEFAULT '0',
|
277
|
+
`length_max` int(10) NOT NULL DEFAULT '0',
|
278
|
+
`show_on_design` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '1=> show it during specification design',
|
279
|
+
`enable_on_design` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '1=> user can write/manage it during specification design',
|
280
|
+
`show_on_execution` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '1=> show it during test case execution',
|
281
|
+
`enable_on_execution` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '1=> user can write/manage it during test case execution',
|
282
|
+
`show_on_testplan_design` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
283
|
+
`enable_on_testplan_design` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
284
|
+
PRIMARY KEY (`id`),
|
285
|
+
UNIQUE KEY `idx_custom_fields_name` (`name`)
|
286
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
287
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
288
|
+
|
289
|
+
--
|
290
|
+
-- Dumping data for table `custom_fields`
|
291
|
+
--
|
292
|
+
|
293
|
+
LOCK TABLES `custom_fields` WRITE;
|
294
|
+
/*!40000 ALTER TABLE `custom_fields` DISABLE KEYS */;
|
295
|
+
/*!40000 ALTER TABLE `custom_fields` ENABLE KEYS */;
|
296
|
+
UNLOCK TABLES;
|
297
|
+
|
298
|
+
--
|
299
|
+
-- Table structure for table `db_version`
|
300
|
+
--
|
301
|
+
|
302
|
+
DROP TABLE IF EXISTS `db_version`;
|
303
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
304
|
+
/*!40101 SET character_set_client = utf8 */;
|
305
|
+
CREATE TABLE `db_version` (
|
306
|
+
`version` varchar(50) NOT NULL DEFAULT 'unknown',
|
307
|
+
`upgrade_ts` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
308
|
+
`notes` text
|
309
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
310
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
311
|
+
|
312
|
+
--
|
313
|
+
-- Dumping data for table `db_version`
|
314
|
+
--
|
315
|
+
|
316
|
+
LOCK TABLES `db_version` WRITE;
|
317
|
+
/*!40000 ALTER TABLE `db_version` DISABLE KEYS */;
|
318
|
+
INSERT INTO `db_version` VALUES ('DB 1.4','2011-04-28 10:18:48','TestLink 1.9.1');
|
319
|
+
/*!40000 ALTER TABLE `db_version` ENABLE KEYS */;
|
320
|
+
UNLOCK TABLES;
|
321
|
+
|
322
|
+
--
|
323
|
+
-- Table structure for table `events`
|
324
|
+
--
|
325
|
+
|
326
|
+
DROP TABLE IF EXISTS `events`;
|
327
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
328
|
+
/*!40101 SET character_set_client = utf8 */;
|
329
|
+
CREATE TABLE `events` (
|
330
|
+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
331
|
+
`transaction_id` int(10) unsigned NOT NULL DEFAULT '0',
|
332
|
+
`log_level` smallint(5) unsigned NOT NULL DEFAULT '0',
|
333
|
+
`source` varchar(45) DEFAULT NULL,
|
334
|
+
`description` text NOT NULL,
|
335
|
+
`fired_at` int(10) unsigned NOT NULL DEFAULT '0',
|
336
|
+
`activity` varchar(45) DEFAULT NULL,
|
337
|
+
`object_id` int(10) unsigned DEFAULT NULL,
|
338
|
+
`object_type` varchar(45) DEFAULT NULL,
|
339
|
+
PRIMARY KEY (`id`),
|
340
|
+
KEY `transaction_id` (`transaction_id`),
|
341
|
+
KEY `fired_at` (`fired_at`)
|
342
|
+
) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;
|
343
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
344
|
+
|
345
|
+
--
|
346
|
+
-- Dumping data for table `events`
|
347
|
+
--
|
348
|
+
|
349
|
+
LOCK TABLES `events` WRITE;
|
350
|
+
/*!40000 ALTER TABLE `events` DISABLE KEYS */;
|
351
|
+
INSERT INTO `events` VALUES (1,1,16,'GUI','O:18:\"tlMetaStringHelper\":4:{s:5:\"label\";s:21:\"audit_login_succeeded\";s:6:\"params\";a:2:{i:0;s:5:\"admin\";i:1;s:9:\"127.0.0.1\";}s:13:\"bDontLocalize\";b:0;s:14:\"bDontFireEvent\";b:0;}',1303978873,'LOGIN',1,'users'),(2,2,2,'GUI','No project found: Assume a new installation and redirect to create it',1303978874,NULL,NULL,NULL),(3,3,2,'GUI','No project found: Assume a new installation and redirect to create it',1303979208,NULL,NULL,NULL),(4,4,2,'GUI','No project found: Assume a new installation and redirect to create it',1303979247,NULL,NULL,NULL),(5,5,16,'GUI','O:18:\"tlMetaStringHelper\":4:{s:5:\"label\";s:25:\"audit_testproject_created\";s:6:\"params\";a:1:{i:0;s:14:\"Sample Project\";}s:13:\"bDontLocalize\";b:0;s:14:\"bDontFireEvent\";b:0;}',1303979350,'CREATE',1,'testprojects'),(6,6,16,'GUI','O:18:\"tlMetaStringHelper\":4:{s:5:\"label\";s:18:\"audit_user_created\";s:6:\"params\";a:1:{i:0;s:6:\"leader\";}s:13:\"bDontLocalize\";b:0;s:14:\"bDontFireEvent\";b:0;}',1303979588,'CREATE',2,'users'),(7,7,16,'GUI','O:18:\"tlMetaStringHelper\":4:{s:5:\"label\";s:17:\"audit_user_logout\";s:6:\"params\";a:1:{i:0;s:5:\"admin\";}s:13:\"bDontLocalize\";b:0;s:14:\"bDontFireEvent\";b:0;}',1303979604,'LOGOUT',1,'users'),(8,8,16,'GUI','O:18:\"tlMetaStringHelper\":4:{s:5:\"label\";s:21:\"audit_login_succeeded\";s:6:\"params\";a:2:{i:0;s:6:\"leader\";i:1;s:9:\"127.0.0.1\";}s:13:\"bDontLocalize\";b:0;s:14:\"bDontFireEvent\";b:0;}',1303979612,'LOGIN',2,'users'),(9,9,16,'GUI','O:18:\"tlMetaStringHelper\":4:{s:5:\"label\";s:17:\"audit_user_logout\";s:6:\"params\";a:1:{i:0;s:6:\"leader\";}s:13:\"bDontLocalize\";b:0;s:14:\"bDontFireEvent\";b:0;}',1303979663,'LOGOUT',2,'users'),(10,10,16,'GUI','O:18:\"tlMetaStringHelper\":4:{s:5:\"label\";s:21:\"audit_login_succeeded\";s:6:\"params\";a:2:{i:0;s:5:\"admin\";i:1;s:9:\"127.0.0.1\";}s:13:\"bDontLocalize\";b:0;s:14:\"bDontFireEvent\";b:0;}',1303979672,'LOGIN',1,'users'),(11,11,16,'GUI','O:18:\"tlMetaStringHelper\":4:{s:5:\"label\";s:18:\"audit_user_created\";s:6:\"params\";a:1:{i:0;s:6:\"tester\";}s:13:\"bDontLocalize\";b:0;s:14:\"bDontFireEvent\";b:0;}',1303979740,'CREATE',3,'users'),(12,12,16,'GUI','O:18:\"tlMetaStringHelper\":4:{s:5:\"label\";s:16:\"audit_user_saved\";s:6:\"params\";a:1:{i:0;s:6:\"tester\";}s:13:\"bDontLocalize\";b:0;s:14:\"bDontFireEvent\";b:0;}',1303979773,'SAVE',3,'users'),(13,13,16,'GUI','O:18:\"tlMetaStringHelper\":4:{s:5:\"label\";s:17:\"audit_user_logout\";s:6:\"params\";a:1:{i:0;s:5:\"admin\";}s:13:\"bDontLocalize\";b:0;s:14:\"bDontFireEvent\";b:0;}',1303980768,'LOGOUT',1,'users'),(14,14,16,'GUI','O:18:\"tlMetaStringHelper\":4:{s:5:\"label\";s:21:\"audit_login_succeeded\";s:6:\"params\";a:2:{i:0;s:6:\"tester\";i:1;s:9:\"127.0.0.1\";}s:13:\"bDontLocalize\";b:0;s:14:\"bDontFireEvent\";b:0;}',1303980775,'LOGIN',3,'users');
|
352
|
+
/*!40000 ALTER TABLE `events` ENABLE KEYS */;
|
353
|
+
UNLOCK TABLES;
|
354
|
+
|
355
|
+
--
|
356
|
+
-- Table structure for table `execution_bugs`
|
357
|
+
--
|
358
|
+
|
359
|
+
DROP TABLE IF EXISTS `execution_bugs`;
|
360
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
361
|
+
/*!40101 SET character_set_client = utf8 */;
|
362
|
+
CREATE TABLE `execution_bugs` (
|
363
|
+
`execution_id` int(10) unsigned NOT NULL DEFAULT '0',
|
364
|
+
`bug_id` varchar(16) NOT NULL DEFAULT '0',
|
365
|
+
PRIMARY KEY (`execution_id`,`bug_id`)
|
366
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
367
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
368
|
+
|
369
|
+
--
|
370
|
+
-- Dumping data for table `execution_bugs`
|
371
|
+
--
|
372
|
+
|
373
|
+
LOCK TABLES `execution_bugs` WRITE;
|
374
|
+
/*!40000 ALTER TABLE `execution_bugs` DISABLE KEYS */;
|
375
|
+
/*!40000 ALTER TABLE `execution_bugs` ENABLE KEYS */;
|
376
|
+
UNLOCK TABLES;
|
377
|
+
|
378
|
+
--
|
379
|
+
-- Table structure for table `executions`
|
380
|
+
--
|
381
|
+
|
382
|
+
DROP TABLE IF EXISTS `executions`;
|
383
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
384
|
+
/*!40101 SET character_set_client = utf8 */;
|
385
|
+
CREATE TABLE `executions` (
|
386
|
+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
387
|
+
`build_id` int(10) NOT NULL DEFAULT '0',
|
388
|
+
`tester_id` int(10) unsigned DEFAULT NULL,
|
389
|
+
`execution_ts` datetime DEFAULT NULL,
|
390
|
+
`status` char(1) DEFAULT NULL,
|
391
|
+
`testplan_id` int(10) unsigned NOT NULL DEFAULT '0',
|
392
|
+
`tcversion_id` int(10) unsigned NOT NULL DEFAULT '0',
|
393
|
+
`tcversion_number` smallint(5) unsigned NOT NULL DEFAULT '1',
|
394
|
+
`platform_id` int(10) unsigned NOT NULL DEFAULT '0',
|
395
|
+
`execution_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1 -> manual, 2 -> automated',
|
396
|
+
`notes` text,
|
397
|
+
PRIMARY KEY (`id`),
|
398
|
+
KEY `executions_idx1` (`testplan_id`,`tcversion_id`,`platform_id`,`build_id`),
|
399
|
+
KEY `executions_idx2` (`execution_type`)
|
400
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
401
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
402
|
+
|
403
|
+
--
|
404
|
+
-- Dumping data for table `executions`
|
405
|
+
--
|
406
|
+
|
407
|
+
LOCK TABLES `executions` WRITE;
|
408
|
+
/*!40000 ALTER TABLE `executions` DISABLE KEYS */;
|
409
|
+
/*!40000 ALTER TABLE `executions` ENABLE KEYS */;
|
410
|
+
UNLOCK TABLES;
|
411
|
+
|
412
|
+
--
|
413
|
+
-- Table structure for table `inventory`
|
414
|
+
--
|
415
|
+
|
416
|
+
DROP TABLE IF EXISTS `inventory`;
|
417
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
418
|
+
/*!40101 SET character_set_client = utf8 */;
|
419
|
+
CREATE TABLE `inventory` (
|
420
|
+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
421
|
+
`testproject_id` int(10) unsigned NOT NULL,
|
422
|
+
`owner_id` int(10) unsigned NOT NULL,
|
423
|
+
`name` varchar(255) NOT NULL,
|
424
|
+
`ipaddress` varchar(255) NOT NULL,
|
425
|
+
`content` text,
|
426
|
+
`creation_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
427
|
+
`modification_ts` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
428
|
+
PRIMARY KEY (`id`),
|
429
|
+
KEY `inventory_idx1` (`testproject_id`)
|
430
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
431
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
432
|
+
|
433
|
+
--
|
434
|
+
-- Dumping data for table `inventory`
|
435
|
+
--
|
436
|
+
|
437
|
+
LOCK TABLES `inventory` WRITE;
|
438
|
+
/*!40000 ALTER TABLE `inventory` DISABLE KEYS */;
|
439
|
+
/*!40000 ALTER TABLE `inventory` ENABLE KEYS */;
|
440
|
+
UNLOCK TABLES;
|
441
|
+
|
442
|
+
--
|
443
|
+
-- Table structure for table `keywords`
|
444
|
+
--
|
445
|
+
|
446
|
+
DROP TABLE IF EXISTS `keywords`;
|
447
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
448
|
+
/*!40101 SET character_set_client = utf8 */;
|
449
|
+
CREATE TABLE `keywords` (
|
450
|
+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
451
|
+
`keyword` varchar(100) NOT NULL DEFAULT '',
|
452
|
+
`testproject_id` int(10) unsigned NOT NULL DEFAULT '0',
|
453
|
+
`notes` text,
|
454
|
+
PRIMARY KEY (`id`),
|
455
|
+
KEY `testproject_id` (`testproject_id`),
|
456
|
+
KEY `keyword` (`keyword`)
|
457
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
458
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
459
|
+
|
460
|
+
--
|
461
|
+
-- Dumping data for table `keywords`
|
462
|
+
--
|
463
|
+
|
464
|
+
LOCK TABLES `keywords` WRITE;
|
465
|
+
/*!40000 ALTER TABLE `keywords` DISABLE KEYS */;
|
466
|
+
/*!40000 ALTER TABLE `keywords` ENABLE KEYS */;
|
467
|
+
UNLOCK TABLES;
|
468
|
+
|
469
|
+
--
|
470
|
+
-- Table structure for table `milestones`
|
471
|
+
--
|
472
|
+
|
473
|
+
DROP TABLE IF EXISTS `milestones`;
|
474
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
475
|
+
/*!40101 SET character_set_client = utf8 */;
|
476
|
+
CREATE TABLE `milestones` (
|
477
|
+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
478
|
+
`testplan_id` int(10) unsigned NOT NULL DEFAULT '0',
|
479
|
+
`target_date` date DEFAULT NULL,
|
480
|
+
`start_date` date NOT NULL DEFAULT '0000-00-00',
|
481
|
+
`a` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
482
|
+
`b` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
483
|
+
`c` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
484
|
+
`name` varchar(100) NOT NULL DEFAULT 'undefined',
|
485
|
+
PRIMARY KEY (`id`),
|
486
|
+
UNIQUE KEY `name_testplan_id` (`name`,`testplan_id`),
|
487
|
+
KEY `testplan_id` (`testplan_id`)
|
488
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
489
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
490
|
+
|
491
|
+
--
|
492
|
+
-- Dumping data for table `milestones`
|
493
|
+
--
|
494
|
+
|
495
|
+
LOCK TABLES `milestones` WRITE;
|
496
|
+
/*!40000 ALTER TABLE `milestones` DISABLE KEYS */;
|
497
|
+
/*!40000 ALTER TABLE `milestones` ENABLE KEYS */;
|
498
|
+
UNLOCK TABLES;
|
499
|
+
|
500
|
+
--
|
501
|
+
-- Table structure for table `node_types`
|
502
|
+
--
|
503
|
+
|
504
|
+
DROP TABLE IF EXISTS `node_types`;
|
505
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
506
|
+
/*!40101 SET character_set_client = utf8 */;
|
507
|
+
CREATE TABLE `node_types` (
|
508
|
+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
509
|
+
`description` varchar(100) NOT NULL DEFAULT 'testproject',
|
510
|
+
PRIMARY KEY (`id`)
|
511
|
+
) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
|
512
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
513
|
+
|
514
|
+
--
|
515
|
+
-- Dumping data for table `node_types`
|
516
|
+
--
|
517
|
+
|
518
|
+
LOCK TABLES `node_types` WRITE;
|
519
|
+
/*!40000 ALTER TABLE `node_types` DISABLE KEYS */;
|
520
|
+
INSERT INTO `node_types` VALUES (1,'testproject'),(2,'testsuite'),(3,'testcase'),(4,'testcase_version'),(5,'testplan'),(6,'requirement_spec'),(7,'requirement'),(8,'requirement_version'),(9,'testcase_step'),(10,'requirement_revision');
|
521
|
+
/*!40000 ALTER TABLE `node_types` ENABLE KEYS */;
|
522
|
+
UNLOCK TABLES;
|
523
|
+
|
524
|
+
--
|
525
|
+
-- Table structure for table `nodes_hierarchy`
|
526
|
+
--
|
527
|
+
|
528
|
+
DROP TABLE IF EXISTS `nodes_hierarchy`;
|
529
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
530
|
+
/*!40101 SET character_set_client = utf8 */;
|
531
|
+
CREATE TABLE `nodes_hierarchy` (
|
532
|
+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
533
|
+
`name` varchar(100) DEFAULT NULL,
|
534
|
+
`parent_id` int(10) unsigned DEFAULT NULL,
|
535
|
+
`node_type_id` int(10) unsigned NOT NULL DEFAULT '1',
|
536
|
+
`node_order` int(10) unsigned DEFAULT NULL,
|
537
|
+
PRIMARY KEY (`id`),
|
538
|
+
KEY `pid_m_nodeorder` (`parent_id`,`node_order`)
|
539
|
+
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
|
540
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
541
|
+
|
542
|
+
--
|
543
|
+
-- Dumping data for table `nodes_hierarchy`
|
544
|
+
--
|
545
|
+
|
546
|
+
LOCK TABLES `nodes_hierarchy` WRITE;
|
547
|
+
/*!40000 ALTER TABLE `nodes_hierarchy` DISABLE KEYS */;
|
548
|
+
INSERT INTO `nodes_hierarchy` VALUES (1,'Sample Project',NULL,1,1),(2,'First Testsuite',1,2,1),(3,'Second testsuite',1,2,2),(4,'First Testsuite\'s child',2,2,1);
|
549
|
+
/*!40000 ALTER TABLE `nodes_hierarchy` ENABLE KEYS */;
|
550
|
+
UNLOCK TABLES;
|
551
|
+
|
552
|
+
--
|
553
|
+
-- Table structure for table `object_keywords`
|
554
|
+
--
|
555
|
+
|
556
|
+
DROP TABLE IF EXISTS `object_keywords`;
|
557
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
558
|
+
/*!40101 SET character_set_client = utf8 */;
|
559
|
+
CREATE TABLE `object_keywords` (
|
560
|
+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
561
|
+
`fk_id` int(10) unsigned NOT NULL DEFAULT '0',
|
562
|
+
`fk_table` varchar(30) DEFAULT '',
|
563
|
+
`keyword_id` int(10) unsigned NOT NULL DEFAULT '0',
|
564
|
+
PRIMARY KEY (`id`)
|
565
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
566
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
567
|
+
|
568
|
+
--
|
569
|
+
-- Dumping data for table `object_keywords`
|
570
|
+
--
|
571
|
+
|
572
|
+
LOCK TABLES `object_keywords` WRITE;
|
573
|
+
/*!40000 ALTER TABLE `object_keywords` DISABLE KEYS */;
|
574
|
+
/*!40000 ALTER TABLE `object_keywords` ENABLE KEYS */;
|
575
|
+
UNLOCK TABLES;
|
576
|
+
|
577
|
+
--
|
578
|
+
-- Table structure for table `platforms`
|
579
|
+
--
|
580
|
+
|
581
|
+
DROP TABLE IF EXISTS `platforms`;
|
582
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
583
|
+
/*!40101 SET character_set_client = utf8 */;
|
584
|
+
CREATE TABLE `platforms` (
|
585
|
+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
586
|
+
`name` varchar(100) NOT NULL,
|
587
|
+
`testproject_id` int(10) unsigned NOT NULL,
|
588
|
+
`notes` text NOT NULL,
|
589
|
+
PRIMARY KEY (`id`),
|
590
|
+
UNIQUE KEY `idx_platforms` (`testproject_id`,`name`)
|
591
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
592
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
593
|
+
|
594
|
+
--
|
595
|
+
-- Dumping data for table `platforms`
|
596
|
+
--
|
597
|
+
|
598
|
+
LOCK TABLES `platforms` WRITE;
|
599
|
+
/*!40000 ALTER TABLE `platforms` DISABLE KEYS */;
|
600
|
+
/*!40000 ALTER TABLE `platforms` ENABLE KEYS */;
|
601
|
+
UNLOCK TABLES;
|
602
|
+
|
603
|
+
--
|
604
|
+
-- Table structure for table `req_coverage`
|
605
|
+
--
|
606
|
+
|
607
|
+
DROP TABLE IF EXISTS `req_coverage`;
|
608
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
609
|
+
/*!40101 SET character_set_client = utf8 */;
|
610
|
+
CREATE TABLE `req_coverage` (
|
611
|
+
`req_id` int(10) NOT NULL,
|
612
|
+
`testcase_id` int(10) NOT NULL,
|
613
|
+
KEY `req_testcase` (`req_id`,`testcase_id`)
|
614
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='relation test case ** requirements';
|
615
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
616
|
+
|
617
|
+
--
|
618
|
+
-- Dumping data for table `req_coverage`
|
619
|
+
--
|
620
|
+
|
621
|
+
LOCK TABLES `req_coverage` WRITE;
|
622
|
+
/*!40000 ALTER TABLE `req_coverage` DISABLE KEYS */;
|
623
|
+
/*!40000 ALTER TABLE `req_coverage` ENABLE KEYS */;
|
624
|
+
UNLOCK TABLES;
|
625
|
+
|
626
|
+
--
|
627
|
+
-- Table structure for table `req_relations`
|
628
|
+
--
|
629
|
+
|
630
|
+
DROP TABLE IF EXISTS `req_relations`;
|
631
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
632
|
+
/*!40101 SET character_set_client = utf8 */;
|
633
|
+
CREATE TABLE `req_relations` (
|
634
|
+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
635
|
+
`source_id` int(10) unsigned NOT NULL,
|
636
|
+
`destination_id` int(10) unsigned NOT NULL,
|
637
|
+
`relation_type` smallint(5) unsigned NOT NULL DEFAULT '1',
|
638
|
+
`author_id` int(10) unsigned DEFAULT NULL,
|
639
|
+
`creation_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
640
|
+
PRIMARY KEY (`id`)
|
641
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
642
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
643
|
+
|
644
|
+
--
|
645
|
+
-- Dumping data for table `req_relations`
|
646
|
+
--
|
647
|
+
|
648
|
+
LOCK TABLES `req_relations` WRITE;
|
649
|
+
/*!40000 ALTER TABLE `req_relations` DISABLE KEYS */;
|
650
|
+
/*!40000 ALTER TABLE `req_relations` ENABLE KEYS */;
|
651
|
+
UNLOCK TABLES;
|
652
|
+
|
653
|
+
--
|
654
|
+
-- Table structure for table `req_revisions`
|
655
|
+
--
|
656
|
+
|
657
|
+
DROP TABLE IF EXISTS `req_revisions`;
|
658
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
659
|
+
/*!40101 SET character_set_client = utf8 */;
|
660
|
+
CREATE TABLE `req_revisions` (
|
661
|
+
`parent_id` int(10) unsigned NOT NULL,
|
662
|
+
`id` int(10) unsigned NOT NULL,
|
663
|
+
`revision` smallint(5) unsigned NOT NULL DEFAULT '1',
|
664
|
+
`req_doc_id` varchar(64) DEFAULT NULL,
|
665
|
+
`name` varchar(100) DEFAULT NULL,
|
666
|
+
`scope` text,
|
667
|
+
`status` char(1) NOT NULL DEFAULT 'V',
|
668
|
+
`type` char(1) DEFAULT NULL,
|
669
|
+
`active` tinyint(1) NOT NULL DEFAULT '1',
|
670
|
+
`is_open` tinyint(1) NOT NULL DEFAULT '1',
|
671
|
+
`expected_coverage` int(10) NOT NULL DEFAULT '1',
|
672
|
+
`log_message` text,
|
673
|
+
`author_id` int(10) unsigned DEFAULT NULL,
|
674
|
+
`creation_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
675
|
+
`modifier_id` int(10) unsigned DEFAULT NULL,
|
676
|
+
`modification_ts` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
677
|
+
PRIMARY KEY (`id`),
|
678
|
+
UNIQUE KEY `req_revisions_uidx1` (`parent_id`,`revision`)
|
679
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
680
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
681
|
+
|
682
|
+
--
|
683
|
+
-- Dumping data for table `req_revisions`
|
684
|
+
--
|
685
|
+
|
686
|
+
LOCK TABLES `req_revisions` WRITE;
|
687
|
+
/*!40000 ALTER TABLE `req_revisions` DISABLE KEYS */;
|
688
|
+
/*!40000 ALTER TABLE `req_revisions` ENABLE KEYS */;
|
689
|
+
UNLOCK TABLES;
|
690
|
+
|
691
|
+
--
|
692
|
+
-- Table structure for table `req_specs`
|
693
|
+
--
|
694
|
+
|
695
|
+
DROP TABLE IF EXISTS `req_specs`;
|
696
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
697
|
+
/*!40101 SET character_set_client = utf8 */;
|
698
|
+
CREATE TABLE `req_specs` (
|
699
|
+
`id` int(10) unsigned NOT NULL,
|
700
|
+
`testproject_id` int(10) unsigned NOT NULL,
|
701
|
+
`doc_id` varchar(64) NOT NULL,
|
702
|
+
`scope` text,
|
703
|
+
`total_req` int(10) NOT NULL DEFAULT '0',
|
704
|
+
`type` char(1) DEFAULT 'n',
|
705
|
+
`author_id` int(10) unsigned DEFAULT NULL,
|
706
|
+
`creation_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
707
|
+
`modifier_id` int(10) unsigned DEFAULT NULL,
|
708
|
+
`modification_ts` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
709
|
+
PRIMARY KEY (`id`),
|
710
|
+
UNIQUE KEY `req_spec_uk1` (`doc_id`,`testproject_id`),
|
711
|
+
KEY `testproject_id` (`testproject_id`)
|
712
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Dev. Documents (e.g. System Requirements Specification)';
|
713
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
714
|
+
|
715
|
+
--
|
716
|
+
-- Dumping data for table `req_specs`
|
717
|
+
--
|
718
|
+
|
719
|
+
LOCK TABLES `req_specs` WRITE;
|
720
|
+
/*!40000 ALTER TABLE `req_specs` DISABLE KEYS */;
|
721
|
+
/*!40000 ALTER TABLE `req_specs` ENABLE KEYS */;
|
722
|
+
UNLOCK TABLES;
|
723
|
+
|
724
|
+
--
|
725
|
+
-- Table structure for table `req_versions`
|
726
|
+
--
|
727
|
+
|
728
|
+
DROP TABLE IF EXISTS `req_versions`;
|
729
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
730
|
+
/*!40101 SET character_set_client = utf8 */;
|
731
|
+
CREATE TABLE `req_versions` (
|
732
|
+
`id` int(10) unsigned NOT NULL,
|
733
|
+
`version` smallint(5) unsigned NOT NULL DEFAULT '1',
|
734
|
+
`revision` smallint(5) unsigned NOT NULL DEFAULT '1',
|
735
|
+
`scope` text,
|
736
|
+
`status` char(1) NOT NULL DEFAULT 'V',
|
737
|
+
`type` char(1) DEFAULT NULL,
|
738
|
+
`active` tinyint(1) NOT NULL DEFAULT '1',
|
739
|
+
`is_open` tinyint(1) NOT NULL DEFAULT '1',
|
740
|
+
`expected_coverage` int(10) NOT NULL DEFAULT '1',
|
741
|
+
`author_id` int(10) unsigned DEFAULT NULL,
|
742
|
+
`creation_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
743
|
+
`modifier_id` int(10) unsigned DEFAULT NULL,
|
744
|
+
`modification_ts` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
745
|
+
`log_message` text,
|
746
|
+
PRIMARY KEY (`id`)
|
747
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
748
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
749
|
+
|
750
|
+
--
|
751
|
+
-- Dumping data for table `req_versions`
|
752
|
+
--
|
753
|
+
|
754
|
+
LOCK TABLES `req_versions` WRITE;
|
755
|
+
/*!40000 ALTER TABLE `req_versions` DISABLE KEYS */;
|
756
|
+
/*!40000 ALTER TABLE `req_versions` ENABLE KEYS */;
|
757
|
+
UNLOCK TABLES;
|
758
|
+
|
759
|
+
--
|
760
|
+
-- Table structure for table `requirements`
|
761
|
+
--
|
762
|
+
|
763
|
+
DROP TABLE IF EXISTS `requirements`;
|
764
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
765
|
+
/*!40101 SET character_set_client = utf8 */;
|
766
|
+
CREATE TABLE `requirements` (
|
767
|
+
`id` int(10) unsigned NOT NULL,
|
768
|
+
`srs_id` int(10) unsigned NOT NULL,
|
769
|
+
`req_doc_id` varchar(64) NOT NULL,
|
770
|
+
PRIMARY KEY (`id`),
|
771
|
+
UNIQUE KEY `requirements_req_doc_id` (`srs_id`,`req_doc_id`)
|
772
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
773
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
774
|
+
|
775
|
+
--
|
776
|
+
-- Dumping data for table `requirements`
|
777
|
+
--
|
778
|
+
|
779
|
+
LOCK TABLES `requirements` WRITE;
|
780
|
+
/*!40000 ALTER TABLE `requirements` DISABLE KEYS */;
|
781
|
+
/*!40000 ALTER TABLE `requirements` ENABLE KEYS */;
|
782
|
+
UNLOCK TABLES;
|
783
|
+
|
784
|
+
--
|
785
|
+
-- Table structure for table `rights`
|
786
|
+
--
|
787
|
+
|
788
|
+
DROP TABLE IF EXISTS `rights`;
|
789
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
790
|
+
/*!40101 SET character_set_client = utf8 */;
|
791
|
+
CREATE TABLE `rights` (
|
792
|
+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
793
|
+
`description` varchar(100) NOT NULL DEFAULT '',
|
794
|
+
PRIMARY KEY (`id`),
|
795
|
+
UNIQUE KEY `rights_descr` (`description`)
|
796
|
+
) ENGINE=MyISAM AUTO_INCREMENT=28 DEFAULT CHARSET=utf8;
|
797
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
798
|
+
|
799
|
+
--
|
800
|
+
-- Dumping data for table `rights`
|
801
|
+
--
|
802
|
+
|
803
|
+
LOCK TABLES `rights` WRITE;
|
804
|
+
/*!40000 ALTER TABLE `rights` DISABLE KEYS */;
|
805
|
+
INSERT INTO `rights` VALUES (1,'testplan_execute'),(2,'testplan_create_build'),(3,'testplan_metrics'),(4,'testplan_planning'),(5,'testplan_user_role_assignment'),(6,'mgt_view_tc'),(7,'mgt_modify_tc'),(8,'mgt_view_key'),(9,'mgt_modify_key'),(10,'mgt_view_req'),(11,'mgt_modify_req'),(12,'mgt_modify_product'),(13,'mgt_users'),(14,'role_management'),(15,'user_role_assignment'),(16,'mgt_testplan_create'),(17,'cfield_view'),(18,'cfield_management'),(19,'system_configuration'),(20,'mgt_view_events'),(21,'mgt_view_usergroups'),(22,'events_mgt'),(23,'testproject_user_role_assignment'),(24,'platform_management'),(25,'platform_view'),(26,'project_inventory_management'),(27,'project_inventory_view');
|
806
|
+
/*!40000 ALTER TABLE `rights` ENABLE KEYS */;
|
807
|
+
UNLOCK TABLES;
|
808
|
+
|
809
|
+
--
|
810
|
+
-- Table structure for table `risk_assignments`
|
811
|
+
--
|
812
|
+
|
813
|
+
DROP TABLE IF EXISTS `risk_assignments`;
|
814
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
815
|
+
/*!40101 SET character_set_client = utf8 */;
|
816
|
+
CREATE TABLE `risk_assignments` (
|
817
|
+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
818
|
+
`testplan_id` int(10) unsigned NOT NULL DEFAULT '0',
|
819
|
+
`node_id` int(10) unsigned NOT NULL DEFAULT '0',
|
820
|
+
`risk` char(1) NOT NULL DEFAULT '2',
|
821
|
+
`importance` char(1) NOT NULL DEFAULT 'M',
|
822
|
+
PRIMARY KEY (`id`),
|
823
|
+
UNIQUE KEY `risk_assignments_tplan_node_id` (`testplan_id`,`node_id`)
|
824
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
825
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
826
|
+
|
827
|
+
--
|
828
|
+
-- Dumping data for table `risk_assignments`
|
829
|
+
--
|
830
|
+
|
831
|
+
LOCK TABLES `risk_assignments` WRITE;
|
832
|
+
/*!40000 ALTER TABLE `risk_assignments` DISABLE KEYS */;
|
833
|
+
/*!40000 ALTER TABLE `risk_assignments` ENABLE KEYS */;
|
834
|
+
UNLOCK TABLES;
|
835
|
+
|
836
|
+
--
|
837
|
+
-- Table structure for table `role_rights`
|
838
|
+
--
|
839
|
+
|
840
|
+
DROP TABLE IF EXISTS `role_rights`;
|
841
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
842
|
+
/*!40101 SET character_set_client = utf8 */;
|
843
|
+
CREATE TABLE `role_rights` (
|
844
|
+
`role_id` int(10) NOT NULL DEFAULT '0',
|
845
|
+
`right_id` int(10) NOT NULL DEFAULT '0',
|
846
|
+
PRIMARY KEY (`role_id`,`right_id`)
|
847
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
848
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
849
|
+
|
850
|
+
--
|
851
|
+
-- Dumping data for table `role_rights`
|
852
|
+
--
|
853
|
+
|
854
|
+
LOCK TABLES `role_rights` WRITE;
|
855
|
+
/*!40000 ALTER TABLE `role_rights` DISABLE KEYS */;
|
856
|
+
INSERT INTO `role_rights` VALUES (4,3),(4,6),(4,7),(4,8),(4,9),(4,10),(4,11),(5,3),(5,6),(5,8),(6,1),(6,2),(6,3),(6,6),(6,7),(6,8),(6,9),(6,11),(6,25),(6,27),(7,1),(7,3),(7,6),(7,8),(8,1),(8,2),(8,3),(8,4),(8,5),(8,6),(8,7),(8,8),(8,9),(8,10),(8,11),(8,12),(8,13),(8,14),(8,15),(8,16),(8,17),(8,18),(8,19),(8,20),(8,21),(8,22),(8,23),(8,24),(8,25),(8,26),(8,27),(9,1),(9,2),(9,3),(9,4),(9,5),(9,6),(9,7),(9,8),(9,9),(9,10),(9,11),(9,15),(9,16),(9,24),(9,25),(9,26),(9,27);
|
857
|
+
/*!40000 ALTER TABLE `role_rights` ENABLE KEYS */;
|
858
|
+
UNLOCK TABLES;
|
859
|
+
|
860
|
+
--
|
861
|
+
-- Table structure for table `roles`
|
862
|
+
--
|
863
|
+
|
864
|
+
DROP TABLE IF EXISTS `roles`;
|
865
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
866
|
+
/*!40101 SET character_set_client = utf8 */;
|
867
|
+
CREATE TABLE `roles` (
|
868
|
+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
869
|
+
`description` varchar(100) NOT NULL DEFAULT '',
|
870
|
+
`notes` text,
|
871
|
+
PRIMARY KEY (`id`),
|
872
|
+
UNIQUE KEY `role_rights_roles_descr` (`description`)
|
873
|
+
) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;
|
874
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
875
|
+
|
876
|
+
--
|
877
|
+
-- Dumping data for table `roles`
|
878
|
+
--
|
879
|
+
|
880
|
+
LOCK TABLES `roles` WRITE;
|
881
|
+
/*!40000 ALTER TABLE `roles` DISABLE KEYS */;
|
882
|
+
INSERT INTO `roles` VALUES (1,'<reserved system role 1>',NULL),(2,'<reserved system role 2>',NULL),(3,'<no rights>',NULL),(4,'test designer',NULL),(5,'guest',NULL),(6,'senior tester',NULL),(7,'tester',NULL),(8,'admin',NULL),(9,'leader',NULL);
|
883
|
+
/*!40000 ALTER TABLE `roles` ENABLE KEYS */;
|
884
|
+
UNLOCK TABLES;
|
885
|
+
|
886
|
+
--
|
887
|
+
-- Table structure for table `tcsteps`
|
888
|
+
--
|
889
|
+
|
890
|
+
DROP TABLE IF EXISTS `tcsteps`;
|
891
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
892
|
+
/*!40101 SET character_set_client = utf8 */;
|
893
|
+
CREATE TABLE `tcsteps` (
|
894
|
+
`id` int(10) unsigned NOT NULL,
|
895
|
+
`step_number` int(11) NOT NULL DEFAULT '1',
|
896
|
+
`actions` text,
|
897
|
+
`expected_results` text,
|
898
|
+
`active` tinyint(1) NOT NULL DEFAULT '1',
|
899
|
+
`execution_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1 -> manual, 2 -> automated',
|
900
|
+
PRIMARY KEY (`id`)
|
901
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
902
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
903
|
+
|
904
|
+
--
|
905
|
+
-- Dumping data for table `tcsteps`
|
906
|
+
--
|
907
|
+
|
908
|
+
LOCK TABLES `tcsteps` WRITE;
|
909
|
+
/*!40000 ALTER TABLE `tcsteps` DISABLE KEYS */;
|
910
|
+
/*!40000 ALTER TABLE `tcsteps` ENABLE KEYS */;
|
911
|
+
UNLOCK TABLES;
|
912
|
+
|
913
|
+
--
|
914
|
+
-- Table structure for table `tcversions`
|
915
|
+
--
|
916
|
+
|
917
|
+
DROP TABLE IF EXISTS `tcversions`;
|
918
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
919
|
+
/*!40101 SET character_set_client = utf8 */;
|
920
|
+
CREATE TABLE `tcversions` (
|
921
|
+
`id` int(10) unsigned NOT NULL,
|
922
|
+
`tc_external_id` int(10) unsigned DEFAULT NULL,
|
923
|
+
`version` smallint(5) unsigned NOT NULL DEFAULT '1',
|
924
|
+
`layout` smallint(5) unsigned NOT NULL DEFAULT '1',
|
925
|
+
`status` smallint(5) unsigned NOT NULL DEFAULT '1',
|
926
|
+
`summary` text,
|
927
|
+
`preconditions` text,
|
928
|
+
`importance` smallint(5) unsigned NOT NULL DEFAULT '2',
|
929
|
+
`author_id` int(10) unsigned DEFAULT NULL,
|
930
|
+
`creation_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
931
|
+
`updater_id` int(10) unsigned DEFAULT NULL,
|
932
|
+
`modification_ts` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
933
|
+
`active` tinyint(1) NOT NULL DEFAULT '1',
|
934
|
+
`is_open` tinyint(1) NOT NULL DEFAULT '1',
|
935
|
+
`execution_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1 -> manual, 2 -> automated',
|
936
|
+
PRIMARY KEY (`id`)
|
937
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
938
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
939
|
+
|
940
|
+
--
|
941
|
+
-- Dumping data for table `tcversions`
|
942
|
+
--
|
943
|
+
|
944
|
+
LOCK TABLES `tcversions` WRITE;
|
945
|
+
/*!40000 ALTER TABLE `tcversions` DISABLE KEYS */;
|
946
|
+
/*!40000 ALTER TABLE `tcversions` ENABLE KEYS */;
|
947
|
+
UNLOCK TABLES;
|
948
|
+
|
949
|
+
--
|
950
|
+
-- Table structure for table `testcase_keywords`
|
951
|
+
--
|
952
|
+
|
953
|
+
DROP TABLE IF EXISTS `testcase_keywords`;
|
954
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
955
|
+
/*!40101 SET character_set_client = utf8 */;
|
956
|
+
CREATE TABLE `testcase_keywords` (
|
957
|
+
`testcase_id` int(10) unsigned NOT NULL DEFAULT '0',
|
958
|
+
`keyword_id` int(10) unsigned NOT NULL DEFAULT '0',
|
959
|
+
PRIMARY KEY (`testcase_id`,`keyword_id`)
|
960
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
961
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
962
|
+
|
963
|
+
--
|
964
|
+
-- Dumping data for table `testcase_keywords`
|
965
|
+
--
|
966
|
+
|
967
|
+
LOCK TABLES `testcase_keywords` WRITE;
|
968
|
+
/*!40000 ALTER TABLE `testcase_keywords` DISABLE KEYS */;
|
969
|
+
/*!40000 ALTER TABLE `testcase_keywords` ENABLE KEYS */;
|
970
|
+
UNLOCK TABLES;
|
971
|
+
|
972
|
+
--
|
973
|
+
-- Table structure for table `testplan_platforms`
|
974
|
+
--
|
975
|
+
|
976
|
+
DROP TABLE IF EXISTS `testplan_platforms`;
|
977
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
978
|
+
/*!40101 SET character_set_client = utf8 */;
|
979
|
+
CREATE TABLE `testplan_platforms` (
|
980
|
+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
981
|
+
`testplan_id` int(10) unsigned NOT NULL,
|
982
|
+
`platform_id` int(10) unsigned NOT NULL,
|
983
|
+
PRIMARY KEY (`id`),
|
984
|
+
UNIQUE KEY `idx_testplan_platforms` (`testplan_id`,`platform_id`)
|
985
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Connects a testplan with platforms';
|
986
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
987
|
+
|
988
|
+
--
|
989
|
+
-- Dumping data for table `testplan_platforms`
|
990
|
+
--
|
991
|
+
|
992
|
+
LOCK TABLES `testplan_platforms` WRITE;
|
993
|
+
/*!40000 ALTER TABLE `testplan_platforms` DISABLE KEYS */;
|
994
|
+
/*!40000 ALTER TABLE `testplan_platforms` ENABLE KEYS */;
|
995
|
+
UNLOCK TABLES;
|
996
|
+
|
997
|
+
--
|
998
|
+
-- Table structure for table `testplan_tcversions`
|
999
|
+
--
|
1000
|
+
|
1001
|
+
DROP TABLE IF EXISTS `testplan_tcversions`;
|
1002
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
1003
|
+
/*!40101 SET character_set_client = utf8 */;
|
1004
|
+
CREATE TABLE `testplan_tcversions` (
|
1005
|
+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
1006
|
+
`testplan_id` int(10) unsigned NOT NULL DEFAULT '0',
|
1007
|
+
`tcversion_id` int(10) unsigned NOT NULL DEFAULT '0',
|
1008
|
+
`node_order` int(10) unsigned NOT NULL DEFAULT '1',
|
1009
|
+
`urgency` smallint(5) NOT NULL DEFAULT '2',
|
1010
|
+
`platform_id` int(10) unsigned NOT NULL DEFAULT '0',
|
1011
|
+
`author_id` int(10) unsigned DEFAULT NULL,
|
1012
|
+
`creation_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
1013
|
+
PRIMARY KEY (`id`),
|
1014
|
+
UNIQUE KEY `testplan_tcversions_tplan_tcversion` (`testplan_id`,`tcversion_id`,`platform_id`)
|
1015
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
1016
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
1017
|
+
|
1018
|
+
--
|
1019
|
+
-- Dumping data for table `testplan_tcversions`
|
1020
|
+
--
|
1021
|
+
|
1022
|
+
LOCK TABLES `testplan_tcversions` WRITE;
|
1023
|
+
/*!40000 ALTER TABLE `testplan_tcversions` DISABLE KEYS */;
|
1024
|
+
/*!40000 ALTER TABLE `testplan_tcversions` ENABLE KEYS */;
|
1025
|
+
UNLOCK TABLES;
|
1026
|
+
|
1027
|
+
--
|
1028
|
+
-- Table structure for table `testplans`
|
1029
|
+
--
|
1030
|
+
|
1031
|
+
DROP TABLE IF EXISTS `testplans`;
|
1032
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
1033
|
+
/*!40101 SET character_set_client = utf8 */;
|
1034
|
+
CREATE TABLE `testplans` (
|
1035
|
+
`id` int(10) unsigned NOT NULL,
|
1036
|
+
`testproject_id` int(10) unsigned NOT NULL DEFAULT '0',
|
1037
|
+
`notes` text,
|
1038
|
+
`active` tinyint(1) NOT NULL DEFAULT '1',
|
1039
|
+
`is_open` tinyint(1) NOT NULL DEFAULT '1',
|
1040
|
+
`is_public` tinyint(1) NOT NULL DEFAULT '1',
|
1041
|
+
PRIMARY KEY (`id`),
|
1042
|
+
KEY `testplans_testproject_id_active` (`testproject_id`,`active`)
|
1043
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
1044
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
1045
|
+
|
1046
|
+
--
|
1047
|
+
-- Dumping data for table `testplans`
|
1048
|
+
--
|
1049
|
+
|
1050
|
+
LOCK TABLES `testplans` WRITE;
|
1051
|
+
/*!40000 ALTER TABLE `testplans` DISABLE KEYS */;
|
1052
|
+
/*!40000 ALTER TABLE `testplans` ENABLE KEYS */;
|
1053
|
+
UNLOCK TABLES;
|
1054
|
+
|
1055
|
+
--
|
1056
|
+
-- Table structure for table `testprojects`
|
1057
|
+
--
|
1058
|
+
|
1059
|
+
DROP TABLE IF EXISTS `testprojects`;
|
1060
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
1061
|
+
/*!40101 SET character_set_client = utf8 */;
|
1062
|
+
CREATE TABLE `testprojects` (
|
1063
|
+
`id` int(10) unsigned NOT NULL,
|
1064
|
+
`notes` text,
|
1065
|
+
`color` varchar(12) NOT NULL DEFAULT '#9BD',
|
1066
|
+
`active` tinyint(1) NOT NULL DEFAULT '1',
|
1067
|
+
`option_reqs` tinyint(1) NOT NULL DEFAULT '0',
|
1068
|
+
`option_priority` tinyint(1) NOT NULL DEFAULT '0',
|
1069
|
+
`option_automation` tinyint(1) NOT NULL DEFAULT '0',
|
1070
|
+
`options` text,
|
1071
|
+
`prefix` varchar(16) NOT NULL,
|
1072
|
+
`tc_counter` int(10) unsigned NOT NULL DEFAULT '0',
|
1073
|
+
`is_public` tinyint(1) NOT NULL DEFAULT '1',
|
1074
|
+
PRIMARY KEY (`id`),
|
1075
|
+
UNIQUE KEY `testprojects_prefix` (`prefix`),
|
1076
|
+
KEY `testprojects_id_active` (`id`,`active`)
|
1077
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
1078
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
1079
|
+
|
1080
|
+
--
|
1081
|
+
-- Dumping data for table `testprojects`
|
1082
|
+
--
|
1083
|
+
|
1084
|
+
LOCK TABLES `testprojects` WRITE;
|
1085
|
+
/*!40000 ALTER TABLE `testprojects` DISABLE KEYS */;
|
1086
|
+
INSERT INTO `testprojects` VALUES (1,'<p>Project for test automation</p>','',1,0,0,0,'O:8:\"stdClass\":4:{s:19:\"requirementsEnabled\";i:1;s:19:\"testPriorityEnabled\";i:0;s:17:\"automationEnabled\";i:1;s:16:\"inventoryEnabled\";i:0;}','SP',0,1);
|
1087
|
+
/*!40000 ALTER TABLE `testprojects` ENABLE KEYS */;
|
1088
|
+
UNLOCK TABLES;
|
1089
|
+
|
1090
|
+
--
|
1091
|
+
-- Table structure for table `testsuites`
|
1092
|
+
--
|
1093
|
+
|
1094
|
+
DROP TABLE IF EXISTS `testsuites`;
|
1095
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
1096
|
+
/*!40101 SET character_set_client = utf8 */;
|
1097
|
+
CREATE TABLE `testsuites` (
|
1098
|
+
`id` int(10) unsigned NOT NULL,
|
1099
|
+
`details` text,
|
1100
|
+
PRIMARY KEY (`id`)
|
1101
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
1102
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
1103
|
+
|
1104
|
+
--
|
1105
|
+
-- Dumping data for table `testsuites`
|
1106
|
+
--
|
1107
|
+
|
1108
|
+
LOCK TABLES `testsuites` WRITE;
|
1109
|
+
/*!40000 ALTER TABLE `testsuites` DISABLE KEYS */;
|
1110
|
+
INSERT INTO `testsuites` VALUES (2,'<p>My first testsuite</p>'),(3,'<p>A second one</p>'),(4,'<p>First one\'s child</p>');
|
1111
|
+
/*!40000 ALTER TABLE `testsuites` ENABLE KEYS */;
|
1112
|
+
UNLOCK TABLES;
|
1113
|
+
|
1114
|
+
--
|
1115
|
+
-- Table structure for table `transactions`
|
1116
|
+
--
|
1117
|
+
|
1118
|
+
DROP TABLE IF EXISTS `transactions`;
|
1119
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
1120
|
+
/*!40101 SET character_set_client = utf8 */;
|
1121
|
+
CREATE TABLE `transactions` (
|
1122
|
+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
1123
|
+
`entry_point` varchar(45) NOT NULL DEFAULT '',
|
1124
|
+
`start_time` int(10) unsigned NOT NULL DEFAULT '0',
|
1125
|
+
`end_time` int(10) unsigned NOT NULL DEFAULT '0',
|
1126
|
+
`user_id` int(10) unsigned NOT NULL DEFAULT '0',
|
1127
|
+
`session_id` varchar(45) DEFAULT NULL,
|
1128
|
+
PRIMARY KEY (`id`)
|
1129
|
+
) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;
|
1130
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
1131
|
+
|
1132
|
+
--
|
1133
|
+
-- Dumping data for table `transactions`
|
1134
|
+
--
|
1135
|
+
|
1136
|
+
LOCK TABLES `transactions` WRITE;
|
1137
|
+
/*!40000 ALTER TABLE `transactions` DISABLE KEYS */;
|
1138
|
+
INSERT INTO `transactions` VALUES (1,'/login.php',1303978873,1303978873,1,'k3v228no1gv2gutb5es42kkls6'),(2,'/lib/general/mainPage.php',1303978874,1303978874,1,'k3v228no1gv2gutb5es42kkls6'),(3,'/lib/general/mainPage.php',1303979208,1303979208,1,'k3v228no1gv2gutb5es42kkls6'),(4,'/lib/general/mainPage.php',1303979247,1303979247,1,'k3v228no1gv2gutb5es42kkls6'),(5,'/lib/project/projectEdit.php',1303979350,1303979350,1,'k3v228no1gv2gutb5es42kkls6'),(6,'/lib/usermanagement/usersEdit.php',1303979588,1303979588,1,'k3v228no1gv2gutb5es42kkls6'),(7,'/logout.php',1303979604,1303979604,1,'k3v228no1gv2gutb5es42kkls6'),(8,'/login.php',1303979612,1303979612,2,'k3v228no1gv2gutb5es42kkls6'),(9,'/logout.php',1303979663,1303979663,2,'k3v228no1gv2gutb5es42kkls6'),(10,'/login.php',1303979672,1303979672,1,'k3v228no1gv2gutb5es42kkls6'),(11,'/lib/usermanagement/usersEdit.php',1303979740,1303979740,1,'k3v228no1gv2gutb5es42kkls6'),(12,'/lib/usermanagement/usersEdit.php',1303979773,1303979773,1,'k3v228no1gv2gutb5es42kkls6'),(13,'/logout.php',1303980768,1303980768,1,'k3v228no1gv2gutb5es42kkls6'),(14,'/login.php',1303980775,1303980775,3,'k3v228no1gv2gutb5es42kkls6');
|
1139
|
+
/*!40000 ALTER TABLE `transactions` ENABLE KEYS */;
|
1140
|
+
UNLOCK TABLES;
|
1141
|
+
|
1142
|
+
--
|
1143
|
+
-- Table structure for table `user_assignments`
|
1144
|
+
--
|
1145
|
+
|
1146
|
+
DROP TABLE IF EXISTS `user_assignments`;
|
1147
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
1148
|
+
/*!40101 SET character_set_client = utf8 */;
|
1149
|
+
CREATE TABLE `user_assignments` (
|
1150
|
+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
1151
|
+
`type` int(10) unsigned NOT NULL DEFAULT '1',
|
1152
|
+
`feature_id` int(10) unsigned NOT NULL DEFAULT '0',
|
1153
|
+
`user_id` int(10) unsigned DEFAULT '0',
|
1154
|
+
`build_id` int(10) unsigned DEFAULT '0',
|
1155
|
+
`deadline_ts` datetime DEFAULT NULL,
|
1156
|
+
`assigner_id` int(10) unsigned DEFAULT '0',
|
1157
|
+
`creation_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
1158
|
+
`status` int(10) unsigned DEFAULT '1',
|
1159
|
+
PRIMARY KEY (`id`),
|
1160
|
+
KEY `user_assignments_feature_id` (`feature_id`)
|
1161
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
1162
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
1163
|
+
|
1164
|
+
--
|
1165
|
+
-- Dumping data for table `user_assignments`
|
1166
|
+
--
|
1167
|
+
|
1168
|
+
LOCK TABLES `user_assignments` WRITE;
|
1169
|
+
/*!40000 ALTER TABLE `user_assignments` DISABLE KEYS */;
|
1170
|
+
/*!40000 ALTER TABLE `user_assignments` ENABLE KEYS */;
|
1171
|
+
UNLOCK TABLES;
|
1172
|
+
|
1173
|
+
--
|
1174
|
+
-- Table structure for table `user_group`
|
1175
|
+
--
|
1176
|
+
|
1177
|
+
DROP TABLE IF EXISTS `user_group`;
|
1178
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
1179
|
+
/*!40101 SET character_set_client = utf8 */;
|
1180
|
+
CREATE TABLE `user_group` (
|
1181
|
+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
1182
|
+
`title` varchar(100) NOT NULL,
|
1183
|
+
`description` text,
|
1184
|
+
PRIMARY KEY (`id`),
|
1185
|
+
UNIQUE KEY `idx_user_group` (`title`)
|
1186
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
1187
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
1188
|
+
|
1189
|
+
--
|
1190
|
+
-- Dumping data for table `user_group`
|
1191
|
+
--
|
1192
|
+
|
1193
|
+
LOCK TABLES `user_group` WRITE;
|
1194
|
+
/*!40000 ALTER TABLE `user_group` DISABLE KEYS */;
|
1195
|
+
/*!40000 ALTER TABLE `user_group` ENABLE KEYS */;
|
1196
|
+
UNLOCK TABLES;
|
1197
|
+
|
1198
|
+
--
|
1199
|
+
-- Table structure for table `user_group_assign`
|
1200
|
+
--
|
1201
|
+
|
1202
|
+
DROP TABLE IF EXISTS `user_group_assign`;
|
1203
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
1204
|
+
/*!40101 SET character_set_client = utf8 */;
|
1205
|
+
CREATE TABLE `user_group_assign` (
|
1206
|
+
`usergroup_id` int(10) unsigned NOT NULL,
|
1207
|
+
`user_id` int(10) unsigned NOT NULL,
|
1208
|
+
UNIQUE KEY `idx_user_group_assign` (`usergroup_id`,`user_id`)
|
1209
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
1210
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
1211
|
+
|
1212
|
+
--
|
1213
|
+
-- Dumping data for table `user_group_assign`
|
1214
|
+
--
|
1215
|
+
|
1216
|
+
LOCK TABLES `user_group_assign` WRITE;
|
1217
|
+
/*!40000 ALTER TABLE `user_group_assign` DISABLE KEYS */;
|
1218
|
+
/*!40000 ALTER TABLE `user_group_assign` ENABLE KEYS */;
|
1219
|
+
UNLOCK TABLES;
|
1220
|
+
|
1221
|
+
--
|
1222
|
+
-- Table structure for table `user_testplan_roles`
|
1223
|
+
--
|
1224
|
+
|
1225
|
+
DROP TABLE IF EXISTS `user_testplan_roles`;
|
1226
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
1227
|
+
/*!40101 SET character_set_client = utf8 */;
|
1228
|
+
CREATE TABLE `user_testplan_roles` (
|
1229
|
+
`user_id` int(10) NOT NULL DEFAULT '0',
|
1230
|
+
`testplan_id` int(10) NOT NULL DEFAULT '0',
|
1231
|
+
`role_id` int(10) NOT NULL DEFAULT '0',
|
1232
|
+
PRIMARY KEY (`user_id`,`testplan_id`)
|
1233
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
1234
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
1235
|
+
|
1236
|
+
--
|
1237
|
+
-- Dumping data for table `user_testplan_roles`
|
1238
|
+
--
|
1239
|
+
|
1240
|
+
LOCK TABLES `user_testplan_roles` WRITE;
|
1241
|
+
/*!40000 ALTER TABLE `user_testplan_roles` DISABLE KEYS */;
|
1242
|
+
/*!40000 ALTER TABLE `user_testplan_roles` ENABLE KEYS */;
|
1243
|
+
UNLOCK TABLES;
|
1244
|
+
|
1245
|
+
--
|
1246
|
+
-- Table structure for table `user_testproject_roles`
|
1247
|
+
--
|
1248
|
+
|
1249
|
+
DROP TABLE IF EXISTS `user_testproject_roles`;
|
1250
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
1251
|
+
/*!40101 SET character_set_client = utf8 */;
|
1252
|
+
CREATE TABLE `user_testproject_roles` (
|
1253
|
+
`user_id` int(10) NOT NULL DEFAULT '0',
|
1254
|
+
`testproject_id` int(10) NOT NULL DEFAULT '0',
|
1255
|
+
`role_id` int(10) NOT NULL DEFAULT '0',
|
1256
|
+
PRIMARY KEY (`user_id`,`testproject_id`)
|
1257
|
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
1258
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
1259
|
+
|
1260
|
+
--
|
1261
|
+
-- Dumping data for table `user_testproject_roles`
|
1262
|
+
--
|
1263
|
+
|
1264
|
+
LOCK TABLES `user_testproject_roles` WRITE;
|
1265
|
+
/*!40000 ALTER TABLE `user_testproject_roles` DISABLE KEYS */;
|
1266
|
+
/*!40000 ALTER TABLE `user_testproject_roles` ENABLE KEYS */;
|
1267
|
+
UNLOCK TABLES;
|
1268
|
+
|
1269
|
+
--
|
1270
|
+
-- Table structure for table `users`
|
1271
|
+
--
|
1272
|
+
|
1273
|
+
DROP TABLE IF EXISTS `users`;
|
1274
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
1275
|
+
/*!40101 SET character_set_client = utf8 */;
|
1276
|
+
CREATE TABLE `users` (
|
1277
|
+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
1278
|
+
`login` varchar(30) NOT NULL DEFAULT '',
|
1279
|
+
`password` varchar(32) NOT NULL DEFAULT '',
|
1280
|
+
`role_id` int(10) unsigned NOT NULL DEFAULT '0',
|
1281
|
+
`email` varchar(100) NOT NULL DEFAULT '',
|
1282
|
+
`first` varchar(30) NOT NULL DEFAULT '',
|
1283
|
+
`last` varchar(30) NOT NULL DEFAULT '',
|
1284
|
+
`locale` varchar(10) NOT NULL DEFAULT 'en_GB',
|
1285
|
+
`default_testproject_id` int(10) DEFAULT NULL,
|
1286
|
+
`active` tinyint(1) NOT NULL DEFAULT '1',
|
1287
|
+
`script_key` varchar(32) DEFAULT NULL,
|
1288
|
+
PRIMARY KEY (`id`),
|
1289
|
+
UNIQUE KEY `users_login` (`login`)
|
1290
|
+
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='User information';
|
1291
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
1292
|
+
|
1293
|
+
--
|
1294
|
+
-- Dumping data for table `users`
|
1295
|
+
--
|
1296
|
+
|
1297
|
+
LOCK TABLES `users` WRITE;
|
1298
|
+
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
|
1299
|
+
INSERT INTO `users` VALUES (1,'admin','21232f297a57a5a743894a0e4a801fc3',8,'','Testlink','Administrator','en_GB',NULL,1,NULL),(2,'leader','c444858e0aaeb727da73d2eae62321ad',9,'leader@example.com','Leader','Leader','en_GB',NULL,1,'720aba7a9dad75eeb87ce253c08f6be5'),(3,'tester','f5d1278e8109edd94e1e4197e04873b9',6,'tester@example.com','Tester','Tester','en_GB',NULL,1,'852a27080a2a52016f94ac8938a7c044');
|
1300
|
+
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
|
1301
|
+
UNLOCK TABLES;
|
1302
|
+
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
1303
|
+
|
1304
|
+
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
1305
|
+
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
1306
|
+
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
1307
|
+
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
1308
|
+
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
1309
|
+
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
1310
|
+
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
1311
|
+
|
1312
|
+
-- Dump completed on 2011-05-16 10:49:56
|