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
|
|
5 |
// under the terms of the License "Eclipse Public License v1.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 |
//
|
|
14 |
// Description:
|
|
15 |
//
|
|
16 |
//! @file
|
|
17 |
//! @SYMTestSuiteName PBASE-F32-RFS-Drives-PublicApi-RAM
|
|
18 |
//! @SYMScriptTestEnvironment This test script requires a basic RAM.
|
|
19 |
//! @SYMScriptAuthor Anton Grober
|
|
20 |
//! @SYMScriptDescription The test script contains API drives & volumes related tests for RFs functions that perform operations on a RAM (not removeable RAM drive).
|
|
21 |
|
|
22 |
LOAD_SUITE T_Sfsrv
|
|
23 |
|
|
24 |
|
|
25 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1002
|
|
26 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1002
|
|
27 |
//! @SYMAPI RFs
|
|
28 |
//! @SYMAuthor Anton Grober
|
|
29 |
//! @SYMCreationDate 21/08/2006
|
|
30 |
//! @SYMTestCaseDesc Drive() function test. Passing exisiting drive index as parameter.
|
|
31 |
//! Uses API elements: Drive()
|
|
32 |
//! @SYMTestActions 1. Call Connect().
|
|
33 |
//! 2. Call Drive() passing TDriveInfo reference as first parameter and RAM-drive as second parameter.
|
|
34 |
//! 3. Call Close().
|
|
35 |
//! @SYMTestStatus Implemented
|
|
36 |
//! @SYMTestPriority Critical
|
|
37 |
//! @SYMTestExpectedResults Function returns KErrNone and iType field of TDriveInfo indeicates a correct type.
|
|
38 |
//! @SYMTestType CIT
|
|
39 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
40 |
CREATE_OBJECT RFs RFs1
|
|
41 |
COMMAND RFs1 new
|
|
42 |
COMMAND RFs1 Connect
|
|
43 |
COMMAND RFs1 Drive PBASE-F32-RFS-PublicApi-1002-001-Drive_command03
|
|
44 |
COMMAND RFs1 Close
|
|
45 |
COMMAND RFs1 ~
|
|
46 |
END_TEST_BLOCK
|
|
47 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1002
|
|
48 |
|
|
49 |
|
|
50 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1003
|
|
51 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1003
|
|
52 |
//! @SYMAPI RFs
|
|
53 |
//! @SYMAuthor Anton Grober
|
|
54 |
//! @SYMCreationDate 22/08/2006
|
|
55 |
//! @SYMTestCaseDesc Volume() and SetVolumeLabel() function test. Passing exisiting drive index as parameter.
|
|
56 |
//! Uses API elements: Volume(), SetVolumeLabel().
|
|
57 |
//! @SYMTestActions 1. Call Connect().
|
|
58 |
//! 2. Saving volume label.
|
|
59 |
//! 3. Call SetVolumeLabel() passing "Test" as first parameter and the drive number as a second parameter.
|
|
60 |
//! 4. Call Volume() passing TVolumeInfo reference as first parameter and the drive number as a second parameter.
|
|
61 |
//! 5. Restoring volume label.
|
|
62 |
//! 6. Call Close().
|
|
63 |
//! @SYMTestStatus Implemented
|
|
64 |
//! @SYMTestPriority Critical
|
|
65 |
//! @SYMTestExpectedResults Function SetVolumeLabel() returns KErrNone. Function Volume() returns KErrNone and iName field of TVolumeInfo is "Test".
|
|
66 |
//! @SYMTestType CIT
|
|
67 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
68 |
CREATE_OBJECT RFs RFs1
|
|
69 |
COMMAND RFs1 new
|
|
70 |
COMMAND RFs1 Connect
|
|
71 |
COMMAND RFs1 Volume PBASE-F32-RFS-PublicApi-1003-001-Volume_command03
|
|
72 |
COMMAND RFs1 SetVolumeLabel PBASE-F32-RFS-PublicApi-1003-001-SetVolumeLabel_command04
|
|
73 |
COMMAND RFs1 Volume PBASE-F32-RFS-PublicApi-1003-001-Volume_command05
|
|
74 |
COMMAND RFs1 SetVolumeLabel PBASE-F32-RFS-PublicApi-1003-001-SetVolumeLabel_command06
|
|
75 |
COMMAND RFs1 Close
|
|
76 |
COMMAND RFs1 ~
|
|
77 |
END_TEST_BLOCK
|
|
78 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1003
|
|
79 |
|
|
80 |
|
|
81 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1004
|
|
82 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1004
|
|
83 |
//! @SYMAPI RFs
|
|
84 |
//! @SYMAuthor Anton Grober
|
|
85 |
//! @SYMCreationDate 22/08/2006
|
|
86 |
//! @SYMTestCaseDesc SetSubst() and Subst() functions test. Passing exisiting drive index as second parameter and existing path to folder as second parameter.
|
|
87 |
//! Uses API elements: Subst(), SetSubst().
|
|
88 |
//! @SYMTestActions 1. Call Connect().
|
|
89 |
//! 2. Call SetSubst() passing "\base\" as a first parameter and non-mounted valid drive's number as a drive number.
|
|
90 |
//! 3. Check that function returned KErrNone.
|
|
91 |
//! 4. Call Subst() passing TDesC16 reference as first parameter and non-mounted valid drive's number as a drive number.
|
|
92 |
//! 5. 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.
|
|
93 |
//! 6. Check that function returned KErrNone.
|
|
94 |
//! 7. Call Close().
|
|
95 |
//! @SYMTestStatus Implemented
|
|
96 |
//! @SYMTestPriority Critical
|
|
97 |
//! @SYMTestExpectedResults Function SetSubst() returns KErrNone. Functions Subst() returns "\base\" through TDesC16 reference and returns KErrNone.
|
|
98 |
//! @SYMTestType CIT
|
|
99 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
100 |
CREATE_OBJECT RFs RFs1
|
|
101 |
COMMAND RFs1 new
|
|
102 |
COMMAND RFs1 Connect
|
|
103 |
COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-1004-001-FileSystemName_command03
|
|
104 |
COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-1004-001-DismountFileSystem_command04
|
|
105 |
COMMAND RFs1 SetSubst PBASE-F32-RFS-PublicApi-1004-001-SetSubst_command05
|
|
106 |
COMMAND RFs1 Subst PBASE-F32-RFS-PublicApi-1004-001-Subst_command06
|
|
107 |
COMMAND RFs1 SetSubst PBASE-F32-RFS-PublicApi-1004-001-SetSubst_command07
|
|
108 |
COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-1004-001-MountFileSystem_command08
|
|
109 |
COMMAND RFs1 Close
|
|
110 |
COMMAND RFs1 ~
|
|
111 |
END_TEST_BLOCK
|
|
112 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1004
|
|
113 |
|
|
114 |
|
|
115 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1008
|
|
116 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1008
|
|
117 |
//! @SYMAPI RFs
|
|
118 |
//! @SYMAuthor Anton Grober
|
|
119 |
//! @SYMCreationDate 22/08/2006
|
|
120 |
//! @SYMTestCaseDesc CheckDisk() passing path with FAT filesystem.
|
|
121 |
//! Uses API elements: CheckDisk().
|
|
122 |
//! @SYMTestActions 1. Call Connect().
|
|
123 |
//! 2. Call CheckDisk() passing drive with FAT filesystem as a drive number.
|
|
124 |
//! 3. Call Close().
|
|
125 |
//! @SYMTestStatus Implemented
|
|
126 |
//! @SYMTestPriority Critical
|
|
127 |
//! @SYMTestExpectedResults Function CheckDisk() returns KErrNone.
|
|
128 |
//! @SYMTestType CIT
|
|
129 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
130 |
CREATE_OBJECT RFs RFs1
|
|
131 |
COMMAND RFs1 new
|
|
132 |
COMMAND RFs1 Connect
|
|
133 |
COMMAND RFs1 CheckDisk PBASE-F32-RFS-PublicApi-1008-001-CheckDisk_command03
|
|
134 |
COMMAND RFs1 Close
|
|
135 |
COMMAND RFs1 ~
|
|
136 |
END_TEST_BLOCK
|
|
137 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1008
|
|
138 |
|
|
139 |
|
|
140 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1009
|
|
141 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1009
|
|
142 |
//! @SYMAPI RFs
|
|
143 |
//! @SYMAuthor Anton Grober
|
|
144 |
//! @SYMCreationDate 22/08/2006
|
|
145 |
//! @SYMTestCaseDesc ScanDrive() passing path to drive with FAT filesystem.
|
|
146 |
//! Uses API elements: ScanDrive();
|
|
147 |
//! @SYMTestActions 1. Call Connect().
|
|
148 |
//! 2. Call ScanDrive() passing drive's with FAT filesystem number as a drive number.
|
|
149 |
//! 3. Call Close().
|
|
150 |
//! @SYMTestStatus Implemented
|
|
151 |
//! @SYMTestPriority Critical
|
|
152 |
//! @SYMTestExpectedResults Function ScanDrive() returns KErrNone.
|
|
153 |
//! @SYMTestType CIT
|
|
154 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
155 |
CREATE_OBJECT RFs RFs1
|
|
156 |
COMMAND RFs1 new
|
|
157 |
COMMAND RFs1 Connect
|
|
158 |
COMMAND RFs1 ScanDrive PBASE-F32-RFS-PublicApi-1009-001-ScanDrive_command03
|
|
159 |
COMMAND RFs1 Close
|
|
160 |
COMMAND RFs1 ~
|
|
161 |
END_TEST_BLOCK
|
|
162 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1009
|
|
163 |
|
|
164 |
|
|
165 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1010
|
|
166 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1010
|
|
167 |
//! @SYMAPI RFs
|
|
168 |
//! @SYMAuthor Anton Grober
|
|
169 |
//! @SYMCreationDate 22/08/2006
|
|
170 |
//! @SYMTestCaseDesc SetDriveName() and GetDriveName() tests. Passing existing drive as parameter and some descriptor as drive name or store for returned value.
|
|
171 |
//! Uses API elements: GetDriveName(), SetDriveName();
|
|
172 |
//! @SYMTestActions 1. Call Connect().
|
|
173 |
//! 2. Saving drive name for restoring.
|
|
174 |
//! 3. Call SetDriveName() passing default drive's number as first parameter and "TEST" as second parameter.
|
|
175 |
//! 4. Call GetDriveName() passing default drive's number as first paramter and TDesC16 reference as second paramter.
|
|
176 |
//! 5. Restoring drive name.
|
|
177 |
//! 6. Call Close().
|
|
178 |
//! @SYMTestStatus Implemented
|
|
179 |
//! @SYMTestPriority Critical
|
|
180 |
//! @SYMTestExpectedResults Function SetDriveName() returns KErrNone. Function GetDriveName() returns "TEST" through a TDesC16 reference and returns KErrNone.
|
|
181 |
//! @SYMTestType CIT
|
|
182 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
183 |
CREATE_OBJECT RFs RFs1
|
|
184 |
COMMAND RFs1 new
|
|
185 |
COMMAND RFs1 Connect
|
|
186 |
COMMAND RFs1 GetDriveName PBASE-F32-RFS-PublicApi-1010-001-GetDriveName_command03
|
|
187 |
COMMAND RFs1 SetDriveName PBASE-F32-RFS-PublicApi-1010-001-SetDriveName_command04
|
|
188 |
COMMAND RFs1 GetDriveName PBASE-F32-RFS-PublicApi-1010-001-GetDriveName_command05
|
|
189 |
COMMAND RFs1 SetDriveName PBASE-F32-RFS-PublicApi-1010-001-SetDriveName_command06
|
|
190 |
COMMAND RFs1 Close
|
|
191 |
COMMAND RFs1 ~
|
|
192 |
END_TEST_BLOCK
|
|
193 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1010
|
|
194 |
|
|
195 |
|
|
196 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1013
|
|
197 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1013
|
|
198 |
//! @SYMAPI RFs
|
|
199 |
//! @SYMAuthor Anton Grober
|
|
200 |
//! @SYMCreationDate 22/08/2006
|
|
201 |
//! @SYMTestCaseDesc ReserveDriveSpace(), GetReserveAccess() and ReleaseReserveAccess() tests. Passing existing drive as first parameter and amount of space int bytes as second.
|
|
202 |
//! Uses API elements: ReserveDriveSpace(), GetReserveAccess() and ReleaseReserveAccess().
|
|
203 |
//! @SYMTestActions 1. Call Connect().
|
|
204 |
//! 2. Call ReserveDriveSpace() passing 100(bytes) as first parameter and default drive's number as second parameter.
|
|
205 |
//! 3. Call GetReserveAccess() passing default drive's number as parameter.
|
|
206 |
//! 4. Call ReleaseReserveAccess() passing default drive's number as parameter.
|
|
207 |
//! 5. Call Close().
|
|
208 |
//! @SYMTestStatus Implemented
|
|
209 |
//! @SYMTestPriority Critical
|
|
210 |
//! @SYMTestExpectedResults Function ReserveReserveAccess() returns KErrNone. Function GetReseveAccess() returns KErrNone. Function ReleaseReserveAccess() returns KErrNone.
|
|
211 |
//! @SYMTestType CIT
|
|
212 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
213 |
CREATE_OBJECT RFs RFs1
|
|
214 |
COMMAND RFs1 new
|
|
215 |
COMMAND RFs1 Connect
|
|
216 |
COMMAND RFs1 ReserveDriveSpace PBASE-F32-RFS-PublicApi-1013-001-ReserveDriveSpace_command03
|
|
217 |
COMMAND RFs1 GetReserveAccess PBASE-F32-RFS-PublicApi-1013-001-GetReserveAccess_command04
|
|
218 |
COMMAND RFs1 ReleaseReserveAccess PBASE-F32-RFS-PublicApi-1013-001-ReleaseReserveAccess_command05
|
|
219 |
COMMAND RFs1 Close
|
|
220 |
COMMAND RFs1 ~
|
|
221 |
END_TEST_BLOCK
|
|
222 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1013
|
|
223 |
|
|
224 |
|
|
225 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1018
|
|
226 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1018
|
|
227 |
//! @SYMAPI RFs
|
|
228 |
//! @SYMAuthor Anton Grober
|
|
229 |
//! @SYMCreationDate 22/08/2006
|
|
230 |
//! @SYMTestCaseDesc Volume() function test. Passing non-mounted drive index as parameter.
|
|
231 |
//! Uses API elements: Volume().
|
|
232 |
//! @SYMTestActions 1. Call Connect().
|
|
233 |
//! 2. Call Volume() passing TVolumeInfo reference as first parameter and the non-mounted drive's number as a second parameter.
|
|
234 |
//! 3. Call Close().
|
|
235 |
//! @SYMTestStatus Implemented
|
|
236 |
//! @SYMTestPriority High
|
|
237 |
//! @SYMTestExpectedResults Function Volume() returns KErrNotReady.
|
|
238 |
//! @SYMTestType CIT
|
|
239 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
240 |
CREATE_OBJECT RFs RFs1
|
|
241 |
COMMAND RFs1 new
|
|
242 |
COMMAND RFs1 Connect
|
|
243 |
COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-1018-001-FileSystemName_command03
|
|
244 |
COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-1018-001-DismountFileSystem_command04
|
|
245 |
COMMAND !Error=-18 RFs1 Volume PBASE-F32-RFS-PublicApi-1018-001-Volume_command05
|
|
246 |
COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-1018-001-MountFileSystem_command06
|
|
247 |
COMMAND RFs1 Close
|
|
248 |
COMMAND RFs1 ~
|
|
249 |
END_TEST_BLOCK
|
|
250 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1018
|
|
251 |
|
|
252 |
|
|
253 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1020
|
|
254 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1020
|
|
255 |
//! @SYMAPI RFs
|
|
256 |
//! @SYMAuthor Anton Grober
|
|
257 |
//! @SYMCreationDate 02/10/2006
|
|
258 |
//! @SYMTestCaseDesc SetVolumeLabel() function test. Passing not mounted drive index as parameter.
|
|
259 |
//! Uses API elements: SetVolumeLabel().
|
|
260 |
//! @SYMTestActions 1. Call Connect().
|
|
261 |
//! 2. Call SetVolumeLabel() passing TVolumeInfo reference as first parameter and the non-mounted drive's number as a second parameter.
|
|
262 |
//! 3. Call Close().
|
|
263 |
//! @SYMTestStatus Implemented
|
|
264 |
//! @SYMTestPriority High
|
|
265 |
//! @SYMTestExpectedResults Function SetVolumeLabel() returns KErrNotReady.
|
|
266 |
//! @SYMTestType CIT
|
|
267 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
268 |
CREATE_OBJECT RFs RFs1
|
|
269 |
COMMAND RFs1 new
|
|
270 |
COMMAND RFs1 Connect
|
|
271 |
COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-1020-001-FileSystemName_command03
|
|
272 |
COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-1020-001-DismountFileSystem_command04
|
|
273 |
COMMAND !Error=-18 RFs1 SetVolumeLabel PBASE-F32-RFS-PublicApi-1020-001-SetVolumeLabel_command05
|
|
274 |
COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-1020-001-MountFileSystem_command06
|
|
275 |
COMMAND RFs1 Close
|
|
276 |
COMMAND RFs1 ~
|
|
277 |
END_TEST_BLOCK
|
|
278 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1020
|
|
279 |
|
|
280 |
|
|
281 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1022
|
|
282 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1022
|
|
283 |
//! @SYMAPI RFs
|
|
284 |
//! @SYMAuthor Anton Grober
|
|
285 |
//! @SYMCreationDate 02/10/2006
|
|
286 |
//! @SYMTestCaseDesc SetSubst() function test. Passing exisiting and mounted drive index as parameter.
|
|
287 |
//! Uses API elements: SetSubst().
|
|
288 |
//! @SYMTestActions 1. Call Connect().
|
|
289 |
//! 2. Call SetSubst() passing some correct path descriptor as first parameter and some mounted drive as second.
|
|
290 |
//! 3. Call Close().
|
|
291 |
//! @SYMTestStatus Implemented
|
|
292 |
//! @SYMTestPriority High
|
|
293 |
//! @SYMTestExpectedResults Function SetSubst() returns KErrGeneral.
|
|
294 |
//! @SYMTestType CIT
|
|
295 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
296 |
CREATE_OBJECT RFs RFs1
|
|
297 |
COMMAND RFs1 new
|
|
298 |
COMMAND RFs1 Connect
|
|
299 |
COMMAND !Error=-2 RFs1 SetSubst PBASE-F32-RFS-PublicApi-1022-001-SetSubst_command03
|
|
300 |
COMMAND RFs1 Close
|
|
301 |
COMMAND RFs1 ~
|
|
302 |
END_TEST_BLOCK
|
|
303 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1022
|
|
304 |
|
|
305 |
|
|
306 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1023
|
|
307 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1023
|
|
308 |
//! @SYMAPI RFs
|
|
309 |
//! @SYMAuthor Anton Grober
|
|
310 |
//! @SYMCreationDate 02/10/2006
|
|
311 |
//! @SYMTestCaseDesc SetSubst() function test. Passing correct path as other parameter and incorrect drive index as parameter.
|
|
312 |
//! Uses API elements: SetSubst().
|
|
313 |
//! @SYMTestActions 1. Call Connect().
|
|
314 |
//! 2. Call SetSubst() passing descriptor with some icorrect path as first parameter and umounted drive number as second.
|
|
315 |
//! 3. Call Close().
|
|
316 |
//! @SYMTestStatus Implemented
|
|
317 |
//! @SYMTestPriority High
|
|
318 |
//! @SYMTestExpectedResults Function SetSubst() returns KErrBadName.
|
|
319 |
//! @SYMTestType CIT
|
|
320 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
321 |
CREATE_OBJECT RFs RFs1
|
|
322 |
COMMAND RFs1 new
|
|
323 |
COMMAND RFs1 Connect
|
|
324 |
COMMAND !Error=-28 RFs1 SetSubst PBASE-F32-RFS-PublicApi-1023-001-SetSubst_command03
|
|
325 |
COMMAND RFs1 Close
|
|
326 |
COMMAND RFs1 ~
|
|
327 |
END_TEST_BLOCK
|
|
328 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1023
|
|
329 |
|
|
330 |
|
|
331 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1024
|
|
332 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1024
|
|
333 |
//! @SYMAPI RFs
|
|
334 |
//! @SYMAuthor Anton Grober
|
|
335 |
//! @SYMCreationDate 02/10/2006
|
|
336 |
//! @SYMTestCaseDesc SetSubst() function test. Passing not mounted drive index as parameter and incorrect path as other parameter.
|
|
337 |
//! Uses API elements: SetSubst().
|
|
338 |
//! @SYMTestActions 1. Call Connect().
|
|
339 |
//! 2. Call SetSubst() passing descriptor with some incorrect path as first parameter and umounted drive number as second.
|
|
340 |
//! 3. Call Close().
|
|
341 |
//! @SYMTestStatus Implemented
|
|
342 |
//! @SYMTestPriority High
|
|
343 |
//! @SYMTestExpectedResults Function SetSubst() returns KErrBadName.
|
|
344 |
//! @SYMTestType CIT
|
|
345 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
346 |
CREATE_OBJECT RFs RFs1
|
|
347 |
COMMAND RFs1 new
|
|
348 |
COMMAND RFs1 Connect
|
|
349 |
COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-1024-001-FileSystemName_command03
|
|
350 |
COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-1024-001-DismountFileSystem_command04
|
|
351 |
COMMAND !Error=-28 RFs1 SetSubst PBASE-F32-RFS-PublicApi-1024-001-SetSubst_command05
|
|
352 |
COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-1024-001-MountFileSystem_command06
|
|
353 |
COMMAND RFs1 Close
|
|
354 |
COMMAND RFs1 ~
|
|
355 |
END_TEST_BLOCK
|
|
356 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1024
|
|
357 |
|
|
358 |
|
|
359 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1031
|
|
360 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1031
|
|
361 |
//! @SYMAPI RFs
|
|
362 |
//! @SYMAuthor Anton Grober
|
|
363 |
//! @SYMCreationDate 22/08/2006
|
|
364 |
//! @SYMTestCaseDesc CheckDisk() test that passes a non-mounted drive number as a parameter.
|
|
365 |
//! Uses API elements: CheckDisk()
|
|
366 |
//! @SYMTestActions 1. Call Connect().
|
|
367 |
//! 2. Call CheckDisk() passing non-mounted drive number as a parameter.
|
|
368 |
//! 3. Call Close().
|
|
369 |
//! @SYMTestStatus Implemented
|
|
370 |
//! @SYMTestPriority High
|
|
371 |
//! @SYMTestExpectedResults Function CheckDisk() returns KErrNotReady.
|
|
372 |
//! @SYMTestType CIT
|
|
373 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
374 |
CREATE_OBJECT RFs RFs1
|
|
375 |
COMMAND RFs1 new
|
|
376 |
COMMAND RFs1 Connect
|
|
377 |
COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-1031-001-FileSystemName_command03
|
|
378 |
COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-1031-001-DismountFileSystem_command04
|
|
379 |
COMMAND !Error=-18 RFs1 CheckDisk PBASE-F32-RFS-PublicApi-1031-001-CheckDisk_command05
|
|
380 |
COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-1031-001-MountFileSystem_command06
|
|
381 |
COMMAND RFs1 Close
|
|
382 |
COMMAND RFs1 ~
|
|
383 |
END_TEST_BLOCK
|
|
384 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1031
|
|
385 |
|
|
386 |
|
|
387 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1033
|
|
388 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1033
|
|
389 |
//! @SYMAPI RFs
|
|
390 |
//! @SYMAuthor Anton Grober
|
|
391 |
//! @SYMCreationDate 22/08/2006
|
|
392 |
//! @SYMTestCaseDesc ScanDrive() test that passes a non-mounted drive number as a parameter.
|
|
393 |
//! Uses API elements: ScanDrive()
|
|
394 |
//! @SYMTestActions 1. Call Connect().
|
|
395 |
//! 2. Call ScanDrive() passing a non-mounted drive number as a parameter.
|
|
396 |
//! 3. Call Close().
|
|
397 |
//! @SYMTestStatus Implemented
|
|
398 |
//! @SYMTestPriority High
|
|
399 |
//! @SYMTestExpectedResults Function ScanDrive() returns KErrNotReady.
|
|
400 |
//! @SYMTestType CIT
|
|
401 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
402 |
CREATE_OBJECT RFs RFs1
|
|
403 |
COMMAND RFs1 new
|
|
404 |
COMMAND RFs1 Connect
|
|
405 |
COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-1033-001-FileSystemName_command03
|
|
406 |
COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-1033-001-DismountFileSystem_command04
|
|
407 |
COMMAND !Error=-18 RFs1 ScanDrive PBASE-F32-RFS-PublicApi-1033-001-ScanDrive_command05
|
|
408 |
COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-1033-001-MountFileSystem_command06
|
|
409 |
COMMAND RFs1 Close
|
|
410 |
COMMAND RFs1 ~
|
|
411 |
END_TEST_BLOCK
|
|
412 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1033
|
|
413 |
|
|
414 |
|
|
415 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1037
|
|
416 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1037
|
|
417 |
//! @SYMAPI RFs
|
|
418 |
//! @SYMAuthor Anton Grober
|
|
419 |
//! @SYMCreationDate 02/10/2006
|
|
420 |
//! @SYMTestCaseDesc LockDrive() function test. Passing not mounted drive index as parameter.
|
|
421 |
//! Uses API elements: LockDrive().
|
|
422 |
//! @SYMTestActions 1. Call Connect().
|
|
423 |
//! 2. Call LockDrive() passing some nonmounted drive's number as drive number parameter.
|
|
424 |
//! 3. Call Close().
|
|
425 |
//! @SYMTestStatus Implemented
|
|
426 |
//! @SYMTestPriority High
|
|
427 |
//! @SYMTestExpectedResults Function LockDrive() returns KErrNotReady.
|
|
428 |
//! @SYMTestType CIT
|
|
429 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
430 |
CREATE_OBJECT RFs RFs1
|
|
431 |
COMMAND RFs1 new
|
|
432 |
COMMAND RFs1 Connect
|
|
433 |
COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-1037-001-FileSystemName_command03
|
|
434 |
COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-1037-001-DismountFileSystem_command04
|
|
435 |
COMMAND !Error=-18 RFs1 LockDrive PBASE-F32-RFS-PublicApi-1037-001-LockDrive_command05
|
|
436 |
COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-1037-001-MountFileSystem_command06
|
|
437 |
COMMAND RFs1 Close
|
|
438 |
COMMAND RFs1 ~
|
|
439 |
END_TEST_BLOCK
|
|
440 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1037
|
|
441 |
|
|
442 |
|
|
443 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1043
|
|
444 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1043
|
|
445 |
//! @SYMAPI RFs
|
|
446 |
//! @SYMAuthor Anton Grober
|
|
447 |
//! @SYMCreationDate 02/10/2006
|
|
448 |
//! @SYMTestCaseDesc ReserveDriveSpace() function test. Trying to reserve drive space again after getting access to it.
|
|
449 |
//! Uses API elements: ReserveDriveSpace().
|
|
450 |
//! @SYMTestActions 1. Call Connect().
|
|
451 |
//! 2. Call ReserveDriveSpace() passing valid drive's number(RAM-drive's) as drive number parameter and 100(bytes) as amount of space to reserve.
|
|
452 |
//! 3. Call GetReserveAccess() with same drive's number(default drive's).
|
|
453 |
//! 4. Call ReserveDriveSpace() passing valid drive's number(RAM-drive's) as drive number parameter and 100 as amount of space to reserve.
|
|
454 |
//! 5. Call Close().
|
|
455 |
//! @SYMTestStatus Implemented
|
|
456 |
//! @SYMTestPriority High
|
|
457 |
//! @SYMTestExpectedResults Function ReserveDriveSpace() returns KErrInUse.
|
|
458 |
//! @SYMTestType CIT
|
|
459 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
460 |
CREATE_OBJECT RFs RFs1
|
|
461 |
COMMAND RFs1 new
|
|
462 |
COMMAND RFs1 Connect
|
|
463 |
COMMAND RFs1 ReserveDriveSpace PBASE-F32-RFS-PublicApi-1043-001-ReserveDriveSpace_command03
|
|
464 |
COMMAND RFs1 GetReserveAccess PBASE-F32-RFS-PublicApi-1043-001-GetReserveAccess_command04
|
|
465 |
COMMAND !Error=-14 RFs1 ReserveDriveSpace PBASE-F32-RFS-PublicApi-1043-001-ReserveDriveSpace_command05
|
|
466 |
COMMAND RFs1 Close
|
|
467 |
COMMAND RFs1 ~
|
|
468 |
END_TEST_BLOCK
|
|
469 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1043
|
|
470 |
|
|
471 |
|
|
472 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1044
|
|
473 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1044
|
|
474 |
//! @SYMAPI RFs
|
|
475 |
//! @SYMAuthor Anton Grober
|
|
476 |
//! @SYMCreationDate 02/10/2006
|
|
477 |
//! @SYMTestCaseDesc ReserveDriveSpace() function test. Trying to reserve too much drive space.
|
|
478 |
//! Uses API elements: ReserveDriveSpace().
|
|
479 |
//! @SYMTestActions 1. Call Connect().
|
|
480 |
//! 2. Call ReserveDriveSpace() passing valid drive's number(RAM-drive') as drive number parameter and 10000000000(in bytes and must be too big) as amount of space to reserve.
|
|
481 |
//! 3. Call Close().
|
|
482 |
//! @SYMTestStatus Implemented
|
|
483 |
//! @SYMTestPriority High
|
|
484 |
//! @SYMTestExpectedResults Function ReserveDriveSpace() returns KErrArgument
|
|
485 |
//! @SYMTestType CIT
|
|
486 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
487 |
CREATE_OBJECT RFs RFs1
|
|
488 |
COMMAND RFs1 new
|
|
489 |
COMMAND RFs1 Connect
|
|
490 |
COMMAND !Error=-6 RFs1 ReserveDriveSpace PBASE-F32-RFS-PublicApi-1044-001-ReserveDriveSpace_command03
|
|
491 |
COMMAND RFs1 Close
|
|
492 |
COMMAND RFs1 ~
|
|
493 |
END_TEST_BLOCK
|
|
494 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1044
|
|
495 |
|
|
496 |
|
|
497 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1045
|
|
498 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1045
|
|
499 |
//! @SYMAPI RFs
|
|
500 |
//! @SYMAuthor Anton Grober
|
|
501 |
//! @SYMCreationDate 02/10/2006
|
|
502 |
//! @SYMTestCaseDesc GetReserveAccess() function test. Trying to get access without reserving any space before.
|
|
503 |
//! Uses API elements: GetReserveAccess().
|
|
504 |
//! @SYMTestActions 1. Call Connect().
|
|
505 |
//! 2. Call GetReserveAccess() passing valid drive's number (RAM-drive') as drive number parameter.
|
|
506 |
//! 3. Call Close().
|
|
507 |
//! @SYMTestStatus Implemented
|
|
508 |
//! @SYMTestPriority High
|
|
509 |
//! @SYMTestExpectedResults Function GetReserveAccess() returns KErrPremissionDenied.
|
|
510 |
//! @SYMTestType CIT
|
|
511 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
512 |
CREATE_OBJECT RFs RFs1
|
|
513 |
COMMAND RFs1 new
|
|
514 |
COMMAND RFs1 Connect
|
|
515 |
COMMAND !Error=-46 RFs1 GetReserveAccess PBASE-F32-RFS-PublicApi-1045-001-GetReserveAccess_command03
|
|
516 |
COMMAND RFs1 Close
|
|
517 |
COMMAND RFs1 ~
|
|
518 |
END_TEST_BLOCK
|
|
519 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1045
|
|
520 |
|
|
521 |
|
|
522 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1053
|
|
523 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1053
|
|
524 |
//! @SYMAPI RFs
|
|
525 |
//! @SYMAuthor Anton Grober
|
|
526 |
//! @SYMCreationDate 22/08/2006
|
|
527 |
//! @SYMTestCaseDesc SetSubst() functions test. Passing existing path to folder as parameter. Using KDefaultDrive as drive parameter.
|
|
528 |
//! Uses API elements: SetSubst().
|
|
529 |
//! @SYMTestActions 1. Call Connect().
|
|
530 |
//! 2. Call SetSubst() passing "\base\" as a first parameter. Testing with default drive.
|
|
531 |
//! 3. Call SetSubst() passing ""(empty descriptor) as a first parameter. This will unsubst the substed.
|
|
532 |
//! 4. Call Close().
|
|
533 |
//! @SYMTestStatus Implemented
|
|
534 |
//! @SYMTestPriority High
|
|
535 |
//! @SYMTestExpectedResults Function SetSubst() returns KErrGeneral.
|
|
536 |
//! @SYMTestType CIT
|
|
537 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
538 |
CREATE_OBJECT RFs RFs1
|
|
539 |
COMMAND RFs1 new
|
|
540 |
COMMAND RFs1 Connect
|
|
541 |
COMMAND !Error=-2 RFs1 SetSubst PBASE-F32-RFS-PublicApi-1053-001-SetSubst_command03
|
|
542 |
COMMAND !Error=-2 RFs1 SetSubst PBASE-F32-RFS-PublicApi-1053-001-SetSubst_command04
|
|
543 |
COMMAND RFs1 Close
|
|
544 |
COMMAND RFs1 ~
|
|
545 |
END_TEST_BLOCK
|
|
546 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1053
|
|
547 |
|
|
548 |
|
|
549 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1058
|
|
550 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1058
|
|
551 |
//! @SYMAPI RFs
|
|
552 |
//! @SYMAuthor Anton Grober
|
|
553 |
//! @SYMCreationDate 24/01/2007
|
|
554 |
//! @SYMTestCaseDesc IsValidDrive() passing non-mounted drive as parameter.
|
|
555 |
//! Uses API elements: IsValidDrive().
|
|
556 |
//! @SYMTestActions 1. Call IsValidDrive() passing non-mounted drive in range from EDriveC to EDriveZ.
|
|
557 |
//! @SYMTestStatus Implemented
|
|
558 |
//! @SYMTestPriority High
|
|
559 |
//! @SYMTestExpectedResults Function IsValidDrive() returns ETrue.
|
|
560 |
//! @SYMTestType CIT
|
|
561 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
562 |
CREATE_OBJECT RFs RFs1
|
|
563 |
COMMAND RFs1 new
|
|
564 |
COMMAND RFs1 Connect
|
|
565 |
COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-1058-001-FileSystemName_command03
|
|
566 |
COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-1058-001-DismountFileSystem_command04
|
|
567 |
COMMAND RFs1 IsValidDrive PBASE-F32-RFS-PublicApi-1058-001-IsValidDrive_command05
|
|
568 |
COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-1058-001-MountFileSystem_command06
|
|
569 |
COMMAND RFs1 Close
|
|
570 |
COMMAND RFs1 ~
|
|
571 |
END_TEST_BLOCK
|
|
572 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1058
|
|
573 |
|
|
574 |
|
|
575 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1062
|
|
576 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1062
|
|
577 |
//! @SYMAPI RFs
|
|
578 |
//! @SYMAuthor Anton Grober
|
|
579 |
//! @SYMCreationDate 22/08/2006
|
|
580 |
//! @SYMTestCaseDesc ReleaseReserveAccess() test that uses the function without previous call to ReserveDriveSpace().
|
|
581 |
//! Uses API elements: ReleaseReserveAccess()
|
|
582 |
//! @SYMTestActions 1. Call Connect().
|
|
583 |
//! 2. Call ReleaseReserveAccess() passing RAM-drive's path as path parameter.
|
|
584 |
//! 3. Call Close().
|
|
585 |
//! @SYMTestStatus Implemented
|
|
586 |
//! @SYMTestPriority Critical
|
|
587 |
//! @SYMTestExpectedResults Function ReleaseReserveAccess() returns KErrNone.
|
|
588 |
//! @SYMTestType CIT
|
|
589 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
590 |
CREATE_OBJECT RFs RFs1
|
|
591 |
COMMAND RFs1 new
|
|
592 |
COMMAND RFs1 Connect
|
|
593 |
COMMAND RFs1 ReleaseReserveAccess PBASE-F32-RFS-PublicApi-1062-001-ReleaseReserveAccess_command03
|
|
594 |
COMMAND RFs1 Close
|
|
595 |
COMMAND RFs1 ~
|
|
596 |
END_TEST_BLOCK
|
|
597 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1062
|
|
598 |
|
|
599 |
|
|
600 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1063
|
|
601 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1063
|
|
602 |
//! @SYMAPI RFs
|
|
603 |
//! @SYMAuthor Anton Grober
|
|
604 |
//! @SYMCreationDate 22/08/2006
|
|
605 |
//! @SYMTestCaseDesc SetSubst() test. Passing some non-mounted drive index as parameter. Drive() test passing substed drive as parameter.
|
|
606 |
//! Uses API elements: SetSubst(), Drive()
|
|
607 |
//! @SYMTestActions 1. Call Connect().
|
|
608 |
//! 2. Call SetSubst() with path '\base\' and non-mounted drive as parameter.
|
|
609 |
//! 3. Call Drive() and get through TDriveInfo object through the reference using the same drive as parameter.
|
|
610 |
//! 4. Call SetSubst() with empty path to unsubst the drive we have substed.
|
|
611 |
//! 5. Call Close().
|
|
612 |
//! @SYMTestStatus Implemented
|
|
613 |
//! @SYMTestPriority Critical
|
|
614 |
//! @SYMTestExpectedResults Function Drive() returns KErrNone and TDriveInfo object through the reference with KDriveAttSubsted attribute enabled.
|
|
615 |
//! @SYMTestType CIT
|
|
616 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
617 |
CREATE_OBJECT RFs RFs1
|
|
618 |
COMMAND RFs1 new
|
|
619 |
COMMAND RFs1 Connect
|
|
620 |
COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-1063-001-FileSystemName_command03
|
|
621 |
COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-1063-001-DismountFileSystem_command04
|
|
622 |
COMMAND RFs1 SetSubst PBASE-F32-RFS-PublicApi-1063-001-SetSubst_command05
|
|
623 |
COMMAND RFs1 Drive PBASE-F32-RFS-PublicApi-1063-001-Drive_command06
|
|
624 |
COMMAND RFs1 SetSubst PBASE-F32-RFS-PublicApi-1063-001-SetSubst_command07
|
|
625 |
COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-1063-001-MountFileSystem_command08
|
|
626 |
COMMAND RFs1 Close
|
|
627 |
COMMAND RFs1 ~
|
|
628 |
END_TEST_BLOCK
|
|
629 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1063
|
|
630 |
|
|
631 |
|
|
632 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1065
|
|
633 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1065
|
|
634 |
//! @SYMAPI RFs
|
|
635 |
//! @SYMCreationDate 22/08/2006
|
|
636 |
//! @SYMTestCaseDesc ErasePassword() test. Passing non-mounted drive's number as parameter .
|
|
637 |
//! Uses API elements: ErasePassword()
|
|
638 |
//! @SYMTestActions 1. Call Connect().
|
|
639 |
//! 2. Call ErasePassword() passing not mounted drive's number.
|
|
640 |
//! 3. Call Close().
|
|
641 |
//! @SYMTestStatus Implemented
|
|
642 |
//! @SYMTestPriority High
|
|
643 |
//! @SYMTestExpectedResults Function ErasePassword() returns KErrNotReady.
|
|
644 |
//! @SYMTestType CIT
|
|
645 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
646 |
CREATE_OBJECT RFs RFs1
|
|
647 |
COMMAND RFs1 new
|
|
648 |
COMMAND RFs1 Connect
|
|
649 |
COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-1065-001-FileSystemName_command03
|
|
650 |
COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-1065-001-DismountFileSystem_command04
|
|
651 |
COMMAND !Error=-18 RFs1 ErasePassword PBASE-F32-RFS-PublicApi-1065-001-ErasePassword_command05
|
|
652 |
COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-1065-001-MountFileSystem_command06
|
|
653 |
COMMAND RFs1 Close
|
|
654 |
COMMAND RFs1 ~
|
|
655 |
END_TEST_BLOCK
|
|
656 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1065
|
|
657 |
|
|
658 |
|
|
659 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1070
|
|
660 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1070
|
|
661 |
//! @SYMAPI RFs
|
|
662 |
//! @SYMCreationDate 22/08/2006
|
|
663 |
//! @SYMTestCaseDesc ClearPassword() test. Passing non-mounted drive's number as parameter.
|
|
664 |
//! Uses API elements: ClearPassword()
|
|
665 |
//! @SYMTestActions 1. Call Connect().
|
|
666 |
//! 2. Call ClearPassword() passing not mounted drive's number and 'test' as password.
|
|
667 |
//! 3. Call Close().
|
|
668 |
//! @SYMTestStatus Implemented
|
|
669 |
//! @SYMTestPriority High
|
|
670 |
//! @SYMTestExpectedResults Function ClearPassword() returns KErrNotReady.
|
|
671 |
//! @SYMTestType CIT
|
|
672 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
673 |
CREATE_OBJECT RFs RFs1
|
|
674 |
COMMAND RFs1 new
|
|
675 |
COMMAND RFs1 Connect
|
|
676 |
COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-1070-001-FileSystemName_command03
|
|
677 |
COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-1070-001-DismountFileSystem_command04
|
|
678 |
COMMAND !Error=-18 RFs1 ClearPassword PBASE-F32-RFS-PublicApi-1070-001-ClearPassword_command05
|
|
679 |
COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-1070-001-MountFileSystem_command06
|
|
680 |
COMMAND RFs1 Close
|
|
681 |
COMMAND RFs1 ~
|
|
682 |
END_TEST_BLOCK
|
|
683 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1070
|
|
684 |
|
|
685 |
|
|
686 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1075
|
|
687 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1075
|
|
688 |
//! @SYMAPI RFs
|
|
689 |
//! @SYMCreationDate 22/08/2006
|
|
690 |
//! @SYMTestCaseDesc UnlockDrive() test. Passing non-mounted drive's number as parameter.
|
|
691 |
//! Uses API elements: UnlockDrive()
|
|
692 |
//! @SYMTestActions 1. Call Connect().
|
|
693 |
//! 2. Call UnlockDrive() passing not mounted drive's number and 'test' as password.
|
|
694 |
//! 3. Call Close().
|
|
695 |
//! @SYMTestStatus Implemented
|
|
696 |
//! @SYMTestPriority High
|
|
697 |
//! @SYMTestExpectedResults Function UnlockDrive() returns KErrNotReady.
|
|
698 |
//! @SYMTestType CIT
|
|
699 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
700 |
CREATE_OBJECT RFs RFs1
|
|
701 |
COMMAND RFs1 new
|
|
702 |
COMMAND RFs1 Connect
|
|
703 |
COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-1075-001-FileSystemName_command03
|
|
704 |
COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-1075-001-DismountFileSystem_command04
|
|
705 |
COMMAND !Error=-18 RFs1 UnlockDrive PBASE-F32-RFS-PublicApi-1075-001-UnlockDrive_command05
|
|
706 |
COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-1075-001-MountFileSystem_command06
|
|
707 |
COMMAND RFs1 Close
|
|
708 |
COMMAND RFs1 ~
|
|
709 |
END_TEST_BLOCK
|
|
710 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1075
|
|
711 |
|
|
712 |
|
|
713 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1078
|
|
714 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1078
|
|
715 |
//! @SYMAPI RFs
|
|
716 |
//! @SYMCreationDate 08/02/2007
|
|
717 |
//! @SYMTestCaseDesc ReserveDriveSpace() test. Testing with non-mounted drive.
|
|
718 |
//! Uses API elements: ReserveDriveSpace()
|
|
719 |
//! @SYMTestActions 1. Call Connect().
|
|
720 |
//! 2. Call ReserveDriveSpace() passing non-mounted drive's number and 100(bytes) to reserve.
|
|
721 |
//! 3. Call Close().
|
|
722 |
//! @SYMTestStatus Implemented
|
|
723 |
//! @SYMTestPriority High
|
|
724 |
//! @SYMTestExpectedResults Function ReserveDriveSpace() returns KErrNotReady.
|
|
725 |
//! @SYMTestType CIT
|
|
726 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
727 |
CREATE_OBJECT RFs RFs1
|
|
728 |
COMMAND RFs1 new
|
|
729 |
COMMAND RFs1 Connect
|
|
730 |
COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-1078-001-FileSystemName_command03
|
|
731 |
COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-1078-001-DismountFileSystem_command04
|
|
732 |
COMMAND !Error=-18 RFs1 ReserveDriveSpace PBASE-F32-RFS-PublicApi-1078-001-ReserveDriveSpace_command05
|
|
733 |
COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-1078-001-MountFileSystem_command06
|
|
734 |
COMMAND RFs1 Close
|
|
735 |
COMMAND RFs1 ~
|
|
736 |
END_TEST_BLOCK
|
|
737 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1078
|
|
738 |
|
|
739 |
|
|
740 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1079
|
|
741 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1079
|
|
742 |
//! @SYMAPI RFs
|
|
743 |
//! @SYMCreationDate 08/02/2007
|
|
744 |
//! @SYMTestCaseDesc GetReserveAccess() test. Testing with non-mounted drive.
|
|
745 |
//! Uses API elements: GetReserveAccess()
|
|
746 |
//! @SYMTestActions 1. Call Connect().
|
|
747 |
//! 2. Call GetReserveAccess() passing non-mounted drive's number.
|
|
748 |
//! 3. Call Close().
|
|
749 |
//! @SYMTestStatus Implemented
|
|
750 |
//! @SYMTestPriority High
|
|
751 |
//! @SYMTestExpectedResults Function GetReserveAccess() returns KErrPermissionDenied.
|
|
752 |
//! @SYMTestType CIT
|
|
753 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
754 |
CREATE_OBJECT RFs RFs1
|
|
755 |
COMMAND RFs1 new
|
|
756 |
COMMAND RFs1 Connect
|
|
757 |
COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-1079-001-FileSystemName_command03
|
|
758 |
COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-1079-001-DismountFileSystem_command04
|
|
759 |
COMMAND !Error=-46 RFs1 GetReserveAccess PBASE-F32-RFS-PublicApi-1079-001-GetReserveAccess_command05
|
|
760 |
COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-1079-001-MountFileSystem_command06
|
|
761 |
COMMAND RFs1 Close
|
|
762 |
COMMAND RFs1 ~
|
|
763 |
END_TEST_BLOCK
|
|
764 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1079
|
|
765 |
|
|
766 |
|
|
767 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1080
|
|
768 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1080
|
|
769 |
//! @SYMAPI RFs
|
|
770 |
//! @SYMCreationDate 08/02/2007
|
|
771 |
//! @SYMTestCaseDesc ReleaseReserveAccess() test.Testing with non-mounted drive.
|
|
772 |
//! Uses API elements: ReleaseReserveAccess()
|
|
773 |
//! @SYMTestActions 1. Call Connect().
|
|
774 |
//! 2. Call ReleaseReserveAccess() passing non-mounted drive's number.
|
|
775 |
//! 3. Call Close().
|
|
776 |
//! @SYMTestStatus Implemented
|
|
777 |
//! @SYMTestPriority High
|
|
778 |
//! @SYMTestExpectedResults Function ReleaseReserveAccess() returns KErrNone.
|
|
779 |
//! @SYMTestType CIT
|
|
780 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
781 |
CREATE_OBJECT RFs RFs1
|
|
782 |
COMMAND RFs1 new
|
|
783 |
COMMAND RFs1 Connect
|
|
784 |
COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-1080-001-FileSystemName_command03
|
|
785 |
COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-1080-001-DismountFileSystem_command04
|
|
786 |
COMMAND RFs1 ReleaseReserveAccess PBASE-F32-RFS-PublicApi-1080-001-ReleaseReserveAccess_command05
|
|
787 |
COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-1080-001-MountFileSystem_command06
|
|
788 |
COMMAND RFs1 Close
|
|
789 |
COMMAND RFs1 ~
|
|
790 |
END_TEST_BLOCK
|
|
791 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1080
|
|
792 |
|
|
793 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1027
|
|
794 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1027
|
|
795 |
//! @SYMAPI RFs
|
|
796 |
//! @SYMAuthor Anton Grober
|
|
797 |
//! @SYMCreationDate 02/10/2006
|
|
798 |
//! @SYMTestCaseDesc GetMediaSerialNumber() function test. Passing substed drive's index as parameter.
|
|
799 |
//! Uses API elements: GetMediaSerialNumber().
|
|
800 |
//! @SYMTestActions 1. Call Connect().
|
|
801 |
//! 2. Call Subst() passing empty drive suitable for substing as drive number and "<DRIVE>:\base\" as path where <DRIVE> is a test drive.
|
|
802 |
//! 3. Call GetMediaSerialNumber() passing descriptor reference as first parameter and substed drive number as second.
|
|
803 |
//! 4. Call Subst passing empty drive suitable for substing as drive number and ""(empty descriptor) to unsubst drive.
|
|
804 |
//! 5. Call Close().
|
|
805 |
//! @SYMTestStatus Implemented
|
|
806 |
//! @SYMTestPriority High
|
|
807 |
//! @SYMTestExpectedResults Function GetMediaSerialNumber() returns KErrNotSupported
|
|
808 |
//! @SYMTestType CIT
|
|
809 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
810 |
CREATE_OBJECT RFs RFs1
|
|
811 |
COMMAND RFs1 new
|
|
812 |
COMMAND RFs1 Connect
|
|
813 |
COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-1027-001-FileSystemName_command03
|
|
814 |
COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-1027-001-DismountFileSystem_command04
|
|
815 |
COMMAND RFs1 SetSubst PBASE-F32-RFS-PublicApi-1027-001-SetSubst_command05
|
|
816 |
COMMAND !Error=-5 RFs1 GetMediaSerialNumber PBASE-F32-RFS-PublicApi-1027-001-GetMediaSerialNumber_command06
|
|
817 |
COMMAND RFs1 SetSubst PBASE-F32-RFS-PublicApi-1027-001-SetSubst_command07
|
|
818 |
COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-1027-001-MountFileSystem_command08
|
|
819 |
COMMAND RFs1 Close
|
|
820 |
COMMAND RFs1 ~
|
|
821 |
END_TEST_BLOCK
|
|
822 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1027
|
|
823 |
|
|
824 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1086
|
|
825 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1086
|
|
826 |
//! @SYMAPI RFs
|
|
827 |
//! @SYMTestCaseDesc Function VolumeIOParam() test with non mounted drive.
|
|
828 |
//! Uses API elements: VolumeIOParam().
|
|
829 |
//! @SYMTestActions 1. Call Connect() method.
|
|
830 |
//! 2. Call VolumeIOParam() passing the drive number where is not mounted file system as argument.
|
|
831 |
//! 3. Call Close() method.
|
|
832 |
//! @SYMTestStatus Implemented
|
|
833 |
//! @SYMTestPriority Critical
|
|
834 |
//! @SYMTestExpectedResults Return KErrNotReady (-18).
|
|
835 |
//! @SYMTestType CIT
|
|
836 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini
|
|
837 |
CREATE_OBJECT RFs RFs1
|
|
838 |
COMMAND RFs1 new
|
|
839 |
COMMAND RFs1 Connect
|
|
840 |
COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-1086-001-FileSystemName_command03
|
|
841 |
COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-1086-001-DismountFileSystem_command04
|
|
842 |
COMMAND !Error=-18 RFs1 VolumeIOParam PBASE-F32-RFS-PublicApi-1086-001-VolumeIOParam_command05
|
|
843 |
COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-1086-001-MountFileSystem_command06
|
|
844 |
COMMAND RFs1 Close
|
|
845 |
COMMAND RFs1 ~
|
|
846 |
END_TEST_BLOCK
|
|
847 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1086
|
|
848 |
|
|
849 |
|