os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-RFS-Mounts-PublicApi-ANY.script
First public contribution.
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 "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".
9 // Initial Contributors:
10 // Nokia Corporation - initial contribution.
17 //! @SYMTestSuiteName PBASE-F32-RFS-Mounts-PublicApi-ANY
18 //! @SYMScriptTestEnvironment This test script requires a basic ROM.
19 //! @SYMScriptAuthor Oleg Kuznetsov
20 //! @SYMScriptDescription The test script contains API mounting related tests for RFs functions that don't depend on any special type of test drive.
25 START_TESTCASE PBASE-F32-RFS-PublicApi-0001
26 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0001
28 //! @SYMTestCaseDesc Functions AddFileSystem() and RemoveFileSystem() test.
29 //! Uses API elements: AddFileSystem(), RemoveFileSystem()
30 //! @SYMTestActions 1. Call Connect() method.
31 //! 2. Call RemoveFileSystem() providing the name of the plug-in file system as an argument.
32 //! 3. Call AddFileSystem() providing the file name of a file system plug-in as an argument.
33 //! 4. Call Close() method.
34 //! @SYMTestStatus Implemented
35 //! @SYMTestPriority Critical
36 //! @SYMTestExpectedResults Both AddFileSystem() and RemoveFileSystem() return KErrNone.
38 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini
39 CREATE_OBJECT RFs RFs1
42 COMMAND RFs1 AddFileSystem PBASE-F32-RFS-PublicApi-0001-001-AddFileSystem_command03
43 COMMAND RFs1 RemoveFileSystem PBASE-F32-RFS-PublicApi-0001-001-RemoveFileSystem_command04
47 END_TESTCASE PBASE-F32-RFS-PublicApi-0001
50 START_TESTCASE PBASE-F32-RFS-PublicApi-0003
51 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0003
53 //! @SYMTestCaseDesc Functions AddExtension() and RemoveExtension() test.
54 //! The test requires a file system extension plug-in.
55 //! Uses API elements: AddExtension(), RemoveExtension()
56 //! @SYMTestActions 1. Call Connect() method.
57 //! 2. Call AddExtension() providing the file name of a file system extension plug-in as an argument.
58 //! 3. Call RemoveExtension() providing the name of the plug-in file system extension as an argument.
59 //! 4. Call Close() method.
60 //! @SYMTestStatus Implemented
61 //! @SYMTestPriority Critical
62 //! @SYMTestExpectedResults Both AddExtension() and RemoveExtension() return KErrNone.
64 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini
65 CREATE_OBJECT RFs RFs1
68 COMMAND RFs1 AddExtension PBASE-F32-RFS-PublicApi-0003-001-AddExtension_command03
69 COMMAND RFs1 RemoveExtension PBASE-F32-RFS-PublicApi-0003-001-RemoveExtension_command04
73 END_TESTCASE PBASE-F32-RFS-PublicApi-0003
76 START_TESTCASE PBASE-F32-RFS-PublicApi-0012
77 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0012
79 //! @SYMTestCaseDesc Function SetStartupConfiguration() test.
80 //! Uses API elements: SetStartupConfiguration()
81 //! @SYMTestActions 1. Call Connect().
82 //! 2. Call SetStartupConfiguration() providing ELoaderPriority as a command and 2 NULL pointers.
84 //! @SYMTestStatus Implemented
85 //! @SYMTestPriority High
86 //! @SYMTestExpectedResults Check that SetStartupConfiguration() returns KErrPermissionDenied (-46).
88 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini
89 CREATE_OBJECT RFs RFs1
92 COMMAND !Error=-46 RFs1 SetStartupConfiguration PBASE-F32-RFS-PublicApi-0012-001-SetStartupConfiguration_command03
96 END_TESTCASE PBASE-F32-RFS-PublicApi-0012
99 START_TESTCASE PBASE-F32-RFS-PublicApi-0013
100 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0013
102 //! @SYMTestCaseDesc Function SetStartupConfiguration() test.
103 //! Uses API elements: SetStartupConfiguration()
104 //! @SYMTestActions 1. Call Connect().
105 //! 2. Call SetStartupConfiguration() providing EMaxStartupConfigurationCmd as a command and 2 NULL pointers.
107 //! @SYMTestStatus Implemented
108 //! @SYMTestPriority High
109 //! @SYMTestExpectedResults Check that SetStartupConfiguration() returns KErrPermissionDenied (-46).
111 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini
112 CREATE_OBJECT RFs RFs1
115 COMMAND !Error=-46 RFs1 SetStartupConfiguration PBASE-F32-RFS-PublicApi-0013-001-SetStartupConfiguration_command03
119 END_TESTCASE PBASE-F32-RFS-PublicApi-0013
122 START_TESTCASE PBASE-F32-RFS-PublicApi-0015
123 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0015
125 //! @SYMTestCaseDesc Function StartupInitComplete() test.
126 //! Uses API elements: StartupInitComplete()
127 //! @SYMTestActions 1. Call Connect().
128 //! 2. Call StartupInitComplete().
130 //! @SYMTestStatus Implemented
131 //! @SYMTestPriority High
132 //! @SYMTestExpectedResults Check that StartupInitComplete() returns KErrAlreadyExists (-11).
134 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini
135 CREATE_OBJECT RFs RFs1
138 COMMAND !AsyncError=-11 RFs1 StartupInitComplete
143 END_TESTCASE PBASE-F32-RFS-PublicApi-0015
146 START_TESTCASE PBASE-F32-RFS-PublicApi-0016
147 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0016
149 //! @SYMTestCaseDesc Function SetLocalDriveMapping() test.
150 //! Uses API elements: SetLocalDriveMapping()
151 //! @SYMTestActions 1. Call Connect().
152 //! 2. Call SetLocalDriveMapping() with EWriteMappingsNoSet operation and 2 drives EDriveA and EDriveB set for indices 0 and 1 correspondingly.
154 //! @SYMTestStatus Implemented
155 //! @SYMTestPriority High
156 //! @SYMTestExpectedResults Check that SetLocalDriveMapping() returns KErrAccessDenied (-21).
158 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini
159 CREATE_OBJECT RFs RFs1
162 COMMAND !Error=-21 RFs1 SetLocalDriveMapping PBASE-F32-RFS-PublicApi-0016-001-SetLocalDriveMapping_command03
166 END_TESTCASE PBASE-F32-RFS-PublicApi-0016
169 START_TESTCASE PBASE-F32-RFS-PublicApi-0020
170 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0020
172 //! @SYMTestCaseDesc Functions AddFileSystem() test with incorrect file name of file system.
173 //! Uses API elements: AddFileSystem().
174 //! @SYMTestActions 1. Call Connect() method.
175 //! 2. Call AddFileSystem() providing the incorrect file name of a file system.
176 //! 3. Call Close() method.
177 //! @SYMTestStatus Implemented
178 //! @SYMTestPriority High
179 //! @SYMTestExpectedResults KErrNotFound
181 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini
182 CREATE_OBJECT RFs RFs1
185 COMMAND !Error=-1 RFs1 AddFileSystem PBASE-F32-RFS-PublicApi-0020-001-AddFileSystem_command03
189 END_TESTCASE PBASE-F32-RFS-PublicApi-0020
192 START_TESTCASE PBASE-F32-RFS-PublicApi-0021
193 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0021
195 //! @SYMTestCaseDesc Functions AddFileSystem() test with adding file system that already added.
196 //! Uses API elements: AddFileSystem().
197 //! The test requires a file system plug-in.
198 //! @SYMTestActions 1. Call Connect() method.
199 //! 2. Call AddFileSystem() providing the name of a file system that already added.
200 //! 3. Call Close() method.
201 //! @SYMTestStatus Implemented
202 //! @SYMTestPriority High
203 //! @SYMTestExpectedResults KErrAlreadyExists
205 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini
206 CREATE_OBJECT RFs RFs1
209 COMMAND !Error=-11 RFs1 AddFileSystem PBASE-F32-RFS-PublicApi-0021-001-AddFileSystem_command03
213 END_TESTCASE PBASE-F32-RFS-PublicApi-0021
216 START_TESTCASE PBASE-F32-RFS-PublicApi-0022
217 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0022
219 //! @SYMTestCaseDesc Functions RemoveFileSystem() test, with incorrect file system name.
220 //! Uses API elements: RemoveFileSystem().
221 //! @SYMTestActions 1. Call Connect() method.
222 //! 2. Call RemoveFileSystem() providing the incorrect file system name.
223 //! 3. Call Close() method.
224 //! @SYMTestStatus Implemented
225 //! @SYMTestPriority High
226 //! @SYMTestExpectedResults KErrNotFound
228 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini
229 CREATE_OBJECT RFs RFs1
232 COMMAND !Error=-1 RFs1 RemoveFileSystem PBASE-F32-RFS-PublicApi-0022-001-RemoveFileSystem_command03
236 END_TESTCASE PBASE-F32-RFS-PublicApi-0022
239 START_TESTCASE PBASE-F32-RFS-PublicApi-0024
240 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0024
242 //! @SYMTestCaseDesc Functions MountFileSystem(const TDesC &aFileSystemName, TInt aDrive) test with negative drive number.
243 //! Uses API elements: MountFileSystem().
244 //! @SYMTestActions 1. Call Connect() method.
245 //! 2. Call MountFileSystem() providing the file system name and negative drive number -11.
246 //! 3. Call Close() method.
247 //! @SYMTestStatus Implemented
248 //! @SYMTestPriority High
249 //! @SYMTestExpectedResults KErrBadName.
251 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini
252 CREATE_OBJECT RFs RFs1
255 COMMAND !Error=-28 RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0024-001-MountFileSystem_command03
259 END_TESTCASE PBASE-F32-RFS-PublicApi-0024
262 START_TESTCASE PBASE-F32-RFS-PublicApi-0027
263 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0027
265 //! @SYMTestCaseDesc Functions MountFileSystem(const TDesC &aFileSystemName, TInt aDrive, TBool aIsSync) test with negative drive number.
266 //! Uses API elements: MountFileSystem().
267 //! @SYMTestActions 1. Call Connect() method.
268 //! 2. Call MountFileSystem() providing the file system name and negative drive number -11 and ETrue as a synchronization parameter.
269 //! 3. Call Close() method.
270 //! @SYMTestStatus Implemented
271 //! @SYMTestPriority High
272 //! @SYMTestExpectedResults KErrBadName.
274 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini
275 CREATE_OBJECT RFs RFs1
278 COMMAND !Error=-28 RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0027-001-MountFileSystem_command03
282 END_TESTCASE PBASE-F32-RFS-PublicApi-0027
285 START_TESTCASE PBASE-F32-RFS-PublicApi-0030
286 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0030
288 //! @SYMTestCaseDesc Functions MountFileSystem(const TDesC &aFileSystemName, TInt aDrive, TBool aIsSync) test with negative drive number.
289 //! Uses API elements: MountFileSystem().
290 //! @SYMTestActions 1. Call Connect() method.
291 //! 2. Call MountFileSystem() providing the file system name and negative drive number -11 and EFalse as a synchronization parameter.
292 //! 3. Call Close() method.
293 //! @SYMTestStatus Implemented
294 //! @SYMTestPriority High
295 //! @SYMTestExpectedResults KErrBadName.
297 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini
298 CREATE_OBJECT RFs RFs1
301 COMMAND !Error=-28 RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0030-001-MountFileSystem_command03
305 END_TESTCASE PBASE-F32-RFS-PublicApi-0030
308 START_TESTCASE PBASE-F32-RFS-PublicApi-0033
309 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0033
311 //! @SYMTestCaseDesc Functions MountFileSystemAndScan(const TDesC &aFileSystemName, TInt aDrive, TBool &aIsMountSuccess) test with negative drive number.
312 //! Uses API elements: MountFileSystemAndScan().
313 //! @SYMTestActions 1. Call Connect() method.
314 //! 2. Call MountFileSystemAndScan() providing the "Fat" file system name and negative drive number -11.
315 //! 3. Call Close() method.
316 //! @SYMTestStatus Implemented
317 //! @SYMTestPriority High
318 //! @SYMTestExpectedResults KErrBadName
320 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini
321 CREATE_OBJECT RFs RFs1
324 COMMAND !Error=-28 RFs1 MountFileSystemAndScan PBASE-F32-RFS-PublicApi-0033-001-MountFileSystemAndScan_command03
328 END_TESTCASE PBASE-F32-RFS-PublicApi-0033
331 START_TESTCASE PBASE-F32-RFS-PublicApi-0039
332 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0039
334 //! @SYMTestCaseDesc Functions DismountFileSystem() test with negative drive number.
335 //! Uses API elements: DismountFileSystem().
336 //! @SYMTestActions 1. Call Connect() method.
337 //! 2. Call DismountFileSystem() providing the file system name and negative drive number -11.
338 //! 3. Call Close() method.
339 //! @SYMTestStatus Implemented
340 //! @SYMTestPriority High
341 //! @SYMTestExpectedResults KErrBadName, bad name of drive
343 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini
344 CREATE_OBJECT RFs RFs1
347 COMMAND !Error=-28 RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0039-001-DismountFileSystem_command03
351 END_TESTCASE PBASE-F32-RFS-PublicApi-0039
354 START_TESTCASE PBASE-F32-RFS-PublicApi-0042
355 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0042
357 //! @SYMTestCaseDesc Functions FileSystemName() test with negative drive number.
358 //! Uses API elements: FileSystemName().
359 //! @SYMTestActions 1. Call Connect() method.
360 //! 2. Call FileSystemName() providing negative drive number(-11).
361 //! 3. Call Close() method.
362 //! @SYMTestStatus Implemented
363 //! @SYMTestPriority High
364 //! @SYMTestExpectedResults KErrArgument
366 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini
367 CREATE_OBJECT RFs RFs1
370 COMMAND !Error=-6 RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0042-001-FileSystemName_command03
374 END_TESTCASE PBASE-F32-RFS-PublicApi-0042
377 START_TESTCASE PBASE-F32-RFS-PublicApi-0044
378 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0044
380 //! @SYMTestCaseDesc Functions AddExtension() test with incorrect file system extension name.
381 //! Uses API elements: AddExtension().
382 //! @SYMTestActions 1. Call Connect() method.
383 //! 2. Call AddExtension() providing bad extension file name.
384 //! 3. Call Close() method.
385 //! @SYMTestStatus Implemented
386 //! @SYMTestPriority High
387 //! @SYMTestExpectedResults KErrNotFound
389 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini
390 CREATE_OBJECT RFs RFs1
393 COMMAND !Error=-1 RFs1 AddExtension PBASE-F32-RFS-PublicApi-0044-001-AddExtension_command03
397 END_TESTCASE PBASE-F32-RFS-PublicApi-0044
400 START_TESTCASE PBASE-F32-RFS-PublicApi-0045
401 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0045
403 //! @SYMTestCaseDesc Functions AddExtension() test, add file system extension twice.
404 //! Uses API elements: AddExtension(), RemoveExtension().
405 //! The test requires a file system extension plug-in.
406 //! @SYMTestActions 1. Call Connect() method.
407 //! 2. Call AddExtension() providing plug-in extension name.
408 //! 3. Call AddExtension() providing plug-in extension name.
409 //! 4. Call RemoveExtension() providing plug-in extension name.
410 //! 5. Call Close() method.
411 //! @SYMTestStatus Implemented
412 //! @SYMTestPriority High
413 //! @SYMTestExpectedResults KErrAlreadyExists
415 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini
416 CREATE_OBJECT RFs RFs1
419 COMMAND RFs1 AddExtension PBASE-F32-RFS-PublicApi-0045-001-AddExtension_command03
420 COMMAND !Error=-11 RFs1 AddExtension PBASE-F32-RFS-PublicApi-0045-001-AddExtension_command04
421 COMMAND RFs1 RemoveExtension PBASE-F32-RFS-PublicApi-0045-001-RemoveExtension_command05
425 END_TESTCASE PBASE-F32-RFS-PublicApi-0045
428 START_TESTCASE PBASE-F32-RFS-PublicApi-0047
429 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0047
431 //! @SYMTestCaseDesc Functions MountExtension() test with negative drive number.
432 //! Uses API elements: MountExtension(), AddExtension(), RemoveExtension().
433 //! The test requires a file system extension plug-in.
434 //! @SYMTestActions 1. Call Connect() method.
435 //! 2. Call AddExtension() providing plug-in extension name.
436 //! 3. Call MountExtension() providing plug-in extension name and negative drive number (-11).
437 //! 4. Call RemoveExtension() providing plug-in extension name.
438 //! 5. Call Close() method.
439 //! @SYMTestStatus Implemented
440 //! @SYMTestPriority High
441 //! @SYMTestExpectedResults KErrBadName
443 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini
444 CREATE_OBJECT RFs RFs1
447 COMMAND RFs1 AddExtension PBASE-F32-RFS-PublicApi-0047-001-AddExtension_command03
448 COMMAND !Error=-28 RFs1 MountExtension PBASE-F32-RFS-PublicApi-0047-001-MountExtension_command04
449 COMMAND RFs1 RemoveExtension PBASE-F32-RFS-PublicApi-0047-001-RemoveExtension_command05
453 END_TESTCASE PBASE-F32-RFS-PublicApi-0047
456 START_TESTCASE PBASE-F32-RFS-PublicApi-0051
457 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0051
459 //! @SYMTestCaseDesc Functions DismountExtension() test with negative drive number.
460 //! Uses API elements: DismountExtension(), AddExtension(), RemoveExtension().
461 //! The test requires a file system extension plug-in.
462 //! @SYMTestActions 1. Call Connect() method.
463 //! 2. Call AddExtension() providing plug-in extension name.
464 //! 3. Call DismountExtension() providing plug-in extension name and negative drive number (-11).
465 //! 4. Call RemoveExtension() providing plug-in extension name.
466 //! 5. Call Close() method.
467 //! @SYMTestStatus Implemented
468 //! @SYMTestPriority High
469 //! @SYMTestExpectedResults KErrBadName
471 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini
472 CREATE_OBJECT RFs RFs1
475 COMMAND RFs1 AddExtension PBASE-F32-RFS-PublicApi-0051-001-AddExtension_command03
476 COMMAND !Error=-28 RFs1 DismountExtension PBASE-F32-RFS-PublicApi-0051-001-DismountExtension_command04
477 COMMAND RFs1 RemoveExtension PBASE-F32-RFS-PublicApi-0051-001-RemoveExtension_command05
481 END_TESTCASE PBASE-F32-RFS-PublicApi-0051
484 START_TESTCASE PBASE-F32-RFS-PublicApi-0053
485 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0053
487 //! @SYMTestCaseDesc Functions RemoveExtension() test with incorrect file system extension name.
488 //! Uses API elements: RemoveExtension().
489 //! @SYMTestActions 1. Call Connect() method.
490 //! 2. Call RemoveExtension() providing bad extension name.
491 //! 3. Call Close() method.
492 //! @SYMTestStatus Implemented
493 //! @SYMTestPriority High
494 //! @SYMTestExpectedResults KErrNotFound
496 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini
497 CREATE_OBJECT RFs RFs1
500 COMMAND !Error=-1 RFs1 RemoveExtension PBASE-F32-RFS-PublicApi-0053-001-RemoveExtension_command03
504 END_TESTCASE PBASE-F32-RFS-PublicApi-0053
507 START_TESTCASE PBASE-F32-RFS-PublicApi-0055
508 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0055
510 //! @SYMTestCaseDesc Functions ExtensionName() test with negative drive number.
511 //! Uses API elements: ExtensionName().
512 //! @SYMTestActions 1. Call Connect() method.
513 //! 2. Call ExtensionName() providing negative drive number and first position (0).
514 //! 3. Call Close() method.
515 //! @SYMTestStatus Implemented
516 //! @SYMTestPriority High
517 //! @SYMTestExpectedResults KErrBadName
519 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini
520 CREATE_OBJECT RFs RFs1
523 COMMAND !Error=-28 RFs1 ExtensionName PBASE-F32-RFS-PublicApi-0055-001-ExtensionName_command03
527 END_TESTCASE PBASE-F32-RFS-PublicApi-0055
530 START_TESTCASE PBASE-F32-RFS-PublicApi-0056
531 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0056
533 //! @SYMTestCaseDesc Functions RemountDrive() test with negative drive number.
534 //! Uses API elements: RemountDrive().
535 //! @SYMTestActions 1. Call Connect() method.
536 //! 2. Call RemountDrive() providing negative drive number and flag 0x00000001 (1).
537 //! 3. Call Close() method.
538 //! @SYMTestStatus Implemented
539 //! @SYMTestPriority High
540 //! @SYMTestExpectedResults KErrBadName
542 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini
543 CREATE_OBJECT RFs RFs1
546 COMMAND !Error=-28 RFs1 RemountDrive PBASE-F32-RFS-PublicApi-0056-001-RemountDrive_command03
550 END_TESTCASE PBASE-F32-RFS-PublicApi-0056
553 START_TESTCASE PBASE-F32-RFS-PublicApi-0058
554 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0058
556 //! @SYMTestCaseDesc Functions NotifyDismount() test with negative drive number.
557 //! Uses API elements: NotifyDismount().
558 //! @SYMTestActions 1. Call Connect() method.
559 //! 2. Call NotifyDismount() providing negative drive number and mode EFsDismountForceDismount and starts waiting for a notification on the background.
560 //! 3. Call Close() method.
561 //! @SYMTestStatus Implemented
562 //! @SYMTestPriority High
563 //! @SYMTestExpectedResults KErrBadName
565 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini
566 CREATE_OBJECT RFs RFs1
569 COMMAND !AsyncError=-28 RFs1 NotifyDismount PBASE-F32-RFS-PublicApi-0058-001-NotifyDismount_command03
574 END_TESTCASE PBASE-F32-RFS-PublicApi-0058
577 START_TESTCASE PBASE-F32-RFS-PublicApi-0062
578 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0062
580 //! @SYMTestCaseDesc Functions AllowDismount() test with negative drive number.
581 //! Uses API elements: AllowDismount().
582 //! @SYMTestActions 1. Call Connect() method.
583 //! 2. Call AllowDismount() providing negative drive number.
584 //! 3. Call Close() method.
585 //! @SYMTestStatus Implemented
586 //! @SYMTestPriority High
587 //! @SYMTestExpectedResults KErrBadName
589 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini
590 CREATE_OBJECT RFs RFs1
593 COMMAND !Error=-28 RFs1 AllowDismount PBASE-F32-RFS-PublicApi-0062-001-AllowDismount_command03
597 END_TESTCASE PBASE-F32-RFS-PublicApi-0062
599 START_TESTCASE PBASE-F32-RFS-PublicApi-0073
600 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0073
602 //! @SYMTestCaseDesc Function FileSystemSubType() test with negative drive number.
603 //! Uses API elements: FileSystemSubType().
604 //! @SYMTestActions 1. Call Connect() method.
605 //! 2. Call FileSystemSubType() passing the negative drive number as argument.
606 //! 3. Call Close() method.
607 //! @SYMTestStatus Implemented
608 //! @SYMTestPriority Critical
609 //! @SYMTestExpectedResults Return KErrArgument (-6).
611 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini
612 CREATE_OBJECT RFs RFs1
615 COMMAND !Error=-6 RFs1 FileSystemSubType PBASE-F32-RFS-PublicApi-0073-001-FileSystemSubType_command03
619 END_TESTCASE PBASE-F32-RFS-PublicApi-0073