sl@0
|
1 |
// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
// @file
|
sl@0
|
15 |
//
|
sl@0
|
16 |
//
|
sl@0
|
17 |
|
sl@0
|
18 |
//! @SYMTestSuiteName PDS-TEF-SQL-SUITE
|
sl@0
|
19 |
//! @SYMScriptTestEnvironment TEF
|
sl@0
|
20 |
//! @internalComponent
|
sl@0
|
21 |
//! @test
|
sl@0
|
22 |
|
sl@0
|
23 |
PRINT Run SQL Tests
|
sl@0
|
24 |
|
sl@0
|
25 |
LOAD_SUITE te_SQL_Suite
|
sl@0
|
26 |
LOAD_SUITE te_SQL_Suite_cap2
|
sl@0
|
27 |
LOAD_SUITE BURTestServer
|
sl@0
|
28 |
|
sl@0
|
29 |
RUN_UTILS MkDir c:\private\
|
sl@0
|
30 |
RUN_UTILS MkDir c:\private\102827c7\
|
sl@0
|
31 |
RUN_UTILS MkDir c:\private\102827c8\
|
sl@0
|
32 |
RUN_UTILS CopyFile z:\TEF_SQL\TestData\backup_registration.xml c:\private\102827c7\backup_registration.xml
|
sl@0
|
33 |
RUN_UTILS CopyFile z:\TEF_SQL\TestData\backup_registration.xml c:\private\102827c8\backup_registration.xml
|
sl@0
|
34 |
|
sl@0
|
35 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]bur.db
|
sl@0
|
36 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c8]bur.db
|
sl@0
|
37 |
|
sl@0
|
38 |
START_TESTCASE SYSLIB-SQL-CIT-1834
|
sl@0
|
39 |
//! @SYMTestCaseID SYSLIB-SQL-CIT-1834
|
sl@0
|
40 |
//! @SYMTestCaseDesc Backup and restore with no change
|
sl@0
|
41 |
//! @SYMTestPriority High
|
sl@0
|
42 |
//! @SYMTestActions See description and the config file.
|
sl@0
|
43 |
//! @SYMTestExpectedResults
|
sl@0
|
44 |
//! The test looks for errors and content
|
sl@0
|
45 |
//! within the database. If these are not seen test errors
|
sl@0
|
46 |
//! will be generated.
|
sl@0
|
47 |
//!
|
sl@0
|
48 |
//! @SYMREQ REQ5906
|
sl@0
|
49 |
|
sl@0
|
50 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\BUR.ini setup
|
sl@0
|
51 |
RUN_TEST_STEP -1 BURTestServer TestBackup z:\TEF_SQL\BUR.ini bur
|
sl@0
|
52 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\BUR.ini wait
|
sl@0
|
53 |
RUN_TEST_STEP -1 BURTestServer TestRestore z:\TEF_SQL\BUR.ini bur
|
sl@0
|
54 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\BUR.ini wait
|
sl@0
|
55 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\BUR.ini check
|
sl@0
|
56 |
END_TESTCASE SYSLIB-SQL-CIT-1834
|
sl@0
|
57 |
|
sl@0
|
58 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]bur.db
|
sl@0
|
59 |
RUN_UTILS DeleteDirectory c:\BackupArchive\
|
sl@0
|
60 |
|
sl@0
|
61 |
START_TESTCASE SYSLIB-SQL-CIT-1835
|
sl@0
|
62 |
//! @SYMTestCaseID SYSLIB-SQL-CIT-1835
|
sl@0
|
63 |
//! @SYMTestCaseDesc Backup and restore with database file deleted
|
sl@0
|
64 |
//! @SYMTestPriority High
|
sl@0
|
65 |
//! @SYMTestActions See description and the config file.
|
sl@0
|
66 |
//! @SYMTestExpectedResults
|
sl@0
|
67 |
//! The test looks for errors and content
|
sl@0
|
68 |
//! within the database. If these are not seen test errors
|
sl@0
|
69 |
//! will be generated.
|
sl@0
|
70 |
//!
|
sl@0
|
71 |
//! @SYMREQ REQ5906
|
sl@0
|
72 |
|
sl@0
|
73 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\BUR.ini setup
|
sl@0
|
74 |
RUN_TEST_STEP -1 BURTestServer TestBackup z:\TEF_SQL\BUR.ini bur
|
sl@0
|
75 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\BUR.ini wait
|
sl@0
|
76 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]bur.db
|
sl@0
|
77 |
RUN_TEST_STEP -1 BURTestServer TestRestore z:\TEF_SQL\BUR.ini bur
|
sl@0
|
78 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\BUR.ini wait
|
sl@0
|
79 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\BUR.ini check
|
sl@0
|
80 |
END_TESTCASE SYSLIB-SQL-CIT-1835
|
sl@0
|
81 |
|
sl@0
|
82 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]bur.db
|
sl@0
|
83 |
RUN_UTILS DeleteDirectory c:\BackupArchive\
|
sl@0
|
84 |
|
sl@0
|
85 |
START_TESTCASE SYSLIB-SQL-CIT-1836
|
sl@0
|
86 |
//! @SYMTestCaseID SYSLIB-SQL-CIT-1836
|
sl@0
|
87 |
//! @SYMTestCaseDesc Backup and restore with database file modified
|
sl@0
|
88 |
//! @SYMTestPriority High
|
sl@0
|
89 |
//! @SYMTestActions See description and the config file.
|
sl@0
|
90 |
//! @SYMTestExpectedResults
|
sl@0
|
91 |
//! The test looks for errors and content
|
sl@0
|
92 |
//! within the database. If these are not seen test errors
|
sl@0
|
93 |
//! will be generated.
|
sl@0
|
94 |
//!
|
sl@0
|
95 |
//! @SYMREQ REQ5906
|
sl@0
|
96 |
|
sl@0
|
97 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\BUR.ini setup
|
sl@0
|
98 |
RUN_TEST_STEP -1 BURTestServer TestBackup z:\TEF_SQL\BUR.ini bur
|
sl@0
|
99 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\BUR.ini wait
|
sl@0
|
100 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\BUR.ini modify
|
sl@0
|
101 |
RUN_TEST_STEP -1 BURTestServer TestRestore z:\TEF_SQL\BUR.ini bur
|
sl@0
|
102 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\BUR.ini wait
|
sl@0
|
103 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\BUR.ini check
|
sl@0
|
104 |
END_TESTCASE SYSLIB-SQL-CIT-1836
|
sl@0
|
105 |
|
sl@0
|
106 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]bur.db
|
sl@0
|
107 |
RUN_UTILS DeleteDirectory c:\BackupArchive\
|
sl@0
|
108 |
|
sl@0
|
109 |
START_TESTCASE SYSLIB-SQL-CIT-1837
|
sl@0
|
110 |
//! @SYMTestCaseID SYSLIB-SQL-CIT-1837
|
sl@0
|
111 |
//! @SYMTestCaseDesc Backup and restore with database file corrupted
|
sl@0
|
112 |
//! @SYMTestPriority High
|
sl@0
|
113 |
//! @SYMTestActions See description and the config file.
|
sl@0
|
114 |
//! @SYMTestExpectedResults
|
sl@0
|
115 |
//! The test looks for errors and content
|
sl@0
|
116 |
//! within the database. If these are not seen test errors
|
sl@0
|
117 |
//! will be generated.
|
sl@0
|
118 |
//!
|
sl@0
|
119 |
//! @SYMREQ REQ5906
|
sl@0
|
120 |
|
sl@0
|
121 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\BUR.ini setup
|
sl@0
|
122 |
RUN_TEST_STEP -1 BURTestServer TestBackup z:\TEF_SQL\BUR.ini bur
|
sl@0
|
123 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\BUR.ini wait
|
sl@0
|
124 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]bur.db
|
sl@0
|
125 |
RUN_UTILS CopyFile z:\TEF_SQL\TestData\[102827c7]corrupt.db c:\private\10281e17\[102827c7]bur.db
|
sl@0
|
126 |
RUN_UTILS MakeReadWrite c:\private\10281e17\[102827c7]bur.db
|
sl@0
|
127 |
RUN_TEST_STEP -1 BURTestServer TestRestore z:\TEF_SQL\BUR.ini bur
|
sl@0
|
128 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\BUR.ini wait
|
sl@0
|
129 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\BUR.ini check
|
sl@0
|
130 |
END_TESTCASE SYSLIB-SQL-CIT-1837
|
sl@0
|
131 |
|
sl@0
|
132 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]bur.db
|
sl@0
|
133 |
RUN_UTILS DeleteDirectory c:\BackupArchive\
|
sl@0
|
134 |
|
sl@0
|
135 |
START_TESTCASE SYSLIB-SQL-CIT-1838
|
sl@0
|
136 |
//! @SYMTestCaseID SYSLIB-SQL-CIT-1838
|
sl@0
|
137 |
//! @SYMTestCaseDesc Backup and restore with database file from 2 data owners
|
sl@0
|
138 |
//! @SYMTestPriority High
|
sl@0
|
139 |
//! @SYMTestActions See description and the config file.
|
sl@0
|
140 |
//! @SYMTestExpectedResults
|
sl@0
|
141 |
//! The test looks for errors and content
|
sl@0
|
142 |
//! within the database. If these are not seen test errors
|
sl@0
|
143 |
//! will be generated.
|
sl@0
|
144 |
//!
|
sl@0
|
145 |
//! @SYMREQ REQ5906
|
sl@0
|
146 |
|
sl@0
|
147 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\BUR.ini setup
|
sl@0
|
148 |
RUN_TEST_STEP 100 te_SQL_Suite_cap2 CSQLDDT z:\TEF_SQL\BUR.ini setup2
|
sl@0
|
149 |
RUN_TEST_STEP -1 BURTestServer TestBackup z:\TEF_SQL\BUR.ini bur2
|
sl@0
|
150 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\BUR.ini wait
|
sl@0
|
151 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]bur.db
|
sl@0
|
152 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c8]bur.db
|
sl@0
|
153 |
RUN_TEST_STEP -1 BURTestServer TestRestore z:\TEF_SQL\BUR.ini bur2
|
sl@0
|
154 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\BUR.ini wait
|
sl@0
|
155 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\BUR.ini check
|
sl@0
|
156 |
RUN_TEST_STEP 100 te_SQL_Suite_cap2 CSQLDDT z:\TEF_SQL\BUR.ini check2
|
sl@0
|
157 |
END_TESTCASE SYSLIB-SQL-CIT-1838
|
sl@0
|
158 |
|
sl@0
|
159 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]bur.db
|
sl@0
|
160 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c8]bur.db
|
sl@0
|
161 |
RUN_UTILS DeleteDirectory c:\BackupArchive\
|
sl@0
|
162 |
|
sl@0
|
163 |
START_TESTCASE SYSLIB-SQL-CIT-1839-0001
|
sl@0
|
164 |
//! @SYMTestCaseID SYSLIB-SQL-CIT-1839-0001
|
sl@0
|
165 |
//! @SYMTestCaseDesc Backup and restore with 3 database files
|
sl@0
|
166 |
//! @SYMTestPriority High
|
sl@0
|
167 |
//! @SYMTestActions See description and the config file.
|
sl@0
|
168 |
//! @SYMTestExpectedResults
|
sl@0
|
169 |
//! The test looks for errors and content
|
sl@0
|
170 |
//! within the database. If these are not seen test errors
|
sl@0
|
171 |
//! will be generated.
|
sl@0
|
172 |
//!
|
sl@0
|
173 |
//! @SYMREQ REQ5906
|
sl@0
|
174 |
|
sl@0
|
175 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\BUR.ini setup3
|
sl@0
|
176 |
RUN_TEST_STEP -1 BURTestServer TestBackup z:\TEF_SQL\BUR.ini bur
|
sl@0
|
177 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\BUR.ini wait
|
sl@0
|
178 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]bur1.db
|
sl@0
|
179 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]bur2.db
|
sl@0
|
180 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]bur3.db
|
sl@0
|
181 |
RUN_TEST_STEP -1 BURTestServer TestRestore z:\TEF_SQL\BUR.ini bur
|
sl@0
|
182 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\BUR.ini wait
|
sl@0
|
183 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\BUR.ini check3
|
sl@0
|
184 |
END_TESTCASE SYSLIB-SQL-CIT-1839-0001
|
sl@0
|
185 |
|
sl@0
|
186 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]bur1.db
|
sl@0
|
187 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]bur2.db
|
sl@0
|
188 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]bur3.db
|
sl@0
|
189 |
|
sl@0
|
190 |
START_TESTCASE SYSLIB-SQL-CIT-4026
|
sl@0
|
191 |
//! @SYMTestCaseID SYSLIB-SQL-CIT-4026
|
sl@0
|
192 |
//! @SYMTestCaseDesc Backup and restore a database file (with no extension)
|
sl@0
|
193 |
//! @SYMTestPriority High
|
sl@0
|
194 |
//! @SYMTestActions See description and the config file.
|
sl@0
|
195 |
//! @SYMTestExpectedResults
|
sl@0
|
196 |
//! The test looks for errors and content
|
sl@0
|
197 |
//! within the database. If these are not seen test errors
|
sl@0
|
198 |
//! will be generated.
|
sl@0
|
199 |
//!
|
sl@0
|
200 |
//! @SYMDEF INC118192
|
sl@0
|
201 |
//! PDEF118675
|
sl@0
|
202 |
//! PDEF118676
|
sl@0
|
203 |
|
sl@0
|
204 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\BUR.ini setup4
|
sl@0
|
205 |
RUN_TEST_STEP -1 BURTestServer TestBackup z:\TEF_SQL\BUR.ini bur
|
sl@0
|
206 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\BUR.ini wait
|
sl@0
|
207 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]118192
|
sl@0
|
208 |
RUN_TEST_STEP -1 BURTestServer TestRestore z:\TEF_SQL\BUR.ini bur
|
sl@0
|
209 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\BUR.ini wait
|
sl@0
|
210 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\BUR.ini check4
|
sl@0
|
211 |
END_TESTCASE SYSLIB-SQL-CIT-4026
|
sl@0
|
212 |
|
sl@0
|
213 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]118192
|
sl@0
|
214 |
RUN_UTILS DeleteDirectory c:\BackupArchive
|
sl@0
|
215 |
|
sl@0
|
216 |
//cleanup
|
sl@0
|
217 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]bur.db
|
sl@0
|
218 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c8]bur.db
|
sl@0
|
219 |
RUN_UTILS MakeReadWrite c:\private\102827c7\backup_registration.xml
|
sl@0
|
220 |
RUN_UTILS MakeReadWrite c:\private\102827c8\backup_registration.xml
|
sl@0
|
221 |
RUN_UTILS DeleteFile c:\private\102827c7\backup_registration.xml
|
sl@0
|
222 |
RUN_UTILS DeleteFile c:\private\102827c8\backup_registration.xml
|
sl@0
|
223 |
RUN_UTILS DeleteDirectory c:\BackupArchive\
|
sl@0
|
224 |
RUN_UTILS DeleteDirectory c:\private\102827c7\
|
sl@0
|
225 |
RUN_UTILS DeleteDirectory c:\private\102827c8\
|
sl@0
|
226 |
|
sl@0
|
227 |
|