os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-RFS-Misc-PublicApi-ANY.script
First public contribution.
2 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
3 // All rights reserved.
4 // This component and the accompanying materials are made available
5 // under the terms of "Eclipse Public License v1.0"
6 // which accompanies this distribution, and is available
7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 // Initial Contributors:
10 // Nokia Corporation - initial contribution.
17 //! @SYMTestSuiteName PBASE-F32-RFS-Misc-PublicApi-ANY
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 don't depend on any special type of test drive.
25 START_TESTCASE PBASE-F32-RFS-PublicApi-3001
26 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3001
28 //! @SYMTestCaseDesc Function Connect() test.
29 //! Uses API elements: Connect().
30 //! @SYMTestActions 1. Call Connect().
32 //! @SYMTestStatus Implemented
33 //! @SYMTestPriority Critical
34 //! @SYMTestExpectedResults Doesn't cause panic.
36 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-ANY.ini
37 CREATE_OBJECT RFs RFs1
43 END_TESTCASE PBASE-F32-RFS-PublicApi-3001
46 START_TESTCASE PBASE-F32-RFS-PublicApi-3002
47 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3002
49 //! @SYMTestCaseDesc Function Version() test.
50 //! Uses API elements: Version().
51 //! @SYMTestActions 1. Call Connect().
52 //! 2. Call Version().
54 //! @SYMTestStatus Implemented
55 //! @SYMTestPriority Critical
56 //! @SYMTestExpectedResults Doesn't cause panic
58 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-ANY.ini
59 CREATE_OBJECT RFs RFs1
66 END_TESTCASE PBASE-F32-RFS-PublicApi-3002
69 START_TESTCASE PBASE-F32-RFS-PublicApi-3011
70 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3011
72 //! @SYMTestCaseDesc Function SetNotifyUser() and GetNotifyUser() test.
73 //! Uses API elements: SetNotifyUser(), GetNotifyUser().
74 //! @SYMTestActions 1. Call Connect().
75 //! 2. Call SetNotifyUser() and pass "false" as parameter.
76 //! 3. Call GetNotifyUser() and check that it returns "false".
77 //! 4. Call SetNotifyUser() and pass "true" as parameter.
78 //! 5. Call GetNotifyUser() and check that it returns "true".
80 //! @SYMTestStatus Implemented
81 //! @SYMTestPriority Critical
82 //! @SYMTestExpectedResults GetNotifyUser() returns value that was set by SetNotifyUser().
84 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-ANY.ini
85 CREATE_OBJECT RFs RFs1
87 COMMAND RFs1 Connect PBASE-F32-RFS-PublicApi-3011-001-SetNotifyUser_command03
88 COMMAND RFs1 SetNotifyUser PBASE-F32-RFS-PublicApi-3011-001-SetNotifyUser_command03
89 COMMAND RFs1 GetNotifyUser PBASE-F32-RFS-PublicApi-3011-001-GetNotifyUser_command04
90 COMMAND RFs1 SetNotifyUser PBASE-F32-RFS-PublicApi-3011-001-SetNotifyUser_command05
91 COMMAND RFs1 GetNotifyUser PBASE-F32-RFS-PublicApi-3011-001-GetNotifyUser_command06
95 END_TESTCASE PBASE-F32-RFS-PublicApi-3011
98 START_TESTCASE PBASE-F32-RFS-PublicApi-3014
99 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3014
101 //! @SYMTestCaseDesc Function LoaderHeapFunction() test.
102 //! Uses API elements: LoaderHeapFunction().
103 //! @SYMTestActions 1. Call Connect().
104 //! 2. Call LoaderHeapFunction() and pass 1 as parameter.
106 //! @SYMTestStatus Implemented
107 //! @SYMTestPriority Critical
108 //! @SYMTestExpectedResults KErrNotSupported, because This member function is not implemented in this version.
110 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-ANY.ini
111 CREATE_OBJECT RFs RFs1
114 COMMAND !Error=-5 RFs1 LoaderHeapFunction PBASE-F32-RFS-PublicApi-3014-001-LoaderHeapFunction_command03
118 END_TESTCASE PBASE-F32-RFS-PublicApi-3014
121 START_TESTCASE PBASE-F32-RFS-PublicApi-3101
122 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3101
124 //! @SYMTestCaseDesc Function Connect() negative test where number of message slots is zero.
125 //! Uses API elements: Connect().
126 //! @SYMTestActions 1. Call Connect() and pass number of message slots 0 as parameter.
127 //! 2. Call NotifyChange() passing ENotifyAll as parameter and starts waiting for a notification on the background.
129 //! @SYMTestStatus Implemented
130 //! @SYMTestPriority High
131 //! @SYMTestExpectedResults Function return KErrServerBusy as there will be no slots available for NotifyChange
133 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-ANY.ini
134 CREATE_OBJECT RFs RFs1
136 COMMAND RFs1 Connect PBASE-F32-RFS-PublicApi-3101-001-Connect_command02
137 COMMAND !AsyncError=-16 RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3101-001-NotifyChange_command03
141 END_TESTCASE PBASE-F32-RFS-PublicApi-3101
144 START_TESTCASE PBASE-F32-RFS-PublicApi-3103
145 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3103
147 //! @SYMTestCaseDesc Function Connect() test where the connect is called twice.
148 //! Uses API elements: Connect().
149 //! @SYMTestActions 1. Call Connect().
150 //! 2. Call Connect().
152 //! @SYMTestStatus Implemented
153 //! @SYMTestPriority High
154 //! @SYMTestExpectedResults Doesn't cause panic.
156 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-ANY.ini
157 CREATE_OBJECT RFs RFs1
164 END_TESTCASE PBASE-F32-RFS-PublicApi-3103
167 START_TESTCASE PBASE-F32-RFS-PublicApi-3104
168 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3104
170 //! @SYMTestCaseDesc Function Version() test when function was called without connecting to the file server.
171 //! Uses API elements: Version().
172 //! @SYMTestActions 1. Call Version() without calling Connect() before and Close() after.
173 //! @SYMTestStatus Implemented
174 //! @SYMTestPriority High
175 //! @SYMTestExpectedResults Doesn't cause panic.
177 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-ANY.ini
178 CREATE_OBJECT RFs RFs1
183 END_TESTCASE PBASE-F32-RFS-PublicApi-3104
186 START_TESTCASE PBASE-F32-RFS-PublicApi-3111
187 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3111
189 //! @SYMTestCaseDesc Function NotifyChangeCancel(TRequestStatus &aStat) test where function called without call NotifyChange() before.
190 //! Uses API elements: NotifyChangeCancel().
191 //! @SYMTestActions 1. Call Connect().
192 //! 2. Call NotifyChangeCancel() for all outstanding requests.
194 //! @SYMTestStatus Implemented
195 //! @SYMTestPriority High
196 //! @SYMTestExpectedResults Does not cause Panic.
198 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-ANY.ini
199 CREATE_OBJECT RFs RFs1
202 COMMAND RFs1 NotifyChangeCancel PBASE-F32-RFS-PublicApi-3111-001-NotifyChangeCancel_command03
207 END_TESTCASE PBASE-F32-RFS-PublicApi-3111
210 START_TESTCASE PBASE-F32-RFS-PublicApi-3114
211 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3114
213 //! @SYMTestCaseDesc Function NotifyDiskSpace() negative test where drive number is negative.
214 //! Uses API elements: NotifyDiskSpace().
215 //! @SYMTestActions 1. Call Connect().
216 //! 2. Call NotifyDiskSpace() and pass -12345 as drive number and starts waiting for a notification on the background.
218 //! @SYMTestStatus Implemented
219 //! @SYMTestPriority High
220 //! @SYMTestExpectedResults Function return status KErrBadName.
222 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-ANY.ini
223 CREATE_OBJECT RFs RFs1
226 COMMAND !AsyncError=-28 RFs1 NotifyDiskSpace PBASE-F32-RFS-PublicApi-3114-001-NotifyDiskSpace_command03
231 END_TESTCASE PBASE-F32-RFS-PublicApi-3114
234 START_TESTCASE PBASE-F32-RFS-PublicApi-3115
235 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3115
237 //! @SYMTestCaseDesc Function NotifyDiskSpaceCancel() (synchronous version) test where function called without call NotifyDiskSpace() before.
238 //! Uses API elements: NotifyDiskSpaceCancel().
239 //! @SYMTestActions 1. Call Connect().
240 //! 2. Call NotifyDiskSpaceCancel() for all outstanding requests.
242 //! @SYMTestStatus Implemented
243 //! @SYMTestPriority High
244 //! @SYMTestExpectedResults Does not cause Panic.
246 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-ANY.ini
247 CREATE_OBJECT RFs RFs1
250 COMMAND RFs1 NotifyDiskSpaceCancel PBASE-F32-RFS-PublicApi-3115-001-NotifyDiskSpaceCancel_command03
255 END_TESTCASE PBASE-F32-RFS-PublicApi-3115
258 START_TESTCASE PBASE-F32-RFS-PublicApi-3121
259 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3121
261 //! @SYMTestCaseDesc Function IsRomAddress() test where address is 0.
262 //! Uses API elements: IsRomAddress().
263 //! @SYMTestActions 1. Call Connect().
264 //! 2. Call IsRomAddress() and pass 0 as parameter and check that not in rom.
266 //! @SYMTestStatus Implemented
267 //! @SYMTestPriority High
268 //! @SYMTestExpectedResults Doesn't cause panic.
270 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-ANY.ini
271 CREATE_OBJECT RFs RFs1
274 COMMAND RFs1 IsRomAddress PBASE-F32-RFS-PublicApi-3121-001-IsRomAddress_command03
278 END_TESTCASE PBASE-F32-RFS-PublicApi-3121
281 START_TESTCASE PBASE-F32-RFS-PublicApi-3127
282 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3127
284 //! @SYMTestCaseDesc Function NotifyChangeCancel() test that cancels same request status twice.
285 //! Uses API elements: NotifyChange(), NotifyChangeCancel().
286 //! @SYMTestActions 1. Call Connect().
287 //! 2. Call NotifyChange() and pass ENotifyDir as parameter and starts waiting for a notification on the background.
288 //! 3. Call NotifyChangeCancel() for the request status.
289 //! 4. Call NotifyChangeCancel() for the request status.
291 //! @SYMTestStatus Implemented
292 //! @SYMTestPriority Critical
293 //! @SYMTestExpectedResults Request status is KErrCancel(-3) and the test doesn't cause panic.
295 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-ANY.ini
296 CREATE_OBJECT RFs RFs1
299 COMMAND !AsyncError=-3 RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3127-001-NotifyChange_command03
300 COMMAND RFs1 NotifyChangeCancel PBASE-F32-RFS-PublicApi-3127-001-NotifyChangeCancel_command04
301 COMMAND RFs1 NotifyChangeCancel PBASE-F32-RFS-PublicApi-3127-001-NotifyChangeCancel_command05
306 END_TESTCASE PBASE-F32-RFS-PublicApi-3127
308 START_TESTCASE PBASE-F32-RFS-PublicApi-3102
309 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3102
311 //! @SYMTestCaseDesc Function Connect() negative test where number of message slots is invalid.
312 //! Uses API elements: Connect().
313 //! @SYMTestActions 1. Call Connect() and pass negative number of message slots -12345 as parameter.
315 //! @SYMTestStatus Implemented
316 //! @SYMTestPriority High
317 //! @SYMTestExpectedResults Function return KErrArgument.
319 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-ANY.ini
320 CREATE_OBJECT RFs RFs1
322 COMMAND !Error=-6 RFs1 Connect PBASE-F32-RFS-PublicApi-3102-001-Connect_command02
326 END_TESTCASE PBASE-F32-RFS-PublicApi-3102