author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Sat, 20 Feb 2010 00:10:51 +0200 | |
branch | RCL_3 |
changeset 19 | 4a8fed1c0ef6 |
parent 2 | 4122176ea935 |
permissions | -rw-r--r-- |
0 | 1 |
// |
2 |
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 |
// All rights reserved. |
|
4 |
// This component and the accompanying materials are made available |
|
2
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
5 |
// under the terms of "Eclipse Public License v1.0" |
0 | 6 |
// which accompanies this distribution, and is available |
7 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 |
// |
|
9 |
// Initial Contributors: |
|
10 |
// Nokia Corporation - initial contribution. |
|
11 |
// |
|
12 |
// Contributors: |
|
13 |
// |
|
2
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
14 |
// Description: |
0 | 15 |
// |
16 |
//! @file |
|
17 |
//! @SYMTestSuiteName PBASE-F32-RFS-Mounts-PublicApi-ROM |
|
18 |
//! @SYMScriptTestEnvironment This test script requires a basic ROM. |
|
19 |
//! @SYMScriptAuthor Oleg Kuznetsov |
|
20 |
//! @SYMScriptDescription The test script contains API tests for the functions listed in the description of PBASE-F32-RFS-Mounts-PublicApi.script |
|
21 |
//! file that perform operations on a ROM. |
|
22 |
||
23 |
||
24 |
LOAD_SUITE T_Sfsrv |
|
25 |
||
26 |
||
27 |
START_TESTCASE PBASE-F32-RFS-PublicApi-0007 |
|
28 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0007 |
|
29 |
//! @SYMAPI RFs |
|
30 |
//! @SYMTestCaseDesc Function FileSystemName() test with ROM Drive. |
|
31 |
//! Uses API elements: FileSystemName(). |
|
32 |
//! @SYMTestActions 1. Call Connect() method. |
|
33 |
//! 2. Call FileSystemName() passing the ROM drive number as argument. Check that aName parameter is set to "Win32" under WINSCW and to "rofs" under ARMv5. |
|
34 |
//! 3. Call Close() method. |
|
35 |
//! @SYMTestStatus Implemented |
|
36 |
//! @SYMTestPriority Critical |
|
37 |
//! @SYMTestExpectedResults FileSystemName() returns KErrNone and the real name of the file system through the aName output argument. |
|
38 |
//! @SYMTestType CIT |
|
39 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-PublicApi-ROM.ini |
|
40 |
CREATE_OBJECT RFs RFs1 |
|
41 |
COMMAND RFs1 new |
|
42 |
COMMAND RFs1 Connect |
|
43 |
COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0007-001-FileSystemName_command03 |
|
44 |
COMMAND RFs1 Close |
|
45 |
COMMAND RFs1 ~ |
|
46 |
END_TEST_BLOCK |
|
47 |
END_TESTCASE PBASE-F32-RFS-PublicApi-0007 |
|
48 |
||
49 |
||
50 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1006 |
|
51 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1006 |
|
52 |
//! @SYMAPI RFs |
|
53 |
//! @SYMAuthor Anton Grober |
|
54 |
//! @SYMCreationDate 22/08/2006 |
|
55 |
//! @SYMTestCaseDesc IsValidDrive() passing a value between 0 and 26 as parameter. |
|
56 |
//! Uses API elements: IsValidDrive(). |
|
57 |
//! @SYMTestActions 1. Call IsValidDrive() passing some mounted drive as a parameter(in this particular case it's tested with ROM-Drive's index as parameter). |
|
58 |
//! @SYMTestStatus Implemented |
|
59 |
//! @SYMTestPriority Critical |
|
60 |
//! @SYMTestExpectedResults Function IsValidDrive() returns ETrue. |
|
61 |
//! @SYMTestType CIT |
|
62 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-PublicApi-ROM.ini |
|
63 |
CREATE_OBJECT RFs RFs1 |
|
64 |
COMMAND RFs1 new |
|
65 |
COMMAND RFs1 IsValidDrive PBASE-F32-RFS-PublicApi-1006-001-IsValidDrive_command02 |
|
66 |
COMMAND RFs1 ~ |
|
67 |
END_TEST_BLOCK |
|
68 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1006 |
|
69 |
||
70 |
||
71 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1016 |
|
72 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1016 |
|
73 |
//! @SYMAPI RFs |
|
74 |
//! @SYMAuthor Anton Golovko |
|
75 |
//! @SYMCreationDate 2/10/2006 |
|
76 |
//! @SYMTestCaseDesc Drive() function test. Passing exisiting drive index as parameter. |
|
77 |
//! Uses API elements: Drive() |
|
78 |
//! @SYMTestActions 1. Call Connect(). |
|
79 |
//! 2. Call Drive() passing TDriveInfo reference as first parameter and ROM-drive as second parameter. |
|
80 |
//! 3. Call Close(). |
|
81 |
//! @SYMTestStatus Implemented |
|
82 |
//! @SYMTestPriority High |
|
83 |
//! @SYMTestExpectedResults Function returns KErrNone and iType field of TDriveInfo equals EMediaRom. |
|
84 |
//! @SYMTestType CIT |
|
85 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-PublicApi-ROM.ini |
|
86 |
CREATE_OBJECT RFs RFs1 |
|
87 |
COMMAND RFs1 new |
|
88 |
COMMAND RFs1 Connect |
|
89 |
COMMAND RFs1 Drive PBASE-F32-RFS-PublicApi-1016-001-Drive_command03 |
|
90 |
COMMAND RFs1 Close |
|
91 |
COMMAND RFs1 ~ |
|
92 |
END_TEST_BLOCK |
|
93 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1016 |
|
94 |
||
95 |
||
96 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1040 |
|
97 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1040 |
|
98 |
//! @SYMAPI RFs |
|
99 |
//! @SYMAuthor Anton Grober |
|
100 |
//! @SYMCreationDate 02/10/2006 |
|
101 |
//! @SYMTestCaseDesc LockDrive() function test. Passing ROM drive index as parameter. |
|
102 |
//! Uses API elements: LockDrive(). |
|
103 |
//! @SYMTestActions 1. Call Connect(). |
|
104 |
//! 2. Call LockDrive() passing ROM drive's number. |
|
105 |
//! 3. Call Close(). |
|
106 |
//! @SYMTestStatus Implemented |
|
107 |
//! @SYMTestPriority High |
|
108 |
//! @SYMTestExpectedResults Function LockDrive() returns KErrNotSupported. |
|
109 |
//! @SYMTestType CIT |
|
110 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-PublicApi-ROM.ini |
|
111 |
CREATE_OBJECT RFs RFs1 |
|
112 |
COMMAND RFs1 new |
|
113 |
COMMAND RFs1 Connect |
|
114 |
COMMAND !Error=-5 RFs1 LockDrive PBASE-F32-RFS-PublicApi-1040-001-LockDrive_command03 |
|
115 |
COMMAND RFs1 Close |
|
116 |
COMMAND RFs1 ~ |
|
117 |
END_TEST_BLOCK |
|
118 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1040 |
|
119 |
||
120 |
||
121 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1042 |
|
122 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1042 |
|
123 |
//! @SYMAPI RFs |
|
124 |
//! @SYMAuthor Anton Grober |
|
125 |
//! @SYMCreationDate 02/10/2006 |
|
126 |
//! @SYMTestCaseDesc ReserveDriveSpace() function test. Passing non-writeable drive number as parameter. |
|
127 |
//! Uses API elements: ReserveDriveSpace(). |
|
128 |
//! @SYMTestActions 1. Call Connect(). |
|
129 |
//! 2. Call ReserveDriveSpace() passing non-writeable drives number as drive number parameter. |
|
130 |
//! 3. Call Close(). |
|
131 |
//! @SYMTestStatus Implemented |
|
132 |
//! @SYMTestPriority High |
|
133 |
//! @SYMTestExpectedResults Function ReserveDriveSpace() returns KErrDiskFull. |
|
134 |
//! @SYMTestType CIT |
|
135 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-PublicApi-ROM.ini |
|
136 |
CREATE_OBJECT RFs RFs1 |
|
137 |
COMMAND RFs1 new |
|
138 |
COMMAND RFs1 Connect |
|
139 |
COMMAND !Error=-26 RFs1 ReserveDriveSpace PBASE-F32-RFS-PublicApi-1042-001-ReserveDriveSpace_command03 |
|
140 |
COMMAND RFs1 Close |
|
141 |
COMMAND RFs1 ~ |
|
142 |
END_TEST_BLOCK |
|
143 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1042 |
|
144 |
||
145 |
||
146 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1060 |
|
147 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1060 |
|
148 |
//! @SYMAPI RFs |
|
149 |
//! @SYMAuthor Anton Grober |
|
150 |
//! @SYMCreationDate 24/01/2007 |
|
151 |
//! @SYMTestCaseDesc Subst() test passing a mounted drive as paramater. |
|
152 |
//! Uses API elements: Subst(). |
|
153 |
//! @SYMTestActions 1. Call Connect(). |
|
154 |
//! 2. Call Subst() passing ROM-drive index and some path as second parameter. |
|
155 |
//! 3. Call Close(). |
|
156 |
//! @SYMTestStatus Implemented |
|
157 |
//! @SYMTestPriority Critical |
|
158 |
//! @SYMTestExpectedResults Function Subst() returns empty string through reference. |
|
159 |
//! @SYMTestType CIT |
|
160 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-PublicApi-ROM.ini |
|
161 |
CREATE_OBJECT RFs RFs1 |
|
162 |
COMMAND RFs1 new |
|
163 |
COMMAND RFs1 Connect |
|
164 |
COMMAND RFs1 Subst PBASE-F32-RFS-PublicApi-1060-001-Subst_command03 |
|
165 |
COMMAND RFs1 Close |
|
166 |
COMMAND RFs1 ~ |
|
167 |
END_TEST_BLOCK |
|
168 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1060 |
|
169 |
||
170 |
||
171 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1066 |
|
172 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1066 |
|
173 |
//! @SYMAPI RFs |
|
174 |
//! @SYMCreationDate 22/08/2006 |
|
175 |
//! @SYMTestCaseDesc ErasePassword() test. Passing drive's number which doesn't support locking. |
|
176 |
//! Uses API elements: ErasePassword() |
|
177 |
//! @SYMTestActions 1. Call Connect(). |
|
178 |
//! 2. Call ErasePassword() passing some drive's number which doesn't supported locking. |
|
179 |
//! 3. Call Close(). |
|
180 |
//! @SYMTestStatus Implemented |
|
181 |
//! @SYMTestPriority High |
|
182 |
//! @SYMTestExpectedResults Function ErasePassword() returns KErrNotSupported. |
|
183 |
//! @SYMTestType CIT |
|
184 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-PublicApi-ROM.ini |
|
185 |
CREATE_OBJECT RFs RFs1 |
|
186 |
COMMAND RFs1 new |
|
187 |
COMMAND RFs1 Connect |
|
188 |
COMMAND !Error=-5 RFs1 ErasePassword PBASE-F32-RFS-PublicApi-1066-001-ErasePassword_command03 |
|
189 |
COMMAND RFs1 Close |
|
190 |
COMMAND RFs1 ~ |
|
191 |
END_TEST_BLOCK |
|
192 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1066 |
|
193 |
||
194 |
||
195 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1071 |
|
196 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1071 |
|
197 |
//! @SYMAPI RFs |
|
198 |
//! @SYMCreationDate 22/08/2006 |
|
199 |
//! @SYMTestCaseDesc ClearPassword() test. |
|
200 |
//! Uses API elements: ClearPassword() |
|
201 |
//! @SYMTestActions 1. Call Connect(). |
|
202 |
//! 2. Call ClearPassword() passing some drive's number which doesn't supported locking. |
|
203 |
//! 3. Call Close(). |
|
204 |
//! @SYMTestStatus Implemented |
|
205 |
//! @SYMTestPriority High |
|
206 |
//! @SYMTestExpectedResults Function ClearPassword() returns KErrNotSupported. |
|
207 |
//! @SYMTestType CIT |
|
208 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-PublicApi-ROM.ini |
|
209 |
CREATE_OBJECT RFs RFs1 |
|
210 |
COMMAND RFs1 new |
|
211 |
COMMAND RFs1 Connect |
|
212 |
COMMAND !Error=-5 RFs1 ClearPassword PBASE-F32-RFS-PublicApi-1071-001-ClearPassword_command03 |
|
213 |
COMMAND RFs1 Close |
|
214 |
COMMAND RFs1 ~ |
|
215 |
END_TEST_BLOCK |
|
216 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1071 |
|
217 |
||
218 |
||
219 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1077 |
|
220 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1077 |
|
221 |
//! @SYMAPI RFs |
|
222 |
//! @SYMCreationDate 22/08/2006 |
|
223 |
//! @SYMTestCaseDesc UnlockDrive() test. Testing with drive doesn't support locking. |
|
224 |
//! Uses API elements: UnlockDrive() |
|
225 |
//! @SYMTestActions 1. Call Connect(). |
|
226 |
//! 2. Call UnlockDrive() passing some drive's number which doesn't supported locking and 'test' as password. |
|
227 |
//! 3. Call Close(). |
|
228 |
//! @SYMTestStatus Implemented |
|
229 |
//! @SYMTestPriority High |
|
230 |
//! @SYMTestExpectedResults Function UnlockDrive() returns KErrNotSupported. |
|
231 |
//! @SYMTestType CIT |
|
232 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-PublicApi-ROM.ini |
|
233 |
CREATE_OBJECT RFs RFs1 |
|
234 |
COMMAND RFs1 new |
|
235 |
COMMAND RFs1 Connect |
|
236 |
COMMAND !Error=-5 RFs1 UnlockDrive PBASE-F32-RFS-PublicApi-1077-001-UnlockDrive_command03 |
|
237 |
COMMAND RFs1 Close |
|
238 |
COMMAND RFs1 ~ |
|
239 |
END_TEST_BLOCK |
|
240 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1077 |
|
241 |
||
242 |
||
243 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1090 |
|
244 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1090 |
|
245 |
//! @SYMAPI RFs |
|
246 |
//! @SYMAuthor Anton Grober |
|
247 |
//! @SYMCreationDate 8/03/2007 |
|
248 |
//! @SYMTestCaseDesc SetSubst() functions test. Passing ROM drive index as second parameter and existing path to folder as second parameter. |
|
249 |
//! Uses API elements: SetSubst(). |
|
250 |
//! @SYMTestActions 1. Call Connect(). |
|
251 |
//! 2. Call SetSubst() passing "ROMDriveTestPath:\base\" as a first parameter and non-mounted valid drive's number as a drive number. |
|
252 |
//! 3. Check that function returned KErrNone. |
|
253 |
//! 4. Call SetSubst() passing ""(empty descriptor) as a first parameter and non-mounted valid drive's number as a drive number. This will unsubst the substed. |
|
254 |
//! 5. Call Close(). |
|
255 |
//! @SYMTestStatus Implemented |
|
256 |
//! @SYMTestPriority Critical |
|
257 |
//! @SYMTestExpectedResults Function SetSubst() returns KErrNone. |
|
258 |
//! @SYMTestType CIT |
|
259 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-PublicApi-ROM.ini |
|
260 |
CREATE_OBJECT RFs RFs1 |
|
261 |
COMMAND RFs1 new |
|
262 |
COMMAND RFs1 Connect |
|
263 |
COMMAND RFs1 SetSubst PBASE-F32-RFS-PublicApi-1090-001-SetSubst_command03 |
|
264 |
COMMAND RFs1 SetSubst PBASE-F32-RFS-PublicApi-1090-001-SetSubst_command04 |
|
265 |
COMMAND RFs1 Close |
|
266 |
COMMAND RFs1 ~ |
|
267 |
END_TEST_BLOCK |
|
268 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1090 |
|
269 |
||
270 |
||
271 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3012 |
|
272 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3012 |
|
273 |
//! @SYMAPI RFs |
|
274 |
//! @SYMTestCaseDesc Function IsRomAddress() test. |
|
275 |
//! Uses API elements: IsFileInRom(), IsRomAddress(). |
|
276 |
//! @SYMTestActions 1. Call Connect(). |
|
277 |
//! 2. Call IsFileInRom(), get address of "<ROMDriveChar>:\base\T_Sfsrv\test_rom.txt" |
|
278 |
//! 3. Call IsRomAddress(), pass address that was got by IsFileInRom as parameter and check that file in rom. |
|
279 |
//! 4. Call Close(). |
|
280 |
//! @SYMTestStatus Implemented |
|
281 |
//! @SYMTestPriority Critical |
|
282 |
//! @SYMTestExpectedResults File is located in rom. |
|
283 |
//! @SYMTestType CIT |
|
284 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-PublicApi-ROM.ini |
|
285 |
CREATE_OBJECT RFs RFs1 |
|
286 |
COMMAND RFs1 new |
|
287 |
COMMAND RFs1 Connect |
|
288 |
COMMAND RFs1 IsFileInRom PBASE-F32-RFS-PublicApi-3012-001-IsFileInRom_command03 |
|
289 |
COMMAND RFs1 IsRomAddress PBASE-F32-RFS-PublicApi-3012-001-IsRomAddress_command04 |
|
290 |
COMMAND RFs1 Close |
|
291 |
COMMAND RFs1 ~ |
|
292 |
END_TEST_BLOCK |
|
293 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3012 |
|
294 |
||
295 |
START_TESTCASE PBASE-F32-RFS-PublicApi-0019 |
|
296 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0019 |
|
297 |
//! @SYMAPI RFs |
|
298 |
//! @SYMTestCaseDesc Function FileSystemSubType() test with ROM drive. |
|
299 |
//! Uses API elements: FileSystemSubType(). |
|
300 |
//! @SYMTestActions 1. Call Connect() method. |
|
301 |
//! 2. Call FileSystemSubType() passing the ROM drive number as argument. Check that aName parameter is set to "Win32" under WINSCW and to "Rom" under ARMv5. |
|
302 |
//! 3. Call Close() method. |
|
303 |
//! @SYMTestStatus Implemented |
|
304 |
//! @SYMTestPriority Critical |
|
305 |
//! @SYMTestExpectedResults FileSystemSubType() returns KErrNone and the real sub type name of the file system through the aName output argument. |
|
306 |
//! @SYMTestType CIT |
|
307 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-PublicApi-ROM.ini |
|
308 |
CREATE_OBJECT RFs RFs1 |
|
309 |
COMMAND RFs1 new |
|
310 |
COMMAND RFs1 Connect |
|
311 |
COMMAND RFs1 FileSystemSubType PBASE-F32-RFS-PublicApi-0019-001-FileSystemSubType_command03 |
|
312 |
COMMAND RFs1 Close |
|
313 |
COMMAND RFs1 ~ |
|
314 |
END_TEST_BLOCK |
|
315 |
END_TESTCASE PBASE-F32-RFS-PublicApi-0019 |
|
316 |
||
317 |
||
318 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3016 |
|
319 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3016 |
|
320 |
//! @SYMAPI RFs |
|
321 |
//! @SYMTestCaseDesc Function InitialisePropertiesFile() test. |
|
322 |
//! Uses API elements: InitialisePropertiesFile(). |
|
323 |
//! @SYMTestActions 1. Call Connect(). |
|
324 |
//! 2. Call InitialisePropertiesFile() and pass "<ROMDriveChar>:\base\T_Sfsrv\test_rom.txt" as argument. |
|
325 |
//! 3. Call Close(). |
|
326 |
//! @SYMTestStatus Implemented |
|
327 |
//! @SYMTestPriority Critical |
|
328 |
//! @SYMTestExpectedResults KErrPermissionDenied, because can only be called from the ESTART process. |
|
329 |
//! @SYMTestType CIT |
|
330 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-PublicApi-ROM.ini |
|
331 |
CREATE_OBJECT RFs RFs1 |
|
332 |
COMMAND RFs1 new |
|
333 |
COMMAND RFs1 Connect |
|
334 |
COMMAND !Error=-46 RFs1 InitialisePropertiesFile PBASE-F32-RFS-PublicApi-3016-001-InitialisePropertiesFile_command03 |
|
335 |
COMMAND RFs1 Close |
|
336 |
COMMAND RFs1 ~ |
|
337 |
END_TEST_BLOCK |
|
338 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3016 |
|
339 |
||
340 |
||
341 |