testlink-api-client 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. data/LICENSE +15 -0
  2. data/README.rdoc +14 -0
  3. data/features/create_test_suite.feature +90 -0
  4. data/features/get_first_level_test_suites_for_test_project.feature +25 -0
  5. data/features/get_projects.feature +47 -0
  6. data/features/get_test_suite_by_id.feature +24 -0
  7. data/features/get_test_suites_for_test_suite.feature +33 -0
  8. data/features/step_definitions/common.rb +69 -0
  9. data/features/step_definitions/create_test_suite.rb +14 -0
  10. data/features/step_definitions/get_first_level_test_suites_for_test_project.rb +14 -0
  11. data/features/step_definitions/get_projects.rb +56 -0
  12. data/features/support/db/one_project.sql +1311 -0
  13. data/features/support/db/some_testsuites.sql +1312 -0
  14. data/features/support/env.rb +32 -0
  15. data/features/support/test_link_test_module.rb +32 -0
  16. data/lib/test_link.rb +22 -0
  17. data/lib/test_link/adapters.rb +24 -0
  18. data/lib/test_link/adapters/base.rb +35 -0
  19. data/lib/test_link/adapters/node_adapter.rb +47 -0
  20. data/lib/test_link/adapters/project_adapter.rb +32 -0
  21. data/lib/test_link/adapters/status_adapter.rb +33 -0
  22. data/lib/test_link/api_link.rb +62 -0
  23. data/lib/test_link/command.rb +29 -0
  24. data/lib/test_link/command/argument.rb +31 -0
  25. data/lib/test_link/command/base.rb +63 -0
  26. data/lib/test_link/command/create_test_case.rb +40 -0
  27. data/lib/test_link/command/create_test_suite.rb +35 -0
  28. data/lib/test_link/command/definition.rb +45 -0
  29. data/lib/test_link/command/get_first_level_test_suites_for_test_project.rb +29 -0
  30. data/lib/test_link/command/get_projects.rb +26 -0
  31. data/lib/test_link/command/get_test_suite_by_id.rb +29 -0
  32. data/lib/test_link/command/get_test_suites_for_test_suite.rb +29 -0
  33. data/lib/test_link/exceptions.rb +23 -0
  34. data/lib/test_link/exceptions/command_failed_exception.rb +26 -0
  35. data/lib/test_link/exceptions/empty_response_exception.rb +26 -0
  36. data/lib/test_link/exceptions/error_response_exception.rb +28 -0
  37. data/lib/test_link/exceptions/exception.rb +21 -0
  38. data/lib/test_link/objects.rb +24 -0
  39. data/lib/test_link/objects/methods.rb +29 -0
  40. data/lib/test_link/objects/node.rb +25 -0
  41. data/lib/test_link/objects/project.rb +25 -0
  42. data/lib/test_link/objects/status.rb +25 -0
  43. data/lib/testlink-api-client.rb +16 -0
  44. data/spec/spec_helper.rb +39 -0
  45. data/spec/test_link/adapters/base_spec.rb +56 -0
  46. data/spec/test_link/adapters/node_adapter_spec.rb +102 -0
  47. data/spec/test_link/adapters/project_adapter_spec.rb +81 -0
  48. data/spec/test_link/adapters/status_adapter_spec.rb +51 -0
  49. data/spec/test_link/api_link_spec.rb +106 -0
  50. data/spec/test_link/command/argument_spec.rb +43 -0
  51. data/spec/test_link/command/base_spec.rb +94 -0
  52. data/spec/test_link/command/create_test_case_spec.rb +88 -0
  53. data/spec/test_link/command/create_test_suite_spec.rb +67 -0
  54. data/spec/test_link/command/get_first_level_test_suites_for_test_project_spec.rb +43 -0
  55. data/spec/test_link/command/get_projets_spec.rb +33 -0
  56. data/spec/test_link/command/get_test_suite_by_id_spec.rb +43 -0
  57. data/spec/test_link/command/get_test_suites_for_test_suite_spec.rb +43 -0
  58. data/spec/test_link/exceptions/command_failed_exception_spec.rb +28 -0
  59. data/spec/test_link/exceptions/empty_response_exception_spec.rb +28 -0
  60. data/spec/test_link/exceptions/error_response_exception_spec.rb +30 -0
  61. data/spec/test_link/objects/node_spec.rb +49 -0
  62. data/spec/test_link/objects/project_spec.rb +39 -0
  63. data/spec/test_link/objects/status_spec.rb +43 -0
  64. metadata +194 -0
data/LICENSE ADDED
@@ -0,0 +1,15 @@
1
+ testlink-api-client - A ruby TestLink API Client
2
+ Copyright (C) 2011 Floréal TOUMIKIAN
3
+
4
+ This program is free software: you can redistribute it and/or modify
5
+ it under the terms of the GNU General Public License as published by
6
+ the Free Software Foundation, either version 3 of the License, or
7
+ (at your option) any later version.
8
+
9
+ This program is distributed in the hope that it will be useful,
10
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ GNU General Public License for more details.
13
+
14
+ You should have received a copy of the GNU General Public License
15
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
@@ -0,0 +1,14 @@
1
+ == TestLink API Client
2
+
3
+ This gem provides a endpoint for TestLink Remote API
4
+
5
+ == How to use it
6
+
7
+ To use this library you just need to require the gem:
8
+ require 'testlink-api-client'
9
+
10
+ == Example
11
+ require 'testlink-api-client'
12
+
13
+ tl = TestLink::ApiLink.new 'http://qa.example.com/', 'f2a479d583cdd97c1434bba69a88e4d8'
14
+ tl.getProjects #Will return an Array of TestLink::Objects::Project
@@ -0,0 +1,90 @@
1
+ Feature: Creating test suite
2
+ In order to organize my testcases
3
+ As a QA engeineer
4
+ I want to create testsuites for my projects
5
+
6
+ Scenario: Creating a simple Testsuite on a real TestLink instance
7
+ Given a fresh database "one_project"
8
+ And a TestLink Api link for "http://qa.localhost" with devKey "720aba7a9dad75eeb87ce253c08f6be5"
9
+ When I use these parameters:
10
+ | name | value |
11
+ | testprojectid | 1 |
12
+ | testsuitename | My test suite |
13
+ | details | <p>Lorem Ipsum</p> |
14
+ And I call "createTestSuite"
15
+ Then I get status "true" for "createTestSuite" with additionalInfo "" and message "ok"
16
+
17
+ Scenario: Creating an ordered Testsuite
18
+ Given a fresh database "one_project"
19
+ And a TestLink Api link for "http://qa.localhost" with devKey "720aba7a9dad75eeb87ce253c08f6be5"
20
+ When I use these parameters:
21
+ | name | value |
22
+ | testprojectid | 1 |
23
+ | order | 20 |
24
+ | testsuitename | My test suite |
25
+ | details | <p>Lorem Ipsum</p> |
26
+ And I call "createTestSuite"
27
+ Then I get status "true" for "createTestSuite" with additionalInfo "" and message "ok"
28
+
29
+ Scenario: Creating a Testsuite twice on a real TestLink instance
30
+ Given a fresh database "one_project"
31
+ And a TestLink Api link for "http://qa.localhost" with devKey "720aba7a9dad75eeb87ce253c08f6be5"
32
+ When I use these parameters:
33
+ | name | value |
34
+ | testprojectid | 1 |
35
+ | testsuitename | My test suite |
36
+ | details | <p>Lorem Ipsum</p> |
37
+ And I call "createTestSuite"
38
+ And I call "createTestSuite"
39
+ Then A response error exception is raised with a message "Command has failed: There's already a Test Suite with name: My test suite"
40
+
41
+ Scenario: Explicitly block when creating twice the same testsuite twice
42
+ Given a fresh database "one_project"
43
+ And a TestLink Api link for "http://qa.localhost" with devKey "720aba7a9dad75eeb87ce253c08f6be5"
44
+ When I use these parameters:
45
+ | name | value |
46
+ | testprojectid | 1 |
47
+ | testsuitename | My test suite |
48
+ | details | <p>Lorem Ipsum</p> |
49
+ | checkduplicatedname | true |
50
+ | actiononduplicatedname | block |
51
+ And I call "createTestSuite"
52
+ And I call "createTestSuite"
53
+ Then A response error exception is raised with a message "Command has failed: There's already a Test Suite with name: My test suite"
54
+
55
+ Scenario: Create new when creating twice the same testsuite twice
56
+ Given a fresh database "one_project"
57
+ And a TestLink Api link for "http://qa.localhost" with devKey "720aba7a9dad75eeb87ce253c08f6be5"
58
+ When I use these parameters:
59
+ | name | value |
60
+ | testprojectid | 1 |
61
+ | testsuitename | My test suite |
62
+ | details | <p>Lorem Ipsum</p> |
63
+ | checkduplicatedname | true |
64
+ | actiononduplicatedname | create_new |
65
+ And I call "createTestSuite"
66
+ And I call "createTestSuite"
67
+ Then I get status "true" for "createTestSuite" with additionalInfo "" and message "ok"
68
+
69
+ Scenario: Creating a testsuite with a non existing projectid
70
+ Given a fresh database "one_project"
71
+ And a TestLink Api link for "http://qa.localhost" with devKey "720aba7a9dad75eeb87ce253c08f6be5"
72
+ When I use these parameters:
73
+ | name | value |
74
+ | testprojectid | 10 |
75
+ | testsuitename | My test suite |
76
+ | details | <p>Lorem Ipsum</p> |
77
+ And I call "createTestSuite"
78
+ Then A response error exception is raised with a message "(createTestSuite) - The Test Project ID (10) provided does not exist!"
79
+
80
+ Scenario: Creating a testsuite with a non existing parent
81
+ Given a fresh database "one_project"
82
+ And a TestLink Api link for "http://qa.localhost" with devKey "720aba7a9dad75eeb87ce253c08f6be5"
83
+ When I use these parameters:
84
+ | name | value |
85
+ | testprojectid | 1 |
86
+ | testsuitename | My test suite |
87
+ | details | <p>Lorem Ipsum</p> |
88
+ | parentid | 10 |
89
+ And I call "createTestSuite"
90
+ Then A response error exception is raised with a message "(createTestSuite) - Test Suite ID (10) provided as PARENT for Test Suite (name:My test suite) do not belongs to a Test Suite present on system!"
@@ -0,0 +1,25 @@
1
+ Feature: Getting projects top testsuites
2
+ In order to know my test projects
3
+ As a QA engineer
4
+ I want to get a my project test suites list
5
+
6
+ Scenario: A project containing test suites
7
+ Given a fresh database "some_testsuites"
8
+ And a TestLink Api link for "http://qa.localhost" with devKey "720aba7a9dad75eeb87ce253c08f6be5"
9
+ When I use these parameters:
10
+ | name | value |
11
+ | testprojectid | 1 |
12
+ And I call "getFirstLevelTestSuitesForTestProject"
13
+ Then I get this node list:
14
+ | id | parent_id | type_id |order | table | name |
15
+ | 2 | 1 | 2 | 1 | testsuites | First Testsuite |
16
+ | 3 | 1 | 2 | 2 | testsuites | Second testsuite |
17
+
18
+ Scenario: A project containing no test suite
19
+ Given a fresh database "one_project"
20
+ And a TestLink Api link for "http://qa.localhost" with devKey "720aba7a9dad75eeb87ce253c08f6be5"
21
+ When I use these parameters:
22
+ | name | value |
23
+ | testprojectid | 1 |
24
+ And I call "getFirstLevelTestSuitesForTestProject"
25
+ Then A response error exception is raised with a message "(getFirstLevelTestSuitesForTestProject) - Test Project (Sample Project) is empty."
@@ -0,0 +1,47 @@
1
+ Feature: Getting projects list
2
+ In order to know my test projects
3
+ As a QA engineer
4
+ I want to get a my projects list
5
+
6
+ Scenario: Remote API returns projects list
7
+ Given a TestLink Api link for "http://qa.example.com" with devKey ""
8
+ And a remote api containing those projects:
9
+ | id | name | prefix | notes |
10
+ | 1 | First | FST | <p>One first project</p> |
11
+ | 2 | Second | SCD | <p>A second project</p> |
12
+ When remote call for getProjects returns remote data previously set
13
+ And I call "getProjects"
14
+ Then I get this Project list:
15
+ | id | name | prefix | notes |
16
+ | 1 | First | FST | <p>One first project</p> |
17
+ | 2 | Second | SCD | <p>A second project</p> |
18
+
19
+ Scenario: Remote API raises an Error
20
+ Given a TestLink Api link for "http://qa.example.com" with devKey ""
21
+ When remote call returns an error 2000: "Can not authenticate client: invalid developer key"
22
+ And I call "getProjects"
23
+ Then A response error exception is raised with a message "Can not authenticate client: invalid developer key"
24
+
25
+ Scenario: Getting project list from a real TestLink instance
26
+ Given a fresh database "one_project"
27
+ And a TestLink Api link for "http://qa.localhost" with devKey "720aba7a9dad75eeb87ce253c08f6be5"
28
+ When I call "getProjects"
29
+ Then I get this Project list:
30
+ | id | name | prefix | notes |
31
+ | 1 | Sample Project | SP | <p>Project for test automation</p> |
32
+
33
+ Scenario: Attempting to get project list from a real TestLink instance with a bas key
34
+ Given a TestLink Api link for "http://qa.localhost" with devKey "__bad_key__"
35
+ When I call "getProjects"
36
+ Then A response error exception is raised with a message "Can not authenticate client: invalid developer key"
37
+
38
+ Scenario: Developer key is overridden
39
+ Given a fresh database "one_project"
40
+ And a TestLink Api link for "http://qa.localhost" with devKey "__bad_key__"
41
+ When I use these parameters:
42
+ | name | value |
43
+ | devKey | 720aba7a9dad75eeb87ce253c08f6be5 |
44
+ And I call "getProjects"
45
+ Then I get this Project list:
46
+ | id | name | prefix | notes |
47
+ | 1 | Sample Project | SP | <p>Project for test automation</p> |
@@ -0,0 +1,24 @@
1
+ Feature: Getting a single testsuite by it's Id
2
+ In order to know my test projects
3
+ As a QA engineer
4
+ I want to get a specific test suite and I know it's ID
5
+
6
+ Scenario: A test suite containing another one
7
+ Given a fresh database "some_testsuites"
8
+ And a TestLink Api link for "http://qa.localhost" with devKey "720aba7a9dad75eeb87ce253c08f6be5"
9
+ When I use these parameters:
10
+ | name | value |
11
+ | testsuiteid | 2 |
12
+ And I call "getTestSuiteByID"
13
+ Then I get this node list:
14
+ | id | parent_id | type_id | name | order | details |
15
+ | 2 | 1 | 2 | First Testsuite | 1 | <p>My first testsuite</p> |
16
+
17
+ Scenario: A test suite that dosen't exist
18
+ Given a fresh database "one_project"
19
+ And a TestLink Api link for "http://qa.localhost" with devKey "720aba7a9dad75eeb87ce253c08f6be5"
20
+ When I use these parameters:
21
+ | name | value |
22
+ | testsuiteid | 2 |
23
+ And I call "getTestSuiteByID"
24
+ Then A response error exception is raised with a message "(getTestSuiteByID) - ID 2 do not belongs to a Test Suite present on system!"
@@ -0,0 +1,33 @@
1
+ Feature: Getting testsuites top testsuites list
2
+ In order to know my test projects
3
+ As a QA engineer
4
+ I want to get a test suite children test suites list
5
+
6
+ Scenario: A test suite containing another one
7
+ Given a fresh database "some_testsuites"
8
+ And a TestLink Api link for "http://qa.localhost" with devKey "720aba7a9dad75eeb87ce253c08f6be5"
9
+ When I use these parameters:
10
+ | name | value |
11
+ | testsuiteid | 2 |
12
+ And I call "getTestSuitesForTestSuite"
13
+ Then I get this node list:
14
+ | id | parent_id | type_id |order | name | details |
15
+ | 4 | 2 | 2 | 1 | First Testsuite's child | <p>First one's child</p> |
16
+
17
+ Scenario: A test suite containing no other
18
+ Given a fresh database "some_testsuites"
19
+ And a TestLink Api link for "http://qa.localhost" with devKey "720aba7a9dad75eeb87ce253c08f6be5"
20
+ When I use these parameters:
21
+ | name | value |
22
+ | testsuiteid | 3 |
23
+ And I call "getTestSuitesForTestSuite"
24
+ Then A response error exception is raised with a message "Response is empty"
25
+
26
+ Scenario: A test suite that dosen't exist
27
+ Given a fresh database "one_project"
28
+ And a TestLink Api link for "http://qa.localhost" with devKey "720aba7a9dad75eeb87ce253c08f6be5"
29
+ When I use these parameters:
30
+ | name | value |
31
+ | testsuiteid | 2 |
32
+ And I call "getTestSuitesForTestSuite"
33
+ Then A response error exception is raised with a message "(getTestSuitesForTestSuite) - ID 2 do not belongs to a Test Suite present on system!"
@@ -0,0 +1,69 @@
1
+ # This file is part of testlink-api-client.
2
+ #
3
+ # testlink-api-client is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # testlink-api-client is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with Foobar. If not, see <http://www.gnu.org/licenses/>.
15
+
16
+ Given /^a TestLink Api link for "([^"]*)" with devKey "([^"]*)"$/ do |url, key|
17
+ @key = key
18
+ @tl = TestLink::ApiLink.new url, @key
19
+ end
20
+
21
+ Given /^a fresh database "([^"]*)"$/ do |sql_file|
22
+ reset_db "#{sql_file}.sql"
23
+ end
24
+
25
+ When /^I use these parameters:$/ do |table|
26
+ table.hashes.each do |pair|
27
+ @parameters[pair['name'].to_sym] = pair['value']
28
+ end
29
+ @parameters
30
+ end
31
+
32
+ When /^I call "([^"]*)"$/ do |method|
33
+ begin
34
+ @result = @tl.send(method.to_sym, @parameters)
35
+ rescue TestLink::Exceptions::Exception => error
36
+ @error = error
37
+ end
38
+ end
39
+
40
+ Then /^A response error exception is raised with a message "([^"]*)"$/ do |message|
41
+ fail "Received a non error response \"#{@result}\" when expecting an error message: #{message}" if @error.nil?
42
+ @error.class.should < TestLink::Exceptions::Exception
43
+ @error.message.should == message
44
+ end
45
+
46
+ Then /^I get status "([^"]*)" for "([^"]*)" with additionalInfo "([^"]*)" and message "([^"]*)"$/ do |status, operation, info, message|
47
+ fail "Received an error \"#{@error}\" when expecting a success" unless @error.nil?
48
+ @result.count.should == 1
49
+ returned_status = @result.first
50
+ returned_status.should be_instance_of TestLink::Objects::Status
51
+ returned_status.status.should == string2boolean(status)
52
+ returned_status.operation.should == operation
53
+ returned_status.additional_info.should == info
54
+ returned_status.message.should == message
55
+ end
56
+
57
+ Then /^I get this node list:$/ do |table|
58
+ @result.should == table.hashes.map { |row|
59
+ node = TestLink::Objects::Node.new
60
+ node.id = row['id'].to_i if
61
+ node.parent_id = row['parent_id'].to_i
62
+ node.type_id = row['type_id'].to_i
63
+ node.table = row['table'].to_s if row.has_key? 'table'
64
+ node.order = row['order'].to_i
65
+ node.name = row['name'].to_s
66
+ node.details = row['details'].to_s if row.has_key? 'details'
67
+ node
68
+ }
69
+ end
@@ -0,0 +1,14 @@
1
+ # This file is part of testlink-api-client.
2
+ #
3
+ # testlink-api-client is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # testlink-api-client is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with Foobar. If not, see <http://www.gnu.org/licenses/>.
@@ -0,0 +1,14 @@
1
+ # This file is part of testlink-api-client.
2
+ #
3
+ # testlink-api-client is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # testlink-api-client is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with Foobar. If not, see <http://www.gnu.org/licenses/>.
@@ -0,0 +1,56 @@
1
+ # This file is part of testlink-api-client.
2
+ #
3
+ # testlink-api-client is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # testlink-api-client is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with Foobar. If not, see <http://www.gnu.org/licenses/>.
15
+
16
+ Given /^a remote api containing those projects:$/ do |table|
17
+ @remote_data = table.hashes.map do |row|
18
+ {
19
+ "id"=> row['id'].to_s ,
20
+ "notes"=> row['notes'].to_s,
21
+ "color"=>"",
22
+ "active"=>"1",
23
+ "prefix"=> row['prefix'].to_s,
24
+ "tc_counter"=>"0",
25
+ "is_public"=>"1",
26
+ "options"=>"O:8:\"stdClass\":4:{s:19:\"requirementsEnabled\";s:1:\"1\";s:19:\"testPriorityEnabled\";s:1:\"1\";s:17:\"automationEnabled\";s:1:\"1\";s:16:\"inventoryEnabled\";b:0;}",
27
+ "name"=> row['name'].to_s,
28
+ "opt"=>{"requirementsEnabled"=>"1",
29
+ "testPriorityEnabled"=>"1",
30
+ "automationEnabled"=>"1",
31
+ "inventoryEnabled"=>false}}
32
+ end
33
+ end
34
+
35
+ When /^remote call for getProjects returns remote data previously set$/ do
36
+ @tl.client.stub!(:call).with("tl.getProjects", :devKey => @key).and_return(@remote_data)
37
+ end
38
+
39
+ When /^remote call returns an error (\d+?): "(.+?)"$/ do |code, message|
40
+ @code = code
41
+ @message = message
42
+ @tl.client.stub!(:call).and_return([{'code' => @code, 'message' => @message}])
43
+ end
44
+
45
+ Then /^I get this Project list:$/ do |table|
46
+ @result.should == table.hashes.map { |row|
47
+ project = TestLink::Objects::Project.new
48
+ project.id = row['id'].to_i
49
+ project.notes = row['notes'].to_s
50
+ project.prefix = row['prefix'].to_s
51
+ project.name = row['name'].to_s
52
+ project
53
+ }
54
+ end
55
+
56
+
@@ -0,0 +1,1311 @@
1
+ -- MySQL dump 10.13 Distrib 5.1.49, for debian-linux-gnu (x86_64)
2
+ --
3
+ -- Host: localhost Database: testlink
4
+ -- ------------------------------------------------------
5
+ -- Server version 5.1.49-1ubuntu8.1
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=2 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);
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
+ /*!40000 ALTER TABLE `testsuites` ENABLE KEYS */;
1111
+ UNLOCK TABLES;
1112
+
1113
+ --
1114
+ -- Table structure for table `transactions`
1115
+ --
1116
+
1117
+ DROP TABLE IF EXISTS `transactions`;
1118
+ /*!40101 SET @saved_cs_client = @@character_set_client */;
1119
+ /*!40101 SET character_set_client = utf8 */;
1120
+ CREATE TABLE `transactions` (
1121
+ `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
1122
+ `entry_point` varchar(45) NOT NULL DEFAULT '',
1123
+ `start_time` int(10) unsigned NOT NULL DEFAULT '0',
1124
+ `end_time` int(10) unsigned NOT NULL DEFAULT '0',
1125
+ `user_id` int(10) unsigned NOT NULL DEFAULT '0',
1126
+ `session_id` varchar(45) DEFAULT NULL,
1127
+ PRIMARY KEY (`id`)
1128
+ ) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;
1129
+ /*!40101 SET character_set_client = @saved_cs_client */;
1130
+
1131
+ --
1132
+ -- Dumping data for table `transactions`
1133
+ --
1134
+
1135
+ LOCK TABLES `transactions` WRITE;
1136
+ /*!40000 ALTER TABLE `transactions` DISABLE KEYS */;
1137
+ 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');
1138
+ /*!40000 ALTER TABLE `transactions` ENABLE KEYS */;
1139
+ UNLOCK TABLES;
1140
+
1141
+ --
1142
+ -- Table structure for table `user_assignments`
1143
+ --
1144
+
1145
+ DROP TABLE IF EXISTS `user_assignments`;
1146
+ /*!40101 SET @saved_cs_client = @@character_set_client */;
1147
+ /*!40101 SET character_set_client = utf8 */;
1148
+ CREATE TABLE `user_assignments` (
1149
+ `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
1150
+ `type` int(10) unsigned NOT NULL DEFAULT '1',
1151
+ `feature_id` int(10) unsigned NOT NULL DEFAULT '0',
1152
+ `user_id` int(10) unsigned DEFAULT '0',
1153
+ `build_id` int(10) unsigned DEFAULT '0',
1154
+ `deadline_ts` datetime DEFAULT NULL,
1155
+ `assigner_id` int(10) unsigned DEFAULT '0',
1156
+ `creation_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
1157
+ `status` int(10) unsigned DEFAULT '1',
1158
+ PRIMARY KEY (`id`),
1159
+ KEY `user_assignments_feature_id` (`feature_id`)
1160
+ ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1161
+ /*!40101 SET character_set_client = @saved_cs_client */;
1162
+
1163
+ --
1164
+ -- Dumping data for table `user_assignments`
1165
+ --
1166
+
1167
+ LOCK TABLES `user_assignments` WRITE;
1168
+ /*!40000 ALTER TABLE `user_assignments` DISABLE KEYS */;
1169
+ /*!40000 ALTER TABLE `user_assignments` ENABLE KEYS */;
1170
+ UNLOCK TABLES;
1171
+
1172
+ --
1173
+ -- Table structure for table `user_group`
1174
+ --
1175
+
1176
+ DROP TABLE IF EXISTS `user_group`;
1177
+ /*!40101 SET @saved_cs_client = @@character_set_client */;
1178
+ /*!40101 SET character_set_client = utf8 */;
1179
+ CREATE TABLE `user_group` (
1180
+ `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
1181
+ `title` varchar(100) NOT NULL,
1182
+ `description` text,
1183
+ PRIMARY KEY (`id`),
1184
+ UNIQUE KEY `idx_user_group` (`title`)
1185
+ ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1186
+ /*!40101 SET character_set_client = @saved_cs_client */;
1187
+
1188
+ --
1189
+ -- Dumping data for table `user_group`
1190
+ --
1191
+
1192
+ LOCK TABLES `user_group` WRITE;
1193
+ /*!40000 ALTER TABLE `user_group` DISABLE KEYS */;
1194
+ /*!40000 ALTER TABLE `user_group` ENABLE KEYS */;
1195
+ UNLOCK TABLES;
1196
+
1197
+ --
1198
+ -- Table structure for table `user_group_assign`
1199
+ --
1200
+
1201
+ DROP TABLE IF EXISTS `user_group_assign`;
1202
+ /*!40101 SET @saved_cs_client = @@character_set_client */;
1203
+ /*!40101 SET character_set_client = utf8 */;
1204
+ CREATE TABLE `user_group_assign` (
1205
+ `usergroup_id` int(10) unsigned NOT NULL,
1206
+ `user_id` int(10) unsigned NOT NULL,
1207
+ UNIQUE KEY `idx_user_group_assign` (`usergroup_id`,`user_id`)
1208
+ ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1209
+ /*!40101 SET character_set_client = @saved_cs_client */;
1210
+
1211
+ --
1212
+ -- Dumping data for table `user_group_assign`
1213
+ --
1214
+
1215
+ LOCK TABLES `user_group_assign` WRITE;
1216
+ /*!40000 ALTER TABLE `user_group_assign` DISABLE KEYS */;
1217
+ /*!40000 ALTER TABLE `user_group_assign` ENABLE KEYS */;
1218
+ UNLOCK TABLES;
1219
+
1220
+ --
1221
+ -- Table structure for table `user_testplan_roles`
1222
+ --
1223
+
1224
+ DROP TABLE IF EXISTS `user_testplan_roles`;
1225
+ /*!40101 SET @saved_cs_client = @@character_set_client */;
1226
+ /*!40101 SET character_set_client = utf8 */;
1227
+ CREATE TABLE `user_testplan_roles` (
1228
+ `user_id` int(10) NOT NULL DEFAULT '0',
1229
+ `testplan_id` int(10) NOT NULL DEFAULT '0',
1230
+ `role_id` int(10) NOT NULL DEFAULT '0',
1231
+ PRIMARY KEY (`user_id`,`testplan_id`)
1232
+ ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1233
+ /*!40101 SET character_set_client = @saved_cs_client */;
1234
+
1235
+ --
1236
+ -- Dumping data for table `user_testplan_roles`
1237
+ --
1238
+
1239
+ LOCK TABLES `user_testplan_roles` WRITE;
1240
+ /*!40000 ALTER TABLE `user_testplan_roles` DISABLE KEYS */;
1241
+ /*!40000 ALTER TABLE `user_testplan_roles` ENABLE KEYS */;
1242
+ UNLOCK TABLES;
1243
+
1244
+ --
1245
+ -- Table structure for table `user_testproject_roles`
1246
+ --
1247
+
1248
+ DROP TABLE IF EXISTS `user_testproject_roles`;
1249
+ /*!40101 SET @saved_cs_client = @@character_set_client */;
1250
+ /*!40101 SET character_set_client = utf8 */;
1251
+ CREATE TABLE `user_testproject_roles` (
1252
+ `user_id` int(10) NOT NULL DEFAULT '0',
1253
+ `testproject_id` int(10) NOT NULL DEFAULT '0',
1254
+ `role_id` int(10) NOT NULL DEFAULT '0',
1255
+ PRIMARY KEY (`user_id`,`testproject_id`)
1256
+ ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1257
+ /*!40101 SET character_set_client = @saved_cs_client */;
1258
+
1259
+ --
1260
+ -- Dumping data for table `user_testproject_roles`
1261
+ --
1262
+
1263
+ LOCK TABLES `user_testproject_roles` WRITE;
1264
+ /*!40000 ALTER TABLE `user_testproject_roles` DISABLE KEYS */;
1265
+ /*!40000 ALTER TABLE `user_testproject_roles` ENABLE KEYS */;
1266
+ UNLOCK TABLES;
1267
+
1268
+ --
1269
+ -- Table structure for table `users`
1270
+ --
1271
+
1272
+ DROP TABLE IF EXISTS `users`;
1273
+ /*!40101 SET @saved_cs_client = @@character_set_client */;
1274
+ /*!40101 SET character_set_client = utf8 */;
1275
+ CREATE TABLE `users` (
1276
+ `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
1277
+ `login` varchar(30) NOT NULL DEFAULT '',
1278
+ `password` varchar(32) NOT NULL DEFAULT '',
1279
+ `role_id` int(10) unsigned NOT NULL DEFAULT '0',
1280
+ `email` varchar(100) NOT NULL DEFAULT '',
1281
+ `first` varchar(30) NOT NULL DEFAULT '',
1282
+ `last` varchar(30) NOT NULL DEFAULT '',
1283
+ `locale` varchar(10) NOT NULL DEFAULT 'en_GB',
1284
+ `default_testproject_id` int(10) DEFAULT NULL,
1285
+ `active` tinyint(1) NOT NULL DEFAULT '1',
1286
+ `script_key` varchar(32) DEFAULT NULL,
1287
+ PRIMARY KEY (`id`),
1288
+ UNIQUE KEY `users_login` (`login`)
1289
+ ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='User information';
1290
+ /*!40101 SET character_set_client = @saved_cs_client */;
1291
+
1292
+ --
1293
+ -- Dumping data for table `users`
1294
+ --
1295
+
1296
+ LOCK TABLES `users` WRITE;
1297
+ /*!40000 ALTER TABLE `users` DISABLE KEYS */;
1298
+ 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');
1299
+ /*!40000 ALTER TABLE `users` ENABLE KEYS */;
1300
+ UNLOCK TABLES;
1301
+ /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
1302
+
1303
+ /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
1304
+ /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
1305
+ /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
1306
+ /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
1307
+ /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
1308
+ /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
1309
+ /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
1310
+
1311
+ -- Dump completed on 2011-04-28 10:53:30