author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 09 Jun 2010 11:10:19 +0300 | |
branch | RCL_3 |
changeset 36 | bbf8bed59bcb |
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-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); |
|
24 |
//! ~CDirScan(); |
|
25 |
//! void SetScanDataL(const TDesC &aMatchName, TUint anEntryAttMask, TUint anEntrySortMask, TScanDirection aScanDir=EScanDownTree); |
|
26 |
//! void NextL(CDir *&aDirEntries); |
|
27 |
//! TPtrC AbbreviatedPath(); |
|
28 |
//! TPtrC FullPath(); |
|
29 |
||
30 |
||
31 |
LOAD_SUITE T_SfSrv |
|
32 |
DELAY 5000 |
|
33 |
||
34 |
||
35 |
START_TESTCASE PBASE-F32-DirScan-PublicApi-1001 |
|
36 |
//! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1001 |
|
37 |
//! @SYMAPI CDirScan |
|
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 |
|
45 |
//! @SYMTestType CIT |
|
46 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
47 |
CREATE_OBJECT RFs RFs1 |
|
48 |
CREATE_OBJECT CDirScan CDirScan1 |
|
49 |
COMMAND RFs1 new |
|
50 |
COMMAND RFs1 Connect |
|
51 |
COMMAND CDirScan1 NewL PBASE-F32-DirScan-PublicApi-1001-001-NewL_command004 |
|
52 |
COMMAND CDirScan1 ~ |
|
53 |
COMMAND RFs1 ~ |
|
54 |
END_TEST_BLOCK |
|
55 |
END_TESTCASE PBASE-F32-DirScan-PublicApi-1001 |
|
56 |
||
57 |
||
58 |
START_TESTCASE PBASE-F32-DirScan-PublicApi-1002 |
|
59 |
//! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1002 |
|
60 |
//! @SYMAPI CDirScan |
|
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. |
|
68 |
//! @SYMTestType CIT |
|
69 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
70 |
CREATE_OBJECT RFs RFs1 |
|
71 |
CREATE_OBJECT CDirScan CDirScan1 |
|
72 |
COMMAND RFs1 new |
|
73 |
COMMAND RFs1 Connect |
|
74 |
COMMAND CDirScan1 NewLC PBASE-F32-DirScan-PublicApi-1002-001-NewLC_command004 |
|
75 |
COMMAND CDirScan1 ~ |
|
76 |
COMMAND RFs1 ~ |
|
77 |
END_TEST_BLOCK |
|
78 |
END_TESTCASE PBASE-F32-DirScan-PublicApi-1002 |
|
79 |
||
80 |
||
81 |
START_TESTCASE PBASE-F32-DirScan-PublicApi-1003 |
|
82 |
//! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1003 |
|
83 |
//! @SYMAPI CDirScan |
|
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\" |
|
96 |
//! @SYMTestType CIT |
|
97 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
98 |
CREATE_OBJECT RFs RFs1 |
|
99 |
CREATE_OBJECT CFileMan CFileMan1 |
|
100 |
COMMAND RFs1 new |
|
101 |
COMMAND RFs1 Connect |
|
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 |
|
105 |
COMMAND CFileMan1 ~ |
|
106 |
COMMAND RFs1 ~ |
|
107 |
END_TEST_BLOCK |
|
108 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
109 |
CREATE_OBJECT RFs RFs1 |
|
110 |
CREATE_OBJECT CDirScan CDirScan1 |
|
111 |
COMMAND RFs1 new |
|
112 |
COMMAND RFs1 Connect |
|
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 |
|
116 |
COMMAND CDirScan1 ~ |
|
117 |
COMMAND RFs1 ~ |
|
118 |
END_TEST_BLOCK |
|
119 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
120 |
CREATE_OBJECT RFs RFs1 |
|
121 |
CREATE_OBJECT CFileMan CFileMan1 |
|
122 |
COMMAND RFs1 new |
|
123 |
COMMAND RFs1 Connect |
|
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 |
|
127 |
COMMAND CFileMan1 ~ |
|
128 |
COMMAND RFs1 ~ |
|
129 |
END_TEST_BLOCK |
|
130 |
END_TESTCASE PBASE-F32-DirScan-PublicApi-1003 |
|
131 |
||
132 |
||
133 |
START_TESTCASE PBASE-F32-DirScan-PublicApi-1004 |
|
134 |
//! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1004 |
|
135 |
//! @SYMAPI CDirScan |
|
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. |
|
172 |
//! @SYMTestType CIT |
|
173 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
174 |
CREATE_OBJECT RFs RFs1 |
|
175 |
COMMAND RFs1 new |
|
176 |
COMMAND RFs1 Connect |
|
177 |
COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1004-001-MkDirAll_command003 |
|
178 |
COMMAND RFs1 ~ |
|
179 |
END_TEST_BLOCK |
|
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 |
|
184 |
COMMAND RFs1 new |
|
185 |
COMMAND RFs1 Connect |
|
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 |
|
194 |
COMMAND CDir1 ~ |
|
195 |
COMMAND CDirScan1 FullPath PBASE-F32-DirScan-PublicApi-1004-002-FullPath_command013 |
|
196 |
COMMAND CDirScan1 NextL PBASE-F32-DirScan-PublicApi-1004-002-NextL_command014 |
|
197 |
COMMAND CDir1 ~ |
|
198 |
COMMAND CDirScan1 FullPath PBASE-F32-DirScan-PublicApi-1004-002-FullPath_command016 |
|
199 |
COMMAND CDirScan1 NextL PBASE-F32-DirScan-PublicApi-1004-002-NextL_command017 |
|
200 |
COMMAND CDir1 ~ |
|
201 |
COMMAND CDirScan1 FullPath PBASE-F32-DirScan-PublicApi-1004-002-FullPath_command019 |
|
202 |
COMMAND CDirScan1 NextL PBASE-F32-DirScan-PublicApi-1004-002-NextL_command020 |
|
203 |
COMMAND CDir1 ~ |
|
204 |
COMMAND CDirScan1 FullPath PBASE-F32-DirScan-PublicApi-1004-002-FullPath_command022 |
|
205 |
COMMAND CDirScan1 NextL PBASE-F32-DirScan-PublicApi-1004-002-NextL_command023 |
|
206 |
COMMAND CDir1 ~ |
|
207 |
COMMAND CDirScan1 FullPath PBASE-F32-DirScan-PublicApi-1004-002-FullPath_command025 |
|
208 |
COMMAND CDirScan1 NextL PBASE-F32-DirScan-PublicApi-1004-002-NextL_command026 |
|
209 |
COMMAND CDir1 ~ |
|
210 |
COMMAND CDirScan1 FullPath PBASE-F32-DirScan-PublicApi-1004-002-FullPath_command028 |
|
211 |
COMMAND CDirScan1 NextL PBASE-F32-DirScan-PublicApi-1004-002-NextL_command029 |
|
212 |
COMMAND CDir1 ~ |
|
213 |
COMMAND CDirScan1 ~ |
|
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 |
|
219 |
COMMAND RFs1 ~ |
|
220 |
END_TEST_BLOCK |
|
221 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
222 |
CREATE_OBJECT RFs RFs1 |
|
223 |
COMMAND RFs1 new |
|
224 |
COMMAND RFs1 Connect |
|
225 |
COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1004-003-RmDir_command003 |
|
226 |
COMMAND RFs1 ~ |
|
227 |
END_TEST_BLOCK |
|
228 |
END_TESTCASE PBASE-F32-DirScan-PublicApi-1004 |
|
229 |
||
230 |
||
231 |
START_TESTCASE PBASE-F32-DirScan-PublicApi-1005 |
|
232 |
//! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1005 |
|
233 |
//! @SYMAPI CDirScan |
|
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 \. |
|
245 |
//! @SYMTestType CIT |
|
246 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
247 |
CREATE_OBJECT RFs RFs1 |
|
248 |
COMMAND RFs1 new |
|
249 |
COMMAND RFs1 Connect |
|
250 |
COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1005-001-MkDirAll_command003 |
|
251 |
COMMAND RFs1 ~ |
|
252 |
END_TEST_BLOCK |
|
253 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
254 |
CREATE_OBJECT RFs RFs1 |
|
255 |
CREATE_OBJECT CDirScan CDirScan1 |
|
256 |
COMMAND RFs1 new |
|
257 |
COMMAND RFs1 Connect |
|
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 |
|
261 |
COMMAND CDirScan1 ~ |
|
262 |
COMMAND RFs1 ~ |
|
263 |
END_TEST_BLOCK |
|
264 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
265 |
CREATE_OBJECT RFs RFs1 |
|
266 |
COMMAND RFs1 new |
|
267 |
COMMAND RFs1 Connect |
|
268 |
COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1005-003-RmDir_command003 |
|
269 |
COMMAND RFs1 ~ |
|
270 |
END_TEST_BLOCK |
|
271 |
END_TESTCASE PBASE-F32-DirScan-PublicApi-1005 |
|
272 |
||
273 |
||
274 |
START_TESTCASE PBASE-F32-DirScan-PublicApi-1006 |
|
275 |
//! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1006 |
|
276 |
//! @SYMAPI CDirScan |
|
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 |
|
292 |
//! to scan). |
|
293 |
//! @SYMTestType CIT |
|
294 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
295 |
CREATE_OBJECT RFs RFs1 |
|
296 |
COMMAND RFs1 new |
|
297 |
COMMAND RFs1 Connect |
|
298 |
COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1006-001-MkDirAll_command003 |
|
299 |
COMMAND RFs1 ~ |
|
300 |
END_TEST_BLOCK |
|
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 |
|
305 |
COMMAND RFs1 new |
|
306 |
COMMAND RFs1 Connect |
|
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 |
|
311 |
COMMAND CDir1 ~ |
|
312 |
COMMAND CDirScan1 FullPath PBASE-F32-DirScan-PublicApi-1006-002-FullPath_command009 |
|
313 |
COMMAND CDirScan1 NextL PBASE-F32-DirScan-PublicApi-1006-002-NextL_command010 |
|
314 |
COMMAND CDir1 ~ |
|
315 |
COMMAND CDirScan1 ~ |
|
316 |
COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1006-002-RmDir_command013 |
|
317 |
COMMAND RFs1 ~ |
|
318 |
END_TEST_BLOCK |
|
319 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
320 |
CREATE_OBJECT RFs RFs1 |
|
321 |
COMMAND RFs1 new |
|
322 |
COMMAND RFs1 Connect |
|
323 |
COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1006-003-RmDir_command003 |
|
324 |
COMMAND RFs1 ~ |
|
325 |
END_TEST_BLOCK |
|
326 |
END_TESTCASE PBASE-F32-DirScan-PublicApi-1006 |
|
327 |
||
328 |
||
329 |
START_TESTCASE PBASE-F32-DirScan-PublicApi-1007 |
|
330 |
//! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1007 |
|
331 |
//! @SYMAPI CDirScan |
|
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. |
|
351 |
//! @SYMTestType CIT |
|
352 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
353 |
CREATE_OBJECT RFs RFs1 |
|
354 |
CREATE_OBJECT CFileMan CFileMan1 |
|
355 |
COMMAND RFs1 new |
|
356 |
COMMAND RFs1 Connect |
|
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 |
|
363 |
COMMAND CFileMan1 ~ |
|
364 |
COMMAND RFs1 ~ |
|
365 |
END_TEST_BLOCK |
|
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 |
|
371 |
COMMAND RFs1 new |
|
372 |
COMMAND RFs1 Connect |
|
373 |
COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1007-002-MkDirAll_command006 |
|
374 |
COMMAND TEntry1 new |
|
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 |
|
384 |
COMMAND CDir1 ~ |
|
385 |
COMMAND CDirScan1 ~ |
|
386 |
COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1007-002-RmDir_command019 |
|
387 |
COMMAND TEntry1 ~ |
|
388 |
COMMAND RFs1 ~ |
|
389 |
END_TEST_BLOCK |
|
390 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
391 |
CREATE_OBJECT RFs RFs1 |
|
392 |
CREATE_OBJECT CFileMan CFileMan1 |
|
393 |
COMMAND RFs1 new |
|
394 |
COMMAND RFs1 Connect |
|
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 |
|
398 |
COMMAND CFileMan1 ~ |
|
399 |
COMMAND RFs1 ~ |
|
400 |
END_TEST_BLOCK |
|
401 |
END_TESTCASE PBASE-F32-DirScan-PublicApi-1007 |
|
402 |
||
403 |
||
404 |
START_TESTCASE PBASE-F32-DirScan-PublicApi-1008 |
|
405 |
//! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1008 |
|
406 |
//! @SYMAPI CDirScan |
|
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. |
|
426 |
//! @SYMTestType CIT |
|
427 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
428 |
CREATE_OBJECT RFs RFs1 |
|
429 |
CREATE_OBJECT CFileMan CFileMan1 |
|
430 |
COMMAND RFs1 new |
|
431 |
COMMAND RFs1 Connect |
|
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 |
|
438 |
COMMAND CFileMan1 ~ |
|
439 |
COMMAND RFs1 ~ |
|
440 |
END_TEST_BLOCK |
|
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 |
|
446 |
COMMAND RFs1 new |
|
447 |
COMMAND RFs1 Connect |
|
448 |
COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1008-002-MkDirAll_command006 |
|
449 |
COMMAND TEntry1 new |
|
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 |
|
460 |
COMMAND CDir1 ~ |
|
461 |
COMMAND CDirScan1 ~ |
|
462 |
COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1008-002-RmDir_command020 |
|
463 |
COMMAND TEntry1 ~ |
|
464 |
COMMAND RFs1 ~ |
|
465 |
END_TEST_BLOCK |
|
466 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
467 |
CREATE_OBJECT RFs RFs1 |
|
468 |
CREATE_OBJECT CFileMan CFileMan1 |
|
469 |
COMMAND RFs1 new |
|
470 |
COMMAND RFs1 Connect |
|
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 |
|
474 |
COMMAND CFileMan1 ~ |
|
475 |
COMMAND RFs1 ~ |
|
476 |
END_TEST_BLOCK |
|
477 |
END_TESTCASE PBASE-F32-DirScan-PublicApi-1008 |
|
478 |
||
479 |
||
480 |
||
481 |
START_TESTCASE PBASE-F32-DirScan-PublicApi-1009 |
|
482 |
//! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1009 |
|
483 |
//! @SYMAPI CDirScan |
|
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. |
|
504 |
//! @SYMTestType CIT |
|
505 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
506 |
CREATE_OBJECT RFs RFs1 |
|
507 |
COMMAND RFs1 new |
|
508 |
COMMAND RFs1 Connect |
|
509 |
COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1009-001-MkDirAll_command003 |
|
510 |
COMMAND RFs1 ~ |
|
511 |
END_TEST_BLOCK |
|
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 |
|
517 |
COMMAND RFs1 new |
|
518 |
COMMAND RFs1 Connect |
|
519 |
COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1009-002-MkDirAll_command006 |
|
520 |
COMMAND TEntry1 new |
|
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 |
|
527 |
COMMAND CDir1 ~ |
|
528 |
COMMAND CDirScan1 ~ |
|
529 |
COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1009-002-RmDir_command016 |
|
530 |
COMMAND TEntry1 ~ |
|
531 |
COMMAND RFs1 ~ |
|
532 |
END_TEST_BLOCK |
|
533 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
534 |
CREATE_OBJECT RFs RFs1 |
|
535 |
COMMAND RFs1 new |
|
536 |
COMMAND RFs1 Connect |
|
537 |
COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1009-003-RmDir_command003 |
|
538 |
COMMAND RFs1 ~ |
|
539 |
END_TEST_BLOCK |
|
540 |
END_TESTCASE PBASE-F32-DirScan-PublicApi-1009 |
|
541 |
||
542 |
||
543 |
START_TESTCASE PBASE-F32-DirScan-PublicApi-1010 |
|
544 |
//! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1010 |
|
545 |
//! @SYMAPI CDirScan |
|
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. |
|
565 |
//! @SYMTestType CIT |
|
566 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
567 |
CREATE_OBJECT RFs RFs1 |
|
568 |
CREATE_OBJECT CFileMan CFileMan1 |
|
569 |
COMMAND RFs1 new |
|
570 |
COMMAND RFs1 Connect |
|
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 |
|
577 |
COMMAND CFileMan1 ~ |
|
578 |
COMMAND RFs1 ~ |
|
579 |
END_TEST_BLOCK |
|
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 |
|
585 |
COMMAND RFs1 new |
|
586 |
COMMAND RFs1 Connect |
|
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 |
|
593 |
COMMAND TEntry1 new |
|
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 |
|
603 |
COMMAND CDir1 ~ |
|
604 |
COMMAND CDirScan1 ~ |
|
605 |
COMMAND TEntry1 ~ |
|
606 |
COMMAND RFs1 ~ |
|
607 |
END_TEST_BLOCK |
|
608 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
609 |
CREATE_OBJECT RFs RFs1 |
|
610 |
CREATE_OBJECT CFileMan CFileMan1 |
|
611 |
COMMAND RFs1 new |
|
612 |
COMMAND RFs1 Connect |
|
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 |
|
616 |
COMMAND CFileMan1 ~ |
|
617 |
COMMAND RFs1 ~ |
|
618 |
END_TEST_BLOCK |
|
619 |
END_TESTCASE PBASE-F32-DirScan-PublicApi-1010 |
|
620 |
||
621 |
||
622 |
START_TESTCASE PBASE-F32-DirScan-PublicApi-1011 |
|
623 |
//! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1011 |
|
624 |
//! @SYMAPI CDirScan |
|
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. |
|
640 |
//! @SYMTestType CIT |
|
641 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
642 |
CREATE_OBJECT RFs RFs1 |
|
643 |
COMMAND RFs1 new |
|
644 |
COMMAND RFs1 Connect |
|
645 |
COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1011-001-MkDirAll_command003 |
|
646 |
COMMAND RFs1 ~ |
|
647 |
END_TEST_BLOCK |
|
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 |
|
652 |
COMMAND RFs1 new |
|
653 |
COMMAND RFs1 Connect |
|
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 |
|
660 |
COMMAND CDir1 ~ |
|
661 |
COMMAND CDirScan1 ~ |
|
662 |
COMMAND RFs1 ~ |
|
663 |
END_TEST_BLOCK |
|
664 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
665 |
CREATE_OBJECT RFs RFs1 |
|
666 |
COMMAND RFs1 new |
|
667 |
COMMAND RFs1 Connect |
|
668 |
COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1011-003-RmDir_command003 |
|
669 |
COMMAND RFs1 ~ |
|
670 |
END_TEST_BLOCK |
|
671 |
END_TESTCASE PBASE-F32-DirScan-PublicApi-1011 |
|
672 |
||
673 |
||
674 |
START_TESTCASE PBASE-F32-DirScan-PublicApi-1012 |
|
675 |
//! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1012 |
|
676 |
//! @SYMAPI CDirScan |
|
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. |
|
690 |
//! @SYMTestType CIT |
|
691 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
692 |
CREATE_OBJECT RFs RFs1 |
|
693 |
COMMAND RFs1 new |
|
694 |
COMMAND RFs1 Connect |
|
695 |
COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1012-001-MkDirAll_command003 |
|
696 |
COMMAND RFs1 ~ |
|
697 |
END_TEST_BLOCK |
|
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 |
|
702 |
COMMAND RFs1 new |
|
703 |
COMMAND RFs1 Connect |
|
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 |
|
708 |
COMMAND CDir1 ~ |
|
709 |
COMMAND CDirScan1 ~ |
|
710 |
COMMAND RFs1 ~ |
|
711 |
END_TEST_BLOCK |
|
712 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
713 |
CREATE_OBJECT RFs RFs1 |
|
714 |
COMMAND RFs1 new |
|
715 |
COMMAND RFs1 Connect |
|
716 |
COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1012-003-RmDir_command003 |
|
717 |
COMMAND RFs1 ~ |
|
718 |
END_TEST_BLOCK |
|
719 |
END_TESTCASE PBASE-F32-DirScan-PublicApi-1012 |
|
720 |
||
721 |
||
722 |
START_TESTCASE PBASE-F32-DirScan-PublicApi-1013 |
|
723 |
//! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1013 |
|
724 |
//! @SYMAPI CDirScan |
|
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. |
|
739 |
//! @SYMTestType CIT |
|
740 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
741 |
CREATE_OBJECT RFs RFs1 |
|
742 |
CREATE_OBJECT CFileMan CFileMan1 |
|
743 |
COMMAND RFs1 new |
|
744 |
COMMAND RFs1 Connect |
|
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 |
|
751 |
COMMAND CFileMan1 ~ |
|
752 |
COMMAND RFs1 ~ |
|
753 |
END_TEST_BLOCK |
|
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 |
|
759 |
COMMAND RFs1 new |
|
760 |
COMMAND RFs1 Connect |
|
761 |
COMMAND TEntry1 new |
|
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 |
|
771 |
COMMAND CDir1 ~ |
|
772 |
COMMAND CDirScan1 ~ |
|
773 |
COMMAND TEntry1 ~ |
|
774 |
COMMAND RFs1 ~ |
|
775 |
END_TEST_BLOCK |
|
776 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
777 |
CREATE_OBJECT RFs RFs1 |
|
778 |
CREATE_OBJECT CFileMan CFileMan1 |
|
779 |
COMMAND RFs1 new |
|
780 |
COMMAND RFs1 Connect |
|
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 |
|
784 |
COMMAND CFileMan1 ~ |
|
785 |
COMMAND RFs1 ~ |
|
786 |
END_TEST_BLOCK |
|
787 |
END_TESTCASE PBASE-F32-DirScan-PublicApi-1013 |
|
788 |
||
789 |
||
790 |
START_TESTCASE PBASE-F32-DirScan-PublicApi-1014 |
|
791 |
//! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1014 |
|
792 |
//! @SYMAPI CDirScan |
|
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. |
|
807 |
//! @SYMTestType CIT |
|
808 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
809 |
CREATE_OBJECT RFs RFs1 |
|
810 |
CREATE_OBJECT CFileMan CFileMan1 |
|
811 |
COMMAND RFs1 new |
|
812 |
COMMAND RFs1 Connect |
|
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 |
|
819 |
COMMAND CFileMan1 ~ |
|
820 |
COMMAND RFs1 ~ |
|
821 |
END_TEST_BLOCK |
|
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 |
|
827 |
COMMAND RFs1 new |
|
828 |
COMMAND RFs1 Connect |
|
829 |
COMMAND TEntry1 new |
|
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 |
|
839 |
COMMAND CDir1 ~ |
|
840 |
COMMAND CDirScan1 ~ |
|
841 |
COMMAND TEntry1 ~ |
|
842 |
COMMAND RFs1 ~ |
|
843 |
END_TEST_BLOCK |
|
844 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
845 |
CREATE_OBJECT RFs RFs1 |
|
846 |
CREATE_OBJECT CFileMan CFileMan1 |
|
847 |
COMMAND RFs1 new |
|
848 |
COMMAND RFs1 Connect |
|
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 |
|
852 |
COMMAND CFileMan1 ~ |
|
853 |
COMMAND RFs1 ~ |
|
854 |
END_TEST_BLOCK |
|
855 |
END_TESTCASE PBASE-F32-DirScan-PublicApi-1014 |
|
856 |
||
857 |
||
858 |
START_TESTCASE PBASE-F32-DirScan-PublicApi-1015 |
|
859 |
//! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1015 |
|
860 |
//! @SYMAPI CDirScan |
|
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 |
|
863 |
//! will be created. |
|
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. |
|
881 |
//! @SYMTestType CIT |
|
882 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
883 |
CREATE_OBJECT RFs RFs1 |
|
884 |
CREATE_OBJECT CFileMan CFileMan1 |
|
885 |
COMMAND RFs1 new |
|
886 |
COMMAND RFs1 Connect |
|
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 |
|
893 |
COMMAND CFileMan1 ~ |
|
894 |
COMMAND RFs1 ~ |
|
895 |
END_TEST_BLOCK |
|
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 |
|
901 |
COMMAND RFs1 new |
|
902 |
COMMAND RFs1 Connect |
|
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 |
|
909 |
COMMAND TEntry1 new |
|
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 |
|
923 |
COMMAND CDir1 ~ |
|
924 |
COMMAND CDirScan1 ~ |
|
925 |
COMMAND TEntry1 ~ |
|
926 |
COMMAND RFs1 ~ |
|
927 |
END_TEST_BLOCK |
|
928 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
929 |
CREATE_OBJECT RFs RFs1 |
|
930 |
CREATE_OBJECT CFileMan CFileMan1 |
|
931 |
COMMAND RFs1 new |
|
932 |
COMMAND RFs1 Connect |
|
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 |
|
936 |
COMMAND CFileMan1 ~ |
|
937 |
COMMAND RFs1 ~ |
|
938 |
END_TEST_BLOCK |
|
939 |
END_TESTCASE PBASE-F32-DirScan-PublicApi-1015 |
|
940 |
||
941 |
||
942 |
START_TESTCASE PBASE-F32-DirScan-PublicApi-1016 |
|
943 |
//! @SYMTestCaseID PBASE-F32-DirScan-PublicApi-1016 |
|
944 |
//! @SYMAPI CDirScan |
|
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 |
|
947 |
//! will be created. |
|
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. |
|
964 |
//! @SYMTestType CIT |
|
965 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
966 |
CREATE_OBJECT RFs RFs1 |
|
967 |
CREATE_OBJECT CFileMan CFileMan1 |
|
968 |
COMMAND RFs1 new |
|
969 |
COMMAND RFs1 Connect |
|
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 |
|
976 |
COMMAND CFileMan1 ~ |
|
977 |
COMMAND RFs1 ~ |
|
978 |
END_TEST_BLOCK |
|
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 |
|
984 |
COMMAND RFs1 new |
|
985 |
COMMAND RFs1 Connect |
|
986 |
COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1016-002-MkDirAll_command006 |
|
987 |
COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1016-002-MkDirAll_command007 |
|
988 |
COMMAND TEntry1 new |
|
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 |
|
1002 |
COMMAND CDir1 ~ |
|
1003 |
COMMAND CDirScan1 ~ |
|
1004 |
COMMAND TEntry1 ~ |
|
1005 |
COMMAND RFs1 ~ |
|
1006 |
END_TEST_BLOCK |
|
1007 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
1008 |
CREATE_OBJECT RFs RFs1 |
|
1009 |
CREATE_OBJECT CFileMan CFileMan1 |
|
1010 |
COMMAND RFs1 new |
|
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 |
|
1015 |
COMMAND CFileMan1 ~ |
|
1016 |
COMMAND RFs1 ~ |
|
1017 |
END_TEST_BLOCK |
|
1018 |
END_TESTCASE PBASE-F32-DirScan-PublicApi-1016 |
|
1019 |
||
1020 |
||
1021 |
////////////////////////////////////////////////////////////////////// |
|
1022 |
////////////////////////////////////////////////////////////////////// |
|
1023 |
////// ////// |
|
1024 |
////// /////////////////////////////////// ////// |
|
1025 |
////// /// /// ////// |
|
1026 |
////// /// NEGATIVE TESTS /// ////// |
|
1027 |
////// /// /// ////// |
|
1028 |
////// /////////////////////////////////// ////// |
|
1029 |
////// ////// |
|
1030 |
////////////////////////////////////////////////////////////////////// |
|
1031 |
////////////////////////////////////////////////////////////////////// |
|
1032 |
||
1033 |
||
1034 |
||
1035 |
////////////// |
|
1036 |
//SETSCANDATAL |
|
1037 |
////////////// |
|
1038 |
||
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 |
|
1057 |
COMMAND RFs1 new |
|
1058 |
COMMAND RFs1 Connect |
|
1059 |
COMMAND RFs1 MkDirAll PBASE-F32-DirScan-PublicApi-1101-001-MkDirAll_command003 |
|
1060 |
COMMAND RFs1 ~ |
|
1061 |
END_TEST_BLOCK |
|
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 |
|
1066 |
COMMAND RFs1 new |
|
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 |
|
1071 |
COMMAND CDir1 ~ |
|
1072 |
COMMAND CDirScan1 ~ |
|
1073 |
COMMAND RFs1 ~ |
|
1074 |
END_TEST_BLOCK |
|
1075 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-DirScan-PublicApi.ini |
|
1076 |
CREATE_OBJECT RFs RFs1 |
|
1077 |
COMMAND RFs1 new |
|
1078 |
COMMAND RFs1 Connect |
|
1079 |
COMMAND RFs1 RmDir PBASE-F32-DirScan-PublicApi-1101-003-RmDir_command003 |
|
1080 |
COMMAND RFs1 ~ |
|
1081 |
END_TEST_BLOCK |
|
1082 |
END_TESTCASE PBASE-F32-DirScan-PublicApi-1101 |
|
1083 |
||
1084 |
||
1085 |
//////// |
|
1086 |
//NEXTL |
|
1087 |
//////// |
|
1088 |
||
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 |
|
1110 |
//! COMMAND CDir1 ~ |
|
1111 |
//! COMMAND CDirScan1 ~ |
|
1112 |
//! COMMAND RFs1 ~ |
|
1113 |
//! END_TEST_BLOCK !PanicCode=17 !PanicString=USER |
|
1114 |
//! END_TESTCASE PBASE-F32-DirScan-PublicApi-1102 |