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-Drives-PublicApi-ANY |
|
18 |
//! @SYMScriptTestEnvironment This test script requires a basic ROM. |
|
19 |
//! @SYMScriptAuthor Anton Grober |
|
20 |
//! @SYMScriptDescription The test script contains API drives & volumes 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-1001 |
|
26 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1001 |
|
27 |
//! @SYMAPI RFs |
|
28 |
//! @SYMAuthor Anton Grober |
|
29 |
//! @SYMCreationDate 21/08/2006 |
|
30 |
//! @SYMTestCaseDesc DriveList() test. |
|
31 |
//! Uses API elements: DriveList(). |
|
32 |
//! @SYMTestActions 1. Call Connect(). |
|
33 |
//! 2. Call DriveList() passing TDriveList as a reference. |
|
34 |
//! 3. Call Close(). |
|
35 |
//! @SYMTestStatus Implemented |
|
36 |
//! @SYMTestPriority Critical |
|
37 |
//! @SYMTestExpectedResults DriveList() completes with KErrNone and returns at least C and Z drives. |
|
38 |
//! @SYMTestType CIT |
|
39 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-ANY.ini |
|
40 |
CREATE_OBJECT RFs RFs1 |
|
41 |
COMMAND RFs1 new |
|
42 |
COMMAND RFs1 Connect |
|
43 |
COMMAND RFs1 DriveList PBASE-F32-RFS-PublicApi-1001-001-DriveList_command03 |
|
44 |
COMMAND RFs1 Close |
|
45 |
COMMAND RFs1 ~ |
|
46 |
END_TEST_BLOCK |
|
47 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1001 |
|
48 |
||
49 |
||
50 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1007 |
|
51 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1007 |
|
52 |
//! @SYMAPI RFs |
|
53 |
//! @SYMAuthor Anton Grober |
|
54 |
//! @SYMCreationDate 22/08/2006 |
|
55 |
//! @SYMTestCaseDesc CharToDrive() and DriveToChar() tests. Passing exisiting drive and character representing that drive in both cases. |
|
56 |
//! Uses API elements: CharToDrive(), DriveToChar() |
|
57 |
//! @SYMTestActions 1. Call CharToDrive() passing 'X' as first parameter and TInt reference as second parameter. |
|
58 |
//! 2. Call DriveToChar() passing EdriveX as first parameter and TChar reference as second parameter. |
|
59 |
//! @SYMTestStatus Implemented |
|
60 |
//! @SYMTestPriority Critical |
|
61 |
//! @SYMTestExpectedResults Function CharToDrive() returns EDriveX through reference parameter and returns KErrNone. Fucntion DriveToChar returns 'X' through reference parameter and returns KErrNone. |
|
62 |
//! @SYMTestType CIT |
|
63 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-ANY.ini |
|
64 |
CREATE_OBJECT RFs RFs1 |
|
65 |
COMMAND RFs1 CharToDrive PBASE-F32-RFS-PublicApi-1007-001-CharToDrive_command01 |
|
66 |
COMMAND RFs1 DriveToChar PBASE-F32-RFS-PublicApi-1007-001-DriveToChar_command02 |
|
67 |
COMMAND RFs1 ~ |
|
68 |
END_TEST_BLOCK |
|
69 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1007 |
|
70 |
||
71 |
||
72 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1015 |
|
73 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1015 |
|
74 |
//! @SYMAPI RFs |
|
75 |
//! @SYMAuthor Anton Grober |
|
76 |
//! @SYMCreationDate 2/10/2006 |
|
77 |
//! @SYMTestCaseDesc Drive() negative test. Passing incorrect drive number as parameter. |
|
78 |
//! Uses API elements: Drive(). |
|
79 |
//! @SYMTestActions 1. Call Connect(). |
|
80 |
//! 2. Call Drive() passing TDriveInfo reference as first parameter and non-existent drive number. |
|
81 |
//! 3. Call Close(). |
|
82 |
//! @SYMTestStatus Implemented |
|
83 |
//! @SYMTestPriority High |
|
84 |
//! @SYMTestExpectedResults Function Drive() returns KErrBadName. |
|
85 |
//! @SYMTestType CIT |
|
86 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-ANY.ini |
|
87 |
CREATE_OBJECT RFs RFs1 |
|
88 |
COMMAND RFs1 new |
|
89 |
COMMAND RFs1 Connect |
|
90 |
COMMAND !Error=-28 RFs1 Drive PBASE-F32-RFS-PublicApi-1015-001-Drive_command03 |
|
91 |
COMMAND RFs1 Close |
|
92 |
COMMAND RFs1 ~ |
|
93 |
END_TEST_BLOCK |
|
94 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1015 |
|
95 |
||
96 |
||
97 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1017 |
|
98 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1017 |
|
99 |
//! @SYMAPI RFs |
|
100 |
//! @SYMAuthor Anton Grober |
|
101 |
//! @SYMCreationDate 2/10/2006 |
|
102 |
//! @SYMTestCaseDesc Volume(). Passing non-exisiting drive index as parameter. |
|
103 |
//! Uses API elements: Volume(). |
|
104 |
//! @SYMTestActions 1. Call Connect(). |
|
105 |
//! 2. Call Volume() passing TVolumeInfo reference as first parameter and the non-existing drive number as a second parameter. |
|
106 |
//! 3. Call Close(). |
|
107 |
//! @SYMTestStatus Implemented |
|
108 |
//! @SYMTestPriority High |
|
109 |
//! @SYMTestExpectedResults Function Volume() returns KErrBadName. |
|
110 |
//! @SYMTestType CIT |
|
111 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-ANY.ini |
|
112 |
CREATE_OBJECT RFs RFs1 |
|
113 |
COMMAND RFs1 new |
|
114 |
COMMAND RFs1 Connect |
|
115 |
COMMAND !Error=-28 RFs1 Volume PBASE-F32-RFS-PublicApi-1017-001-Volume_command03 |
|
116 |
COMMAND RFs1 Close |
|
117 |
COMMAND RFs1 ~ |
|
118 |
END_TEST_BLOCK |
|
119 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1017 |
|
120 |
||
121 |
||
122 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1019 |
|
123 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1019 |
|
124 |
//! @SYMAPI RFs |
|
125 |
//! @SYMAuthor Anton Grober |
|
126 |
//! @SYMCreationDate 02/10/2006 |
|
127 |
//! @SYMTestCaseDesc SetVolumeLabel() function test. Passing incorrect drive index as parameter. |
|
128 |
//! Uses API elements: SetVolumeLabel(). |
|
129 |
//! @SYMTestActions 1. Call Connect(). |
|
130 |
//! 2. Call SetVolumelabel() passing incorrect drive index as a parameter. |
|
131 |
//! 3. Call Close(). |
|
132 |
//! @SYMTestStatus Implemented |
|
133 |
//! @SYMTestPriority High |
|
134 |
//! @SYMTestExpectedResults Function SetVolumeLabel() returns KErrBadName. |
|
135 |
//! @SYMTestType CIT |
|
136 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-ANY.ini |
|
137 |
CREATE_OBJECT RFs RFs1 |
|
138 |
COMMAND RFs1 new |
|
139 |
COMMAND RFs1 Connect |
|
140 |
COMMAND !Error=-28 RFs1 SetVolumeLabel PBASE-F32-RFS-PublicApi-1019-001-SetVolumeLabel_command03 |
|
141 |
COMMAND RFs1 Close |
|
142 |
COMMAND RFs1 ~ |
|
143 |
END_TEST_BLOCK |
|
144 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1019 |
|
145 |
||
146 |
||
147 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1025 |
|
148 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1025 |
|
149 |
//! @SYMAPI RFs |
|
150 |
//! @SYMAuthor Anton Grober |
|
151 |
//! @SYMCreationDate 02/10/2006 |
|
152 |
//! @SYMTestCaseDesc Subst() function test. Passing incorrect drive number as parameter. |
|
153 |
//! Uses API elements: Subst(). |
|
154 |
//! @SYMTestActions 1. Call Connect(). |
|
155 |
//! 2. Call Subst() passing incorrect drive number as parameter. |
|
156 |
//! 3. Call Close(). |
|
157 |
//! @SYMTestStatus Implemented |
|
158 |
//! @SYMTestPriority High |
|
159 |
//! @SYMTestExpectedResults Function Subst() returns KErrBadName. |
|
160 |
//! @SYMTestType CIT |
|
161 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-ANY.ini |
|
162 |
CREATE_OBJECT RFs RFs1 |
|
163 |
COMMAND RFs1 new |
|
164 |
COMMAND RFs1 Connect |
|
165 |
COMMAND !Error=-28 RFs1 Subst PBASE-F32-RFS-PublicApi-1025-001-Subst_command03 |
|
166 |
COMMAND RFs1 Close |
|
167 |
COMMAND RFs1 ~ |
|
168 |
END_TEST_BLOCK |
|
169 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1025 |
|
170 |
||
171 |
||
172 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1028 |
|
173 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1028 |
|
174 |
//! @SYMAPI RFs |
|
175 |
//! @SYMAuthor Anton Grober |
|
176 |
//! @SYMCreationDate 22/08/2006 |
|
177 |
//! @SYMTestCaseDesc CharToDrive() tests. Passing incorrect character as parameter. |
|
178 |
//! Uses API elements: CharToDrive(). |
|
179 |
//! @SYMTestActions 1. Call Connect(). |
|
180 |
//! 2. Call CharToDrive() passing incorrect character as first parameter and TInt reference as second parameter. |
|
181 |
//! 3. Call Close(). |
|
182 |
//! @SYMTestStatus Implemented |
|
183 |
//! @SYMTestPriority High |
|
184 |
//! @SYMTestExpectedResults Function CharToDrive() returns KErrArgument. |
|
185 |
//! @SYMTestType CIT |
|
186 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-ANY.ini |
|
187 |
CREATE_OBJECT RFs RFs1 |
|
188 |
COMMAND !Error=-6 RFs1 CharToDrive PBASE-F32-RFS-PublicApi-1028-001-CharToDrive_command01 |
|
189 |
COMMAND RFs1 ~ |
|
190 |
END_TEST_BLOCK |
|
191 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1028 |
|
192 |
||
193 |
||
194 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1029 |
|
195 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1029 |
|
196 |
//! @SYMAPI RFs |
|
197 |
//! @SYMAuthor Anton Grober |
|
198 |
//! @SYMCreationDate 22/08/2006 |
|
199 |
//! @SYMTestCaseDesc DriveToChar() tests. Passing incorrect number as parameter. |
|
200 |
//! Uses API elements: DriveToChar() |
|
201 |
//! 1. Call DriveToChar() passing bad drive index as first parameter and TChar reference as second parameter. |
|
202 |
//! @SYMTestStatus Implemented |
|
203 |
//! @SYMTestPriority High |
|
204 |
//! @SYMTestExpectedResults Function DriveToChar() returns KErrArgument. |
|
205 |
//! @SYMTestType CIT |
|
206 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-ANY.ini |
|
207 |
CREATE_OBJECT RFs RFs1 |
|
208 |
COMMAND !Error=-6 RFs1 DriveToChar PBASE-F32-RFS-PublicApi-1029-001-DriveToChar_command01 |
|
209 |
COMMAND RFs1 ~ |
|
210 |
END_TEST_BLOCK |
|
211 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1029 |
|
212 |
||
213 |
||
214 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1030 |
|
215 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1030 |
|
216 |
//! @SYMAPI RFs |
|
217 |
//! @SYMAuthor Anton Grober |
|
218 |
//! @SYMCreationDate 22/08/2006 |
|
219 |
//! @SYMTestCaseDesc CheckDisk() test. Passing invalid drive path as a parameter. |
|
220 |
//! Uses API elements: CheckDisk(), SetSessionPath() |
|
221 |
//! @SYMTestActions 1. Call Connect(). |
|
222 |
//! 2. Call SetSessionPath() passing RAMDriveTestPath value as a parameter to set RAM drive as a default drive |
|
223 |
//! 3. Call CheckDisk() passing "ThisIsNotADrivePath" value instead of a drive path. |
|
224 |
//! 4. Call Close(). |
|
225 |
//! @SYMTestStatus Implemented |
|
226 |
//! @SYMTestPriority High |
|
227 |
//! @SYMTestExpectedResults CheckDisk() returns KErrNone, as it checks the default drive set by SetSessionPath when the drive |
|
228 |
//! path is invalid. |
|
229 |
//! @SYMTestType CIT |
|
230 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-ANY.ini |
|
231 |
CREATE_OBJECT RFs RFs1 |
|
232 |
COMMAND RFs1 new |
|
233 |
COMMAND RFs1 Connect |
|
234 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-1030-001-SetSessionPath_command02 |
|
235 |
COMMAND RFs1 CheckDisk PBASE-F32-RFS-PublicApi-1030-001-CheckDisk_command03 |
|
236 |
COMMAND RFs1 Close |
|
237 |
COMMAND RFs1 ~ |
|
238 |
END_TEST_BLOCK |
|
239 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1030 |
|
240 |
||
241 |
||
242 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1032 |
|
243 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1032 |
|
244 |
//! @SYMAPI RFs |
|
245 |
//! @SYMAuthor Anton Grober |
|
246 |
//! @SYMCreationDate 22/08/2006 |
|
247 |
//! @SYMTestCaseDesc ScanDrive() test. Passing not a drive path as a parameter. |
|
248 |
//! Uses API elements: ScanDrive() |
|
249 |
//! @SYMTestActions 1. Call Connect(). |
|
250 |
//! 2. Call ScanDrive() passing "ThisIsNotADrivePath" value instead of a drive path. |
|
251 |
//! 3. Call Close(). |
|
252 |
//! @SYMTestStatus Implemented |
|
253 |
//! @SYMTestPriority High |
|
254 |
//! @SYMTestExpectedResults Function ScanDrive() returns KErrInUse(-14). |
|
255 |
//! @SYMTestType CIT |
|
256 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-ANY.ini |
|
257 |
CREATE_OBJECT RFs RFs1 |
|
258 |
COMMAND RFs1 new |
|
259 |
COMMAND RFs1 Connect |
|
260 |
COMMAND !Error=-14 RFs1 ScanDrive PBASE-F32-RFS-PublicApi-1032-001-ScanDrive_command03 |
|
261 |
COMMAND RFs1 Close |
|
262 |
COMMAND RFs1 ~ |
|
263 |
END_TEST_BLOCK |
|
264 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1032 |
|
265 |
||
266 |
||
267 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1034 |
|
268 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1034 |
|
269 |
//! @SYMAPI RFs |
|
270 |
//! @SYMAuthor Anton Grober |
|
271 |
//! @SYMCreationDate 02/10/2006 |
|
272 |
//! @SYMTestCaseDesc SetDriveName() function test. Passing incorrect drive number as parameter. |
|
273 |
//! Uses API elements: SetDriveName(). |
|
274 |
//! @SYMTestActions 1. Call Connect(). |
|
275 |
//! 2. Call SetDriveName() passing incorrect drive number as first parameter and descriptor reference as second. |
|
276 |
//! 3. Call Close(). |
|
277 |
//! @SYMTestStatus Implemented |
|
278 |
//! @SYMTestPriority High |
|
279 |
//! @SYMTestExpectedResults Function SetDriveName() returns KErrBadName. |
|
280 |
//! @SYMTestType CIT |
|
281 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-ANY.ini |
|
282 |
CREATE_OBJECT RFs RFs1 |
|
283 |
COMMAND RFs1 new |
|
284 |
COMMAND RFs1 Connect |
|
285 |
COMMAND !Error=-28 RFs1 SetDriveName PBASE-F32-RFS-PublicApi-1034-001-SetDriveName_command03 |
|
286 |
COMMAND RFs1 Close |
|
287 |
COMMAND RFs1 ~ |
|
288 |
END_TEST_BLOCK |
|
289 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1034 |
|
290 |
||
291 |
||
292 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1035 |
|
293 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1035 |
|
294 |
//! @SYMAPI RFs |
|
295 |
//! @SYMAuthor Anton Grober |
|
296 |
//! @SYMCreationDate 02/10/2006 |
|
297 |
//! @SYMTestCaseDesc GetDriveName() function test. Passing incorect drive number as parameter. |
|
298 |
//! Uses API elements: GetDriveName(). |
|
299 |
//! @SYMTestActions 1. Call Connect(). |
|
300 |
//! 2. Call GetDriveName() passing incorrect drive number as first parameter and descriptor reference as second. |
|
301 |
//! 3. Call Close(). |
|
302 |
//! @SYMTestStatus Implemented |
|
303 |
//! @SYMTestPriority High |
|
304 |
//! @SYMTestExpectedResults Function GetDriveName() returns KErrBadName. |
|
305 |
//! @SYMTestType CIT |
|
306 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-ANY.ini |
|
307 |
CREATE_OBJECT RFs RFs1 |
|
308 |
COMMAND RFs1 new |
|
309 |
COMMAND RFs1 Connect |
|
310 |
COMMAND !Error=-28 RFs1 GetDriveName PBASE-F32-RFS-PublicApi-1035-001-GetDriveName_command03 |
|
311 |
COMMAND RFs1 Close |
|
312 |
COMMAND RFs1 ~ |
|
313 |
END_TEST_BLOCK |
|
314 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1035 |
|
315 |
||
316 |
||
317 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1046 |
|
318 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1046 |
|
319 |
//! @SYMAPI RFs |
|
320 |
//! @SYMAuthor Anton Grober |
|
321 |
//! @SYMCreationDate 02/10/2006 |
|
322 |
//! @SYMTestCaseDesc GetReserveAccess() passing invalid drive's number as drive number parameter. |
|
323 |
//! Uses API elements: GetReserveAccess(). |
|
324 |
//! @SYMTestActions 1. Call Connect(). |
|
325 |
//! 2. Call GetReserveAccess() passing invalid drive's number as drive number parameter. |
|
326 |
//! 3. Call Close(). |
|
327 |
//! @SYMTestStatus Implemented |
|
328 |
//! @SYMTestPriority High |
|
329 |
//! @SYMTestExpectedResults Function GetReserveAccess() returns KErrBadName. |
|
330 |
//! @SYMTestType CIT |
|
331 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-ANY.ini |
|
332 |
CREATE_OBJECT RFs RFs1 |
|
333 |
COMMAND RFs1 new |
|
334 |
COMMAND RFs1 Connect |
|
335 |
COMMAND !Error=-28 RFs1 GetReserveAccess PBASE-F32-RFS-PublicApi-1046-001-GetReserveAccess_command03 |
|
336 |
COMMAND RFs1 Close |
|
337 |
COMMAND RFs1 ~ |
|
338 |
END_TEST_BLOCK |
|
339 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1046 |
|
340 |
||
341 |
||
342 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1047 |
|
343 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1047 |
|
344 |
//! @SYMAPI RFs |
|
345 |
//! @SYMAuthor Anton Grober |
|
346 |
//! @SYMCreationDate 02/10/2006 |
|
347 |
//! @SYMTestCaseDesc ReleaseReserveAccess() function test. Passing invalid drive number as parameter. |
|
348 |
//! Uses API elements: ReleaseReserveAccess(). |
|
349 |
//! @SYMTestActions 1. Call Connect(). |
|
350 |
//! 2. Call ReleaseReserveAccess() passing invalid drive's number as drive number parameter. |
|
351 |
//! 3. Call Close(). |
|
352 |
//! @SYMTestStatus Implemented |
|
353 |
//! @SYMTestPriority High |
|
354 |
//! @SYMTestExpectedResults Function ReleaseReserveAccess() returns KErrBadName. |
|
355 |
//! @SYMTestType CIT |
|
356 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-ANY.ini |
|
357 |
CREATE_OBJECT RFs RFs1 |
|
358 |
COMMAND RFs1 new |
|
359 |
COMMAND RFs1 Connect |
|
360 |
COMMAND !Error=-28 RFs1 ReleaseReserveAccess PBASE-F32-RFS-PublicApi-1047-001-ReleaseReserveAccess_command03 |
|
361 |
COMMAND RFs1 Close |
|
362 |
COMMAND RFs1 ~ |
|
363 |
END_TEST_BLOCK |
|
364 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1047 |
|
365 |
||
366 |
||
367 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1038 |
|
368 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1038 |
|
369 |
//! @SYMAPI RFs |
|
370 |
//! @SYMAuthor Anton Grober |
|
371 |
//! @SYMCreationDate 02/10/2006 |
|
372 |
//! @SYMTestCaseDesc LockDrive() function test. Passing invalid drive index as parameter. |
|
373 |
//! Uses API elements: LockDrive(). |
|
374 |
//! @SYMTestActions 1. Call Connect(). |
|
375 |
//! 2. Call LockDrive() passing some invalid drive's number as drive number parameter. |
|
376 |
//! 3. Call Close(). |
|
377 |
//! @SYMTestStatus Implemented |
|
378 |
//! @SYMTestPriority High |
|
379 |
//! @SYMTestExpectedResults Function LockDrive() returns KErrBadName. |
|
380 |
//! @SYMTestType CIT |
|
381 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-ANY.ini |
|
382 |
CREATE_OBJECT RFs RFs1 |
|
383 |
COMMAND RFs1 new |
|
384 |
COMMAND RFs1 Connect |
|
385 |
COMMAND !Error=-28 RFs1 LockDrive PBASE-F32-RFS-PublicApi-1038-001-LockDrive_command03 |
|
386 |
COMMAND RFs1 Close |
|
387 |
COMMAND RFs1 ~ |
|
388 |
END_TEST_BLOCK |
|
389 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1038 |
|
390 |
||
391 |
||
392 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1050 |
|
393 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1050 |
|
394 |
//! @SYMAPI RFs |
|
395 |
//! @SYMAuthor Anton Grober |
|
396 |
//! @SYMCreationDate 20/12/2006 |
|
397 |
//! @SYMTestCaseDesc Drive() function test with KDefaultDrive as paramteter. |
|
398 |
//! Uses API elements: Drive(). |
|
399 |
//! @SYMTestActions 1. Call Connect(). |
|
400 |
//! 2. Call Drive() with TDriveInfo parameter as a refernce. |
|
401 |
//! 3. Call Close(). |
|
402 |
//! @SYMTestStatus Implemented |
|
403 |
//! @SYMTestPriority Critical |
|
404 |
//! @SYMTestExpectedResults Function Drive() returns KErrNone. |
|
405 |
//! @SYMTestType CIT |
|
406 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-ANY.ini |
|
407 |
CREATE_OBJECT RFs RFs1 |
|
408 |
COMMAND RFs1 new |
|
409 |
COMMAND RFs1 Connect |
|
410 |
COMMAND RFs1 Drive |
|
411 |
COMMAND RFs1 Close |
|
412 |
COMMAND RFs1 ~ |
|
413 |
END_TEST_BLOCK |
|
414 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1050 |
|
415 |
||
416 |
||
417 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1051 |
|
418 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1051 |
|
419 |
//! @SYMAPI RFs |
|
420 |
//! @SYMAuthor Anton Grober |
|
421 |
//! @SYMCreationDate 4/01/2007 |
|
422 |
//! @SYMTestCaseDesc Volume() function test with KDefaultDrive as paramteter. |
|
423 |
//! Uses API elements: Volume(). |
|
424 |
//! @SYMTestActions 1. Call Connect(). |
|
425 |
//! 2. Call Volume() with TVolumeInfo parameter as a refernce. |
|
426 |
//! 3. Call Close(). |
|
427 |
//! @SYMTestStatus Implemented |
|
428 |
//! @SYMTestPriority Critical |
|
429 |
//! @SYMTestExpectedResults Function Volume() returns KErrNone. |
|
430 |
//! @SYMTestType CIT |
|
431 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-ANY.ini |
|
432 |
CREATE_OBJECT RFs RFs1 |
|
433 |
COMMAND RFs1 new |
|
434 |
COMMAND RFs1 Connect |
|
435 |
COMMAND RFs1 Volume |
|
436 |
COMMAND RFs1 Close |
|
437 |
COMMAND RFs1 ~ |
|
438 |
END_TEST_BLOCK |
|
439 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1051 |
|
440 |
||
441 |
||
442 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1059 |
|
443 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1059 |
|
444 |
//! @SYMAPI RFs |
|
445 |
//! @SYMAuthor Anton Grober |
|
446 |
//! @SYMCreationDate 24/01/2007 |
|
447 |
//! @SYMTestCaseDesc IsValidDrive() passing bad drive index. |
|
448 |
//! Uses API elements: IsValidDrive(). |
|
449 |
//! @SYMTestActions 1. Call IsValidDrive() passing bad drive index. |
|
450 |
//! @SYMTestStatus Implemented |
|
451 |
//! @SYMTestPriority High |
|
452 |
//! @SYMTestExpectedResults Function IsValidDrive() returns EFalse. |
|
453 |
//! @SYMTestType CIT |
|
454 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-ANY.ini |
|
455 |
CREATE_OBJECT RFs RFs1 |
|
456 |
COMMAND RFs1 new |
|
457 |
COMMAND RFs1 IsValidDrive PBASE-F32-RFS-PublicApi-1059-001-IsValidDrive_command02 |
|
458 |
COMMAND RFs1 ~ |
|
459 |
END_TEST_BLOCK |
|
460 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1059 |
|
461 |
||
462 |
||
463 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1064 |
|
464 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1064 |
|
465 |
//! @SYMAPI RFs |
|
466 |
//! @SYMCreationDate 22/08/2006 |
|
467 |
//! @SYMTestCaseDesc ErasePassword() test. Passing invalid drive's number. |
|
468 |
//! Uses API elements: ErasePassword() |
|
469 |
//! @SYMTestActions 1. Call Connect(). |
|
470 |
//! 2. Call ErasePassword() passing invalid drive's number. |
|
471 |
//! 3. Call Close(). |
|
472 |
//! @SYMTestStatus Implemented |
|
473 |
//! @SYMTestPriority High |
|
474 |
//! @SYMTestExpectedResults Function ErasePassword() returns KErrBadName. |
|
475 |
//! @SYMTestType CIT |
|
476 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-ANY.ini |
|
477 |
CREATE_OBJECT RFs RFs1 |
|
478 |
COMMAND RFs1 new |
|
479 |
COMMAND RFs1 Connect |
|
480 |
COMMAND !Error=-28 RFs1 ErasePassword PBASE-F32-RFS-PublicApi-1064-001-ErasePassword_command03 |
|
481 |
COMMAND RFs1 Close |
|
482 |
COMMAND RFs1 ~ |
|
483 |
END_TEST_BLOCK |
|
484 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1064 |
|
485 |
||
486 |
||
487 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1069 |
|
488 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1069 |
|
489 |
//! @SYMAPI RFs |
|
490 |
//! @SYMCreationDate 22/08/2006 |
|
491 |
//! @SYMTestCaseDesc ClearPassword() test. Passing invalid drive's number. |
|
492 |
//! Uses API elements: ClearPassword() |
|
493 |
//! @SYMTestActions 1. Call Connect(). |
|
494 |
//! 2. Call ClearPassword() passing invalid drive's number. |
|
495 |
//! 3. Call Close(). |
|
496 |
//! @SYMTestStatus Implemented |
|
497 |
//! @SYMTestPriority High |
|
498 |
//! @SYMTestExpectedResults Function ErasePassword() returns KErrBadName. |
|
499 |
//! @SYMTestType CIT |
|
500 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-ANY.ini |
|
501 |
CREATE_OBJECT RFs RFs1 |
|
502 |
COMMAND RFs1 new |
|
503 |
COMMAND RFs1 Connect |
|
504 |
COMMAND !Error=-28 RFs1 ClearPassword PBASE-F32-RFS-PublicApi-1069-001-ClearPassword_command03 |
|
505 |
COMMAND RFs1 Close |
|
506 |
COMMAND RFs1 ~ |
|
507 |
END_TEST_BLOCK |
|
508 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1069 |
|
509 |
||
510 |
||
511 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1074 |
|
512 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1074 |
|
513 |
//! @SYMAPI RFs |
|
514 |
//! @SYMCreationDate 22/08/2006 |
|
515 |
//! @SYMTestCaseDesc UnlockDrive() test. Passing invalid drive's number. |
|
516 |
//! Uses API elements: UnlockDrive() |
|
517 |
//! @SYMTestActions 1. Call Connect(). |
|
518 |
//! 2. Call UnlockDrive() passing invalid drive's number and some password. |
|
519 |
//! 3. Call Close(). |
|
520 |
//! @SYMTestStatus Implemented |
|
521 |
//! @SYMTestPriority High |
|
522 |
//! @SYMTestExpectedResults Function UnlockDrive() returns KErrBadName. |
|
523 |
//! @SYMTestType CIT |
|
524 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-ANY.ini |
|
525 |
CREATE_OBJECT RFs RFs1 |
|
526 |
COMMAND RFs1 new |
|
527 |
COMMAND RFs1 Connect |
|
528 |
COMMAND !Error=-28 RFs1 UnlockDrive PBASE-F32-RFS-PublicApi-1074-001-UnlockDrive_command03 |
|
529 |
COMMAND RFs1 Close |
|
530 |
COMMAND RFs1 ~ |
|
531 |
END_TEST_BLOCK |
|
532 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1074 |
|
533 |
||
534 |
||
535 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1084 |
|
536 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1084 |
|
537 |
//! @SYMAPI RFs |
|
538 |
//! @SYMCreationDate 08/02/2007 |
|
539 |
//! @SYMTestCaseDesc DriveToChar() test with a KDefaultDrive as a drive number. |
|
540 |
//! Uses API elements: DriveToChar() |
|
541 |
//! @SYMTestActions 1. Call DriveToChar() passing a KDefaultDrive (= KMaxTInt = 2147483647) as a drive number. |
|
542 |
//! @SYMTestStatus Implemented |
|
543 |
//! @SYMTestPriority High |
|
544 |
//! @SYMTestExpectedResults Function DriveToChar() returns KErrNone. |
|
545 |
//! @SYMTestType CIT |
|
546 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-ANY.ini |
|
547 |
CREATE_OBJECT RFs RFs1 |
|
548 |
COMMAND RFs1 DriveToChar PBASE-F32-RFS-PublicApi-1084-001-DriveToChar_command01 |
|
549 |
COMMAND RFs1 ~ |
|
550 |
END_TEST_BLOCK |
|
551 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1084 |
|
552 |
||
553 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1014 |
|
554 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1014 |
|
555 |
//! @SYMAPI RFs |
|
556 |
//! @SYMAuthor Anton Grober |
|
557 |
//! @SYMCreationDate 25/09/2006 |
|
558 |
//! @SYMTestCaseDesc GetSystemDrive() test. |
|
559 |
//! Uses API elements: GetSystemDrive(). |
|
560 |
//! @SYMTestActions 1. Call GetSystemDrive(). |
|
561 |
//! @SYMTestStatus Implemented |
|
562 |
//! @SYMTestPriority Critical |
|
563 |
//! @SYMTestExpectedResults Function GetSystemDrive() returns default drive's number in case system configuration is default. |
|
564 |
//! @SYMTestType CIT |
|
565 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-ANY.ini |
|
566 |
CREATE_OBJECT RFs RFs1 |
|
567 |
COMMAND RFs1 GetSystemDrive PBASE-F32-RFS-PublicApi-1014-001-GetSystemDrive_command01 |
|
568 |
COMMAND RFs1 ~ |
|
569 |
END_TEST_BLOCK |
|
570 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1014 |
|
571 |
||
572 |
||
573 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1026 |
|
574 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1026 |
|
575 |
//! @SYMAPI RFs |
|
576 |
//! @SYMAuthor Anton Grober |
|
577 |
//! @SYMCreationDate 02/10/2006 |
|
578 |
//! @SYMTestCaseDesc GetMediaSerialNumber() function test. Passing incorrect drive number as parameter. |
|
579 |
//! Uses API elements: GetMediaSerialNumber(). |
|
580 |
//! @SYMTestActions 1. Call Connect(). |
|
581 |
//! 2. Call GetMediaSerialNumber() passing descriptor reference as first parameter and incorrect drive number as second. |
|
582 |
//! 3. Call Close(). |
|
583 |
//! @SYMTestStatus Implemented |
|
584 |
//! @SYMTestPriority High |
|
585 |
//! @SYMTestExpectedResults Function GetMediaSerialNumber() returns KErrBadName. |
|
586 |
//! @SYMTestType CIT |
|
587 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-ANY.ini |
|
588 |
CREATE_OBJECT RFs RFs1 |
|
589 |
COMMAND RFs1 new |
|
590 |
COMMAND RFs1 Connect |
|
591 |
COMMAND !Error=-28 RFs1 GetMediaSerialNumber PBASE-F32-RFS-PublicApi-1026-001-GetMediaSerialNumber_command03 |
|
592 |
COMMAND RFs1 Close |
|
593 |
COMMAND RFs1 ~ |
|
594 |
END_TEST_BLOCK |
|
595 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1026 |
|
596 |
||
597 |
||
598 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1081 |
|
599 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1081 |
|
600 |
//! @SYMAPI RFs |
|
601 |
//! @SYMAuthor Oleg Kuznetsov |
|
602 |
//! @SYMCreationDate 02/03/2007 |
|
603 |
//! @SYMTestCaseDesc Functions GetSystemDriveChar() test. |
|
604 |
//! Uses API elements: GetSystemDriveChar(). |
|
605 |
//! @SYMTestActions 1. Call Connect(). |
|
606 |
//! 2. Call GetSystemDriveChar(). |
|
607 |
//! 3. Call Close(). |
|
608 |
//! @SYMTestStatus Implemented |
|
609 |
//! @SYMTestPriority Critical |
|
610 |
//! @SYMTestExpectedResults GetSystemDriveChar() completes with KErrNone and returns 'C' char. |
|
611 |
//! @SYMTestType CIT |
|
612 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-ANY.ini |
|
613 |
CREATE_OBJECT RFs RFs1 |
|
614 |
COMMAND RFs1 new |
|
615 |
COMMAND RFs1 Connect |
|
616 |
COMMAND RFs1 GetSystemDriveChar PBASE-F32-RFS-PublicApi-1081-001-GetSystemDriveChar_command03 |
|
617 |
COMMAND RFs1 Close |
|
618 |
COMMAND RFs1 ~ |
|
619 |
END_TEST_BLOCK |
|
620 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1081 |
|
621 |
||
622 |
||
623 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1082 |
|
624 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1082 |
|
625 |
//! @SYMAPI RFs |
|
626 |
//! @SYMAuthor Oleg Kuznetsov |
|
627 |
//! @SYMCreationDate 02/03/2007 |
|
628 |
//! @SYMTestCaseDesc Functions VolumeIOParam() test with default drive letter. |
|
629 |
//! Uses API elements: VolumeIOParam(). |
|
630 |
//! @SYMTestActions 1. Call Connect(). |
|
631 |
//! 2. Call VolumeIOParam() passing default drive as argument. |
|
632 |
//! 3. Call Close(). |
|
633 |
//! @SYMTestStatus Implemented |
|
634 |
//! @SYMTestPriority Critical |
|
635 |
//! @SYMTestExpectedResults VolumeIOParam() completes with KErrNone and returns volume IO parameter information. |
|
636 |
//! @SYMTestType CIT |
|
637 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-ANY.ini |
|
638 |
CREATE_OBJECT RFs RFs1 |
|
639 |
COMMAND RFs1 new |
|
640 |
COMMAND RFs1 Connect |
|
641 |
COMMAND RFs1 VolumeIOParam PBASE-F32-RFS-PublicApi-1082-001-VolumeIOParam_command03 |
|
642 |
COMMAND RFs1 Close |
|
643 |
COMMAND RFs1 ~ |
|
644 |
END_TEST_BLOCK |
|
645 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1082 |
|
646 |
||
647 |
||
648 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1085 |
|
649 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1085 |
|
650 |
//! @SYMAPI RFs |
|
651 |
//! @SYMTestCaseDesc Function VolumeIOParam() test with negative drive letter. |
|
652 |
//! Uses API elements: VolumeIOParam(). |
|
653 |
//! @SYMTestActions 1. Call Connect() method. |
|
654 |
//! 2. Call VolumeIOParam() passing the negative drive number as argument. |
|
655 |
//! 3. Call Close() method. |
|
656 |
//! @SYMTestStatus Implemented |
|
657 |
//! @SYMTestPriority Critical |
|
658 |
//! @SYMTestExpectedResults Return KErrArgument (-6). |
|
659 |
//! @SYMTestType CIT |
|
660 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-ANY.ini |
|
661 |
CREATE_OBJECT RFs RFs1 |
|
662 |
COMMAND RFs1 new |
|
663 |
COMMAND RFs1 Connect |
|
664 |
COMMAND !Error=-6 RFs1 VolumeIOParam PBASE-F32-RFS-PublicApi-1085-001-VolumeIOParam_command03 |
|
665 |
COMMAND RFs1 Close |
|
666 |
COMMAND RFs1 ~ |
|
667 |
END_TEST_BLOCK |
|
668 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1085 |
|
669 |