os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-DirScan-PublicApi-RAM.script
Update contrib.
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-sfsrv-publicapi-ram
18 //! @SYMScriptTestEnvironment This test script requires a basic ROM.
19 //! @SYMScriptAuthor Jaanus Randveer, Runno Sgirka
20 //! @SYMScriptCreationDate 12/10/2007
21 //! @SYMScriptDescription The test script contains API tests for the following functions of CDirScan class:
22 //! CDirScan *NewL(RFs &aFs);
23 //! CDirScan *NewLC(RFs &aFs);
25 //! void SetScanDataL(const TDesC &aMatchName, TUint anEntryAttMask, TUint anEntrySortMask, TScanDirection aScanDir=EScanDownTree);
26 //! void NextL(CDir *&aDirEntries);
27 //! TPtrC AbbreviatedPath();
35 START_TESTCASE PBASE-F32-DirScan-PublicApi-1001
36 //! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1001
38 //! @SYMTestCaseDesc Constructor NewL(RFs &aFs) test, that constucts a CDirScan object.
39 //! Uses API elements: NewL().
40 //! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
41 //! 2.Call CDirScan::NewL() and session as parameter.
42 //! @SYMTestStatus Implemented
43 //! @SYMTestPriority Critical
44 //! @SYMTestExpectedResults CDirScan object is not NULL
46 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
47 CREATE_OBJECT RFs RFs1
48 CREATE_OBJECT CDirScan CDirScan1
51 COMMAND CDirScan1 NewL PBASE-F32-DirScan-PublicApi-1001-001-NewL_command004
55 END_TESTCASE PBASE-F32-DirScan-PublicApi-1001
58 START_TESTCASE PBASE-F32-DirScan-PublicApi-1002
59 //! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1002
61 //! @SYMTestCaseDesc Constructor NewLC(RFs &aFs) test, that constructs a CDirScan object and puts it to the clenupstack.
62 //! Uses API elements: NewLC().
63 //! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function;
64 //! 2.Call CDirScan::NewLC() and connected file server session as parameter.
65 //! @SYMTestStatus Implemented
66 //! @SYMTestPriority Critical
67 //! @SYMTestExpectedResults CDirScan object is not NULL.
69 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
70 CREATE_OBJECT RFs RFs1
71 CREATE_OBJECT CDirScan CDirScan1
74 COMMAND CDirScan1 NewLC PBASE-F32-DirScan-PublicApi-1002-001-NewLC_command004
78 END_TESTCASE PBASE-F32-DirScan-PublicApi-1002
81 START_TESTCASE PBASE-F32-DirScan-PublicApi-1003
82 //! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1003
84 //! @SYMTestCaseDesc Function SetScanDataL(const TDesC &aMatchName, TUint anEntryAttMask, TUint anEntrySortMask,
85 //! TScanDirection aScanDir=EScanDownTree) and function FullPath() test, that initialises a directory entries scan.
86 //! Directory used in SetScanDataL() - <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ - contains 1 files and no directories.
87 //! Uses API elements: NewLC(), SetScanDataL() FullPath();
88 //! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
89 //! 2.Call CDirScan::NewLC() and connected file server session as parameter.
90 //! 3.Call CDirScan::SetScanDataL() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ as first parameter, KEntryAttHidden as second
91 //! parameter, ESortNone as third parameter and CDirScan::EScanUpTree as fourth parameter
92 //! 4.Call CDirScan::FullPath().
93 //! @SYMTestStatus Implemented
94 //! @SYMTestPriority Critical
95 //! @SYMTestExpectedResults Scans directory structure and checks if CDirScan::FullPath() result is equal to "<RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\"
97 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
98 CREATE_OBJECT RFs RFs1
99 CREATE_OBJECT CFileMan CFileMan1
102 COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1003-001-MkDirAll_command004
103 COMMAND CFileMan1 NewL PBASE-F32-DirScan-PublicApi-1003-001-NewL_command005
104 COMMAND CFileMan1 Copy PBASE-F32-DirScan-PublicApi-1003-001-Copy_command006
108 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
109 CREATE_OBJECT RFs RFs1
110 CREATE_OBJECT CDirScan CDirScan1
113 COMMAND CDirScan1 NewLC PBASE-F32-DirScan-PublicApi-1003-002-NewLC_command004
114 COMMAND CDirScan1 SetScanDataL PBASE-F32-DirScan-PublicApi-1003-002-SetScanDataL_command005
115 COMMAND CDirScan1 FullPath PBASE-F32-DirScan-PublicApi-1003-002-FullPath_command006
119 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
120 CREATE_OBJECT RFs RFs1
121 CREATE_OBJECT CFileMan CFileMan1
124 COMMAND CFileMan1 NewL PBASE-F32-DirScan-PublicApi-1003-003-NewL_command004
125 COMMAND CFileMan1 Delete PBASE-F32-DirScan-PublicApi-1003-003-Delete_command005
126 COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1003-003-RmDir_command006
130 END_TESTCASE PBASE-F32-DirScan-PublicApi-1003
133 START_TESTCASE PBASE-F32-DirScan-PublicApi-1004
134 //! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1004
136 //! @SYMTestCaseDesc Function NextL(CDir *&aDirEntries) test, that scans the directory structure.
137 //! Directory used in SetScanDataL() - <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ - contains no files and no directories.
138 //! The directory structure to be created is following: main directory <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\, in there two
139 //! sub-directories TempDir1 and TempDir2, in TempDir1 two sub-directories TempDir1Sub1 and TempDir1Sub2 and
140 //! in TempDir2 one sub-directory TempDir2Sub.
141 //! Uses API elements: NewL(), SetScanDataL(), NextL(), FullPath().
142 //! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
143 //! 2.Call RFs::MkDirAll() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir1\ as parameter
144 //! 3.Call RFs::MkDirAll() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir2\ as parameter
145 //! 4.Call RFs::MkDirAll() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir1\TempDir1Sub1 as parameter
146 //! 5.Call RFs::MkDirAll() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir1\TempDir1Sub2 as parameter
147 //! 6.Call RFs::MkDirAll() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir2\TempDir2Sub as parameter
148 //! 7.Call CDirScan::NewL() and connected file server session as parameter.
149 //! 8.Call CDirScan::SetScanDataL() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ as first parameter, KEntryAttDir as second
150 //! parameter, ESortByName as third parameter and EScanDownTree as fourth parameter
151 //! 9.Call CDirScan::NextL() and CDir object as parameter.
152 //! 10.Call CDirScan::FullPath() to verify the expected directory path.
153 //! 11.Call CDirScan::NextL() and CDir object as parameter.
154 //! 12.Call CDirScan::FullPath() to verify the expected directory path.
155 //! 13.Call CDirScan::NextL() and CDir object as parameter.
156 //! 14.Call CDirScan::FullPath() to verify the expected directory path.
157 //! 15.Call CDirScan::NextL() and CDir object as parameter.
158 //! 16.Call CDirScan::FullPath() to verify the expected directory path.
159 //! 17.Call CDirScan::NextL() and CDir object as parameter.
160 //! 18.Call CDirScan::FullPath() to verify the expected directory path.
161 //! 19.Call CDirScan::NextL() and CDir object as parameter.
162 //! 20.Call CDirScan::FullPath() to verify the expected directory path.
163 //! 21.Call CDirScan::NextL() and CDir object as parameter.
164 //! 22.Call RFs::RmDir() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir1\TempDir1Sub1 as parameter
165 //! 23.Call RFs::RmDir() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir1\TempDir1Sub2 as parameter
166 //! 24.Call RFs::RmDir() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir2\TempDir2Sub as parameter
167 //! 25.Call RFs::RmDir() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir1\ as parameter
168 //! 26.Call RFs::RmDir() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir2\ as parameter
169 //! @SYMTestStatus Implemented
170 //! @SYMTestPriority Critical
171 //! @SYMTestExpectedResults Moves down the directory tree until there are no more directories. All the verifications pass.
173 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
174 CREATE_OBJECT RFs RFs1
177 COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1004-001-MkDirAll_command003
180 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
181 CREATE_OBJECT RFs RFs1
182 CREATE_OBJECT CDirScan CDirScan1
183 CREATE_OBJECT CDir CDir1
186 COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1004-002-MkDirAll_command004
187 COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1004-002-MkDirAll_command005
188 COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1004-002-MkDirAll_command006
189 COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1004-002-MkDirAll_command007
190 COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1004-002-MkDirAll_command008
191 COMMAND CDirScan1 NewL PBASE-F32-DirScan-PublicApi-1004-002-NewL_command009
192 COMMAND CDirScan1 SetScanDataL PBASE-F32-DirScan-PublicApi-1004-002-SetScanDataL_command010
193 COMMAND CDirScan1 NextL PBASE-F32-DirScan-PublicApi-1004-002-NextL_command011
195 COMMAND CDirScan1 FullPath PBASE-F32-DirScan-PublicApi-1004-002-FullPath_command013
196 COMMAND CDirScan1 NextL PBASE-F32-DirScan-PublicApi-1004-002-NextL_command014
198 COMMAND CDirScan1 FullPath PBASE-F32-DirScan-PublicApi-1004-002-FullPath_command016
199 COMMAND CDirScan1 NextL PBASE-F32-DirScan-PublicApi-1004-002-NextL_command017
201 COMMAND CDirScan1 FullPath PBASE-F32-DirScan-PublicApi-1004-002-FullPath_command019
202 COMMAND CDirScan1 NextL PBASE-F32-DirScan-PublicApi-1004-002-NextL_command020
204 COMMAND CDirScan1 FullPath PBASE-F32-DirScan-PublicApi-1004-002-FullPath_command022
205 COMMAND CDirScan1 NextL PBASE-F32-DirScan-PublicApi-1004-002-NextL_command023
207 COMMAND CDirScan1 FullPath PBASE-F32-DirScan-PublicApi-1004-002-FullPath_command025
208 COMMAND CDirScan1 NextL PBASE-F32-DirScan-PublicApi-1004-002-NextL_command026
210 COMMAND CDirScan1 FullPath PBASE-F32-DirScan-PublicApi-1004-002-FullPath_command028
211 COMMAND CDirScan1 NextL PBASE-F32-DirScan-PublicApi-1004-002-NextL_command029
214 COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1004-002-RmDir_command032
215 COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1004-002-RmDir_command033
216 COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1004-002-RmDir_command034
217 COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1004-002-RmDir_command035
218 COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1004-002-RmDir_command036
221 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
222 CREATE_OBJECT RFs RFs1
225 COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1004-003-RmDir_command003
228 END_TESTCASE PBASE-F32-DirScan-PublicApi-1004
231 START_TESTCASE PBASE-F32-DirScan-PublicApi-1005
232 //! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1005
234 //! @SYMTestCaseDesc Function AbbreviatedPath() test, that gets the abbreviated path of the entry currently being scanned.
235 //! Directory used in SetScanDataL() - <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ - contains no files and no directories.
236 //! Uses API elements: NewLC(), SetScanDataL, AbbreviatedPath().
237 //! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
238 //! 2.Call CDirScan::NewLC() and session as parameter.
239 //! 3.Call CDirScan::SetScanDataL() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ as first parameter, KEntryAttHidden as second
240 //! parameter, ESortNone as third parameter and CDirScan::EScanUpTree as fourth parameter
241 //! 4.Call CDirScan::AbbreviatedPath().
242 //! @SYMTestStatus Implemented
243 //! @SYMTestPriority Critical
244 //! @SYMTestExpectedResults Abbreviated path is equal to \.
246 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
247 CREATE_OBJECT RFs RFs1
250 COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1005-001-MkDirAll_command003
253 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
254 CREATE_OBJECT RFs RFs1
255 CREATE_OBJECT CDirScan CDirScan1
258 COMMAND CDirScan1 NewLC PBASE-F32-DirScan-PublicApi-1005-002-NewLC_command004
259 COMMAND CDirScan1 SetScanDataL PBASE-F32-DirScan-PublicApi-1005-002-SetScanDataL_command005
260 COMMAND CDirScan1 AbbreviatedPath PBASE-F32-DirScan-PublicApi-1005-002-AbbreviatedPath_command006
264 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
265 CREATE_OBJECT RFs RFs1
268 COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1005-003-RmDir_command003
271 END_TESTCASE PBASE-F32-DirScan-PublicApi-1005
274 START_TESTCASE PBASE-F32-DirScan-PublicApi-1006
275 //! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1006
277 //! @SYMTestCaseDesc Function NextL(CDir *&aDirEntries) test, that scans an empty directory.
278 //! Directory used in SetScanDataL() - <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir - contains no files and directories.
279 //! Uses API elements: NewL(), SetScanDataL(), NextL(), FullPath().
280 //! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
281 //! 2.Call RFs::MkDirAll() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir\ as parameter
282 //! 3.Call CDirScan::NewL() and connected file server session as parameter.
283 //! 4.Call CDirScan::SetScanDataL() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir\ as first parameter, KEntryAttDir as second
284 //! parameter, ESortByName as third parameter and EScanDownTree as fourth parameter
285 //! 5.Call CDirScan::NextL() and CDir object as parameter.
286 //! 6.Call CDirScan::FullPath() to verify the expected directory path.
287 //! 7.Call CDirScan::NextL() and CDir object as parameter.
288 //! 8.Call RFs::RmDir() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir\ as parameter
289 //! @SYMTestStatus Implemented
290 //! @SYMTestPriority Critical
291 //! @SYMTestExpectedResults The first NexL() method call returns the empty directory itself, the second one returns NULL (nothing more
294 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
295 CREATE_OBJECT RFs RFs1
298 COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1006-001-MkDirAll_command003
301 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
302 CREATE_OBJECT RFs RFs1
303 CREATE_OBJECT CDirScan CDirScan1
304 CREATE_OBJECT CDir CDir1
307 COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1006-002-MkDirAll_command004
308 COMMAND CDirScan1 NewL PBASE-F32-DirScan-PublicApi-1006-002-NewL_command005
309 COMMAND CDirScan1 SetScanDataL PBASE-F32-DirScan-PublicApi-1006-002-SetScanDataL_command006
310 COMMAND CDirScan1 NextL PBASE-F32-DirScan-PublicApi-1006-002-NextL_command007
312 COMMAND CDirScan1 FullPath PBASE-F32-DirScan-PublicApi-1006-002-FullPath_command009
313 COMMAND CDirScan1 NextL PBASE-F32-DirScan-PublicApi-1006-002-NextL_command010
316 COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1006-002-RmDir_command013
319 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
320 CREATE_OBJECT RFs RFs1
323 COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1006-003-RmDir_command003
326 END_TESTCASE PBASE-F32-DirScan-PublicApi-1006
329 START_TESTCASE PBASE-F32-DirScan-PublicApi-1007
330 //! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1007
332 //! @SYMTestCaseDesc Function SetScanDataL(const TDesC &aMatchName, TUint anEntryAttMask, TUint anEntrySortMask,
333 //! TScanDirection aScanDir=EScanDownTree) test, that uses KEntryAttNormal as attribute mask and expects files
334 //! only to be returned.
335 //! Directory used in SetScanDataL() - <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ - contains 4 files and no directories. One directory
336 //! is going to be created.
337 //! Uses API elements: NewL(), SetScanDataL(), NextL(), FullPath().
338 //! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
339 //! 2.Call RFs::MkDirAll() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir\ as parameter
340 //! 3.Call CDirScan::NewL() and connected file server session as parameter.
341 //! 4.Call CDirScan::SetScanDataL() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ as first parameter, KEntryAttNormal as second
342 //! parameter, ESortByName as third parameter and EScanDownTree as fourth parameter
343 //! 5.Call CDirScan::NextL() and CDir object as parameter.
344 //! 6.Call CDirScan::FullPath() to verify the expected directory path.
345 //! 7.Call CDir::Count() to verify the number of entries returned.
346 //! 8.Call CDir::operator[] to verify the entries returned.
347 //! 9.Call RFs::RmDir() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir\ as parameter
348 //! @SYMTestStatus Implemented
349 //! @SYMTestPriority Critical
350 //! @SYMTestExpectedResults The SetScanDataL() method call using KEntryAttNormal as attribute mask returns files only.
352 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
353 CREATE_OBJECT RFs RFs1
354 CREATE_OBJECT CFileMan CFileMan1
357 COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1007-001-MkDirAll_command004
358 COMMAND CFileMan1 NewL PBASE-F32-DirScan-PublicApi-1007-001-NewL_command005
359 COMMAND CFileMan1 Copy PBASE-F32-DirScan-PublicApi-1007-001-Copy_command006
360 COMMAND CFileMan1 Copy PBASE-F32-DirScan-PublicApi-1007-001-Copy_command007
361 COMMAND CFileMan1 Copy PBASE-F32-DirScan-PublicApi-1007-001-Copy_command008
362 COMMAND CFileMan1 Copy PBASE-F32-DirScan-PublicApi-1007-001-Copy_command009
366 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
367 CREATE_OBJECT RFs RFs1
368 CREATE_OBJECT TEntry TEntry1
369 CREATE_OBJECT CDirScan CDirScan1
370 CREATE_OBJECT CDir CDir1
373 COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1007-002-MkDirAll_command006
375 COMMAND CDirScan1 NewL PBASE-F32-DirScan-PublicApi-1007-002-NewL_command008
376 COMMAND CDirScan1 SetScanDataL PBASE-F32-DirScan-PublicApi-1007-002-SetScanDataL_command009
377 COMMAND CDirScan1 NextL PBASE-F32-DirScan-PublicApi-1007-002-NextL_command010
378 COMMAND CDirScan1 FullPath PBASE-F32-DirScan-PublicApi-1007-002-FullPath_command011
379 COMMAND CDir1 Count PBASE-F32-DirScan-PublicApi-1007-002-Count_command012
380 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1007-002-index_command013
381 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1007-002-index_command014
382 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1007-002-index_command015
383 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1007-002-index_command016
386 COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1007-002-RmDir_command019
390 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
391 CREATE_OBJECT RFs RFs1
392 CREATE_OBJECT CFileMan CFileMan1
395 COMMAND CFileMan1 NewL PBASE-F32-DirScan-PublicApi-1007-003-NewL_command004
396 COMMAND CFileMan1 Delete PBASE-F32-DirScan-PublicApi-1007-003-Delete_command005
397 COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1007-003-RmDir_command006
401 END_TESTCASE PBASE-F32-DirScan-PublicApi-1007
404 START_TESTCASE PBASE-F32-DirScan-PublicApi-1008
405 //! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1008
407 //! @SYMTestCaseDesc Function SetScanDataL(const TDesC &aMatchName, TUint anEntryAttMask, TUint anEntrySortMask,
408 //! TScanDirection aScanDir=EScanDownTree) test, that uses KEntryAttDir as attribute mask and expects files
409 //! and directories both to be returned.
410 //! Directory used in SetScanDataL() - <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ - contains 4 files and no directories. One directory
411 //! is going to be created.
412 //! Uses API elements: NewL(), SetScanDataL(), NextL(), FullPath().
413 //! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
414 //! 2.Call RFs::MkDirAll() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir\ as parameter
415 //! 3.Call CDirScan::NewL() and connected file server session as parameter.
416 //! 4.Call CDirScan::SetScanDataL() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ as first parameter, KEntryAttDir as second
417 //! parameter, ESortByName as third parameter and EScanDownTree as fourth parameter
418 //! 5.Call CDirScan::NextL() and CDir object as parameter.
419 //! 6.Call CDirScan::FullPath() to verify the expected directory path.
420 //! 7.Call CDir::Count() to verify the number of entries returned.
421 //! 8.Call CDir::operator[] to verify the entries returned.
422 //! 9.Call RFs::RmDir() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir\ as parameter
423 //! @SYMTestStatus Implemented
424 //! @SYMTestPriority Critical
425 //! @SYMTestExpectedResults The SetScanDataL() method call using KEntryAttDir as attribute mask returns both files and directories.
427 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
428 CREATE_OBJECT RFs RFs1
429 CREATE_OBJECT CFileMan CFileMan1
432 COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1008-001-MkDirAll_command004
433 COMMAND CFileMan1 NewL PBASE-F32-DirScan-PublicApi-1008-001-NewL_command005
434 COMMAND CFileMan1 Copy PBASE-F32-DirScan-PublicApi-1008-001-Copy_command006
435 COMMAND CFileMan1 Copy PBASE-F32-DirScan-PublicApi-1008-001-Copy_command007
436 COMMAND CFileMan1 Copy PBASE-F32-DirScan-PublicApi-1008-001-Copy_command008
437 COMMAND CFileMan1 Copy PBASE-F32-DirScan-PublicApi-1008-001-Copy_command009
441 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
442 CREATE_OBJECT RFs RFs1
443 CREATE_OBJECT TEntry TEntry1
444 CREATE_OBJECT CDirScan CDirScan1
445 CREATE_OBJECT CDir CDir1
448 COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1008-002-MkDirAll_command006
450 COMMAND CDirScan1 NewL PBASE-F32-DirScan-PublicApi-1008-002-NewL_command008
451 COMMAND CDirScan1 SetScanDataL PBASE-F32-DirScan-PublicApi-1008-002-SetScanDataL_command009
452 COMMAND CDirScan1 NextL PBASE-F32-DirScan-PublicApi-1008-002-NextL_command010
453 COMMAND CDirScan1 FullPath PBASE-F32-DirScan-PublicApi-1008-002-FullPath_command011
454 COMMAND CDir1 Count PBASE-F32-DirScan-PublicApi-1008-002-Count_command012
455 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1008-002-index_command013
456 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1008-002-index_command014
457 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1008-002-index_command015
458 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1008-002-index_command016
459 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1008-002-index_command017
462 COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1008-002-RmDir_command020
466 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
467 CREATE_OBJECT RFs RFs1
468 CREATE_OBJECT CFileMan CFileMan1
471 COMMAND CFileMan1 NewL PBASE-F32-DirScan-PublicApi-1008-003-NewL_command004
472 COMMAND CFileMan1 Delete PBASE-F32-DirScan-PublicApi-1008-003-Delete_command005
473 COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1008-003-RmDir_command006
477 END_TESTCASE PBASE-F32-DirScan-PublicApi-1008
481 START_TESTCASE PBASE-F32-DirScan-PublicApi-1009
482 //! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1009
484 //! @SYMTestCaseDesc Function SetScanDataL(const TDesC &aMatchName, TUint anEntryAttMask, TUint anEntrySortMask,
485 //! TScanDirection aScanDir=EScanDownTree) test, that uses KEntryAttDir|KEntryAttMatchExclusive as attribute mask
486 //! and expects directories only to be returned.
487 //! Directory used in SetScanDataL() - <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ - contains no files and no directories. One directory
488 //! is going to be created.
489 //! Uses API elements: NewL(), SetScanDataL(), NextL(), FullPath().
490 //! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
491 //! 2.Call RFs::MkDirAll() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir\ as parameter
492 //! 3.Call CDirScan::NewL() and connected file server session as parameter.
493 //! 4.Call CDirScan::SetScanDataL() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ as first parameter, KEntryAttDir|KEntryAttMatchExclusive
494 //! as second parameter, ESortByName as third parameter and EScanDownTree as fourth parameter
495 //! 5.Call CDirScan::NextL() and CDir object as parameter.
496 //! 6.Call CDirScan::FullPath() to verify the expected directory path.
497 //! 7.Call CDir::Count() to verify the number of entries returned.
498 //! 8.Call CDir::operator[] to verify the entries returned.
499 //! 9.Call RFs::RmDir() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir\ as parameter
500 //! @SYMTestStatus Implemented
501 //! @SYMTestPriority Critical
502 //! @SYMTestExpectedResults The SetScanDataL() method call using KEntryAttDir|KEntryAttMatchExclusive as attribute mask returns
503 //! directories only.
505 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
506 CREATE_OBJECT RFs RFs1
509 COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1009-001-MkDirAll_command003
512 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
513 CREATE_OBJECT RFs RFs1
514 CREATE_OBJECT TEntry TEntry1
515 CREATE_OBJECT CDirScan CDirScan1
516 CREATE_OBJECT CDir CDir1
519 COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1009-002-MkDirAll_command006
521 COMMAND CDirScan1 NewL PBASE-F32-DirScan-PublicApi-1009-002-NewL_command008
522 COMMAND CDirScan1 SetScanDataL PBASE-F32-DirScan-PublicApi-1009-002-SetScanDataL_command009
523 COMMAND CDirScan1 NextL PBASE-F32-DirScan-PublicApi-1009-002-NextL_command010
524 COMMAND CDirScan1 FullPath PBASE-F32-DirScan-PublicApi-1009-002-FullPath_command011
525 COMMAND CDir1 Count PBASE-F32-DirScan-PublicApi-1009-002-Count_command012
526 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1009-002-index_command013
529 COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1009-002-RmDir_command016
533 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
534 CREATE_OBJECT RFs RFs1
537 COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1009-003-RmDir_command003
540 END_TESTCASE PBASE-F32-DirScan-PublicApi-1009
543 START_TESTCASE PBASE-F32-DirScan-PublicApi-1010
544 //! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1010
546 //! @SYMTestCaseDesc Function SetScanDataL(const TDesC &aMatchName, TUint anEntryAttMask, TUint anEntrySortMask,
547 //! TScanDirection aScanDir=EScanDownTree) test, that uses KEntryAttReadOnly|KEntryAttMatchExclusive as attribute
548 //! mask and expects only read-only files to be returned.
549 //! Directory used in SetScanDataL() - <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ - contains 4 files and no directories.
550 //! Uses API elements: NewL(), SetScanDataL(), NextL(), FullPath().
551 //! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
552 //! 2.Call RFs::SetAtt() to clear all possible read-only attributes.
553 //! 3.Call RFs::SetAtt() to set some read-only attributes.
554 //! 4.Call CDirScan::NewL() and connected file server session as parameter.
555 //! 5.Call CDirScan::SetScanDataL() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ as first parameter, KEntryAttReadOnly|KEntryAttMatchExclusive
556 //! as second parameter, ESortByName as third parameter and EScanDownTree as fourth parameter
557 //! 6.Call CDirScan::NextL() and CDir object as parameter.
558 //! 7.Call CDirScan::FullPath() to verify the expected directory path.
559 //! 8.Call CDir::Count() to verify the number of entries returned.
560 //! 9.Call CDir::operator[] to verify the entries returned.
561 //! @SYMTestStatus Implemented
562 //! @SYMTestPriority Critical
563 //! @SYMTestExpectedResults The SetScanDataL() method call using KEntryAttReadOnly|KEntryAttMatchExclusive as attribute mask returns
564 //! only read-only files and directories.
566 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
567 CREATE_OBJECT RFs RFs1
568 CREATE_OBJECT CFileMan CFileMan1
571 COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1010-001-MkDirAll_command004
572 COMMAND CFileMan1 NewL PBASE-F32-DirScan-PublicApi-1010-001-NewL_command005
573 COMMAND CFileMan1 Copy PBASE-F32-DirScan-PublicApi-1010-001-Copy_command006
574 COMMAND CFileMan1 Copy PBASE-F32-DirScan-PublicApi-1010-001-Copy_command007
575 COMMAND CFileMan1 Copy PBASE-F32-DirScan-PublicApi-1010-001-Copy_command008
576 COMMAND CFileMan1 Copy PBASE-F32-DirScan-PublicApi-1010-001-Copy_command009
580 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
581 CREATE_OBJECT RFs RFs1
582 CREATE_OBJECT TEntry TEntry1
583 CREATE_OBJECT CDirScan CDirScan1
584 CREATE_OBJECT CDir CDir1
587 COMMAND RFs1 SetAtt PBASE-F32-DirScan-PublicApi-1010-002-SetAtt_command006
588 COMMAND RFs1 SetAtt PBASE-F32-DirScan-PublicApi-1010-002-SetAtt_command007
589 COMMAND RFs1 SetAtt PBASE-F32-DirScan-PublicApi-1010-002-SetAtt_command008
590 COMMAND RFs1 SetAtt PBASE-F32-DirScan-PublicApi-1010-002-SetAtt_command009
591 COMMAND RFs1 SetAtt PBASE-F32-DirScan-PublicApi-1010-002-SetAtt_command010
592 COMMAND RFs1 SetAtt PBASE-F32-DirScan-PublicApi-1010-002-SetAtt_command011
594 COMMAND CDirScan1 NewL PBASE-F32-DirScan-PublicApi-1010-002-NewL_command013
595 COMMAND CDirScan1 SetScanDataL PBASE-F32-DirScan-PublicApi-1010-002-SetScanDataL_command014
596 COMMAND CDirScan1 NextL PBASE-F32-DirScan-PublicApi-1010-002-NextL_command015
597 COMMAND CDirScan1 FullPath PBASE-F32-DirScan-PublicApi-1010-002-FullPath_command016
598 COMMAND CDir1 Count PBASE-F32-DirScan-PublicApi-1010-002-Count_command017
599 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1010-002-index_command018
600 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1010-002-index_command019
601 COMMAND RFs1 SetAtt PBASE-F32-DirScan-PublicApi-1010-002-SetAtt_command020
602 COMMAND RFs1 SetAtt PBASE-F32-DirScan-PublicApi-1010-002-SetAtt_command021
608 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
609 CREATE_OBJECT RFs RFs1
610 CREATE_OBJECT CFileMan CFileMan1
613 COMMAND CFileMan1 NewL PBASE-F32-DirScan-PublicApi-1010-003-NewL_command004
614 COMMAND CFileMan1 Delete PBASE-F32-DirScan-PublicApi-1010-003-Delete_command005
615 COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1010-003-RmDir_command006
619 END_TESTCASE PBASE-F32-DirScan-PublicApi-1010
622 START_TESTCASE PBASE-F32-DirScan-PublicApi-1011
623 //! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1011
625 //! @SYMTestCaseDesc Function SetScanDataL() test, that checks that when using relative path then everything else is taken from
626 //! the session path.
627 //! Directory used in SetScanDataL() - <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ - contains no files and no directories.
628 //! Uses API elements: NewL(), SetScanDataL(), NextL(), FullPath().
629 //! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
630 //! 2.Call RFs::SetSessionPath() to set new session path, passing <RAM_DRIVE>:\<RELATIVE_PATH>\ as parameter.
631 //! 3.Call RFs::SessionPath() to verify previous action.
632 //! 4.Call CDirScan::NewL() and connected file server session as parameter.
633 //! 5.Call CDirScan::SetScanDataL() and \dirscan\ as first parameter, KEntryAttNormal as second parameter,
634 //! ESortByName as third parameter and EScanDownTree as fourth parameter.
635 //! 6.Call CDirScan::NextL() and CDir object as parameter.
636 //! 7.Call CDirScan::FullPath() to verify the expected directory path.
637 //! @SYMTestStatus Implemented
638 //! @SYMTestPriority Critical
639 //! @SYMTestExpectedResults The SetScanDataL() method call using relative path takes everything else from the session path.
641 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
642 CREATE_OBJECT RFs RFs1
645 COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1011-001-MkDirAll_command003
648 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
649 CREATE_OBJECT RFs RFs1
650 CREATE_OBJECT CDirScan CDirScan1
651 CREATE_OBJECT CDir CDir1
654 COMMAND RFs1 SetSessionPath PBASE-F32-DirScan-PublicApi-1011-002-SetSessionPath_command004
655 COMMAND RFs1 SessionPath PBASE-F32-DirScan-PublicApi-1011-002-SessionPath_command005
656 COMMAND CDirScan1 NewL PBASE-F32-DirScan-PublicApi-1011-002-NewL_command006
657 COMMAND CDirScan1 SetScanDataL PBASE-F32-DirScan-PublicApi-1011-002-SetScanDataL_command007
658 COMMAND CDirScan1 NextL PBASE-F32-DirScan-PublicApi-1011-002-NextL_command008
659 COMMAND CDirScan1 FullPath PBASE-F32-DirScan-PublicApi-1011-002-FullPath_command009
664 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
665 CREATE_OBJECT RFs RFs1
668 COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1011-003-RmDir_command003
671 END_TESTCASE PBASE-F32-DirScan-PublicApi-1011
674 START_TESTCASE PBASE-F32-DirScan-PublicApi-1012
675 //! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1012
677 //! @SYMTestCaseDesc Function SetScanDataL() test, that checks that when using path without the traling \ then it starts scanning
678 //! the parent directory.
679 //! Directory used in SetScanDataL() - <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ - contains no files and no directories.
680 //! Uses API elements: NewL(), SetScanDataL(), NextL(), FullPath().
681 //! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
682 //! 2.Call CDirScan::NewL() and connected file server session as parameter.
683 //! 3.Call CDirScan::SetScanDataL() and drive>:\dirscan as first parameter, KEntryAttNormal as second parameter,
684 //! ESortByName as third parameter and EScanDownTree as fourth parameter.
685 //! 4.Call CDirScan::NextL() and CDir object as parameter.
686 //! 5.Call CDirScan::FullPath() to verify the expected directory path.
687 //! @SYMTestStatus Implemented
688 //! @SYMTestPriority Critical
689 //! @SYMTestExpectedResults The SetScanDataL() method call using path without trailing \ starts scanning the parent directory.
691 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
692 CREATE_OBJECT RFs RFs1
695 COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1012-001-MkDirAll_command003
698 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
699 CREATE_OBJECT RFs RFs1
700 CREATE_OBJECT CDirScan CDirScan1
701 CREATE_OBJECT CDir CDir1
704 COMMAND CDirScan1 NewL PBASE-F32-DirScan-PublicApi-1012-002-NewL_command004
705 COMMAND CDirScan1 SetScanDataL PBASE-F32-DirScan-PublicApi-1012-002-SetScanDataL_command005
706 COMMAND CDirScan1 NextL PBASE-F32-DirScan-PublicApi-1012-002-NextL_command006
707 COMMAND CDirScan1 FullPath PBASE-F32-DirScan-PublicApi-1012-002-FullPath_command007
712 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
713 CREATE_OBJECT RFs RFs1
716 COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1012-003-RmDir_command003
719 END_TESTCASE PBASE-F32-DirScan-PublicApi-1012
722 START_TESTCASE PBASE-F32-DirScan-PublicApi-1013
723 //! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1013
725 //! @SYMTestCaseDesc Function SetScanDataL() test, that uses ESortByName | EAscending as sort key.
726 //! Directory used in SetScanDataL() - <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ - contains 4 files and no directories.
727 //! Uses API elements: NewL(), SetScanDataL(), NextL(), FullPath().
728 //! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
729 //! 2.Call CDirScan::NewL() and connected file server session as parameter.
730 //! 3.Call CDirScan::SetScanDataL() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ as first parameter, KEntryAttNormal as second
731 //! parameter, ESortByName | EAscending as third parameter and EScanDownTree as fourth parameter
732 //! 4.Call CDirScan::NextL() and CDir object as parameter.
733 //! 5.Call CDirScan::FullPath() to verify the expected directory path.
734 //! 6.Call CDir::Count() to verify the number of entries returned.
735 //! 7.Call CDir::operator[] to verify the entries returned.
736 //! @SYMTestStatus Implemented
737 //! @SYMTestPriority Critical
738 //! @SYMTestExpectedResults The SetScanDataL() method call using ESortByName | EAscending as sort key sorts the entries as expected.
740 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
741 CREATE_OBJECT RFs RFs1
742 CREATE_OBJECT CFileMan CFileMan1
745 COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1013-001-MkDirAll_command004
746 COMMAND CFileMan1 NewL PBASE-F32-DirScan-PublicApi-1013-001-NewL_command005
747 COMMAND CFileMan1 Copy PBASE-F32-DirScan-PublicApi-1013-001-Copy_command006
748 COMMAND CFileMan1 Copy PBASE-F32-DirScan-PublicApi-1013-001-Copy_command007
749 COMMAND CFileMan1 Copy PBASE-F32-DirScan-PublicApi-1013-001-Copy_command008
750 COMMAND CFileMan1 Copy PBASE-F32-DirScan-PublicApi-1013-001-Copy_command009
754 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
755 CREATE_OBJECT RFs RFs1
756 CREATE_OBJECT TEntry TEntry1
757 CREATE_OBJECT CDirScan CDirScan1
758 CREATE_OBJECT CDir CDir1
762 COMMAND CDirScan1 NewL PBASE-F32-DirScan-PublicApi-1013-002-NewL_command007
763 COMMAND CDirScan1 SetScanDataL PBASE-F32-DirScan-PublicApi-1013-002-SetScanDataL_command008
764 COMMAND CDirScan1 NextL PBASE-F32-DirScan-PublicApi-1013-002-NextL_command009
765 COMMAND CDirScan1 FullPath PBASE-F32-DirScan-PublicApi-1013-002-FullPath_command010
766 COMMAND CDir1 Count PBASE-F32-DirScan-PublicApi-1013-002-Count_command011
767 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1013-002-index_command012
768 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1013-002-index_command013
769 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1013-002-index_command014
770 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1013-002-index_command015
776 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
777 CREATE_OBJECT RFs RFs1
778 CREATE_OBJECT CFileMan CFileMan1
781 COMMAND CFileMan1 NewL PBASE-F32-DirScan-PublicApi-1013-003-NewL_command004
782 COMMAND CFileMan1 Delete PBASE-F32-DirScan-PublicApi-1013-003-Delete_command005
783 COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1013-003-RmDir_command006
787 END_TESTCASE PBASE-F32-DirScan-PublicApi-1013
790 START_TESTCASE PBASE-F32-DirScan-PublicApi-1014
791 //! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1014
793 //! @SYMTestCaseDesc Function SetScanDataL() test, that uses ESortByExt | EDescending as sort key.
794 //! Directory used in SetScanDataL() - <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ - contains 4 files and no directories.
795 //! Uses API elements: NewL(), SetScanDataL(), NextL(), FullPath().
796 //! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
797 //! 2.Call CDirScan::NewL() and connected file server session as parameter.
798 //! 3.Call CDirScan::SetScanDataL() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ as first parameter, KEntryAttNormal as second
799 //! parameter, ESortByExt | EDescending as third parameter and EScanDownTree as fourth parameter
800 //! 4.Call CDirScan::NextL() and CDir object as parameter.
801 //! 5.Call CDirScan::FullPath() to verify the expected directory path.
802 //! 6.Call CDir::Count() to verify the number of entries returned.
803 //! 7.Call CDir::operator[] to verify the entries returned.
804 //! @SYMTestStatus Implemented
805 //! @SYMTestPriority Critical
806 //! @SYMTestExpectedResults The SetScanDataL() method call using ESortByExt | EDescending as sort key sorts the entries as expected.
808 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
809 CREATE_OBJECT RFs RFs1
810 CREATE_OBJECT CFileMan CFileMan1
813 COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1014-001-MkDirAll_command004
814 COMMAND CFileMan1 NewL PBASE-F32-DirScan-PublicApi-1014-001-NewL_command005
815 COMMAND CFileMan1 Copy PBASE-F32-DirScan-PublicApi-1014-001-Copy_command006
816 COMMAND CFileMan1 Copy PBASE-F32-DirScan-PublicApi-1014-001-Copy_command007
817 COMMAND CFileMan1 Copy PBASE-F32-DirScan-PublicApi-1014-001-Copy_command008
818 COMMAND CFileMan1 Copy PBASE-F32-DirScan-PublicApi-1014-001-Copy_command009
822 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
823 CREATE_OBJECT RFs RFs1
824 CREATE_OBJECT TEntry TEntry1
825 CREATE_OBJECT CDirScan CDirScan1
826 CREATE_OBJECT CDir CDir1
830 COMMAND CDirScan1 NewL PBASE-F32-DirScan-PublicApi-1014-002-NewL_command007
831 COMMAND CDirScan1 SetScanDataL PBASE-F32-DirScan-PublicApi-1014-002-SetScanDataL_command008
832 COMMAND CDirScan1 NextL PBASE-F32-DirScan-PublicApi-1014-002-NextL_command009
833 COMMAND CDirScan1 FullPath PBASE-F32-DirScan-PublicApi-1014-002-FullPath_command010
834 COMMAND CDir1 Count PBASE-F32-DirScan-PublicApi-1014-002-Count_command011
835 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1014-002-index_command012
836 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1014-002-index_command013
837 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1014-002-index_command014
838 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1014-002-index_command015
844 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
845 CREATE_OBJECT RFs RFs1
846 CREATE_OBJECT CFileMan CFileMan1
849 COMMAND CFileMan1 NewL PBASE-F32-DirScan-PublicApi-1014-003-NewL_command004
850 COMMAND CFileMan1 Delete PBASE-F32-DirScan-PublicApi-1014-003-Delete_command005
851 COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1014-003-RmDir_command006
855 END_TESTCASE PBASE-F32-DirScan-PublicApi-1014
858 START_TESTCASE PBASE-F32-DirScan-PublicApi-1015
859 //! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1015
861 //! @SYMTestCaseDesc Function SetScanDataL() test, that uses EDirsFirst | EDirDescending | ESortByDate as sort key.
862 //! Directory used in SetScanDataL() - <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ - contains 4 files and no directories. Two directories
864 //! Uses API elements: NewL(), SetScanDataL(), NextL(), FullPath().
865 //! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
866 //! 2.Call RFs::MkDirAll() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir1\ as parameter
867 //! 3.Call RFs::MkDirAll() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir2\ as parameter
868 //! 4.Call RFs::SetModified(const TDesC &aName, const TTime &aTime) to set directories' and files' modified date.
869 //! 5.Call CDirScan::NewL() and connected file server session as parameter.
870 //! 6.Call CDirScan::SetScanDataL() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ as first parameter, KEntryAttDir as second
871 //! parameter, EDirsFirst | EDirDescending | ESortByDate as third parameter and EScanDownTree as fourth parameter
872 //! 7.Call CDirScan::NextL() and CDir object as parameter.
873 //! 8.Call CDirScan::FullPath() to verify the expected directory path.
874 //! 9.Call CDir::Count() to verify the number of entries returned.
875 //! 10.Call CDir::operator[] to verify the entries returned.
876 //! 11.Call RFs::RmDir() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir1\ as parameter
877 //! 12.Call RFs::RmDir() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir2\ as parameter
878 //! @SYMTestStatus Implemented
879 //! @SYMTestPriority Critical
880 //! @SYMTestExpectedResults The SetScanDataL() method call using EDirsFirst | EDirDescending | ESortByDate as sort key sorts the entries as expected.
882 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
883 CREATE_OBJECT RFs RFs1
884 CREATE_OBJECT CFileMan CFileMan1
887 COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1015-001-MkDirAll_command004
888 COMMAND CFileMan1 NewL PBASE-F32-DirScan-PublicApi-1015-001-NewL_command005
889 COMMAND CFileMan1 Copy PBASE-F32-DirScan-PublicApi-1015-001-Copy_command006
890 COMMAND CFileMan1 Copy PBASE-F32-DirScan-PublicApi-1015-001-Copy_command007
891 COMMAND CFileMan1 Copy PBASE-F32-DirScan-PublicApi-1015-001-Copy_command008
892 COMMAND CFileMan1 Copy PBASE-F32-DirScan-PublicApi-1015-001-Copy_command009
896 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
897 CREATE_OBJECT RFs RFs1
898 CREATE_OBJECT TEntry TEntry1
899 CREATE_OBJECT CDirScan CDirScan1
900 CREATE_OBJECT CDir CDir1
903 COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1015-002-MkDirAll_command006
904 COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1015-002-MkDirAll_command007
905 COMMAND RFs1 SetModified PBASE-F32-DirScan-PublicApi-1015-002-SetModified_command008
906 COMMAND RFs1 SetModified PBASE-F32-DirScan-PublicApi-1015-002-SetModified_command009
907 COMMAND RFs1 SetModified PBASE-F32-DirScan-PublicApi-1015-002-SetModified_command010
908 COMMAND RFs1 SetModified PBASE-F32-DirScan-PublicApi-1015-002-SetModified_command011
910 COMMAND CDirScan1 NewL PBASE-F32-DirScan-PublicApi-1015-002-NewL_command013
911 COMMAND CDirScan1 SetScanDataL PBASE-F32-DirScan-PublicApi-1015-002-SetScanDataL_command014
912 COMMAND CDirScan1 NextL PBASE-F32-DirScan-PublicApi-1015-002-NextL_command015
913 COMMAND CDirScan1 FullPath PBASE-F32-DirScan-PublicApi-1015-002-FullPath_command016
914 COMMAND CDir1 Count PBASE-F32-DirScan-PublicApi-1015-002-Count_command017
915 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1015-002-index_command018
916 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1015-002-index_command019
917 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1015-002-index_command020
918 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1015-002-index_command021
919 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1015-002-index_command022
920 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1015-002-index_command023
921 COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1015-002-RmDir_command024
922 COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1015-002-RmDir_command025
928 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
929 CREATE_OBJECT RFs RFs1
930 CREATE_OBJECT CFileMan CFileMan1
933 COMMAND CFileMan1 NewL PBASE-F32-DirScan-PublicApi-1015-003-NewL_command004
934 COMMAND CFileMan1 Delete PBASE-F32-DirScan-PublicApi-1015-003-Delete_command005
935 COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1015-003-RmDir_command006
939 END_TESTCASE PBASE-F32-DirScan-PublicApi-1015
942 START_TESTCASE PBASE-F32-DirScan-PublicApi-1016
943 //! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1016
945 //! @SYMTestCaseDesc Function SetScanDataL() test, that uses EDirsLast | ESortBySize as sort key.
946 //! Directory used in SetScanDataL() - <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ - contains 4 files and no directories. Two directories
948 //! Uses API elements: NewL(), SetScanDataL(), NextL(), FullPath().
949 //! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
950 //! 2.Call RFs::MkDirAll() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir1\ as parameter
951 //! 3.Call RFs::MkDirAll() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir2\ as parameter
952 //! 4.Call CDirScan::NewL() and connected file server session as parameter.
953 //! 5.Call CDirScan::SetScanDataL() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ as first parameter, KEntryAttDir as second
954 //! parameter, EDirsLast | ESortBySize as third parameter and EScanDownTree as fourth parameter
955 //! 6.Call CDirScan::NextL() and CDir object as parameter.
956 //! 7.Call CDirScan::FullPath() to verify the expected directory path.
957 //! 8.Call CDir::Count() to verify the number of entries returned.
958 //! 9.Call CDir::operator[] to verify the entries returned.
959 //! 10.Call RFs::RmDir() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir1\ as parameter
960 //! 11.Call RFs::RmDir() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir2\ as parameter
961 //! @SYMTestStatus Implemented
962 //! @SYMTestPriority Critical
963 //! @SYMTestExpectedResults The SetScanDataL() method call using EDirsLast | ESortBySize as sort key sorts the entries as expected.
965 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
966 CREATE_OBJECT RFs RFs1
967 CREATE_OBJECT CFileMan CFileMan1
970 COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1016-001-MkDirAll_command004
971 COMMAND CFileMan1 NewL PBASE-F32-DirScan-PublicApi-1016-001-NewL_command005
972 COMMAND CFileMan1 Copy PBASE-F32-DirScan-PublicApi-1016-001-Copy_command006
973 COMMAND CFileMan1 Copy PBASE-F32-DirScan-PublicApi-1016-001-Copy_command007
974 COMMAND CFileMan1 Copy PBASE-F32-DirScan-PublicApi-1016-001-Copy_command008
975 COMMAND CFileMan1 Copy PBASE-F32-DirScan-PublicApi-1016-001-Copy_command009
979 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
980 CREATE_OBJECT RFs RFs1
981 CREATE_OBJECT TEntry TEntry1
982 CREATE_OBJECT CDirScan CDirScan1
983 CREATE_OBJECT CDir CDir1
986 COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1016-002-MkDirAll_command006
987 COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1016-002-MkDirAll_command007
989 COMMAND CDirScan1 NewL PBASE-F32-DirScan-PublicApi-1016-002-NewL_command009
990 COMMAND CDirScan1 SetScanDataL PBASE-F32-DirScan-PublicApi-1016-002-SetScanDataL_command010
991 COMMAND CDirScan1 NextL PBASE-F32-DirScan-PublicApi-1016-002-NextL_command011
992 COMMAND CDirScan1 FullPath PBASE-F32-DirScan-PublicApi-1016-002-FullPath_command012
993 COMMAND CDir1 Count PBASE-F32-DirScan-PublicApi-1016-002-Count_command013
994 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1016-002-index_command014
995 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1016-002-index_command015
996 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1016-002-index_command016
997 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1016-002-index_command017
998 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1016-002-index_command018
999 COMMAND CDir1 [] PBASE-F32-DirScan-PublicApi-1016-002-index_command019
1000 COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1016-002-RmDir_command020
1001 COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1016-002-RmDir_command021
1007 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
1008 CREATE_OBJECT RFs RFs1
1009 CREATE_OBJECT CFileMan CFileMan1
1011 COMMAND RFs1 Connect
1012 COMMAND CFileMan1 NewL PBASE-F32-DirScan-PublicApi-1016-003-NewL_command004
1013 COMMAND CFileMan1 Delete PBASE-F32-DirScan-PublicApi-1016-003-Delete_command005
1014 COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1016-003-RmDir_command006
1018 END_TESTCASE PBASE-F32-DirScan-PublicApi-1016
1021 //////////////////////////////////////////////////////////////////////
1022 //////////////////////////////////////////////////////////////////////
1024 ////// /////////////////////////////////// //////
1025 ////// /// /// //////
1026 ////// /// NEGATIVE TESTS /// //////
1027 ////// /// /// //////
1028 ////// /////////////////////////////////// //////
1030 //////////////////////////////////////////////////////////////////////
1031 //////////////////////////////////////////////////////////////////////
1039 START_TESTCASE PBASE-F32-DirScan-PublicApi-1101
1040 //! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1101
1041 //! @SYMAPI CDirScan
1042 //! @SYMTestCaseDesc Function SetScanDataL(const TDesC &aMatchName, TUint anEntryAttMask, TUint anEntrySortMask,
1043 //! TScanDirection aScanDir=EScanDownTree) negative test, that tries initialise directories entries scan
1044 //! with directory which not exists.
1045 //! Uses API elements: NewLC(), SetScanDataL(), NextL();
1046 //! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
1047 //! 2.Call CDirScan::NewLC() and connected file server session as parameter.
1048 //! 3.Call CDirScan::SetScanDataL() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ as first parameter, KEntryAttHidden as second
1049 //! parameter, ESortNone as third parameter and CDirScan::EScanUpTree as fourth parameter
1050 //! 4.Call CDirScan::NextL() and CDir pointer as parameter.
1051 //! @SYMTestStatus Implemented
1052 //! @SYMTestPriority Critical
1053 //! @SYMTestExpectedResults NextL() returns KErrPathNotFound.
1054 //! @SYMTestType CIT
1055 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
1056 CREATE_OBJECT RFs RFs1
1058 COMMAND RFs1 Connect
1059 COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1101-001-MkDirAll_command003
1062 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
1063 CREATE_OBJECT RFs RFs1
1064 CREATE_OBJECT CDirScan CDirScan1
1065 CREATE_OBJECT CDir CDir1
1067 COMMAND RFs1 Connect
1068 COMMAND CDirScan1 NewLC PBASE-F32-DirScan-PublicApi-1101-002-NewLC_command004
1069 COMMAND CDirScan1 SetScanDataL PBASE-F32-DirScan-PublicApi-1101-002-SetScanDataL_command005
1070 COMMAND !Error=-12 CDirScan1 NextL PBASE-F32-DirScan-PublicApi-1101-002-NextL_command006
1075 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
1076 CREATE_OBJECT RFs RFs1
1078 COMMAND RFs1 Connect
1079 COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1101-003-RmDir_command003
1082 END_TESTCASE PBASE-F32-DirScan-PublicApi-1101
1089 //! START_TESTCASE PBASE-F32-DirScan-PublicApi-1102
1090 //! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1102
1091 //! @SYMAPI CDirScan
1092 //! @SYMTestCaseDesc Function NextL(CDir *&aDirEntries) negative test, that tries to scan next directory entries when SetScanDataL()
1093 //! hasn't been called.
1094 //! Uses API elements: NewLC(), NextL();
1095 //! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
1096 //! 2.Call CDirScan::NewLC() and connected file server session as parameter.
1097 //! 3.Call CDirScan::NextL() and CDir pointer as parameter.
1098 //! @SYMTestStatus Implemented
1099 //! @SYMTestPriority Critical
1100 //! @SYMTestExpectedResults NextL() raises Panic USER Code = 17
1101 //! @SYMTestType CIT
1102 //! START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini
1103 //! CREATE_OBJECT RFs RFs1
1104 //! CREATE_OBJECT CDirScan CDirScan1
1105 //! CREATE_OBJECT CDir CDir1
1106 //! COMMAND RFs1 new
1107 //! COMMAND RFs1 Connect
1108 //! COMMAND CDirScan1 NewLC PBASE-F32-DirScan-PublicApi-1102-001-NewLC_command004
1109 //! COMMAND CDirScan1 NextL PBASE-F32-DirScan-PublicApi-1102-001-NextL_command005
1111 //! COMMAND CDirScan1 ~
1113 //! END_TEST_BLOCK !PanicCode=17 !PanicString=USER
1114 //! END_TESTCASE PBASE-F32-DirScan-PublicApi-1102