author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Thu, 07 Jan 2010 13:38:45 +0200 | |
changeset 6 | 0173bcd7697c |
parent 2 | 4122176ea935 |
permissions | -rw-r--r-- |
0 | 1 |
// |
2 |
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 |
// All rights reserved. |
|
4 |
// This component and the accompanying materials are made available |
|
2
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
5 |
// under the terms of "Eclipse Public License v1.0" |
0 | 6 |
// which accompanies this distribution, and is available |
7 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 |
// |
|
9 |
// Initial Contributors: |
|
10 |
// Nokia Corporation - initial contribution. |
|
11 |
// |
|
12 |
// Contributors: |
|
13 |
// |
|
2
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
14 |
// Description: |
0 | 15 |
// |
16 |
//! @file |
|
17 |
//! @SYMTestSuiteName PBASE-F32-RFS-Mounts-PublicApi-ANY |
|
18 |
//! @SYMScriptTestEnvironment This test script requires a basic ROM. |
|
19 |
//! @SYMScriptAuthor Oleg Kuznetsov |
|
20 |
//! @SYMScriptDescription The test script contains API mounting related tests for RFs functions that don't depend on any special type of test drive. |
|
21 |
||
22 |
LOAD_SUITE T_Sfsrv |
|
23 |
||
24 |
||
25 |
START_TESTCASE PBASE-F32-RFS-PublicApi-0001 |
|
26 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0001 |
|
27 |
//! @SYMAPI RFs |
|
28 |
//! @SYMTestCaseDesc Functions AddFileSystem() and RemoveFileSystem() test. |
|
29 |
//! Uses API elements: AddFileSystem(), RemoveFileSystem() |
|
30 |
//! @SYMTestActions 1. Call Connect() method. |
|
31 |
//! 2. Call RemoveFileSystem() providing the name of the plug-in file system as an argument. |
|
32 |
//! 3. Call AddFileSystem() providing the file name of a file system plug-in as an argument. |
|
33 |
//! 4. Call Close() method. |
|
34 |
//! @SYMTestStatus Implemented |
|
35 |
//! @SYMTestPriority Critical |
|
36 |
//! @SYMTestExpectedResults Both AddFileSystem() and RemoveFileSystem() return KErrNone. |
|
37 |
//! @SYMTestType CIT |
|
38 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini |
|
39 |
CREATE_OBJECT RFs RFs1 |
|
40 |
COMMAND RFs1 new |
|
41 |
COMMAND RFs1 Connect |
|
42 |
COMMAND RFs1 AddFileSystem PBASE-F32-RFS-PublicApi-0001-001-AddFileSystem_command03 |
|
43 |
COMMAND RFs1 RemoveFileSystem PBASE-F32-RFS-PublicApi-0001-001-RemoveFileSystem_command04 |
|
44 |
COMMAND RFs1 Close |
|
45 |
COMMAND RFs1 ~ |
|
46 |
END_TEST_BLOCK |
|
47 |
END_TESTCASE PBASE-F32-RFS-PublicApi-0001 |
|
48 |
||
49 |
||
50 |
START_TESTCASE PBASE-F32-RFS-PublicApi-0003 |
|
51 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0003 |
|
52 |
//! @SYMAPI RFs |
|
53 |
//! @SYMTestCaseDesc Functions AddExtension() and RemoveExtension() test. |
|
54 |
//! The test requires a file system extension plug-in. |
|
55 |
//! Uses API elements: AddExtension(), RemoveExtension() |
|
56 |
//! @SYMTestActions 1. Call Connect() method. |
|
57 |
//! 2. Call AddExtension() providing the file name of a file system extension plug-in as an argument. |
|
58 |
//! 3. Call RemoveExtension() providing the name of the plug-in file system extension as an argument. |
|
59 |
//! 4. Call Close() method. |
|
60 |
//! @SYMTestStatus Implemented |
|
61 |
//! @SYMTestPriority Critical |
|
62 |
//! @SYMTestExpectedResults Both AddExtension() and RemoveExtension() return KErrNone. |
|
63 |
//! @SYMTestType CIT |
|
64 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini |
|
65 |
CREATE_OBJECT RFs RFs1 |
|
66 |
COMMAND RFs1 new |
|
67 |
COMMAND RFs1 Connect |
|
68 |
COMMAND RFs1 AddExtension PBASE-F32-RFS-PublicApi-0003-001-AddExtension_command03 |
|
69 |
COMMAND RFs1 RemoveExtension PBASE-F32-RFS-PublicApi-0003-001-RemoveExtension_command04 |
|
70 |
COMMAND RFs1 Close |
|
71 |
COMMAND RFs1 ~ |
|
72 |
END_TEST_BLOCK |
|
73 |
END_TESTCASE PBASE-F32-RFS-PublicApi-0003 |
|
74 |
||
75 |
||
76 |
START_TESTCASE PBASE-F32-RFS-PublicApi-0012 |
|
77 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0012 |
|
78 |
//! @SYMAPI RFs |
|
79 |
//! @SYMTestCaseDesc Function SetStartupConfiguration() test. |
|
80 |
//! Uses API elements: SetStartupConfiguration() |
|
81 |
//! @SYMTestActions 1. Call Connect(). |
|
82 |
//! 2. Call SetStartupConfiguration() providing ELoaderPriority as a command and 2 NULL pointers. |
|
83 |
//! 3. Call Close(). |
|
84 |
//! @SYMTestStatus Implemented |
|
85 |
//! @SYMTestPriority High |
|
86 |
//! @SYMTestExpectedResults Check that SetStartupConfiguration() returns KErrPermissionDenied (-46). |
|
87 |
//! @SYMTestType CIT |
|
88 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini |
|
89 |
CREATE_OBJECT RFs RFs1 |
|
90 |
COMMAND RFs1 new |
|
91 |
COMMAND RFs1 Connect |
|
92 |
COMMAND !Error=-46 RFs1 SetStartupConfiguration PBASE-F32-RFS-PublicApi-0012-001-SetStartupConfiguration_command03 |
|
93 |
COMMAND RFs1 Close |
|
94 |
COMMAND RFs1 ~ |
|
95 |
END_TEST_BLOCK |
|
96 |
END_TESTCASE PBASE-F32-RFS-PublicApi-0012 |
|
97 |
||
98 |
||
99 |
START_TESTCASE PBASE-F32-RFS-PublicApi-0013 |
|
100 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0013 |
|
101 |
//! @SYMAPI RFs |
|
102 |
//! @SYMTestCaseDesc Function SetStartupConfiguration() test. |
|
103 |
//! Uses API elements: SetStartupConfiguration() |
|
104 |
//! @SYMTestActions 1. Call Connect(). |
|
105 |
//! 2. Call SetStartupConfiguration() providing EMaxStartupConfigurationCmd as a command and 2 NULL pointers. |
|
106 |
//! 3. Call Close(). |
|
107 |
//! @SYMTestStatus Implemented |
|
108 |
//! @SYMTestPriority High |
|
109 |
//! @SYMTestExpectedResults Check that SetStartupConfiguration() returns KErrPermissionDenied (-46). |
|
110 |
//! @SYMTestType CIT |
|
111 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini |
|
112 |
CREATE_OBJECT RFs RFs1 |
|
113 |
COMMAND RFs1 new |
|
114 |
COMMAND RFs1 Connect |
|
115 |
COMMAND !Error=-46 RFs1 SetStartupConfiguration PBASE-F32-RFS-PublicApi-0013-001-SetStartupConfiguration_command03 |
|
116 |
COMMAND RFs1 Close |
|
117 |
COMMAND RFs1 ~ |
|
118 |
END_TEST_BLOCK |
|
119 |
END_TESTCASE PBASE-F32-RFS-PublicApi-0013 |
|
120 |
||
121 |
||
122 |
START_TESTCASE PBASE-F32-RFS-PublicApi-0015 |
|
123 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0015 |
|
124 |
//! @SYMAPI RFs |
|
125 |
//! @SYMTestCaseDesc Function StartupInitComplete() test. |
|
126 |
//! Uses API elements: StartupInitComplete() |
|
127 |
//! @SYMTestActions 1. Call Connect(). |
|
128 |
//! 2. Call StartupInitComplete(). |
|
129 |
//! 3. Call Close(). |
|
130 |
//! @SYMTestStatus Implemented |
|
131 |
//! @SYMTestPriority High |
|
132 |
//! @SYMTestExpectedResults Check that StartupInitComplete() returns KErrAlreadyExists (-11). |
|
133 |
//! @SYMTestType CIT |
|
134 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini |
|
135 |
CREATE_OBJECT RFs RFs1 |
|
136 |
COMMAND RFs1 new |
|
137 |
COMMAND RFs1 Connect |
|
138 |
COMMAND !AsyncError=-11 RFs1 StartupInitComplete |
|
139 |
OUTSTANDING |
|
140 |
COMMAND RFs1 Close |
|
141 |
COMMAND RFs1 ~ |
|
142 |
END_TEST_BLOCK |
|
143 |
END_TESTCASE PBASE-F32-RFS-PublicApi-0015 |
|
144 |
||
145 |
||
146 |
START_TESTCASE PBASE-F32-RFS-PublicApi-0016 |
|
147 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0016 |
|
148 |
//! @SYMAPI RFs |
|
149 |
//! @SYMTestCaseDesc Function SetLocalDriveMapping() test. |
|
150 |
//! Uses API elements: SetLocalDriveMapping() |
|
151 |
//! @SYMTestActions 1. Call Connect(). |
|
152 |
//! 2. Call SetLocalDriveMapping() with EWriteMappingsNoSet operation and 2 drives EDriveA and EDriveB set for indices 0 and 1 correspondingly. |
|
153 |
//! 3. Call Close(). |
|
154 |
//! @SYMTestStatus Implemented |
|
155 |
//! @SYMTestPriority High |
|
156 |
//! @SYMTestExpectedResults Check that SetLocalDriveMapping() returns KErrAccessDenied (-21). |
|
157 |
//! @SYMTestType CIT |
|
158 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini |
|
159 |
CREATE_OBJECT RFs RFs1 |
|
160 |
COMMAND RFs1 new |
|
161 |
COMMAND RFs1 Connect |
|
162 |
COMMAND !Error=-21 RFs1 SetLocalDriveMapping PBASE-F32-RFS-PublicApi-0016-001-SetLocalDriveMapping_command03 |
|
163 |
COMMAND RFs1 Close |
|
164 |
COMMAND RFs1 ~ |
|
165 |
END_TEST_BLOCK |
|
166 |
END_TESTCASE PBASE-F32-RFS-PublicApi-0016 |
|
167 |
||
168 |
||
169 |
START_TESTCASE PBASE-F32-RFS-PublicApi-0020 |
|
170 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0020 |
|
171 |
//! @SYMAPI RFs |
|
172 |
//! @SYMTestCaseDesc Functions AddFileSystem() test with incorrect file name of file system. |
|
173 |
//! Uses API elements: AddFileSystem(). |
|
174 |
//! @SYMTestActions 1. Call Connect() method. |
|
175 |
//! 2. Call AddFileSystem() providing the incorrect file name of a file system. |
|
176 |
//! 3. Call Close() method. |
|
177 |
//! @SYMTestStatus Implemented |
|
178 |
//! @SYMTestPriority High |
|
179 |
//! @SYMTestExpectedResults KErrNotFound |
|
180 |
//! @SYMTestType CIT |
|
181 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini |
|
182 |
CREATE_OBJECT RFs RFs1 |
|
183 |
COMMAND RFs1 new |
|
184 |
COMMAND RFs1 Connect |
|
185 |
COMMAND !Error=-1 RFs1 AddFileSystem PBASE-F32-RFS-PublicApi-0020-001-AddFileSystem_command03 |
|
186 |
COMMAND RFs1 Close |
|
187 |
COMMAND RFs1 ~ |
|
188 |
END_TEST_BLOCK |
|
189 |
END_TESTCASE PBASE-F32-RFS-PublicApi-0020 |
|
190 |
||
191 |
||
192 |
START_TESTCASE PBASE-F32-RFS-PublicApi-0021 |
|
193 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0021 |
|
194 |
//! @SYMAPI RFs |
|
195 |
//! @SYMTestCaseDesc Functions AddFileSystem() test with adding file system that already added. |
|
196 |
//! Uses API elements: AddFileSystem(). |
|
197 |
//! The test requires a file system plug-in. |
|
198 |
//! @SYMTestActions 1. Call Connect() method. |
|
199 |
//! 2. Call AddFileSystem() providing the name of a file system that already added. |
|
200 |
//! 3. Call Close() method. |
|
201 |
//! @SYMTestStatus Implemented |
|
202 |
//! @SYMTestPriority High |
|
203 |
//! @SYMTestExpectedResults KErrAlreadyExists |
|
204 |
//! @SYMTestType CIT |
|
205 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini |
|
206 |
CREATE_OBJECT RFs RFs1 |
|
207 |
COMMAND RFs1 new |
|
208 |
COMMAND RFs1 Connect |
|
209 |
COMMAND !Error=-11 RFs1 AddFileSystem PBASE-F32-RFS-PublicApi-0021-001-AddFileSystem_command03 |
|
210 |
COMMAND RFs1 Close |
|
211 |
COMMAND RFs1 ~ |
|
212 |
END_TEST_BLOCK |
|
213 |
END_TESTCASE PBASE-F32-RFS-PublicApi-0021 |
|
214 |
||
215 |
||
216 |
START_TESTCASE PBASE-F32-RFS-PublicApi-0022 |
|
217 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0022 |
|
218 |
//! @SYMAPI RFs |
|
219 |
//! @SYMTestCaseDesc Functions RemoveFileSystem() test, with incorrect file system name. |
|
220 |
//! Uses API elements: RemoveFileSystem(). |
|
221 |
//! @SYMTestActions 1. Call Connect() method. |
|
222 |
//! 2. Call RemoveFileSystem() providing the incorrect file system name. |
|
223 |
//! 3. Call Close() method. |
|
224 |
//! @SYMTestStatus Implemented |
|
225 |
//! @SYMTestPriority High |
|
226 |
//! @SYMTestExpectedResults KErrNotFound |
|
227 |
//! @SYMTestType CIT |
|
228 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini |
|
229 |
CREATE_OBJECT RFs RFs1 |
|
230 |
COMMAND RFs1 new |
|
231 |
COMMAND RFs1 Connect |
|
232 |
COMMAND !Error=-1 RFs1 RemoveFileSystem PBASE-F32-RFS-PublicApi-0022-001-RemoveFileSystem_command03 |
|
233 |
COMMAND RFs1 Close |
|
234 |
COMMAND RFs1 ~ |
|
235 |
END_TEST_BLOCK |
|
236 |
END_TESTCASE PBASE-F32-RFS-PublicApi-0022 |
|
237 |
||
238 |
||
239 |
START_TESTCASE PBASE-F32-RFS-PublicApi-0024 |
|
240 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0024 |
|
241 |
//! @SYMAPI RFs |
|
242 |
//! @SYMTestCaseDesc Functions MountFileSystem(const TDesC &aFileSystemName, TInt aDrive) test with negative drive number. |
|
243 |
//! Uses API elements: MountFileSystem(). |
|
244 |
//! @SYMTestActions 1. Call Connect() method. |
|
245 |
//! 2. Call MountFileSystem() providing the file system name and negative drive number -11. |
|
246 |
//! 3. Call Close() method. |
|
247 |
//! @SYMTestStatus Implemented |
|
248 |
//! @SYMTestPriority High |
|
249 |
//! @SYMTestExpectedResults KErrBadName. |
|
250 |
//! @SYMTestType CIT |
|
251 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini |
|
252 |
CREATE_OBJECT RFs RFs1 |
|
253 |
COMMAND RFs1 new |
|
254 |
COMMAND RFs1 Connect |
|
255 |
COMMAND !Error=-28 RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0024-001-MountFileSystem_command03 |
|
256 |
COMMAND RFs1 Close |
|
257 |
COMMAND RFs1 ~ |
|
258 |
END_TEST_BLOCK |
|
259 |
END_TESTCASE PBASE-F32-RFS-PublicApi-0024 |
|
260 |
||
261 |
||
262 |
START_TESTCASE PBASE-F32-RFS-PublicApi-0027 |
|
263 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0027 |
|
264 |
//! @SYMAPI RFs |
|
265 |
//! @SYMTestCaseDesc Functions MountFileSystem(const TDesC &aFileSystemName, TInt aDrive, TBool aIsSync) test with negative drive number. |
|
266 |
//! Uses API elements: MountFileSystem(). |
|
267 |
//! @SYMTestActions 1. Call Connect() method. |
|
268 |
//! 2. Call MountFileSystem() providing the file system name and negative drive number -11 and ETrue as a synchronization parameter. |
|
269 |
//! 3. Call Close() method. |
|
270 |
//! @SYMTestStatus Implemented |
|
271 |
//! @SYMTestPriority High |
|
272 |
//! @SYMTestExpectedResults KErrBadName. |
|
273 |
//! @SYMTestType CIT |
|
274 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini |
|
275 |
CREATE_OBJECT RFs RFs1 |
|
276 |
COMMAND RFs1 new |
|
277 |
COMMAND RFs1 Connect |
|
278 |
COMMAND !Error=-28 RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0027-001-MountFileSystem_command03 |
|
279 |
COMMAND RFs1 Close |
|
280 |
COMMAND RFs1 ~ |
|
281 |
END_TEST_BLOCK |
|
282 |
END_TESTCASE PBASE-F32-RFS-PublicApi-0027 |
|
283 |
||
284 |
||
285 |
START_TESTCASE PBASE-F32-RFS-PublicApi-0030 |
|
286 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0030 |
|
287 |
//! @SYMAPI RFs |
|
288 |
//! @SYMTestCaseDesc Functions MountFileSystem(const TDesC &aFileSystemName, TInt aDrive, TBool aIsSync) test with negative drive number. |
|
289 |
//! Uses API elements: MountFileSystem(). |
|
290 |
//! @SYMTestActions 1. Call Connect() method. |
|
291 |
//! 2. Call MountFileSystem() providing the file system name and negative drive number -11 and EFalse as a synchronization parameter. |
|
292 |
//! 3. Call Close() method. |
|
293 |
//! @SYMTestStatus Implemented |
|
294 |
//! @SYMTestPriority High |
|
295 |
//! @SYMTestExpectedResults KErrBadName. |
|
296 |
//! @SYMTestType CIT |
|
297 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini |
|
298 |
CREATE_OBJECT RFs RFs1 |
|
299 |
COMMAND RFs1 new |
|
300 |
COMMAND RFs1 Connect |
|
301 |
COMMAND !Error=-28 RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0030-001-MountFileSystem_command03 |
|
302 |
COMMAND RFs1 Close |
|
303 |
COMMAND RFs1 ~ |
|
304 |
END_TEST_BLOCK |
|
305 |
END_TESTCASE PBASE-F32-RFS-PublicApi-0030 |
|
306 |
||
307 |
||
308 |
START_TESTCASE PBASE-F32-RFS-PublicApi-0033 |
|
309 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0033 |
|
310 |
//! @SYMAPI RFs |
|
311 |
//! @SYMTestCaseDesc Functions MountFileSystemAndScan(const TDesC &aFileSystemName, TInt aDrive, TBool &aIsMountSuccess) test with negative drive number. |
|
312 |
//! Uses API elements: MountFileSystemAndScan(). |
|
313 |
//! @SYMTestActions 1. Call Connect() method. |
|
314 |
//! 2. Call MountFileSystemAndScan() providing the "Fat" file system name and negative drive number -11. |
|
315 |
//! 3. Call Close() method. |
|
316 |
//! @SYMTestStatus Implemented |
|
317 |
//! @SYMTestPriority High |
|
318 |
//! @SYMTestExpectedResults KErrBadName |
|
319 |
//! @SYMTestType CIT |
|
320 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini |
|
321 |
CREATE_OBJECT RFs RFs1 |
|
322 |
COMMAND RFs1 new |
|
323 |
COMMAND RFs1 Connect |
|
324 |
COMMAND !Error=-28 RFs1 MountFileSystemAndScan PBASE-F32-RFS-PublicApi-0033-001-MountFileSystemAndScan_command03 |
|
325 |
COMMAND RFs1 Close |
|
326 |
COMMAND RFs1 ~ |
|
327 |
END_TEST_BLOCK |
|
328 |
END_TESTCASE PBASE-F32-RFS-PublicApi-0033 |
|
329 |
||
330 |
||
331 |
START_TESTCASE PBASE-F32-RFS-PublicApi-0039 |
|
332 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0039 |
|
333 |
//! @SYMAPI RFs |
|
334 |
//! @SYMTestCaseDesc Functions DismountFileSystem() test with negative drive number. |
|
335 |
//! Uses API elements: DismountFileSystem(). |
|
336 |
//! @SYMTestActions 1. Call Connect() method. |
|
337 |
//! 2. Call DismountFileSystem() providing the file system name and negative drive number -11. |
|
338 |
//! 3. Call Close() method. |
|
339 |
//! @SYMTestStatus Implemented |
|
340 |
//! @SYMTestPriority High |
|
341 |
//! @SYMTestExpectedResults KErrBadName, bad name of drive |
|
342 |
//! @SYMTestType CIT |
|
343 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini |
|
344 |
CREATE_OBJECT RFs RFs1 |
|
345 |
COMMAND RFs1 new |
|
346 |
COMMAND RFs1 Connect |
|
347 |
COMMAND !Error=-28 RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0039-001-DismountFileSystem_command03 |
|
348 |
COMMAND RFs1 Close |
|
349 |
COMMAND RFs1 ~ |
|
350 |
END_TEST_BLOCK |
|
351 |
END_TESTCASE PBASE-F32-RFS-PublicApi-0039 |
|
352 |
||
353 |
||
354 |
START_TESTCASE PBASE-F32-RFS-PublicApi-0042 |
|
355 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0042 |
|
356 |
//! @SYMAPI RFs |
|
357 |
//! @SYMTestCaseDesc Functions FileSystemName() test with negative drive number. |
|
358 |
//! Uses API elements: FileSystemName(). |
|
359 |
//! @SYMTestActions 1. Call Connect() method. |
|
360 |
//! 2. Call FileSystemName() providing negative drive number(-11). |
|
361 |
//! 3. Call Close() method. |
|
362 |
//! @SYMTestStatus Implemented |
|
363 |
//! @SYMTestPriority High |
|
364 |
//! @SYMTestExpectedResults KErrArgument |
|
365 |
//! @SYMTestType CIT |
|
366 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini |
|
367 |
CREATE_OBJECT RFs RFs1 |
|
368 |
COMMAND RFs1 new |
|
369 |
COMMAND RFs1 Connect |
|
370 |
COMMAND !Error=-6 RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0042-001-FileSystemName_command03 |
|
371 |
COMMAND RFs1 Close |
|
372 |
COMMAND RFs1 ~ |
|
373 |
END_TEST_BLOCK |
|
374 |
END_TESTCASE PBASE-F32-RFS-PublicApi-0042 |
|
375 |
||
376 |
||
377 |
START_TESTCASE PBASE-F32-RFS-PublicApi-0044 |
|
378 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0044 |
|
379 |
//! @SYMAPI RFs |
|
380 |
//! @SYMTestCaseDesc Functions AddExtension() test with incorrect file system extension name. |
|
381 |
//! Uses API elements: AddExtension(). |
|
382 |
//! @SYMTestActions 1. Call Connect() method. |
|
383 |
//! 2. Call AddExtension() providing bad extension file name. |
|
384 |
//! 3. Call Close() method. |
|
385 |
//! @SYMTestStatus Implemented |
|
386 |
//! @SYMTestPriority High |
|
387 |
//! @SYMTestExpectedResults KErrNotFound |
|
388 |
//! @SYMTestType CIT |
|
389 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini |
|
390 |
CREATE_OBJECT RFs RFs1 |
|
391 |
COMMAND RFs1 new |
|
392 |
COMMAND RFs1 Connect |
|
393 |
COMMAND !Error=-1 RFs1 AddExtension PBASE-F32-RFS-PublicApi-0044-001-AddExtension_command03 |
|
394 |
COMMAND RFs1 Close |
|
395 |
COMMAND RFs1 ~ |
|
396 |
END_TEST_BLOCK |
|
397 |
END_TESTCASE PBASE-F32-RFS-PublicApi-0044 |
|
398 |
||
399 |
||
400 |
START_TESTCASE PBASE-F32-RFS-PublicApi-0045 |
|
401 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0045 |
|
402 |
//! @SYMAPI RFs |
|
403 |
//! @SYMTestCaseDesc Functions AddExtension() test, add file system extension twice. |
|
404 |
//! Uses API elements: AddExtension(), RemoveExtension(). |
|
405 |
//! The test requires a file system extension plug-in. |
|
406 |
//! @SYMTestActions 1. Call Connect() method. |
|
407 |
//! 2. Call AddExtension() providing plug-in extension name. |
|
408 |
//! 3. Call AddExtension() providing plug-in extension name. |
|
409 |
//! 4. Call RemoveExtension() providing plug-in extension name. |
|
410 |
//! 5. Call Close() method. |
|
411 |
//! @SYMTestStatus Implemented |
|
412 |
//! @SYMTestPriority High |
|
413 |
//! @SYMTestExpectedResults KErrAlreadyExists |
|
414 |
//! @SYMTestType CIT |
|
415 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini |
|
416 |
CREATE_OBJECT RFs RFs1 |
|
417 |
COMMAND RFs1 new |
|
418 |
COMMAND RFs1 Connect |
|
419 |
COMMAND RFs1 AddExtension PBASE-F32-RFS-PublicApi-0045-001-AddExtension_command03 |
|
420 |
COMMAND !Error=-11 RFs1 AddExtension PBASE-F32-RFS-PublicApi-0045-001-AddExtension_command04 |
|
421 |
COMMAND RFs1 RemoveExtension PBASE-F32-RFS-PublicApi-0045-001-RemoveExtension_command05 |
|
422 |
COMMAND RFs1 Close |
|
423 |
COMMAND RFs1 ~ |
|
424 |
END_TEST_BLOCK |
|
425 |
END_TESTCASE PBASE-F32-RFS-PublicApi-0045 |
|
426 |
||
427 |
||
428 |
START_TESTCASE PBASE-F32-RFS-PublicApi-0047 |
|
429 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0047 |
|
430 |
//! @SYMAPI RFs |
|
431 |
//! @SYMTestCaseDesc Functions MountExtension() test with negative drive number. |
|
432 |
//! Uses API elements: MountExtension(), AddExtension(), RemoveExtension(). |
|
433 |
//! The test requires a file system extension plug-in. |
|
434 |
//! @SYMTestActions 1. Call Connect() method. |
|
435 |
//! 2. Call AddExtension() providing plug-in extension name. |
|
436 |
//! 3. Call MountExtension() providing plug-in extension name and negative drive number (-11). |
|
437 |
//! 4. Call RemoveExtension() providing plug-in extension name. |
|
438 |
//! 5. Call Close() method. |
|
439 |
//! @SYMTestStatus Implemented |
|
440 |
//! @SYMTestPriority High |
|
441 |
//! @SYMTestExpectedResults KErrBadName |
|
442 |
//! @SYMTestType CIT |
|
443 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini |
|
444 |
CREATE_OBJECT RFs RFs1 |
|
445 |
COMMAND RFs1 new |
|
446 |
COMMAND RFs1 Connect |
|
447 |
COMMAND RFs1 AddExtension PBASE-F32-RFS-PublicApi-0047-001-AddExtension_command03 |
|
448 |
COMMAND !Error=-28 RFs1 MountExtension PBASE-F32-RFS-PublicApi-0047-001-MountExtension_command04 |
|
449 |
COMMAND RFs1 RemoveExtension PBASE-F32-RFS-PublicApi-0047-001-RemoveExtension_command05 |
|
450 |
COMMAND RFs1 Close |
|
451 |
COMMAND RFs1 ~ |
|
452 |
END_TEST_BLOCK |
|
453 |
END_TESTCASE PBASE-F32-RFS-PublicApi-0047 |
|
454 |
||
455 |
||
456 |
START_TESTCASE PBASE-F32-RFS-PublicApi-0051 |
|
457 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0051 |
|
458 |
//! @SYMAPI RFs |
|
459 |
//! @SYMTestCaseDesc Functions DismountExtension() test with negative drive number. |
|
460 |
//! Uses API elements: DismountExtension(), AddExtension(), RemoveExtension(). |
|
461 |
//! The test requires a file system extension plug-in. |
|
462 |
//! @SYMTestActions 1. Call Connect() method. |
|
463 |
//! 2. Call AddExtension() providing plug-in extension name. |
|
464 |
//! 3. Call DismountExtension() providing plug-in extension name and negative drive number (-11). |
|
465 |
//! 4. Call RemoveExtension() providing plug-in extension name. |
|
466 |
//! 5. Call Close() method. |
|
467 |
//! @SYMTestStatus Implemented |
|
468 |
//! @SYMTestPriority High |
|
469 |
//! @SYMTestExpectedResults KErrBadName |
|
470 |
//! @SYMTestType CIT |
|
471 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini |
|
472 |
CREATE_OBJECT RFs RFs1 |
|
473 |
COMMAND RFs1 new |
|
474 |
COMMAND RFs1 Connect |
|
475 |
COMMAND RFs1 AddExtension PBASE-F32-RFS-PublicApi-0051-001-AddExtension_command03 |
|
476 |
COMMAND !Error=-28 RFs1 DismountExtension PBASE-F32-RFS-PublicApi-0051-001-DismountExtension_command04 |
|
477 |
COMMAND RFs1 RemoveExtension PBASE-F32-RFS-PublicApi-0051-001-RemoveExtension_command05 |
|
478 |
COMMAND RFs1 Close |
|
479 |
COMMAND RFs1 ~ |
|
480 |
END_TEST_BLOCK |
|
481 |
END_TESTCASE PBASE-F32-RFS-PublicApi-0051 |
|
482 |
||
483 |
||
484 |
START_TESTCASE PBASE-F32-RFS-PublicApi-0053 |
|
485 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0053 |
|
486 |
//! @SYMAPI RFs |
|
487 |
//! @SYMTestCaseDesc Functions RemoveExtension() test with incorrect file system extension name. |
|
488 |
//! Uses API elements: RemoveExtension(). |
|
489 |
//! @SYMTestActions 1. Call Connect() method. |
|
490 |
//! 2. Call RemoveExtension() providing bad extension name. |
|
491 |
//! 3. Call Close() method. |
|
492 |
//! @SYMTestStatus Implemented |
|
493 |
//! @SYMTestPriority High |
|
494 |
//! @SYMTestExpectedResults KErrNotFound |
|
495 |
//! @SYMTestType CIT |
|
496 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini |
|
497 |
CREATE_OBJECT RFs RFs1 |
|
498 |
COMMAND RFs1 new |
|
499 |
COMMAND RFs1 Connect |
|
500 |
COMMAND !Error=-1 RFs1 RemoveExtension PBASE-F32-RFS-PublicApi-0053-001-RemoveExtension_command03 |
|
501 |
COMMAND RFs1 Close |
|
502 |
COMMAND RFs1 ~ |
|
503 |
END_TEST_BLOCK |
|
504 |
END_TESTCASE PBASE-F32-RFS-PublicApi-0053 |
|
505 |
||
506 |
||
507 |
START_TESTCASE PBASE-F32-RFS-PublicApi-0055 |
|
508 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0055 |
|
509 |
//! @SYMAPI RFs |
|
510 |
//! @SYMTestCaseDesc Functions ExtensionName() test with negative drive number. |
|
511 |
//! Uses API elements: ExtensionName(). |
|
512 |
//! @SYMTestActions 1. Call Connect() method. |
|
513 |
//! 2. Call ExtensionName() providing negative drive number and first position (0). |
|
514 |
//! 3. Call Close() method. |
|
515 |
//! @SYMTestStatus Implemented |
|
516 |
//! @SYMTestPriority High |
|
517 |
//! @SYMTestExpectedResults KErrBadName |
|
518 |
//! @SYMTestType CIT |
|
519 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini |
|
520 |
CREATE_OBJECT RFs RFs1 |
|
521 |
COMMAND RFs1 new |
|
522 |
COMMAND RFs1 Connect |
|
523 |
COMMAND !Error=-28 RFs1 ExtensionName PBASE-F32-RFS-PublicApi-0055-001-ExtensionName_command03 |
|
524 |
COMMAND RFs1 Close |
|
525 |
COMMAND RFs1 ~ |
|
526 |
END_TEST_BLOCK |
|
527 |
END_TESTCASE PBASE-F32-RFS-PublicApi-0055 |
|
528 |
||
529 |
||
530 |
START_TESTCASE PBASE-F32-RFS-PublicApi-0056 |
|
531 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0056 |
|
532 |
//! @SYMAPI RFs |
|
533 |
//! @SYMTestCaseDesc Functions RemountDrive() test with negative drive number. |
|
534 |
//! Uses API elements: RemountDrive(). |
|
535 |
//! @SYMTestActions 1. Call Connect() method. |
|
536 |
//! 2. Call RemountDrive() providing negative drive number and flag 0x00000001 (1). |
|
537 |
//! 3. Call Close() method. |
|
538 |
//! @SYMTestStatus Implemented |
|
539 |
//! @SYMTestPriority High |
|
540 |
//! @SYMTestExpectedResults KErrBadName |
|
541 |
//! @SYMTestType CIT |
|
542 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini |
|
543 |
CREATE_OBJECT RFs RFs1 |
|
544 |
COMMAND RFs1 new |
|
545 |
COMMAND RFs1 Connect |
|
546 |
COMMAND !Error=-28 RFs1 RemountDrive PBASE-F32-RFS-PublicApi-0056-001-RemountDrive_command03 |
|
547 |
COMMAND RFs1 Close |
|
548 |
COMMAND RFs1 ~ |
|
549 |
END_TEST_BLOCK |
|
550 |
END_TESTCASE PBASE-F32-RFS-PublicApi-0056 |
|
551 |
||
552 |
||
553 |
START_TESTCASE PBASE-F32-RFS-PublicApi-0058 |
|
554 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0058 |
|
555 |
//! @SYMAPI RFs |
|
556 |
//! @SYMTestCaseDesc Functions NotifyDismount() test with negative drive number. |
|
557 |
//! Uses API elements: NotifyDismount(). |
|
558 |
//! @SYMTestActions 1. Call Connect() method. |
|
559 |
//! 2. Call NotifyDismount() providing negative drive number and mode EFsDismountForceDismount and starts waiting for a notification on the background. |
|
560 |
//! 3. Call Close() method. |
|
561 |
//! @SYMTestStatus Implemented |
|
562 |
//! @SYMTestPriority High |
|
563 |
//! @SYMTestExpectedResults KErrBadName |
|
564 |
//! @SYMTestType CIT |
|
565 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini |
|
566 |
CREATE_OBJECT RFs RFs1 |
|
567 |
COMMAND RFs1 new |
|
568 |
COMMAND RFs1 Connect |
|
569 |
COMMAND !AsyncError=-28 RFs1 NotifyDismount PBASE-F32-RFS-PublicApi-0058-001-NotifyDismount_command03 |
|
570 |
OUTSTANDING |
|
571 |
COMMAND RFs1 Close |
|
572 |
COMMAND RFs1 ~ |
|
573 |
END_TEST_BLOCK |
|
574 |
END_TESTCASE PBASE-F32-RFS-PublicApi-0058 |
|
575 |
||
576 |
||
577 |
START_TESTCASE PBASE-F32-RFS-PublicApi-0062 |
|
578 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0062 |
|
579 |
//! @SYMAPI RFs |
|
580 |
//! @SYMTestCaseDesc Functions AllowDismount() test with negative drive number. |
|
581 |
//! Uses API elements: AllowDismount(). |
|
582 |
//! @SYMTestActions 1. Call Connect() method. |
|
583 |
//! 2. Call AllowDismount() providing negative drive number. |
|
584 |
//! 3. Call Close() method. |
|
585 |
//! @SYMTestStatus Implemented |
|
586 |
//! @SYMTestPriority High |
|
587 |
//! @SYMTestExpectedResults KErrBadName |
|
588 |
//! @SYMTestType CIT |
|
589 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini |
|
590 |
CREATE_OBJECT RFs RFs1 |
|
591 |
COMMAND RFs1 new |
|
592 |
COMMAND RFs1 Connect |
|
593 |
COMMAND !Error=-28 RFs1 AllowDismount PBASE-F32-RFS-PublicApi-0062-001-AllowDismount_command03 |
|
594 |
COMMAND RFs1 Close |
|
595 |
COMMAND RFs1 ~ |
|
596 |
END_TEST_BLOCK |
|
597 |
END_TESTCASE PBASE-F32-RFS-PublicApi-0062 |
|
598 |
||
599 |
START_TESTCASE PBASE-F32-RFS-PublicApi-0073 |
|
600 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0073 |
|
601 |
//! @SYMAPI RFs |
|
602 |
//! @SYMTestCaseDesc Function FileSystemSubType() test with negative drive number. |
|
603 |
//! Uses API elements: FileSystemSubType(). |
|
604 |
//! @SYMTestActions 1. Call Connect() method. |
|
605 |
//! 2. Call FileSystemSubType() passing the negative drive number as argument. |
|
606 |
//! 3. Call Close() method. |
|
607 |
//! @SYMTestStatus Implemented |
|
608 |
//! @SYMTestPriority Critical |
|
609 |
//! @SYMTestExpectedResults Return KErrArgument (-6). |
|
610 |
//! @SYMTestType CIT |
|
611 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini |
|
612 |
CREATE_OBJECT RFs RFs1 |
|
613 |
COMMAND RFs1 new |
|
614 |
COMMAND RFs1 Connect |
|
615 |
COMMAND !Error=-6 RFs1 FileSystemSubType PBASE-F32-RFS-PublicApi-0073-001-FileSystemSubType_command03 |
|
616 |
COMMAND RFs1 Close |
|
617 |
COMMAND RFs1 ~ |
|
618 |
END_TEST_BLOCK |
|
619 |
END_TESTCASE PBASE-F32-RFS-PublicApi-0073 |
|
620 |
||
621 |