os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-FileMan-PublicApi-RAM.script
First public contribution.
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
20 //! @SYMScriptCreationDate 18/19/2007
21 //! @SYMScriptDescription The test script contains API tests for the following functions of CFileMan class:
22 //! CFileMan *NewL(RFs &aFs)
23 //! CFileMan *NewL(RFs &aFs, MFileManObserver *anObserver)
24 //! TAction CurrentAction()
25 //! void GetCurrentTarget(TFileName &aFile)
26 //! void GetCurrentSource(TFileName &aFile)
27 //! TInt BytesTransferredByCopyStep()
28 //! TInt Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
29 //! TInt Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus)
30 //! TInt Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite)
31 //! TInt Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus)
32 //! TInt Delete(const TDesC &aName, TUint aSwitch=0)
33 //! TInt Delete(const TDesC &aName, TUint aSwitch, TRequestStatus &aStatus)
34 //! TInt Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite)
35 //! TInt Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus)
36 //! TInt Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite)
37 //! TInt Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus)
38 //! TInt RmDir(const TDesC &aDirName)
39 //! TInt RmDir(const TDesC &aDirName, TRequestStatus &aStatus)
40 //! TInt Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches=EOverWrite)
41 //! TInt Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches, TRequestStatus &aStatus)
42 //! void SetObserver(MFileManObserver *anObserver)
43 //! const TEntry &CurrentEntry()
44 //! TPtrC AbbreviatedPath()
46 //! TInt GetLastError()
47 //! TFileManError GetMoreInfoAboutError()
52 START_TESTCASE PBASE-F32-FileMan-PublicApi-2000
53 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2000
55 //! @SYMTestCaseDesc Setup the environent to Test CFileMan by copying the testdata.
56 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
57 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
58 //! 3.Call CFileMan::Copy() to copy the testdata file required for further tests.
59 //! @SYMTestStatus Implemented
60 //! @SYMTestPriority Critical
61 //! @SYMTestExpectedResults TestDatas copied to particular directory.
63 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
64 CREATE_OBJECT RFs RFs1
65 CREATE_OBJECT CFileMan CFileMan1
68 COMMAND RFs1 MkDirAll PBASE-F32-FileMan-PublicApi-MkDirAll-Install
69 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
70 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy-Install
74 END_TESTCASE PBASE-F32-FileMan-PublicApi-2000
77 START_TESTCASE PBASE-F32-FileMan-PublicApi-2001
78 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2001
80 //! @SYMTestCaseDesc Constructor NewL(RFs &aFs) test.
81 //! Uses API elements: NewL();
82 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
83 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
84 //! @SYMTestStatus Implemented
85 //! @SYMTestPriority Critical
86 //! @SYMTestExpectedResults CFileMan object is not NULL.
88 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
89 CREATE_OBJECT RFs RFs1
90 CREATE_OBJECT CFileMan CFileMan1
93 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
97 END_TESTCASE PBASE-F32-FileMan-PublicApi-2001
100 START_TESTCASE PBASE-F32-FileMan-PublicApi-2002
101 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2002
103 //! @SYMTestCaseDesc Constructor NewL(RFs &aFs, MFileManObserver *anObserver) test.
104 //! Uses API elements: NewL();
105 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
106 //! 2.Call CFileMan::NewL(RFs &aFs, MFileManObserver *anObserver) and connected file server session as first parameter.
107 //! @SYMTestStatus Implemented
108 //! @SYMTestPriority Critical
109 //! @SYMTestExpectedResults CFileMan object is not NULL.
111 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
112 CREATE_OBJECT RFs RFs1
113 CREATE_OBJECT CFileMan CFileMan1
116 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-2002-001-NewL_command004
120 END_TESTCASE PBASE-F32-FileMan-PublicApi-2002
123 START_TESTCASE PBASE-F32-FileMan-PublicApi-2003
124 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2003
126 //! @SYMTestCaseDesc Function CurrentAction() test.
127 //! Gets action during copy process.
128 //! Uses API elements: NewL(), CurrentAction();
129 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
130 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
131 //! 3.Call CFileMan::SetObserver().
132 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
133 //! and {TestPath}fileman\Test3.txt as first parameter,
134 //! and {TestPath}fileman\Copy\ as second parameter.
135 //! 5.Call CFileMan::CurrentAction().
136 //! @SYMTestStatus Implemented
137 //! @SYMTestPriority Critical
138 //! @SYMTestExpectedResults CurrentAction() returns ECopy.
140 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
141 CREATE_OBJECT RFs RFs1
142 CREATE_OBJECT CFileMan CFileMan1
145 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
146 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
147 COMMAND CFileMan1 SetObserver
148 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite
149 COMMAND CFileMan1 CurrentAction PBASE-F32-FileMan-PublicApi-2003-001-CurrentAction_command008
150 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2003-001-Delete_command009
151 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
155 END_TESTCASE PBASE-F32-FileMan-PublicApi-2003
158 START_TESTCASE PBASE-F32-FileMan-PublicApi-2004
159 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2004
161 //! @SYMTestCaseDesc Function GetCurrentTarget(TFileName &aFile) test.
162 //! Gets file target path during copy process.
163 //! Uses API elements: NewL(), GetCurrentTarget(), SetObserver(), Copy();
164 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
165 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
166 //! 3.Call CFileMan::SetObserver().
167 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
168 //! and {TestPath}fileman\Test3.txt as first parameter,
169 //! and {TestPath}fileman\Copy\ as second parameter.
170 //! 5.Call CFileMan::GetCurrentTarget(TFileName &aFile).
171 //! @SYMTestStatus Implemented
172 //! @SYMTestPriority Critical
173 //! @SYMTestExpectedResults GetCurrentTarget() returns {TestPath}fileman\Copy\Test3.txt.
175 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
176 CREATE_OBJECT RFs RFs1
177 CREATE_OBJECT CFileMan CFileMan1
180 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
181 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
182 COMMAND CFileMan1 SetObserver
183 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite
184 COMMAND CFileMan1 GetCurrentTarget PBASE-F32-FileMan-PublicApi-2004-001-GetCurrentTarget_command008
185 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2004-001-Delete_command009
186 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
190 END_TESTCASE PBASE-F32-FileMan-PublicApi-2004
193 START_TESTCASE PBASE-F32-FileMan-PublicApi-2005
194 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2005
196 //! @SYMTestCaseDesc Function GetCurrentSource(TFileName &aFile) test.
197 //! Gets file source path during copy process.
198 //! Uses API elements: NewL(), GetCurrentSource(), SetObserver(), Copy();
199 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
200 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
201 //! 3.Call CFileMan::SetObserver().
202 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
203 //! and {TestPath}fileman\Test3.txt as first parameter,
204 //! and {TestPath}fileman\Copy\ as second parameter.
205 //! 5.Call CFileMan::GetCurrentSource(TFileName &aFile).
206 //! @SYMTestStatus Implemented
207 //! @SYMTestPriority Critical
208 //! @SYMTestExpectedResults GetCurrentSource() returns {TestPath}fileman\Test3.txt.
210 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
211 CREATE_OBJECT RFs RFs1
212 CREATE_OBJECT CFileMan CFileMan1
215 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
216 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
217 COMMAND CFileMan1 SetObserver
218 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite
219 COMMAND CFileMan1 GetCurrentSource PBASE-F32-FileMan-PublicApi-2005-001-GetCurrentSource_command008
220 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2005-001-Delete_command009
221 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
225 END_TESTCASE PBASE-F32-FileMan-PublicApi-2005
228 START_TESTCASE PBASE-F32-FileMan-PublicApi-2006
229 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2006
231 //! @SYMTestCaseDesc Function BytesTransferredByCopyStep() test.
232 //! Gets the number of bytes transferred during a copy process.
233 //! Uses API elements: NewL(), SetObserver(), BytesTransferredByCopyStep(), Copy();
234 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
235 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
236 //! 3.Call CFileMan::SetObserver().
237 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
238 //! and {TestPath}fileman\Test3.txt as first parameter,
239 //! and {TestPath}fileman\Copy\ as second parameter.
240 //! 5.Call CFileMan::BytesTransferredByCopyStep().
241 //! @SYMTestStatus Implemented
242 //! @SYMTestPriority Critical
243 //! @SYMTestExpectedResults BytesTransferredByCopyStep() returns actual size of copyed file "51192".
245 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
246 CREATE_OBJECT RFs RFs1
247 CREATE_OBJECT CFileMan CFileMan1
250 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
251 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
252 COMMAND CFileMan1 SetObserver
253 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite
254 COMMAND CFileMan1 BytesTransferredByCopyStep PBASE-F32-FileMan-PublicApi-2006-001-BytesTransferredByCopyStep_command008
255 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2006-001-Delete_command009
256 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
260 END_TESTCASE PBASE-F32-FileMan-PublicApi-2006
263 START_TESTCASE PBASE-F32-FileMan-PublicApi-2007
264 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2007
266 //! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) test.
267 //! Sets file attributes synchronously to read-only.
268 //! Uses API elements: NewL(), Attribs();
269 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
270 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
271 //! 3.Call RFs::Att() to check that file has KEntryAttNormal as attribute.
272 //! 4.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
273 //! and {TestPath}fileman\Test1.txt as first parameter,
274 //! and KEntryAttReadOnly as second parameter,
275 //! and KEntryAttNormal as third parameter,
276 //! and TTime(0) as fourth parameter,
277 //! and CFileMan::ERecurse as fifth parameter.
278 //! 5.Call RFs::Att() to check that attribute was set to KEntryAttReadOnly
279 //! 6.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
280 //! and {TestPath}fileman\Test1.txt as first parameter,
281 //! and KEntryAttNormal as second parameter,
282 //! and KEntryAttReadOnly as third parameter,
283 //! and TTime(0) as fourth parameter,
284 //! and CFileMan::ERecurse as fifth parameter.
285 //! 7.Call RFs::Att() to check that file have KEntryAttNormal as attribute.
286 //! @SYMTestStatus Implemented
287 //! @SYMTestPriority Critical
288 //! @SYMTestExpectedResults Attribs() returns KErrNone.
290 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
291 CREATE_OBJECT RFs RFs1
292 CREATE_OBJECT CFileMan CFileMan1
295 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
296 COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2007-001-Att_command005
297 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2007-001-Attribs_command006
298 COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2007-001-Att_command007
299 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2007-001-Attribs_command008
300 COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2007-001-Att_command009
304 END_TESTCASE PBASE-F32-FileMan-PublicApi-2007
307 START_TESTCASE PBASE-F32-FileMan-PublicApi-2008
308 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2008
310 //! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus) test.
311 //! Sets file attributes asynchronously to read-only.
312 //! Uses API elements: NewL(), Attribs();
313 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
314 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
315 //! 3.Call RFs::Att() to check that file has KEntryAttNormal as attribute.
316 //! 4.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus)
317 //! and {TestPath}fileman\Test1.txt as first parameter,
318 //! and KEntryAttReadOnly as second parameter,
319 //! and KEntryAttNormal as third parameter,
320 //! and TTime(0) as fourth parameter,
321 //! and CFileMan::ERecurse as fifth parameter
322 //! and iStatus as fourth parameter.
323 //! 5.Call RFs::Att() to check that attribute was set to KEntryAttReadOnly
324 //! 6.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus)
325 //! and {TestPath}fileman\Test1.txt as first parameter,
326 //! and KEntryAttNormal as second parameter,
327 //! and KEntryAttReadOnly as third parameter,
328 //! and TTime(0) as fourth parameter,
329 //! and CFileMan::ERecurse as fifth parameter
330 //! and iStatus as fourth parameter.
331 //! 7.Call RFs::Att() to check that file have KEntryAttNormal as attribute.
332 //! @SYMTestStatus Implemented
333 //! @SYMTestPriority Critical
334 //! @SYMTestExpectedResults Attribs() returns KErrNone and second Attrib returns KErrInUse
336 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
337 CREATE_OBJECT RFs RFs1
338 CREATE_OBJECT CFileMan CFileMan1
341 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
342 COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2008-001-Att_command005
343 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2008-001-Attribs_command006
345 COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2008-001-Att_command007
346 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2008-001-Attribs_command008
347 COMMAND !Error=-14 CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2008-001-Attribs_command008
349 COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2008-001-Att_command009
353 END_TESTCASE PBASE-F32-FileMan-PublicApi-2008
356 START_TESTCASE PBASE-F32-FileMan-PublicApi-2009
357 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2009
359 //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
360 //! Sets file attributes synchronously to normal and copies file synchronously from one directory to another.
361 //! Uses API elements: NewL(), Attribs(), Copy();
362 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
363 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
364 //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
365 //! and {TestPath}fileman\Test1.txt as first parameter,
366 //! and KEntryAttNormal as second parameter,
367 //! and KEntryAttReadOnly as third parameter,
368 //! and TTime(0) as fourth parameter,
369 //! and CFileMan::EOverWrite as fifth parameter.
370 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
371 //! and {TestPath}fileman\Test1.txt as first parameter,
372 //! and {TestPath}fileman\Copy\ as second parameter.
373 //! @SYMTestStatus Implemented
374 //! @SYMTestPriority Critical
375 //! @SYMTestExpectedResults Copy() returns KErrNone.
377 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
378 CREATE_OBJECT RFs RFs1
379 CREATE_OBJECT RFile RFile1
380 CREATE_OBJECT CFileMan CFileMan1
383 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
385 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
386 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2009-001-Copy_command006
387 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2009-001-Open_command007
389 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2009-001-Delete_command008
390 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
395 END_TESTCASE PBASE-F32-FileMan-PublicApi-2009
398 START_TESTCASE PBASE-F32-FileMan-PublicApi-2010
399 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2010
401 //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) test.
402 //! Sets file attributes synchronously to normal and copies file asynchronously from one directory to another.
403 //! Uses API elements: NewL(), Attribs(), Copy();
404 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
405 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
406 //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus)
407 //! and {TestPath}fileman\Test1.txt as first parameter,
408 //! and KEntryAttNormal as second parameter,
409 //! and KEntryAttReadOnly as third parameter, and TTime(0) as fourth parameter,
410 //! and CFileMan::EOverWrite as fifth parameter,
411 //! and iStatus as sixth parameter.
412 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus).
413 //! and {TestPath}fileman\Test1.txt as first parameter,
414 //! and {TestPath}fileman\Copy\ as second parameter,
415 //! and iStatus as last parameter.
416 //! @SYMTestStatus Implemented
417 //! @SYMTestPriority Critical
418 //! @SYMTestExpectedResults Copy() returns KErrNone.
420 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
421 CREATE_OBJECT RFs RFs1
422 CREATE_OBJECT RFile RFile1
423 CREATE_OBJECT CFileMan CFileMan1
426 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
428 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
429 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2010-001-Copy_command006
431 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2010-001-Open_command007
433 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2010-001-Delete_command008
435 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
440 END_TESTCASE PBASE-F32-FileMan-PublicApi-2010
443 START_TESTCASE PBASE-F32-FileMan-PublicApi-2011
444 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2011
446 //! @SYMTestCaseDesc Function Delete(const TDesC &aName, TUint aSwitch=0) test.
447 //! Copies file asynchronously from one directory to another and deletes synchronously copied file.
448 //! Uses API elements: NewL(), Copy(), Delete();
449 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
450 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
451 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
452 //! and {TestPath}fileman\Test1.txt as first parameter,
453 //! and {TestPath}fileman\Copy\ as second parameter.
454 //! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), and {TestPath}fileman\Test1.txt as parameter
455 //! @SYMTestStatus Implemented
456 //! @SYMTestPriority Critical
457 //! @SYMTestExpectedResults Delete() returns KErrNone.
459 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
460 CREATE_OBJECT RFs RFs1
461 CREATE_OBJECT RFile RFile1
462 CREATE_OBJECT CFileMan CFileMan1
465 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
467 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
468 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2011-001-Copy_command006
469 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2011-001-Delete_command007
470 COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2011-001-Open_command008
471 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
476 END_TESTCASE PBASE-F32-FileMan-PublicApi-2011
479 START_TESTCASE PBASE-F32-FileMan-PublicApi-2012
480 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2012
482 //! @SYMTestCaseDesc Function Delete(const TDesC &aName, TUint aSwitch=0, TRequestStatus &aStatus) test.
483 //! Copies file asynchronously from one directory to another and deletes asynchronously copied file.
484 //! Uses API elements: NewL(), Copy(), Delete();
485 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
486 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
487 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus).
488 //! and {TestPath}fileman\Test1.txt as first parameter,
489 //! and {TestPath}fileman\Copy\ as second parameter,
490 //! and iStatus as last parameter.
491 //! 4.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0, TRequestStatus &aStatus),
492 //! and {TestPath}fileman\Copy\Test1.txt as first parameter,
493 //! and CFileMan::EOverWrite as second parameter,
494 //! and iStatus as third parameter.
495 //! @SYMTestStatus Implemented
496 //! @SYMTestPriority Critical
497 //! @SYMTestExpectedResults Delete() returns KErrNone and second delete returns KErrInUse.
499 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
500 CREATE_OBJECT RFs RFs1
501 CREATE_OBJECT RFile RFile1
502 CREATE_OBJECT CFileMan CFileMan1
505 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
507 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
508 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2012-001-Copy_command006
510 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2012-001-Delete_command007
511 COMMAND !Error=-14 CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2012-001-Delete_command007
513 COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2012-001-Open_command008
514 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
519 END_TESTCASE PBASE-F32-FileMan-PublicApi-2012
522 START_TESTCASE PBASE-F32-FileMan-PublicApi-2013
523 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2013
525 //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
526 //! Moves file synchronously from one directory to another.
527 //! Uses API elements: NewL(), Move();
528 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
529 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
530 //! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
531 //! and {TestPath}fileman\Test1.txt as first parameter,
532 //! and {TestPath}fileman\Copy\ as second parameter.
533 //! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
534 //! and {TestPath}fileman\Copy\Test1.txt as first parameter,
535 //! and {TestPath}fileman\ as second parameter.
536 //! @SYMTestStatus Implemented
537 //! @SYMTestPriority Critical
538 //! @SYMTestExpectedResults Move() returns KErrNone.
540 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
541 CREATE_OBJECT RFs RFs1
542 CREATE_OBJECT RFile RFile1
543 CREATE_OBJECT CFileMan CFileMan1
546 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
548 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
549 COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2013-001-Move_command006
550 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2013-001-Open_command007
552 COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2013-001-Move_command008
553 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2013-001-Open_command009
555 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
560 END_TESTCASE PBASE-F32-FileMan-PublicApi-2013
563 START_TESTCASE PBASE-F32-FileMan-PublicApi-2014
564 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2014
566 //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) test.
567 //! Moves file asynchronously from one directory to another.
568 //! Uses API elements: NewL(), Move();
569 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
570 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
571 //! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus),
572 //! and {TestPath}fileman\Test1.txt as first parameter,
573 //! and {TestPath}fileman\Copy\ as second parameter,
574 //! and CFileMan::EOverWrite as third parameter,
575 //! and iStatus as fourth parameter.
576 //! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus),
577 //! and {TestPath}fileman\Copy\Test1.txt as first parameter,
578 //! and {TestPath}fileman\ as second parameter,
579 //! and CFileMan::EOverWrite as third parameter,
580 //! and iStatus as fourth parameter.
581 //! @SYMTestStatus Implemented
582 //! @SYMTestPriority Critical
583 //! @SYMTestExpectedResults Move() returns KErrNone.
585 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
586 CREATE_OBJECT RFs RFs1
587 CREATE_OBJECT RFile RFile1
588 CREATE_OBJECT CFileMan CFileMan1
591 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
593 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
594 COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2014-001-Move_command006
596 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2014-001-Open_command007
598 COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2014-001-Move_command008
600 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2014-001-Open_command009
602 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
607 END_TESTCASE PBASE-F32-FileMan-PublicApi-2014
610 START_TESTCASE PBASE-F32-FileMan-PublicApi-2015
611 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2015
613 //! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
614 //! Renames file name synchronously.
615 //! Uses API elements: NewL(), Rename();
616 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
617 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
618 //! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
619 //! and {TestPath}fileman\Test1.txt as first parameter,
620 //! and {TestPath}fileman\Renamed.txt as second parameter.
621 //! 4.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
622 //! and {TestPath}fileman\Renamed.txt as first parameter,
623 //! and {TestPath}fileman\Test1.txt as second parameter.
624 //! @SYMTestStatus Implemented
625 //! @SYMTestPriority Critical
626 //! @SYMTestExpectedResults Rename() returns KErrNone.
628 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
629 CREATE_OBJECT RFs RFs1
630 CREATE_OBJECT RFile RFile1
631 CREATE_OBJECT CFileMan CFileMan1
635 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
636 COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2015-001-Rename_command005
637 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2015-001-Open_command006
639 COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2015-001-Rename_command007
640 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2015-001-Open_command008
646 END_TESTCASE PBASE-F32-FileMan-PublicApi-2015
649 START_TESTCASE PBASE-F32-FileMan-PublicApi-2016
650 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2016
652 //! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) test.
653 //! Renames file name asynchronously.
654 //! Uses API elements: NewL(), Rename();
655 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
656 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
657 //! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus).
658 //! and {TestPath}fileman\Renamed.txt as first parameter,
659 //! and {TestPath}fileman\Test1.txt as second parameter,
660 //! and CFileMan::EOverWrite as third parameter,
661 //! and iStatus as last parameter.
662 //! 4.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus).
663 //! and {TestPath}fileman\Test1.txt as first parameter,
664 //! and {TestPath}fileman\Renamed.txt as second parameter,
665 //! and CFileMan::EOverWrite as third parameter,
666 //! and iStatus as last parameter.
667 //! @SYMTestStatus Implemented
668 //! @SYMTestPriority Critical
669 //! @SYMTestExpectedResults Rename() returns KErrNone.
671 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
672 CREATE_OBJECT RFs RFs1
673 CREATE_OBJECT RFile RFile1
674 CREATE_OBJECT CFileMan CFileMan1
678 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
679 COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2016-001-Rename_command005
681 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2016-001-Open_command006
683 COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2016-001-Rename_command007
685 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2016-001-Open_command008
691 END_TESTCASE PBASE-F32-FileMan-PublicApi-2016
694 START_TESTCASE PBASE-F32-FileMan-PublicApi-2017
695 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2017
697 //! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName) test.
698 //! Test removes newly created directory synchronously.
699 //! Uses API elements: NewL(), RmDir();
700 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
701 //! 2.Call RFs::MkDir(), and {TestPath}fileman\Removable\ as parameter.
702 //! 3.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
703 //! 4.Call CFileMan::RmDir(const TDesC &aDirName) and {TestPath}fileman\Removable\ as parameter.
704 //! @SYMTestStatus Implemented
705 //! @SYMTestPriority Critical
706 //! @SYMTestExpectedResults RmDir() returns KErrNone.
708 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
709 CREATE_OBJECT RFs RFs1
710 CREATE_OBJECT RDir RDir1
711 CREATE_OBJECT CFileMan CFileMan1
714 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2017-001-MkDir_command004
716 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
717 COMMAND RDir1 Open PBASE-F32-FileMan-PublicApi-2017-001-Open_command006
719 COMMAND CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2017-001-RmDir_command007
720 COMMAND !Error=-12 RDir1 Open PBASE-F32-FileMan-PublicApi-2017-001-Open_command008
725 END_TESTCASE PBASE-F32-FileMan-PublicApi-2017
728 START_TESTCASE PBASE-F32-FileMan-PublicApi-2018
729 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2018
731 //! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName, TRequestStatus &aStatus) test.
732 //! Test removes newly created directory asynchronously.
733 //! Uses API elements: NewL(), RmDir();
734 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
735 //! 2.Call RFs::MkDir(), and {TestPath}fileman\Removable\ as parameter.
736 //! 3.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
737 //! 4.Call CFileMan::RmDir(const TDesC &aDirName, TRequestStatus &aStatus),
738 //! and {TestPath}fileman\Removable\ as first parameter,
739 //! and iStatus as second parameter.
740 //! @SYMTestStatus Implemented
741 //! @SYMTestPriority Critical
742 //! @SYMTestExpectedResults 1st RmDir returns KErrNone and Second call returns KErrInUse
744 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
745 CREATE_OBJECT RFs RFs1
746 CREATE_OBJECT RDir RDir1
747 CREATE_OBJECT CFileMan CFileMan1
750 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2018-001-MkDir_command004
752 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
753 COMMAND RDir1 Open PBASE-F32-FileMan-PublicApi-2018-001-Open_command006
755 COMMAND CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2018-001-RmDir_command007
756 COMMAND !Error=-14 CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2018-001-RmDir_command007
758 COMMAND !Error=-12 RDir1 Open PBASE-F32-FileMan-PublicApi-2018-001-Open_command008
763 END_TESTCASE PBASE-F32-FileMan-PublicApi-2018
766 START_TESTCASE PBASE-F32-FileMan-PublicApi-2019
767 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2019
769 //! @SYMTestCaseDesc Function Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches=EOverWrite) test.
770 //! Opens file then copies file content to another file synchronously.
771 //! Uses API elements: NewL(), Copy();
772 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
773 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
774 //! 3.Call RFile::Open() to open file.
775 //! 4.Call CFileMan::Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches=EOverWrite),
776 //! and RFile object as first object,
777 //! and {TestPath}fileman\Test1_RFs.txt as second parameter.
778 //! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
779 //! and {TestPath}fileman\Test1_RFs.txt as first parameter,
780 //! and 0 as second parameter.
782 //! @SYMTestStatus Implemented
783 //! @SYMTestPriority Critical
784 //! @SYMTestExpectedResults Copy() returns KErrNone.
786 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
787 CREATE_OBJECT RFs RFs1
788 CREATE_OBJECT RFile RFile1
789 CREATE_OBJECT CFileMan CFileMan1
793 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2019-001-Open_command006
794 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
795 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2019-001-Copy_command008
796 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2019-001-Open_command009
798 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2019-001-Delete_command010
804 END_TESTCASE PBASE-F32-FileMan-PublicApi-2019
807 START_TESTCASE PBASE-F32-FileMan-PublicApi-2020
808 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2020
810 //! @SYMTestCaseDesc Function Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches, TRequestStatus &aStatus) test.
811 //! Opens file then copies file content to another file asynchronously.
812 //! Uses API elements: NewL(), Copy();
813 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
814 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
815 //! 3.Call RFile::Open() to open file.
816 //! 4.Call CFileMan::Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches, TRequestStatus &aStatus),
817 //! and RFile object as first object,
818 //! and {TestPath}fileman\Test1_RFs.txt as second parameter,
819 //! and iStatus as last parameter.
820 //! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
821 //! and {TestPath}fileman\Test1_RFs.txt as first parameter,
822 //! and 0 as second parameter.
823 //! @SYMTestStatus Implemented
824 //! @SYMTestPriority Critical
825 //! @SYMTestExpectedResults 1st Copy() returns KErrNone and second returns KErrInUse
827 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
828 CREATE_OBJECT RFs RFs1
829 CREATE_OBJECT RFile RFile1
830 CREATE_OBJECT CFileMan CFileMan1
834 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2020-001-Open_command006
835 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
836 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2020-001-Copy_command008
837 COMMAND !Error=-14 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2020-001-Copy_command008
839 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2020-001-Open_command009
841 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2020-001-Delete_command010
847 END_TESTCASE PBASE-F32-FileMan-PublicApi-2020
850 START_TESTCASE PBASE-F32-FileMan-PublicApi-2021
851 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2021
852 //! @SYMAPI CFileBase
853 //! @SYMTestCaseDesc Function SetObserver(MFileManObserver *anObserver) test.
855 //! Uses API elements: NewL(), SetObserver();
856 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
857 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
858 //! 3.Call CFileMan::SetObserver().
859 //! @SYMTestStatus Implemented
860 //! @SYMTestPriority Critical
861 //! @SYMTestExpectedResults No Panic and Error code returned.
863 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
864 CREATE_OBJECT RFs RFs1
865 CREATE_OBJECT CFileMan CFileMan1
868 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
869 COMMAND CFileMan1 SetObserver
873 END_TESTCASE PBASE-F32-FileMan-PublicApi-2021
876 START_TESTCASE PBASE-F32-FileMan-PublicApi-2022
877 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2022
878 //! @SYMAPI CFileBase
879 //! @SYMTestCaseDesc Function CurrentEntry() test.
880 //! Gets the entry currently being copied.
881 //! Uses API elements: NewL(), SetObserver(), CurrentEntry(), Copy(), Delete();
882 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
883 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
884 //! 3.Call CFileMan::SetObserver().
885 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
886 //! and {TestPath}fileman\Test3.txt as first parameter,
887 //! and {TestPath}fileman\Copy\ as second parameter.
888 //! 5.Call CFileMan::CurrentEntry().
889 //! 6.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
890 //! and {TestPath}fileman\Copy\Test3.txt as parameter.
891 //! @SYMTestStatus Implemented
892 //! @SYMTestPriority Critical
893 //! @SYMTestExpectedResults CurrentEntry() returns TEntry in which iName is "Test3.txt".
895 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
896 CREATE_OBJECT RFs RFs1
897 CREATE_OBJECT CFileMan CFileMan1
900 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
901 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
902 COMMAND CFileMan1 SetObserver
903 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite
904 COMMAND CFileMan1 CurrentEntry PBASE-F32-FileMan-PublicApi-2022-001-CurrentEntry_command008
905 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2022-001-Delete_command009
906 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
910 END_TESTCASE PBASE-F32-FileMan-PublicApi-2022
913 START_TESTCASE PBASE-F32-FileMan-PublicApi-2023
914 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2023
915 //! @SYMAPI CFileBase
916 //! @SYMTestCaseDesc Function AbbreviatedPath() test.
917 //! Gets the abbreviated path of the file currently being copied.
918 //! Uses API elements: NewL(), SetObserver(), AbbreviatedPath(), Copy(), Delete();
919 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
920 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
921 //! 3.Call CFileMan::SetObserver().
922 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
923 //! and {TestPath}fileman\Test3.txt as first parameter,
924 //! and {TestPath}fileman\Copy\ as second parameter.
925 //! 5.Call CFileMan::AbbreviatedPath().
926 //! 6.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
927 //! and {TestPath}fileman\Copy\Test3.txt as parameter.
928 //! @SYMTestStatus Implemented
929 //! @SYMTestPriority Critical
930 //! @SYMTestExpectedResults AbbreviatedPath() returns \.
932 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
933 CREATE_OBJECT RFs RFs1
934 CREATE_OBJECT CFileMan CFileMan1
937 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
938 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
939 COMMAND CFileMan1 SetObserver
940 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite
941 COMMAND CFileMan1 AbbreviatedPath PBASE-F32-FileMan-PublicApi-2023-001-AbbreviatedPath_command008
942 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2023-001-Delete_command009
943 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
947 END_TESTCASE PBASE-F32-FileMan-PublicApi-2023
950 START_TESTCASE PBASE-F32-FileMan-PublicApi-2024
951 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2024
952 //! @SYMAPI CFileBase
953 //! @SYMTestCaseDesc Function FullPath() test.
954 //! Gets the full path of the file currently being copied.
955 //! Uses API elements: NewL(), SetObserver(), FullPath(), Copy(), Delete();
956 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
957 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
958 //! 3.Call CFileMan::SetObserver().
959 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
960 //! and {TestPath}fileman\Test3.txt as first parameter,
961 //! and {TestPath}fileman\Copy\ as second parameter.
962 //! 5.Call CFileMan::FullPath().
963 //! 6.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
964 //! and {TestPath}fileman\Copy\Test3.txt as parameter.
965 //! @SYMTestStatus Implemented
966 //! @SYMTestPriority Critical
967 //! @SYMTestExpectedResults FullPath() returns {TestPath}fileman\.
969 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
970 CREATE_OBJECT RFs RFs1
971 CREATE_OBJECT CFileMan CFileMan1
974 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
975 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
976 COMMAND CFileMan1 SetObserver
977 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite
978 COMMAND CFileMan1 FullPath PBASE-F32-FileMan-PublicApi-2024-001-FullPath_command008
979 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2024-001-Delete_command009
980 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
984 END_TESTCASE PBASE-F32-FileMan-PublicApi-2024
987 START_TESTCASE PBASE-F32-FileMan-PublicApi-2025
988 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2025
989 //! @SYMAPI CFileBase
990 //! @SYMTestCaseDesc Function GetLastError() test.
991 //! Gets the latest error code returned during copy process
992 //! Uses API elements: NewL(), SetObserver(), GetLastError(), Copy(), Delete();
993 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
994 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
995 //! 3.Call CFileMan::SetObserver().
996 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
997 //! and {TestPath}fileman\Test3.txt as first parameter,
998 //! and {TestPath}fileman\Copy\ as second parameter.
999 //! 5.Call CFileMan::GetLastError().
1000 //! 6.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1001 //! and {TestPath}fileman\Copy\Test3.txt as parameter.
1002 //! @SYMTestStatus Implemented
1003 //! @SYMTestPriority Critical
1004 //! @SYMTestExpectedResults GetLastError() returns KErrNone.
1005 //! @SYMTestType CIT
1006 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1007 CREATE_OBJECT RFs RFs1
1008 CREATE_OBJECT CFileMan CFileMan1
1010 COMMAND RFs1 Connect
1011 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1012 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1013 COMMAND CFileMan1 SetObserver
1014 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite
1015 COMMAND CFileMan1 GetLastError PBASE-F32-FileMan-PublicApi-2025-001-GetLastError_command008
1016 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2025-001-Delete_command009
1017 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1021 END_TESTCASE PBASE-F32-FileMan-PublicApi-2025
1024 START_TESTCASE PBASE-F32-FileMan-PublicApi-2026
1025 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2026
1026 //! @SYMAPI CFileBase
1027 //! @SYMTestCaseDesc Function GetMoreInfoAboutError() test.
1028 //! Gets additional information about the latest error returned during copy process
1029 //! Uses API elements: NewL(), SetObserver(), GetMoreInfoAboutError(), Copy(), Delete();
1030 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1031 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1032 //! 3.Call CFileMan::SetObserver().
1033 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1034 //! and {TestPath}fileman\Test3.txt as first parameter,
1035 //! and {TestPath}fileman\Copy\ as second parameter.
1036 //! 5.Call CFileMan::GetMoreInfoAboutError().
1037 //! 6.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1038 //! and {TestPath}fileman\Copy\Test3.txt as parameter.
1039 //! @SYMTestStatus Implemented
1040 //! @SYMTestPriority Critical
1041 //! @SYMTestExpectedResults GetMoreInfoAboutError() returns ENoExtraInformation.
1042 //! @SYMTestType CIT
1043 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1044 CREATE_OBJECT RFs RFs1
1045 CREATE_OBJECT CFileMan CFileMan1
1047 COMMAND RFs1 Connect
1048 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1049 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1050 COMMAND CFileMan1 SetObserver
1051 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite
1052 COMMAND CFileMan1 GetMoreInfoAboutError PBASE-F32-FileMan-PublicApi-2026-001-GetMoreInfoAboutError_command008
1053 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2026-001-Delete_command009
1054 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1058 END_TESTCASE PBASE-F32-FileMan-PublicApi-2026
1061 START_TESTCASE PBASE-F32-FileMan-PublicApi-2027
1062 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2027
1063 //! @SYMAPI CFileBase
1064 //! @SYMTestCaseDesc Function Copy() test.
1065 //! Copy File from one drive to another (RAM Drive).
1066 //! Uses API elements: NewL(), Copy(), Delete();
1067 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1068 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1069 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1070 //! and {TestPath}Test3.txt as first parameter,
1071 //! and {RamDrive}fileman\Copy\ as second parameter.
1072 //! 4.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1073 //! and {RamDrive}fileman\Copy\Test3.txt as parameter.
1074 //! @SYMTestStatus Implemented
1075 //! @SYMTestPriority Critical
1076 //! @SYMTestExpectedResults File successfully copied from one drive to another.
1077 //! @SYMTestType CIT
1078 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1079 CREATE_OBJECT RFs RFs1
1080 CREATE_OBJECT RFile RFile1
1081 CREATE_OBJECT CFileMan CFileMan1
1083 COMMAND RFs1 Connect
1084 COMMAND RFs1 MkDirAll PBASE-F32-FileMan-PublicApi-2027-001-MkDirAll_command004
1086 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1087 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2027-001-Copy_command006
1088 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2027-001-Open_command007
1089 COMMAND RFile1 Close
1090 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2027-001-Delete_command008
1091 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2027-001-RmDir_command009
1096 END_TESTCASE PBASE-F32-FileMan-PublicApi-2027
1098 START_TESTCASE PBASE-F32-FileMan-PublicApi-2028
1099 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2028
1100 //! @SYMAPI CFileBase
1101 //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
1102 //! Copy file with ReadOnly and Hidden atributes and check that the copied file have the same attributes.
1103 //! Uses API elements: NewL(), Copy(), Delete();
1104 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1105 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1106 //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1107 //! and {TestPath}fileman\Test1.txt as first parameter,
1108 //! and KEntryAttReadOnly|KEntryAttHidden as second parameter,
1109 //! and KEntryAttNormal as third parameter,
1110 //! and TTime(0) as fourth parameter,
1111 //! and 0 as fifth parameter.
1112 //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1113 //! and {TestPath}fileman\Test1.txt as first parameter,
1114 //! and {TestPath}fileman\Copy\Test1.txt as second parameter.
1115 //! 6.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1116 //! and {TestPath}fileman\Copy\Test1.txt as first parameter,
1117 //! and KEntryAttNormal as second parameter,
1118 //! and KEntryAttReadOnly|KEntryAttHidden as third parameter,
1119 //! and TTime(0) as fourth parameter,
1120 //! and 0 as fifth parameter.
1121 //! 7.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1122 //! and {TestPath}fileman\Copy\Test1.txt as parameter.
1123 //! 8.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1124 //! and {TestPath}fileman\Test1.txt as first parameter,
1125 //! and KEntryAttNormal as second parameter,
1126 //! and KEntryAttReadOnly|KEntryAttHidden as third parameter,
1127 //! and TTime(0) as fourth parameter,
1128 //! and 0 as fifth parameter.
1129 //! @SYMTestStatus Implemented
1130 //! @SYMTestPriority Critical
1131 //! @SYMTestExpectedResults File attributes unchanged after Copy().
1132 //! @SYMTestType CIT
1133 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1134 CREATE_OBJECT RFs RFs1
1135 CREATE_OBJECT RFile RFile1
1136 CREATE_OBJECT CFileMan CFileMan1
1138 COMMAND RFs1 Connect
1139 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1141 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1142 COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2028-001-Att_command006
1143 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2028-001-Attribs_command007
1144 COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2028-001-Att_command008
1145 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
1146 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2028-001-Open_command010
1147 COMMAND RFile1 Close
1148 COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2028-001-Att_command011
1149 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2028-001-Attribs_command012
1150 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2028-001-Delete_command013
1151 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2028-001-Attribs_command014
1152 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1157 END_TESTCASE PBASE-F32-FileMan-PublicApi-2028
1160 START_TESTCASE PBASE-F32-FileMan-PublicApi-2029
1161 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2029
1162 //! @SYMAPI CFileBase
1163 //! @SYMTestCaseDesc Function Attribs(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
1164 //! Set KEntryAttHidden attribute non recursivly and recursivly and then check that is was set correctly.
1165 //! Uses API elements: NewL(), Attribs(), Copy(), Delete();
1166 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1167 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1168 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1169 //! and {TestPath}fileman\Test3.txt as first parameter,
1170 //! and {TestPath}fileman\Copy\Test3.txt as second parameter.
1171 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1172 //! and {TestPath}fileman\Test1.txt as first parameter,
1173 //! and {TestPath}fileman\Copy\Test\Test1.txt as second parameter.
1174 //! 5.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1175 //! and {TestPath}fileman\Copy\ as first parameter,
1176 //! and KEntryAttHidden as second parameter,
1177 //! and KEntryAttNormal as third parameter,
1178 //! and TTime(0) as fourth parameter,
1179 //! and 0 as fifth parameter.
1180 //! 6.Check that only for Test1.txt attribute was set.
1181 //! 7.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1182 //! and {TestPath}fileman\Copy\ as first parameter,
1183 //! and KEntryAttNormal as second parameter,
1184 //! and KEntryAttHidden as third parameter,
1185 //! and TTime(0) as fourth parameter,
1186 //! and 0 as fifth parameter.
1187 //! 8.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1188 //! and {TestPath}fileman\Copy\ as first parameter,
1189 //! and KEntryAttHidden as second parameter,
1190 //! and KEntryAttNormal as third parameter,
1191 //! and TTime(0) as fourth parameter,
1192 //! and ERecurse as fifth parameter.
1193 //! 9.Check that KEntryAttHidden was set for Test1.txt and for Test3.txt.
1194 //! 10.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1195 //! and {TestPath}fileman\Copy\ as first parameter,
1196 //! and KEntryAttNormal as second parameter,
1197 //! and KEntryAttHidden as third parameter,
1198 //! and TTime(0) as fourth parameter,
1199 //! and ERecurse as fifth parameter.
1200 //! @SYMTestStatus Implemented
1201 //! @SYMTestPriority Critical
1202 //! @SYMTestExpectedResults All attributes are set correctly.
1203 //! @SYMTestType CIT
1204 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1205 CREATE_OBJECT RFs RFs1
1206 CREATE_OBJECT CFileMan CFileMan1
1208 COMMAND RFs1 Connect
1209 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1210 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_Copy-Test
1211 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1212 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite
1213 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2029-001-Copy_command002
1214 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2029-001-Attribs_command003
1215 COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2029-001-Att_command004
1216 COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2029-001-Att_command005
1217 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2029-001-Attribs_command006
1218 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2029-001-Attribs_command007
1219 COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2029-001-Att_command008
1220 COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2029-001-Att_command009
1221 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2029-001-Attribs_command010
1222 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2029-001-Delete_command011
1223 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_Copy-Test
1224 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1228 END_TESTCASE PBASE-F32-FileMan-PublicApi-2029
1231 START_TESTCASE PBASE-F32-FileMan-PublicApi-2030
1232 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2030
1233 //! @SYMAPI CFileBase
1234 //! @SYMTestCaseDesc Function Attribs(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
1235 //! Set KEntryAttHidden attribute non recursivly and recursivly and then check that is was set correctly.
1236 //! Uses API elements: NewL(), Attribs(), Copy(), Delete();
1237 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1238 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1239 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1240 //! and {TestPath}fileman\Test3.txt as first parameter,
1241 //! and {TestPath}fileman\Copy\Test3.txt as second parameter.
1242 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1243 //! and {TestPath}fileman\Test1.txt as first parameter,
1244 //! and {TestPath}fileman\Copy\Test\Test1.txt as second parameter.
1245 //! 5.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0, TRequestStatus &aStatus)
1246 //! and {TestPath}fileman\Copy\ as first parameter,
1247 //! and KEntryAttHidden as second parameter,
1248 //! and KEntryAttNormal as third parameter,
1249 //! and TTime(0) as fourth parameter,
1250 //! and 0 as fifth parameter.
1252 //! 6.Check that only for Test1.txt attribute was set.
1253 //! 7.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0, TRequestStatus &aStatus)
1254 //! and {TestPath}fileman\Copy\ as first parameter,
1255 //! and KEntryAttNormal as second parameter,
1256 //! and KEntryAttHidden as third parameter,
1257 //! and TTime(0) as fourth parameter,
1258 //! and 0 as fifth parameter.
1260 //! 8.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0, TRequestStatus &aStatus)
1261 //! and {TestPath}fileman\Copy\ as first parameter,
1262 //! and KEntryAttHidden as second parameter,
1263 //! and KEntryAttNormal as third parameter,
1264 //! and TTime(0) as fourth parameter,
1265 //! and ERecurse as fifth parameter.
1267 //! 8.Check that KEntryAttHidden was set for Test1.txt and for Test3.txt.
1268 //! 10.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0, TRequestStatus &aStatus)
1269 //! and {TestPath}fileman\Copy\ as first parameter,
1270 //! and KEntryAttNormal as second parameter,
1271 //! and KEntryAttHidden as third parameter,
1272 //! and TTime(0) as fourth parameter,
1273 //! and ERecurse as fifth parameter.
1275 //! @SYMTestStatus Implemented
1276 //! @SYMTestPriority Critical
1277 //! @SYMTestExpectedResults All attributes are set correctly.
1278 //! @SYMTestType CIT
1279 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1280 CREATE_OBJECT RFs RFs1
1281 CREATE_OBJECT CFileMan CFileMan1
1283 COMMAND RFs1 Connect
1284 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1285 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_Copy-Test
1286 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1287 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite
1288 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2030-001-Copy_command002
1289 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2030-001-Attribs_command003
1291 COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2030-001-Att_command004
1292 COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2030-001-Att_command005
1293 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2030-001-Attribs_command006
1295 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2030-001-Attribs_command007
1297 COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2030-001-Att_command008
1298 COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2030-001-Att_command009
1299 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2030-001-Attribs_command010
1301 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2030-001-Delete_command011
1302 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_Copy-Test
1303 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1307 END_TESTCASE PBASE-F32-FileMan-PublicApi-2030
1309 START_TESTCASE PBASE-F32-FileMan-PublicApi-2031
1310 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2031
1311 //! @SYMAPI CFileBase
1312 //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
1313 //! Copy files using aSwitch=0 and aSwitch=ERecursive.
1314 //! Uses API elements: NewL(), Copy(), Delete();
1315 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1316 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1317 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1318 //! and {TestPath}fileman\ as first parameter,
1319 //! and {TestPath}fileman\Copy\ as second parameter,
1321 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1322 //! and {TestPath}fileman\Copy\ as first parameter,
1323 //! and {TestPath}fileman\Copy1\ as second parameter,
1325 //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1326 //! and {TestPath}fileman\Copy\ as first parameter,
1327 //! and {TestPath}fileman\Copy1\ as second parameter.
1328 //! and aSwitch=ERecurse.
1329 //! @SYMTestStatus Implemented
1330 //! @SYMTestPriority Critical
1331 //! @SYMTestExpectedResults Copy() return KErrPathNotFound when non recursive copy.
1332 //! @SYMTestType CIT
1333 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1334 CREATE_OBJECT RFs RFs1
1335 CREATE_OBJECT CFileMan CFileMan1
1337 COMMAND RFs1 Connect
1338 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1339 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1340 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2031-001-Copy_command002
1341 COMMAND !Error=-12 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2031-001-Copy_command003
1342 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2031-001-Copy_command004
1343 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2031-001-Delete_command005
1344 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2031-001-Delete_command006
1345 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2031-001-RmDir_command007
1346 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1350 END_TESTCASE PBASE-F32-FileMan-PublicApi-2031
1353 START_TESTCASE PBASE-F32-FileMan-PublicApi-2032
1354 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2032
1355 //! @SYMAPI CFileBase
1356 //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
1357 //! Copy files using aSwitch=0 and aSwitch=ERecursive.
1358 //! Uses API elements: NewL(), Copy(), Delete();
1359 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1360 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1361 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1362 //! and {TestPath}fileman\ as first parameter,
1363 //! and {TestPath}fileman\Copy\ as second parameter,
1365 //! and iStatus as parameter.
1366 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1367 //! and {TestPath}fileman\Copy\ as first parameter,
1368 //! and {TestPath}fileman\Copy1\ as second parameter,
1370 //! and iStatus as parameter.
1371 //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1372 //! and {TestPath}fileman\Copy\ as first parameter,
1373 //! and {TestPath}fileman\Copy1\ as second parameter.
1374 //! and aSwitch=ERecurse,
1375 //! and iStatus as parameter.
1376 //! @SYMTestStatus Implemented
1377 //! @SYMTestPriority Critical
1378 //! @SYMTestExpectedResults Copy() return KErrPathNotFound when non recursive copy.
1379 //! @SYMTestType CIT
1380 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1381 CREATE_OBJECT RFs RFs1
1382 CREATE_OBJECT CFileMan CFileMan1
1384 COMMAND RFs1 Connect
1385 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1386 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1387 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2032-001-Copy_command002
1389 COMMAND !AsyncError=-12 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2032-001-Copy_command003
1391 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2032-001-Copy_command004
1393 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2032-001-Delete_command005
1394 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2032-001-Delete_command006
1395 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2032-001-RmDir_command007
1396 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1400 END_TESTCASE PBASE-F32-FileMan-PublicApi-2032
1403 START_TESTCASE PBASE-F32-FileMan-PublicApi-2033
1404 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2033
1405 //! @SYMAPI CFileBase
1406 //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
1407 //! Move files using aSwitch=0 and aSwitch=ERecursive.
1408 //! Uses API elements: NewL(), Move(), Delete();
1409 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1410 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1411 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1412 //! and {TestPath}fileman\ as first parameter,
1413 //! and {TestPath}fileman\Copy\ as second parameter,
1415 //! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1416 //! and {TestPath}fileman\Copy\ as first parameter,
1417 //! and {TestPath}fileman\Copy1\ as second parameter,
1419 //! 5.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1420 //! and {TestPath}fileman\Copy\ as first parameter,
1421 //! and {TestPath}fileman\Copy1\ as second parameter.
1422 //! and aSwitch=ERecurse.
1423 //! @SYMTestStatus Implemented
1424 //! @SYMTestPriority Critical
1425 //! @SYMTestExpectedResults Move() return KErrPathNotFound when non recursive Move.
1426 //! @SYMTestType CIT
1427 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1428 CREATE_OBJECT RFs RFs1
1429 CREATE_OBJECT CFileMan CFileMan1
1431 COMMAND RFs1 Connect
1432 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1433 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1434 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2033-001-Copy_command002
1435 COMMAND !Error=-12 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2033-001-Move_command003
1436 COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2033-001-Move_command004
1437 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2033-001-Delete_command005
1438 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2033-001-RmDir_command006
1439 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1443 END_TESTCASE PBASE-F32-FileMan-PublicApi-2033
1446 START_TESTCASE PBASE-F32-FileMan-PublicApi-2034
1447 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2034
1448 //! @SYMAPI CFileBase
1449 //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
1450 //! Move files using aSwitch=0 and aSwitch=ERecursive.
1451 //! Uses API elements: NewL(), Move(), Delete();
1452 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1453 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1454 //! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1455 //! and {TestPath}fileman\ as first parameter,
1456 //! and {TestPath}fileman\Copy\ as second parameter,
1458 //! and iStatus as parameter.
1459 //! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1460 //! and {TestPath}fileman\Copy\ as first parameter,
1461 //! and {TestPath}fileman\Copy1\ as second parameter,
1463 //! and iStatus as parameter.
1464 //! 5.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1465 //! and {TestPath}fileman\Copy\ as first parameter,
1466 //! and {TestPath}fileman\Copy1\ as second parameter.
1467 //! and aSwitch=ERecurse,
1468 //! and iStatus as parameter.
1469 //! @SYMTestStatus Implemented
1470 //! @SYMTestPriority Critical
1471 //! @SYMTestExpectedResults Move() return KErrPathNotFound when non recursive Move.
1472 //! @SYMTestType CIT
1473 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1474 CREATE_OBJECT RFs RFs1
1475 CREATE_OBJECT CFileMan CFileMan1
1477 COMMAND RFs1 Connect
1478 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1479 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1480 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2034-001-Copy_command002
1481 COMMAND !AsyncError=-12 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2034-001-Move_command003
1483 COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2034-001-Move_command004
1485 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2034-001-Delete_command005
1486 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2034-001-RmDir_command006
1487 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1491 END_TESTCASE PBASE-F32-FileMan-PublicApi-2034
1494 START_TESTCASE PBASE-F32-FileMan-PublicApi-2035
1495 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2035
1496 //! @SYMAPI CFileMan
1497 //! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) test.
1498 //! Sets attributes for files(using wildcard) synchronously to read-only.
1499 //! Uses API elements: NewL(), Copy(), Attribs();
1500 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1501 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1502 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1503 //! and {TestPath}fileman\Test1.txt as first parameter,
1504 //! and {TestPath}fileman\Copy\ as second parameter,
1506 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1507 //! and {TestPath}fileman\Test2.txt as first parameter,
1508 //! and {TestPath}fileman\Copy\ as second parameter,
1510 //! 5.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1511 //! and {TestPath}fileman\Copy\* as first parameter,
1512 //! and KEntryAttReadOnly|KEntryAttHidden as second parameter,
1513 //! and KEntryAttNormal as third parameter,
1514 //! and TTime(0) as fourth parameter,
1515 //! and aSwitch=0 as fifth parameter.
1516 //! 6.Call RFs::Att() to check that attribute was set for both files (Test1.txt, Test2.txt).
1517 //! 7.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1518 //! and {TestPath}fileman\Copy\* as first parameter,
1519 //! and KEntryAttNormal as second parameter,
1520 //! and KEntryAttReadOnly|KEntryAttHidden as third parameter,
1521 //! and TTime(0) as fourth parameter,
1522 //! and aSwitch=0 as fifth parameter.
1523 //! @SYMTestStatus Implemented
1524 //! @SYMTestPriority Critical
1525 //! @SYMTestExpectedResults Attribs() returns KErrNone and attributes successfuly were changed for both files.
1526 //! @SYMTestType CIT
1527 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1528 CREATE_OBJECT RFs RFs1
1529 CREATE_OBJECT CFileMan CFileMan1
1531 COMMAND RFs1 Connect
1532 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1533 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1534 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
1535 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0
1536 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2035-001-Attribs_command007
1537 COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2035-001-Att_command008
1538 COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2035-001-Att_command009
1539 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2035-001-Attribs_command010
1540 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2035-001-Delete_command011
1541 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1545 END_TESTCASE PBASE-F32-FileMan-PublicApi-2035
1547 START_TESTCASE PBASE-F32-FileMan-PublicApi-2036
1548 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2036
1549 //! @SYMAPI CFileMan
1550 //! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus) test.
1551 //! Sets attributes for files(using wildcard) synchronously to read-only.
1552 //! Uses API elements: NewL(), Copy(), Attribs();
1553 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1554 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1555 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1556 //! and {TestPath}fileman\Test1.txt as first parameter,
1557 //! and {TestPath}fileman\Copy\ as second parameter,
1559 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1560 //! and {TestPath}fileman\Test2.txt as first parameter,
1561 //! and {TestPath}fileman\Copy\ as second parameter,
1563 //! 5.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0, TRequestStatus &aStatus)
1564 //! and {TestPath}fileman\Copy\* as first parameter,
1565 //! and KEntryAttReadOnly|KEntryAttHidden as second parameter,
1566 //! and KEntryAttNormal as third parameter,
1567 //! and TTime(0) as fourth parameter,
1568 //! and aSwitch=0 as fifth parameter.
1569 //! and iStatus as fourth parameter.
1570 //! 6.Call RFs::Att() to check that attribute was set for both files (Test1.txt, Test2.txt).
1571 //! 7.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0, TRequestStatus &aStatus)
1572 //! and {TestPath}fileman\Copy\* as first parameter,
1573 //! and KEntryAttNormal as second parameter,
1574 //! and KEntryAttReadOnly|KEntryAttHidden as third parameter,
1575 //! and TTime(0) as fourth parameter,
1576 //! and aSwitch=0 as fifth parameter.
1577 //! and iStatus as fourth parameter.
1578 //! @SYMTestStatus Implemented
1579 //! @SYMTestPriority Critical
1580 //! @SYMTestExpectedResults Attribs() returns KErrNone and attributes successfuly were changed for both files.
1581 //! @SYMTestType CIT
1582 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1583 CREATE_OBJECT RFs RFs1
1584 CREATE_OBJECT CFileMan CFileMan1
1586 COMMAND RFs1 Connect
1587 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1588 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1589 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
1590 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0
1591 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2036-001-Attribs_command007
1593 COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2036-001-Att_command008
1594 COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2036-001-Att_command009
1595 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2036-001-Attribs_command010
1597 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2036-001-Delete_command011
1598 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1602 END_TESTCASE PBASE-F32-FileMan-PublicApi-2036
1605 START_TESTCASE PBASE-F32-FileMan-PublicApi-2037
1606 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2037
1607 //! @SYMAPI CFileMan
1608 //! @SYMTestCaseDesc Function Copy(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) test.
1609 //! Copy files using wildcard synchronously.
1610 //! Uses API elements: NewL(), Copy(), Delete();
1611 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1612 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1613 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1614 //! and {TestPath}fileman\* as first parameter,
1615 //! and {TestPath}fileman\Copy\ as second parameter,
1617 //! 4.Check that copied more that one file. Test1.txt and Test2.txt are exists.
1618 //! @SYMTestStatus Implemented
1619 //! @SYMTestPriority Critical
1620 //! @SYMTestExpectedResults Attribs() returns KErrNone and attributes successfuly were changed for both files.
1621 //! @SYMTestType CIT
1622 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1623 CREATE_OBJECT RFs RFs1
1624 CREATE_OBJECT RFile RFile1
1625 CREATE_OBJECT CFileMan CFileMan1
1627 COMMAND RFs1 Connect
1628 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1630 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1631 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2037-001-Copy_command005
1632 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2037-001-Open_command006
1633 COMMAND RFile1 Close
1634 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2037-001-Open_command007
1635 COMMAND RFile1 Close
1636 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2037-001-Delete_command008
1637 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1642 END_TESTCASE PBASE-F32-FileMan-PublicApi-2037
1644 START_TESTCASE PBASE-F32-FileMan-PublicApi-2038
1645 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2038
1646 //! @SYMAPI CFileMan
1647 //! @SYMTestCaseDesc Function Copy(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0, TRequestStatus &aStatus) test.
1648 //! Copy files using wildcard asynchronously.
1649 //! Uses API elements: NewL(), Copy(), Delete();
1650 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1651 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1652 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1653 //! and {TestPath}fileman\* as first parameter,
1654 //! and {TestPath}fileman\Copy\ as second parameter,
1657 //! 4.Check that copied more that one file. Test1.txt and Test2.txt are exists.
1658 //! @SYMTestStatus Implemented
1659 //! @SYMTestPriority Critical
1660 //! @SYMTestExpectedResults Attribs() returns KErrNone and attributes successfuly were changed for both files.
1661 //! @SYMTestType CIT
1662 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1663 CREATE_OBJECT RFs RFs1
1664 CREATE_OBJECT RFile RFile1
1665 CREATE_OBJECT CFileMan CFileMan1
1667 COMMAND RFs1 Connect
1668 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1670 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1671 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2038-001-Copy_command005
1673 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2038-001-Open_command006
1674 COMMAND RFile1 Close
1675 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2038-001-Open_command007
1676 COMMAND RFile1 Close
1677 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2038-001-Delete_command008
1678 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1683 END_TESTCASE PBASE-F32-FileMan-PublicApi-2038
1686 START_TESTCASE PBASE-F32-FileMan-PublicApi-2039
1687 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2039
1688 //! @SYMAPI CFileBase
1689 //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
1690 //! Move files synchronously using path with trailing slash and without
1691 //! Uses API elements: NewL(), Move(), Delete();
1692 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1693 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1694 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1695 //! and {TestPath}fileman\* as first parameter,
1696 //! and {TestPath}fileman\Copy\ as second parameter,
1698 //! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1699 //! and {TestPath}fileman\Copy\ as first parameter,
1700 //! and {TestPath}fileman\Copy1\ as second parameter,
1701 //! and aSwitch=ERecurse,
1702 //! 5.Check that "Copy1" contains files (Test1.txt and Test2.txt) and "Copy" doesn't.
1703 //! 6.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1704 //! and {TestPath}fileman\Copy1 as first parameter,
1705 //! and {TestPath}fileman\Copy\ as second parameter,
1707 //! 7.Check that folder "Copy1" now exists only "\Copy\Copy1\"
1708 //! @SYMTestStatus Implemented
1709 //! @SYMTestPriority Critical
1710 //! @SYMTestExpectedResults Move() return KErrPathNotFound when non recursive Move.
1711 //! @SYMTestType CIT
1712 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1713 CREATE_OBJECT RFs RFs1
1714 CREATE_OBJECT RFile RFile1
1715 CREATE_OBJECT RDir RDir1
1716 CREATE_OBJECT CFileMan CFileMan1
1718 COMMAND RFs1 Connect
1719 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1722 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1723 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2039-001-Copy_command002
1724 COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2039-001-Move_command003
1725 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2039-001-Open_command004
1726 COMMAND RFile1 Close
1727 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2039-001-Open_command005
1728 COMMAND RFile1 Close
1729 COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2039-001-Move_command006
1730 COMMAND !Error=-12 RDir1 Open PBASE-F32-FileMan-PublicApi-2039-001-Open_command007
1731 COMMAND RDir1 Open PBASE-F32-FileMan-PublicApi-2039-001-Open_command008
1733 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2039-001-Delete_command009
1734 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2039-001-RmDir_command010
1735 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1741 END_TESTCASE PBASE-F32-FileMan-PublicApi-2039
1744 START_TESTCASE PBASE-F32-FileMan-PublicApi-2040
1745 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2040
1746 //! @SYMAPI CFileBase
1747 //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
1748 //! Move files synchronously using path with trailing slash and without
1749 //! Uses API elements: NewL(), Move(), Delete();
1750 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1751 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1752 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1753 //! and {TestPath}fileman\* as first parameter,
1754 //! and {TestPath}fileman\Copy\ as second parameter,
1756 //! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1757 //! and {TestPath}fileman\Copy\ as first parameter,
1758 //! and {TestPath}fileman\Copy1\ as second parameter,
1759 //! and aSwitch=ERecurse,
1760 //! 5.Check that "Copy1" contains files (Test1.txt and Test2.txt) and does not contains folder "Copy".
1761 //! 6.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1762 //! and {TestPath}fileman\Copy1 as first parameter,
1763 //! and {TestPath}fileman\Copy\ as second parameter,
1765 //! 7.Check that folder "Copy1" was moved to "\Copy\Copy1\"
1766 //! @SYMTestStatus Implemented
1767 //! @SYMTestPriority Critical
1768 //! @SYMTestExpectedResults Move() moves only files if trailing slash exists and whole folder if no trailing slash.
1769 //! @SYMTestType CIT
1770 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1771 CREATE_OBJECT RFs RFs1
1772 CREATE_OBJECT RFile RFile1
1773 CREATE_OBJECT RDir RDir1
1774 CREATE_OBJECT CFileMan CFileMan1
1776 COMMAND RFs1 Connect
1777 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1780 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1781 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2040-001-Copy_command002
1782 COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2040-001-Move_command003
1784 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2040-001-Open_command004
1785 COMMAND RFile1 Close
1786 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2040-001-Open_command005
1787 COMMAND RFile1 Close
1788 COMMAND !Error=-12 RDir1 Open PBASE-F32-FileMan-PublicApi-2040-001-Open_command006
1789 COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2040-001-Move_command007
1791 COMMAND !Error=-12 RDir1 Open PBASE-F32-FileMan-PublicApi-2040-001-Open_command008
1792 COMMAND RDir1 Open PBASE-F32-FileMan-PublicApi-2040-001-Open_command009
1794 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2040-001-Delete_command010
1795 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2040-001-RmDir_command011
1796 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1801 END_TESTCASE PBASE-F32-FileMan-PublicApi-2040
1804 START_TESTCASE PBASE-F32-FileMan-PublicApi-2041
1805 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2041
1806 //! @SYMAPI CFileBase
1807 //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
1808 //! Synchronously Move files with ReadOnly and Hidden atributes and check that the moved files have the same attributes.
1809 //! Uses API elements: NewL(), Copy(), Delete();
1810 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1811 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1812 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1813 //! and {TestPath}fileman\Test1.txt as first parameter,
1814 //! and {TestPath}fileman\Copy\Test1.txt as second parameter.
1815 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1816 //! and {TestPath}fileman\Test2.txt as first parameter,
1817 //! and {TestPath}fileman\Copy\Test2.txt as second parameter.
1818 //! 5.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1819 //! and {TestPath}fileman\Copy\ as first parameter,
1820 //! and KEntryAttReadOnly|KEntryAttHidden as second parameter,
1821 //! and KEntryAttNormal as third parameter,
1822 //! and TTime(0) as fourth parameter,
1823 //! and 0 as fifth parameter.
1824 //! 6.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1825 //! and {TestPath}fileman\Copy as first parameter,
1826 //! and {TestPath}fileman\Copy1\ as second parameter,
1827 //! and aSwitch = ERecurse.
1828 //! 7.Check that files have the same attributes.
1829 //! 8.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1830 //! and {TestPath}fileman\Copy1\ as first parameter,
1831 //! and KEntryAttNormal as second parameter,
1832 //! and KEntryAttReadOnly|KEntryAttHidden as third parameter,
1833 //! and TTime(0) as fourth parameter,
1834 //! and 0 as fifth parameter.
1835 //! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1836 //! and {TestPath}fileman\Copy1\* as parameter.
1837 //! @SYMTestStatus Implemented
1838 //! @SYMTestPriority Critical
1839 //! @SYMTestExpectedResults File attributes unchanged after Move().
1840 //! @SYMTestType CIT
1841 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1842 CREATE_OBJECT RFs RFs1
1843 CREATE_OBJECT CFileMan CFileMan1
1845 COMMAND RFs1 Connect
1846 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1847 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1848 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_EOverWrite
1849 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_EOverWrite
1850 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2041-001-Attribs_command004
1851 COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2041-001-Move_command005
1852 COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2041-001-Att_command006
1853 COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2041-001-Att_command007
1854 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2041-001-Attribs_command008
1855 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2041-001-Delete_command009
1856 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2041-001-RmDir_command010
1857 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1861 END_TESTCASE PBASE-F32-FileMan-PublicApi-2041
1864 START_TESTCASE PBASE-F32-FileMan-PublicApi-2042
1865 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2042
1866 //! @SYMAPI CFileBase
1867 //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
1868 //! Asynchronously Move files with ReadOnly and Hidden atributes and check that the moved files have the same attributes.
1869 //! Uses API elements: NewL(), Copy(), Delete();
1870 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1871 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1872 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1873 //! and {TestPath}fileman\Test1.txt as first parameter,
1874 //! and {TestPath}fileman\Copy\Test1.txt as second parameter.
1875 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1876 //! and {TestPath}fileman\Test2.txt as first parameter,
1877 //! and {TestPath}fileman\Copy\Test2.txt as second parameter.
1878 //! 5.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1879 //! and {TestPath}fileman\Copy\ as first parameter,
1880 //! and KEntryAttReadOnly|KEntryAttHidden as second parameter,
1881 //! and KEntryAttNormal as third parameter,
1882 //! and TTime(0) as fourth parameter,
1883 //! and 0 as fifth parameter.
1884 //! 6.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1885 //! and {TestPath}fileman\Copy as first parameter,
1886 //! and {TestPath}fileman\Copy1\ as second parameter,
1887 //! and aSwitch = ERecurse,
1889 //! 7.Check that files have the same attributes.
1890 //! 8.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1891 //! and {TestPath}fileman\Copy1\ as first parameter,
1892 //! and KEntryAttNormal as second parameter,
1893 //! and KEntryAttReadOnly|KEntryAttHidden as third parameter,
1894 //! and TTime(0) as fourth parameter,
1895 //! and 0 as fifth parameter.
1896 //! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1897 //! and {TestPath}fileman\Copy1\* as parameter.
1898 //! @SYMTestStatus Implemented
1899 //! @SYMTestPriority Critical
1900 //! @SYMTestExpectedResults File attributes unchanged after Move().
1901 //! @SYMTestType CIT
1902 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1903 CREATE_OBJECT RFs RFs1
1904 CREATE_OBJECT CFileMan CFileMan1
1906 COMMAND RFs1 Connect
1907 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1908 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1909 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_EOverWrite
1910 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_EOverWrite
1911 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2042-001-Attribs_command004
1912 COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2042-001-Move_command005
1914 COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2042-001-Att_command006
1915 COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2042-001-Att_command007
1916 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2042-001-Attribs_command008
1917 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2042-001-Delete_command009
1918 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2042-001-RmDir_command010
1919 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1923 END_TESTCASE PBASE-F32-FileMan-PublicApi-2042
1926 START_TESTCASE PBASE-F32-FileMan-PublicApi-2043
1927 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2043
1928 //! @SYMAPI CFileBase
1929 //! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch) test.
1930 //! Synchronously Rename file with ReadOnly and Hidden atributes and check that the renamed file have the same attributes.
1931 //! Uses API elements: NewL(), Copy(), Rename(), Delete();
1932 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1933 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1934 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1935 //! and {TestPath}fileman\Test1.txt as first parameter,
1936 //! and {TestPath}fileman\Copy\Test1.txt as second parameter.
1937 //! 5.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1938 //! and {TestPath}fileman\Copy\Test1.txt as first parameter,
1939 //! and KEntryAttReadOnly|KEntryAttHidden as second parameter,
1940 //! and KEntryAttNormal as third parameter,
1941 //! and TTime(0) as fourth parameter,
1942 //! and 0 as fifth parameter.
1943 //! 6.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1944 //! and {TestPath}fileman\Copy\Test1.txt as first parameter,
1945 //! and {TestPath}fileman\Copy\Test.txt as second parameter,
1946 //! and aSwitch = 0.
1947 //! 7.Check that files have the same attributes.
1948 //! 8.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1949 //! and {TestPath}fileman\Copy\Test.txt as first parameter,
1950 //! and KEntryAttNormal as second parameter,
1951 //! and KEntryAttReadOnly|KEntryAttHidden as third parameter,
1952 //! and TTime(0) as fourth parameter,
1953 //! and 0 as fifth parameter.
1954 //! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1955 //! and {TestPath}fileman\Copy\* as parameter.
1956 //! @SYMTestStatus Implemented
1957 //! @SYMTestPriority Critical
1958 //! @SYMTestExpectedResults File attributes unchanged after Rename().
1959 //! @SYMTestType CIT
1960 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1961 CREATE_OBJECT RFs RFs1
1962 CREATE_OBJECT CFileMan CFileMan1
1964 COMMAND RFs1 Connect
1965 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1966 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1967 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_EOverWrite
1968 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2043-001-Attribs_command004
1969 COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2043-001-Rename_command005
1970 COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2043-001-Att_command006
1971 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2043-001-Attribs_command007
1972 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2043-001-Delete_command008
1973 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1977 END_TESTCASE PBASE-F32-FileMan-PublicApi-2043
1980 START_TESTCASE PBASE-F32-FileMan-PublicApi-2044
1981 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2044
1982 //! @SYMAPI CFileBase
1983 //! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) test.
1984 //! Asynchronously Rename file with ReadOnly and Hidden atributes and check that the renamed file have the same attributes.
1985 //! Uses API elements: NewL(), Copy(), Rename(), Delete();
1986 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1987 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1988 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1989 //! and {TestPath}fileman\Test1.txt as first parameter,
1990 //! and {TestPath}fileman\Copy\Test1.txt as second parameter.
1991 //! 5.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1992 //! and {TestPath}fileman\Copy\Test1.txt as first parameter,
1993 //! and KEntryAttReadOnly|KEntryAttHidden as second parameter,
1994 //! and KEntryAttNormal as third parameter,
1995 //! and TTime(0) as fourth parameter,
1996 //! and 0 as fifth parameter.
1997 //! 6.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1998 //! and {TestPath}fileman\Copy\Test1.txt as first parameter,
1999 //! and {TestPath}fileman\Copy\Test.txt as second parameter,
2000 //! and aSwitch = 0,
2002 //! 7.Check that files have the same attributes.
2003 //! 8.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
2004 //! and {TestPath}fileman\Copy\Test.txt as first parameter,
2005 //! and KEntryAttNormal as second parameter,
2006 //! and KEntryAttReadOnly|KEntryAttHidden as third parameter,
2007 //! and TTime(0) as fourth parameter,
2008 //! and 0 as fifth parameter.
2009 //! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
2010 //! and {TestPath}fileman\Copy\* as parameter.
2011 //! @SYMTestStatus Implemented
2012 //! @SYMTestPriority Critical
2013 //! @SYMTestExpectedResults File attributes unchanged after Rename().
2014 //! @SYMTestType CIT
2015 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
2016 CREATE_OBJECT RFs RFs1
2017 CREATE_OBJECT CFileMan CFileMan1
2019 COMMAND RFs1 Connect
2020 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
2021 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
2022 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_EOverWrite
2023 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2044-001-Attribs_command004
2024 COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2044-001-Rename_command005
2026 COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2044-001-Att_command006
2027 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2044-001-Attribs_command007
2028 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2044-001-Delete_command008
2029 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
2033 END_TESTCASE PBASE-F32-FileMan-PublicApi-2044
2036 START_TESTCASE PBASE-F32-FileMan-PublicApi-2045
2037 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2045
2038 //! @SYMAPI CFileBase
2039 //! @SYMTestCaseDesc Function Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
2040 //! Call asynchronous 3 Copy() functions at once.
2041 //! Uses API elements: NewL(), Copy(), Delete();
2042 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
2043 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
2044 //! 3.Call CFileMan::Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
2045 //! and Opened RFile handle "{TestPath}fileman\Test1.txt" as first parameter,
2046 //! and {TestPath}fileman\Copy\Test1.txt as second parameter,
2047 //! and aSwitch = 0,
2049 //! 4.Call CFileMan::Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
2050 //! and Opened RFile handle "{TestPath}fileman\Test2.txt" as first parameter,
2051 //! and {TestPath}fileman\Copy\Test2.txt as second parameter.
2052 //! and aSwitch = 0,
2054 //! 5.Call CFileMan::Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
2055 //! and Opened RFile handle "{TestPath}fileman\Test3.txt" as first parameter,
2056 //! and {TestPath}fileman\Copy\Test3.txt as second parameter.
2057 //! and aSwitch = 0,
2059 //! 6.Check that only first file was copied other copy calls return KErrInUse.
2060 //! 7.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
2061 //! and {TestPath}fileman\Copy\* as parameter.
2062 //! @SYMTestStatus Implemented
2063 //! @SYMTestPriority Critical
2064 //! @SYMTestExpectedResults All files were copied.
2065 //! @SYMTestType CIT
2066 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
2067 CREATE_OBJECT RFs RFs1
2068 CREATE_OBJECT RFile RFile1
2069 CREATE_OBJECT CFileMan CFileMan1
2071 COMMAND RFs1 Connect
2072 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
2074 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
2075 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2045-001-Copy_command002
2076 COMMAND !Error=-14 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2045-001-Copy_command003
2077 COMMAND !Error=-14 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2045-001-Copy_command004
2079 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2045-001-Open_command005
2080 COMMAND RFile1 Close
2081 COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2045-001-Open_command006
2082 COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2045-001-Open_command007
2083 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2045-001-Delete_command008
2084 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
2089 END_TESTCASE PBASE-F32-FileMan-PublicApi-2045
2092 START_TESTCASE PBASE-F32-FileMan-PublicApi-2046
2093 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2046
2094 //! @SYMAPI CFileBase
2095 //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
2096 //! Call asynchronous 3 Move() functions at once.
2097 //! Uses API elements: NewL(), Cope(), Move(), Delete();
2098 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
2099 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
2100 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
2101 //! and {TestPath}fileman\Test1.txt as first parameter,
2102 //! and {TestPath}fileman\Copy\Test1.txt as second parameter,
2103 //! and aSwitch = 0.
2104 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
2105 //! and {TestPath}fileman\Test2.txt as first parameter,
2106 //! and {TestPath}fileman\Copy\Test2.txt as second parameter.
2107 //! and aSwitch = 0.
2108 //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
2109 //! and {TestPath}fileman\Test3.txt as first parameter,
2110 //! and {TestPath}fileman\Copy\Test3.txt as second parameter.
2111 //! and aSwitch = 0.
2112 //! 6.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
2113 //! and {TestPath}fileman\Copy\Test1.txt as first parameter,
2114 //! and {TestPath}fileman\Test\Test1.txt as second parameter,
2115 //! and aSwitch = 0,
2117 //! 7.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
2118 //! and {TestPath}fileman\Copy\Test2.txt as first parameter,
2119 //! and {TestPath}fileman\Test\Test2.txt as second parameter.
2120 //! and aSwitch = 0,
2122 //! 8.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
2123 //! and {TestPath}fileman\Copy\Test3.txt as first parameter,
2124 //! and {TestPath}fileman\Test\Test3.txt as second parameter.
2125 //! and aSwitch = 0,
2127 //! 9.Check that only first file was moved other Move calls return KErrInUse.
2128 //! 10.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
2129 //! and {TestPath}fileman\Copy\* as parameter.
2130 //! 11.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
2131 //! and {TestPath}fileman\Test\* as parameter.
2132 //! @SYMTestStatus Implemented
2133 //! @SYMTestPriority Critical
2134 //! @SYMTestExpectedResults All files were moved.
2135 //! @SYMTestType CIT
2136 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
2137 CREATE_OBJECT RFs RFs1
2138 CREATE_OBJECT RFile RFile1
2139 CREATE_OBJECT CFileMan CFileMan1
2141 COMMAND RFs1 Connect
2142 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
2143 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir
2145 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
2146 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
2147 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0
2148 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0
2149 COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2046-001-Move_command002
2150 COMMAND !Error=-14 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2046-001-Move_command003
2151 COMMAND !Error=-14 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2046-001-Move_command004
2153 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2046-001-Open_command005
2154 COMMAND RFile1 Close
2155 COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2046-001-Open_command006
2156 COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2046-001-Open_command007
2157 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2046-001-Delete_command008
2158 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2046-001-Delete_command009
2159 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
2160 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir
2165 END_TESTCASE PBASE-F32-FileMan-PublicApi-2046
2168 START_TESTCASE PBASE-F32-FileMan-PublicApi-2047
2169 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2047
2170 //! @SYMAPI CFileBase
2171 //! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
2172 //! Call asynchronous 3 Rename() functions at once.
2173 //! Uses API elements: NewL(), Cope(), Rename(), Delete();
2174 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
2175 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
2176 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
2177 //! and {TestPath}fileman\Test1.txt as first parameter,
2178 //! and {TestPath}fileman\Copy\Test1.txt as second parameter,
2179 //! and aSwitch = 0.
2180 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
2181 //! and {TestPath}fileman\Test2.txt as first parameter,
2182 //! and {TestPath}fileman\Copy\Test2.txt as second parameter.
2183 //! and aSwitch = 0.
2184 //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
2185 //! and {TestPath}fileman\Test3.txt as first parameter,
2186 //! and {TestPath}fileman\Copy\Test3.txt as second parameter.
2187 //! and aSwitch = 0.
2188 //! 6.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
2189 //! and {TestPath}fileman\Copy\Test1.txt as first parameter,
2190 //! and {TestPath}fileman\Copy\Test1_new.txt as second parameter,
2191 //! and aSwitch = 0,
2193 //! 7.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
2194 //! and {TestPath}fileman\Copy\Test2.txt as first parameter,
2195 //! and {TestPath}fileman\Test\Test2_new.txt as second parameter.
2196 //! and aSwitch = 0,
2198 //! 8.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
2199 //! and {TestPath}fileman\Copy\Test3.txt as first parameter,
2200 //! and {TestPath}fileman\Test\Test3_new.txt as second parameter.
2201 //! and aSwitch = 0,
2203 //! 9.Check that only first file was renamed other Rename calls return KErrInUse.
2204 //! 10.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
2205 //! and {TestPath}fileman\Copy\* as parameter.
2206 //! @SYMTestStatus Implemented
2207 //! @SYMTestPriority Critical
2208 //! @SYMTestExpectedResults All files were moved.
2209 //! @SYMTestType CIT
2210 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
2211 CREATE_OBJECT RFs RFs1
2212 CREATE_OBJECT RFile RFile1
2213 CREATE_OBJECT CFileMan CFileMan1
2215 COMMAND RFs1 Connect
2216 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
2218 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
2219 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
2220 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0
2221 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0
2222 COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2047-001-Rename_command002
2223 COMMAND !Error=-14 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2047-001-Rename_command003
2224 COMMAND !Error=-14 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2047-001-Rename_command004
2226 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2047-001-Open_command005
2227 COMMAND RFile1 Close
2228 COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2047-001-Open_command006
2229 COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2047-001-Open_command007
2230 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2047-001-Delete_command008
2231 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
2236 END_TESTCASE PBASE-F32-FileMan-PublicApi-2047
2240 //////////////////////////////////////////////////////////////////////
2241 //////////////////////////////////////////////////////////////////////
2243 ////// /////////////////////////////////// //////
2244 ////// /// /// //////
2245 ////// /// NEGATIVE TESTS /// //////
2246 ////// /// /// //////
2247 ////// /////////////////////////////////// //////
2249 //////////////////////////////////////////////////////////////////////
2250 //////////////////////////////////////////////////////////////////////
2253 ////////////////////////////////////////////////////////////////////////////////////////////////////
2256 //Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
2258 ////////////////////////////////////////////////////////////////////////////////////////////////////
2260 START_TESTCASE PBASE-F32-FileMan-PublicApi-2103
2261 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2103
2262 //! @SYMAPI CFileMan
2263 //! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) negative test.
2264 //! Try to set attribute KEntryAttDir synchronously for file!
2265 //! And then check that it was not set for file
2266 //! Uses API elements: NewL(), Attribs().
2267 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
2268 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
2269 //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
2270 //! and {TestPath}fileman\Test2.txt as first parameter,
2271 //! and KEntryAttDir as second parameter,
2272 //! and KEntryAttNormal as third parameter,
2273 //! and TTime(0) as fourth parameter,
2274 //! and 0 as fifth parameter.
2275 //! @SYMTestStatus Implemented
2276 //! @SYMTestPriority Critical
2277 //! @SYMTestExpectedResults Attribute KEntryAttDir wasn't set for file.
2278 //! @SYMTestType CIT
2279 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
2280 CREATE_OBJECT RFs RFs1
2281 CREATE_OBJECT CFileMan CFileMan1
2283 COMMAND RFs1 Connect
2284 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
2285 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2103-001-Attribs_command005
2286 COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2103-001-Att_command006
2290 END_TESTCASE PBASE-F32-FileMan-PublicApi-2103
2293 START_TESTCASE PBASE-F32-FileMan-PublicApi-2104
2294 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2104
2295 //! @SYMAPI CFileMan
2296 //! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) negative test.
2297 //! Try to set attributes synchronously with wrong file path!
2298 //! Uses API elements: NewL(), Attribs().
2299 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
2300 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
2301 //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
2302 //! and {TestPath}fileman\\\Test2.txt as first parameter,
2303 //! and KEntryAttReadOnly as second parameter,
2304 //! and KEntryAttNormal as third parameter,
2305 //! and TTime(0) as fourth parameter,
2306 //! and CFileMan::ERecurse as fifth parameter.
2307 //! @SYMTestStatus Implemented
2308 //! @SYMTestPriority Critical
2309 //! @SYMTestExpectedResults Function Attribs() returns KErrBadName.
2310 //! @SYMTestType CIT
2311 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
2312 CREATE_OBJECT RFs RFs1
2313 CREATE_OBJECT CFileMan CFileMan1
2315 COMMAND RFs1 Connect
2316 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
2317 COMMAND !Error=-28 CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2104-001-Attribs_command005
2321 END_TESTCASE PBASE-F32-FileMan-PublicApi-2104
2324 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2327 //Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus)
2329 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2331 START_TESTCASE PBASE-F32-FileMan-PublicApi-2105
2332 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2105
2333 //! @SYMAPI CFileMan
2334 //! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus)
2336 //! Try to set attribute KEntryAttDir asynchronously for file!
2337 //! And then check that it was not set for file
2338 //! Uses API elements: NewL(), Attribs().
2339 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
2340 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
2341 //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus)
2342 //! and {TestPath}fileman\Test1.txt as first parameter,
2343 //! and KEntryAttDir as second parameter,
2344 //! and KEntryAttNormal as third parameter,
2345 //! and TTime(0) as fourth parameter,
2346 //! and 0 as fifth parameter,
2347 //! and iStatus as sixth parameter.
2348 //! @SYMTestStatus Implemented
2349 //! @SYMTestPriority Critical
2350 //! @SYMTestExpectedResults Attribute KEntryAttDir wasn't set for file.
2351 //! @SYMTestType CIT
2352 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
2353 CREATE_OBJECT RFs RFs1
2354 CREATE_OBJECT CFileMan CFileMan1
2356 COMMAND RFs1 Connect
2357 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
2358 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2105-001-Attribs_command005
2360 COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2105-001-Att_command006
2364 END_TESTCASE PBASE-F32-FileMan-PublicApi-2105
2367 START_TESTCASE PBASE-F32-FileMan-PublicApi-2106
2368 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2106
2369 //! @SYMAPI CFileMan
2370 //! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus)
2372 //! Try to set attributes asynchronously with wrong file path!
2373 //! Uses API elements: NewL(), Attribs().
2374 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
2375 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
2376 //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus)
2377 //! and {TestPath}fileman\\\Test2.txt as first parameter,
2378 //! and KEntryAttReadOnly as second parameter,
2379 //! and KEntryAttNormal as third parameter,
2380 //! and TTime(0) as fourth parameter,
2381 //! and CFileMan::ERecurse as fifth parameter,
2382 //! and iStatus as sixth parameter.
2383 //! @SYMTestStatus Implemented
2384 //! @SYMTestPriority Critical
2385 //! @SYMTestExpectedResults Function Attribs() returns KErrBadName.
2386 //! @SYMTestType CIT
2387 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
2388 CREATE_OBJECT RFs RFs1
2389 CREATE_OBJECT CFileMan CFileMan1
2391 COMMAND RFs1 Connect
2392 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
2393 COMMAND !AsyncError=-28 CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2106-001-Attribs_command005
2398 END_TESTCASE PBASE-F32-FileMan-PublicApi-2106
2401 ///////////////////////////////////////////////////////////////////////
2404 //Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite)
2406 ///////////////////////////////////////////////////////////////////////
2408 START_TESTCASE PBASE-F32-FileMan-PublicApi-2107
2409 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2107
2410 //! @SYMAPI CFileMan
2411 //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test.
2412 //! Sets file attributes to normal and tries to copy non-existing file synchronously from one directory to another.
2413 //! Uses API elements: NewL(), Attribs(), Copy().
2414 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
2415 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
2416 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
2417 //! and {TestPath}fileman\Test123.txt as first parameter,
2418 //! and {TestPath}fileman\Copy\ as second parameter.
2419 //! @SYMTestStatus Implemented
2420 //! @SYMTestPriority Critical
2421 //! @SYMTestExpectedResults Copy() returns KErrNotFound.
2422 //! @SYMTestType CIT
2423 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
2424 CREATE_OBJECT RFs RFs1
2425 CREATE_OBJECT CFileMan CFileMan1
2427 COMMAND RFs1 Connect
2428 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
2429 COMMAND !Error=-1 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2107-001-Copy_command005
2433 END_TESTCASE PBASE-F32-FileMan-PublicApi-2107
2436 START_TESTCASE PBASE-F32-FileMan-PublicApi-2108
2437 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2108
2438 //! @SYMAPI CFileMan
2439 //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test.
2440 //! Sets file attributes to normal and tries to copy file with wrong path name from one directory to another synchronously.
2441 //! Uses API elements: NewL(), Attribs(), Copy().
2442 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
2443 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
2444 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
2445 //! and {TestPath}fileman\\\\\Test3.txt as first parameter,
2446 //! and {TestPath}fileman\Copy\ as second parameter.
2447 //! @SYMTestStatus Implemented
2448 //! @SYMTestPriority Critical
2449 //! @SYMTestExpectedResults Copy() returns KErrBadName.
2450 //! @SYMTestType CIT
2451 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
2452 CREATE_OBJECT RFs RFs1
2453 CREATE_OBJECT CFileMan CFileMan1
2455 COMMAND RFs1 Connect
2456 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
2457 COMMAND !Error=-28 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2108-001-Copy_command005
2461 END_TESTCASE PBASE-F32-FileMan-PublicApi-2108
2464 START_TESTCASE PBASE-F32-FileMan-PublicApi-2109
2465 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2109
2466 //! @SYMAPI CFileMan
2467 //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test.
2468 //! Sets file attributes to normal and tries to copy file from one directory to directory with wrong path name synchronously.
2469 //! Uses API elements: NewL(), Attribs(), Copy().
2470 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
2471 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
2472 //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
2473 //! and {TestPath}fileman\Test1.txt as first parameter,
2474 //! and KEntryAttNormal as second parameter,
2475 //! and KEntryAttReadOnly as third parameter,
2476 //! and TTime(0) as fourth parameter,
2477 //! and CFileMan::EOverWrite as fifth parameter.
2478 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
2479 //! and {TestPath}fileman\Test3.txt as first parameter,
2480 //! and {TestPath}fileman\/\/\Copy\ as second parameter.
2481 //! @SYMTestStatus Implemented
2482 //! @SYMTestPriority Critical
2483 //! @SYMTestExpectedResults Copy() returns KErrBadName.
2484 //! @SYMTestType CIT
2485 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
2486 CREATE_OBJECT RFs RFs1
2487 CREATE_OBJECT CFileMan CFileMan1
2489 COMMAND RFs1 Connect
2490 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
2491 COMMAND !Error=-28 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2109-001-Copy_command005
2495 END_TESTCASE PBASE-F32-FileMan-PublicApi-2109
2498 START_TESTCASE PBASE-F32-FileMan-PublicApi-2110
2499 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2110
2500 //! @SYMAPI CFileMan
2501 //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test.
2502 //! Sets file attributes to normal and tries to copy file from one directory to non-existing directory synchronously.
2503 //! Uses API elements: NewL(), Attribs(), Copy().
2504 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
2505 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
2506 //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
2507 //! and {TestPath}fileman\Test1.txt as first parameter,
2508 //! and KEntryAttNormal as second parameter,
2509 //! and KEntryAttReadOnly as third parameter,
2510 //! and TTime(0) as fourth parameter,
2511 //! and CFileMan::EOverWrite as fifth parameter.
2512 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
2513 //! and {TestPath}fileman\Test3.txt as first parameter,
2514 //! and {TestPath}fileman\NotExist\ as second parameter.
2515 //! @SYMTestStatus Implemented
2516 //! @SYMTestPriority Critical
2517 //! @SYMTestExpectedResults Copy() returns KErrPathNotFound
2518 //! @SYMTestType CIT
2519 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
2520 CREATE_OBJECT RFs RFs1
2521 CREATE_OBJECT CFileMan CFileMan1
2523 COMMAND RFs1 Connect
2524 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
2525 COMMAND !Error=-12 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2110-001-Copy_command005
2529 END_TESTCASE PBASE-F32-FileMan-PublicApi-2110
2532 /////////////////////////////////////////////////////////////////////////////////////
2535 //Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus)
2537 /////////////////////////////////////////////////////////////////////////////////////
2539 START_TESTCASE PBASE-F32-FileMan-PublicApi-2111
2540 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2111
2541 //! @SYMAPI CFileMan
2542 //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test.
2543 //! Sets file attributes to normal and tries to copy non-existing file from one directory to another asynchronously.
2544 //! Uses API elements: NewL(), Attribs(), Copy().
2545 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
2546 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
2547 //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus)
2548 //! and {TestPath}fileman\Test1.txt as first parameter,
2549 //! and KEntryAttNormal as second parameter,
2550 //! and KEntryAttReadOnly as third parameter, and TTime(0) as fourth parameter,
2551 //! and CFileMan::EOverWrite as fifth parameter,
2552 //! and iStatus as sixth parameter.
2553 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus).
2554 //! and {TestPath}fileman\Test123.txt as first parameter,
2555 //! and {TestPath}fileman\Copy\ as second parameter,
2556 //! and iStatus as last parameter.
2557 //! @SYMTestStatus Implemented
2558 //! @SYMTestPriority Critical
2559 //! @SYMTestExpectedResults Copy() returns KErrNotFound.
2560 //! @SYMTestType CIT
2561 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
2562 CREATE_OBJECT RFs RFs1
2563 CREATE_OBJECT CFileMan CFileMan1
2565 COMMAND RFs1 Connect
2566 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
2567 COMMAND !AsyncError=-1 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2111-001-Copy_command005
2572 END_TESTCASE PBASE-F32-FileMan-PublicApi-2111
2575 START_TESTCASE PBASE-F32-FileMan-PublicApi-2112
2576 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2112
2577 //! @SYMAPI CFileMan
2578 //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test.
2579 //! Sets file attributes to normal and tries to copy file with wrong path name from one directory to another asynchronously.
2580 //! Uses API elements: NewL(), Attribs(), Copy().
2581 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
2582 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
2583 //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus)
2584 //! and {TestPath}fileman\Test1.txt as first parameter,
2585 //! and KEntryAttNormal as second parameter,
2586 //! and KEntryAttReadOnly as third parameter, and TTime(0) as fourth parameter,
2587 //! and CFileMan::EOverWrite as fifth parameter,
2588 //! and iStatus as sixth parameter.
2589 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus).
2590 //! and {TestPath}fileman\\\\\\Test3.txt as first parameter,
2591 //! and {TestPath}fileman\Copy\ as second parameter,
2592 //! and iStatus as last parameter.
2593 //! @SYMTestStatus Implemented
2594 //! @SYMTestPriority Critical
2595 //! @SYMTestExpectedResults Copy() returns KErrBadName.
2596 //! @SYMTestType CIT
2597 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
2598 CREATE_OBJECT RFs RFs1
2599 CREATE_OBJECT CFileMan CFileMan1
2601 COMMAND RFs1 Connect
2602 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
2603 COMMAND !AsyncError=-28 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2112-001-Copy_command005
2608 END_TESTCASE PBASE-F32-FileMan-PublicApi-2112
2611 START_TESTCASE PBASE-F32-FileMan-PublicApi-2113
2612 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2113
2613 //! @SYMAPI CFileMan
2614 //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test.
2615 //! Sets file attributes to normal and tries to copy file from one directory to directory with wrong path name asynchronously.
2616 //! Uses API elements: NewL(), Attribs(), Copy().
2617 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
2618 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
2619 //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus)
2620 //! and {TestPath}fileman\Test1.txt as first parameter,
2621 //! and KEntryAttNormal as second parameter,
2622 //! and KEntryAttReadOnly as third parameter, and TTime(0) as fourth parameter,
2623 //! and CFileMan::EOverWrite as fifth parameter,
2624 //! and iStatus as sixth parameter.
2625 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus).
2626 //! and {TestPath}fileman\Test3.txt as first parameter,
2627 //! and {TestPath}fileman\/\/\Copy\ as second parameter,
2628 //! and iStatus as last parameter.
2629 //! @SYMTestStatus Implemented
2630 //! @SYMTestPriority Critical
2631 //! @SYMTestExpectedResults Copy() returns KErrBadName.
2632 //! @SYMTestType CIT
2633 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
2634 CREATE_OBJECT RFs RFs1
2635 CREATE_OBJECT CFileMan CFileMan1
2637 COMMAND RFs1 Connect
2638 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
2639 COMMAND !AsyncError=-28 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2113-001-Copy_command005
2644 END_TESTCASE PBASE-F32-FileMan-PublicApi-2113
2647 START_TESTCASE PBASE-F32-FileMan-PublicApi-2114
2648 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2114
2649 //! @SYMAPI CFileMan
2650 //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test.
2651 //! Sets file attributes to normal and tries to copy file from one directory to non-existing directory asynchronously.
2652 //! Uses API elements: NewL(), Attribs(), Copy().
2653 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
2654 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
2655 //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus)
2656 //! and {TestPath}fileman\Test1.txt as first parameter,
2657 //! and KEntryAttNormal as second parameter,
2658 //! and KEntryAttReadOnly as third parameter, and TTime(0) as fourth parameter,
2659 //! and CFileMan::EOverWrite as fifth parameter,
2660 //! and iStatus as sixth parameter.
2661 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus).
2662 //! and {TestPath}fileman\Test3.txt as first parameter,
2663 //! and {TestPath}fileman\NotExist\ as second parameter,
2664 //! and iStatus as last parameter.
2665 //! @SYMTestStatus Implemented
2666 //! @SYMTestPriority Critical
2667 //! @SYMTestExpectedResults Copy() returns KErrPathNotFound
2668 //! @SYMTestType CIT
2669 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
2670 CREATE_OBJECT RFs RFs1
2671 CREATE_OBJECT CFileMan CFileMan1
2673 COMMAND RFs1 Connect
2674 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
2675 COMMAND !AsyncError=-12 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2114-001-Copy_command005
2680 END_TESTCASE PBASE-F32-FileMan-PublicApi-2114
2683 //////////////////////////////////////////////
2686 //Delete(const TDesC &aName, TUint aSwitch=0)
2688 //////////////////////////////////////////////
2690 START_TESTCASE PBASE-F32-FileMan-PublicApi-2115
2691 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2115
2692 //! @SYMAPI CFileMan
2693 //! @SYMTestCaseDesc Function Delete(const TDesC &aName, TUint aSwitch=0) negative test.
2694 //! Tries to delete non-existing file synchronously.
2695 //! Uses API elements: NewL(), Delete().
2696 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
2697 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
2698 //! 3.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), and {TestPath}fileman\Test123.txt as parameter
2699 //! @SYMTestStatus Implemented
2700 //! @SYMTestPriority Critical
2701 //! @SYMTestExpectedResults Delete() returns KErrNotFound.
2702 //! @SYMTestType CIT
2703 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
2704 CREATE_OBJECT RFs RFs1
2705 CREATE_OBJECT CFileMan CFileMan1
2707 COMMAND RFs1 Connect
2708 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
2709 COMMAND !Error=-1 CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2115-001-Delete_command005
2713 END_TESTCASE PBASE-F32-FileMan-PublicApi-2115
2716 START_TESTCASE PBASE-F32-FileMan-PublicApi-2116
2717 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2116
2718 //! @SYMAPI CFileMan
2719 //! @SYMTestCaseDesc Function Delete(const TDesC &aName, TUint aSwitch=0) negative test.
2720 //! Tries to delete file with wrong path name synchronously.
2721 //! Uses API elements: NewL(), Delete().
2722 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
2723 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
2724 //! 3.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), and {TestPath}fileman\\\\\Test3.txt as parameter
2725 //! @SYMTestStatus Implemented
2726 //! @SYMTestPriority Critical
2727 //! @SYMTestExpectedResults Delete() returns KErrBadName.
2728 //! @SYMTestType CIT
2729 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
2730 CREATE_OBJECT RFs RFs1
2731 CREATE_OBJECT CFileMan CFileMan1
2733 COMMAND RFs1 Connect
2734 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
2735 COMMAND !Error=-28 CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2116-001-Delete_command005
2739 END_TESTCASE PBASE-F32-FileMan-PublicApi-2116
2742 //////////////////////////////////////////////////////////////////////
2745 //Delete(const TDesC &aName, TUint aSwitch=0, TRequestStatus &aStatus)
2747 //////////////////////////////////////////////////////////////////////
2749 START_TESTCASE PBASE-F32-FileMan-PublicApi-2117
2750 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2117
2751 //! @SYMAPI CFileMan
2752 //! @SYMTestCaseDesc Function Delete(const TDesC &aName, TUint aSwitch=0, TRequestStatus &aStatus) negative test.
2753 //! Tries to delete non-existing file asynchronously.
2754 //! Uses API elements: NewL(), Delete().
2755 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
2756 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
2757 //! 3.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0, TRequestStatus &aStatus),
2758 //! and {TestPath}fileman\Copy\Test123.txt as first parameter,
2759 //! and CFileMan::EOverWrite as second parameter,
2760 //! and iStatus as third parameter.
2761 //! @SYMTestStatus Implemented
2762 //! @SYMTestPriority Critical
2763 //! @SYMTestExpectedResults Delete() returns KErrNotFound.
2764 //! @SYMTestType CIT
2765 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
2766 CREATE_OBJECT RFs RFs1
2767 CREATE_OBJECT CFileMan CFileMan1
2769 COMMAND RFs1 Connect
2770 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
2771 COMMAND !AsyncError=-1 CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2117-001-Delete_command005
2776 END_TESTCASE PBASE-F32-FileMan-PublicApi-2117
2779 START_TESTCASE PBASE-F32-FileMan-PublicApi-2118
2780 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2118
2781 //! @SYMAPI CFileMan
2782 //! @SYMTestCaseDesc Function Delete(const TDesC &aName, TUint aSwitch=0, TRequestStatus &aStatus) negative test.
2783 //! Tries to delete file with wrong path name asynchronously.
2784 //! Uses API elements: NewL(), Delete().
2785 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
2786 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
2787 //! 3.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0, TRequestStatus &aStatus),
2788 //! and {TestPath}fileman\Copy\\\\\Test3.txt as first parameter,
2789 //! and CFileMan::EOverWrite as second parameter,
2790 //! and iStatus as third parameter.
2791 //! @SYMTestStatus Implemented
2792 //! @SYMTestPriority Critical
2793 //! @SYMTestExpectedResults Delete() returns KErrBadName.
2794 //! @SYMTestType CIT
2795 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
2796 CREATE_OBJECT RFs RFs1
2797 CREATE_OBJECT CFileMan CFileMan1
2799 COMMAND RFs1 Connect
2800 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
2801 COMMAND !AsyncError=-28 CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2118-001-Delete_command005
2806 END_TESTCASE PBASE-F32-FileMan-PublicApi-2118
2809 ////////////////////////////////////////////////////////////////////////
2812 //Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite)
2814 ////////////////////////////////////////////////////////////////////////
2816 START_TESTCASE PBASE-F32-FileMan-PublicApi-2119
2817 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2119
2818 //! @SYMAPI CFileMan
2819 //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test.
2820 //! Tries to move non-existing file from one directory to another synchronously.
2821 //! Uses API elements: NewL(), Move().
2822 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
2823 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
2824 //! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
2825 //! and {TestPath}fileman\Test123.txt as first parameter,
2826 //! and {TestPath}fileman\Copy\ as second parameter.
2827 //! @SYMTestStatus Implemented
2828 //! @SYMTestPriority Critical
2829 //! @SYMTestExpectedResults Move() returns KErrNotFound.
2830 //! @SYMTestType CIT
2831 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
2832 CREATE_OBJECT RFs RFs1
2833 CREATE_OBJECT CFileMan CFileMan1
2835 COMMAND RFs1 Connect
2836 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
2837 COMMAND !Error=-1 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2119-001-Move_command005
2841 END_TESTCASE PBASE-F32-FileMan-PublicApi-2119
2844 START_TESTCASE PBASE-F32-FileMan-PublicApi-2120
2845 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2120
2846 //! @SYMAPI CFileMan
2847 //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test.
2848 //! Tries to move file with wrong path name from one directory to another synchronously.
2849 //! Uses API elements: NewL(), Move().
2850 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
2851 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
2852 //! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
2853 //! and {TestPath}fileman\\\\\Test3.txt as first parameter,
2854 //! and {TestPath}fileman\Copy\ as second parameter.
2855 //! @SYMTestStatus Implemented
2856 //! @SYMTestPriority Critical
2857 //! @SYMTestExpectedResults Move() returns KErrBadName.
2858 //! @SYMTestType CIT
2859 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
2860 CREATE_OBJECT RFs RFs1
2861 CREATE_OBJECT CFileMan CFileMan1
2863 COMMAND RFs1 Connect
2864 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
2865 COMMAND !Error=-28 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2120-001-Move_command005
2869 END_TESTCASE PBASE-F32-FileMan-PublicApi-2120
2872 START_TESTCASE PBASE-F32-FileMan-PublicApi-2121
2873 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2121
2874 //! @SYMAPI CFileMan
2875 //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test.
2876 //! Tries to move file from one directory to directory with wrong path name synchronously.
2877 //! Uses API elements: NewL(), Move().
2878 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
2879 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
2880 //! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
2881 //! and {TestPath}fileman\Test3.txt as first parameter,
2882 //! and {TestPath}fileman\\\Copy\ as second parameter.
2883 //! @SYMTestStatus Implemented
2884 //! @SYMTestPriority Critical
2885 //! @SYMTestExpectedResults Move() returns KErrBadName.
2886 //! @SYMTestType CIT
2887 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
2888 CREATE_OBJECT RFs RFs1
2889 CREATE_OBJECT CFileMan CFileMan1
2891 COMMAND RFs1 Connect
2892 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
2893 COMMAND !Error=-28 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2121-001-Move_command005
2897 END_TESTCASE PBASE-F32-FileMan-PublicApi-2121
2900 START_TESTCASE PBASE-F32-FileMan-PublicApi-2122
2901 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2122
2902 //! @SYMAPI CFileMan
2903 //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test.
2904 //! Tries to move file from one directory to non-existing directory synchronously.
2905 //! Uses API elements: NewL(), Move().
2906 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
2907 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
2908 //! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
2909 //! and {TestPath}fileman\Test3.txt as first parameter,
2910 //! and {TestPath}fileman\NotExist\ as second parameter.
2911 //! @SYMTestStatus Implemented
2912 //! @SYMTestPriority Critical
2913 //! @SYMTestExpectedResults Move() returns KErrPathNotFound.
2914 //! @SYMTestType CIT
2915 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
2916 CREATE_OBJECT RFs RFs1
2917 CREATE_OBJECT CFileMan CFileMan1
2919 COMMAND RFs1 Connect
2920 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
2921 COMMAND !Error=-12 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2122-001-Move_command005
2925 END_TESTCASE PBASE-F32-FileMan-PublicApi-2122
2928 //////////////////////////////////////////////////////////////////////////////////////
2931 //Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus)
2933 //////////////////////////////////////////////////////////////////////////////////////
2935 START_TESTCASE PBASE-F32-FileMan-PublicApi-2123
2936 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2123
2937 //! @SYMAPI CFileMan
2938 //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test.
2939 //! Tries to move non-existing file from one directory to another asynchronously.
2940 //! Uses API elements: NewL(), Move().
2941 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
2942 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
2943 //! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus),
2944 //! and {TestPath}fileman\Test123.txt as first parameter,
2945 //! and {TestPath}fileman\Copy\ as second parameter,
2946 //! and CFileMan::EOverWrite as third parameter,
2947 //! and iStatus as fourth parameter.
2948 //! @SYMTestStatus Implemented
2949 //! @SYMTestPriority Critical
2950 //! @SYMTestExpectedResults Move() returns KErrNotFound.
2951 //! @SYMTestType CIT
2952 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
2953 CREATE_OBJECT RFs RFs1
2954 CREATE_OBJECT CFileMan CFileMan1
2956 COMMAND RFs1 Connect
2957 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
2958 COMMAND !AsyncError=-1 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2123-001-Move_command005
2963 END_TESTCASE PBASE-F32-FileMan-PublicApi-2123
2966 START_TESTCASE PBASE-F32-FileMan-PublicApi-2124
2967 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2124
2968 //! @SYMAPI CFileMan
2969 //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test.
2970 //! Tries to move file with wrong path name from one directory to another asynchronously.
2971 //! Uses API elements: NewL(), Move().
2972 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
2973 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
2974 //! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus),
2975 //! and {TestPath}fileman\\\\\\Test3.txt as first parameter,
2976 //! and {TestPath}fileman\Copy\ as second parameter,
2977 //! and CFileMan::EOverWrite as third parameter,
2978 //! and iStatus as fourth parameter.
2979 //! @SYMTestStatus Implemented
2980 //! @SYMTestPriority Critical
2981 //! @SYMTestExpectedResults Move() returns KErrBadName.
2982 //! @SYMTestType CIT
2983 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
2984 CREATE_OBJECT RFs RFs1
2985 CREATE_OBJECT CFileMan CFileMan1
2987 COMMAND RFs1 Connect
2988 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
2989 COMMAND !AsyncError=-28 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2124-001-Move_command005
2994 END_TESTCASE PBASE-F32-FileMan-PublicApi-2124
2997 START_TESTCASE PBASE-F32-FileMan-PublicApi-2125
2998 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2125
2999 //! @SYMAPI CFileMan
3000 //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test.
3001 //! Tries to move file from one directory to directory with wrong path name asynchronously.
3002 //! Uses API elements: NewL(), Move().
3003 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
3004 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
3005 //! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus),
3006 //! and {TestPath}fileman\Test3.txt as first parameter,
3007 //! and {TestPath}fileman\\\Copy\ as second parameter,
3008 //! and CFileMan::EOverWrite as third parameter,
3009 //! and iStatus as fourth parameter.
3010 //! @SYMTestStatus Implemented
3011 //! @SYMTestPriority Critical
3012 //! @SYMTestExpectedResults Move() returns KErrBadName.
3013 //! @SYMTestType CIT
3014 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
3015 CREATE_OBJECT RFs RFs1
3016 CREATE_OBJECT CFileMan CFileMan1
3018 COMMAND RFs1 Connect
3019 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
3020 COMMAND !AsyncError=-28 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2125-001-Move_command005
3025 END_TESTCASE PBASE-F32-FileMan-PublicApi-2125
3028 START_TESTCASE PBASE-F32-FileMan-PublicApi-2126
3029 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2126
3030 //! @SYMAPI CFileMan
3031 //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test.
3032 //! Tries to move file from one directory to non-existing directory asynchronously.
3033 //! Uses API elements: NewL(), Move().
3034 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
3035 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
3036 //! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus),
3037 //! and {TestPath}fileman\Test3.txt as first parameter,
3038 //! and {TestPath}fileman\NotExist\ as second parameter,
3039 //! and CFileMan::EOverWrite as third parameter,
3040 //! and iStatus as fourth parameter.
3041 //! @SYMTestStatus Implemented
3042 //! @SYMTestPriority Critical
3043 //! @SYMTestExpectedResults Move() returns KErrPathNotFound.
3044 //! @SYMTestType CIT
3045 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
3046 CREATE_OBJECT RFs RFs1
3047 CREATE_OBJECT CFileMan CFileMan1
3049 COMMAND RFs1 Connect
3050 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
3051 COMMAND !AsyncError=-12 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2126-001-Move_command005
3056 END_TESTCASE PBASE-F32-FileMan-PublicApi-2126
3059 //////////////////////////////////////////////////////////////////////////
3062 //Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite)
3064 //////////////////////////////////////////////////////////////////////////
3066 START_TESTCASE PBASE-F32-FileMan-PublicApi-2127
3067 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2127
3068 //! @SYMAPI CFileMan
3069 //! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test.
3070 //! Tries to rename non-existing file name synchronously.
3071 //! Uses API elements: NewL(), Rename().
3072 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
3073 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
3074 //! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
3075 //! and {TestPath}fileman\Test123.txt as first parameter,
3076 //! and {TestPath}fileman\Renamed.txt as second parameter.
3077 //! @SYMTestStatus Implemented
3078 //! @SYMTestPriority Critical
3079 //! @SYMTestExpectedResults Rename() returns KErrNotFound.
3080 //! @SYMTestType CIT
3081 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
3082 CREATE_OBJECT RFs RFs1
3083 CREATE_OBJECT CFileMan CFileMan1
3085 COMMAND RFs1 Connect
3086 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
3087 COMMAND !Error=-1 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2127-001-Rename_command005
3091 END_TESTCASE PBASE-F32-FileMan-PublicApi-2127
3094 START_TESTCASE PBASE-F32-FileMan-PublicApi-2128
3095 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2128
3096 //! @SYMAPI CFileMan
3097 //! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test.
3098 //! Tries to rename file with wrong path name synchronously.
3099 //! Uses API elements: NewL(), Rename().
3100 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
3101 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
3102 //! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
3103 //! and {TestPath}fileman\\\\\Test3.txt as first parameter,
3104 //! and {TestPath}fileman\Renamed.txt as second parameter.
3105 //! @SYMTestStatus Implemented
3106 //! @SYMTestPriority Critical
3107 //! @SYMTestExpectedResults Rename() returns KErrBadName.
3108 //! @SYMTestType CIT
3109 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
3110 CREATE_OBJECT RFs RFs1
3111 CREATE_OBJECT CFileMan CFileMan1
3113 COMMAND RFs1 Connect
3114 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
3115 COMMAND !Error=-28 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2128-001-Rename_command005
3119 END_TESTCASE PBASE-F32-FileMan-PublicApi-2128
3122 START_TESTCASE PBASE-F32-FileMan-PublicApi-2129
3123 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2129
3124 //! @SYMAPI CFileMan
3125 //! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test.
3126 //! Tries to rename file synchronously when new file path is wrong.
3127 //! Uses API elements: NewL(), Rename().
3128 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
3129 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
3130 //! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
3131 //! and {TestPath}fileman\Test3.txt as first parameter,
3132 //! and {TestPath}fileman\\\Renamed.txt as second parameter.
3133 //! @SYMTestStatus Implemented
3134 //! @SYMTestPriority Critical
3135 //! @SYMTestExpectedResults Rename() returns KErrBadName.
3136 //! @SYMTestType CIT
3137 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
3138 CREATE_OBJECT RFs RFs1
3139 CREATE_OBJECT CFileMan CFileMan1
3141 COMMAND RFs1 Connect
3142 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
3143 COMMAND !Error=-28 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2129-001-Rename_command005
3147 END_TESTCASE PBASE-F32-FileMan-PublicApi-2129
3150 ////////////////////////////////////////////////////////////////////////////////////////
3153 //Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus)
3155 ////////////////////////////////////////////////////////////////////////////////////////
3157 START_TESTCASE PBASE-F32-FileMan-PublicApi-2130
3158 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2130
3159 //! @SYMAPI CFileMan
3160 //! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test.
3161 //! Tries to rename non-existing file name asynchronously.
3162 //! Uses API elements: NewL(), Rename().
3163 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
3164 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
3165 //! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus).
3166 //! and {TestPath}fileman\Test123.txt as first parameter,
3167 //! and {TestPath}fileman\Renamed.txt as second parameter,
3168 //! and CFileMan::EOverWrite as third parameter,
3169 //! and iStatus as last parameter.
3170 //! @SYMTestStatus Implemented
3171 //! @SYMTestPriority Critical
3172 //! @SYMTestExpectedResults Rename() returns KErrNotFound.
3173 //! @SYMTestType CIT
3174 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
3175 CREATE_OBJECT RFs RFs1
3176 CREATE_OBJECT CFileMan CFileMan1
3178 COMMAND RFs1 Connect
3179 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
3180 COMMAND !AsyncError=-1 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2130-001-Rename_command005
3185 END_TESTCASE PBASE-F32-FileMan-PublicApi-2130
3188 START_TESTCASE PBASE-F32-FileMan-PublicApi-2131
3189 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2131
3190 //! @SYMAPI CFileMan
3191 //! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test.
3192 //! Tries to rename file with wrong path name asynchronously.
3193 //! Uses API elements: NewL(), Rename().
3194 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
3195 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
3196 //! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus).
3197 //! and {TestPath}fileman\\\\\Test3.txt as first parameter,
3198 //! and {TestPath}fileman\Renamed.txt as second parameter,
3199 //! and CFileMan::EOverWrite as third parameter,
3200 //! and iStatus as last parameter.
3201 //! @SYMTestStatus Implemented
3202 //! @SYMTestPriority Critical
3203 //! @SYMTestExpectedResults Rename() returns KErrBadName.
3204 //! @SYMTestType CIT
3205 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
3206 CREATE_OBJECT RFs RFs1
3207 CREATE_OBJECT CFileMan CFileMan1
3209 COMMAND RFs1 Connect
3210 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
3211 COMMAND !AsyncError=-28 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2131-001-Rename_command005
3216 END_TESTCASE PBASE-F32-FileMan-PublicApi-2131
3219 START_TESTCASE PBASE-F32-FileMan-PublicApi-2132
3220 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2132
3221 //! @SYMAPI CFileMan
3222 //! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test.
3223 //! Tries to rename file asynchronously when new file path is wrong.
3224 //! Uses API elements: NewL(), Rename().
3225 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
3226 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
3227 //! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus).
3228 //! and {TestPath}fileman\Test3.txt as first parameter,
3229 //! and {TestPath}fileman\\\Renamed.txt as second parameter,
3230 //! and CFileMan::EOverWrite as third parameter,
3231 //! and iStatus as last parameter.
3232 //! @SYMTestStatus Implemented
3233 //! @SYMTestPriority Critical
3234 //! @SYMTestExpectedResults Rename() returns KErrBadName.
3235 //! @SYMTestType CIT
3236 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
3237 CREATE_OBJECT RFs RFs1
3238 CREATE_OBJECT CFileMan CFileMan1
3240 COMMAND RFs1 Connect
3241 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
3242 COMMAND !AsyncError=-28 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2132-001-Rename_command005
3247 END_TESTCASE PBASE-F32-FileMan-PublicApi-2132
3250 //////////////////////////////
3253 //RmDir(const TDesC &aDirName)
3255 //////////////////////////////
3257 START_TESTCASE PBASE-F32-FileMan-PublicApi-2133
3258 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2133
3259 //! @SYMAPI CFileMan
3260 //! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName) negative test.
3261 //! Tries to remove non-existing directory synchronously.
3262 //! Uses API elements: NewL(), RmDir().
3263 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
3264 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
3265 //! 3.Call CFileMan::RmDir(const TDesC &aDirName) and {TestPath}fileman\Copy123\ as parameter.
3266 //! @SYMTestStatus Implemented
3267 //! @SYMTestPriority Critical
3268 //! @SYMTestExpectedResults RmDir() returns KErrPathNotFound.
3269 //! @SYMTestType CIT
3270 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
3271 CREATE_OBJECT RFs RFs1
3272 CREATE_OBJECT CFileMan CFileMan1
3274 COMMAND RFs1 Connect
3275 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
3276 COMMAND !Error=-12 CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2133-001-RmDir_command005
3280 END_TESTCASE PBASE-F32-FileMan-PublicApi-2133
3283 START_TESTCASE PBASE-F32-FileMan-PublicApi-2134
3284 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2134
3285 //! @SYMAPI CFileMan
3286 //! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName) negative test.
3287 //! Tries to remove directory with wrong path name synchronously.
3288 //! Uses API elements: NewL(), RmDir().
3289 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
3290 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
3291 //! 3.Call CFileMan::RmDir(const TDesC &aDirName) and {TestPath}fileman\\\\\Copy\ as parameter.
3292 //! @SYMTestStatus Implemented
3293 //! @SYMTestPriority Critical
3294 //! @SYMTestExpectedResults RmDir() returns KErrBadName.
3295 //! @SYMTestType CIT
3296 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
3297 CREATE_OBJECT RFs RFs1
3298 CREATE_OBJECT CFileMan CFileMan1
3300 COMMAND RFs1 Connect
3301 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
3302 COMMAND !Error=-28 CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2134-001-RmDir_command005
3306 END_TESTCASE PBASE-F32-FileMan-PublicApi-2134
3309 ////////////////////////////////////////////////////////
3312 //RmDir(const TDesC &aDirName, TRequestStatus &aStatus)
3314 ////////////////////////////////////////////////////////
3316 START_TESTCASE PBASE-F32-FileMan-PublicApi-2135
3317 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2135
3318 //! @SYMAPI CFileMan
3319 //! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName, TRequestStatus &aStatus) negative test.
3320 //! Tries to remove non-existing directory asynchronously.
3321 //! Uses API elements: NewL(), RmDir().
3322 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
3323 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
3324 //! 3.Call CFileMan::RmDir(const TDesC &aDirName, TRequestStatus &aStatus),
3325 //! and {TestPath}fileman\Copy123\ as first parameter,
3326 //! and iStatus as second parameter.
3327 //! @SYMTestStatus Implemented
3328 //! @SYMTestPriority Critical
3329 //! @SYMTestExpectedResults RmDir() returns KErrPathNotFound.
3330 //! @SYMTestType CIT
3331 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
3332 CREATE_OBJECT RFs RFs1
3333 CREATE_OBJECT CFileMan CFileMan1
3335 COMMAND RFs1 Connect
3336 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
3337 COMMAND !AsyncError=-12 CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2135-001-RmDir_command005
3342 END_TESTCASE PBASE-F32-FileMan-PublicApi-2135
3345 START_TESTCASE PBASE-F32-FileMan-PublicApi-2136
3346 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2136
3347 //! @SYMAPI CFileMan
3348 //! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName, TRequestStatus &aStatus) negative test.
3349 //! Tries to remove directory with wrong path name asynchronously.
3350 //! Uses API elements: NewL(), RmDir().
3351 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
3352 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
3353 //! 3.Call CFileMan::RmDir(const TDesC &aDirName, TRequestStatus &aStatus),
3354 //! and {TestPath}fileman\\\\\Copy\ as first parameter,
3355 //! and iStatus as second parameter.
3356 //! @SYMTestStatus Implemented
3357 //! @SYMTestPriority Critical
3358 //! @SYMTestExpectedResults RmDir() returns KErrBadName.
3359 //! @SYMTestType CIT
3360 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
3361 CREATE_OBJECT RFs RFs1
3362 CREATE_OBJECT CFileMan CFileMan1
3364 COMMAND RFs1 Connect
3365 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
3366 COMMAND !AsyncError=-28 CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2136-001-RmDir_command005
3371 END_TESTCASE PBASE-F32-FileMan-PublicApi-2136
3374 //////////////////////////////////////////////////////////////////////////
3377 //Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches=EOverWrite)
3379 //////////////////////////////////////////////////////////////////////////
3381 START_TESTCASE PBASE-F32-FileMan-PublicApi-2137
3382 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2137
3383 //! @SYMAPI CFileMan
3384 //! @SYMTestCaseDesc Function Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches=EOverWrite) negative test.
3385 //! Opens file then tries to copy file content to another file with wrong path name synchronously.
3386 //! Uses API elements: NewL(), Copy().
3387 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
3388 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
3389 //! 3.Call RFile::Open() to open file.
3390 //! 4.Call CFileMan::Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches=EOverWrite),
3391 //! and RFile object as first object,
3392 //! and {TestPath}fileman\\\\\test.txt as second parameter.
3394 //! @SYMTestStatus Implemented
3395 //! @SYMTestPriority Critical
3396 //! @SYMTestExpectedResults Copy() returns KErrBadName.
3397 //! @SYMTestType CIT
3398 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
3399 CREATE_OBJECT RFs RFs1
3400 CREATE_OBJECT RFile RFile1
3401 CREATE_OBJECT CFileMan CFileMan1
3403 COMMAND RFs1 Connect
3405 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2137-001-Open_command006
3406 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
3407 COMMAND !Error=-28 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2137-001-Copy_command008
3409 COMMAND RFile1 Close
3413 END_TESTCASE PBASE-F32-FileMan-PublicApi-2137
3416 ////////////////////////////////////////////////////////////////////////////////////////
3419 //Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches, TRequestStatus &aStatus)
3421 ////////////////////////////////////////////////////////////////////////////////////////
3423 START_TESTCASE PBASE-F32-FileMan-PublicApi-2138
3424 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2138
3425 //! @SYMAPI CFileMan
3426 //! @SYMTestCaseDesc Function Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches, TRequestStatus &aStatus) negative test.
3427 //! Opens file then tries to copy file content to another file with wrong path name asynchronously.
3428 //! Uses API elements: NewL(), Copy().
3429 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
3430 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
3431 //! 3.Call RFile::Open() to open file.
3432 //! 4.Call CFileMan::Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches, TRequestStatus &aStatus),
3433 //! and RFile object as first object,
3434 //! and {TestPath}fileman\\\\\test.txt as second parameter,
3435 //! and iStatus as last parameter.
3436 //! @SYMTestStatus Implemented
3437 //! @SYMTestPriority Critical
3438 //! @SYMTestExpectedResults Copy() returns KErrBadName.
3439 //! @SYMTestType CIT
3440 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
3441 CREATE_OBJECT RFs RFs1
3442 CREATE_OBJECT RFile RFile1
3443 CREATE_OBJECT CFileMan CFileMan1
3445 COMMAND RFs1 Connect
3447 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2138-001-Open_command006
3448 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
3449 COMMAND !AsyncError=-28 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2138-001-Copy_command008
3452 COMMAND RFile1 Close
3456 END_TESTCASE PBASE-F32-FileMan-PublicApi-2138
3458 START_TESTCASE PBASE-F32-FileMan-PublicApi-2139
3459 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2139
3460 //! @SYMAPI CFileMan
3461 //! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) negative test.
3462 //! Try to set attribute KEntryAttReadOnly and unset the same attribute KEntryAttReadOnly synchronously for file!
3463 //! And then check that it was not set for file
3464 //! Uses API elements: NewL(), Attribs().
3465 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
3466 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
3467 //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
3468 //! and {TestPath}fileman\Test2.txt as first parameter,
3469 //! and KEntryAttReadOnly as second parameter,
3470 //! and KEntryAttReadOnly as third parameter,
3471 //! and TTime(0) as fourth parameter,
3472 //! and 0 as fifth parameter.
3473 //! @SYMTestStatus Implemented
3474 //! @SYMTestPriority Critical
3475 //! @SYMTestExpectedResults Function Attribs() returns Panic with code 21.
3476 //! @SYMTestType CIT
3477 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
3478 CREATE_OBJECT RFs RFs1
3479 CREATE_OBJECT CFileMan CFileMan1
3481 COMMAND RFs1 Connect
3482 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
3483 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2139-001-Attribs_command005
3486 END_TEST_BLOCK !PanicCode=21 !PanicString="FSCLIENT panic"
3487 END_TESTCASE PBASE-F32-FileMan-PublicApi-2139
3489 START_TESTCASE PBASE-F32-FileMan-PublicApi-2140
3490 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2140
3491 //! @SYMAPI CFileMan
3492 //! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) negative test.
3493 //! Try to set attribute KEntryAttReadOnly and unset the same attribute KEntryAttReadOnly asynchronously for file!
3494 //! And then check that it was not set for file
3495 //! Uses API elements: NewL(), Attribs().
3496 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
3497 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
3498 //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
3499 //! and {TestPath}fileman\Test2.txt as first parameter,
3500 //! and KEntryAttReadOnly as second parameter,
3501 //! and KEntryAttReadOnly as third parameter,
3502 //! and TTime(0) as fourth parameter,
3503 //! and 0 as fifth parameter.
3504 //! @SYMTestStatus Implemented
3505 //! @SYMTestPriority Critical
3506 //! @SYMTestExpectedResults Function Attribs() returns Panic with code 21.
3507 //! @SYMTestType CIT
3508 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
3509 CREATE_OBJECT RFs RFs1
3510 CREATE_OBJECT CFileMan CFileMan1
3512 COMMAND RFs1 Connect
3513 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
3514 COMMAND !AsyncError=21 CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2140-001-Attribs_command005
3519 END_TESTCASE PBASE-F32-FileMan-PublicApi-2140
3521 START_TESTCASE PBASE-F32-FileMan-PublicApi-2141
3522 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2141
3523 //! @SYMAPI CFileMan
3524 //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
3525 //! Copy same file to the same location a three times with a different aSwitch parameter
3526 //! Uses API elements: NewL(), Copy();
3527 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
3528 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
3529 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
3530 //! and {TestPath}fileman\Test1.txt as first parameter,
3531 //! and {TestPath}fileman\Copy\ as second parameter,
3532 //! and aSwitch = 0 as third parameter.
3533 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
3534 //! and {TestPath}fileman\Test1.txt as first parameter,
3535 //! and {TestPath}fileman\Copy\ as second parameter,
3536 //! and aSwitch = 0 as third parameter.
3537 //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
3538 //! and {TestPath}fileman\Test1.txt as first parameter,
3539 //! and {TestPath}fileman\Copy\ as second parameter,
3540 //! and aSwitch = EOverWrite as third parameter.
3541 //! @SYMTestStatus Implemented
3542 //! @SYMTestPriority Critical
3543 //! @SYMTestExpectedResults After second Copy() returns KAlreadyExists.
3544 //! @SYMTestType CIT
3545 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
3546 CREATE_OBJECT RFs RFs1
3547 CREATE_OBJECT CFileMan CFileMan1
3549 COMMAND RFs1 Connect
3550 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
3551 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
3552 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
3553 COMMAND !Error=-11 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
3554 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_EOverWrite
3555 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2141-001-Delete_command009
3556 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
3560 END_TESTCASE PBASE-F32-FileMan-PublicApi-2141
3563 START_TESTCASE PBASE-F32-FileMan-PublicApi-2142
3564 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2142
3565 //! @SYMAPI CFileMan
3566 //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
3567 //! Copy same file to the same location a three times with a different aSwitch parameter
3568 //! Uses API elements: NewL(), Copy();
3569 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
3570 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
3571 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
3572 //! and {TestPath}fileman\Test1.txt as first parameter,
3573 //! and {TestPath}fileman\Copy\ as second parameter,
3574 //! and aSwitch = 0 as third parameter,
3575 //! and iStatus as fourth parameter.
3576 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
3577 //! and {TestPath}fileman\Test1.txt as first parameter,
3578 //! and {TestPath}fileman\Copy\ as second parameter,
3579 //! and aSwitch = 0 as third parameter.
3580 //! and iStatus as fourth parameter.
3581 //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
3582 //! and {TestPath}fileman\Test1.txt as first parameter,
3583 //! and {TestPath}fileman\Copy\ as second parameter,
3584 //! and aSwitch = EOverWrite as third parameter.
3585 //! and iStatus as fourth parameter.
3586 //! @SYMTestStatus Implemented
3587 //! @SYMTestPriority Critical
3588 //! @SYMTestExpectedResults After second Copy() returns KAlreadyExists.
3589 //! @SYMTestType CIT
3590 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
3591 CREATE_OBJECT RFs RFs1
3592 CREATE_OBJECT CFileMan CFileMan1
3594 COMMAND RFs1 Connect
3595 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
3596 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
3597 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2142-001-Copy_command006
3599 COMMAND !AsyncError=-11 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2142-001-Copy_command007
3601 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2142-001-Copy_command008
3603 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2142-001-Delete_command009
3604 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
3608 END_TESTCASE PBASE-F32-FileMan-PublicApi-2142
3611 START_TESTCASE PBASE-F32-FileMan-PublicApi-2143
3612 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2143
3613 //! @SYMAPI CFileMan
3614 //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
3615 //! Move same file to the same location a three times with a different aSwitch parameter
3616 //! Uses API elements: NewL(), Move(), Copy();
3617 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
3618 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
3619 //! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
3620 //! and {TestPath}fileman\Test1.txt as first parameter,
3621 //! and {TestPath}fileman\Move\ as second parameter,
3622 //! and aSwitch = 0 as third parameter.
3623 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
3624 //! and {TestPath}fileman\Move\Test1.txt as first parameter,
3625 //! and {TestPath}fileman\ as second parameter,
3626 //! and aSwitch = EOverWrite as third parameter.
3627 //! 5.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
3628 //! and {TestPath}fileman\Test1.txt as first parameter,
3629 //! and {TestPath}fileman\Move\ as second parameter,
3630 //! and aSwitch = 0 as third parameter.
3631 //! 6.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
3632 //! and {TestPath}fileman\Test1.txt as first parameter,
3633 //! and {TestPath}fileman\Move\ as second parameter,
3634 //! and aSwitch = EOverWrite as third parameter.
3635 //! 7.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
3636 //! and {TestPath}fileman\Move\Test1.txt as first parameter,
3637 //! and {TestPath}fileman\ as second parameter,
3638 //! and aSwitch = EOverWrite as third parameter.
3639 //! @SYMTestStatus Implemented
3640 //! @SYMTestPriority Critical
3641 //! @SYMTestExpectedResults After second Move() returns KAlreadyExists.
3642 //! @SYMTestType CIT
3643 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
3644 CREATE_OBJECT RFs RFs1
3645 CREATE_OBJECT CFileMan CFileMan1
3647 COMMAND RFs1 Connect
3648 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2143-001-MkDir_command004
3649 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
3650 COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2143-001-Move_command006
3651 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2143-001-Copy_command007
3652 COMMAND !Error=-11 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2143-001-Move_command008
3653 COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2143-001-Move_command009
3654 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2143-001-Copy_command010
3655 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2143-001-Delete_command011
3656 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2143-001-RmDir_command012
3660 END_TESTCASE PBASE-F32-FileMan-PublicApi-2143
3663 START_TESTCASE PBASE-F32-FileMan-PublicApi-2144
3664 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2144
3665 //! @SYMAPI CFileMan
3666 //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
3667 //! Move same file to the same location a three times with a different aSwitch parameter
3668 //! Uses API elements: NewL(), Move(), Copy;
3669 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
3670 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
3671 //! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
3672 //! and {TestPath}fileman\Test1.txt as first parameter,
3673 //! and {TestPath}fileman\Move\ as second parameter,
3674 //! and aSwitch = 0 as third parameter,
3675 //! and iStatus as fourth parameter.
3676 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
3677 //! and {TestPath}fileman\Move\Test1.txt as first parameter,
3678 //! and {TestPath}fileman\ as second parameter,
3679 //! and aSwitch = EOverWrite as third parameter.
3680 //! 5.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
3681 //! and {TestPath}fileman\Test1.txt as first parameter,
3682 //! and {TestPath}fileman\Move\ as second parameter,
3683 //! and aSwitch = 0 as third parameter.
3684 //! and iStatus as fourth parameter.
3685 //! 6.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
3686 //! and {TestPath}fileman\Test1.txt as first parameter,
3687 //! and {TestPath}fileman\Move\ as second parameter,
3688 //! and aSwitch = EOverWrite as third parameter.
3689 //! and iStatus as fourth parameter.
3690 //! 7.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
3691 //! and {TestPath}fileman\Move\Test1.txt as first parameter,
3692 //! and {TestPath}fileman\ as second parameter,
3693 //! and aSwitch = EOverWrite as third parameter.
3694 //! @SYMTestStatus Implemented
3695 //! @SYMTestPriority Critical
3696 //! @SYMTestExpectedResults After second Move() returns KAlreadyExists.
3697 //! @SYMTestType CIT
3698 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
3699 CREATE_OBJECT RFs RFs1
3700 CREATE_OBJECT CFileMan CFileMan1
3702 COMMAND RFs1 Connect
3703 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2144-001-MkDir_command004
3704 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
3705 COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2144-001-Move_command006
3707 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2144-001-Copy_command007
3708 COMMAND !AsyncError=-11 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2144-001-Move_command008
3710 COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2144-001-Move_command009
3712 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2144-001-Copy_command010
3713 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2144-001-Delete_command011
3714 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2144-001-RmDir_command012
3718 END_TESTCASE PBASE-F32-FileMan-PublicApi-2144
3721 START_TESTCASE PBASE-F32-FileMan-PublicApi-2145
3722 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2145
3723 //! @SYMAPI CFileMan
3724 //! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
3725 //! Rename same file to the same location a three times with a different aSwitch parameter
3726 //! Uses API elements: NewL(), Rename(), Copy();
3727 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
3728 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
3729 //! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
3730 //! and {TestPath}fileman\Test1.txt as first parameter,
3731 //! and {TestPath}fileman\Rename\ as second parameter,
3732 //! and aSwitch = 0 as third parameter.
3733 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
3734 //! and {TestPath}fileman\Rename\Test1.txt as first parameter,
3735 //! and {TestPath}fileman\ as second parameter,
3736 //! and aSwitch = EOverWrite as third parameter.
3737 //! 5.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
3738 //! and {TestPath}fileman\Test1.txt as first parameter,
3739 //! and {TestPath}fileman\Rename\ as second parameter,
3740 //! and aSwitch = 0 as third parameter.
3741 //! 6.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
3742 //! and {TestPath}fileman\Test1.txt as first parameter,
3743 //! and {TestPath}fileman\Rename\ as second parameter,
3744 //! and aSwitch = EOverWrite as third parameter.
3745 //! 7.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
3746 //! and {TestPath}fileman\Rename\Test1.txt as first parameter,
3747 //! and {TestPath}fileman\ as second parameter,
3748 //! and aSwitch = EOverWrite as third parameter.
3749 //! @SYMTestStatus Implemented
3750 //! @SYMTestPriority Critical
3751 //! @SYMTestExpectedResults After second Rename() returns KAlreadyExists.
3752 //! @SYMTestType CIT
3753 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
3754 CREATE_OBJECT RFs RFs1
3755 CREATE_OBJECT CFileMan CFileMan1
3757 COMMAND RFs1 Connect
3758 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2145-001-MkDir_command004
3759 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
3760 COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2145-001-Rename_command006
3761 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2145-001-Copy_command007
3762 COMMAND !Error=-11 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2145-001-Rename_command008
3763 COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2145-001-Rename_command009
3764 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2145-001-Copy_command010
3765 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2145-001-Delete_command011
3766 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2145-001-RmDir_command012
3770 END_TESTCASE PBASE-F32-FileMan-PublicApi-2145
3773 START_TESTCASE PBASE-F32-FileMan-PublicApi-2146
3774 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2146
3775 //! @SYMAPI CFileMan
3776 //! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
3777 //! Rename same file to the same location a three times with a different aSwitch parameter
3778 //! Uses API elements: NewL(), Rename();
3779 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
3780 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
3781 //! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
3782 //! and {TestPath}fileman\Test1.txt as first parameter,
3783 //! and {TestPath}fileman\Rename\ as second parameter,
3784 //! and aSwitch = 0 as third parameter,
3785 //! and iStatus as fourth parameter.
3786 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
3787 //! and {TestPath}fileman\Rename\Test1.txt as first parameter,
3788 //! and {TestPath}fileman\ as second parameter,
3789 //! and aSwitch = EOverWrite as third parameter.
3790 //! 5.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
3791 //! and {TestPath}fileman\Test1.txt as first parameter,
3792 //! and {TestPath}fileman\Rename\ as second parameter,
3793 //! and aSwitch = 0 as third parameter.
3794 //! and iStatus as fourth parameter.
3795 //! 6.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
3796 //! and {TestPath}fileman\Test1.txt as first parameter,
3797 //! and {TestPath}fileman\Rename\ as second parameter,
3798 //! and aSwitch = EOverWrite as third parameter.
3799 //! and iStatus as fourth parameter.
3800 //! 7.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
3801 //! and {TestPath}fileman\Rename\Test1.txt as first parameter,
3802 //! and {TestPath}fileman\ as second parameter,
3803 //! and aSwitch = EOverWrite as third parameter.
3804 //! @SYMTestStatus Implemented
3805 //! @SYMTestPriority Critical
3806 //! @SYMTestExpectedResults After second Rename() returns KAlreadyExists.
3807 //! @SYMTestType CIT
3808 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
3809 CREATE_OBJECT RFs RFs1
3810 CREATE_OBJECT CFileMan CFileMan1
3812 COMMAND RFs1 Connect
3813 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2146-001-MkDir_command004
3814 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
3815 COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2146-001-Rename_command006
3817 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2146-001-Copy_command007
3818 COMMAND !AsyncError=-11 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2146-001-Rename_command008
3820 COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2146-001-Rename_command009
3822 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2146-001-Copy_command010
3823 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2146-001-Delete_command011
3824 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2146-001-RmDir_command012
3828 END_TESTCASE PBASE-F32-FileMan-PublicApi-2146
3831 START_TESTCASE PBASE-F32-FileMan-PublicApi-2147
3832 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2147
3833 //! @SYMAPI CFileMan
3834 //! @SYMTestCaseDesc Function Delete(const TDesC &aName, TUint aSwitch=0) test.
3835 //! Call synchronous delete with KNullDesC argument.
3836 //! Uses API elements: NewL(), Copy(), Delete();
3837 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
3838 //! 2.Call RFs::SetSession() set session path to "{TestPath}fileman\Copy\"
3839 //! 3.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
3840 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus),
3841 //! and {TestPath}fileman\*.txt as first parameter,
3842 //! and {TestPath}fileman\Copy\ as second parameter,
3843 //! and CFileMan::EOverWrite as third parameter.
3844 //! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
3845 //! and KNullDesC as parameter
3846 //! @SYMTestStatus Implemented
3847 //! @SYMTestPriority Critical
3848 //! @SYMTestExpectedResults All files deleted from folder "Copy".
3849 //! @SYMTestType CIT
3850 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
3851 CREATE_OBJECT RFs RFs1
3852 CREATE_OBJECT CFileMan CFileMan1
3854 COMMAND RFs1 Connect
3855 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
3856 COMMAND RFs1 SetSessionPath PBASE-F32-FileMan-PublicApi-2147-001-SetSessionPath_command005
3857 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
3858 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2147-001-Copy_command007
3859 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2147-001-Delete_command008
3860 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
3864 END_TESTCASE PBASE-F32-FileMan-PublicApi-2147
3867 START_TESTCASE PBASE-F32-FileMan-PublicApi-2148
3868 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2148
3869 //! @SYMAPI CFileMan
3870 //! @SYMTestCaseDesc Function Delete(const TDesC &aName, TUint aSwitch=0, TRequestStatus &aStatus) test.
3871 //! Call asynchronous delete with KNullDesC argument.
3872 //! Uses API elements: NewL(), Copy(), Delete();
3873 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
3874 //! 2.Call RFs::SetSession() set session path to "{TestPath}fileman\Copy\"
3875 //! 3.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
3876 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus),
3877 //! and {TestPath}fileman\*.txt as first parameter,
3878 //! and {TestPath}fileman\Copy\ as second parameter,
3879 //! and CFileMan::EOverWrite as third parameter.
3880 //! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
3881 //! and KNullDesC as parameter
3882 //! and iStatus as fourth parameter.
3883 //! @SYMTestStatus Implemented
3884 //! @SYMTestPriority Critical
3885 //! @SYMTestExpectedResults All files deleted from folder "Copy".
3886 //! @SYMTestType CIT
3887 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
3888 CREATE_OBJECT RFs RFs1
3889 CREATE_OBJECT CFileMan CFileMan1
3891 COMMAND RFs1 Connect
3892 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
3893 COMMAND RFs1 SetSessionPath PBASE-F32-FileMan-PublicApi-2148-001-SetSessionPath_command005
3894 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
3895 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2148-001-Copy_command007
3896 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2148-001-Delete_command008
3898 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
3902 END_TESTCASE PBASE-F32-FileMan-PublicApi-2148
3905 START_TESTCASE PBASE-F32-FileMan-PublicApi-2149
3906 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2149
3907 //! @SYMAPI CFileMan
3908 //! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName) test.
3909 //! Delete newly created folder with sub folders.
3910 //! Uses API elements: NewL(), RmDir();
3911 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
3912 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
3913 //! 3.Call CFileMan::RmDir(const TDesC &aDirName),
3914 //! and {TestPath}fileman\Copy\ as parameter.
3915 //! 4.Check that folder was successfully deleted with sub folders.
3916 //! @SYMTestStatus Implemented
3917 //! @SYMTestPriority Critical
3918 //! @SYMTestExpectedResults All sub folders and specified directory deleted.
3919 //! @SYMTestType CIT
3920 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
3921 CREATE_OBJECT RFs RFs1
3922 CREATE_OBJECT RDir RDir1
3923 CREATE_OBJECT CFileMan CFileMan1
3925 COMMAND RFs1 Connect
3926 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
3927 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2149-001-MkDir_command005
3928 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2149-001-MkDir_command006
3930 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
3931 COMMAND CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2149-001-RmDir_command008
3932 COMMAND !Error=-12 RDir1 Open PBASE-F32-FileMan-PublicApi-2149-001-Open_command009
3937 END_TESTCASE PBASE-F32-FileMan-PublicApi-2149
3940 START_TESTCASE PBASE-F32-FileMan-PublicApi-2150
3941 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2150
3942 //! @SYMAPI CFileMan
3943 //! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName, TRequestStatus &aStatus) test.
3944 //! Delete newly created folder with sub folders asynchronously.
3945 //! Uses API elements: NewL(), RmDir();
3946 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
3947 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
3948 //! 3.Call CFileMan::RmDir(const TDesC &aDirName, TRequestStatus &aStatus),
3949 //! and {TestPath}fileman\Copy\ as parameter,
3950 //! and iStatus as second parameter.
3951 //! @SYMTestStatus Implemented
3952 //! @SYMTestPriority Critical
3953 //! @SYMTestExpectedResults All sub folders and specified directory deleted.
3954 //! @SYMTestType CIT
3955 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
3956 CREATE_OBJECT RFs RFs1
3957 CREATE_OBJECT RDir RDir1
3958 CREATE_OBJECT CFileMan CFileMan1
3960 COMMAND RFs1 Connect
3961 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
3962 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2150-001-MkDir_command005
3963 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2150-001-MkDir_command006
3965 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
3966 COMMAND CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2150-001-RmDir_command008
3968 COMMAND !Error=-12 RDir1 Open PBASE-F32-FileMan-PublicApi-2150-001-Open_command009
3973 END_TESTCASE PBASE-F32-FileMan-PublicApi-2150
3975 START_TESTCASE PBASE-F32-FileMan-PublicApi-2151
3976 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2151
3977 //! @SYMAPI CFileMan
3978 //! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName) test.
3979 //! Delete folder in which one file is readonly.
3980 //! Uses API elements: NewL(), RmDir(), Copy(), Attribs;
3981 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
3982 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
3983 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
3984 //! and {TestPath}fileman\Test1.txt as first parameter,
3985 //! and {TestPath}fileman\Copy\ as second parameter,
3986 //! and aSwitch=0 as third parameter.
3987 //! 4.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
3988 //! and {TestPath}fileman\Test1.txt as first parameter,
3989 //! and KEntryAttReadOnly as second parameter,
3990 //! and KEntryAttNormal as third parameter,
3991 //! and TTime(0) as fourth parameter,
3992 //! and CFileMan::ERecurse as fifth parameter.
3993 //! 5.Call CFileMan::RmDir(const TDesC &aDirName),
3994 //! and {TestPath}fileman\Copy\ as parameter.
3995 //! 6.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
3996 //! and {TestPath}fileman\Test1.txt as first parameter,
3997 //! and KEntryAttNormal as second parameter,
3998 //! and KEntryAttReadOnly as third parameter,
3999 //! and TTime(0) as fourth parameter,
4000 //! and CFileMan::ERecurse as fifth parameter.
4001 //! 7.Call CFileMan::RmDir(const TDesC &aDirName),
4002 //! and {TestPath}fileman\Copy\ as parameter.
4003 //! @SYMTestStatus Implemented
4004 //! @SYMTestPriority Critical
4005 //! @SYMTestExpectedResults RmDir() return KErrInUse.
4006 //! @SYMTestType CIT
4007 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
4008 CREATE_OBJECT RFs RFs1
4009 CREATE_OBJECT CFileMan CFileMan1
4011 COMMAND RFs1 Connect
4012 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
4013 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
4014 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
4015 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2151-001-Attribs_command007
4016 COMMAND !Error=-14 CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2151-001-RmDir_command008
4017 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2151-001-Attribs_command009
4018 COMMAND CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2151-001-RmDir_command010
4022 END_TESTCASE PBASE-F32-FileMan-PublicApi-2151
4025 START_TESTCASE PBASE-F32-FileMan-PublicApi-2152
4026 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2152
4027 //! @SYMAPI CFileMan
4028 //! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName, TRequestStatus &aStatus) test.
4029 //! Delete folder in which one file is readonly.
4030 //! Uses API elements: NewL(), RmDir(), Copy(), Attribs;
4031 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
4032 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
4033 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
4034 //! and {TestPath}fileman\Test1.txt as first parameter,
4035 //! and {TestPath}fileman\Copy\ as second parameter,
4036 //! and aSwitch=0 as third parameter.
4037 //! 4.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
4038 //! and {TestPath}fileman\Test1.txt as first parameter,
4039 //! and KEntryAttReadOnly as second parameter,
4040 //! and KEntryAttNormal as third parameter,
4041 //! and TTime(0) as fourth parameter,
4042 //! and CFileMan::ERecurse as fifth parameter.
4043 //! 5.Call CFileMan::RmDir(const TDesC &aDirName, TRequestStatus &aStatus),
4044 //! and {TestPath}fileman\Copy\ as parameter.
4045 //! and iStatus as second parameter.
4046 //! 6.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
4047 //! and {TestPath}fileman\Test1.txt as first parameter,
4048 //! and KEntryAttNormal as second parameter,
4049 //! and KEntryAttReadOnly as third parameter,
4050 //! and TTime(0) as fourth parameter,
4051 //! and CFileMan::ERecurse as fifth parameter.
4052 //! 7.Call CFileMan::RmDir(const TDesC &aDirName, TRequestStatus &aStatus),
4053 //! and {TestPath}fileman\Copy\ as parameter.
4054 //! and iStatus as second parameter.
4055 //! @SYMTestStatus Implemented
4056 //! @SYMTestPriority Critical
4057 //! @SYMTestExpectedResults RmDir() return KErrInUse.
4058 //! @SYMTestType CIT
4059 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
4060 CREATE_OBJECT RFs RFs1
4061 CREATE_OBJECT CFileMan CFileMan1
4063 COMMAND RFs1 Connect
4064 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
4065 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
4066 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
4067 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2152-001-Attribs_command007
4068 COMMAND !AsyncError=-14 CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2152-001-RmDir_command008
4070 COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2152-001-Attribs_command009
4071 COMMAND CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2152-001-RmDir_command010
4076 END_TESTCASE PBASE-F32-FileMan-PublicApi-2152
4079 START_TESTCASE PBASE-F32-FileMan-PublicApi-2153
4080 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2153
4081 //! @SYMAPI CFileMan
4082 //! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName) test.
4083 //! Synchronously Delete folder in which one file is opened.
4084 //! Uses API elements: NewL(), RmDir(), Copy();
4085 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
4086 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
4087 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
4088 //! and {TestPath}fileman\Test1.txt as first parameter,
4089 //! and {TestPath}fileman\Copy\ as second parameter,
4090 //! and aSwitch=0 as third parameter.
4091 //! 4.Open File in directory which will be deleted.
4092 //! 5.Call CFileMan::RmDir(const TDesC &aDirName),
4093 //! and {TestPath}fileman\Copy\ as parameter.
4094 //! 6.Close opened file.
4095 //! 7.Call CFileMan::RmDir(const TDesC &aDirName),
4096 //! and {TestPath}fileman\Copy\ as parameter.
4097 //! @SYMTestStatus Implemented
4098 //! @SYMTestPriority Critical
4099 //! @SYMTestExpectedResults RmDir() return KErrInUse.
4100 //! @SYMTestType CIT
4101 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
4102 CREATE_OBJECT RFs RFs1
4103 CREATE_OBJECT RFile RFile1
4104 CREATE_OBJECT CFileMan CFileMan1
4106 COMMAND RFs1 Connect
4107 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
4109 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
4110 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
4111 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2153-001-Open_command007
4112 COMMAND !Error=-14 CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2153-001-RmDir_command008
4113 COMMAND RFile1 Close
4114 COMMAND CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2153-001-RmDir_command010
4119 END_TESTCASE PBASE-F32-FileMan-PublicApi-2153
4122 START_TESTCASE PBASE-F32-FileMan-PublicApi-2154
4123 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2154
4124 //! @SYMAPI CFileMan
4125 //! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName, TRequestStatus &aStatus) test.
4126 //! Asynchronously Delete folder in which one file is opened.
4127 //! Uses API elements: NewL(), RmDir(), Copy();
4128 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
4129 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
4130 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
4131 //! and {TestPath}fileman\Test1.txt as first parameter,
4132 //! and {TestPath}fileman\Copy\ as second parameter,
4133 //! and aSwitch=0 as third parameter.
4134 //! 4.Open File in directory which will be deleted.
4135 //! 5.Call CFileMan::RmDir(const TDesC &aDirName, TRequestStatus &aStatus),
4136 //! and {TestPath}fileman\Copy\ as parameter.
4137 //! and iStatus as second parameter.
4138 //! 6.Close opened file.
4139 //! 7.Call CFileMan::RmDir(const TDesC &aDirName, TRequestStatus &aStatus),
4140 //! and {TestPath}fileman\Copy\ as parameter.
4141 //! and iStatus as second parameter.
4142 //! @SYMTestStatus Implemented
4143 //! @SYMTestPriority Critical
4144 //! @SYMTestExpectedResults RmDir() return KErrInUse.
4145 //! @SYMTestType CIT
4146 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
4147 CREATE_OBJECT RFs RFs1
4148 CREATE_OBJECT RFile RFile1
4149 CREATE_OBJECT CFileMan CFileMan1
4151 COMMAND RFs1 Connect
4152 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
4154 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
4155 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
4156 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2154-001-Open_command007
4157 COMMAND !AsyncError=-14 CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2154-001-RmDir_command008
4159 COMMAND RFile1 Close
4160 COMMAND CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2154-001-RmDir_command010
4166 END_TESTCASE PBASE-F32-FileMan-PublicApi-2154
4168 START_TESTCASE PBASE-F32-FileMan-PublicApi-2155
4169 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2155
4170 //! @SYMAPI CFileBase
4171 //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
4172 //! Copy files to folder where alredy exists one file from list of copied files.
4173 //! Uses API elements: NewL(), SetObserver(), Copy(), Delete();
4174 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
4175 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
4176 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4177 //! and {TestPath}fileman\Test1.txt as first parameter,
4178 //! and {TestPath}fileman\Copy\ as second parameter,
4180 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4181 //! and {TestPath}fileman\ as first parameter,
4182 //! and {TestPath}fileman\Copy\ as second parameter,
4184 //! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
4185 //! and {TestPath}fileman\Copy\ as first parameter,
4186 //! and aSwitch=ERecurse.
4187 //! @SYMTestStatus Implemented
4188 //! @SYMTestPriority Critical
4189 //! @SYMTestExpectedResults Copy() return KErrAlreadyExists when trying to copy Test1.txt.
4190 //! @SYMTestType CIT
4191 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
4192 CREATE_OBJECT RFs RFs1
4193 CREATE_OBJECT CFileMan CFileMan1
4195 COMMAND RFs1 Connect
4196 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
4197 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
4198 COMMAND CFileMan1 SetObserver
4199 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
4200 COMMAND !Error=-11 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2155-001-Copy_command003
4201 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2155-001-Delete_command004
4202 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
4206 END_TESTCASE PBASE-F32-FileMan-PublicApi-2155
4209 START_TESTCASE PBASE-F32-FileMan-PublicApi-2156
4210 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2156
4211 //! @SYMAPI CFileBase
4212 //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
4213 //! Move files to folder where alredy exists one file from list of moved files.
4214 //! Uses API elements: NewL(), SetObserver(), Copy(), Move(), Delete();
4215 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
4216 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
4217 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4218 //! and {TestPath}fileman\ as first parameter,
4219 //! and {TestPath}fileman\Copy\ as second parameter,
4221 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4222 //! and {TestPath}fileman\Test1.txt as first parameter,
4223 //! and {TestPath}fileman\Copy1\ as second parameter,
4225 //! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4226 //! and {TestPath}fileman\Copy\ as first parameter,
4227 //! and {TestPath}fileman\Copy1\ as second parameter,
4229 //! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
4230 //! and {TestPath}fileman\Copy1\ as first parameter,
4231 //! and aSwitch=ERecurse.
4232 //! @SYMTestStatus Implemented
4233 //! @SYMTestPriority Critical
4234 //! @SYMTestExpectedResults Move() return KErrAlreadyExists when trying to copy Test1.txt.
4235 //! @SYMTestType CIT
4236 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
4237 CREATE_OBJECT RFs RFs1
4238 CREATE_OBJECT CFileMan CFileMan1
4240 COMMAND RFs1 Connect
4241 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
4242 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2156-001-MkDir_command002
4243 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
4244 COMMAND CFileMan1 SetObserver
4245 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2156-001-Copy_command003
4246 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2156-001-Copy_command004
4247 COMMAND !Error=-11 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2156-001-Move_command005
4248 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2156-001-Delete_command006
4249 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2156-001-Delete_command007
4250 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2156-001-RmDir_command008
4251 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
4255 END_TESTCASE PBASE-F32-FileMan-PublicApi-2156
4258 START_TESTCASE PBASE-F32-FileMan-PublicApi-2157
4259 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2157
4260 //! @SYMAPI CFileBase
4261 //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
4262 //! Copy files to folder where alredy exists one file from list of copied files.
4263 //! Uses API elements: NewL(), SetObserver(), Copy(), Delete();
4264 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
4265 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
4266 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4267 //! and {TestPath}fileman\Test1.txt as first parameter,
4268 //! and {TestPath}fileman\Copy\ as second parameter,
4270 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4271 //! and {TestPath}fileman\ as first parameter,
4272 //! and {TestPath}fileman\Copy\ as second parameter,
4275 //! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
4276 //! and {TestPath}fileman\Copy\ as first parameter,
4277 //! and aSwitch=ERecurse.
4278 //! @SYMTestStatus Implemented
4279 //! @SYMTestPriority Critical
4280 //! @SYMTestExpectedResults Copy() return KErrAlreadyExists when trying to copy Test1.txt.
4281 //! @SYMTestType CIT
4282 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
4283 CREATE_OBJECT RFs RFs1
4284 CREATE_OBJECT CFileMan CFileMan1
4286 COMMAND RFs1 Connect
4287 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
4288 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
4289 COMMAND CFileMan1 SetObserver
4290 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
4291 COMMAND !AsyncError=-11 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2157-001-Copy_command003
4296 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
4297 CREATE_OBJECT RFs RFs1
4298 CREATE_OBJECT CFileMan CFileMan1
4300 COMMAND RFs1 Connect
4301 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
4302 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2157-001-Delete_command004
4303 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
4307 END_TESTCASE PBASE-F32-FileMan-PublicApi-2157
4310 START_TESTCASE PBASE-F32-FileMan-PublicApi-2158
4311 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2158
4312 //! @SYMAPI CFileBase
4313 //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
4314 //! Move files to folder where alredy exists one file from list of moved files.
4315 //! Uses API elements: NewL(), SetObserver(), Copy(), Move(), Delete();
4316 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
4317 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
4318 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4319 //! and {TestPath}fileman\ as first parameter,
4320 //! and {TestPath}fileman\Copy\ as second parameter,
4322 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4323 //! and {TestPath}fileman\Test1.txt as first parameter,
4324 //! and {TestPath}fileman\Copy1\ as second parameter,
4326 //! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4327 //! and {TestPath}fileman\Copy\ as first parameter,
4328 //! and {TestPath}fileman\Copy1\ as second parameter,
4331 //! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
4332 //! and {TestPath}fileman\Copy1\ as first parameter,
4333 //! and aSwitch=ERecurse.
4334 //! @SYMTestStatus Implemented
4335 //! @SYMTestPriority Critical
4336 //! @SYMTestExpectedResults Move() return KErrAlreadyExists when trying to copy Test1.txt.
4337 //! @SYMTestType CIT
4338 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
4339 CREATE_OBJECT RFs RFs1
4340 CREATE_OBJECT CFileMan CFileMan1
4342 COMMAND RFs1 Connect
4343 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
4344 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2158-001-MkDir_command002
4345 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
4346 COMMAND CFileMan1 SetObserver
4347 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2158-001-Copy_command003
4348 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2158-001-Copy_command004
4349 COMMAND !AsyncError=-11 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2158-001-Move_command005
4354 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
4355 CREATE_OBJECT RFs RFs1
4356 CREATE_OBJECT CFileMan CFileMan1
4358 COMMAND RFs1 Connect
4359 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
4360 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2158-001-Delete_command006
4361 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2158-001-Delete_command007
4362 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2158-001-RmDir_command008
4363 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
4367 END_TESTCASE PBASE-F32-FileMan-PublicApi-2158
4370 START_TESTCASE PBASE-F32-FileMan-PublicApi-2159
4371 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2159
4372 //! @SYMAPI CFileBase
4373 //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
4374 //! Synchronously try to move opened file.
4375 //! Uses API elements: NewL(), Copy(), Delete();
4376 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
4377 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
4378 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4379 //! and {TestPath}fileman\Test1.txt as first parameter,
4380 //! and {TestPath}fileman\Copy\Test1.txt as second parameter.
4381 //! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4382 //! and {TestPath}fileman\Copy as first parameter,
4383 //! and {TestPath}fileman\Copy1\ as second parameter,
4384 //! and aSwitch = ERecurse.
4385 //! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
4386 //! and {TestPath}fileman\Copy\* as parameter.
4387 //! @SYMTestStatus Implemented
4388 //! @SYMTestPriority Critical
4389 //! @SYMTestExpectedResults Move() return KErrInUse.
4390 //! @SYMTestType CIT
4391 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
4392 CREATE_OBJECT RFs RFs1
4393 CREATE_OBJECT RFile RFile1
4394 CREATE_OBJECT CFileMan CFileMan1
4396 COMMAND RFs1 Connect
4397 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
4399 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
4400 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_EOverWrite
4401 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2159-001-Open_command004
4402 COMMAND !Error=-14 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2159-001-Move_command005
4403 COMMAND RFile1 Close
4404 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2159-001-Delete_command006
4405 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
4410 END_TESTCASE PBASE-F32-FileMan-PublicApi-2159
4412 START_TESTCASE PBASE-F32-FileMan-PublicApi-2160
4413 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2160
4414 //! @SYMAPI CFileBase
4415 //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
4416 //! Asynchronously try to move opened file.
4417 //! Uses API elements: NewL(), Copy(), Delete();
4418 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
4419 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
4420 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4421 //! and {TestPath}fileman\Test1.txt as first parameter,
4422 //! and {TestPath}fileman\Copy\Test1.txt as second parameter.
4423 //! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
4424 //! and {TestPath}fileman\Copy as first parameter,
4425 //! and {TestPath}fileman\Copy1\ as second parameter,
4426 //! and aSwitch = ERecurse.
4428 //! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
4429 //! and {TestPath}fileman\Copy\* as parameter.
4430 //! @SYMTestStatus Implemented
4431 //! @SYMTestPriority Critical
4432 //! @SYMTestExpectedResults Move() return KErrInUse.
4433 //! @SYMTestType CIT
4434 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
4435 CREATE_OBJECT RFs RFs1
4436 CREATE_OBJECT RFile RFile1
4437 CREATE_OBJECT CFileMan CFileMan1
4439 COMMAND RFs1 Connect
4440 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
4442 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
4443 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_EOverWrite
4444 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2160-001-Open_command004
4445 COMMAND !AsyncError=-14 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2160-001-Move_command005
4447 COMMAND RFile1 Close
4448 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2160-001-Delete_command006
4449 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
4454 END_TESTCASE PBASE-F32-FileMan-PublicApi-2160
4457 START_TESTCASE PBASE-F32-FileMan-PublicApi-2161
4458 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2161
4459 //! @SYMAPI CFileBase
4460 //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
4461 //! Call asynchronous Copy() 3 times for one file at one time.
4462 //! Uses API elements: NewL(), Copy(), Delete();
4463 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
4464 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
4465 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
4466 //! and {TestPath}fileman\Test1.txt as first parameter,
4467 //! and {TestPath}fileman\Copy\Test1.txt as second parameter,
4468 //! and aSwitch = 0,
4470 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
4471 //! and {TestPath}fileman\Test1.txt as first parameter,
4472 //! and {TestPath}fileman\Copy\Test1.txt as second parameter.
4473 //! and aSwitch = 0,
4475 //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
4476 //! and {TestPath}fileman\Test1.txt as first parameter,
4477 //! and {TestPath}fileman\Copy\Test1.txt as second parameter.
4478 //! and aSwitch = 0,
4480 //! 6.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
4481 //! and {TestPath}fileman\Copy\* as parameter.
4482 //! @SYMTestStatus Implemented
4483 //! @SYMTestPriority Critical
4484 //! @SYMTestExpectedResults Second and third copy calls return KErrAlreadyExists.
4485 //! @SYMTestType CIT
4486 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
4487 CREATE_OBJECT RFs RFs1
4488 CREATE_OBJECT CFileMan CFileMan1
4490 COMMAND RFs1 Connect
4491 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
4492 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
4493 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2161-001-Copy_command002
4494 COMMAND !Error=-14 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2161-001-Copy_command002
4495 COMMAND !Error=-14 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2161-001-Copy_command002
4497 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2161-001-Delete_command003
4498 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
4502 END_TESTCASE PBASE-F32-FileMan-PublicApi-2161
4505 START_TESTCASE PBASE-F32-FileMan-PublicApi-2162
4506 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2162
4507 //! @SYMAPI CFileBase
4508 //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
4509 //! Call asynchronous Move() 3 times for one file at one time.
4510 //! Uses API elements: NewL(), Copy(), Move(), Delete();
4511 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
4512 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
4513 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4514 //! and {TestPath}fileman\Test1.txt as first parameter,
4515 //! and {TestPath}fileman\Copy\Test1.txt as second parameter,
4516 //! and aSwitch = 0.
4517 //! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
4518 //! and {TestPath}fileman\Copy\Test1.txt as first parameter,
4519 //! and {TestPath}fileman\Test\Test1.txt as second parameter.
4520 //! and aSwitch = 0,
4522 //! 5.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
4523 //! and {TestPath}fileman\Copy\Test1.txt as first parameter,
4524 //! and {TestPath}fileman\Test\Test1.txt as second parameter.
4525 //! and aSwitch = 0,
4527 //! 6.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
4528 //! and {TestPath}fileman\Copy\Test1.txt as first parameter,
4529 //! and {TestPath}fileman\Test\Test1.txt as second parameter.
4530 //! and aSwitch = 0,
4532 //! 7.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
4533 //! and {TestPath}fileman\Test\* as parameter.
4534 //! @SYMTestStatus Implemented
4535 //! @SYMTestPriority Critical
4536 //! @SYMTestExpectedResults Second and third Move calls return KErrInUse.
4537 //! @SYMTestType CIT
4538 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
4539 CREATE_OBJECT RFs RFs1
4540 CREATE_OBJECT CFileMan CFileMan1
4542 COMMAND RFs1 Connect
4543 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
4544 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir
4545 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
4546 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2162-001-Copy_command002
4547 COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2162-001-Move_command003
4548 COMMAND !Error=-14 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2162-001-Move_command003
4549 COMMAND !Error=-14 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2162-001-Move_command003
4551 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2162-001-Delete_command004
4552 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
4553 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir
4557 END_TESTCASE PBASE-F32-FileMan-PublicApi-2162
4560 START_TESTCASE PBASE-F32-FileMan-PublicApi-2163
4561 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2163
4562 //! @SYMAPI CFileBase
4563 //! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
4564 //! Call asynchronous Rename() 3 times for one file at one time.
4565 //! Uses API elements: NewL(), Copy(), Move(), Delete();
4566 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
4567 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
4568 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4569 //! and {TestPath}fileman\Test1.txt as first parameter,
4570 //! and {TestPath}fileman\Copy\Test1.txt as second parameter,
4571 //! and aSwitch = 0.
4572 //! 4.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
4573 //! and {TestPath}fileman\Copy\Test1.txt as first parameter,
4574 //! and {TestPath}fileman\Copy\Test1_new.txt as second parameter.
4575 //! and aSwitch = 0,
4577 //! 5.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
4578 //! and {TestPath}fileman\Copy\Test1.txt as first parameter,
4579 //! and {TestPath}fileman\Copy\Test1_new.txt as second parameter.
4580 //! and aSwitch = 0,
4582 //! 6.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
4583 //! and {TestPath}fileman\Copy\Test1.txt as first parameter,
4584 //! and {TestPath}fileman\Copy\Test1_new.txt as second parameter.
4585 //! and aSwitch = 0,
4587 //! 7.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
4588 //! and {TestPath}fileman\Copy\* as parameter.
4589 //! @SYMTestStatus Implemented
4590 //! @SYMTestPriority Critical
4591 //! @SYMTestExpectedResults Second and third Rename calls return KErrInUse.
4592 //! @SYMTestType CIT
4593 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
4594 CREATE_OBJECT RFs RFs1
4595 CREATE_OBJECT CFileMan CFileMan1
4597 COMMAND RFs1 Connect
4598 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
4599 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
4600 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2163-001-Copy_command002
4601 COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2163-001-Rename_command003
4602 COMMAND !Error=-14 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2163-001-Rename_command003
4603 COMMAND !Error=-14 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2163-001-Rename_command003
4605 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2163-001-Delete_command004
4606 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
4610 END_TESTCASE PBASE-F32-FileMan-PublicApi-2163
4613 START_TESTCASE PBASE-F32-FileMan-PublicApi-2166
4614 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2166
4615 //! @SYMAPI CFileBase
4616 //! @SYMTestCaseDesc Function MFileManObserver::NotifyFileManStarted() test.
4617 //! Return TControl::ECancel during synchronous Copy process for one file and check that this file wasn't copied.
4618 //! Uses API elements: NewL(), Copy(), Delete();
4619 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
4620 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
4621 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4622 //! and {TestPath}fileman\Test1.txt as first parameter,
4623 //! and {TestPath}fileman\Copy\ as second parameter,
4624 //! and aSwitch = 0.
4625 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4626 //! and {TestPath}fileman\Test2.txt as first parameter,
4627 //! and {TestPath}fileman\Copy\ as second parameter,
4628 //! and aSwitch = 0.
4629 //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4630 //! and {TestPath}fileman\Test3.txt as first parameter,
4631 //! and {TestPath}fileman\Copy\ as second parameter,
4632 //! and aSwitch = 0.
4633 //! 6.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4634 //! and {TestPath}fileman\Copy\ as first parameter,
4635 //! and {TestPath}fileman\Test\ as second parameter,
4636 //! and aSwitch = 0,
4637 //! and also set to return TCOntrol::ECancel for Test2.txt in NotifyFileManStarted.
4638 //! 7.Check that file Test2.txt wasn't copied.
4639 //! 8.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
4640 //! and {TestPath}fileman\Copy\* as parameter.
4641 //! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
4642 //! and {TestPath}fileman\Test\* as parameter.
4643 //! @SYMTestStatus Implemented
4644 //! @SYMTestPriority Critical
4645 //! @SYMTestExpectedResults File Test2.txt wasn't copied.
4646 //! @SYMTestType CIT
4647 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
4648 CREATE_OBJECT RFs RFs1
4649 CREATE_OBJECT RFile RFile1
4650 CREATE_OBJECT CFileMan CFileMan1
4652 COMMAND RFs1 Connect
4653 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
4654 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir
4656 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
4657 COMMAND CFileMan1 SetObserver
4658 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
4659 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0
4660 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0
4661 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2166-001-Copy_command002
4662 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2166-001-Open_command003
4663 COMMAND RFile1 Close
4664 COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2166-001-Open_command004
4665 COMMAND RFile1 Close
4666 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2166-001-Open_command005
4667 COMMAND RFile1 Close
4668 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2166-001-Delete_command006
4669 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2166-001-Delete_command007
4670 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
4671 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir
4676 END_TESTCASE PBASE-F32-FileMan-PublicApi-2166
4678 START_TESTCASE PBASE-F32-FileMan-PublicApi-2167
4679 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2167
4680 //! @SYMAPI CFileBase
4681 //! @SYMTestCaseDesc Function MFileManObserver::NotifyFileManStarted() test.
4682 //! Return TControl::ECancel during asynchronous Copy process for one file and check that this file wasn't copied.
4683 //! Uses API elements: NewL(), Copy(), Delete();
4684 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
4685 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
4686 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4687 //! and {TestPath}fileman\Test1.txt as first parameter,
4688 //! and {TestPath}fileman\Copy\ as second parameter,
4689 //! and aSwitch = 0.
4690 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4691 //! and {TestPath}fileman\Test2.txt as first parameter,
4692 //! and {TestPath}fileman\Copy\ as second parameter,
4693 //! and aSwitch = 0.
4694 //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4695 //! and {TestPath}fileman\Test3.txt as first parameter,
4696 //! and {TestPath}fileman\Copy\ as second parameter,
4697 //! and aSwitch = 0.
4698 //! 6.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4699 //! and {TestPath}fileman\Copy\ as first parameter,
4700 //! and {TestPath}fileman\Test\ as second parameter,
4701 //! and aSwitch = 0,
4702 //! and also set to return TCOntrol::ECancel for Test2.txt in NotifyFileManStarted.
4703 //! 7.Check that file Test2.txt wasn't copied.
4704 //! 8.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
4705 //! and {TestPath}fileman\Copy\* as parameter.
4706 //! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
4707 //! and {TestPath}fileman\Test\* as parameter.
4708 //! @SYMTestStatus Implemented
4709 //! @SYMTestPriority Critical
4710 //! @SYMTestExpectedResults File Test2.txt wasn't copied.
4711 //! @SYMTestType CIT
4712 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
4713 CREATE_OBJECT RFs RFs1
4714 CREATE_OBJECT RFile RFile1
4715 CREATE_OBJECT CFileMan CFileMan1
4717 COMMAND RFs1 Connect
4718 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
4719 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir
4721 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
4722 COMMAND CFileMan1 SetObserver
4723 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
4724 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0
4725 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0
4726 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2167-001-Copy_command002
4728 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2167-001-Open_command003
4729 COMMAND RFile1 Close
4730 COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2167-001-Open_command004
4731 COMMAND RFile1 Close
4732 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2167-001-Open_command005
4733 COMMAND RFile1 Close
4738 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
4739 CREATE_OBJECT RFs RFs1
4740 CREATE_OBJECT CFileMan CFileMan1
4742 COMMAND RFs1 Connect
4743 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
4744 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2167-001-Delete_command006
4745 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2167-001-Delete_command007
4746 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
4747 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir
4751 END_TESTCASE PBASE-F32-FileMan-PublicApi-2167
4754 START_TESTCASE PBASE-F32-FileMan-PublicApi-2168
4755 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2168
4756 //! @SYMAPI CFileBase
4757 //! @SYMTestCaseDesc Function MFileManObserver::NotifyFileManStarted() test.
4758 //! Return TControl::EAbort during synchronous Copy process for one file and check that copy process is aborted.
4759 //! Uses API elements: NewL(), Copy(), Delete();
4760 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
4761 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
4762 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4763 //! and {TestPath}fileman\Test1.txt as first parameter,
4764 //! and {TestPath}fileman\Copy\ as second parameter,
4765 //! and aSwitch = 0.
4766 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4767 //! and {TestPath}fileman\Test2.txt as first parameter,
4768 //! and {TestPath}fileman\Copy\ as second parameter,
4769 //! and aSwitch = 0.
4770 //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4771 //! and {TestPath}fileman\Test3.txt as first parameter,
4772 //! and {TestPath}fileman\Copy\ as second parameter,
4773 //! and aSwitch = 0.
4774 //! 6.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4775 //! and {TestPath}fileman\Copy\ as first parameter,
4776 //! and {TestPath}fileman\Test\ as second parameter,
4777 //! and aSwitch = 0,
4778 //! and also set to return TCOntrol::EAbort for Test2.txt in NotifyFileManStarted.
4779 //! 7.Check that only file Test1.txt was copied. If files copied in this order, Test1.txt, Test2.txt, Test3.txt
4780 //! 8.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
4781 //! and {TestPath}fileman\Copy\* as parameter.
4782 //! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
4783 //! and {TestPath}fileman\Test\* as parameter.
4784 //! @SYMTestStatus Implemented
4785 //! @SYMTestPriority Critical
4786 //! @SYMTestExpectedResults Only Test1.txt was copied. Copy returns KErrCancel.
4787 //! @SYMTestType CIT
4788 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
4789 CREATE_OBJECT RFs RFs1
4790 CREATE_OBJECT RFile RFile1
4791 CREATE_OBJECT CFileMan CFileMan1
4793 COMMAND RFs1 Connect
4794 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
4795 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir
4797 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
4798 COMMAND CFileMan1 SetObserver
4799 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
4800 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0
4801 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0
4802 COMMAND !Error=-3 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2168-001-Copy_command002
4803 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2168-001-Open_command003
4804 COMMAND RFile1 Close
4805 COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2168-001-Open_command004
4806 COMMAND RFile1 Close
4807 COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2168-001-Open_command005
4808 COMMAND RFile1 Close
4809 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2168-001-Delete_command006
4810 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2168-001-Delete_command007
4811 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
4812 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir
4817 END_TESTCASE PBASE-F32-FileMan-PublicApi-2168
4820 START_TESTCASE PBASE-F32-FileMan-PublicApi-2169
4821 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2169
4822 //! @SYMAPI CFileBase
4823 //! @SYMTestCaseDesc Function MFileManObserver::NotifyFileManStarted() test.
4824 //! Return TControl::EAbort during asynchronous Copy process for one file and check that copy process is aborted.
4825 //! Uses API elements: NewL(), Copy(), Delete();
4826 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
4827 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
4828 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4829 //! and {TestPath}fileman\Test1.txt as first parameter,
4830 //! and {TestPath}fileman\Copy\ as second parameter,
4831 //! and aSwitch = 0.
4832 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4833 //! and {TestPath}fileman\Test2.txt as first parameter,
4834 //! and {TestPath}fileman\Copy\ as second parameter,
4835 //! and aSwitch = 0.
4836 //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4837 //! and {TestPath}fileman\Test3.txt as first parameter,
4838 //! and {TestPath}fileman\Copy\ as second parameter,
4839 //! and aSwitch = 0.
4840 //! 6.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4841 //! and {TestPath}fileman\Copy\ as first parameter,
4842 //! and {TestPath}fileman\Test\ as second parameter,
4843 //! and aSwitch = 0,
4844 //! and also set to return TCOntrol::EAbort for Test2.txt in NotifyFileManStarted.
4845 //! 7.Check that only file Test1.txt was copied. If files copied in this order, Test1.txt, Test2.txt, Test3.txt
4846 //! 8.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
4847 //! and {TestPath}fileman\Copy\* as parameter.
4848 //! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
4849 //! and {TestPath}fileman\Test\* as parameter.
4850 //! @SYMTestStatus Implemented
4851 //! @SYMTestPriority Critical
4852 //! @SYMTestExpectedResults Only Test1.txt was copied. Copy returns KErrCancel.
4853 //! @SYMTestType CIT
4854 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
4855 CREATE_OBJECT RFs RFs1
4856 CREATE_OBJECT RFile RFile1
4857 CREATE_OBJECT CFileMan CFileMan1
4859 COMMAND RFs1 Connect
4860 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
4861 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir
4863 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
4864 COMMAND CFileMan1 SetObserver
4865 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
4866 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0
4867 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0
4868 COMMAND !AsyncError=-3 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2169-001-Copy_command002
4870 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2169-001-Open_command003
4871 COMMAND RFile1 Close
4872 COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2169-001-Open_command004
4873 COMMAND RFile1 Close
4874 COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2169-001-Open_command005
4875 COMMAND RFile1 Close
4880 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
4881 CREATE_OBJECT RFs RFs1
4882 CREATE_OBJECT CFileMan CFileMan1
4884 COMMAND RFs1 Connect
4885 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
4886 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2169-001-Delete_command006
4887 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2169-001-Delete_command007
4888 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
4889 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir
4893 END_TESTCASE PBASE-F32-FileMan-PublicApi-2169
4896 START_TESTCASE PBASE-F32-FileMan-PublicApi-2170
4897 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2170
4898 //! @SYMAPI CFileBase
4899 //! @SYMTestCaseDesc Function MFileManObserver::NotifyFileManOperation() test.
4900 //! Return TControl::ECancel during synchronous Copy process for one file and check that this file wasn't copied.
4901 //! Uses API elements: NewL(), Copy(), Delete();
4902 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
4903 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
4904 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4905 //! and {TestPath}fileman\Test1.txt as first parameter,
4906 //! and {TestPath}fileman\Copy\ as second parameter,
4907 //! and aSwitch = 0.
4908 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4909 //! and {TestPath}fileman\Test2.txt as first parameter,
4910 //! and {TestPath}fileman\Copy\ as second parameter,
4911 //! and aSwitch = 0.
4912 //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4913 //! and {TestPath}fileman\Test3.txt as first parameter,
4914 //! and {TestPath}fileman\Copy\ as second parameter,
4915 //! and aSwitch = 0.
4916 //! 6.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4917 //! and {TestPath}fileman\Copy\ as first parameter,
4918 //! and {TestPath}fileman\Test\ as second parameter,
4919 //! and aSwitch = 0,
4920 //! and also set to return TCOntrol::ECancel for Test2.txt in NotifyFileManOperation.
4921 //! 7.Check that file Test2.txt wasn't copied.
4922 //! 8.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
4923 //! and {TestPath}fileman\Copy\* as parameter.
4924 //! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
4925 //! and {TestPath}fileman\Test\* as parameter.
4926 //! @SYMTestStatus Implemented
4927 //! @SYMTestPriority Critical
4928 //! @SYMTestExpectedResults File Test2.txt wasn't copied.
4929 //! @SYMTestType CIT
4930 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
4931 CREATE_OBJECT RFs RFs1
4932 CREATE_OBJECT RFile RFile1
4933 CREATE_OBJECT CFileMan CFileMan1
4935 COMMAND RFs1 Connect
4936 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
4937 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir
4939 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
4940 COMMAND CFileMan1 SetObserver
4941 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
4942 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0
4943 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0
4944 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2170-001-Copy_command002
4945 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2170-001-Open_command003
4946 COMMAND RFile1 Close
4947 COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2170-001-Open_command004
4948 COMMAND RFile1 Close
4949 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2170-001-Open_command005
4950 COMMAND RFile1 Close
4951 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2170-001-Delete_command006
4952 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2170-001-Delete_command007
4953 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
4954 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir
4959 END_TESTCASE PBASE-F32-FileMan-PublicApi-2170
4962 START_TESTCASE PBASE-F32-FileMan-PublicApi-2171
4963 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2171
4964 //! @SYMAPI CFileBase
4965 //! @SYMTestCaseDesc Function MFileManObserver::NotifyFileManOperation() test.
4966 //! Return TControl::ECancel during asynchronous Copy process for one file and check that this file wasn't copied.
4967 //! Uses API elements: NewL(), Copy(), Delete();
4968 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
4969 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
4970 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4971 //! and {TestPath}fileman\Test1.txt as first parameter,
4972 //! and {TestPath}fileman\Copy\ as second parameter,
4973 //! and aSwitch = 0.
4974 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4975 //! and {TestPath}fileman\Test2.txt as first parameter,
4976 //! and {TestPath}fileman\Copy\ as second parameter,
4977 //! and aSwitch = 0.
4978 //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4979 //! and {TestPath}fileman\Test3.txt as first parameter,
4980 //! and {TestPath}fileman\Copy\ as second parameter,
4981 //! and aSwitch = 0.
4982 //! 6.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
4983 //! and {TestPath}fileman\Copy\ as first parameter,
4984 //! and {TestPath}fileman\Test\ as second parameter,
4985 //! and aSwitch = 0,
4986 //! and also set to return TCOntrol::ECancel for Test2.txt in NotifyFileManOperation.
4987 //! 7.Check that file Test2.txt wasn't copied.
4988 //! 8.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
4989 //! and {TestPath}fileman\Copy\* as parameter.
4990 //! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
4991 //! and {TestPath}fileman\Test\* as parameter.
4992 //! @SYMTestStatus Implemented
4993 //! @SYMTestPriority Critical
4994 //! @SYMTestExpectedResults File Test2.txt wasn't copied.
4995 //! @SYMTestType CIT
4996 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
4997 CREATE_OBJECT RFs RFs1
4998 CREATE_OBJECT RFile RFile1
4999 CREATE_OBJECT CFileMan CFileMan1
5001 COMMAND RFs1 Connect
5002 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
5003 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir
5005 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
5006 COMMAND CFileMan1 SetObserver
5007 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
5008 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0
5009 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0
5010 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2171-001-Copy_command002
5012 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2171-001-Open_command003
5013 COMMAND RFile1 Close
5014 COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2171-001-Open_command004
5015 COMMAND RFile1 Close
5016 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2171-001-Open_command005
5017 COMMAND RFile1 Close
5022 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
5023 CREATE_OBJECT RFs RFs1
5024 CREATE_OBJECT CFileMan CFileMan1
5026 COMMAND RFs1 Connect
5027 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
5028 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2171-001-Delete_command006
5029 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2171-001-Delete_command007
5030 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
5031 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir
5035 END_TESTCASE PBASE-F32-FileMan-PublicApi-2171
5038 START_TESTCASE PBASE-F32-FileMan-PublicApi-2172
5039 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2172
5040 //! @SYMAPI CFileBase
5041 //! @SYMTestCaseDesc Function MFileManObserver::NotifyFileManEnded() test.
5042 //! Return TControl::EAbort during synchronous Copy process for one file and check that copy process is aborted.
5043 //! Uses API elements: NewL(), Copy(), Delete();
5044 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
5045 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
5046 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
5047 //! and {TestPath}fileman\Test1.txt as first parameter,
5048 //! and {TestPath}fileman\Copy\ as second parameter,
5049 //! and aSwitch = 0.
5050 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
5051 //! and {TestPath}fileman\Test2.txt as first parameter,
5052 //! and {TestPath}fileman\Copy\ as second parameter,
5053 //! and aSwitch = 0.
5054 //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
5055 //! and {TestPath}fileman\Test3.txt as first parameter,
5056 //! and {TestPath}fileman\Copy\ as second parameter,
5057 //! and aSwitch = 0.
5058 //! 6.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
5059 //! and {TestPath}fileman\Copy\ as first parameter,
5060 //! and {TestPath}fileman\Test\ as second parameter,
5061 //! and aSwitch = 0,
5062 //! and also set to return TCOntrol::EAbort for Test1.txt in NotifyFileManEnded.
5063 //! 7.Check that only file Test1.txt was copied.
5064 //! 8.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
5065 //! and {TestPath}fileman\Copy\* as parameter.
5066 //! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
5067 //! and {TestPath}fileman\Test\* as parameter.
5068 //! @SYMTestStatus Implemented
5069 //! @SYMTestPriority Critical
5070 //! @SYMTestExpectedResults Only Test1.txt was copied.
5071 //! @SYMTestType CIT
5072 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
5073 CREATE_OBJECT RFs RFs1
5074 CREATE_OBJECT RFile RFile1
5075 CREATE_OBJECT CFileMan CFileMan1
5077 COMMAND RFs1 Connect
5078 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
5079 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir
5081 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
5082 COMMAND CFileMan1 SetObserver
5083 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
5084 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0
5085 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0
5086 COMMAND !Error=-3 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2172-001-Copy_command002
5087 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2172-001-Open_command003
5088 COMMAND RFile1 Close
5089 COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2172-001-Open_command004
5090 COMMAND RFile1 Close
5091 COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2172-001-Open_command005
5092 COMMAND RFile1 Close
5093 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2172-001-Delete_command006
5094 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2172-001-Delete_command007
5095 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
5096 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir
5101 END_TESTCASE PBASE-F32-FileMan-PublicApi-2172
5104 START_TESTCASE PBASE-F32-FileMan-PublicApi-2173
5105 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2173
5106 //! @SYMAPI CFileBase
5107 //! @SYMTestCaseDesc Function MFileManObserver::NotifyFileManEnded() test.
5108 //! Return TControl::EAbort during synchronous Copy process for one file and check that copy process is aborted.
5109 //! Uses API elements: NewL(), Copy(), Delete();
5110 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
5111 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
5112 //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
5113 //! and {TestPath}fileman\Test1.txt as first parameter,
5114 //! and {TestPath}fileman\Copy\ as second parameter,
5115 //! and aSwitch = 0.
5116 //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
5117 //! and {TestPath}fileman\Test2.txt as first parameter,
5118 //! and {TestPath}fileman\Copy\ as second parameter,
5119 //! and aSwitch = 0.
5120 //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
5121 //! and {TestPath}fileman\Test3.txt as first parameter,
5122 //! and {TestPath}fileman\Copy\ as second parameter,
5123 //! and aSwitch = 0.
5124 //! 6.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
5125 //! and {TestPath}fileman\Copy\ as first parameter,
5126 //! and {TestPath}fileman\Test\ as second parameter,
5127 //! and aSwitch = 0,
5128 //! and also set to return TCOntrol::EAbort for Test2.txt in NotifyFileManEnded.
5129 //! 7.Check that only file Test1.txt was copied.
5130 //! 8.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
5131 //! and {TestPath}fileman\Copy\* as parameter.
5132 //! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
5133 //! and {TestPath}fileman\Test\* as parameter.
5134 //! @SYMTestStatus Implemented
5135 //! @SYMTestPriority Critical
5136 //! @SYMTestExpectedResults Only Test1.txt was copied.
5137 //! @SYMTestType CIT
5138 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
5139 CREATE_OBJECT RFs RFs1
5140 CREATE_OBJECT RFile RFile1
5141 CREATE_OBJECT CFileMan CFileMan1
5143 COMMAND RFs1 Connect
5144 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
5145 COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir
5147 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
5148 COMMAND CFileMan1 SetObserver
5149 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
5150 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0
5151 COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0
5152 COMMAND !AsyncError=-3 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2173-001-Copy_command002
5154 COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2173-001-Open_command003
5155 COMMAND RFile1 Close
5156 COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2173-001-Open_command004
5157 COMMAND RFile1 Close
5158 COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2173-001-Open_command005
5159 COMMAND RFile1 Close
5164 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
5165 CREATE_OBJECT RFs RFs1
5166 CREATE_OBJECT CFileMan CFileMan1
5168 COMMAND RFs1 Connect
5169 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
5170 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2173-001-Delete_command006
5171 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2173-001-Delete_command007
5172 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
5173 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir
5177 END_TESTCASE PBASE-F32-FileMan-PublicApi-2173
5180 START_TESTCASE PBASE-F32-FileMan-PublicApi-2999
5181 //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2999
5182 //! @SYMAPI CFileMan
5183 //! @SYMTestCaseDesc Clenup the copied testdata.
5184 //! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
5185 //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
5186 //! 3.Call CFileMan::Delete() to delete all the files copied .
5187 //! @SYMTestStatus Implemented
5188 //! @SYMTestPriority Critical
5189 //! @SYMTestExpectedResults Remove the testdata copied from particular directory
5190 //! @SYMTestType CIT
5191 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
5192 CREATE_OBJECT RFs RFs1
5193 CREATE_OBJECT CFileMan CFileMan1
5195 COMMAND RFs1 Connect
5196 COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
5197 COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-Delete-Uninstall
5198 COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir-Uninstall
5202 END_TESTCASE PBASE-F32-FileMan-PublicApi-2999