os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-RFS-Misc-PublicApi-RAM.script
First public contribution.
2 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
3 // All rights reserved.
4 // This component and the accompanying materials are made available
5 // under the terms of "Eclipse Public License v1.0"
6 // which accompanies this distribution, and is available
7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 // Initial Contributors:
10 // Nokia Corporation - initial contribution.
17 //! @SYMTestSuiteName PBASE-F32-RFS-Misc-PublicApi-RAM
18 //! @SYMScriptTestEnvironment This test script requires a basic ROM.
19 //! @SYMScriptAuthor Oleg Kuznetsov
20 //! @SYMScriptDescription The test script contains API tests for RFs functions that perform operations on a RAM (not removeable RAM drive).
25 START_TESTCASE PBASE-F32-RFS-PublicApi-3003
26 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3003
28 //! @SYMTestCaseDesc Function NotifyChange() (NotifyChange(TNotifyType aType, TRequestStatus &aStat) version) test.
29 //! Uses API elements: NotifyChange(), MkDir(), RmDir().
30 //! @SYMTestActions 1. Call Connect().
31 //! 2. Call NotifyChange() and pass ENotifyDir as parameter and starts waiting for a notification on the background.
32 //! 3. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\fgfd\" as parameter where <DRIVE> is a test drive letter.
33 //! 4. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\fgfd\" as parameter.
35 //! @SYMTestStatus Implemented
36 //! @SYMTestPriority Critical
37 //! @SYMTestExpectedResults Request status is KErrNone after creation of directory.
39 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
40 CREATE_OBJECT RFs RFs1
43 COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3003-001-NotifyChange_command03
44 COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-3003-001-MkDir_command04
45 COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-3003-001-RmDir_command05
50 END_TESTCASE PBASE-F32-RFS-PublicApi-3003
53 START_TESTCASE PBASE-F32-RFS-PublicApi-3004
54 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3004
56 //! @SYMTestCaseDesc Function NotifyChange() (NotifyChange(TNotifyType aType, TRequestStatus &aStat, const TDesC &aPathName) version) test.
57 //! Uses API elements: NotifyChange(), MkDir(), RmDir().
58 //! @SYMTestActions 1. Call Connect().
59 //! 2. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\fgfd\" as parameter where <DRIVE> is a test drive letter.
60 //! 3. Call NotifyChange() and pass ENotifyDir as parameter and starts waiting for a notification on the background.
61 //! 4. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\fgfd\" as parameter.
63 //! @SYMTestStatus Implemented
64 //! @SYMTestPriority Critical
65 //! @SYMTestExpectedResults Request status is KErrNone after deletion of directory.
67 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
68 CREATE_OBJECT RFs RFs1
71 COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-3004-001-MkDir_command03
72 COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3004-001-NotifyChange_command04
73 COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-3004-001-RmDir_command05
78 END_TESTCASE PBASE-F32-RFS-PublicApi-3004
81 START_TESTCASE PBASE-F32-RFS-PublicApi-3005
82 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3005
84 //! @SYMTestCaseDesc Function NotifyChangeCancel() test.
85 //! Uses API elements: NotifyChange(),
86 //! NotifyChangeCancel(), MkDir(), RmDir().
87 //! @SYMTestActions 1. Call Connect().
88 //! 2. Call NotifyChange() and pass ENotifyDir as parameter and starts waiting for a notification on the background.
89 //! 3. Call NotifyChangeCancel().
90 //! 4. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\fgfd\" as parameter where <DRIVE> is a test drive letter.
91 //! 5. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\fgfd\" as parameter.
93 //! @SYMTestStatus Implemented
94 //! @SYMTestPriority Critical
95 //! @SYMTestExpectedResults Request status is KErrCancel(-3) after creation and deletion of directory.
97 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
98 CREATE_OBJECT RFs RFs1
101 COMMAND !AsyncError=-3 RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3005-001-NotifyChange_command03
102 COMMAND RFs1 NotifyChangeCancel PBASE-F32-RFS-PublicApi-3005-001-NotifyChangeCancel_command04
103 COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-3005-001-MkDir_command05
104 COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-3005-001-RmDir_command06
109 END_TESTCASE PBASE-F32-RFS-PublicApi-3005
112 START_TESTCASE PBASE-F32-RFS-PublicApi-3006
113 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3006
115 //! @SYMTestCaseDesc Function NotifyChangeCancel() (NotifyChangeCancel(TRequestStatus &aStat) version) test.
116 //! Uses API elements: NotifyChange(),
117 //! NotifyChangeCancel(), MkDir(), RmDir().
118 //! @SYMTestActions 1. Call Connect().
119 //! 2. Call NotifyChange() and pass ENotifyDir as parameter and starts waiting for a notification on the background.
120 //! 3. Call NotifyChangeCancel() asynchronous version.
121 //! 4. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\fgfd\" as parameter where <DRIVE> is a test drive letter.
122 //! 5. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\fgfd\" as parameter.
124 //! @SYMTestStatus Implemented
125 //! @SYMTestPriority Critical
126 //! @SYMTestExpectedResults Request status is KErrCancel(-3) after creation and deletion of directory.
128 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
129 CREATE_OBJECT RFs RFs1
132 COMMAND !AsyncError=-3 RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3006-001-NotifyChange_command03
133 COMMAND RFs1 NotifyChangeCancel PBASE-F32-RFS-PublicApi-3006-001-NotifyChangeCancel_command04
134 COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-3006-001-MkDir_command05
135 COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-3006-001-RmDir_command06
140 END_TESTCASE PBASE-F32-RFS-PublicApi-3006
143 START_TESTCASE PBASE-F32-RFS-PublicApi-3007
144 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3007
146 //! @SYMTestCaseDesc Function NotifyDiskSpace() test.
147 //! Uses API elements: NotifyDiskSpace(), ReserveDriveSpace().
148 //! @SYMTestActions 1. Call Connect().
149 //! 2. Set NotifyDiskSpace treshold on a drive to freespace-1000 and starts waiting for a notification on the background.
150 //! 3. Call ReserveDriveSpace() and pass the drive, 2000 as parameters.
152 //! @SYMTestStatus Implemented
153 //! @SYMTestPriority Critical
154 //! @SYMTestExpectedResults Notification was received that threshold is crossed, request status is KErrNone
156 START_TEST_BLOCK 200 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
157 CREATE_OBJECT RFs RFs1
160 COMMAND RFs1 Volume PBASE-F32-RFS-PublicApi-3007-001-Volume_command03
161 COMMAND RFs1 NotifyDiskSpace PBASE-F32-RFS-PublicApi-3007-001-NotifyDiskSpace_command04
162 COMMAND RFs1 ReserveDriveSpace PBASE-F32-RFS-PublicApi-3007-001-ReserveDriveSpace_command05
167 END_TESTCASE PBASE-F32-RFS-PublicApi-3007
170 START_TESTCASE PBASE-F32-RFS-PublicApi-3008
171 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3008
173 //! @SYMTestCaseDesc Function NotifyDiskSpaceCancel() test.
174 //! Uses API elements: NotifyDiskSpace(), NotifyDiskSpaceCancel().
175 //! @SYMTestActions 1. Call Connect().
176 //! 2. Call NotifyDiskSpace() and pass a drive, 3000 as parameters and starts waiting for a notification on the background.
177 //! 3. Call NotifyDiskSpaceCancel().
179 //! @SYMTestStatus Implemented
180 //! @SYMTestPriority Critical
181 //! @SYMTestExpectedResults Notification was canceled, request status is KErrCancel(-3)
183 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
184 CREATE_OBJECT RFs RFs1
187 COMMAND !AsyncError=-3 RFs1 NotifyDiskSpace PBASE-F32-RFS-PublicApi-3008-001-NotifyDiskSpace_command03
188 COMMAND RFs1 NotifyDiskSpaceCancel PBASE-F32-RFS-PublicApi-3008-001-NotifyDiskSpaceCancel_command04
193 END_TESTCASE PBASE-F32-RFS-PublicApi-3008
196 START_TESTCASE PBASE-F32-RFS-PublicApi-3009
197 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3009
199 //! @SYMTestCaseDesc Function NotifyDiskSpaceCancel() (NotifyDiskSpaceCancel(TRequestStatus &aStat) version) test.
200 //! Uses API elements: NotifyDiskSpace(), NotifyDiskSpaceCancel().
201 //! @SYMTestActions 1. Call Connect().
202 //! 2. Call NotifyDiskSpace() and pass a drive, 99999 as parameters and starts waiting for a notification on the background.
203 //! 3. Call NotifyDiskSpaceCancel() passing the given request status.
205 //! @SYMTestStatus Implemented
206 //! @SYMTestPriority Critical
207 //! @SYMTestExpectedResults Notification was canceled, request status is KErrCancel(-3)
209 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
210 CREATE_OBJECT RFs RFs1
213 COMMAND !AsyncError=-3 RFs1 NotifyDiskSpace PBASE-F32-RFS-PublicApi-3009-001-NotifyDiskSpace_command03
214 COMMAND RFs1 NotifyDiskSpaceCancel PBASE-F32-RFS-PublicApi-3009-001-NotifyDiskSpaceCancel_command04
219 END_TESTCASE PBASE-F32-RFS-PublicApi-3009
222 START_TESTCASE PBASE-F32-RFS-PublicApi-3013
223 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3013
225 //! @SYMTestCaseDesc Function SetNotifyChange() test.
226 //! Uses API elements: SetNotifyChange(),NotifyChange(), MkDir(), RmDir().
227 //! @SYMTestActions 1. Call Connect().
228 //! 2. Call SetNotifyChange() and pass "FALSE" as parameter.
229 //! 3. Call NotifyChange() and pass ENotifyDir as parameter
230 //! 4. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\fgfd\" as parameter where <DRIVE> is a test drive letter.
231 //! 5. Call SetNotifyChange() and pass "TRUE" as parameter.
232 //! 6. Call RmDir and pass "<DRIVE>:\base\T_Sfsrv\fgfd\" as parameter.
234 //! @SYMTestStatus Implemented
235 //! @SYMTestPriority Critical
236 //! @SYMTestExpectedResults KErrNone, Notify doesn't occur after creating dir.
238 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
239 CREATE_OBJECT RFs RFs1
242 COMMAND RFs1 SetNotifyChange PBASE-F32-RFS-PublicApi-3013-001-SetNotifyChange_command03
243 COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3013-001-NotifyChange_command04
244 COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-3013-001-MkDir_command05
245 COMMAND RFs1 SetNotifyChange PBASE-F32-RFS-PublicApi-3013-001-SetNotifyChange_command06
246 COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-3013-001-RmDir_command07
251 END_TESTCASE PBASE-F32-RFS-PublicApi-3013
254 START_TESTCASE PBASE-F32-RFS-PublicApi-3106
255 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3106
257 //! @SYMTestCaseDesc Function NotifyChange(TNotifyType aType, TRequestStatus &aStat) test with notify type ENotifyAttributes.
258 //! Uses API elements: NotifyChange(), MkDir(), RmDir().
259 //! @SYMTestActions 1. Call Connect().
260 //! 2. Call NotifyChange() passing ENotifyAttributes as parameter and starts waiting for a notification on the background.
261 //! 3. Call SetEntry() and pass "<DRIVE>:\base\T_Sfsrv\test.txt" as parameter where <DRIVE> is a test drive letter, set att mask KEntryAttReadOnly, clear att mask KEntryAttNormal.
262 //! 4. Call SetEntry() and pass "<DRIVE>:\base\T_Sfsrv\test.txt" as parameter where <DRIVE> is a test drive letter, set att mask KEntryAttNormal, clear att mask KEntryAttReadOnly.
264 //! @SYMTestStatus Implemented
265 //! @SYMTestPriority High
266 //! @SYMTestExpectedResults Doesn't cause panic.
268 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
269 CREATE_OBJECT RFs RFs1
270 CREATE_OBJECT RFile RFile1
274 COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-3106-001-Create_command05
277 COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3106-001-NotifyChange_command09
278 COMMAND RFs1 SetEntry PBASE-F32-RFS-PublicApi-3106-001-SetEntry_command10
280 COMMAND RFs1 SetEntry PBASE-F32-RFS-PublicApi-3106-001-SetEntry_command12
281 COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-3106-001-Delete_command13
285 END_TESTCASE PBASE-F32-RFS-PublicApi-3106
288 START_TESTCASE PBASE-F32-RFS-PublicApi-3108
289 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3108
291 //! @SYMTestCaseDesc Function NotifyChange(TNotifyType aType, TRequestStatus &aStat, const TDesC &aPathName) negative test where incorrect path parameter.
292 //! Uses API elements: NotifyChange(), MkDir(), RmDir().
293 //! @SYMTestActions 1. Call Connect().
294 //! 2. Call NotifyChange() and pass ENotifyAll as parameter and bad path as parameter "<DRIVE>:\base\T_Sfsrv\*" where <DRIVE> is a test drive letter and starts waiting for a notification on the background.
296 //! @SYMTestStatus Implemented
297 //! @SYMTestPriority High
298 //! @SYMTestExpectedResults Function return status KErrBadName.
300 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
301 CREATE_OBJECT RFs RFs1
304 COMMAND !AsyncError=-28 RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3108-001-NotifyChange_command03
309 END_TESTCASE PBASE-F32-RFS-PublicApi-3108
312 START_TESTCASE PBASE-F32-RFS-PublicApi-3112
313 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3112
315 //! @SYMTestCaseDesc Function NotifyDiskSpace() negative test where threshold value less than zero.
316 //! Uses API elements: NotifyDiskSpace().
317 //! @SYMTestActions 1. Call Connect().
318 //! 2. Call NotifyDiskSpace() and pass parameter -12345 as treshold value and starts waiting for a notification on the background.
320 //! @SYMTestStatus Implemented
321 //! @SYMTestPriority High
322 //! @SYMTestExpectedResults Function return status KErrArgument.
324 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
325 CREATE_OBJECT RFs RFs1
328 COMMAND !AsyncError=-6 RFs1 NotifyDiskSpace PBASE-F32-RFS-PublicApi-3112-001-NotifyDiskSpace_command03
333 END_TESTCASE PBASE-F32-RFS-PublicApi-3112
336 START_TESTCASE PBASE-F32-RFS-PublicApi-3113
337 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3113
339 //! @SYMTestCaseDesc Function NotifyDiskSpace() negative test where the threshold value outside its limits.
340 //! Uses API elements: NotifyDiskSpace().
341 //! @SYMTestActions 1. Call Connect().
342 //! 2. Call NotifyDiskSpace() and pass parameter greater than the limit of treshold value and starts waiting for a notification on the background.
344 //! @SYMTestStatus Implemented
345 //! @SYMTestPriority High
346 //! @SYMTestExpectedResults Function return status KErrArgument.
348 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
349 CREATE_OBJECT RFs RFs1
352 COMMAND !AsyncError=-6 RFs1 NotifyDiskSpace PBASE-F32-RFS-PublicApi-3113-001-NotifyDiskSpace_command03
357 END_TESTCASE PBASE-F32-RFS-PublicApi-3113
360 START_TESTCASE PBASE-F32-RFS-PublicApi-3118
361 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3118
363 //! @SYMTestCaseDesc Function SetNotifyUser() test notifycation.
364 //! Uses API elements: SetNotifyUser().
365 //! @SYMTestActions 1. Call Connect().
366 //! 2. Call SetNotifyUser() and pass "FALSE" as parameter.
367 //! 3. Call GetNotifyUser() and check that it returns "FALSE".
368 //! 4. Call RFile's Open(), open file as read only and pass "<DRIVE>:\base\T_Sfsrv\test.txt" as parameter where <DRIVE> is a test drive letter.
369 //! 5. Call Write() trying to write data into readonly file and check that the notification not appears.
371 //! @SYMTestStatus Implemented
372 //! @SYMTestPriority High
373 //! @SYMTestExpectedResults Doesn't cause panic.
375 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
376 CREATE_OBJECT RFs RFs1
377 CREATE_OBJECT RFile RFile1
380 COMMAND RFs1 SetNotifyUser PBASE-F32-RFS-PublicApi-3118-001-SetNotifyUser_command03
381 COMMAND RFs1 GetNotifyUser PBASE-F32-RFS-PublicApi-3118-001-GetNotifyUser_command04
383 COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-3118-001-Create_command07
384 COMMAND RFile1 Write PBASE-F32-RFS-PublicApi-3118-001-Write_command08
387 COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-3118-001-Delete_command12
391 END_TESTCASE PBASE-F32-RFS-PublicApi-3118
394 START_TESTCASE PBASE-F32-RFS-PublicApi-3125
395 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3125
397 //! @SYMTestCaseDesc Function NotifyChange() (NotifyChange(TNotifyType aType, TRequestStatus &aStat) version) test that passes 0 instead of TNotifyType (it starts from 1 if you see f32file.h).
398 //! Uses API elements: NotifyChange(), MkDir(), RmDir().
399 //! @SYMTestActions 1. Call Connect().
400 //! 2. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\temp_dir\" as parameter where <DRIVE> is a test drive letter.
401 //! 3. Call NotifyChange() and pass 0 and starts waiting for a notification on the background.
402 //! 4. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\fgfd\temp_dir\" as parameter.
404 //! @SYMTestStatus Implemented
405 //! @SYMTestPriority Critical
406 //! @SYMTestExpectedResults Request status is KErrNone after deletion of directory.
408 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
409 CREATE_OBJECT RFs RFs1
412 COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-3125-001-MkDir_command03
413 COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3125-001-NotifyChange_command04
414 COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-3125-001-RmDir_command05
419 END_TESTCASE PBASE-F32-RFS-PublicApi-3125
422 START_TESTCASE PBASE-F32-RFS-PublicApi-3126
423 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3126
425 //! @SYMTestCaseDesc Function NotifyChange() (NotifyChange(TNotifyType aType, TRequestStatus &aStat, const TDesC &aPathName) version) test that passes -1 instead of TNotifyType (it starts from 1 if you see f32file.h).
426 //! Uses API elements: NotifyChange(), MkDir(), RmDir().
427 //! @SYMTestActions 1. Call Connect().
428 //! 2. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\temp_dir\" as parameter where <DRIVE> is a test drive letter.
429 //! 3. Call NotifyChange() and pass -1 and starts waiting for a notification on the background.
430 //! 4. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\fgfd\temp_dir\" as parameter.
432 //! @SYMTestStatus Implemented
433 //! @SYMTestPriority Critical
434 //! @SYMTestExpectedResults Request status is KErrNone after deletion of directory.
436 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
437 CREATE_OBJECT RFs RFs1
440 COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-3126-001-MkDir_command03
441 COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3126-001-NotifyChange_command04
442 COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-3126-001-RmDir_command05
447 END_TESTCASE PBASE-F32-RFS-PublicApi-3126
450 START_TESTCASE PBASE-F32-RFS-PublicApi-3128
451 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3128
453 //! @SYMTestCaseDesc Function NotifyDiskSpaceCancel() (NotifyDiskSpaceCancel(TRequestStatus &aStat) version) test that cancel same request twice.
454 //! Uses API elements: NotifyDiskSpace(), NotifyDiskSpaceCancel().
455 //! @SYMTestActions 1. Call Connect().
456 //! 2. Call NotifyDiskSpace() and pass a drive, 99999 as parameters and starts waiting for a notification on the background.
457 //! 3. Call NotifyDiskSpaceCancel() passing the request status.
458 //! 4. Call NotifyDiskSpaceCancel() passing the request status again.
460 //! @SYMTestStatus Implemented
461 //! @SYMTestPriority Critical
462 //! @SYMTestExpectedResults Notification was canceled, request status is KErrCancel(-3) and the call doesn't cause panic.
464 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
465 CREATE_OBJECT RFs RFs1
468 COMMAND !AsyncError=-3 RFs1 NotifyDiskSpace PBASE-F32-RFS-PublicApi-3128-001-NotifyDiskSpace_command03
469 COMMAND RFs1 NotifyDiskSpaceCancel PBASE-F32-RFS-PublicApi-3128-001-NotifyDiskSpaceCancel_command04
470 COMMAND RFs1 NotifyDiskSpaceCancel PBASE-F32-RFS-PublicApi-3128-001-NotifyDiskSpaceCancel_command05
475 END_TESTCASE PBASE-F32-RFS-PublicApi-3128
477 START_TESTCASE PBASE-F32-RFS-PublicApi-3015
478 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3015
480 //! @SYMTestCaseDesc Function NotifyChange() (NotifyChange(TNotifyType aType, TRequestStatus &aStat, const TDesC &aPathName) version) test that uses a root path as a monitored path.
481 //! Uses API elements: NotifyChange(), MkDir(), RmDir().
482 //! @SYMTestActions 1. Call Connect().
483 //! 2. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\temp_dir\" as parameter where <DRIVE> is a test drive letter.
484 //! 3. Call NotifyChange() and pass ENotifyDir and "<DRIVE>:\" as parameters and starts waiting for a notification on the background.
485 //! 4. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\fgfd\temp_dir\" as parameter.
487 //! @SYMTestStatus Implemented
488 //! @SYMTestPriority Critical
489 //! @SYMTestExpectedResults Request status is KErrNone after deletion of directory.
491 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
492 CREATE_OBJECT RFs RFs1
495 COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-3015-001-MkDir_command03
496 COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3015-001-NotifyChange_command04
497 COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-3015-001-RmDir_command05
502 END_TESTCASE PBASE-F32-RFS-PublicApi-3015
505 START_TESTCASE PBASE-F32-RFS-PublicApi-3110
506 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3110
508 //! @SYMTestCaseDesc Function NotifyChange(TNotifyType aType, TRequestStatus &aStat, const TDesC &aPathName) test with notify type ENotifyEntry, EFileShareAny, EFileShareWrite, EFileShareFile.
509 //! Uses API elements: NotifyChange(), MkDir(), RmDir().
510 //! @SYMTestActions 1. Call Connect().
511 //! 2. Call NotifyChange() passing ENotifyEntry as parameter and "<DRIVE>:\base\T_Sfsrv" as parameter where <DRIVE> is a test drive letter and starts waiting for a notification on the background.
512 //! 3. Call Create() passing EFileShareAny as file mode and "<DRIVE>:\base\T_Sfsrv\test.ttt" as parameter where <DRIVE> is a test drive letter.
513 //! 4. Call NotifyChange() passing ENotifyWrite as parameter and "<DRIVE>:\base\T_Sfsrv" as parameter where <DRIVE> is a test drive letter and starts waiting for a notification on the background.
514 //! 5. Call Write() passing some data to write as argument.
515 //! 6. Call Close() to close created file.
516 //! 7. Call NotifyChange() passing ENotifyFile as parameter and "<DRIVE>:\base\T_Sfsrv" as parameter where <DRIVE> is a test drive letter and starts waiting for a notification on the background.
517 //! 8. Call Delete() passing "<DRIVE>:\base\T_Sfsrv\test.ttt" as parameter where <DRIVE> is a test drive let
519 //! @SYMTestStatus Implemented
520 //! @SYMTestPriority High
521 //! @SYMTestExpectedResults Doesn't cause panic.
523 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
524 CREATE_OBJECT RFs RFs1
525 CREATE_OBJECT RFile RFile1
528 COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3110-001-NotifyChange_command03
530 COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-3110-001-Create_command06
532 COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3110-001-NotifyChange_command09
533 COMMAND RFile1 Write PBASE-F32-RFS-PublicApi-3110-001-Write_command11
537 COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3110-001-NotifyChange_command16
538 COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-3110-001-Delete_command17
543 END_TESTCASE PBASE-F32-RFS-PublicApi-3110
546 START_TESTCASE PBASE-F32-RFS-PublicApi-3123
547 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3123
549 //! @SYMTestCaseDesc Function NotifyChange() (NotifyChange(TNotifyType aType, TRequestStatus &aStat, const TDesC &aPathName) version) test that passes 0 instead of TNotifyType (it starts from 1 if you see f32file.h).
550 //! Uses API elements: NotifyChange(), MkDir(), RmDir().
551 //! @SYMTestActions 1. Call Connect().
552 //! 2. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\temp_dir\" as parameter where <DRIVE> is a test drive letter.
553 //! 3. Call NotifyChange() and pass 0 and "<DRIVE>:\" as parameters and starts waiting for a notification on the background.
554 //! 4. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\fgfd\temp_dir\" as parameter.
556 //! @SYMTestStatus Implemented
557 //! @SYMTestPriority Critical
558 //! @SYMTestExpectedResults Request status is KErrNone after deletion of directory.
560 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
561 CREATE_OBJECT RFs RFs1
564 COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-3123-001-MkDir_command03
565 COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3123-001-NotifyChange_command04
566 COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-3123-001-RmDir_command05
571 END_TESTCASE PBASE-F32-RFS-PublicApi-3123
574 START_TESTCASE PBASE-F32-RFS-PublicApi-3124
575 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3124
577 //! @SYMTestCaseDesc Function NotifyChange() (NotifyChange(TNotifyType aType, TRequestStatus &aStat, const TDesC &aPathName) version) test that passes -1 instead of TNotifyType (it starts from 1 if you see f32file.h).
578 //! Uses API elements: NotifyChange(), MkDir(), RmDir().
579 //! @SYMTestActions 1. Call Connect().
580 //! 2. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\temp_dir\" as parameter where <DRIVE> is a test drive letter.
581 //! 3. Call NotifyChange() and pass -1 and "<DRIVE>:\" as parameters and starts waiting for a notification on the background.
582 //! 4. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\fgfd\temp_dir\" as parameter.
584 //! @SYMTestStatus Implemented
585 //! @SYMTestPriority Critical
586 //! @SYMTestExpectedResults Request status is KErrNone after deletion of directory.
588 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
589 CREATE_OBJECT RFs RFs1
592 COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-3124-001-MkDir_command03
593 COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3124-001-NotifyChange_command04
594 COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-3124-001-RmDir_command05
599 END_TESTCASE PBASE-F32-RFS-PublicApi-3124