os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-RFS-Mounts-PublicApi-RAM.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-RAM
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 perform operations on a RAM drive.
25 START_TESTCASE PBASE-F32-RFS-PublicApi-0002
26 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0002
28 //! @SYMTestCaseDesc Functions MountFileSystem() (MountFileSystem(const TDesC& aFileSystemName,TInt aDrive)
29 //! and MountFileSystem(const TDesC& aFileSystemName,TInt aDrive, TBool aIsSync) versions) and DismountFileSystem() test.
30 //! The test assumes that the tested file system is already mounted onto the tested drive.
31 //! Uses API elements: MountFileSystem(), DismountFileSystem(), FileSystemName().
32 //! @SYMTestActions 1. Call Connect() method.
33 //! 2. Call FileSystemName() for a drive where a file system was mounted.
34 //! 3. Call DismountFileSystem() providing the file system name and the drive number.
35 //! 4. Call MountFileSystem() passing the file system name, an enabled free drive number.
36 //! 5. Call DismountFileSystem() providing the name of the file system and the drive number.
37 //! 6. Call MountFileSystem() passing the file system name, an enabled free drive number and ETrue as a synchronization parameter.
38 //! 7. Call DismountFileSystem() providing the name of the file system and the drive number.
39 //! 8. Call MountFileSystem() passing the file system name, an enabled free drive number and EFalse as a synchronization parameter.
40 //! 9. Call Close() method.
41 //! @SYMTestStatus Implemented
42 //! @SYMTestPriority Critical
43 //! @SYMTestExpectedResults All MountFileSystem() and DismountFileSystem() calls return KErrNone.
45 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
46 CREATE_OBJECT RFs RFs1
49 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0002-001-FileSystemName_command03
50 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0002-001-DismountFileSystem_command04
51 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0002-001-MountFileSystem_command05
52 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0002-001-DismountFileSystem_command06
53 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0002-001-MountFileSystem_command07
54 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0002-001-DismountFileSystem_command08
55 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0002-001-MountFileSystem_command09
59 END_TESTCASE PBASE-F32-RFS-PublicApi-0002
62 START_TESTCASE PBASE-F32-RFS-PublicApi-0004
63 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0004
65 //! @SYMTestCaseDesc Functions MountFileSystem() (MountFileSystem(const TDesC& aFileSystemName,const TDesC& aExtensionName,TInt aDrive)
66 //! and MountFileSystem(const TDesC& aFileSystemName,const TDesC& aExtensionName,TInt aDrive, TBool aIsSync) versions) test.
67 //! The test assumes that the tested file system is already mounted onto the tested drive.
68 //! The test requires a file system extension plug-in.
69 //! Uses API elements: AddExtension(), MountFileSystem(), DismountFileSystem(), RemoveExtension(), FileSystemName().
70 //! @SYMTestActions 1. Call Connect() method.
71 //! 2. Call FileSystemName() for a drive where a file system was mounted.
72 //! 3. Call DismountFileSystem() providing the file system name and the drive number.
73 //! 4. Call AddExtension() providing the file name of a file system extension plug-in as an argument.
74 //! 5. Call MountFileSystem() passing the file system name, plug-in extension name and an enabled free drive number.
75 //! 6. Call DismountFileSystem() providing the file system name and the drive number.
76 //! 7. Call MountFileSystem() passing the file system name, plug-in extension name, an enabled free drive number and ETrue as a
77 //! synchronization parameter.
78 //! 8. Call DismountFileSystem() providing the file system name and the drive number.
79 //! 9. Call MountFileSystem() passing the file system name, plug-in extension name, an enabled free drive number and EFalse
80 //! as a synchronization parameter.
81 //! 10. Call DismountFileSystem() providing the file system name and the drive number.
82 //! 11. Call RemoveExtension() providing the name of the plug-in file system extension as an argument.
83 //! 12. Call MountFileSystem() passing the file system name, the drive number and EFalse as a synchronization parameter.
84 //! 13. Call Close() method.
85 //! @SYMTestStatus Implemented
86 //! @SYMTestPriority Critical
87 //! @SYMTestExpectedResults All MountFileSystem() and DismountFileSystem() calls return KErrNone.
89 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
90 CREATE_OBJECT RFs RFs1
93 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0004-001-FileSystemName_command03
94 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0004-001-DismountFileSystem_command04
95 COMMAND RFs1 AddExtension PBASE-F32-RFS-PublicApi-0004-001-AddExtension_command05
96 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0004-001-MountFileSystem_command06
97 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0004-001-DismountFileSystem_command07
98 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0004-001-MountFileSystem_command08
99 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0004-001-DismountFileSystem_command09
100 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0004-001-MountFileSystem_command10
101 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0004-001-DismountFileSystem_command11
102 COMMAND RFs1 RemoveExtension PBASE-F32-RFS-PublicApi-0004-001-RemoveExtension_command12
103 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0004-001-MountFileSystem_command13
107 END_TESTCASE PBASE-F32-RFS-PublicApi-0004
110 START_TESTCASE PBASE-F32-RFS-PublicApi-0005
111 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0005
113 //! @SYMTestCaseDesc Functions MountExtension() and DismountExtension() test. The test requires a file system extension plug-in.
114 //! The test assumes that the tested file system is already mounted onto the tested drive.
115 //! Uses API elements: AddExtension(), MountExtension(), DismountExtension(), RemoveExtension().
116 //! @SYMTestActions 1. Call Connect() method.
117 //! 2. Call AddExtension() providing the file name of a file system extension plug-in as an argument.
118 //! 3. Call MountExtension() passing the plug-in extension name and an enabled free drive number with mounted file system.
119 //! 4. Call DismountExtension() providing the name of the plug-in extension and the drive number.
120 //! 5. Call RemoveExtension() providing the name of the plug-in file system extension as an argument.
121 //! 6. Call Close() method.
122 //! @SYMTestStatus Implemented
123 //! @SYMTestPriority Critical
124 //! @SYMTestExpectedResults Both MountExtension() and DismountExtension() return KErrNone.
126 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
127 CREATE_OBJECT RFs RFs1
130 COMMAND RFs1 AddExtension PBASE-F32-RFS-PublicApi-0005-001-AddExtension_command03
131 COMMAND RFs1 MountExtension PBASE-F32-RFS-PublicApi-0005-001-MountExtension_command04
132 COMMAND RFs1 DismountExtension PBASE-F32-RFS-PublicApi-0005-001-DismountExtension_command05
133 COMMAND RFs1 RemoveExtension PBASE-F32-RFS-PublicApi-0005-001-RemoveExtension_command06
137 END_TESTCASE PBASE-F32-RFS-PublicApi-0005
140 START_TESTCASE PBASE-F32-RFS-PublicApi-0006
141 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0006
143 //! @SYMTestCaseDesc Function MountFileSystemAndScan() test.
144 //! The test assumes that the tested file system is already mounted onto the tested drive.
145 //! The test requires a file system extension plug-in.
146 //! Uses API elements: AddExtension(), RemoveExtension(), MountFileSystemAndScan(), DismountFileSystem(), FileSystemName().
147 //! @SYMTestActions 1. Call Connect() method.
148 //! 2. Call FileSystemName() for a drive where a file system was mounted.
149 //! 3. Call DismountFileSystem() providing the file system name and the drive number.
150 //! 4. Call AddExtension() providing the file name of a file system extension plug-in as an argument.
151 //! 5. Call MountFileSystemAndScan() passing the file system name and drive number.
152 //! Check that on return aIsMountSuccess parameter is set to ETrue.
153 //! 6. Call DismountFileSystem() providing the name of the file system and the drive number.
154 //! 7. Call MountFileSystemAndScan() passing the file system name , plug-in extension name and drive number.
155 //! Check that on return aIsMountSuccess parameter is set to ETrue.
156 //! 8. Call DismountFileSystem() providing the name of the file system and the drive number.
157 //! 9. Call RemoveExtension() providing the name of the file system extension as an argument.
158 //! 10. Call MountFileSystem() passing the file system name and the drive number.
159 //! 11. Call Close() method.
160 //! @SYMTestStatus Implemented
161 //! @SYMTestPriority Critical
162 //! @SYMTestExpectedResults All MountFileSystemAndScan() calls return KErrNone and set output argument aIsMountSuccess to ETrue on return.
164 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
165 CREATE_OBJECT RFs RFs1
168 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0006-001-FileSystemName_command03
169 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0006-001-DismountFileSystem_command04
170 COMMAND RFs1 AddExtension PBASE-F32-RFS-PublicApi-0006-001-AddExtension_command05
171 COMMAND RFs1 MountFileSystemAndScan PBASE-F32-RFS-PublicApi-0006-001-MountFileSystemAndScan_command06
172 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0006-001-DismountFileSystem_command07
173 COMMAND RFs1 MountFileSystemAndScan PBASE-F32-RFS-PublicApi-0006-001-MountFileSystemAndScan_command08
174 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0006-001-DismountFileSystem_command09
175 COMMAND RFs1 RemoveExtension PBASE-F32-RFS-PublicApi-0006-001-RemoveExtension_command10
176 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0006-001-MountFileSystem_command11
180 END_TESTCASE PBASE-F32-RFS-PublicApi-0006
183 START_TESTCASE PBASE-F32-RFS-PublicApi-0008
184 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0008
186 //! @SYMTestCaseDesc Function ExtensionName() test. The test requires a file system extension plug-in.
187 //! The test assumes that the tested file system is already mounted onto the tested drive.
188 //! Uses API elements: AddExtension(), MountExtension(), ExtensionName(), RemoveExtension().
189 //! @SYMTestActions 1. Call Connect() method.
190 //! 2. Call AddExtension() providing the file name of a file system extension plug-in as an argument.
191 //! 3. Call MountExtension() passing the plug-in extension name and an enabled free drive number.
192 //! 4. Call ExtensionName() passing the drive number as argument and position 0. Check that aExtensionName parameter
193 //! is set to the same as a real name of the plug-in extension on return.
194 //! 5. Call RemoveExtension() providing the name of the plug-in file system extension as an argument.
195 //! 6. Call Close() method.
196 //! @SYMTestStatus Implemented
197 //! @SYMTestPriority Critical
198 //! @SYMTestExpectedResults ExtensionName() returns KErrNone and the real name of the extension through the aExtensionName output argument.
200 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
201 CREATE_OBJECT RFs RFs1
204 COMMAND RFs1 AddExtension PBASE-F32-RFS-PublicApi-0008-001-AddExtension_command03
205 COMMAND RFs1 MountExtension PBASE-F32-RFS-PublicApi-0008-001-MountExtension_command04
206 COMMAND RFs1 ExtensionName PBASE-F32-RFS-PublicApi-0008-001-ExtensionName_command05
207 COMMAND RFs1 DismountExtension PBASE-F32-RFS-PublicApi-0008-001-DismountExtension_command06
208 COMMAND RFs1 RemoveExtension PBASE-F32-RFS-PublicApi-0008-001-RemoveExtension_command07
212 END_TESTCASE PBASE-F32-RFS-PublicApi-0008
215 START_TESTCASE PBASE-F32-RFS-PublicApi-0009
216 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0009
218 //! @SYMTestCaseDesc Function RemountDrive() test.
219 //! The test assumes that the tested file system is already mounted onto the tested drive.
220 //! Uses API elements: RemountDrive().
221 //! @SYMTestActions 1. Call Connect() method.
222 //! 2. Call RemountDrive() passing the drive (with a file system on) and flags 0 as arguments.
223 //! 3. Call Close() method.
224 //! @SYMTestStatus Implemented
225 //! @SYMTestPriority Critical
226 //! @SYMTestExpectedResults RemountDrive() returns KErrNone.
228 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
229 CREATE_OBJECT RFs RFs1
232 COMMAND RFs1 RemountDrive PBASE-F32-RFS-PublicApi-0009-001-RemountDrive_command03
236 END_TESTCASE PBASE-F32-RFS-PublicApi-0009
239 START_TESTCASE PBASE-F32-RFS-PublicApi-0010
240 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0010
242 //! @SYMTestCaseDesc Function NotifyDismount() test.
243 //! The test assumes that the tested file system is already mounted onto the tested drive.
244 //! Uses API elements: NotifyDismount(), MountFileSystem(), DismountFileSystem(), FileSystemName().
245 //! @SYMTestActions 1. Create a RFs session and call it's Connect() function.
246 //! 2. Create another RFs session and call it's Connect() function.
247 //! 3. Call first session's FileSystemName() for a drive where a file system was mounted.
248 //! 4. Call second session's NotifyDismount() providing the drive number and mode value EFsDismountRegisterClient and starts waiting for a notification on the background.
249 //! 5. Call first session's NotifyDismount() providing the drive number and mode value EFsDismountNotifyClients and starts waiting for a notification on the background.
250 //! 6. Call second session's AllowDismount() providing the drive number.
251 //! 7. Call first session's MountFileSystem() passing the file system name and the drive number to restore the file system on the drive.
252 //! 8. Call Close() of both sessions.
253 //! @SYMTestStatus Implemented
254 //! @SYMTestPriority Critical
255 //! @SYMTestExpectedResults See actions.
257 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
258 CREATE_OBJECT RFs RFs1
259 CREATE_OBJECT RFs RFs2
262 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0010-001-FileSystemName_command03
265 COMMAND RFs2 NotifyDismount PBASE-F32-RFS-PublicApi-0010-001-NotifyDismount_command07
266 COMMAND RFs1 NotifyDismount PBASE-F32-RFS-PublicApi-0010-001-NotifyDismount_command09
267 COMMAND RFs2 AllowDismount PBASE-F32-RFS-PublicApi-0010-001-AllowDismount_command12
273 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0010-001-MountFileSystem_command17
277 END_TESTCASE PBASE-F32-RFS-PublicApi-0010
280 START_TESTCASE PBASE-F32-RFS-PublicApi-0011
281 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0011
283 //! @SYMTestCaseDesc Function NotifyDismountCancel(TRequestStatus& aStat) test.
284 //! The test assumes that the tested file system is already mounted onto the tested drive.
285 //! Uses API elements: NotifyDismountCancel(), NotifyDismount(), MountFileSystem(), FileSystemName().
286 //! @SYMTestActions 1. Call Connect() method.
287 //! 2. Call FileSystemName() for a drive where a file system was mounted.
288 //! 3. Call NotifyDismount() providing the drive number and mode value EFsDismountRegisterClient and starts waiting for a notification on the background.
289 //! 4. Call NotifyDismountCancel() providing the same TRequestStatus as in previous call.
290 //! 5. Call NotifyDismount() providing the drive number and mode value EFsDismountNotifyClients and starts waiting for a notification on the background.
291 //! 6. Call MountFileSystem() passing the file system name and the drive number.
292 //! 7. Call Close() of both sessions.
293 //! @SYMTestStatus Implemented
294 //! @SYMTestPriority Critical
295 //! @SYMTestExpectedResults KErrCancel(-3)
297 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
298 CREATE_OBJECT RFs RFs1
301 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0011-001-FileSystemName_command03
302 COMMAND !AsyncError=-3 RFs1 NotifyDismount PBASE-F32-RFS-PublicApi-0011-001-NotifyDismount_command04
303 COMMAND RFs1 NotifyDismountCancel PBASE-F32-RFS-PublicApi-0011-001-NotifyDismountCancel_command05
305 COMMAND RFs1 NotifyDismount PBASE-F32-RFS-PublicApi-0011-001-NotifyDismount_command07
307 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0011-001-MountFileSystem_command09
311 END_TESTCASE PBASE-F32-RFS-PublicApi-0011
314 START_TESTCASE PBASE-F32-RFS-PublicApi-0017
315 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0017
317 //! @SYMTestCaseDesc Function SwapFileSystem() test.
318 //! The test assumes that the tested file system is already mounted onto the tested drive.
319 //! Uses API elements: SwapFileSystem()
320 //! @SYMTestActions 1. Call Connect() method.
321 //! 2. Call FileSystemName() for a drive where a file system was mounted.
322 //! 3. Call DismountFileSystem() providing the file system name and the drive number.
323 //! 4. Call MountFileSystem() passing the file system name, an enabled free drive number and ETrue as a synchronization parameter.
324 //! 5. Call SwapFileSystem() passing file system name, the same file system name again and the drive number.
325 //! 6. Call Close() method.
326 //! @SYMTestStatus Implemented
327 //! @SYMTestPriority Critical
328 //! @SYMTestExpectedResults SwapFileSystem() returns KErrNone.
330 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
331 CREATE_OBJECT RFs RFs1
334 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0017-001-FileSystemName_command03
335 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0017-001-DismountFileSystem_command04
336 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0017-001-MountFileSystem_command05
337 COMMAND RFs1 SwapFileSystem PBASE-F32-RFS-PublicApi-0017-001-SwapFileSystem_command06
341 END_TESTCASE PBASE-F32-RFS-PublicApi-0017
344 START_TESTCASE PBASE-F32-RFS-PublicApi-0018
345 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0018
347 //! @SYMTestCaseDesc Function NotifyDismountCancel() test.
348 //! The test assumes that the tested file system is already mounted onto the tested drive.
349 //! Uses API elements: NotifyDismountCancel(), NotifyDismount(), MountFileSystem(), DismountFileSystem()
350 //! @SYMTestActions 1. Create a RFs session and call it's Connect() function.
351 //! 2. Call NotifyDismount() providing the drive number and mode value EFsDismountRegisterClient and starts waiting for a notification on the background.
352 //! 3. Call NotifyDismount() providing the drive number and mode value EFsDismountNotifyClients and starts waiting for a notification on the background.
353 //! 4. Call NotifyDismountCancel() without arguments(for all requests) .
354 //! 5. Call Close() method.
355 //! @SYMTestStatus Implemented
356 //! @SYMTestPriority Critical
357 //! @SYMTestExpectedResults KErrCancel(-3)
359 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
360 CREATE_OBJECT RFs RFs1
363 COMMAND RFs1 NotifyDismount PBASE-F32-RFS-PublicApi-0018-001-NotifyDismount_command03
364 COMMAND !AsyncError=-3 RFs1 NotifyDismount PBASE-F32-RFS-PublicApi-0018-001-NotifyDismount_command04
365 COMMAND RFs1 NotifyDismountCancel PBASE-F32-RFS-PublicApi-0018-001-NotifyDismountCancel_command05
370 END_TESTCASE PBASE-F32-RFS-PublicApi-0018
373 START_TESTCASE PBASE-F32-RFS-PublicApi-0025
374 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0025
376 //! @SYMTestCaseDesc Functions MountFileSystem(const TDesC &aFileSystemName, TInt aDrive) test with incorrect file system name.
377 //! Uses API elements: MountFileSystem().
378 //! @SYMTestActions 1. Call Connect() method.
379 //! 2. Call MountFileSystem() providing the incorrect file system name and drive for mounts where nothing mounted.
380 //! 3. Call Close() method.
381 //! @SYMTestStatus Implemented
382 //! @SYMTestPriority High
383 //! @SYMTestExpectedResults KErrNotFound.
385 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
386 CREATE_OBJECT RFs RFs1
389 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0025-001-FileSystemName_command03
390 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0025-001-DismountFileSystem_command04
391 COMMAND !Error=-1 RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0025-001-MountFileSystem_command05
392 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0025-001-MountFileSystem_command06
396 END_TESTCASE PBASE-F32-RFS-PublicApi-0025
399 START_TESTCASE PBASE-F32-RFS-PublicApi-0026
400 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0026
402 //! @SYMTestCaseDesc Functions MountFileSystem(const TDesC &aFileSystemName, TInt aDrive) test, mount file system where already mounted one.
403 //! Uses API elements: MountFileSystem().
404 //! The test assumes that the tested file system is already mounted onto the tested drive.
405 //! @SYMTestActions 1. Call Connect() method.
406 //! 2. Call MountFileSystem() providing the file system name and drive for mounts.
407 //! 3. Call Close() method.
408 //! @SYMTestStatus Implemented
409 //! @SYMTestPriority High
410 //! @SYMTestExpectedResults KErrAccessDenied.
412 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
413 CREATE_OBJECT RFs RFs1
416 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0026-001-FileSystemName_command03
417 COMMAND !Error=-21 RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0026-001-MountFileSystem_command04
421 END_TESTCASE PBASE-F32-RFS-PublicApi-0026
424 START_TESTCASE PBASE-F32-RFS-PublicApi-0028
425 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0028
427 //! @SYMTestCaseDesc Functions MountFileSystem(const TDesC &aFileSystemName, TInt aDrive, TBool aIsSync) test with incorrect file system name.
428 //! Uses API elements: MountFileSystem().
429 //! @SYMTestActions 1. Call Connect() method.
430 //! 2. Call MountFileSystem() providing the incorrect file system name and drive for mounts where nothing mounted, and ETrue as a synchronization parameter.
431 //! 3. Call Close() method.
432 //! @SYMTestStatus Implemented
433 //! @SYMTestPriority High
434 //! @SYMTestExpectedResults KErrNotFound.
436 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
437 CREATE_OBJECT RFs RFs1
440 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0028-001-FileSystemName_command03
441 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0028-001-DismountFileSystem_command04
442 COMMAND !Error=-1 RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0028-001-MountFileSystem_command05
443 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0028-001-MountFileSystem_command06
447 END_TESTCASE PBASE-F32-RFS-PublicApi-0028
450 START_TESTCASE PBASE-F32-RFS-PublicApi-0029
451 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0029
453 //! @SYMTestCaseDesc Functions MountFileSystem(const TDesC &aFileSystemName, TInt aDrive, TBool aIsSync) test, mount file system where already mounted one.
454 //! Uses API elements: MountFileSystem().
455 //! The test assumes that the tested file system is already mounted onto the tested drive.
456 //! @SYMTestActions 1. Call Connect() method.
457 //! 2. Call MountFileSystem() providing the file system name and drive for mounts, and ETrue as a synchronization parameter.
458 //! 3. Call Close() method.
459 //! @SYMTestStatus Implemented
460 //! @SYMTestPriority High
461 //! @SYMTestExpectedResults KErrAccessDenied.
463 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
464 CREATE_OBJECT RFs RFs1
467 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0029-001-FileSystemName_command03
468 COMMAND !Error=-21 RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0029-001-MountFileSystem_command04
472 END_TESTCASE PBASE-F32-RFS-PublicApi-0029
475 START_TESTCASE PBASE-F32-RFS-PublicApi-0031
476 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0031
478 //! @SYMTestCaseDesc Functions MountFileSystem(const TDesC &aFileSystemName, TInt aDrive, TBool aIsSync) test with incorrect file system name.
479 //! Uses API elements: MountFileSystem().
480 //! @SYMTestActions 1. Call Connect() method.
481 //! 2. Call MountFileSystem() providing the bad file system name and drive for mounts where nothing mounted, and EFalse as a synchronization parameter.
482 //! 3. Call Close() method.
483 //! @SYMTestStatus Implemented
484 //! @SYMTestPriority High
485 //! @SYMTestExpectedResults KErrNotFound.
487 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
488 CREATE_OBJECT RFs RFs1
491 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0031-001-FileSystemName_command03
492 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0031-001-DismountFileSystem_command04
493 COMMAND !Error=-1 RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0031-001-MountFileSystem_command05
494 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0031-001-MountFileSystem_command06
498 END_TESTCASE PBASE-F32-RFS-PublicApi-0031
501 START_TESTCASE PBASE-F32-RFS-PublicApi-0032
502 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0032
504 //! @SYMTestCaseDesc Functions MountFileSystem(const TDesC &aFileSystemName, TInt aDrive, TBool aIsSync) test, mount file system where already mounted one.
505 //! Uses API elements: MountFileSystem().
506 //! The test assumes that the tested file system is already mounted onto the tested drive.
507 //! @SYMTestActions 1. Call Connect() method.
508 //! 2. Call MountFileSystem() providing the file system name and drive for mounts, and EFalse as a synchronization parameter.
509 //! 3. Call Close() method.
510 //! @SYMTestStatus Implemented
511 //! @SYMTestPriority High
512 //! @SYMTestExpectedResults KErrAccessDenied.
514 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
515 CREATE_OBJECT RFs RFs1
518 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0032-001-FileSystemName_command03
519 COMMAND !Error=-21 RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0032-001-MountFileSystem_command04
523 END_TESTCASE PBASE-F32-RFS-PublicApi-0032
526 START_TESTCASE PBASE-F32-RFS-PublicApi-0034
527 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0034
529 //! @SYMTestCaseDesc Functions MountFileSystemAndScan(const TDesC &aFileSystemName, TInt aDrive, TBool &aIsMountSuccess) test with bad file system name.
530 //! Uses API elements: MountFileSystemAndScan().
531 //! @SYMTestActions 1. Call Connect() method.
532 //! 2. Call MountFileSystemAndScan() providing the bad file system name and drive for mounts (not drive for MMC card).
533 //! 3. Call Close() method.
534 //! @SYMTestStatus Implemented
535 //! @SYMTestPriority High
536 //! @SYMTestExpectedResults KErrNotFound, Filesystem not found
538 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
539 CREATE_OBJECT RFs RFs1
542 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0034-001-FileSystemName_command03
543 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0034-001-DismountFileSystem_command04
544 COMMAND !Error=-1 RFs1 MountFileSystemAndScan PBASE-F32-RFS-PublicApi-0034-001-MountFileSystemAndScan_command05
545 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0034-001-MountFileSystem_command06
549 END_TESTCASE PBASE-F32-RFS-PublicApi-0034
552 START_TESTCASE PBASE-F32-RFS-PublicApi-0035
553 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0035
555 //! @SYMTestCaseDesc Functions MountFileSystemAndScan(const TDesC &aFileSystemName, TInt aDrive, TBool &aIsMountSuccess) test with mounting file system that not support scanning.
556 //! Uses API elements: MountFileSystemAndScan(), DismountFileSystem().
557 //! @SYMTestActions 1. Call Connect() method.
558 //! 2. Call MountFileSystemAndScan() providing the file system name and the drive number.
559 //! 3. Call DismountFileSystem() providing the file system name and the drive number.
560 //! 4. Call Close() method.
561 //! @SYMTestStatus Implemented
562 //! @SYMTestPriority High
563 //! @SYMTestExpectedResults KErrNone.
565 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
566 CREATE_OBJECT RFs RFs1
569 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0035-001-FileSystemName_command03
570 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0035-001-DismountFileSystem_command04
571 COMMAND RFs1 MountFileSystemAndScan PBASE-F32-RFS-PublicApi-0035-001-MountFileSystemAndScan_command05
575 END_TESTCASE PBASE-F32-RFS-PublicApi-0035
578 START_TESTCASE PBASE-F32-RFS-PublicApi-0037
579 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0037
581 //! @SYMTestCaseDesc Functions MountFileSystem(const TDesC &aFileSystemName, const TDesC &aExtensionName, TInt aDrive, TBool aIsSync) test with incorrect file system extension name.
582 //! Uses API elements: MountFileSystem(), DismountFileSystem().
583 //! @SYMTestActions 1. Call Connect() method.
584 //! 2. Call MountFileSystem() providing the file system name, drive for mounts, bad name of extension and EFalse as a synchronization parameter.
585 //! 3. Call Close() method.
586 //! @SYMTestStatus Implemented
587 //! @SYMTestPriority High
588 //! @SYMTestExpectedResults KErrNotFound, extension not found
590 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
591 CREATE_OBJECT RFs RFs1
594 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0037-001-FileSystemName_command03
595 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0037-001-DismountFileSystem_command04
596 COMMAND !Error=-1 RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0037-001-MountFileSystem_command05
597 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0037-001-MountFileSystem_command06
601 END_TESTCASE PBASE-F32-RFS-PublicApi-0037
604 START_TESTCASE PBASE-F32-RFS-PublicApi-0038
605 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0038
607 //! @SYMTestCaseDesc Functions MountFileSystem(const TDesC &aFileSystemName, const TDesC &aExtensionName, TInt aDrive, TBool aIsSync) test with incorrect file system extension name.
608 //! Uses API elements: MountFileSystem(), DismountFileSystem().
609 //! @SYMTestActions 1. Call Connect() method.
610 //! 2. Call MountFileSystem() providing the file system name, drive for mounts, bad name of extension and ETrue as a synchronization parameter.
611 //! 3. Call DismountFileSystem() providing the file system name and the drive for mounts.
612 //! 4. Call Close() method.
613 //! @SYMTestStatus Implemented
614 //! @SYMTestPriority High
615 //! @SYMTestExpectedResults KErrNotFound, extension not found
617 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
618 CREATE_OBJECT RFs RFs1
621 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0038-001-FileSystemName_command03
622 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0038-001-DismountFileSystem_command04
623 COMMAND !Error=-1 RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0038-001-MountFileSystem_command05
624 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0038-001-DismountFileSystem_command06
625 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0038-001-MountFileSystem_command07
629 END_TESTCASE PBASE-F32-RFS-PublicApi-0038
632 START_TESTCASE PBASE-F32-RFS-PublicApi-0040
633 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0040
635 //! @SYMTestCaseDesc Functions DismountFileSystem() test with incorrect file system name.
636 //! Uses API elements: DismountFileSystem().
637 //! The test assumes that the tested file system is already mounted onto the tested drive.
638 //! @SYMTestActions 1. Call Connect() method.
639 //! 2. Call DismountFileSystem() providing the bad file system name and drive for mounts.
640 //! 3. Call Close() method.
641 //! @SYMTestStatus Implemented
642 //! @SYMTestPriority High
643 //! @SYMTestExpectedResults KErrNotFound, file system not found.
645 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
646 CREATE_OBJECT RFs RFs1
649 COMMAND !Error=-1 RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0040-001-DismountFileSystem_command03
653 END_TESTCASE PBASE-F32-RFS-PublicApi-0040
656 START_TESTCASE PBASE-F32-RFS-PublicApi-0041
657 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0041
659 //! @SYMTestCaseDesc Functions DismountFileSystem() test, dismount file system from drive, where not mounted one.
660 //! Uses API elements: DismountFileSystem().
661 //! @SYMTestActions 1. Call Connect() method.
662 //! 2. Call DismountFileSystem() providing the file system name and drive for mounts where no file system mounted.
663 //! 3. Call Close() method.
664 //! @SYMTestStatus Implemented
665 //! @SYMTestPriority High
666 //! @SYMTestExpectedResults KErrNotReady
668 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
669 CREATE_OBJECT RFs RFs1
672 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0041-001-FileSystemName_command03
673 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0041-001-DismountFileSystem_command04
674 COMMAND !Error=-18 RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0041-001-DismountFileSystem_command05
675 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0041-001-MountFileSystem_command06
679 END_TESTCASE PBASE-F32-RFS-PublicApi-0041
682 START_TESTCASE PBASE-F32-RFS-PublicApi-0046
683 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0046
685 //! @SYMTestCaseDesc Functions MountExtension() test, mount file system extension on drive, where no mounted file system.
686 //! Uses API elements: MountExtension(), AddExtension(), RemoveExtension().
687 //! The test requires a file system extension plug-in.
688 //! @SYMTestActions 1. Call Connect() method.
689 //! 2. Call AddExtension() providing plug-in extension name.
690 //! 3. Call MountExtension() providing plug-in extension name and drive where not mounted file system.
691 //! 4. Call RemoveExtension() providing plug-in extension name.
692 //! 5. Call Close() method.
693 //! @SYMTestStatus Implemented
694 //! @SYMTestPriority High
695 //! @SYMTestExpectedResults KErrNone
697 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
698 CREATE_OBJECT RFs RFs1
701 COMMAND RFs1 AddExtension PBASE-F32-RFS-PublicApi-0046-001-AddExtension_command03
702 COMMAND RFs1 MountExtension PBASE-F32-RFS-PublicApi-0046-001-MountExtension_command04
703 COMMAND RFs1 DismountExtension PBASE-F32-RFS-PublicApi-0046-001-DismountExtension_command05
704 COMMAND RFs1 RemoveExtension PBASE-F32-RFS-PublicApi-0046-001-RemoveExtension_command06
708 END_TESTCASE PBASE-F32-RFS-PublicApi-0046
711 START_TESTCASE PBASE-F32-RFS-PublicApi-0048
712 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0048
714 //! @SYMTestCaseDesc Functions MountExtension() test with incorrect file system extension name.
715 //! Uses API elements: MountExtension().
716 //! @SYMTestActions 1. Call Connect() method.
717 //! 2. Call MountExtension() providing bad extension name and drive for mounts where is a mounted file system on.
718 //! 3. Call Close() method.
719 //! @SYMTestStatus Implemented
720 //! @SYMTestPriority High
721 //! @SYMTestExpectedResults KErrNotFound
723 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
724 CREATE_OBJECT RFs RFs1
727 COMMAND !Error=-1 RFs1 MountExtension PBASE-F32-RFS-PublicApi-0048-001-MountExtension_command03
731 END_TESTCASE PBASE-F32-RFS-PublicApi-0048
734 START_TESTCASE PBASE-F32-RFS-PublicApi-0050
735 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0050
737 //! @SYMTestCaseDesc Functions DismountExtension() test with incorrect file system extension name.
738 //! Uses API elements: DismountExtension().
739 //! @SYMTestActions 1. Call Connect() method.
740 //! 2. Call DismountExtension() providing bad extension name and drive number where is no mounted file system.
741 //! 3. Call Close() method.
742 //! @SYMTestStatus Implemented
743 //! @SYMTestPriority High
744 //! @SYMTestExpectedResults KErrNotFound
746 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
747 CREATE_OBJECT RFs RFs1
750 COMMAND !Error=-1 RFs1 DismountExtension PBASE-F32-RFS-PublicApi-0050-001-DismountExtension_command03
754 END_TESTCASE PBASE-F32-RFS-PublicApi-0050
757 START_TESTCASE PBASE-F32-RFS-PublicApi-0054
758 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0054
760 //! @SYMTestCaseDesc Functions ExtensionName() test with large number of position as argument.
761 //! Uses API elements: ExtensionName().
762 //! The test assumes that the tested file system is already mounted onto the tested drive.
763 //! @SYMTestActions 1. Call Connect() method.
764 //! 2. Call ExtensionName() providing drive number and large number as position.
765 //! 3. Call Close() method.
766 //! @SYMTestStatus Implemented
767 //! @SYMTestPriority High
768 //! @SYMTestExpectedResults KErrNotFound
770 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
771 CREATE_OBJECT RFs RFs1
774 COMMAND !Error=-1 RFs1 ExtensionName PBASE-F32-RFS-PublicApi-0054-001-ExtensionName_command03
778 END_TESTCASE PBASE-F32-RFS-PublicApi-0054
781 START_TESTCASE PBASE-F32-RFS-PublicApi-0059
782 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0059
784 //! @SYMTestCaseDesc Functions NotifyDismount() test with drive where no mounted file system.
785 //! Uses API elements: NotifyDismount().
786 //! @SYMTestActions 1. Call Connect() method.
787 //! 2. Call NotifyDismount() providing drive number where is no mounted file system and mode EFsDismountForceDismount and starts waiting for a notification on the background.
788 //! 3. Call Close() method.
789 //! @SYMTestStatus Implemented
790 //! @SYMTestPriority High
791 //! @SYMTestExpectedResults KErrNone
793 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
794 CREATE_OBJECT RFs RFs1
797 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0059-001-FileSystemName_command03
798 COMMAND RFs1 NotifyDismount PBASE-F32-RFS-PublicApi-0059-001-NotifyDismount_command04
800 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0059-001-MountFileSystem_command06
804 END_TESTCASE PBASE-F32-RFS-PublicApi-0059
807 START_TESTCASE PBASE-F32-RFS-PublicApi-0060
808 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0060
810 //! @SYMTestCaseDesc Functions AllowDismount() test with drive where no mounted file system.
811 //! Uses API elements: AllowDismount().
812 //! @SYMTestActions 1. Call Connect() method.
813 //! 2. Call AllowDismount() providing drive number where no mounted file system.
814 //! 3. Call Close() method.
815 //! @SYMTestStatus Implemented
816 //! @SYMTestPriority High
817 //! @SYMTestExpectedResults KErrNotFound as nothing has requested to notify the dismount
819 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
820 CREATE_OBJECT RFs RFs1
823 COMMAND !Error=-1 RFs1 AllowDismount PBASE-F32-RFS-PublicApi-0060-001-AllowDismount_command03
827 END_TESTCASE PBASE-F32-RFS-PublicApi-0060
830 START_TESTCASE PBASE-F32-RFS-PublicApi-0069
831 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0069
833 //! @SYMTestCaseDesc Functions SwapFileSystem() test with incorrect file system name as old file system argument.
834 //! Uses API elements: SwapFileSystem().
835 //! The test assumes that the tested file system is already mounted onto the tested drive.
836 //! @SYMTestActions 1. Call Connect() method.
837 //! 2. Call SwapFileSystem() providing enabled drive, bad name of old file system name and FAT as new file system name.
838 //! 3. Call Close() method.
839 //! @SYMTestStatus Implemented
840 //! @SYMTestPriority High
841 //! @SYMTestExpectedResults KErrNotFound
843 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
844 CREATE_OBJECT RFs RFs1
847 COMMAND !Error=-1 RFs1 SwapFileSystem PBASE-F32-RFS-PublicApi-0069-001-SwapFileSystem_command03
851 END_TESTCASE PBASE-F32-RFS-PublicApi-0069
854 START_TESTCASE PBASE-F32-RFS-PublicApi-0070
855 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0070
857 //! @SYMTestCaseDesc Functions SwapFileSystem() test with incorrect file system name as new file system argument.
858 //! Uses API elements: SwapFileSystem().
859 //! The test assumes that the tested file system is already mounted onto the tested drive.
860 //! @SYMTestActions 1. Call Connect() method.
861 //! 2. Call SwapFileSystem() providing enabled drive, FAT as old file system name and bad name of new file system name.
862 //! 3. Call Close() method.
863 //! @SYMTestStatus Implemented
864 //! @SYMTestPriority High
865 //! @SYMTestExpectedResults KErrNotFound
867 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
868 CREATE_OBJECT RFs RFs1
871 COMMAND !Error=-1 RFs1 SwapFileSystem PBASE-F32-RFS-PublicApi-0070-001-SwapFileSystem_command03
875 END_TESTCASE PBASE-F32-RFS-PublicApi-0070
877 START_TESTCASE PBASE-F32-RFS-PublicApi-0072
878 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0072
880 //! @SYMTestCaseDesc Function NotifyDismountCancel(TRequestStatus& aStat) test that tryes to cancel same request twice.
881 //! The test assumes that the tested file system is already mounted onto the tested drive.
882 //! Uses API elements: NotifyDismountCancel(), NotifyDismount(), MountFileSystem(), FileSystemName().
883 //! @SYMTestActions 1. Call Connect() method.
884 //! 2. Call FileSystemName() for a drive where a file system was mounted.
885 //! 3. Call NotifyDismount() providing the drive number and mode value EFsDismountRegisterClient and starts waiting for a notification on the background.
886 //! 4. Call NotifyDismountCancel() providing the same TRequestStatus as in previous call.
887 //! 5. Call NotifyDismountCancel() providing the same TRequestStatus as in previous call.
888 //! 6. Call Close() of both sessions.
889 //! @SYMTestStatus Implemented
890 //! @SYMTestPriority Critical
891 //! @SYMTestExpectedResults Request status is set to KErrCancel(-3) and second NotifyDismountCancel() doesn't cause panic.
893 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
894 CREATE_OBJECT RFs RFs1
897 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0072-001-FileSystemName_command03
898 COMMAND !AsyncError=-3 RFs1 NotifyDismount PBASE-F32-RFS-PublicApi-0072-001-NotifyDismount_command04
899 COMMAND RFs1 NotifyDismountCancel PBASE-F32-RFS-PublicApi-0072-001-NotifyDismountCancel_command05
900 COMMAND RFs1 NotifyDismountCancel PBASE-F32-RFS-PublicApi-0072-001-NotifyDismountCancel_command06
905 END_TESTCASE PBASE-F32-RFS-PublicApi-0072
908 START_TESTCASE PBASE-F32-RFS-PublicApi-0075
909 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0075
911 //! @SYMTestCaseDesc Function NotifyChange(TNotifyType aType, TRequestStatus &aStat, const TDesC &aPathName) test with notify types ENotifyAll.
912 //! Uses API elements: NotifyChange(), FileSystemName(), DismountFileSystem(), MountFileSystem().
913 //! The test assumes that the tested file system is already mounted onto the tested drive.
914 //! @SYMTestActions 1. Call Connect().
915 //! 2. Call FileSystemName() passing the drive number as argument.
916 //! 3. Call NotifyChange() passing ENotifyAll as parameter and starts waiting for a notification on the background.
917 //! 4. Call DismountFileSystem() passing the drive number as argument.
918 //! 5. Call NotifyChange() passing ENotifyAll as parameter and starts waiting for a notification on the background.
919 //! 6. Call MountFileSystem() passing the drive number as argument.
921 //! @SYMTestStatus Implemented
922 //! @SYMTestPriority High
923 //! @SYMTestExpectedResults Doesn't cause panic.
925 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
926 CREATE_OBJECT RFs RFs1
929 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0075-001-FileSystemName_command03
930 COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-0075-001-NotifyChange_command04
931 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0075-001-DismountFileSystem_command05
933 COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-0075-001-NotifyChange_command07
934 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0075-001-MountFileSystem_command08
939 END_TESTCASE PBASE-F32-RFS-PublicApi-0075
942 START_TESTCASE PBASE-F32-RFS-PublicApi-0014
943 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0014
945 //! @SYMTestCaseDesc Function AddCompositeMount() test.
946 //! Uses API elements: AddCompositeMount()
947 //! @SYMTestActions 1. Call Connect().
948 //! 2. Call AddCompositeMount() providing a file system name, c-drive as a local drive, and an empty drive as a composite drive and EFalse as a synchronization parameter.
950 //! @SYMTestStatus Implemented
951 //! @SYMTestPriority High
952 //! @SYMTestExpectedResults Check that AddCompositeMount() returns KErrNotSupported (-5).
954 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
955 CREATE_OBJECT RFs RFs1
958 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0014-001-FileSystemName_command03
959 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0014-001-DismountFileSystem_command04
960 COMMAND !Error=-5 RFs1 AddCompositeMount PBASE-F32-RFS-PublicApi-0014-001-AddCompositeMount_command05
961 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0014-001-MountFileSystem_command06
965 END_TESTCASE PBASE-F32-RFS-PublicApi-0014
968 START_TESTCASE PBASE-F32-RFS-PublicApi-0036
969 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0036
971 //! @SYMTestCaseDesc Functions MountFileSystemAndScan(const TDesC &aFileSystemName, const TDesC &aExtensionName, TInt aDrive, TBool &aIsMountSuccess) test with incorrect file system extension name.
972 //! Uses API elements: MountFileSystemAndScan(), DismountFileSystem().
973 //! @SYMTestActions 1. Call Connect() method.
974 //! 2. Call MountFileSystemAndScan() providing the file system name (Fat) and drive for mounts, and bad name of extension.
975 //! 3. Call DismountFileSystem() providing the file system name and the drive for mounts.
976 //! 4. Call Close() method.
977 //! @SYMTestStatus Implemented
978 //! @SYMTestPriority High
979 //! @SYMTestExpectedResults KErrNotFound, extension not found
981 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
982 CREATE_OBJECT RFs RFs1
985 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0036-001-FileSystemName_command03
986 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0036-001-DismountFileSystem_command04
987 COMMAND !Error=-1 RFs1 MountFileSystemAndScan PBASE-F32-RFS-PublicApi-0036-001-MountFileSystemAndScan_command05
988 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0036-001-DismountFileSystem_command06
989 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0036-001-MountFileSystem_command07
993 END_TESTCASE PBASE-F32-RFS-PublicApi-0036
996 START_TESTCASE PBASE-F32-RFS-PublicApi-0043
997 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0043
999 //! @SYMTestCaseDesc Functions FileSystemName() test, get file system name from drive where no mounted file system.
1000 //! Uses API elements: FileSystemName().
1001 //! @SYMTestActions 1. Call Connect() method.
1002 //! 2. Call FileSystemName() providing a drive number where is no mounted file system.
1003 //! 3. Call Close() method.
1004 //! @SYMTestStatus Implemented
1005 //! @SYMTestPriority High
1006 //! @SYMTestExpectedResults KErrNotFound
1007 //! @SYMTestType CIT
1008 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
1009 CREATE_OBJECT RFs RFs1
1011 COMMAND RFs1 Connect
1012 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0043-001-FileSystemName_command03
1013 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0043-001-DismountFileSystem_command04
1014 COMMAND !Error=-1 RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0043-001-FileSystemName_command05
1015 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0043-001-MountFileSystem_command06
1019 END_TESTCASE PBASE-F32-RFS-PublicApi-0043
1022 START_TESTCASE PBASE-F32-RFS-PublicApi-0063
1023 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0063
1025 //! @SYMTestCaseDesc Functions AddCompositeMount() test with incorrect file system name in asynchronous mode.
1026 //! Uses API elements: AddCompositeMount().
1027 //! @SYMTestActions 1. Call Connect() method.
1028 //! 2. Call AddCompositeMount() providing C-drive as local drive, an empty drive as a composite drive argument, bad filesystem name and false as synchronous as a parameters.
1029 //! 3. Call Close() method.
1030 //! @SYMTestStatus Implemented
1031 //! @SYMTestPriority High
1032 //! @SYMTestExpectedResults KErrNotFound
1033 //! @SYMTestType CIT
1034 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
1035 CREATE_OBJECT RFs RFs1
1037 COMMAND RFs1 Connect
1038 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0063-001-FileSystemName_command03
1039 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0063-001-DismountFileSystem_command04
1040 COMMAND !Error=-1 RFs1 AddCompositeMount PBASE-F32-RFS-PublicApi-0063-001-AddCompositeMount_command05
1041 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0063-001-MountFileSystem_command06
1045 END_TESTCASE PBASE-F32-RFS-PublicApi-0063
1048 START_TESTCASE PBASE-F32-RFS-PublicApi-0064
1049 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0064
1051 //! @SYMTestCaseDesc Functions AddCompositeMount() test with incorrect file system name in synchronous mode.
1052 //! Uses API elements: AddCompositeMount().
1053 //! @SYMTestActions 1. Call Connect() method.
1054 //! 2. Call AddCompositeMount() providing drive number as local drive, drive for mount, bad filesystem name and true as synchronous as a parameters.
1055 //! 3. Call Close() method.
1056 //! @SYMTestStatus Implemented
1057 //! @SYMTestPriority High
1058 //! @SYMTestExpectedResults KErrNotFound
1059 //! @SYMTestType CIT
1060 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
1061 CREATE_OBJECT RFs RFs1
1063 COMMAND RFs1 Connect
1064 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0064-001-FileSystemName_command03
1065 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0064-001-DismountFileSystem_command04
1066 COMMAND !Error=-1 RFs1 AddCompositeMount PBASE-F32-RFS-PublicApi-0064-001-AddCompositeMount_command05
1067 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0064-001-MountFileSystem_command06
1071 END_TESTCASE PBASE-F32-RFS-PublicApi-0064
1074 START_TESTCASE PBASE-F32-RFS-PublicApi-0065
1075 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0065
1077 //! @SYMTestCaseDesc Functions AddCompositeMount() test with negative drive number for local drive argument in asynchronous mode.
1078 //! Uses API elements: AddCompositeMount().
1079 //! @SYMTestActions 1. Call Connect() method.
1080 //! 2. Call AddCompositeMount() providing negative drive number as local drive, drive for mounts, "FAT" filesystem name and FALSE as synchronous as a parameters.
1081 //! 3. Call Close() method.
1082 //! @SYMTestStatus Implemented
1083 //! @SYMTestPriority High
1084 //! @SYMTestExpectedResults KErrNotSupported
1085 //! @SYMTestType CIT
1086 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
1087 CREATE_OBJECT RFs RFs1
1089 COMMAND RFs1 Connect
1090 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0065-001-FileSystemName_command03
1091 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0065-001-DismountFileSystem_command04
1092 COMMAND !Error=-5 RFs1 AddCompositeMount PBASE-F32-RFS-PublicApi-0065-001-AddCompositeMount_command05
1093 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0065-001-MountFileSystem_command06
1097 END_TESTCASE PBASE-F32-RFS-PublicApi-0065
1100 START_TESTCASE PBASE-F32-RFS-PublicApi-0066
1101 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0066
1103 //! @SYMTestCaseDesc Functions AddCompositeMount() test with negative drive number for composite drive argument in asynchronous mode.
1104 //! Uses API elements: AddCompositeMount().
1105 //! @SYMTestActions 1. Call Connect() method.
1106 //! 2. Call AddCompositeMount() providing C-drive as a local drive, negative drive number as composite drive, "FAT" filesystem name and FALSE as synchronous as a parameters.
1107 //! 3. Call Close() method.
1108 //! @SYMTestStatus Implemented
1109 //! @SYMTestPriority High
1110 //! @SYMTestExpectedResults KErrNotSupported
1111 //! @SYMTestType CIT
1112 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
1113 CREATE_OBJECT RFs RFs1
1115 COMMAND RFs1 Connect
1116 COMMAND !Error=-5 RFs1 AddCompositeMount PBASE-F32-RFS-PublicApi-0066-001-AddCompositeMount_command03
1120 END_TESTCASE PBASE-F32-RFS-PublicApi-0066
1123 START_TESTCASE PBASE-F32-RFS-PublicApi-0067
1124 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0067
1126 //! @SYMTestCaseDesc Functions AddCompositeMount() test with negative drive number for local drive argument in synchronous mode.
1127 //! Uses API elements: AddCompositeMount().
1128 //! @SYMTestActions 1. Call Connect() method.
1129 //! 2. Call AddCompositeMount() providing negative drive number as local drive, drive for mounts, "FAT" filesystem name and TRUE as synchronous as a parameters.
1130 //! 3. Call Close() method.
1131 //! @SYMTestStatus Implemented
1132 //! @SYMTestPriority High
1133 //! @SYMTestExpectedResults KErrNotSupported
1134 //! @SYMTestType CIT
1135 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
1136 CREATE_OBJECT RFs RFs1
1138 COMMAND RFs1 Connect
1139 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0067-001-FileSystemName_command03
1140 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0067-001-DismountFileSystem_command04
1141 COMMAND !Error=-5 RFs1 AddCompositeMount PBASE-F32-RFS-PublicApi-0067-001-AddCompositeMount_command05
1142 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0067-001-MountFileSystem_command06
1146 END_TESTCASE PBASE-F32-RFS-PublicApi-0067
1149 START_TESTCASE PBASE-F32-RFS-PublicApi-0068
1150 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0068
1152 //! @SYMTestCaseDesc Functions AddCompositeMount() test with negative drive number for composite drive argument in synchronous mode.
1153 //! Uses API elements: AddCompositeMount().
1154 //! @SYMTestActions 1. Call Connect() method.
1155 //! 2. Call AddCompositeMount() providing drive number as local drive, negative drive number as composite drive, "FAT" filesystem name and TRUE as synchronous as a parameters.
1156 //! 3. Call Close() method.
1157 //! @SYMTestStatus Implemented
1158 //! @SYMTestPriority High
1159 //! @SYMTestExpectedResults KErrNotSupported
1160 //! @SYMTestType CIT
1161 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
1162 CREATE_OBJECT RFs RFs1
1164 COMMAND RFs1 Connect
1165 COMMAND !Error=-5 RFs1 AddCompositeMount PBASE-F32-RFS-PublicApi-0068-001-AddCompositeMount_command03
1169 END_TESTCASE PBASE-F32-RFS-PublicApi-0068
1171 START_TESTCASE PBASE-F32-RFS-PublicApi-0074
1172 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0074
1174 //! @SYMTestCaseDesc Function FileSystemSubType() test with non mounted drive.
1175 //! Uses API elements: FileSystemSubType().
1176 //! @SYMTestActions 1. Call Connect() method.
1177 //! 2. Call FileSystemSubType() passing the drive number where is not mounted file system as argument.
1178 //! 3. Call Close() method.
1179 //! @SYMTestStatus Implemented
1180 //! @SYMTestPriority Critical
1181 //! @SYMTestExpectedResults Return KErrNotReady (-18).
1182 //! @SYMTestType CIT
1183 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini
1184 CREATE_OBJECT RFs RFs1
1186 COMMAND RFs1 Connect
1187 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0074-001-FileSystemName_command03
1188 COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0074-001-DismountFileSystem_command04
1189 COMMAND !Error=-18 RFs1 FileSystemSubType PBASE-F32-RFS-PublicApi-0074-001-FileSystemSubType_command05
1190 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0074-001-MountFileSystem_command06
1194 END_TESTCASE PBASE-F32-RFS-PublicApi-0074