author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Sat, 20 Feb 2010 00:10:51 +0200 | |
branch | RCL_3 |
changeset 19 | 4a8fed1c0ef6 |
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-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). |
|
21 |
||
22 |
LOAD_SUITE T_Sfsrv |
|
23 |
||
24 |
||
25 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3003 |
|
26 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3003 |
|
27 |
//! @SYMAPI RFs |
|
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. |
|
34 |
//! 5. Call Close(). |
|
35 |
//! @SYMTestStatus Implemented |
|
36 |
//! @SYMTestPriority Critical |
|
37 |
//! @SYMTestExpectedResults Request status is KErrNone after creation of directory. |
|
38 |
//! @SYMTestType CIT |
|
39 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini |
|
40 |
CREATE_OBJECT RFs RFs1 |
|
41 |
COMMAND RFs1 new |
|
42 |
COMMAND RFs1 Connect |
|
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 |
|
46 |
OUTSTANDING |
|
47 |
COMMAND RFs1 Close |
|
48 |
COMMAND RFs1 ~ |
|
49 |
END_TEST_BLOCK |
|
50 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3003 |
|
51 |
||
52 |
||
53 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3004 |
|
54 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3004 |
|
55 |
//! @SYMAPI RFs |
|
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. |
|
62 |
//! 5. Call Close(). |
|
63 |
//! @SYMTestStatus Implemented |
|
64 |
//! @SYMTestPriority Critical |
|
65 |
//! @SYMTestExpectedResults Request status is KErrNone after deletion of directory. |
|
66 |
//! @SYMTestType CIT |
|
67 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini |
|
68 |
CREATE_OBJECT RFs RFs1 |
|
69 |
COMMAND RFs1 new |
|
70 |
COMMAND RFs1 Connect |
|
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 |
|
74 |
OUTSTANDING |
|
75 |
COMMAND RFs1 Close |
|
76 |
COMMAND RFs1 ~ |
|
77 |
END_TEST_BLOCK |
|
78 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3004 |
|
79 |
||
80 |
||
81 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3005 |
|
82 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3005 |
|
83 |
//! @SYMAPI RFs |
|
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. |
|
92 |
//! 6. Call Close(). |
|
93 |
//! @SYMTestStatus Implemented |
|
94 |
//! @SYMTestPriority Critical |
|
95 |
//! @SYMTestExpectedResults Request status is KErrCancel(-3) after creation and deletion of directory. |
|
96 |
//! @SYMTestType CIT |
|
97 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini |
|
98 |
CREATE_OBJECT RFs RFs1 |
|
99 |
COMMAND RFs1 new |
|
100 |
COMMAND RFs1 Connect |
|
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 |
|
105 |
OUTSTANDING |
|
106 |
COMMAND RFs1 Close |
|
107 |
COMMAND RFs1 ~ |
|
108 |
END_TEST_BLOCK |
|
109 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3005 |
|
110 |
||
111 |
||
112 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3006 |
|
113 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3006 |
|
114 |
//! @SYMAPI RFs |
|
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. |
|
123 |
//! 6. Call Close(). |
|
124 |
//! @SYMTestStatus Implemented |
|
125 |
//! @SYMTestPriority Critical |
|
126 |
//! @SYMTestExpectedResults Request status is KErrCancel(-3) after creation and deletion of directory. |
|
127 |
//! @SYMTestType CIT |
|
128 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini |
|
129 |
CREATE_OBJECT RFs RFs1 |
|
130 |
COMMAND RFs1 new |
|
131 |
COMMAND RFs1 Connect |
|
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 |
|
136 |
OUTSTANDING |
|
137 |
COMMAND RFs1 Close |
|
138 |
COMMAND RFs1 ~ |
|
139 |
END_TEST_BLOCK |
|
140 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3006 |
|
141 |
||
142 |
||
143 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3007 |
|
144 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3007 |
|
145 |
//! @SYMAPI RFs |
|
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. |
|
151 |
//! 4. Call Close(). |
|
152 |
//! @SYMTestStatus Implemented |
|
153 |
//! @SYMTestPriority Critical |
|
154 |
//! @SYMTestExpectedResults Notification was received that threshold is crossed, request status is KErrNone |
|
155 |
//! @SYMTestType CIT |
|
156 |
START_TEST_BLOCK 200 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini |
|
157 |
CREATE_OBJECT RFs RFs1 |
|
158 |
COMMAND RFs1 new |
|
159 |
COMMAND RFs1 Connect |
|
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 |
|
163 |
OUTSTANDING |
|
164 |
COMMAND RFs1 Close |
|
165 |
COMMAND RFs1 ~ |
|
166 |
END_TEST_BLOCK |
|
167 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3007 |
|
168 |
||
169 |
||
170 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3008 |
|
171 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3008 |
|
172 |
//! @SYMAPI RFs |
|
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(). |
|
178 |
//! 4. Call Close(). |
|
179 |
//! @SYMTestStatus Implemented |
|
180 |
//! @SYMTestPriority Critical |
|
181 |
//! @SYMTestExpectedResults Notification was canceled, request status is KErrCancel(-3) |
|
182 |
//! @SYMTestType CIT |
|
183 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini |
|
184 |
CREATE_OBJECT RFs RFs1 |
|
185 |
COMMAND RFs1 new |
|
186 |
COMMAND RFs1 Connect |
|
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 |
|
189 |
OUTSTANDING |
|
190 |
COMMAND RFs1 Close |
|
191 |
COMMAND RFs1 ~ |
|
192 |
END_TEST_BLOCK |
|
193 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3008 |
|
194 |
||
195 |
||
196 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3009 |
|
197 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3009 |
|
198 |
//! @SYMAPI RFs |
|
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. |
|
204 |
//! 4. Call Close(). |
|
205 |
//! @SYMTestStatus Implemented |
|
206 |
//! @SYMTestPriority Critical |
|
207 |
//! @SYMTestExpectedResults Notification was canceled, request status is KErrCancel(-3) |
|
208 |
//! @SYMTestType CIT |
|
209 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini |
|
210 |
CREATE_OBJECT RFs RFs1 |
|
211 |
COMMAND RFs1 new |
|
212 |
COMMAND RFs1 Connect |
|
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 |
|
215 |
OUTSTANDING |
|
216 |
COMMAND RFs1 Close |
|
217 |
COMMAND RFs1 ~ |
|
218 |
END_TEST_BLOCK |
|
219 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3009 |
|
220 |
||
221 |
||
222 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3013 |
|
223 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3013 |
|
224 |
//! @SYMAPI RFs |
|
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. |
|
233 |
//! 7. Call Close(). |
|
234 |
//! @SYMTestStatus Implemented |
|
235 |
//! @SYMTestPriority Critical |
|
236 |
//! @SYMTestExpectedResults KErrNone, Notify doesn't occur after creating dir. |
|
237 |
//! @SYMTestType CIT |
|
238 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini |
|
239 |
CREATE_OBJECT RFs RFs1 |
|
240 |
COMMAND RFs1 new |
|
241 |
COMMAND RFs1 Connect |
|
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 |
|
247 |
OUTSTANDING |
|
248 |
COMMAND RFs1 Close |
|
249 |
COMMAND RFs1 ~ |
|
250 |
END_TEST_BLOCK |
|
251 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3013 |
|
252 |
||
253 |
||
254 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3106 |
|
255 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3106 |
|
256 |
//! @SYMAPI RFs |
|
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. |
|
263 |
//! 5. Call Close(). |
|
264 |
//! @SYMTestStatus Implemented |
|
265 |
//! @SYMTestPriority High |
|
266 |
//! @SYMTestExpectedResults Doesn't cause panic. |
|
267 |
//! @SYMTestType CIT |
|
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 |
|
271 |
COMMAND RFs1 new |
|
272 |
COMMAND RFs1 Connect |
|
273 |
COMMAND RFile1 new |
|
274 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-3106-001-Create_command05 |
|
275 |
COMMAND RFile1 Close |
|
276 |
COMMAND RFile1 ~ |
|
277 |
COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3106-001-NotifyChange_command09 |
|
278 |
COMMAND RFs1 SetEntry PBASE-F32-RFS-PublicApi-3106-001-SetEntry_command10 |
|
279 |
OUTSTANDING |
|
280 |
COMMAND RFs1 SetEntry PBASE-F32-RFS-PublicApi-3106-001-SetEntry_command12 |
|
281 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-3106-001-Delete_command13 |
|
282 |
COMMAND RFs1 Close |
|
283 |
COMMAND RFs1 ~ |
|
284 |
END_TEST_BLOCK |
|
285 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3106 |
|
286 |
||
287 |
||
288 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3108 |
|
289 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3108 |
|
290 |
//! @SYMAPI RFs |
|
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. |
|
295 |
//! 3. Call Close(). |
|
296 |
//! @SYMTestStatus Implemented |
|
297 |
//! @SYMTestPriority High |
|
298 |
//! @SYMTestExpectedResults Function return status KErrBadName. |
|
299 |
//! @SYMTestType CIT |
|
300 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini |
|
301 |
CREATE_OBJECT RFs RFs1 |
|
302 |
COMMAND RFs1 new |
|
303 |
COMMAND RFs1 Connect |
|
304 |
COMMAND !AsyncError=-28 RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3108-001-NotifyChange_command03 |
|
305 |
OUTSTANDING |
|
306 |
COMMAND RFs1 Close |
|
307 |
COMMAND RFs1 ~ |
|
308 |
END_TEST_BLOCK |
|
309 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3108 |
|
310 |
||
311 |
||
312 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3112 |
|
313 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3112 |
|
314 |
//! @SYMAPI RFs |
|
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. |
|
319 |
//! 3. Call Close(). |
|
320 |
//! @SYMTestStatus Implemented |
|
321 |
//! @SYMTestPriority High |
|
322 |
//! @SYMTestExpectedResults Function return status KErrArgument. |
|
323 |
//! @SYMTestType CIT |
|
324 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini |
|
325 |
CREATE_OBJECT RFs RFs1 |
|
326 |
COMMAND RFs1 new |
|
327 |
COMMAND RFs1 Connect |
|
328 |
COMMAND !AsyncError=-6 RFs1 NotifyDiskSpace PBASE-F32-RFS-PublicApi-3112-001-NotifyDiskSpace_command03 |
|
329 |
OUTSTANDING |
|
330 |
COMMAND RFs1 Close |
|
331 |
COMMAND RFs1 ~ |
|
332 |
END_TEST_BLOCK |
|
333 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3112 |
|
334 |
||
335 |
||
336 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3113 |
|
337 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3113 |
|
338 |
//! @SYMAPI RFs |
|
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. |
|
343 |
//! 3. Call Close(). |
|
344 |
//! @SYMTestStatus Implemented |
|
345 |
//! @SYMTestPriority High |
|
346 |
//! @SYMTestExpectedResults Function return status KErrArgument. |
|
347 |
//! @SYMTestType CIT |
|
348 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini |
|
349 |
CREATE_OBJECT RFs RFs1 |
|
350 |
COMMAND RFs1 new |
|
351 |
COMMAND RFs1 Connect |
|
352 |
COMMAND !AsyncError=-6 RFs1 NotifyDiskSpace PBASE-F32-RFS-PublicApi-3113-001-NotifyDiskSpace_command03 |
|
353 |
OUTSTANDING |
|
354 |
COMMAND RFs1 Close |
|
355 |
COMMAND RFs1 ~ |
|
356 |
END_TEST_BLOCK |
|
357 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3113 |
|
358 |
||
359 |
||
360 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3118 |
|
361 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3118 |
|
362 |
//! @SYMAPI RFs |
|
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. |
|
370 |
//! 6. Call Close(). |
|
371 |
//! @SYMTestStatus Implemented |
|
372 |
//! @SYMTestPriority High |
|
373 |
//! @SYMTestExpectedResults Doesn't cause panic. |
|
374 |
//! @SYMTestType CIT |
|
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 |
|
378 |
COMMAND RFs1 new |
|
379 |
COMMAND RFs1 Connect |
|
380 |
COMMAND RFs1 SetNotifyUser PBASE-F32-RFS-PublicApi-3118-001-SetNotifyUser_command03 |
|
381 |
COMMAND RFs1 GetNotifyUser PBASE-F32-RFS-PublicApi-3118-001-GetNotifyUser_command04 |
|
382 |
COMMAND RFile1 new |
|
383 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-3118-001-Create_command07 |
|
384 |
COMMAND RFile1 Write PBASE-F32-RFS-PublicApi-3118-001-Write_command08 |
|
385 |
COMMAND RFile1 Close |
|
386 |
COMMAND RFile1 ~ |
|
387 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-3118-001-Delete_command12 |
|
388 |
COMMAND RFs1 Close |
|
389 |
COMMAND RFs1 ~ |
|
390 |
END_TEST_BLOCK |
|
391 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3118 |
|
392 |
||
393 |
||
394 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3125 |
|
395 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3125 |
|
396 |
//! @SYMAPI RFs |
|
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. |
|
403 |
//! 5. Call Close(). |
|
404 |
//! @SYMTestStatus Implemented |
|
405 |
//! @SYMTestPriority Critical |
|
406 |
//! @SYMTestExpectedResults Request status is KErrNone after deletion of directory. |
|
407 |
//! @SYMTestType CIT |
|
408 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini |
|
409 |
CREATE_OBJECT RFs RFs1 |
|
410 |
COMMAND RFs1 new |
|
411 |
COMMAND RFs1 Connect |
|
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 |
|
415 |
OUTSTANDING |
|
416 |
COMMAND RFs1 Close |
|
417 |
COMMAND RFs1 ~ |
|
418 |
END_TEST_BLOCK |
|
419 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3125 |
|
420 |
||
421 |
||
422 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3126 |
|
423 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3126 |
|
424 |
//! @SYMAPI RFs |
|
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. |
|
431 |
//! 5. Call Close(). |
|
432 |
//! @SYMTestStatus Implemented |
|
433 |
//! @SYMTestPriority Critical |
|
434 |
//! @SYMTestExpectedResults Request status is KErrNone after deletion of directory. |
|
435 |
//! @SYMTestType CIT |
|
436 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini |
|
437 |
CREATE_OBJECT RFs RFs1 |
|
438 |
COMMAND RFs1 new |
|
439 |
COMMAND RFs1 Connect |
|
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 |
|
443 |
OUTSTANDING |
|
444 |
COMMAND RFs1 Close |
|
445 |
COMMAND RFs1 ~ |
|
446 |
END_TEST_BLOCK |
|
447 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3126 |
|
448 |
||
449 |
||
450 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3128 |
|
451 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3128 |
|
452 |
//! @SYMAPI RFs |
|
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. |
|
459 |
//! 5. Call Close(). |
|
460 |
//! @SYMTestStatus Implemented |
|
461 |
//! @SYMTestPriority Critical |
|
462 |
//! @SYMTestExpectedResults Notification was canceled, request status is KErrCancel(-3) and the call doesn't cause panic. |
|
463 |
//! @SYMTestType CIT |
|
464 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini |
|
465 |
CREATE_OBJECT RFs RFs1 |
|
466 |
COMMAND RFs1 new |
|
467 |
COMMAND RFs1 Connect |
|
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 |
|
471 |
OUTSTANDING |
|
472 |
COMMAND RFs1 Close |
|
473 |
COMMAND RFs1 ~ |
|
474 |
END_TEST_BLOCK |
|
475 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3128 |
|
476 |
||
477 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3015 |
|
478 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3015 |
|
479 |
//! @SYMAPI RFs |
|
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. |
|
486 |
//! 5. Call Close(). |
|
487 |
//! @SYMTestStatus Implemented |
|
488 |
//! @SYMTestPriority Critical |
|
489 |
//! @SYMTestExpectedResults Request status is KErrNone after deletion of directory. |
|
490 |
//! @SYMTestType CIT |
|
491 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini |
|
492 |
CREATE_OBJECT RFs RFs1 |
|
493 |
COMMAND RFs1 new |
|
494 |
COMMAND RFs1 Connect |
|
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 |
|
498 |
OUTSTANDING |
|
499 |
COMMAND RFs1 Close |
|
500 |
COMMAND RFs1 ~ |
|
501 |
END_TEST_BLOCK |
|
502 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3015 |
|
503 |
||
504 |
||
505 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3110 |
|
506 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3110 |
|
507 |
//! @SYMAPI RFs |
|
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 |
|
518 |
//! 9. Call Close(). |
|
519 |
//! @SYMTestStatus Implemented |
|
520 |
//! @SYMTestPriority High |
|
521 |
//! @SYMTestExpectedResults Doesn't cause panic. |
|
522 |
//! @SYMTestType CIT |
|
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 |
|
526 |
COMMAND RFs1 new |
|
527 |
COMMAND RFs1 Connect |
|
528 |
COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3110-001-NotifyChange_command03 |
|
529 |
COMMAND RFile1 new |
|
530 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-3110-001-Create_command06 |
|
531 |
OUTSTANDING |
|
532 |
COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3110-001-NotifyChange_command09 |
|
533 |
COMMAND RFile1 Write PBASE-F32-RFS-PublicApi-3110-001-Write_command11 |
|
534 |
OUTSTANDING |
|
535 |
COMMAND RFile1 Close |
|
536 |
COMMAND RFile1 ~ |
|
537 |
COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3110-001-NotifyChange_command16 |
|
538 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-3110-001-Delete_command17 |
|
539 |
OUTSTANDING |
|
540 |
COMMAND RFs1 Close |
|
541 |
COMMAND RFs1 ~ |
|
542 |
END_TEST_BLOCK |
|
543 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3110 |
|
544 |
||
545 |
||
546 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3123 |
|
547 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3123 |
|
548 |
//! @SYMAPI RFs |
|
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. |
|
555 |
//! 5. Call Close(). |
|
556 |
//! @SYMTestStatus Implemented |
|
557 |
//! @SYMTestPriority Critical |
|
558 |
//! @SYMTestExpectedResults Request status is KErrNone after deletion of directory. |
|
559 |
//! @SYMTestType CIT |
|
560 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini |
|
561 |
CREATE_OBJECT RFs RFs1 |
|
562 |
COMMAND RFs1 new |
|
563 |
COMMAND RFs1 Connect |
|
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 |
|
567 |
OUTSTANDING |
|
568 |
COMMAND RFs1 Close |
|
569 |
COMMAND RFs1 ~ |
|
570 |
END_TEST_BLOCK |
|
571 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3123 |
|
572 |
||
573 |
||
574 |
START_TESTCASE PBASE-F32-RFS-PublicApi-3124 |
|
575 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3124 |
|
576 |
//! @SYMAPI RFs |
|
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. |
|
583 |
//! 5. Call Close(). |
|
584 |
//! @SYMTestStatus Implemented |
|
585 |
//! @SYMTestPriority Critical |
|
586 |
//! @SYMTestExpectedResults Request status is KErrNone after deletion of directory. |
|
587 |
//! @SYMTestType CIT |
|
588 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini |
|
589 |
CREATE_OBJECT RFs RFs1 |
|
590 |
COMMAND RFs1 new |
|
591 |
COMMAND RFs1 Connect |
|
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 |
|
595 |
OUTSTANDING |
|
596 |
COMMAND RFs1 Close |
|
597 |
COMMAND RFs1 ~ |
|
598 |
END_TEST_BLOCK |
|
599 |
END_TESTCASE PBASE-F32-RFS-PublicApi-3124 |
|
600 |
||
601 |