sl@0
|
1 |
//
|
sl@0
|
2 |
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
// All rights reserved.
|
sl@0
|
4 |
// This component and the accompanying materials are made available
|
sl@0
|
5 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
6 |
// which accompanies this distribution, and is available
|
sl@0
|
7 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
//
|
sl@0
|
9 |
// Initial Contributors:
|
sl@0
|
10 |
// Nokia Corporation - initial contribution.
|
sl@0
|
11 |
//
|
sl@0
|
12 |
// Contributors:
|
sl@0
|
13 |
//
|
sl@0
|
14 |
// Description:
|
sl@0
|
15 |
//
|
sl@0
|
16 |
//! @file
|
sl@0
|
17 |
//! @SYMTestSuiteName pbase-f32-sfsrv-publicapi-any
|
sl@0
|
18 |
//! @SYMScriptTestEnvironment This test script requires a basic ANY.
|
sl@0
|
19 |
//! @SYMScriptAuthor Dmitri Trofimov
|
sl@0
|
20 |
//! @SYMCreationDate 10/04/2007
|
sl@0
|
21 |
//! @SYMScriptDescription The test script contains API tests for the following functions of TParse class:
|
sl@0
|
22 |
//! TParse();
|
sl@0
|
23 |
//! TInt Set(const TDesC &aName, const TDesC *aRelated, const TDesC *aDefault);
|
sl@0
|
24 |
//! TInt SetNoWild(const TDesC &aName, const TDesC *aRelated, const TDesC *aDefault);
|
sl@0
|
25 |
//! TDes &NameBuf();
|
sl@0
|
26 |
//! const TDesC &NameBufC() const;
|
sl@0
|
27 |
|
sl@0
|
28 |
|
sl@0
|
29 |
LOAD_SUITE T_SfSrv
|
sl@0
|
30 |
//DELAY 5000
|
sl@0
|
31 |
|
sl@0
|
32 |
|
sl@0
|
33 |
START_TESTCASE PBASE-F32-Parse-PublicApi-0047
|
sl@0
|
34 |
//! @SYMTestCaseID PBASE-F32-Parse-PublicApi-0047
|
sl@0
|
35 |
//! @SYMAPI TParse
|
sl@0
|
36 |
//! @SYMTestCaseDesc TParse() test or successful object creation.
|
sl@0
|
37 |
//! Uses API elements: TParse()
|
sl@0
|
38 |
//! @SYMTestActions 1. Create TParse object.
|
sl@0
|
39 |
//! 2. Delete TParse object.
|
sl@0
|
40 |
//!
|
sl@0
|
41 |
//! @SYMTestStatus Implemented
|
sl@0
|
42 |
//! @SYMTestPriority Critical
|
sl@0
|
43 |
//! @SYMTestExpectedResults Function does not leave nor panic.
|
sl@0
|
44 |
//! @SYMTestType CIT
|
sl@0
|
45 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Parse-PublicApi.ini
|
sl@0
|
46 |
CREATE_OBJECT TParse TParse1
|
sl@0
|
47 |
COMMAND TParse1 new
|
sl@0
|
48 |
COMMAND TParse1 ~
|
sl@0
|
49 |
END_TEST_BLOCK
|
sl@0
|
50 |
END_TESTCASE PBASE-F32-Parse-PublicApi-0047
|
sl@0
|
51 |
|
sl@0
|
52 |
|
sl@0
|
53 |
START_TESTCASE PBASE-F32-Parse-PublicApi-0048
|
sl@0
|
54 |
//! @SYMTestCaseID PBASE-F32-Parse-PublicApi-0048
|
sl@0
|
55 |
//! @SYMAPI TParse
|
sl@0
|
56 |
//! @SYMTestCaseDesc Set() test for successful setting up the TParse object.
|
sl@0
|
57 |
//! Uses API elements: TParse(), Set()
|
sl@0
|
58 |
//! @SYMTestActions 1. Create TParse object.
|
sl@0
|
59 |
//! 2. Call Set() passing "test.txt" The file specification to be parsed.
|
sl@0
|
60 |
//! 3. Delete TParse object.
|
sl@0
|
61 |
//!
|
sl@0
|
62 |
//! @SYMTestStatus Implemented
|
sl@0
|
63 |
//! @SYMTestPriority Critical
|
sl@0
|
64 |
//! @SYMTestExpectedResults Set() returns KErrNone.
|
sl@0
|
65 |
//! @SYMTestType CIT
|
sl@0
|
66 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Parse-PublicApi.ini
|
sl@0
|
67 |
CREATE_OBJECT TParse TParse1
|
sl@0
|
68 |
COMMAND TParse1 new
|
sl@0
|
69 |
COMMAND TParse1 Set PBASE-F32-Parse-PublicApi-0002command2Set
|
sl@0
|
70 |
COMMAND TParse1 ~
|
sl@0
|
71 |
END_TEST_BLOCK
|
sl@0
|
72 |
END_TESTCASE PBASE-F32-Parse-PublicApi-0048
|
sl@0
|
73 |
|
sl@0
|
74 |
|
sl@0
|
75 |
START_TESTCASE PBASE-F32-Parse-PublicApi-0049
|
sl@0
|
76 |
//! @SYMTestCaseID PBASE-F32-Parse-PublicApi-0049
|
sl@0
|
77 |
//! @SYMAPI TParse
|
sl@0
|
78 |
//! @SYMTestCaseDesc Set() test for setting up the TParse object with wildcard in filename.
|
sl@0
|
79 |
//! Uses API elements: TParse(), Set()
|
sl@0
|
80 |
//! @SYMTestActions 1. Create TParse object.
|
sl@0
|
81 |
//! 2. Call Set() passing "test.*" The file specification to be parsed.
|
sl@0
|
82 |
//! 3. Delete TParse object.
|
sl@0
|
83 |
//!
|
sl@0
|
84 |
//! @SYMTestStatus Implemented
|
sl@0
|
85 |
//! @SYMTestPriority Critical
|
sl@0
|
86 |
//! @SYMTestExpectedResults Set() returns KErrNone.
|
sl@0
|
87 |
//! @SYMTestType CIT
|
sl@0
|
88 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Parse-PublicApi.ini
|
sl@0
|
89 |
CREATE_OBJECT TParse TParse1
|
sl@0
|
90 |
COMMAND TParse1 new
|
sl@0
|
91 |
COMMAND TParse1 Set PBASE-F32-Parse-PublicApi-0003command2Set
|
sl@0
|
92 |
COMMAND TParse1 ~
|
sl@0
|
93 |
END_TEST_BLOCK
|
sl@0
|
94 |
END_TESTCASE PBASE-F32-Parse-PublicApi-0049
|
sl@0
|
95 |
|
sl@0
|
96 |
|
sl@0
|
97 |
START_TESTCASE PBASE-F32-Parse-PublicApi-0050
|
sl@0
|
98 |
//! @SYMTestCaseID PBASE-F32-Parse-PublicApi-0050
|
sl@0
|
99 |
//! @SYMAPI TParse
|
sl@0
|
100 |
//! @SYMTestCaseDesc Set() test for setting up the TParse object with wildcard in filename.
|
sl@0
|
101 |
//! Uses API elements: TParse(), Set()
|
sl@0
|
102 |
//! @SYMTestActions 1. Create TParse object.
|
sl@0
|
103 |
//! 2. Call Set() passing "test.???" The file specification to be parsed.
|
sl@0
|
104 |
//! 3. Delete TParse object.
|
sl@0
|
105 |
//!
|
sl@0
|
106 |
//! @SYMTestStatus Implemented
|
sl@0
|
107 |
//! @SYMTestPriority Critical
|
sl@0
|
108 |
//! @SYMTestExpectedResults Set() returns KErrNone.
|
sl@0
|
109 |
//! @SYMTestType CIT
|
sl@0
|
110 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Parse-PublicApi.ini
|
sl@0
|
111 |
CREATE_OBJECT TParse TParse1
|
sl@0
|
112 |
COMMAND TParse1 new
|
sl@0
|
113 |
COMMAND TParse1 Set PBASE-F32-Parse-PublicApi-0004command2Set
|
sl@0
|
114 |
COMMAND TParse1 ~
|
sl@0
|
115 |
END_TEST_BLOCK
|
sl@0
|
116 |
END_TESTCASE PBASE-F32-Parse-PublicApi-0050
|
sl@0
|
117 |
|
sl@0
|
118 |
|
sl@0
|
119 |
START_TESTCASE PBASE-F32-Parse-PublicApi-0051
|
sl@0
|
120 |
//! @SYMTestCaseID PBASE-F32-Parse-PublicApi-0051
|
sl@0
|
121 |
//! @SYMAPI TParse
|
sl@0
|
122 |
//! @SYMTestCaseDesc SetNoWild() test for successful setting up the TParse object.
|
sl@0
|
123 |
//! Uses API elements: SetNoWild()
|
sl@0
|
124 |
//! @SYMTestActions 1. Create TParse object.
|
sl@0
|
125 |
//! 2. Call SetNoWild() passing "test.txt" as name, "b:\rel" as related file specification, "c:\def\test.txt" as default file specification.
|
sl@0
|
126 |
//! 3. Delete TParse object.
|
sl@0
|
127 |
//!
|
sl@0
|
128 |
//! @SYMTestStatus Implemented
|
sl@0
|
129 |
//! @SYMTestPriority Critical
|
sl@0
|
130 |
//! @SYMTestExpectedResults SetNoWild() returns KErrNone.
|
sl@0
|
131 |
//! @SYMTestType CIT
|
sl@0
|
132 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Parse-PublicApi.ini
|
sl@0
|
133 |
CREATE_OBJECT TParse TParse1
|
sl@0
|
134 |
COMMAND TParse1 new
|
sl@0
|
135 |
COMMAND TParse1 SetNoWild PBASE-F32-Parse-PublicApi-0005command2SetNoWild
|
sl@0
|
136 |
COMMAND TParse1 ~
|
sl@0
|
137 |
END_TEST_BLOCK
|
sl@0
|
138 |
END_TESTCASE PBASE-F32-Parse-PublicApi-0051
|
sl@0
|
139 |
|
sl@0
|
140 |
|
sl@0
|
141 |
START_TESTCASE PBASE-F32-Parse-PublicApi-0052
|
sl@0
|
142 |
//! @SYMTestCaseID PBASE-F32-Parse-PublicApi-0052
|
sl@0
|
143 |
//! @SYMAPI TParse
|
sl@0
|
144 |
//! @SYMTestCaseDesc SetNoWild() negative test where file specification to be parsed contain wildcard.
|
sl@0
|
145 |
//! Uses API elements: SetNoWild()
|
sl@0
|
146 |
//! @SYMTestActions 1. Create TParse object.
|
sl@0
|
147 |
//! 2. Call SetNoWild() passing "c:\base\file.*" as parameter of file specification and check that the function return KErrBadName.
|
sl@0
|
148 |
//! 3. Delete TParse object.
|
sl@0
|
149 |
//!
|
sl@0
|
150 |
//! @SYMTestStatus Implemented
|
sl@0
|
151 |
//! @SYMTestPriority Critical
|
sl@0
|
152 |
//! @SYMTestExpectedResults SetNoWild() returns KErrBadName.
|
sl@0
|
153 |
//! @SYMTestType CIT
|
sl@0
|
154 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Parse-PublicApi.ini
|
sl@0
|
155 |
CREATE_OBJECT TParse TParse1
|
sl@0
|
156 |
COMMAND TParse1 new
|
sl@0
|
157 |
COMMAND !Error=-28 TParse1 SetNoWild PBASE-F32-Parse-PublicApi-0006command2SetNoWild
|
sl@0
|
158 |
COMMAND TParse1 ~
|
sl@0
|
159 |
END_TEST_BLOCK
|
sl@0
|
160 |
END_TESTCASE PBASE-F32-Parse-PublicApi-0052
|
sl@0
|
161 |
|
sl@0
|
162 |
|
sl@0
|
163 |
START_TESTCASE PBASE-F32-Parse-PublicApi-0053
|
sl@0
|
164 |
//! @SYMTestCaseID PBASE-F32-Parse-PublicApi-0053
|
sl@0
|
165 |
//! @SYMAPI TParse
|
sl@0
|
166 |
//! @SYMTestCaseDesc SetNoWild() negative test where file specification to be parsed contain wildcard.
|
sl@0
|
167 |
//! Uses API elements: SetNoWild()
|
sl@0
|
168 |
//! @SYMTestActions 1. Create TParse object.
|
sl@0
|
169 |
//! 2. Call SetNoWild() passing "c:\base\file.tx?" as parameter of file specification and check that ne function eturn KErrBadName
|
sl@0
|
170 |
//! 3. Delete TParse object.
|
sl@0
|
171 |
//!
|
sl@0
|
172 |
//! @SYMTestStatus Implemented
|
sl@0
|
173 |
//! @SYMTestPriority Critical
|
sl@0
|
174 |
//! @SYMTestExpectedResults SetNoWild() returns KErrBadName.
|
sl@0
|
175 |
//! @SYMTestType CIT
|
sl@0
|
176 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Parse-PublicApi.ini
|
sl@0
|
177 |
CREATE_OBJECT TParse TParse1
|
sl@0
|
178 |
COMMAND TParse1 new
|
sl@0
|
179 |
COMMAND !Error=-28 TParse1 SetNoWild PBASE-F32-Parse-PublicApi-0007command2SetNoWild
|
sl@0
|
180 |
COMMAND TParse1 ~
|
sl@0
|
181 |
END_TEST_BLOCK
|
sl@0
|
182 |
END_TESTCASE PBASE-F32-Parse-PublicApi-0053
|
sl@0
|
183 |
|
sl@0
|
184 |
|
sl@0
|
185 |
START_TESTCASE PBASE-F32-Parse-PublicApi-0054
|
sl@0
|
186 |
//! @SYMTestCaseID PBASE-F32-Parse-PublicApi-0054
|
sl@0
|
187 |
//! @SYMAPI TParse
|
sl@0
|
188 |
//! @SYMTestCaseDesc SetNoWild() negative test where related file name specification to be parsed contain wildcard.
|
sl@0
|
189 |
//! Uses API elements: SetNoWild()
|
sl@0
|
190 |
//! @SYMTestActions 1. Create TParse object.
|
sl@0
|
191 |
//! 2. Call SetNoWild() passing "c:file" as name, "c:\base\file.*" as related file specification.
|
sl@0
|
192 |
//! 3. Delete TParse object.
|
sl@0
|
193 |
//!
|
sl@0
|
194 |
//! @SYMTestStatus Implemented
|
sl@0
|
195 |
//! @SYMTestPriority Critical
|
sl@0
|
196 |
//! @SYMTestExpectedResults SetNoWild() returns KErrBadName.
|
sl@0
|
197 |
//! @SYMTestType CIT
|
sl@0
|
198 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Parse-PublicApi.ini
|
sl@0
|
199 |
CREATE_OBJECT TParse TParse1
|
sl@0
|
200 |
COMMAND TParse1 new
|
sl@0
|
201 |
COMMAND !Error=-28 TParse1 SetNoWild PBASE-F32-Parse-PublicApi-0008command2SetNoWild
|
sl@0
|
202 |
COMMAND TParse1 ~
|
sl@0
|
203 |
END_TEST_BLOCK
|
sl@0
|
204 |
END_TESTCASE PBASE-F32-Parse-PublicApi-0054
|
sl@0
|
205 |
|
sl@0
|
206 |
|
sl@0
|
207 |
START_TESTCASE PBASE-F32-Parse-PublicApi-0055
|
sl@0
|
208 |
//! @SYMTestCaseID PBASE-F32-Parse-PublicApi-0055
|
sl@0
|
209 |
//! @SYMAPI TParse
|
sl@0
|
210 |
//! @SYMTestCaseDesc SetNoWild() negative test where related file name specification to be parsed contain wildcard.
|
sl@0
|
211 |
//! Uses API elements: SetNoWild()
|
sl@0
|
212 |
//! @SYMTestActions 1. Create TParse object.
|
sl@0
|
213 |
//! 2. Call SetNoWild() passing "c:file" as name, "c:\base\file.ex?" as related file specification.
|
sl@0
|
214 |
//! 3. Delete TParse object.
|
sl@0
|
215 |
//!
|
sl@0
|
216 |
//! @SYMTestStatus Implemented
|
sl@0
|
217 |
//! @SYMTestPriority Critical
|
sl@0
|
218 |
//! @SYMTestExpectedResults SetNoWild() returns KErrBadName.
|
sl@0
|
219 |
//! @SYMTestType CIT
|
sl@0
|
220 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Parse-PublicApi.ini
|
sl@0
|
221 |
CREATE_OBJECT TParse TParse1
|
sl@0
|
222 |
COMMAND TParse1 new
|
sl@0
|
223 |
COMMAND !Error=-28 TParse1 SetNoWild PBASE-F32-Parse-PublicApi-0009command2SetNoWild
|
sl@0
|
224 |
COMMAND TParse1 ~
|
sl@0
|
225 |
END_TEST_BLOCK
|
sl@0
|
226 |
END_TESTCASE PBASE-F32-Parse-PublicApi-0055
|
sl@0
|
227 |
|
sl@0
|
228 |
|
sl@0
|
229 |
START_TESTCASE PBASE-F32-Parse-PublicApi-0056
|
sl@0
|
230 |
//! @SYMTestCaseID PBASE-F32-Parse-PublicApi-0056
|
sl@0
|
231 |
//! @SYMAPI TParse
|
sl@0
|
232 |
//! @SYMTestCaseDesc SetNoWild() negative test where default file name specification to be parsed contain wildcard.
|
sl@0
|
233 |
//! Uses API elements: SetNoWild()
|
sl@0
|
234 |
//! @SYMTestActions 1. Create TParse object.
|
sl@0
|
235 |
//! 2. Call SetNoWild() passing "c:file" as name, "c:\base\file.*" as default file specification.
|
sl@0
|
236 |
//! 3. Delete TParse object.
|
sl@0
|
237 |
//!
|
sl@0
|
238 |
//! @SYMTestStatus Implemented
|
sl@0
|
239 |
//! @SYMTestPriority Critical
|
sl@0
|
240 |
//! @SYMTestExpectedResults SetNoWild() returns KErrBadName.
|
sl@0
|
241 |
//! @SYMTestType CIT
|
sl@0
|
242 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Parse-PublicApi.ini
|
sl@0
|
243 |
CREATE_OBJECT TParse TParse1
|
sl@0
|
244 |
COMMAND TParse1 new
|
sl@0
|
245 |
COMMAND !Error=-28 TParse1 SetNoWild PBASE-F32-Parse-PublicApi-0010command2SetNoWild
|
sl@0
|
246 |
COMMAND TParse1 ~
|
sl@0
|
247 |
END_TEST_BLOCK
|
sl@0
|
248 |
END_TESTCASE PBASE-F32-Parse-PublicApi-0056
|
sl@0
|
249 |
|
sl@0
|
250 |
|
sl@0
|
251 |
START_TESTCASE PBASE-F32-Parse-PublicApi-0057
|
sl@0
|
252 |
//! @SYMTestCaseID PBASE-F32-Parse-PublicApi-0057
|
sl@0
|
253 |
//! @SYMAPI TParse
|
sl@0
|
254 |
//! @SYMTestCaseDesc SetNoWild() negative test where default file name specification to be parsed contain wildcard.
|
sl@0
|
255 |
//! Uses API elements: SetNoWild()
|
sl@0
|
256 |
//! @SYMTestActions 1. Create TParse object.
|
sl@0
|
257 |
//! 2. Call SetNoWild() passing "c:file" as name, "c:\base\file.ex?" as default file specification.
|
sl@0
|
258 |
//! 3. Delete TParse object.
|
sl@0
|
259 |
//!
|
sl@0
|
260 |
//! @SYMTestStatus Implemented
|
sl@0
|
261 |
//! @SYMTestPriority Critical
|
sl@0
|
262 |
//! @SYMTestExpectedResults SetNoWild() returns KErrBadName.
|
sl@0
|
263 |
//! @SYMTestType CIT
|
sl@0
|
264 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Parse-PublicApi.ini
|
sl@0
|
265 |
CREATE_OBJECT TParse TParse1
|
sl@0
|
266 |
COMMAND TParse1 new
|
sl@0
|
267 |
COMMAND !Error=-28 TParse1 SetNoWild PBASE-F32-Parse-PublicApi-0011command2SetNoWild
|
sl@0
|
268 |
COMMAND TParse1 ~
|
sl@0
|
269 |
END_TEST_BLOCK
|
sl@0
|
270 |
END_TESTCASE PBASE-F32-Parse-PublicApi-0057
|
sl@0
|
271 |
|
sl@0
|
272 |
|
sl@0
|
273 |
START_TESTCASE PBASE-F32-Parse-PublicApi-0058
|
sl@0
|
274 |
//! @SYMTestCaseID PBASE-F32-Parse-PublicApi-0058
|
sl@0
|
275 |
//! @SYMAPI TParse
|
sl@0
|
276 |
//! @SYMTestCaseDesc PopDir() test. This test for successful removal of the last directory from the path.
|
sl@0
|
277 |
//! Uses API elements: PopDir()
|
sl@0
|
278 |
//! @SYMTestActions 1. Create TParse object '.
|
sl@0
|
279 |
//! 2. Call Set() for setting up the following path name: "c\dir1\dir2\filename.ext"
|
sl@0
|
280 |
//! 3. Call PopDir().
|
sl@0
|
281 |
//! 4. Call FullName(). Expecting 'c:\dir1\filename.ext'
|
sl@0
|
282 |
//!
|
sl@0
|
283 |
//! @SYMTestStatus Implemented
|
sl@0
|
284 |
//! @SYMTestPriority Critical
|
sl@0
|
285 |
//! @SYMTestExpectedResults PopDir() returns KErrNone. The value returned by FullName() is the same as expected.
|
sl@0
|
286 |
//! @SYMTestType CIT
|
sl@0
|
287 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Parse-PublicApi.ini
|
sl@0
|
288 |
CREATE_OBJECT TParse TParse1
|
sl@0
|
289 |
COMMAND TParse1 new
|
sl@0
|
290 |
COMMAND TParse1 Set PBASE-F32-Parse-PublicApi-0012command2Set
|
sl@0
|
291 |
COMMAND TParse1 PopDir
|
sl@0
|
292 |
COMMAND TParse1 FullName PBASE-F32-Parse-PublicApi-0012command4FullName
|
sl@0
|
293 |
COMMAND TParse1 ~
|
sl@0
|
294 |
END_TEST_BLOCK
|
sl@0
|
295 |
END_TESTCASE PBASE-F32-Parse-PublicApi-0058
|
sl@0
|
296 |
|
sl@0
|
297 |
|
sl@0
|
298 |
START_TESTCASE PBASE-F32-Parse-PublicApi-0059
|
sl@0
|
299 |
//! @SYMTestCaseID PBASE-F32-Parse-PublicApi-0059
|
sl@0
|
300 |
//! @SYMAPI TParse
|
sl@0
|
301 |
//! @SYMTestCaseDesc AddDir() test. This tests for successful adding of directory to the end of path.
|
sl@0
|
302 |
//! Uses API elements: AddDir()
|
sl@0
|
303 |
//! @SYMTestActions 1. Create TParse object.
|
sl@0
|
304 |
//! 2. Call Set() setting path to "c:\dir1\filename.ext"
|
sl@0
|
305 |
//! 3. Call AddDir() passing "dir2" string.
|
sl@0
|
306 |
//! 4. Call FullName(). Expecting 'c:\dir1\dir2\filename.ext'
|
sl@0
|
307 |
//!
|
sl@0
|
308 |
//! @SYMTestStatus Implemented
|
sl@0
|
309 |
//! @SYMTestPriority Critical
|
sl@0
|
310 |
//! @SYMTestExpectedResults AddDir() returns KErrNone. The value returned by FullName() is the same as expected.
|
sl@0
|
311 |
//! @SYMTestType CIT
|
sl@0
|
312 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Parse-PublicApi.ini
|
sl@0
|
313 |
CREATE_OBJECT TParse TParse1
|
sl@0
|
314 |
COMMAND TParse1 new
|
sl@0
|
315 |
COMMAND TParse1 Set PBASE-F32-Parse-PublicApi-0013command2Set
|
sl@0
|
316 |
COMMAND TParse1 AddDir PBASE-F32-Parse-PublicApi-0013command3AddDir
|
sl@0
|
317 |
COMMAND TParse1 FullName PBASE-F32-Parse-PublicApi-0013command4FullName
|
sl@0
|
318 |
COMMAND TParse1 ~
|
sl@0
|
319 |
END_TEST_BLOCK
|
sl@0
|
320 |
END_TESTCASE PBASE-F32-Parse-PublicApi-0059
|
sl@0
|
321 |
|
sl@0
|
322 |
|
sl@0
|
323 |
START_TESTCASE PBASE-F32-Parse-PublicApi-0060
|
sl@0
|
324 |
//! @SYMTestCaseID PBASE-F32-Parse-PublicApi-0060
|
sl@0
|
325 |
//! @SYMAPI TParse
|
sl@0
|
326 |
//! @SYMTestCaseDesc AddDir() negative test. This tests for the function to return error KErrBadName in case the directory to add begins with slash "\".
|
sl@0
|
327 |
//! ses API elements: AddDir()
|
sl@0
|
328 |
//! @SYMTestActions 1. Create TParse object.
|
sl@0
|
329 |
//! 2. Call Set() setting path to "c:\dir1\dir2\filename.ext"
|
sl@0
|
330 |
//! 3. Call AddDir() passing "\dir3" string.
|
sl@0
|
331 |
//!
|
sl@0
|
332 |
//! @SYMTestStatus Implemented
|
sl@0
|
333 |
//! @SYMTestPriority Critical
|
sl@0
|
334 |
//! @SYMTestExpectedResults AddDir() returns KErrBadName.
|
sl@0
|
335 |
//! @SYMTestType CIT
|
sl@0
|
336 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Parse-PublicApi.ini
|
sl@0
|
337 |
CREATE_OBJECT TParse TParse1
|
sl@0
|
338 |
COMMAND TParse1 new
|
sl@0
|
339 |
COMMAND TParse1 Set PBASE-F32-Parse-PublicApi-0014command2Set
|
sl@0
|
340 |
COMMAND !Error=-28 TParse1 AddDir PBASE-F32-Parse-PublicApi-0014command3AddDir
|
sl@0
|
341 |
COMMAND TParse1 ~
|
sl@0
|
342 |
END_TEST_BLOCK
|
sl@0
|
343 |
END_TESTCASE PBASE-F32-Parse-PublicApi-0060
|
sl@0
|
344 |
|
sl@0
|
345 |
|
sl@0
|
346 |
START_TESTCASE PBASE-F32-Parse-PublicApi-0061
|
sl@0
|
347 |
//! @SYMTestCaseID PBASE-F32-Parse-PublicApi-0061
|
sl@0
|
348 |
//! @SYMAPI TParse
|
sl@0
|
349 |
//! @SYMTestCaseDesc AddDir() test, where name of directory contains the wildcard.
|
sl@0
|
350 |
//! Uses API elements: AddDir()
|
sl@0
|
351 |
//! @SYMTestActions 1. Create TParse object.
|
sl@0
|
352 |
//! 2. Call Set() setting path to "c:\dir1\dir2\filename.ext"
|
sl@0
|
353 |
//! 3. Call AddDir() passing a "dir*" string.
|
sl@0
|
354 |
//!
|
sl@0
|
355 |
//! @SYMTestStatus Implemented
|
sl@0
|
356 |
//! @SYMTestPriority Critical
|
sl@0
|
357 |
//! @SYMTestExpectedResults AddDir() returns KErrNone.
|
sl@0
|
358 |
//! @SYMTestType CIT
|
sl@0
|
359 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Parse-PublicApi.ini
|
sl@0
|
360 |
CREATE_OBJECT TParse TParse1
|
sl@0
|
361 |
COMMAND TParse1 new
|
sl@0
|
362 |
COMMAND TParse1 Set PBASE-F32-Parse-PublicApi-0015command2Set
|
sl@0
|
363 |
COMMAND TParse1 AddDir PBASE-F32-Parse-PublicApi-0015command3AddDir
|
sl@0
|
364 |
COMMAND TParse1 ~
|
sl@0
|
365 |
END_TEST_BLOCK
|
sl@0
|
366 |
END_TESTCASE PBASE-F32-Parse-PublicApi-0061
|
sl@0
|
367 |
|
sl@0
|
368 |
|
sl@0
|
369 |
START_TESTCASE PBASE-F32-Parse-PublicApi-0062
|
sl@0
|
370 |
//! @SYMTestCaseID PBASE-F32-Parse-PublicApi-0062
|
sl@0
|
371 |
//! @SYMAPI TParse
|
sl@0
|
372 |
//! @SYMTestCaseDesc AddDir() negative test, where name of directory ended with a "\".
|
sl@0
|
373 |
//! Uses API elements: AddDir()
|
sl@0
|
374 |
//! @SYMTestActions 1. Create TParse object.
|
sl@0
|
375 |
//! 2. Call Set() setting path to "c:\dir1\dir2\filename.ext"
|
sl@0
|
376 |
//! 3. Call AddDir() passing name of directory ended with a "dir\".
|
sl@0
|
377 |
//!
|
sl@0
|
378 |
//! @SYMTestStatus Implemented
|
sl@0
|
379 |
//! @SYMTestPriority Critical
|
sl@0
|
380 |
//! @SYMTestExpectedResults AddDir() returns KErrBadName.
|
sl@0
|
381 |
//! @SYMTestType CIT
|
sl@0
|
382 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Parse-PublicApi.ini
|
sl@0
|
383 |
CREATE_OBJECT TParse TParse1
|
sl@0
|
384 |
COMMAND TParse1 new
|
sl@0
|
385 |
COMMAND TParse1 Set PBASE-F32-Parse-PublicApi-0016command2Set
|
sl@0
|
386 |
COMMAND !Error=-28 TParse1 AddDir PBASE-F32-Parse-PublicApi-0016command3AddDir
|
sl@0
|
387 |
COMMAND TParse1 ~
|
sl@0
|
388 |
END_TEST_BLOCK
|
sl@0
|
389 |
END_TESTCASE PBASE-F32-Parse-PublicApi-0062
|