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 "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-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. |
|
21 |
|
22 LOAD_SUITE T_Sfsrv |
|
23 |
|
24 |
|
25 START_TESTCASE PBASE-F32-RFS-PublicApi-0002 |
|
26 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0002 |
|
27 //! @SYMAPI RFs |
|
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. |
|
44 //! @SYMTestType CIT |
|
45 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
46 CREATE_OBJECT RFs RFs1 |
|
47 COMMAND RFs1 new |
|
48 COMMAND RFs1 Connect |
|
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 |
|
56 COMMAND RFs1 Close |
|
57 COMMAND RFs1 ~ |
|
58 END_TEST_BLOCK |
|
59 END_TESTCASE PBASE-F32-RFS-PublicApi-0002 |
|
60 |
|
61 |
|
62 START_TESTCASE PBASE-F32-RFS-PublicApi-0004 |
|
63 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0004 |
|
64 //! @SYMAPI RFs |
|
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. |
|
88 //! @SYMTestType CIT |
|
89 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
90 CREATE_OBJECT RFs RFs1 |
|
91 COMMAND RFs1 new |
|
92 COMMAND RFs1 Connect |
|
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 |
|
104 COMMAND RFs1 Close |
|
105 COMMAND RFs1 ~ |
|
106 END_TEST_BLOCK |
|
107 END_TESTCASE PBASE-F32-RFS-PublicApi-0004 |
|
108 |
|
109 |
|
110 START_TESTCASE PBASE-F32-RFS-PublicApi-0005 |
|
111 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0005 |
|
112 //! @SYMAPI RFs |
|
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. |
|
125 //! @SYMTestType CIT |
|
126 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
127 CREATE_OBJECT RFs RFs1 |
|
128 COMMAND RFs1 new |
|
129 COMMAND RFs1 Connect |
|
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 |
|
134 COMMAND RFs1 Close |
|
135 COMMAND RFs1 ~ |
|
136 END_TEST_BLOCK |
|
137 END_TESTCASE PBASE-F32-RFS-PublicApi-0005 |
|
138 |
|
139 |
|
140 START_TESTCASE PBASE-F32-RFS-PublicApi-0006 |
|
141 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0006 |
|
142 //! @SYMAPI RFs |
|
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. |
|
163 //! @SYMTestType CIT |
|
164 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
165 CREATE_OBJECT RFs RFs1 |
|
166 COMMAND RFs1 new |
|
167 COMMAND RFs1 Connect |
|
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 |
|
177 COMMAND RFs1 Close |
|
178 COMMAND RFs1 ~ |
|
179 END_TEST_BLOCK |
|
180 END_TESTCASE PBASE-F32-RFS-PublicApi-0006 |
|
181 |
|
182 |
|
183 START_TESTCASE PBASE-F32-RFS-PublicApi-0008 |
|
184 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0008 |
|
185 //! @SYMAPI RFs |
|
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. |
|
199 //! @SYMTestType CIT |
|
200 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
201 CREATE_OBJECT RFs RFs1 |
|
202 COMMAND RFs1 new |
|
203 COMMAND RFs1 Connect |
|
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 |
|
209 COMMAND RFs1 Close |
|
210 COMMAND RFs1 ~ |
|
211 END_TEST_BLOCK |
|
212 END_TESTCASE PBASE-F32-RFS-PublicApi-0008 |
|
213 |
|
214 |
|
215 START_TESTCASE PBASE-F32-RFS-PublicApi-0009 |
|
216 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0009 |
|
217 //! @SYMAPI RFs |
|
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. |
|
227 //! @SYMTestType CIT |
|
228 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
229 CREATE_OBJECT RFs RFs1 |
|
230 COMMAND RFs1 new |
|
231 COMMAND RFs1 Connect |
|
232 COMMAND RFs1 RemountDrive PBASE-F32-RFS-PublicApi-0009-001-RemountDrive_command03 |
|
233 COMMAND RFs1 Close |
|
234 COMMAND RFs1 ~ |
|
235 END_TEST_BLOCK |
|
236 END_TESTCASE PBASE-F32-RFS-PublicApi-0009 |
|
237 |
|
238 |
|
239 START_TESTCASE PBASE-F32-RFS-PublicApi-0010 |
|
240 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0010 |
|
241 //! @SYMAPI RFs |
|
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. |
|
256 //! @SYMTestType CIT |
|
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 |
|
260 COMMAND RFs1 new |
|
261 COMMAND RFs1 Connect |
|
262 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0010-001-FileSystemName_command03 |
|
263 COMMAND RFs2 new |
|
264 COMMAND RFs2 Connect |
|
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 |
|
268 OUTSTANDING |
|
269 OUTSTANDING |
|
270 COMMAND RFs2 Close |
|
271 COMMAND RFs2 ~ |
|
272 OUTSTANDING |
|
273 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0010-001-MountFileSystem_command17 |
|
274 COMMAND RFs1 Close |
|
275 COMMAND RFs1 ~ |
|
276 END_TEST_BLOCK |
|
277 END_TESTCASE PBASE-F32-RFS-PublicApi-0010 |
|
278 |
|
279 |
|
280 START_TESTCASE PBASE-F32-RFS-PublicApi-0011 |
|
281 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0011 |
|
282 //! @SYMAPI RFs |
|
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) |
|
296 //! @SYMTestType CIT |
|
297 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
298 CREATE_OBJECT RFs RFs1 |
|
299 COMMAND RFs1 new |
|
300 COMMAND RFs1 Connect |
|
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 |
|
304 OUTSTANDING |
|
305 COMMAND RFs1 NotifyDismount PBASE-F32-RFS-PublicApi-0011-001-NotifyDismount_command07 |
|
306 OUTSTANDING |
|
307 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0011-001-MountFileSystem_command09 |
|
308 COMMAND RFs1 Close |
|
309 COMMAND RFs1 ~ |
|
310 END_TEST_BLOCK |
|
311 END_TESTCASE PBASE-F32-RFS-PublicApi-0011 |
|
312 |
|
313 |
|
314 START_TESTCASE PBASE-F32-RFS-PublicApi-0017 |
|
315 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0017 |
|
316 //! @SYMAPI RFs |
|
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. |
|
329 //! @SYMTestType CIT |
|
330 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
331 CREATE_OBJECT RFs RFs1 |
|
332 COMMAND RFs1 new |
|
333 COMMAND RFs1 Connect |
|
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 |
|
338 COMMAND RFs1 Close |
|
339 COMMAND RFs1 ~ |
|
340 END_TEST_BLOCK |
|
341 END_TESTCASE PBASE-F32-RFS-PublicApi-0017 |
|
342 |
|
343 |
|
344 START_TESTCASE PBASE-F32-RFS-PublicApi-0018 |
|
345 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0018 |
|
346 //! @SYMAPI RFs |
|
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) |
|
358 //! @SYMTestType CIT |
|
359 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
360 CREATE_OBJECT RFs RFs1 |
|
361 COMMAND RFs1 new |
|
362 COMMAND RFs1 Connect |
|
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 |
|
366 OUTSTANDING |
|
367 COMMAND RFs1 Close |
|
368 COMMAND RFs1 ~ |
|
369 END_TEST_BLOCK |
|
370 END_TESTCASE PBASE-F32-RFS-PublicApi-0018 |
|
371 |
|
372 |
|
373 START_TESTCASE PBASE-F32-RFS-PublicApi-0025 |
|
374 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0025 |
|
375 //! @SYMAPI RFs |
|
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. |
|
384 //! @SYMTestType CIT |
|
385 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
386 CREATE_OBJECT RFs RFs1 |
|
387 COMMAND RFs1 new |
|
388 COMMAND RFs1 Connect |
|
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 |
|
393 COMMAND RFs1 Close |
|
394 COMMAND RFs1 ~ |
|
395 END_TEST_BLOCK |
|
396 END_TESTCASE PBASE-F32-RFS-PublicApi-0025 |
|
397 |
|
398 |
|
399 START_TESTCASE PBASE-F32-RFS-PublicApi-0026 |
|
400 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0026 |
|
401 //! @SYMAPI RFs |
|
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. |
|
411 //! @SYMTestType CIT |
|
412 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
413 CREATE_OBJECT RFs RFs1 |
|
414 COMMAND RFs1 new |
|
415 COMMAND RFs1 Connect |
|
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 |
|
418 COMMAND RFs1 Close |
|
419 COMMAND RFs1 ~ |
|
420 END_TEST_BLOCK |
|
421 END_TESTCASE PBASE-F32-RFS-PublicApi-0026 |
|
422 |
|
423 |
|
424 START_TESTCASE PBASE-F32-RFS-PublicApi-0028 |
|
425 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0028 |
|
426 //! @SYMAPI RFs |
|
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. |
|
435 //! @SYMTestType CIT |
|
436 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
437 CREATE_OBJECT RFs RFs1 |
|
438 COMMAND RFs1 new |
|
439 COMMAND RFs1 Connect |
|
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 |
|
444 COMMAND RFs1 Close |
|
445 COMMAND RFs1 ~ |
|
446 END_TEST_BLOCK |
|
447 END_TESTCASE PBASE-F32-RFS-PublicApi-0028 |
|
448 |
|
449 |
|
450 START_TESTCASE PBASE-F32-RFS-PublicApi-0029 |
|
451 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0029 |
|
452 //! @SYMAPI RFs |
|
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. |
|
462 //! @SYMTestType CIT |
|
463 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
464 CREATE_OBJECT RFs RFs1 |
|
465 COMMAND RFs1 new |
|
466 COMMAND RFs1 Connect |
|
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 |
|
469 COMMAND RFs1 Close |
|
470 COMMAND RFs1 ~ |
|
471 END_TEST_BLOCK |
|
472 END_TESTCASE PBASE-F32-RFS-PublicApi-0029 |
|
473 |
|
474 |
|
475 START_TESTCASE PBASE-F32-RFS-PublicApi-0031 |
|
476 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0031 |
|
477 //! @SYMAPI RFs |
|
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. |
|
486 //! @SYMTestType CIT |
|
487 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
488 CREATE_OBJECT RFs RFs1 |
|
489 COMMAND RFs1 new |
|
490 COMMAND RFs1 Connect |
|
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 |
|
495 COMMAND RFs1 Close |
|
496 COMMAND RFs1 ~ |
|
497 END_TEST_BLOCK |
|
498 END_TESTCASE PBASE-F32-RFS-PublicApi-0031 |
|
499 |
|
500 |
|
501 START_TESTCASE PBASE-F32-RFS-PublicApi-0032 |
|
502 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0032 |
|
503 //! @SYMAPI RFs |
|
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. |
|
513 //! @SYMTestType CIT |
|
514 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
515 CREATE_OBJECT RFs RFs1 |
|
516 COMMAND RFs1 new |
|
517 COMMAND RFs1 Connect |
|
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 |
|
520 COMMAND RFs1 Close |
|
521 COMMAND RFs1 ~ |
|
522 END_TEST_BLOCK |
|
523 END_TESTCASE PBASE-F32-RFS-PublicApi-0032 |
|
524 |
|
525 |
|
526 START_TESTCASE PBASE-F32-RFS-PublicApi-0034 |
|
527 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0034 |
|
528 //! @SYMAPI RFs |
|
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 |
|
537 //! @SYMTestType CIT |
|
538 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
539 CREATE_OBJECT RFs RFs1 |
|
540 COMMAND RFs1 new |
|
541 COMMAND RFs1 Connect |
|
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 |
|
546 COMMAND RFs1 Close |
|
547 COMMAND RFs1 ~ |
|
548 END_TEST_BLOCK |
|
549 END_TESTCASE PBASE-F32-RFS-PublicApi-0034 |
|
550 |
|
551 |
|
552 START_TESTCASE PBASE-F32-RFS-PublicApi-0035 |
|
553 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0035 |
|
554 //! @SYMAPI RFs |
|
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. |
|
564 //! @SYMTestType CIT |
|
565 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
566 CREATE_OBJECT RFs RFs1 |
|
567 COMMAND RFs1 new |
|
568 COMMAND RFs1 Connect |
|
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 |
|
572 COMMAND RFs1 Close |
|
573 COMMAND RFs1 ~ |
|
574 END_TEST_BLOCK |
|
575 END_TESTCASE PBASE-F32-RFS-PublicApi-0035 |
|
576 |
|
577 |
|
578 START_TESTCASE PBASE-F32-RFS-PublicApi-0037 |
|
579 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0037 |
|
580 //! @SYMAPI RFs |
|
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 |
|
589 //! @SYMTestType CIT |
|
590 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
591 CREATE_OBJECT RFs RFs1 |
|
592 COMMAND RFs1 new |
|
593 COMMAND RFs1 Connect |
|
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 |
|
598 COMMAND RFs1 Close |
|
599 COMMAND RFs1 ~ |
|
600 END_TEST_BLOCK |
|
601 END_TESTCASE PBASE-F32-RFS-PublicApi-0037 |
|
602 |
|
603 |
|
604 START_TESTCASE PBASE-F32-RFS-PublicApi-0038 |
|
605 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0038 |
|
606 //! @SYMAPI RFs |
|
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 |
|
616 //! @SYMTestType CIT |
|
617 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
618 CREATE_OBJECT RFs RFs1 |
|
619 COMMAND RFs1 new |
|
620 COMMAND RFs1 Connect |
|
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 |
|
626 COMMAND RFs1 Close |
|
627 COMMAND RFs1 ~ |
|
628 END_TEST_BLOCK |
|
629 END_TESTCASE PBASE-F32-RFS-PublicApi-0038 |
|
630 |
|
631 |
|
632 START_TESTCASE PBASE-F32-RFS-PublicApi-0040 |
|
633 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0040 |
|
634 //! @SYMAPI RFs |
|
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. |
|
644 //! @SYMTestType CIT |
|
645 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
646 CREATE_OBJECT RFs RFs1 |
|
647 COMMAND RFs1 new |
|
648 COMMAND RFs1 Connect |
|
649 COMMAND !Error=-1 RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0040-001-DismountFileSystem_command03 |
|
650 COMMAND RFs1 Close |
|
651 COMMAND RFs1 ~ |
|
652 END_TEST_BLOCK |
|
653 END_TESTCASE PBASE-F32-RFS-PublicApi-0040 |
|
654 |
|
655 |
|
656 START_TESTCASE PBASE-F32-RFS-PublicApi-0041 |
|
657 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0041 |
|
658 //! @SYMAPI RFs |
|
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 |
|
667 //! @SYMTestType CIT |
|
668 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
669 CREATE_OBJECT RFs RFs1 |
|
670 COMMAND RFs1 new |
|
671 COMMAND RFs1 Connect |
|
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 |
|
676 COMMAND RFs1 Close |
|
677 COMMAND RFs1 ~ |
|
678 END_TEST_BLOCK |
|
679 END_TESTCASE PBASE-F32-RFS-PublicApi-0041 |
|
680 |
|
681 |
|
682 START_TESTCASE PBASE-F32-RFS-PublicApi-0046 |
|
683 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0046 |
|
684 //! @SYMAPI RFs |
|
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 |
|
696 //! @SYMTestType CIT |
|
697 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
698 CREATE_OBJECT RFs RFs1 |
|
699 COMMAND RFs1 new |
|
700 COMMAND RFs1 Connect |
|
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 |
|
705 COMMAND RFs1 Close |
|
706 COMMAND RFs1 ~ |
|
707 END_TEST_BLOCK |
|
708 END_TESTCASE PBASE-F32-RFS-PublicApi-0046 |
|
709 |
|
710 |
|
711 START_TESTCASE PBASE-F32-RFS-PublicApi-0048 |
|
712 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0048 |
|
713 //! @SYMAPI RFs |
|
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 |
|
722 //! @SYMTestType CIT |
|
723 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
724 CREATE_OBJECT RFs RFs1 |
|
725 COMMAND RFs1 new |
|
726 COMMAND RFs1 Connect |
|
727 COMMAND !Error=-1 RFs1 MountExtension PBASE-F32-RFS-PublicApi-0048-001-MountExtension_command03 |
|
728 COMMAND RFs1 Close |
|
729 COMMAND RFs1 ~ |
|
730 END_TEST_BLOCK |
|
731 END_TESTCASE PBASE-F32-RFS-PublicApi-0048 |
|
732 |
|
733 |
|
734 START_TESTCASE PBASE-F32-RFS-PublicApi-0050 |
|
735 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0050 |
|
736 //! @SYMAPI RFs |
|
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 |
|
745 //! @SYMTestType CIT |
|
746 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
747 CREATE_OBJECT RFs RFs1 |
|
748 COMMAND RFs1 new |
|
749 COMMAND RFs1 Connect |
|
750 COMMAND !Error=-1 RFs1 DismountExtension PBASE-F32-RFS-PublicApi-0050-001-DismountExtension_command03 |
|
751 COMMAND RFs1 Close |
|
752 COMMAND RFs1 ~ |
|
753 END_TEST_BLOCK |
|
754 END_TESTCASE PBASE-F32-RFS-PublicApi-0050 |
|
755 |
|
756 |
|
757 START_TESTCASE PBASE-F32-RFS-PublicApi-0054 |
|
758 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0054 |
|
759 //! @SYMAPI RFs |
|
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 |
|
769 //! @SYMTestType CIT |
|
770 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
771 CREATE_OBJECT RFs RFs1 |
|
772 COMMAND RFs1 new |
|
773 COMMAND RFs1 Connect |
|
774 COMMAND !Error=-1 RFs1 ExtensionName PBASE-F32-RFS-PublicApi-0054-001-ExtensionName_command03 |
|
775 COMMAND RFs1 Close |
|
776 COMMAND RFs1 ~ |
|
777 END_TEST_BLOCK |
|
778 END_TESTCASE PBASE-F32-RFS-PublicApi-0054 |
|
779 |
|
780 |
|
781 START_TESTCASE PBASE-F32-RFS-PublicApi-0059 |
|
782 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0059 |
|
783 //! @SYMAPI RFs |
|
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 |
|
792 //! @SYMTestType CIT |
|
793 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
794 CREATE_OBJECT RFs RFs1 |
|
795 COMMAND RFs1 new |
|
796 COMMAND RFs1 Connect |
|
797 COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0059-001-FileSystemName_command03 |
|
798 COMMAND RFs1 NotifyDismount PBASE-F32-RFS-PublicApi-0059-001-NotifyDismount_command04 |
|
799 OUTSTANDING |
|
800 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0059-001-MountFileSystem_command06 |
|
801 COMMAND RFs1 Close |
|
802 COMMAND RFs1 ~ |
|
803 END_TEST_BLOCK |
|
804 END_TESTCASE PBASE-F32-RFS-PublicApi-0059 |
|
805 |
|
806 |
|
807 START_TESTCASE PBASE-F32-RFS-PublicApi-0060 |
|
808 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0060 |
|
809 //! @SYMAPI RFs |
|
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 |
|
818 //! @SYMTestType CIT |
|
819 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
820 CREATE_OBJECT RFs RFs1 |
|
821 COMMAND RFs1 new |
|
822 COMMAND RFs1 Connect |
|
823 COMMAND !Error=-1 RFs1 AllowDismount PBASE-F32-RFS-PublicApi-0060-001-AllowDismount_command03 |
|
824 COMMAND RFs1 Close |
|
825 COMMAND RFs1 ~ |
|
826 END_TEST_BLOCK |
|
827 END_TESTCASE PBASE-F32-RFS-PublicApi-0060 |
|
828 |
|
829 |
|
830 START_TESTCASE PBASE-F32-RFS-PublicApi-0069 |
|
831 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0069 |
|
832 //! @SYMAPI RFs |
|
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 |
|
842 //! @SYMTestType CIT |
|
843 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
844 CREATE_OBJECT RFs RFs1 |
|
845 COMMAND RFs1 new |
|
846 COMMAND RFs1 Connect |
|
847 COMMAND !Error=-1 RFs1 SwapFileSystem PBASE-F32-RFS-PublicApi-0069-001-SwapFileSystem_command03 |
|
848 COMMAND RFs1 Close |
|
849 COMMAND RFs1 ~ |
|
850 END_TEST_BLOCK |
|
851 END_TESTCASE PBASE-F32-RFS-PublicApi-0069 |
|
852 |
|
853 |
|
854 START_TESTCASE PBASE-F32-RFS-PublicApi-0070 |
|
855 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0070 |
|
856 //! @SYMAPI RFs |
|
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 |
|
866 //! @SYMTestType CIT |
|
867 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
868 CREATE_OBJECT RFs RFs1 |
|
869 COMMAND RFs1 new |
|
870 COMMAND RFs1 Connect |
|
871 COMMAND !Error=-1 RFs1 SwapFileSystem PBASE-F32-RFS-PublicApi-0070-001-SwapFileSystem_command03 |
|
872 COMMAND RFs1 Close |
|
873 COMMAND RFs1 ~ |
|
874 END_TEST_BLOCK |
|
875 END_TESTCASE PBASE-F32-RFS-PublicApi-0070 |
|
876 |
|
877 START_TESTCASE PBASE-F32-RFS-PublicApi-0072 |
|
878 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0072 |
|
879 //! @SYMAPI RFs |
|
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. |
|
892 //! @SYMTestType CIT |
|
893 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
894 CREATE_OBJECT RFs RFs1 |
|
895 COMMAND RFs1 new |
|
896 COMMAND RFs1 Connect |
|
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 |
|
901 OUTSTANDING |
|
902 COMMAND RFs1 Close |
|
903 COMMAND RFs1 ~ |
|
904 END_TEST_BLOCK |
|
905 END_TESTCASE PBASE-F32-RFS-PublicApi-0072 |
|
906 |
|
907 |
|
908 START_TESTCASE PBASE-F32-RFS-PublicApi-0075 |
|
909 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0075 |
|
910 //! @SYMAPI RFs |
|
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. |
|
920 //! 7. Call Close(). |
|
921 //! @SYMTestStatus Implemented |
|
922 //! @SYMTestPriority High |
|
923 //! @SYMTestExpectedResults Doesn't cause panic. |
|
924 //! @SYMTestType CIT |
|
925 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
926 CREATE_OBJECT RFs RFs1 |
|
927 COMMAND RFs1 new |
|
928 COMMAND RFs1 Connect |
|
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 |
|
932 OUTSTANDING |
|
933 COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-0075-001-NotifyChange_command07 |
|
934 COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0075-001-MountFileSystem_command08 |
|
935 OUTSTANDING |
|
936 COMMAND RFs1 Close |
|
937 COMMAND RFs1 ~ |
|
938 END_TEST_BLOCK |
|
939 END_TESTCASE PBASE-F32-RFS-PublicApi-0075 |
|
940 |
|
941 |
|
942 START_TESTCASE PBASE-F32-RFS-PublicApi-0014 |
|
943 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0014 |
|
944 //! @SYMAPI RFs |
|
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. |
|
949 //! 3. Call Close(). |
|
950 //! @SYMTestStatus Implemented |
|
951 //! @SYMTestPriority High |
|
952 //! @SYMTestExpectedResults Check that AddCompositeMount() returns KErrNotSupported (-5). |
|
953 //! @SYMTestType CIT |
|
954 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
955 CREATE_OBJECT RFs RFs1 |
|
956 COMMAND RFs1 new |
|
957 COMMAND RFs1 Connect |
|
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 |
|
962 COMMAND RFs1 Close |
|
963 COMMAND RFs1 ~ |
|
964 END_TEST_BLOCK |
|
965 END_TESTCASE PBASE-F32-RFS-PublicApi-0014 |
|
966 |
|
967 |
|
968 START_TESTCASE PBASE-F32-RFS-PublicApi-0036 |
|
969 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0036 |
|
970 //! @SYMAPI RFs |
|
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 |
|
980 //! @SYMTestType CIT |
|
981 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini |
|
982 CREATE_OBJECT RFs RFs1 |
|
983 COMMAND RFs1 new |
|
984 COMMAND RFs1 Connect |
|
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 |
|
990 COMMAND RFs1 Close |
|
991 COMMAND RFs1 ~ |
|
992 END_TEST_BLOCK |
|
993 END_TESTCASE PBASE-F32-RFS-PublicApi-0036 |
|
994 |
|
995 |
|
996 START_TESTCASE PBASE-F32-RFS-PublicApi-0043 |
|
997 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0043 |
|
998 //! @SYMAPI RFs |
|
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 |
|
1010 COMMAND RFs1 new |
|
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 |
|
1016 COMMAND RFs1 Close |
|
1017 COMMAND RFs1 ~ |
|
1018 END_TEST_BLOCK |
|
1019 END_TESTCASE PBASE-F32-RFS-PublicApi-0043 |
|
1020 |
|
1021 |
|
1022 START_TESTCASE PBASE-F32-RFS-PublicApi-0063 |
|
1023 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0063 |
|
1024 //! @SYMAPI RFs |
|
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 |
|
1036 COMMAND RFs1 new |
|
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 |
|
1042 COMMAND RFs1 Close |
|
1043 COMMAND RFs1 ~ |
|
1044 END_TEST_BLOCK |
|
1045 END_TESTCASE PBASE-F32-RFS-PublicApi-0063 |
|
1046 |
|
1047 |
|
1048 START_TESTCASE PBASE-F32-RFS-PublicApi-0064 |
|
1049 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0064 |
|
1050 //! @SYMAPI RFs |
|
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 |
|
1062 COMMAND RFs1 new |
|
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 |
|
1068 COMMAND RFs1 Close |
|
1069 COMMAND RFs1 ~ |
|
1070 END_TEST_BLOCK |
|
1071 END_TESTCASE PBASE-F32-RFS-PublicApi-0064 |
|
1072 |
|
1073 |
|
1074 START_TESTCASE PBASE-F32-RFS-PublicApi-0065 |
|
1075 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0065 |
|
1076 //! @SYMAPI RFs |
|
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 |
|
1088 COMMAND RFs1 new |
|
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 |
|
1094 COMMAND RFs1 Close |
|
1095 COMMAND RFs1 ~ |
|
1096 END_TEST_BLOCK |
|
1097 END_TESTCASE PBASE-F32-RFS-PublicApi-0065 |
|
1098 |
|
1099 |
|
1100 START_TESTCASE PBASE-F32-RFS-PublicApi-0066 |
|
1101 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0066 |
|
1102 //! @SYMAPI RFs |
|
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 |
|
1114 COMMAND RFs1 new |
|
1115 COMMAND RFs1 Connect |
|
1116 COMMAND !Error=-5 RFs1 AddCompositeMount PBASE-F32-RFS-PublicApi-0066-001-AddCompositeMount_command03 |
|
1117 COMMAND RFs1 Close |
|
1118 COMMAND RFs1 ~ |
|
1119 END_TEST_BLOCK |
|
1120 END_TESTCASE PBASE-F32-RFS-PublicApi-0066 |
|
1121 |
|
1122 |
|
1123 START_TESTCASE PBASE-F32-RFS-PublicApi-0067 |
|
1124 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0067 |
|
1125 //! @SYMAPI RFs |
|
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 |
|
1137 COMMAND RFs1 new |
|
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 |
|
1143 COMMAND RFs1 Close |
|
1144 COMMAND RFs1 ~ |
|
1145 END_TEST_BLOCK |
|
1146 END_TESTCASE PBASE-F32-RFS-PublicApi-0067 |
|
1147 |
|
1148 |
|
1149 START_TESTCASE PBASE-F32-RFS-PublicApi-0068 |
|
1150 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0068 |
|
1151 //! @SYMAPI RFs |
|
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 |
|
1163 COMMAND RFs1 new |
|
1164 COMMAND RFs1 Connect |
|
1165 COMMAND !Error=-5 RFs1 AddCompositeMount PBASE-F32-RFS-PublicApi-0068-001-AddCompositeMount_command03 |
|
1166 COMMAND RFs1 Close |
|
1167 COMMAND RFs1 ~ |
|
1168 END_TEST_BLOCK |
|
1169 END_TESTCASE PBASE-F32-RFS-PublicApi-0068 |
|
1170 |
|
1171 START_TESTCASE PBASE-F32-RFS-PublicApi-0074 |
|
1172 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0074 |
|
1173 //! @SYMAPI RFs |
|
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 |
|
1185 COMMAND RFs1 new |
|
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 |
|
1191 COMMAND RFs1 Close |
|
1192 COMMAND RFs1 ~ |
|
1193 END_TEST_BLOCK |
|
1194 END_TESTCASE PBASE-F32-RFS-PublicApi-0074 |
|