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-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. |
|
21 |
||
22 |
LOAD_SUITE T_Sfsrv |
|
23 |
||
24 |
||
25 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3001 |
|
26 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3001 |
|
27 |
//! @SYMAPI RFs |
|
28 |
//! @SYMTestCaseDesc Function Connect() test. |
|
29 |
//! Uses API elements: Connect(). |
|
30 |
//! @SYMTestActions 1. Call Connect(). |
|
31 |
//! 2. Call Close(). |
|
32 |
//! @SYMTestStatus Implemented |
|
33 |
//! @SYMTestPriority Critical |
|
34 |
//! @SYMTestExpectedResults Doesn't cause panic. |
|
35 |
//! @SYMTestType CIT |
|
36 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-ANY.ini |
|
37 |
CREATE_OBJECT RFs RFs1 |
|
38 |
COMMAND RFs1 new |
|
39 |
COMMAND RFs1 Connect |
|
40 |
COMMAND RFs1 Close |
|
41 |
COMMAND RFs1 ~ |
|
42 |
END_TEST_BLOCK |
|
43 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3001 |
|
44 |
||
45 |
||
46 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3002 |
|
47 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3002 |
|
48 |
//! @SYMAPI RFs |
|
49 |
//! @SYMTestCaseDesc Function Version() test. |
|
50 |
//! Uses API elements: Version(). |
|
51 |
//! @SYMTestActions 1. Call Connect(). |
|
52 |
//! 2. Call Version(). |
|
53 |
//! 3. Call Close(). |
|
54 |
//! @SYMTestStatus Implemented |
|
55 |
//! @SYMTestPriority Critical |
|
56 |
//! @SYMTestExpectedResults Doesn't cause panic |
|
57 |
//! @SYMTestType CIT |
|
58 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-ANY.ini |
|
59 |
CREATE_OBJECT RFs RFs1 |
|
60 |
COMMAND RFs1 new |
|
61 |
COMMAND RFs1 Connect |
|
62 |
COMMAND RFs1 Version |
|
63 |
COMMAND RFs1 Close |
|
64 |
COMMAND RFs1 ~ |
|
65 |
END_TEST_BLOCK |
|
66 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3002 |
|
67 |
||
68 |
||
69 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3011 |
|
70 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3011 |
|
71 |
//! @SYMAPI RFs |
|
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". |
|
79 |
//! 6. Call Close(). |
|
80 |
//! @SYMTestStatus Implemented |
|
81 |
//! @SYMTestPriority Critical |
|
82 |
//! @SYMTestExpectedResults GetNotifyUser() returns value that was set by SetNotifyUser(). |
|
83 |
//! @SYMTestType CIT |
|
84 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-ANY.ini |
|
85 |
CREATE_OBJECT RFs RFs1 |
|
86 |
COMMAND RFs1 new |
|
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 |
|
92 |
COMMAND RFs1 Close |
|
93 |
COMMAND RFs1 ~ |
|
94 |
END_TEST_BLOCK |
|
95 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3011 |
|
96 |
||
97 |
||
98 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3014 |
|
99 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3014 |
|
100 |
//! @SYMAPI RFs |
|
101 |
//! @SYMTestCaseDesc Function LoaderHeapFunction() test. |
|
102 |
//! Uses API elements: LoaderHeapFunction(). |
|
103 |
//! @SYMTestActions 1. Call Connect(). |
|
104 |
//! 2. Call LoaderHeapFunction() and pass 1 as parameter. |
|
105 |
//! 3. Call Close(). |
|
106 |
//! @SYMTestStatus Implemented |
|
107 |
//! @SYMTestPriority Critical |
|
108 |
//! @SYMTestExpectedResults KErrNotSupported, because This member function is not implemented in this version. |
|
109 |
//! @SYMTestType CIT |
|
110 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-ANY.ini |
|
111 |
CREATE_OBJECT RFs RFs1 |
|
112 |
COMMAND RFs1 new |
|
113 |
COMMAND RFs1 Connect |
|
114 |
COMMAND !Error=-5 RFs1 LoaderHeapFunction PBASE-F32-RFS-PublicApi-3014-001-LoaderHeapFunction_command03 |
|
115 |
COMMAND RFs1 Close |
|
116 |
COMMAND RFs1 ~ |
|
117 |
END_TEST_BLOCK |
|
118 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3014 |
|
119 |
||
120 |
||
121 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3101 |
|
122 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3101 |
|
123 |
//! @SYMAPI RFs |
|
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. |
|
128 |
//! 3. Call Close(). |
|
129 |
//! @SYMTestStatus Implemented |
|
130 |
//! @SYMTestPriority High |
|
131 |
//! @SYMTestExpectedResults Function return KErrServerBusy as there will be no slots available for NotifyChange |
|
132 |
//! @SYMTestType CIT |
|
133 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-ANY.ini |
|
134 |
CREATE_OBJECT RFs RFs1 |
|
135 |
COMMAND RFs1 new |
|
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 |
|
138 |
OUTSTANDING |
|
139 |
COMMAND RFs1 ~ |
|
140 |
END_TEST_BLOCK |
|
141 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3101 |
|
142 |
||
143 |
||
144 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3103 |
|
145 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3103 |
|
146 |
//! @SYMAPI RFs |
|
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(). |
|
151 |
//! 3. Call Close(). |
|
152 |
//! @SYMTestStatus Implemented |
|
153 |
//! @SYMTestPriority High |
|
154 |
//! @SYMTestExpectedResults Doesn't cause panic. |
|
155 |
//! @SYMTestType CIT |
|
156 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-ANY.ini |
|
157 |
CREATE_OBJECT RFs RFs1 |
|
158 |
COMMAND RFs1 new |
|
159 |
COMMAND RFs1 Connect |
|
160 |
COMMAND RFs1 Connect |
|
161 |
COMMAND RFs1 Close |
|
162 |
COMMAND RFs1 ~ |
|
163 |
END_TEST_BLOCK |
|
164 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3103 |
|
165 |
||
166 |
||
167 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3104 |
|
168 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3104 |
|
169 |
//! @SYMAPI RFs |
|
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. |
|
176 |
//! @SYMTestType CIT |
|
177 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-ANY.ini |
|
178 |
CREATE_OBJECT RFs RFs1 |
|
179 |
COMMAND RFs1 new |
|
180 |
COMMAND RFs1 Version |
|
181 |
COMMAND RFs1 ~ |
|
182 |
END_TEST_BLOCK |
|
183 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3104 |
|
184 |
||
185 |
||
186 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3111 |
|
187 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3111 |
|
188 |
//! @SYMAPI RFs |
|
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. |
|
193 |
//! 3. Call Close(). |
|
194 |
//! @SYMTestStatus Implemented |
|
195 |
//! @SYMTestPriority High |
|
196 |
//! @SYMTestExpectedResults Does not cause Panic. |
|
197 |
//! @SYMTestType CIT |
|
198 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-ANY.ini |
|
199 |
CREATE_OBJECT RFs RFs1 |
|
200 |
COMMAND RFs1 new |
|
201 |
COMMAND RFs1 Connect |
|
202 |
COMMAND RFs1 NotifyChangeCancel PBASE-F32-RFS-PublicApi-3111-001-NotifyChangeCancel_command03 |
|
203 |
OUTSTANDING |
|
204 |
COMMAND RFs1 Close |
|
205 |
COMMAND RFs1 ~ |
|
206 |
END_TEST_BLOCK |
|
207 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3111 |
|
208 |
||
209 |
||
210 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3114 |
|
211 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3114 |
|
212 |
//! @SYMAPI RFs |
|
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. |
|
217 |
//! 3. Call Close(). |
|
218 |
//! @SYMTestStatus Implemented |
|
219 |
//! @SYMTestPriority High |
|
220 |
//! @SYMTestExpectedResults Function return status KErrBadName. |
|
221 |
//! @SYMTestType CIT |
|
222 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-ANY.ini |
|
223 |
CREATE_OBJECT RFs RFs1 |
|
224 |
COMMAND RFs1 new |
|
225 |
COMMAND RFs1 Connect |
|
226 |
COMMAND !AsyncError=-28 RFs1 NotifyDiskSpace PBASE-F32-RFS-PublicApi-3114-001-NotifyDiskSpace_command03 |
|
227 |
OUTSTANDING |
|
228 |
COMMAND RFs1 Close |
|
229 |
COMMAND RFs1 ~ |
|
230 |
END_TEST_BLOCK |
|
231 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3114 |
|
232 |
||
233 |
||
234 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3115 |
|
235 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3115 |
|
236 |
//! @SYMAPI RFs |
|
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. |
|
241 |
//! 3. Call Close(). |
|
242 |
//! @SYMTestStatus Implemented |
|
243 |
//! @SYMTestPriority High |
|
244 |
//! @SYMTestExpectedResults Does not cause Panic. |
|
245 |
//! @SYMTestType CIT |
|
246 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-ANY.ini |
|
247 |
CREATE_OBJECT RFs RFs1 |
|
248 |
COMMAND RFs1 new |
|
249 |
COMMAND RFs1 Connect |
|
250 |
COMMAND RFs1 NotifyDiskSpaceCancel PBASE-F32-RFS-PublicApi-3115-001-NotifyDiskSpaceCancel_command03 |
|
251 |
OUTSTANDING |
|
252 |
COMMAND RFs1 Close |
|
253 |
COMMAND RFs1 ~ |
|
254 |
END_TEST_BLOCK |
|
255 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3115 |
|
256 |
||
257 |
||
258 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3121 |
|
259 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3121 |
|
260 |
//! @SYMAPI RFs |
|
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. |
|
265 |
//! 3. Call Close(). |
|
266 |
//! @SYMTestStatus Implemented |
|
267 |
//! @SYMTestPriority High |
|
268 |
//! @SYMTestExpectedResults Doesn't cause panic. |
|
269 |
//! @SYMTestType CIT |
|
270 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-ANY.ini |
|
271 |
CREATE_OBJECT RFs RFs1 |
|
272 |
COMMAND RFs1 new |
|
273 |
COMMAND RFs1 Connect |
|
274 |
COMMAND RFs1 IsRomAddress PBASE-F32-RFS-PublicApi-3121-001-IsRomAddress_command03 |
|
275 |
COMMAND RFs1 Close |
|
276 |
COMMAND RFs1 ~ |
|
277 |
END_TEST_BLOCK |
|
278 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3121 |
|
279 |
||
280 |
||
281 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3127 |
|
282 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3127 |
|
283 |
//! @SYMAPI RFs |
|
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. |
|
290 |
//! 5. Call Close(). |
|
291 |
//! @SYMTestStatus Implemented |
|
292 |
//! @SYMTestPriority Critical |
|
293 |
//! @SYMTestExpectedResults Request status is KErrCancel(-3) and the test doesn't cause panic. |
|
294 |
//! @SYMTestType CIT |
|
295 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-ANY.ini |
|
296 |
CREATE_OBJECT RFs RFs1 |
|
297 |
COMMAND RFs1 new |
|
298 |
COMMAND RFs1 Connect |
|
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 |
|
302 |
OUTSTANDING |
|
303 |
COMMAND RFs1 Close |
|
304 |
COMMAND RFs1 ~ |
|
305 |
END_TEST_BLOCK |
|
306 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3127 |
|
307 |
||
308 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3102 |
|
309 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3102 |
|
310 |
//! @SYMAPI RFs |
|
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. |
|
314 |
//! 2. Call Close(). |
|
315 |
//! @SYMTestStatus Implemented |
|
316 |
//! @SYMTestPriority High |
|
317 |
//! @SYMTestExpectedResults Function return KErrArgument. |
|
318 |
//! @SYMTestType CIT |
|
319 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-ANY.ini |
|
320 |
CREATE_OBJECT RFs RFs1 |
|
321 |
COMMAND RFs1 new |
|
322 |
COMMAND !Error=-6 RFs1 Connect PBASE-F32-RFS-PublicApi-3102-001-Connect_command02 |
|
323 |
COMMAND RFs1 Close |
|
324 |
COMMAND RFs1 ~ |
|
325 |
END_TEST_BLOCK |
|
326 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3102 |
|
327 |
||
328 |