os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-FileMan-PublicApi-RAM.script
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-FileMan-PublicApi-RAM.script Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,5202 @@
1.4 +//
1.5 +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +// All rights reserved.
1.7 +// This component and the accompanying materials are made available
1.8 +// under the terms of "Eclipse Public License v1.0"
1.9 +// which accompanies this distribution, and is available
1.10 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +//
1.12 +// Initial Contributors:
1.13 +// Nokia Corporation - initial contribution.
1.14 +//
1.15 +// Contributors:
1.16 +//
1.17 +// Description:
1.18 +//
1.19 +//! @file
1.20 +//! @SYMTestSuiteName pbase-f32-sfsrv-publicapi-ram
1.21 +//! @SYMScriptTestEnvironment This test script requires a basic ROM.
1.22 +//! @SYMScriptAuthor Jaanus Randveer
1.23 +//! @SYMScriptCreationDate 18/19/2007
1.24 +//! @SYMScriptDescription The test script contains API tests for the following functions of CFileMan class:
1.25 +//! CFileMan *NewL(RFs &aFs)
1.26 +//! CFileMan *NewL(RFs &aFs, MFileManObserver *anObserver)
1.27 +//! TAction CurrentAction()
1.28 +//! void GetCurrentTarget(TFileName &aFile)
1.29 +//! void GetCurrentSource(TFileName &aFile)
1.30 +//! TInt BytesTransferredByCopyStep()
1.31 +//! TInt Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.32 +//! TInt Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus)
1.33 +//! TInt Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite)
1.34 +//! TInt Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus)
1.35 +//! TInt Delete(const TDesC &aName, TUint aSwitch=0)
1.36 +//! TInt Delete(const TDesC &aName, TUint aSwitch, TRequestStatus &aStatus)
1.37 +//! TInt Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite)
1.38 +//! TInt Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus)
1.39 +//! TInt Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite)
1.40 +//! TInt Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus)
1.41 +//! TInt RmDir(const TDesC &aDirName)
1.42 +//! TInt RmDir(const TDesC &aDirName, TRequestStatus &aStatus)
1.43 +//! TInt Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches=EOverWrite)
1.44 +//! TInt Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches, TRequestStatus &aStatus)
1.45 +//! void SetObserver(MFileManObserver *anObserver)
1.46 +//! const TEntry &CurrentEntry()
1.47 +//! TPtrC AbbreviatedPath()
1.48 +//! TPtrC FullPath()
1.49 +//! TInt GetLastError()
1.50 +//! TFileManError GetMoreInfoAboutError()
1.51 +
1.52 +
1.53 +LOAD_SUITE T_SfSrv
1.54 +
1.55 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2000
1.56 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2000
1.57 +//! @SYMAPI CFileMan
1.58 +//! @SYMTestCaseDesc Setup the environent to Test CFileMan by copying the testdata.
1.59 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.60 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.61 +//! 3.Call CFileMan::Copy() to copy the testdata file required for further tests.
1.62 +//! @SYMTestStatus Implemented
1.63 +//! @SYMTestPriority Critical
1.64 +//! @SYMTestExpectedResults TestDatas copied to particular directory.
1.65 +//! @SYMTestType CIT
1.66 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.67 + CREATE_OBJECT RFs RFs1
1.68 + CREATE_OBJECT CFileMan CFileMan1
1.69 + COMMAND RFs1 new
1.70 + COMMAND RFs1 Connect
1.71 + COMMAND RFs1 MkDirAll PBASE-F32-FileMan-PublicApi-MkDirAll-Install
1.72 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.73 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy-Install
1.74 + COMMAND CFileMan1 ~
1.75 + COMMAND RFs1 ~
1.76 + END_TEST_BLOCK
1.77 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2000
1.78 +
1.79 +
1.80 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2001
1.81 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2001
1.82 +//! @SYMAPI CFileMan
1.83 +//! @SYMTestCaseDesc Constructor NewL(RFs &aFs) test.
1.84 +//! Uses API elements: NewL();
1.85 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.86 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.87 +//! @SYMTestStatus Implemented
1.88 +//! @SYMTestPriority Critical
1.89 +//! @SYMTestExpectedResults CFileMan object is not NULL.
1.90 +//! @SYMTestType CIT
1.91 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.92 + CREATE_OBJECT RFs RFs1
1.93 + CREATE_OBJECT CFileMan CFileMan1
1.94 + COMMAND RFs1 new
1.95 + COMMAND RFs1 Connect
1.96 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.97 + COMMAND CFileMan1 ~
1.98 + COMMAND RFs1 ~
1.99 + END_TEST_BLOCK
1.100 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2001
1.101 +
1.102 +
1.103 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2002
1.104 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2002
1.105 +//! @SYMAPI CFileMan
1.106 +//! @SYMTestCaseDesc Constructor NewL(RFs &aFs, MFileManObserver *anObserver) test.
1.107 +//! Uses API elements: NewL();
1.108 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.109 +//! 2.Call CFileMan::NewL(RFs &aFs, MFileManObserver *anObserver) and connected file server session as first parameter.
1.110 +//! @SYMTestStatus Implemented
1.111 +//! @SYMTestPriority Critical
1.112 +//! @SYMTestExpectedResults CFileMan object is not NULL.
1.113 +//! @SYMTestType CIT
1.114 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.115 + CREATE_OBJECT RFs RFs1
1.116 + CREATE_OBJECT CFileMan CFileMan1
1.117 + COMMAND RFs1 new
1.118 + COMMAND RFs1 Connect
1.119 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-2002-001-NewL_command004
1.120 + COMMAND CFileMan1 ~
1.121 + COMMAND RFs1 ~
1.122 + END_TEST_BLOCK
1.123 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2002
1.124 +
1.125 +
1.126 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2003
1.127 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2003
1.128 +//! @SYMAPI CFileMan
1.129 +//! @SYMTestCaseDesc Function CurrentAction() test.
1.130 +//! Gets action during copy process.
1.131 +//! Uses API elements: NewL(), CurrentAction();
1.132 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.133 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.134 +//! 3.Call CFileMan::SetObserver().
1.135 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
1.136 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.137 +//! and {TestPath}fileman\Copy\ as second parameter.
1.138 +//! 5.Call CFileMan::CurrentAction().
1.139 +//! @SYMTestStatus Implemented
1.140 +//! @SYMTestPriority Critical
1.141 +//! @SYMTestExpectedResults CurrentAction() returns ECopy.
1.142 +//! @SYMTestType CIT
1.143 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.144 + CREATE_OBJECT RFs RFs1
1.145 + CREATE_OBJECT CFileMan CFileMan1
1.146 + COMMAND RFs1 new
1.147 + COMMAND RFs1 Connect
1.148 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.149 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.150 + COMMAND CFileMan1 SetObserver
1.151 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite
1.152 + COMMAND CFileMan1 CurrentAction PBASE-F32-FileMan-PublicApi-2003-001-CurrentAction_command008
1.153 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2003-001-Delete_command009
1.154 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.155 + COMMAND CFileMan1 ~
1.156 + COMMAND RFs1 ~
1.157 + END_TEST_BLOCK
1.158 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2003
1.159 +
1.160 +
1.161 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2004
1.162 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2004
1.163 +//! @SYMAPI CFileMan
1.164 +//! @SYMTestCaseDesc Function GetCurrentTarget(TFileName &aFile) test.
1.165 +//! Gets file target path during copy process.
1.166 +//! Uses API elements: NewL(), GetCurrentTarget(), SetObserver(), Copy();
1.167 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.168 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.169 +//! 3.Call CFileMan::SetObserver().
1.170 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
1.171 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.172 +//! and {TestPath}fileman\Copy\ as second parameter.
1.173 +//! 5.Call CFileMan::GetCurrentTarget(TFileName &aFile).
1.174 +//! @SYMTestStatus Implemented
1.175 +//! @SYMTestPriority Critical
1.176 +//! @SYMTestExpectedResults GetCurrentTarget() returns {TestPath}fileman\Copy\Test3.txt.
1.177 +//! @SYMTestType CIT
1.178 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.179 + CREATE_OBJECT RFs RFs1
1.180 + CREATE_OBJECT CFileMan CFileMan1
1.181 + COMMAND RFs1 new
1.182 + COMMAND RFs1 Connect
1.183 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.184 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.185 + COMMAND CFileMan1 SetObserver
1.186 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite
1.187 + COMMAND CFileMan1 GetCurrentTarget PBASE-F32-FileMan-PublicApi-2004-001-GetCurrentTarget_command008
1.188 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2004-001-Delete_command009
1.189 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.190 + COMMAND CFileMan1 ~
1.191 + COMMAND RFs1 ~
1.192 + END_TEST_BLOCK
1.193 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2004
1.194 +
1.195 +
1.196 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2005
1.197 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2005
1.198 +//! @SYMAPI CFileMan
1.199 +//! @SYMTestCaseDesc Function GetCurrentSource(TFileName &aFile) test.
1.200 +//! Gets file source path during copy process.
1.201 +//! Uses API elements: NewL(), GetCurrentSource(), SetObserver(), Copy();
1.202 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.203 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.204 +//! 3.Call CFileMan::SetObserver().
1.205 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
1.206 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.207 +//! and {TestPath}fileman\Copy\ as second parameter.
1.208 +//! 5.Call CFileMan::GetCurrentSource(TFileName &aFile).
1.209 +//! @SYMTestStatus Implemented
1.210 +//! @SYMTestPriority Critical
1.211 +//! @SYMTestExpectedResults GetCurrentSource() returns {TestPath}fileman\Test3.txt.
1.212 +//! @SYMTestType CIT
1.213 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.214 + CREATE_OBJECT RFs RFs1
1.215 + CREATE_OBJECT CFileMan CFileMan1
1.216 + COMMAND RFs1 new
1.217 + COMMAND RFs1 Connect
1.218 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.219 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.220 + COMMAND CFileMan1 SetObserver
1.221 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite
1.222 + COMMAND CFileMan1 GetCurrentSource PBASE-F32-FileMan-PublicApi-2005-001-GetCurrentSource_command008
1.223 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2005-001-Delete_command009
1.224 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.225 + COMMAND CFileMan1 ~
1.226 + COMMAND RFs1 ~
1.227 + END_TEST_BLOCK
1.228 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2005
1.229 +
1.230 +
1.231 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2006
1.232 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2006
1.233 +//! @SYMAPI CFileMan
1.234 +//! @SYMTestCaseDesc Function BytesTransferredByCopyStep() test.
1.235 +//! Gets the number of bytes transferred during a copy process.
1.236 +//! Uses API elements: NewL(), SetObserver(), BytesTransferredByCopyStep(), Copy();
1.237 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.238 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.239 +//! 3.Call CFileMan::SetObserver().
1.240 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
1.241 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.242 +//! and {TestPath}fileman\Copy\ as second parameter.
1.243 +//! 5.Call CFileMan::BytesTransferredByCopyStep().
1.244 +//! @SYMTestStatus Implemented
1.245 +//! @SYMTestPriority Critical
1.246 +//! @SYMTestExpectedResults BytesTransferredByCopyStep() returns actual size of copyed file "51192".
1.247 +//! @SYMTestType CIT
1.248 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.249 + CREATE_OBJECT RFs RFs1
1.250 + CREATE_OBJECT CFileMan CFileMan1
1.251 + COMMAND RFs1 new
1.252 + COMMAND RFs1 Connect
1.253 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.254 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.255 + COMMAND CFileMan1 SetObserver
1.256 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite
1.257 + COMMAND CFileMan1 BytesTransferredByCopyStep PBASE-F32-FileMan-PublicApi-2006-001-BytesTransferredByCopyStep_command008
1.258 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2006-001-Delete_command009
1.259 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.260 + COMMAND CFileMan1 ~
1.261 + COMMAND RFs1 ~
1.262 + END_TEST_BLOCK
1.263 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2006
1.264 +
1.265 +
1.266 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2007
1.267 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2007
1.268 +//! @SYMAPI CFileMan
1.269 +//! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) test.
1.270 +//! Sets file attributes synchronously to read-only.
1.271 +//! Uses API elements: NewL(), Attribs();
1.272 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.273 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.274 +//! 3.Call RFs::Att() to check that file has KEntryAttNormal as attribute.
1.275 +//! 4.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.276 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.277 +//! and KEntryAttReadOnly as second parameter,
1.278 +//! and KEntryAttNormal as third parameter,
1.279 +//! and TTime(0) as fourth parameter,
1.280 +//! and CFileMan::ERecurse as fifth parameter.
1.281 +//! 5.Call RFs::Att() to check that attribute was set to KEntryAttReadOnly
1.282 +//! 6.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.283 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.284 +//! and KEntryAttNormal as second parameter,
1.285 +//! and KEntryAttReadOnly as third parameter,
1.286 +//! and TTime(0) as fourth parameter,
1.287 +//! and CFileMan::ERecurse as fifth parameter.
1.288 +//! 7.Call RFs::Att() to check that file have KEntryAttNormal as attribute.
1.289 +//! @SYMTestStatus Implemented
1.290 +//! @SYMTestPriority Critical
1.291 +//! @SYMTestExpectedResults Attribs() returns KErrNone.
1.292 +//! @SYMTestType CIT
1.293 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.294 + CREATE_OBJECT RFs RFs1
1.295 + CREATE_OBJECT CFileMan CFileMan1
1.296 + COMMAND RFs1 new
1.297 + COMMAND RFs1 Connect
1.298 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.299 + COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2007-001-Att_command005
1.300 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2007-001-Attribs_command006
1.301 + COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2007-001-Att_command007
1.302 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2007-001-Attribs_command008
1.303 + COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2007-001-Att_command009
1.304 + COMMAND CFileMan1 ~
1.305 + COMMAND RFs1 ~
1.306 + END_TEST_BLOCK
1.307 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2007
1.308 +
1.309 +
1.310 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2008
1.311 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2008
1.312 +//! @SYMAPI CFileMan
1.313 +//! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus) test.
1.314 +//! Sets file attributes asynchronously to read-only.
1.315 +//! Uses API elements: NewL(), Attribs();
1.316 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.317 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.318 +//! 3.Call RFs::Att() to check that file has KEntryAttNormal as attribute.
1.319 +//! 4.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus)
1.320 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.321 +//! and KEntryAttReadOnly as second parameter,
1.322 +//! and KEntryAttNormal as third parameter,
1.323 +//! and TTime(0) as fourth parameter,
1.324 +//! and CFileMan::ERecurse as fifth parameter
1.325 +//! and iStatus as fourth parameter.
1.326 +//! 5.Call RFs::Att() to check that attribute was set to KEntryAttReadOnly
1.327 +//! 6.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus)
1.328 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.329 +//! and KEntryAttNormal as second parameter,
1.330 +//! and KEntryAttReadOnly as third parameter,
1.331 +//! and TTime(0) as fourth parameter,
1.332 +//! and CFileMan::ERecurse as fifth parameter
1.333 +//! and iStatus as fourth parameter.
1.334 +//! 7.Call RFs::Att() to check that file have KEntryAttNormal as attribute.
1.335 +//! @SYMTestStatus Implemented
1.336 +//! @SYMTestPriority Critical
1.337 +//! @SYMTestExpectedResults Attribs() returns KErrNone and second Attrib returns KErrInUse
1.338 +//! @SYMTestType CIT
1.339 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.340 + CREATE_OBJECT RFs RFs1
1.341 + CREATE_OBJECT CFileMan CFileMan1
1.342 + COMMAND RFs1 new
1.343 + COMMAND RFs1 Connect
1.344 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.345 + COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2008-001-Att_command005
1.346 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2008-001-Attribs_command006
1.347 + OUTSTANDING
1.348 + COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2008-001-Att_command007
1.349 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2008-001-Attribs_command008
1.350 + COMMAND !Error=-14 CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2008-001-Attribs_command008
1.351 + OUTSTANDING
1.352 + COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2008-001-Att_command009
1.353 + COMMAND CFileMan1 ~
1.354 + COMMAND RFs1 ~
1.355 + END_TEST_BLOCK
1.356 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2008
1.357 +
1.358 +
1.359 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2009
1.360 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2009
1.361 +//! @SYMAPI CFileMan
1.362 +//! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
1.363 +//! Sets file attributes synchronously to normal and copies file synchronously from one directory to another.
1.364 +//! Uses API elements: NewL(), Attribs(), Copy();
1.365 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.366 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.367 +//! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.368 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.369 +//! and KEntryAttNormal as second parameter,
1.370 +//! and KEntryAttReadOnly as third parameter,
1.371 +//! and TTime(0) as fourth parameter,
1.372 +//! and CFileMan::EOverWrite as fifth parameter.
1.373 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.374 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.375 +//! and {TestPath}fileman\Copy\ as second parameter.
1.376 +//! @SYMTestStatus Implemented
1.377 +//! @SYMTestPriority Critical
1.378 +//! @SYMTestExpectedResults Copy() returns KErrNone.
1.379 +//! @SYMTestType CIT
1.380 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.381 + CREATE_OBJECT RFs RFs1
1.382 + CREATE_OBJECT RFile RFile1
1.383 + CREATE_OBJECT CFileMan CFileMan1
1.384 + COMMAND RFs1 new
1.385 + COMMAND RFs1 Connect
1.386 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.387 + COMMAND RFile1 new
1.388 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.389 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2009-001-Copy_command006
1.390 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2009-001-Open_command007
1.391 + COMMAND RFile1 Close
1.392 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2009-001-Delete_command008
1.393 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.394 + COMMAND CFileMan1 ~
1.395 + COMMAND RFile1 ~
1.396 + COMMAND RFs1 ~
1.397 + END_TEST_BLOCK
1.398 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2009
1.399 +
1.400 +
1.401 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2010
1.402 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2010
1.403 +//! @SYMAPI CFileMan
1.404 +//! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) test.
1.405 +//! Sets file attributes synchronously to normal and copies file asynchronously from one directory to another.
1.406 +//! Uses API elements: NewL(), Attribs(), Copy();
1.407 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.408 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.409 +//! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus)
1.410 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.411 +//! and KEntryAttNormal as second parameter,
1.412 +//! and KEntryAttReadOnly as third parameter, and TTime(0) as fourth parameter,
1.413 +//! and CFileMan::EOverWrite as fifth parameter,
1.414 +//! and iStatus as sixth parameter.
1.415 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus).
1.416 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.417 +//! and {TestPath}fileman\Copy\ as second parameter,
1.418 +//! and iStatus as last parameter.
1.419 +//! @SYMTestStatus Implemented
1.420 +//! @SYMTestPriority Critical
1.421 +//! @SYMTestExpectedResults Copy() returns KErrNone.
1.422 +//! @SYMTestType CIT
1.423 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.424 + CREATE_OBJECT RFs RFs1
1.425 + CREATE_OBJECT RFile RFile1
1.426 + CREATE_OBJECT CFileMan CFileMan1
1.427 + COMMAND RFs1 new
1.428 + COMMAND RFs1 Connect
1.429 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.430 + COMMAND RFile1 new
1.431 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.432 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2010-001-Copy_command006
1.433 + OUTSTANDING
1.434 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2010-001-Open_command007
1.435 + COMMAND RFile1 Close
1.436 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2010-001-Delete_command008
1.437 + OUTSTANDING
1.438 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.439 + COMMAND CFileMan1 ~
1.440 + COMMAND RFile1 ~
1.441 + COMMAND RFs1 ~
1.442 + END_TEST_BLOCK
1.443 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2010
1.444 +
1.445 +
1.446 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2011
1.447 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2011
1.448 +//! @SYMAPI CFileMan
1.449 +//! @SYMTestCaseDesc Function Delete(const TDesC &aName, TUint aSwitch=0) test.
1.450 +//! Copies file asynchronously from one directory to another and deletes synchronously copied file.
1.451 +//! Uses API elements: NewL(), Copy(), Delete();
1.452 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.453 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.454 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.455 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.456 +//! and {TestPath}fileman\Copy\ as second parameter.
1.457 +//! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), and {TestPath}fileman\Test1.txt as parameter
1.458 +//! @SYMTestStatus Implemented
1.459 +//! @SYMTestPriority Critical
1.460 +//! @SYMTestExpectedResults Delete() returns KErrNone.
1.461 +//! @SYMTestType CIT
1.462 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.463 + CREATE_OBJECT RFs RFs1
1.464 + CREATE_OBJECT RFile RFile1
1.465 + CREATE_OBJECT CFileMan CFileMan1
1.466 + COMMAND RFs1 new
1.467 + COMMAND RFs1 Connect
1.468 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.469 + COMMAND RFile1 new
1.470 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.471 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2011-001-Copy_command006
1.472 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2011-001-Delete_command007
1.473 + COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2011-001-Open_command008
1.474 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.475 + COMMAND RFile1 ~
1.476 + COMMAND CFileMan1 ~
1.477 + COMMAND RFs1 ~
1.478 + END_TEST_BLOCK
1.479 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2011
1.480 +
1.481 +
1.482 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2012
1.483 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2012
1.484 +//! @SYMAPI CFileMan
1.485 +//! @SYMTestCaseDesc Function Delete(const TDesC &aName, TUint aSwitch=0, TRequestStatus &aStatus) test.
1.486 +//! Copies file asynchronously from one directory to another and deletes asynchronously copied file.
1.487 +//! Uses API elements: NewL(), Copy(), Delete();
1.488 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.489 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.490 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus).
1.491 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.492 +//! and {TestPath}fileman\Copy\ as second parameter,
1.493 +//! and iStatus as last parameter.
1.494 +//! 4.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0, TRequestStatus &aStatus),
1.495 +//! and {TestPath}fileman\Copy\Test1.txt as first parameter,
1.496 +//! and CFileMan::EOverWrite as second parameter,
1.497 +//! and iStatus as third parameter.
1.498 +//! @SYMTestStatus Implemented
1.499 +//! @SYMTestPriority Critical
1.500 +//! @SYMTestExpectedResults Delete() returns KErrNone and second delete returns KErrInUse.
1.501 +//! @SYMTestType CIT
1.502 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.503 + CREATE_OBJECT RFs RFs1
1.504 + CREATE_OBJECT RFile RFile1
1.505 + CREATE_OBJECT CFileMan CFileMan1
1.506 + COMMAND RFs1 new
1.507 + COMMAND RFs1 Connect
1.508 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.509 + COMMAND RFile1 new
1.510 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.511 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2012-001-Copy_command006
1.512 + OUTSTANDING
1.513 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2012-001-Delete_command007
1.514 + COMMAND !Error=-14 CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2012-001-Delete_command007
1.515 + OUTSTANDING
1.516 + COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2012-001-Open_command008
1.517 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.518 + COMMAND CFileMan1 ~
1.519 + COMMAND RFile1 ~
1.520 + COMMAND RFs1 ~
1.521 + END_TEST_BLOCK
1.522 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2012
1.523 +
1.524 +
1.525 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2013
1.526 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2013
1.527 +//! @SYMAPI CFileMan
1.528 +//! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
1.529 +//! Moves file synchronously from one directory to another.
1.530 +//! Uses API elements: NewL(), Move();
1.531 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.532 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.533 +//! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
1.534 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.535 +//! and {TestPath}fileman\Copy\ as second parameter.
1.536 +//! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
1.537 +//! and {TestPath}fileman\Copy\Test1.txt as first parameter,
1.538 +//! and {TestPath}fileman\ as second parameter.
1.539 +//! @SYMTestStatus Implemented
1.540 +//! @SYMTestPriority Critical
1.541 +//! @SYMTestExpectedResults Move() returns KErrNone.
1.542 +//! @SYMTestType CIT
1.543 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.544 + CREATE_OBJECT RFs RFs1
1.545 + CREATE_OBJECT RFile RFile1
1.546 + CREATE_OBJECT CFileMan CFileMan1
1.547 + COMMAND RFs1 new
1.548 + COMMAND RFs1 Connect
1.549 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.550 + COMMAND RFile1 new
1.551 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.552 + COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2013-001-Move_command006
1.553 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2013-001-Open_command007
1.554 + COMMAND RFile1 Close
1.555 + COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2013-001-Move_command008
1.556 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2013-001-Open_command009
1.557 + COMMAND RFile1 Close
1.558 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.559 + COMMAND CFileMan1 ~
1.560 + COMMAND RFile1 ~
1.561 + COMMAND RFs1 ~
1.562 + END_TEST_BLOCK
1.563 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2013
1.564 +
1.565 +
1.566 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2014
1.567 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2014
1.568 +//! @SYMAPI CFileMan
1.569 +//! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) test.
1.570 +//! Moves file asynchronously from one directory to another.
1.571 +//! Uses API elements: NewL(), Move();
1.572 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.573 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.574 +//! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus),
1.575 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.576 +//! and {TestPath}fileman\Copy\ as second parameter,
1.577 +//! and CFileMan::EOverWrite as third parameter,
1.578 +//! and iStatus as fourth parameter.
1.579 +//! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus),
1.580 +//! and {TestPath}fileman\Copy\Test1.txt as first parameter,
1.581 +//! and {TestPath}fileman\ as second parameter,
1.582 +//! and CFileMan::EOverWrite as third parameter,
1.583 +//! and iStatus as fourth parameter.
1.584 +//! @SYMTestStatus Implemented
1.585 +//! @SYMTestPriority Critical
1.586 +//! @SYMTestExpectedResults Move() returns KErrNone.
1.587 +//! @SYMTestType CIT
1.588 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.589 + CREATE_OBJECT RFs RFs1
1.590 + CREATE_OBJECT RFile RFile1
1.591 + CREATE_OBJECT CFileMan CFileMan1
1.592 + COMMAND RFs1 new
1.593 + COMMAND RFs1 Connect
1.594 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.595 + COMMAND RFile1 new
1.596 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.597 + COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2014-001-Move_command006
1.598 + OUTSTANDING
1.599 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2014-001-Open_command007
1.600 + COMMAND RFile1 Close
1.601 + COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2014-001-Move_command008
1.602 + OUTSTANDING
1.603 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2014-001-Open_command009
1.604 + COMMAND RFile1 Close
1.605 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.606 + COMMAND CFileMan1 ~
1.607 + COMMAND RFile1 ~
1.608 + COMMAND RFs1 ~
1.609 + END_TEST_BLOCK
1.610 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2014
1.611 +
1.612 +
1.613 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2015
1.614 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2015
1.615 +//! @SYMAPI CFileMan
1.616 +//! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
1.617 +//! Renames file name synchronously.
1.618 +//! Uses API elements: NewL(), Rename();
1.619 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.620 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.621 +//! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.622 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.623 +//! and {TestPath}fileman\Renamed.txt as second parameter.
1.624 +//! 4.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.625 +//! and {TestPath}fileman\Renamed.txt as first parameter,
1.626 +//! and {TestPath}fileman\Test1.txt as second parameter.
1.627 +//! @SYMTestStatus Implemented
1.628 +//! @SYMTestPriority Critical
1.629 +//! @SYMTestExpectedResults Rename() returns KErrNone.
1.630 +//! @SYMTestType CIT
1.631 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.632 + CREATE_OBJECT RFs RFs1
1.633 + CREATE_OBJECT RFile RFile1
1.634 + CREATE_OBJECT CFileMan CFileMan1
1.635 + COMMAND RFs1 new
1.636 + COMMAND RFs1 Connect
1.637 + COMMAND RFile1 new
1.638 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.639 + COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2015-001-Rename_command005
1.640 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2015-001-Open_command006
1.641 + COMMAND RFile1 Close
1.642 + COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2015-001-Rename_command007
1.643 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2015-001-Open_command008
1.644 + COMMAND RFile1 Close
1.645 + COMMAND CFileMan1 ~
1.646 + COMMAND RFile1 ~
1.647 + COMMAND RFs1 ~
1.648 + END_TEST_BLOCK
1.649 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2015
1.650 +
1.651 +
1.652 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2016
1.653 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2016
1.654 +//! @SYMAPI CFileMan
1.655 +//! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) test.
1.656 +//! Renames file name asynchronously.
1.657 +//! Uses API elements: NewL(), Rename();
1.658 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.659 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.660 +//! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus).
1.661 +//! and {TestPath}fileman\Renamed.txt as first parameter,
1.662 +//! and {TestPath}fileman\Test1.txt as second parameter,
1.663 +//! and CFileMan::EOverWrite as third parameter,
1.664 +//! and iStatus as last parameter.
1.665 +//! 4.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus).
1.666 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.667 +//! and {TestPath}fileman\Renamed.txt as second parameter,
1.668 +//! and CFileMan::EOverWrite as third parameter,
1.669 +//! and iStatus as last parameter.
1.670 +//! @SYMTestStatus Implemented
1.671 +//! @SYMTestPriority Critical
1.672 +//! @SYMTestExpectedResults Rename() returns KErrNone.
1.673 +//! @SYMTestType CIT
1.674 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.675 + CREATE_OBJECT RFs RFs1
1.676 + CREATE_OBJECT RFile RFile1
1.677 + CREATE_OBJECT CFileMan CFileMan1
1.678 + COMMAND RFs1 new
1.679 + COMMAND RFs1 Connect
1.680 + COMMAND RFile1 new
1.681 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.682 + COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2016-001-Rename_command005
1.683 + OUTSTANDING
1.684 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2016-001-Open_command006
1.685 + COMMAND RFile1 Close
1.686 + COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2016-001-Rename_command007
1.687 + OUTSTANDING
1.688 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2016-001-Open_command008
1.689 + COMMAND RFile1 Close
1.690 + COMMAND CFileMan1 ~
1.691 + COMMAND RFile1 ~
1.692 + COMMAND RFs1 ~
1.693 + END_TEST_BLOCK
1.694 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2016
1.695 +
1.696 +
1.697 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2017
1.698 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2017
1.699 +//! @SYMAPI CFileMan
1.700 +//! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName) test.
1.701 +//! Test removes newly created directory synchronously.
1.702 +//! Uses API elements: NewL(), RmDir();
1.703 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.704 +//! 2.Call RFs::MkDir(), and {TestPath}fileman\Removable\ as parameter.
1.705 +//! 3.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.706 +//! 4.Call CFileMan::RmDir(const TDesC &aDirName) and {TestPath}fileman\Removable\ as parameter.
1.707 +//! @SYMTestStatus Implemented
1.708 +//! @SYMTestPriority Critical
1.709 +//! @SYMTestExpectedResults RmDir() returns KErrNone.
1.710 +//! @SYMTestType CIT
1.711 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.712 + CREATE_OBJECT RFs RFs1
1.713 + CREATE_OBJECT RDir RDir1
1.714 + CREATE_OBJECT CFileMan CFileMan1
1.715 + COMMAND RFs1 new
1.716 + COMMAND RFs1 Connect
1.717 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2017-001-MkDir_command004
1.718 + COMMAND RDir1 new
1.719 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.720 + COMMAND RDir1 Open PBASE-F32-FileMan-PublicApi-2017-001-Open_command006
1.721 + COMMAND RDir1 Close
1.722 + COMMAND CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2017-001-RmDir_command007
1.723 + COMMAND !Error=-12 RDir1 Open PBASE-F32-FileMan-PublicApi-2017-001-Open_command008
1.724 + COMMAND CFileMan1 ~
1.725 + COMMAND RDir1 ~
1.726 + COMMAND RFs1 ~
1.727 + END_TEST_BLOCK
1.728 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2017
1.729 +
1.730 +
1.731 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2018
1.732 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2018
1.733 +//! @SYMAPI CFileMan
1.734 +//! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName, TRequestStatus &aStatus) test.
1.735 +//! Test removes newly created directory asynchronously.
1.736 +//! Uses API elements: NewL(), RmDir();
1.737 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.738 +//! 2.Call RFs::MkDir(), and {TestPath}fileman\Removable\ as parameter.
1.739 +//! 3.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.740 +//! 4.Call CFileMan::RmDir(const TDesC &aDirName, TRequestStatus &aStatus),
1.741 +//! and {TestPath}fileman\Removable\ as first parameter,
1.742 +//! and iStatus as second parameter.
1.743 +//! @SYMTestStatus Implemented
1.744 +//! @SYMTestPriority Critical
1.745 +//! @SYMTestExpectedResults 1st RmDir returns KErrNone and Second call returns KErrInUse
1.746 +//! @SYMTestType CIT
1.747 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.748 + CREATE_OBJECT RFs RFs1
1.749 + CREATE_OBJECT RDir RDir1
1.750 + CREATE_OBJECT CFileMan CFileMan1
1.751 + COMMAND RFs1 new
1.752 + COMMAND RFs1 Connect
1.753 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2018-001-MkDir_command004
1.754 + COMMAND RDir1 new
1.755 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.756 + COMMAND RDir1 Open PBASE-F32-FileMan-PublicApi-2018-001-Open_command006
1.757 + COMMAND RDir1 Close
1.758 + COMMAND CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2018-001-RmDir_command007
1.759 + COMMAND !Error=-14 CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2018-001-RmDir_command007
1.760 + OUTSTANDING
1.761 + COMMAND !Error=-12 RDir1 Open PBASE-F32-FileMan-PublicApi-2018-001-Open_command008
1.762 + COMMAND CFileMan1 ~
1.763 + COMMAND RDir1 ~
1.764 + COMMAND RFs1 ~
1.765 + END_TEST_BLOCK
1.766 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2018
1.767 +
1.768 +
1.769 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2019
1.770 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2019
1.771 +//! @SYMAPI CFileMan
1.772 +//! @SYMTestCaseDesc Function Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches=EOverWrite) test.
1.773 +//! Opens file then copies file content to another file synchronously.
1.774 +//! Uses API elements: NewL(), Copy();
1.775 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.776 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.777 +//! 3.Call RFile::Open() to open file.
1.778 +//! 4.Call CFileMan::Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches=EOverWrite),
1.779 +//! and RFile object as first object,
1.780 +//! and {TestPath}fileman\Test1_RFs.txt as second parameter.
1.781 +//! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.782 +//! and {TestPath}fileman\Test1_RFs.txt as first parameter,
1.783 +//! and 0 as second parameter.
1.784 +//! 6.RFs::Close().
1.785 +//! @SYMTestStatus Implemented
1.786 +//! @SYMTestPriority Critical
1.787 +//! @SYMTestExpectedResults Copy() returns KErrNone.
1.788 +//! @SYMTestType CIT
1.789 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.790 + CREATE_OBJECT RFs RFs1
1.791 + CREATE_OBJECT RFile RFile1
1.792 + CREATE_OBJECT CFileMan CFileMan1
1.793 + COMMAND RFs1 new
1.794 + COMMAND RFs1 Connect
1.795 + COMMAND RFile1 new
1.796 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2019-001-Open_command006
1.797 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.798 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2019-001-Copy_command008
1.799 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2019-001-Open_command009
1.800 + COMMAND RFile1 Close
1.801 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2019-001-Delete_command010
1.802 + COMMAND CFileMan1 ~
1.803 + COMMAND RFile1 Close
1.804 + COMMAND RFile1 ~
1.805 + COMMAND RFs1 ~
1.806 + END_TEST_BLOCK
1.807 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2019
1.808 +
1.809 +
1.810 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2020
1.811 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2020
1.812 +//! @SYMAPI CFileMan
1.813 +//! @SYMTestCaseDesc Function Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches, TRequestStatus &aStatus) test.
1.814 +//! Opens file then copies file content to another file asynchronously.
1.815 +//! Uses API elements: NewL(), Copy();
1.816 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.817 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.818 +//! 3.Call RFile::Open() to open file.
1.819 +//! 4.Call CFileMan::Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches, TRequestStatus &aStatus),
1.820 +//! and RFile object as first object,
1.821 +//! and {TestPath}fileman\Test1_RFs.txt as second parameter,
1.822 +//! and iStatus as last parameter.
1.823 +//! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.824 +//! and {TestPath}fileman\Test1_RFs.txt as first parameter,
1.825 +//! and 0 as second parameter.
1.826 +//! @SYMTestStatus Implemented
1.827 +//! @SYMTestPriority Critical
1.828 +//! @SYMTestExpectedResults 1st Copy() returns KErrNone and second returns KErrInUse
1.829 +//! @SYMTestType CIT
1.830 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.831 + CREATE_OBJECT RFs RFs1
1.832 + CREATE_OBJECT RFile RFile1
1.833 + CREATE_OBJECT CFileMan CFileMan1
1.834 + COMMAND RFs1 new
1.835 + COMMAND RFs1 Connect
1.836 + COMMAND RFile1 new
1.837 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2020-001-Open_command006
1.838 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.839 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2020-001-Copy_command008
1.840 + COMMAND !Error=-14 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2020-001-Copy_command008
1.841 + OUTSTANDING
1.842 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2020-001-Open_command009
1.843 + COMMAND RFile1 Close
1.844 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2020-001-Delete_command010
1.845 + COMMAND CFileMan1 ~
1.846 + COMMAND RFile1 Close
1.847 + COMMAND RFile1 ~
1.848 + COMMAND RFs1 ~
1.849 + END_TEST_BLOCK
1.850 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2020
1.851 +
1.852 +
1.853 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2021
1.854 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2021
1.855 +//! @SYMAPI CFileBase
1.856 +//! @SYMTestCaseDesc Function SetObserver(MFileManObserver *anObserver) test.
1.857 +//! Sets observer.
1.858 +//! Uses API elements: NewL(), SetObserver();
1.859 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.860 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.861 +//! 3.Call CFileMan::SetObserver().
1.862 +//! @SYMTestStatus Implemented
1.863 +//! @SYMTestPriority Critical
1.864 +//! @SYMTestExpectedResults No Panic and Error code returned.
1.865 +//! @SYMTestType CIT
1.866 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.867 + CREATE_OBJECT RFs RFs1
1.868 + CREATE_OBJECT CFileMan CFileMan1
1.869 + COMMAND RFs1 new
1.870 + COMMAND RFs1 Connect
1.871 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.872 + COMMAND CFileMan1 SetObserver
1.873 + COMMAND CFileMan1 ~
1.874 + COMMAND RFs1 ~
1.875 + END_TEST_BLOCK
1.876 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2021
1.877 +
1.878 +
1.879 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2022
1.880 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2022
1.881 +//! @SYMAPI CFileBase
1.882 +//! @SYMTestCaseDesc Function CurrentEntry() test.
1.883 +//! Gets the entry currently being copied.
1.884 +//! Uses API elements: NewL(), SetObserver(), CurrentEntry(), Copy(), Delete();
1.885 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.886 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.887 +//! 3.Call CFileMan::SetObserver().
1.888 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.889 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.890 +//! and {TestPath}fileman\Copy\ as second parameter.
1.891 +//! 5.Call CFileMan::CurrentEntry().
1.892 +//! 6.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.893 +//! and {TestPath}fileman\Copy\Test3.txt as parameter.
1.894 +//! @SYMTestStatus Implemented
1.895 +//! @SYMTestPriority Critical
1.896 +//! @SYMTestExpectedResults CurrentEntry() returns TEntry in which iName is "Test3.txt".
1.897 +//! @SYMTestType CIT
1.898 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.899 + CREATE_OBJECT RFs RFs1
1.900 + CREATE_OBJECT CFileMan CFileMan1
1.901 + COMMAND RFs1 new
1.902 + COMMAND RFs1 Connect
1.903 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.904 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.905 + COMMAND CFileMan1 SetObserver
1.906 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite
1.907 + COMMAND CFileMan1 CurrentEntry PBASE-F32-FileMan-PublicApi-2022-001-CurrentEntry_command008
1.908 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2022-001-Delete_command009
1.909 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.910 + COMMAND CFileMan1 ~
1.911 + COMMAND RFs1 ~
1.912 + END_TEST_BLOCK
1.913 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2022
1.914 +
1.915 +
1.916 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2023
1.917 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2023
1.918 +//! @SYMAPI CFileBase
1.919 +//! @SYMTestCaseDesc Function AbbreviatedPath() test.
1.920 +//! Gets the abbreviated path of the file currently being copied.
1.921 +//! Uses API elements: NewL(), SetObserver(), AbbreviatedPath(), Copy(), Delete();
1.922 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.923 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.924 +//! 3.Call CFileMan::SetObserver().
1.925 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
1.926 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.927 +//! and {TestPath}fileman\Copy\ as second parameter.
1.928 +//! 5.Call CFileMan::AbbreviatedPath().
1.929 +//! 6.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.930 +//! and {TestPath}fileman\Copy\Test3.txt as parameter.
1.931 +//! @SYMTestStatus Implemented
1.932 +//! @SYMTestPriority Critical
1.933 +//! @SYMTestExpectedResults AbbreviatedPath() returns \.
1.934 +//! @SYMTestType CIT
1.935 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.936 + CREATE_OBJECT RFs RFs1
1.937 + CREATE_OBJECT CFileMan CFileMan1
1.938 + COMMAND RFs1 new
1.939 + COMMAND RFs1 Connect
1.940 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.941 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.942 + COMMAND CFileMan1 SetObserver
1.943 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite
1.944 + COMMAND CFileMan1 AbbreviatedPath PBASE-F32-FileMan-PublicApi-2023-001-AbbreviatedPath_command008
1.945 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2023-001-Delete_command009
1.946 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.947 + COMMAND CFileMan1 ~
1.948 + COMMAND RFs1 ~
1.949 + END_TEST_BLOCK
1.950 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2023
1.951 +
1.952 +
1.953 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2024
1.954 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2024
1.955 +//! @SYMAPI CFileBase
1.956 +//! @SYMTestCaseDesc Function FullPath() test.
1.957 +//! Gets the full path of the file currently being copied.
1.958 +//! Uses API elements: NewL(), SetObserver(), FullPath(), Copy(), Delete();
1.959 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.960 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.961 +//! 3.Call CFileMan::SetObserver().
1.962 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
1.963 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.964 +//! and {TestPath}fileman\Copy\ as second parameter.
1.965 +//! 5.Call CFileMan::FullPath().
1.966 +//! 6.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.967 +//! and {TestPath}fileman\Copy\Test3.txt as parameter.
1.968 +//! @SYMTestStatus Implemented
1.969 +//! @SYMTestPriority Critical
1.970 +//! @SYMTestExpectedResults FullPath() returns {TestPath}fileman\.
1.971 +//! @SYMTestType CIT
1.972 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.973 + CREATE_OBJECT RFs RFs1
1.974 + CREATE_OBJECT CFileMan CFileMan1
1.975 + COMMAND RFs1 new
1.976 + COMMAND RFs1 Connect
1.977 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.978 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.979 + COMMAND CFileMan1 SetObserver
1.980 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite
1.981 + COMMAND CFileMan1 FullPath PBASE-F32-FileMan-PublicApi-2024-001-FullPath_command008
1.982 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2024-001-Delete_command009
1.983 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.984 + COMMAND CFileMan1 ~
1.985 + COMMAND RFs1 ~
1.986 + END_TEST_BLOCK
1.987 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2024
1.988 +
1.989 +
1.990 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2025
1.991 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2025
1.992 +//! @SYMAPI CFileBase
1.993 +//! @SYMTestCaseDesc Function GetLastError() test.
1.994 +//! Gets the latest error code returned during copy process
1.995 +//! Uses API elements: NewL(), SetObserver(), GetLastError(), Copy(), Delete();
1.996 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.997 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.998 +//! 3.Call CFileMan::SetObserver().
1.999 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1000 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.1001 +//! and {TestPath}fileman\Copy\ as second parameter.
1.1002 +//! 5.Call CFileMan::GetLastError().
1.1003 +//! 6.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.1004 +//! and {TestPath}fileman\Copy\Test3.txt as parameter.
1.1005 +//! @SYMTestStatus Implemented
1.1006 +//! @SYMTestPriority Critical
1.1007 +//! @SYMTestExpectedResults GetLastError() returns KErrNone.
1.1008 +//! @SYMTestType CIT
1.1009 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.1010 + CREATE_OBJECT RFs RFs1
1.1011 + CREATE_OBJECT CFileMan CFileMan1
1.1012 + COMMAND RFs1 new
1.1013 + COMMAND RFs1 Connect
1.1014 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.1015 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.1016 + COMMAND CFileMan1 SetObserver
1.1017 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite
1.1018 + COMMAND CFileMan1 GetLastError PBASE-F32-FileMan-PublicApi-2025-001-GetLastError_command008
1.1019 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2025-001-Delete_command009
1.1020 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.1021 + COMMAND CFileMan1 ~
1.1022 + COMMAND RFs1 ~
1.1023 + END_TEST_BLOCK
1.1024 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2025
1.1025 +
1.1026 +
1.1027 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2026
1.1028 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2026
1.1029 +//! @SYMAPI CFileBase
1.1030 +//! @SYMTestCaseDesc Function GetMoreInfoAboutError() test.
1.1031 +//! Gets additional information about the latest error returned during copy process
1.1032 +//! Uses API elements: NewL(), SetObserver(), GetMoreInfoAboutError(), Copy(), Delete();
1.1033 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.1034 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.1035 +//! 3.Call CFileMan::SetObserver().
1.1036 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1037 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.1038 +//! and {TestPath}fileman\Copy\ as second parameter.
1.1039 +//! 5.Call CFileMan::GetMoreInfoAboutError().
1.1040 +//! 6.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.1041 +//! and {TestPath}fileman\Copy\Test3.txt as parameter.
1.1042 +//! @SYMTestStatus Implemented
1.1043 +//! @SYMTestPriority Critical
1.1044 +//! @SYMTestExpectedResults GetMoreInfoAboutError() returns ENoExtraInformation.
1.1045 +//! @SYMTestType CIT
1.1046 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.1047 + CREATE_OBJECT RFs RFs1
1.1048 + CREATE_OBJECT CFileMan CFileMan1
1.1049 + COMMAND RFs1 new
1.1050 + COMMAND RFs1 Connect
1.1051 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.1052 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.1053 + COMMAND CFileMan1 SetObserver
1.1054 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite
1.1055 + COMMAND CFileMan1 GetMoreInfoAboutError PBASE-F32-FileMan-PublicApi-2026-001-GetMoreInfoAboutError_command008
1.1056 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2026-001-Delete_command009
1.1057 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.1058 + COMMAND CFileMan1 ~
1.1059 + COMMAND RFs1 ~
1.1060 + END_TEST_BLOCK
1.1061 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2026
1.1062 +
1.1063 +
1.1064 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2027
1.1065 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2027
1.1066 +//! @SYMAPI CFileBase
1.1067 +//! @SYMTestCaseDesc Function Copy() test.
1.1068 +//! Copy File from one drive to another (RAM Drive).
1.1069 +//! Uses API elements: NewL(), Copy(), Delete();
1.1070 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.1071 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.1072 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1073 +//! and {TestPath}Test3.txt as first parameter,
1.1074 +//! and {RamDrive}fileman\Copy\ as second parameter.
1.1075 +//! 4.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.1076 +//! and {RamDrive}fileman\Copy\Test3.txt as parameter.
1.1077 +//! @SYMTestStatus Implemented
1.1078 +//! @SYMTestPriority Critical
1.1079 +//! @SYMTestExpectedResults File successfully copied from one drive to another.
1.1080 +//! @SYMTestType CIT
1.1081 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.1082 + CREATE_OBJECT RFs RFs1
1.1083 + CREATE_OBJECT RFile RFile1
1.1084 + CREATE_OBJECT CFileMan CFileMan1
1.1085 + COMMAND RFs1 new
1.1086 + COMMAND RFs1 Connect
1.1087 + COMMAND RFs1 MkDirAll PBASE-F32-FileMan-PublicApi-2027-001-MkDirAll_command004
1.1088 + COMMAND RFile1 new
1.1089 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.1090 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2027-001-Copy_command006
1.1091 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2027-001-Open_command007
1.1092 + COMMAND RFile1 Close
1.1093 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2027-001-Delete_command008
1.1094 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2027-001-RmDir_command009
1.1095 + COMMAND CFileMan1 ~
1.1096 + COMMAND RFile1 ~
1.1097 + COMMAND RFs1 ~
1.1098 + END_TEST_BLOCK
1.1099 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2027
1.1100 +
1.1101 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2028
1.1102 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2028
1.1103 +//! @SYMAPI CFileBase
1.1104 +//! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
1.1105 +//! Copy file with ReadOnly and Hidden atributes and check that the copied file have the same attributes.
1.1106 +//! Uses API elements: NewL(), Copy(), Delete();
1.1107 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.1108 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.1109 +//! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.1110 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.1111 +//! and KEntryAttReadOnly|KEntryAttHidden as second parameter,
1.1112 +//! and KEntryAttNormal as third parameter,
1.1113 +//! and TTime(0) as fourth parameter,
1.1114 +//! and 0 as fifth parameter.
1.1115 +//! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1116 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.1117 +//! and {TestPath}fileman\Copy\Test1.txt as second parameter.
1.1118 +//! 6.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.1119 +//! and {TestPath}fileman\Copy\Test1.txt as first parameter,
1.1120 +//! and KEntryAttNormal as second parameter,
1.1121 +//! and KEntryAttReadOnly|KEntryAttHidden as third parameter,
1.1122 +//! and TTime(0) as fourth parameter,
1.1123 +//! and 0 as fifth parameter.
1.1124 +//! 7.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.1125 +//! and {TestPath}fileman\Copy\Test1.txt as parameter.
1.1126 +//! 8.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.1127 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.1128 +//! and KEntryAttNormal as second parameter,
1.1129 +//! and KEntryAttReadOnly|KEntryAttHidden as third parameter,
1.1130 +//! and TTime(0) as fourth parameter,
1.1131 +//! and 0 as fifth parameter.
1.1132 +//! @SYMTestStatus Implemented
1.1133 +//! @SYMTestPriority Critical
1.1134 +//! @SYMTestExpectedResults File attributes unchanged after Copy().
1.1135 +//! @SYMTestType CIT
1.1136 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.1137 + CREATE_OBJECT RFs RFs1
1.1138 + CREATE_OBJECT RFile RFile1
1.1139 + CREATE_OBJECT CFileMan CFileMan1
1.1140 + COMMAND RFs1 new
1.1141 + COMMAND RFs1 Connect
1.1142 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.1143 + COMMAND RFile1 new
1.1144 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.1145 + COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2028-001-Att_command006
1.1146 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2028-001-Attribs_command007
1.1147 + COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2028-001-Att_command008
1.1148 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
1.1149 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2028-001-Open_command010
1.1150 + COMMAND RFile1 Close
1.1151 + COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2028-001-Att_command011
1.1152 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2028-001-Attribs_command012
1.1153 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2028-001-Delete_command013
1.1154 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2028-001-Attribs_command014
1.1155 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.1156 + COMMAND CFileMan1 ~
1.1157 + COMMAND RFile1 ~
1.1158 + COMMAND RFs1 ~
1.1159 + END_TEST_BLOCK
1.1160 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2028
1.1161 +
1.1162 +
1.1163 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2029
1.1164 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2029
1.1165 +//! @SYMAPI CFileBase
1.1166 +//! @SYMTestCaseDesc Function Attribs(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
1.1167 +//! Set KEntryAttHidden attribute non recursivly and recursivly and then check that is was set correctly.
1.1168 +//! Uses API elements: NewL(), Attribs(), Copy(), Delete();
1.1169 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.1170 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.1171 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1172 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.1173 +//! and {TestPath}fileman\Copy\Test3.txt as second parameter.
1.1174 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1175 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.1176 +//! and {TestPath}fileman\Copy\Test\Test1.txt as second parameter.
1.1177 +//! 5.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.1178 +//! and {TestPath}fileman\Copy\ as first parameter,
1.1179 +//! and KEntryAttHidden as second parameter,
1.1180 +//! and KEntryAttNormal as third parameter,
1.1181 +//! and TTime(0) as fourth parameter,
1.1182 +//! and 0 as fifth parameter.
1.1183 +//! 6.Check that only for Test1.txt attribute was set.
1.1184 +//! 7.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.1185 +//! and {TestPath}fileman\Copy\ as first parameter,
1.1186 +//! and KEntryAttNormal as second parameter,
1.1187 +//! and KEntryAttHidden as third parameter,
1.1188 +//! and TTime(0) as fourth parameter,
1.1189 +//! and 0 as fifth parameter.
1.1190 +//! 8.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.1191 +//! and {TestPath}fileman\Copy\ as first parameter,
1.1192 +//! and KEntryAttHidden as second parameter,
1.1193 +//! and KEntryAttNormal as third parameter,
1.1194 +//! and TTime(0) as fourth parameter,
1.1195 +//! and ERecurse as fifth parameter.
1.1196 +//! 9.Check that KEntryAttHidden was set for Test1.txt and for Test3.txt.
1.1197 +//! 10.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.1198 +//! and {TestPath}fileman\Copy\ as first parameter,
1.1199 +//! and KEntryAttNormal as second parameter,
1.1200 +//! and KEntryAttHidden as third parameter,
1.1201 +//! and TTime(0) as fourth parameter,
1.1202 +//! and ERecurse as fifth parameter.
1.1203 +//! @SYMTestStatus Implemented
1.1204 +//! @SYMTestPriority Critical
1.1205 +//! @SYMTestExpectedResults All attributes are set correctly.
1.1206 +//! @SYMTestType CIT
1.1207 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.1208 + CREATE_OBJECT RFs RFs1
1.1209 + CREATE_OBJECT CFileMan CFileMan1
1.1210 + COMMAND RFs1 new
1.1211 + COMMAND RFs1 Connect
1.1212 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.1213 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_Copy-Test
1.1214 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.1215 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite
1.1216 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2029-001-Copy_command002
1.1217 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2029-001-Attribs_command003
1.1218 + COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2029-001-Att_command004
1.1219 + COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2029-001-Att_command005
1.1220 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2029-001-Attribs_command006
1.1221 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2029-001-Attribs_command007
1.1222 + COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2029-001-Att_command008
1.1223 + COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2029-001-Att_command009
1.1224 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2029-001-Attribs_command010
1.1225 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2029-001-Delete_command011
1.1226 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_Copy-Test
1.1227 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.1228 + COMMAND CFileMan1 ~
1.1229 + COMMAND RFs1 ~
1.1230 + END_TEST_BLOCK
1.1231 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2029
1.1232 +
1.1233 +
1.1234 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2030
1.1235 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2030
1.1236 +//! @SYMAPI CFileBase
1.1237 +//! @SYMTestCaseDesc Function Attribs(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
1.1238 +//! Set KEntryAttHidden attribute non recursivly and recursivly and then check that is was set correctly.
1.1239 +//! Uses API elements: NewL(), Attribs(), Copy(), Delete();
1.1240 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.1241 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.1242 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1243 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.1244 +//! and {TestPath}fileman\Copy\Test3.txt as second parameter.
1.1245 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1246 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.1247 +//! and {TestPath}fileman\Copy\Test\Test1.txt as second parameter.
1.1248 +//! 5.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0, TRequestStatus &aStatus)
1.1249 +//! and {TestPath}fileman\Copy\ as first parameter,
1.1250 +//! and KEntryAttHidden as second parameter,
1.1251 +//! and KEntryAttNormal as third parameter,
1.1252 +//! and TTime(0) as fourth parameter,
1.1253 +//! and 0 as fifth parameter.
1.1254 +//! and iStatus.
1.1255 +//! 6.Check that only for Test1.txt attribute was set.
1.1256 +//! 7.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0, TRequestStatus &aStatus)
1.1257 +//! and {TestPath}fileman\Copy\ as first parameter,
1.1258 +//! and KEntryAttNormal as second parameter,
1.1259 +//! and KEntryAttHidden as third parameter,
1.1260 +//! and TTime(0) as fourth parameter,
1.1261 +//! and 0 as fifth parameter.
1.1262 +//! and iStatus.
1.1263 +//! 8.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0, TRequestStatus &aStatus)
1.1264 +//! and {TestPath}fileman\Copy\ as first parameter,
1.1265 +//! and KEntryAttHidden as second parameter,
1.1266 +//! and KEntryAttNormal as third parameter,
1.1267 +//! and TTime(0) as fourth parameter,
1.1268 +//! and ERecurse as fifth parameter.
1.1269 +//! and iStatus.
1.1270 +//! 8.Check that KEntryAttHidden was set for Test1.txt and for Test3.txt.
1.1271 +//! 10.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0, TRequestStatus &aStatus)
1.1272 +//! and {TestPath}fileman\Copy\ as first parameter,
1.1273 +//! and KEntryAttNormal as second parameter,
1.1274 +//! and KEntryAttHidden as third parameter,
1.1275 +//! and TTime(0) as fourth parameter,
1.1276 +//! and ERecurse as fifth parameter.
1.1277 +//! and iStatus.
1.1278 +//! @SYMTestStatus Implemented
1.1279 +//! @SYMTestPriority Critical
1.1280 +//! @SYMTestExpectedResults All attributes are set correctly.
1.1281 +//! @SYMTestType CIT
1.1282 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.1283 + CREATE_OBJECT RFs RFs1
1.1284 + CREATE_OBJECT CFileMan CFileMan1
1.1285 + COMMAND RFs1 new
1.1286 + COMMAND RFs1 Connect
1.1287 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.1288 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_Copy-Test
1.1289 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.1290 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite
1.1291 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2030-001-Copy_command002
1.1292 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2030-001-Attribs_command003
1.1293 + OUTSTANDING
1.1294 + COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2030-001-Att_command004
1.1295 + COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2030-001-Att_command005
1.1296 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2030-001-Attribs_command006
1.1297 + OUTSTANDING
1.1298 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2030-001-Attribs_command007
1.1299 + OUTSTANDING
1.1300 + COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2030-001-Att_command008
1.1301 + COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2030-001-Att_command009
1.1302 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2030-001-Attribs_command010
1.1303 + OUTSTANDING
1.1304 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2030-001-Delete_command011
1.1305 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_Copy-Test
1.1306 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.1307 + COMMAND CFileMan1 ~
1.1308 + COMMAND RFs1 ~
1.1309 + END_TEST_BLOCK
1.1310 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2030
1.1311 +
1.1312 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2031
1.1313 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2031
1.1314 +//! @SYMAPI CFileBase
1.1315 +//! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
1.1316 +//! Copy files using aSwitch=0 and aSwitch=ERecursive.
1.1317 +//! Uses API elements: NewL(), Copy(), Delete();
1.1318 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.1319 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.1320 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1321 +//! and {TestPath}fileman\ as first parameter,
1.1322 +//! and {TestPath}fileman\Copy\ as second parameter,
1.1323 +//! and aSwitch=0.
1.1324 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1325 +//! and {TestPath}fileman\Copy\ as first parameter,
1.1326 +//! and {TestPath}fileman\Copy1\ as second parameter,
1.1327 +//! and aSwitch=0.
1.1328 +//! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1329 +//! and {TestPath}fileman\Copy\ as first parameter,
1.1330 +//! and {TestPath}fileman\Copy1\ as second parameter.
1.1331 +//! and aSwitch=ERecurse.
1.1332 +//! @SYMTestStatus Implemented
1.1333 +//! @SYMTestPriority Critical
1.1334 +//! @SYMTestExpectedResults Copy() return KErrPathNotFound when non recursive copy.
1.1335 +//! @SYMTestType CIT
1.1336 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.1337 + CREATE_OBJECT RFs RFs1
1.1338 + CREATE_OBJECT CFileMan CFileMan1
1.1339 + COMMAND RFs1 new
1.1340 + COMMAND RFs1 Connect
1.1341 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.1342 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.1343 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2031-001-Copy_command002
1.1344 + COMMAND !Error=-12 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2031-001-Copy_command003
1.1345 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2031-001-Copy_command004
1.1346 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2031-001-Delete_command005
1.1347 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2031-001-Delete_command006
1.1348 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2031-001-RmDir_command007
1.1349 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.1350 + COMMAND CFileMan1 ~
1.1351 + COMMAND RFs1 ~
1.1352 + END_TEST_BLOCK
1.1353 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2031
1.1354 +
1.1355 +
1.1356 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2032
1.1357 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2032
1.1358 +//! @SYMAPI CFileBase
1.1359 +//! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
1.1360 +//! Copy files using aSwitch=0 and aSwitch=ERecursive.
1.1361 +//! Uses API elements: NewL(), Copy(), Delete();
1.1362 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.1363 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.1364 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1365 +//! and {TestPath}fileman\ as first parameter,
1.1366 +//! and {TestPath}fileman\Copy\ as second parameter,
1.1367 +//! and aSwitch=0,
1.1368 +//! and iStatus as parameter.
1.1369 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1370 +//! and {TestPath}fileman\Copy\ as first parameter,
1.1371 +//! and {TestPath}fileman\Copy1\ as second parameter,
1.1372 +//! and aSwitch=0,
1.1373 +//! and iStatus as parameter.
1.1374 +//! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1375 +//! and {TestPath}fileman\Copy\ as first parameter,
1.1376 +//! and {TestPath}fileman\Copy1\ as second parameter.
1.1377 +//! and aSwitch=ERecurse,
1.1378 +//! and iStatus as parameter.
1.1379 +//! @SYMTestStatus Implemented
1.1380 +//! @SYMTestPriority Critical
1.1381 +//! @SYMTestExpectedResults Copy() return KErrPathNotFound when non recursive copy.
1.1382 +//! @SYMTestType CIT
1.1383 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.1384 + CREATE_OBJECT RFs RFs1
1.1385 + CREATE_OBJECT CFileMan CFileMan1
1.1386 + COMMAND RFs1 new
1.1387 + COMMAND RFs1 Connect
1.1388 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.1389 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.1390 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2032-001-Copy_command002
1.1391 + OUTSTANDING
1.1392 + COMMAND !AsyncError=-12 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2032-001-Copy_command003
1.1393 + OUTSTANDING
1.1394 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2032-001-Copy_command004
1.1395 + OUTSTANDING
1.1396 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2032-001-Delete_command005
1.1397 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2032-001-Delete_command006
1.1398 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2032-001-RmDir_command007
1.1399 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.1400 + COMMAND CFileMan1 ~
1.1401 + COMMAND RFs1 ~
1.1402 + END_TEST_BLOCK
1.1403 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2032
1.1404 +
1.1405 +
1.1406 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2033
1.1407 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2033
1.1408 +//! @SYMAPI CFileBase
1.1409 +//! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
1.1410 +//! Move files using aSwitch=0 and aSwitch=ERecursive.
1.1411 +//! Uses API elements: NewL(), Move(), Delete();
1.1412 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.1413 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.1414 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1415 +//! and {TestPath}fileman\ as first parameter,
1.1416 +//! and {TestPath}fileman\Copy\ as second parameter,
1.1417 +//! and aSwitch=0.
1.1418 +//! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1419 +//! and {TestPath}fileman\Copy\ as first parameter,
1.1420 +//! and {TestPath}fileman\Copy1\ as second parameter,
1.1421 +//! and aSwitch=0.
1.1422 +//! 5.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1423 +//! and {TestPath}fileman\Copy\ as first parameter,
1.1424 +//! and {TestPath}fileman\Copy1\ as second parameter.
1.1425 +//! and aSwitch=ERecurse.
1.1426 +//! @SYMTestStatus Implemented
1.1427 +//! @SYMTestPriority Critical
1.1428 +//! @SYMTestExpectedResults Move() return KErrPathNotFound when non recursive Move.
1.1429 +//! @SYMTestType CIT
1.1430 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.1431 + CREATE_OBJECT RFs RFs1
1.1432 + CREATE_OBJECT CFileMan CFileMan1
1.1433 + COMMAND RFs1 new
1.1434 + COMMAND RFs1 Connect
1.1435 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.1436 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.1437 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2033-001-Copy_command002
1.1438 + COMMAND !Error=-12 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2033-001-Move_command003
1.1439 + COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2033-001-Move_command004
1.1440 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2033-001-Delete_command005
1.1441 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2033-001-RmDir_command006
1.1442 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.1443 + COMMAND CFileMan1 ~
1.1444 + COMMAND RFs1 ~
1.1445 + END_TEST_BLOCK
1.1446 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2033
1.1447 +
1.1448 +
1.1449 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2034
1.1450 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2034
1.1451 +//! @SYMAPI CFileBase
1.1452 +//! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
1.1453 +//! Move files using aSwitch=0 and aSwitch=ERecursive.
1.1454 +//! Uses API elements: NewL(), Move(), Delete();
1.1455 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.1456 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.1457 +//! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1458 +//! and {TestPath}fileman\ as first parameter,
1.1459 +//! and {TestPath}fileman\Copy\ as second parameter,
1.1460 +//! and aSwitch=0,
1.1461 +//! and iStatus as parameter.
1.1462 +//! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1463 +//! and {TestPath}fileman\Copy\ as first parameter,
1.1464 +//! and {TestPath}fileman\Copy1\ as second parameter,
1.1465 +//! and aSwitch=0,
1.1466 +//! and iStatus as parameter.
1.1467 +//! 5.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1468 +//! and {TestPath}fileman\Copy\ as first parameter,
1.1469 +//! and {TestPath}fileman\Copy1\ as second parameter.
1.1470 +//! and aSwitch=ERecurse,
1.1471 +//! and iStatus as parameter.
1.1472 +//! @SYMTestStatus Implemented
1.1473 +//! @SYMTestPriority Critical
1.1474 +//! @SYMTestExpectedResults Move() return KErrPathNotFound when non recursive Move.
1.1475 +//! @SYMTestType CIT
1.1476 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.1477 + CREATE_OBJECT RFs RFs1
1.1478 + CREATE_OBJECT CFileMan CFileMan1
1.1479 + COMMAND RFs1 new
1.1480 + COMMAND RFs1 Connect
1.1481 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.1482 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.1483 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2034-001-Copy_command002
1.1484 + COMMAND !AsyncError=-12 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2034-001-Move_command003
1.1485 + OUTSTANDING
1.1486 + COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2034-001-Move_command004
1.1487 + OUTSTANDING
1.1488 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2034-001-Delete_command005
1.1489 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2034-001-RmDir_command006
1.1490 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.1491 + COMMAND CFileMan1 ~
1.1492 + COMMAND RFs1 ~
1.1493 + END_TEST_BLOCK
1.1494 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2034
1.1495 +
1.1496 +
1.1497 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2035
1.1498 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2035
1.1499 +//! @SYMAPI CFileMan
1.1500 +//! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) test.
1.1501 +//! Sets attributes for files(using wildcard) synchronously to read-only.
1.1502 +//! Uses API elements: NewL(), Copy(), Attribs();
1.1503 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.1504 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.1505 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1506 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.1507 +//! and {TestPath}fileman\Copy\ as second parameter,
1.1508 +//! and aSwitch=0.
1.1509 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1510 +//! and {TestPath}fileman\Test2.txt as first parameter,
1.1511 +//! and {TestPath}fileman\Copy\ as second parameter,
1.1512 +//! and aSwitch=0.
1.1513 +//! 5.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.1514 +//! and {TestPath}fileman\Copy\* as first parameter,
1.1515 +//! and KEntryAttReadOnly|KEntryAttHidden as second parameter,
1.1516 +//! and KEntryAttNormal as third parameter,
1.1517 +//! and TTime(0) as fourth parameter,
1.1518 +//! and aSwitch=0 as fifth parameter.
1.1519 +//! 6.Call RFs::Att() to check that attribute was set for both files (Test1.txt, Test2.txt).
1.1520 +//! 7.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.1521 +//! and {TestPath}fileman\Copy\* as first parameter,
1.1522 +//! and KEntryAttNormal as second parameter,
1.1523 +//! and KEntryAttReadOnly|KEntryAttHidden as third parameter,
1.1524 +//! and TTime(0) as fourth parameter,
1.1525 +//! and aSwitch=0 as fifth parameter.
1.1526 +//! @SYMTestStatus Implemented
1.1527 +//! @SYMTestPriority Critical
1.1528 +//! @SYMTestExpectedResults Attribs() returns KErrNone and attributes successfuly were changed for both files.
1.1529 +//! @SYMTestType CIT
1.1530 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.1531 + CREATE_OBJECT RFs RFs1
1.1532 + CREATE_OBJECT CFileMan CFileMan1
1.1533 + COMMAND RFs1 new
1.1534 + COMMAND RFs1 Connect
1.1535 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.1536 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.1537 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
1.1538 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0
1.1539 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2035-001-Attribs_command007
1.1540 + COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2035-001-Att_command008
1.1541 + COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2035-001-Att_command009
1.1542 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2035-001-Attribs_command010
1.1543 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2035-001-Delete_command011
1.1544 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.1545 + COMMAND CFileMan1 ~
1.1546 + COMMAND RFs1 ~
1.1547 + END_TEST_BLOCK
1.1548 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2035
1.1549 +
1.1550 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2036
1.1551 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2036
1.1552 +//! @SYMAPI CFileMan
1.1553 +//! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus) test.
1.1554 +//! Sets attributes for files(using wildcard) synchronously to read-only.
1.1555 +//! Uses API elements: NewL(), Copy(), Attribs();
1.1556 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.1557 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.1558 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1559 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.1560 +//! and {TestPath}fileman\Copy\ as second parameter,
1.1561 +//! and aSwitch=0.
1.1562 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1563 +//! and {TestPath}fileman\Test2.txt as first parameter,
1.1564 +//! and {TestPath}fileman\Copy\ as second parameter,
1.1565 +//! and aSwitch=0.
1.1566 +//! 5.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0, TRequestStatus &aStatus)
1.1567 +//! and {TestPath}fileman\Copy\* as first parameter,
1.1568 +//! and KEntryAttReadOnly|KEntryAttHidden as second parameter,
1.1569 +//! and KEntryAttNormal as third parameter,
1.1570 +//! and TTime(0) as fourth parameter,
1.1571 +//! and aSwitch=0 as fifth parameter.
1.1572 +//! and iStatus as fourth parameter.
1.1573 +//! 6.Call RFs::Att() to check that attribute was set for both files (Test1.txt, Test2.txt).
1.1574 +//! 7.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0, TRequestStatus &aStatus)
1.1575 +//! and {TestPath}fileman\Copy\* as first parameter,
1.1576 +//! and KEntryAttNormal as second parameter,
1.1577 +//! and KEntryAttReadOnly|KEntryAttHidden as third parameter,
1.1578 +//! and TTime(0) as fourth parameter,
1.1579 +//! and aSwitch=0 as fifth parameter.
1.1580 +//! and iStatus as fourth parameter.
1.1581 +//! @SYMTestStatus Implemented
1.1582 +//! @SYMTestPriority Critical
1.1583 +//! @SYMTestExpectedResults Attribs() returns KErrNone and attributes successfuly were changed for both files.
1.1584 +//! @SYMTestType CIT
1.1585 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.1586 + CREATE_OBJECT RFs RFs1
1.1587 + CREATE_OBJECT CFileMan CFileMan1
1.1588 + COMMAND RFs1 new
1.1589 + COMMAND RFs1 Connect
1.1590 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.1591 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.1592 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
1.1593 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0
1.1594 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2036-001-Attribs_command007
1.1595 + OUTSTANDING
1.1596 + COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2036-001-Att_command008
1.1597 + COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2036-001-Att_command009
1.1598 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2036-001-Attribs_command010
1.1599 + OUTSTANDING
1.1600 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2036-001-Delete_command011
1.1601 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.1602 + COMMAND CFileMan1 ~
1.1603 + COMMAND RFs1 ~
1.1604 + END_TEST_BLOCK
1.1605 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2036
1.1606 +
1.1607 +
1.1608 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2037
1.1609 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2037
1.1610 +//! @SYMAPI CFileMan
1.1611 +//! @SYMTestCaseDesc Function Copy(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) test.
1.1612 +//! Copy files using wildcard synchronously.
1.1613 +//! Uses API elements: NewL(), Copy(), Delete();
1.1614 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.1615 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.1616 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1617 +//! and {TestPath}fileman\* as first parameter,
1.1618 +//! and {TestPath}fileman\Copy\ as second parameter,
1.1619 +//! and aSwitch=0.
1.1620 +//! 4.Check that copied more that one file. Test1.txt and Test2.txt are exists.
1.1621 +//! @SYMTestStatus Implemented
1.1622 +//! @SYMTestPriority Critical
1.1623 +//! @SYMTestExpectedResults Attribs() returns KErrNone and attributes successfuly were changed for both files.
1.1624 +//! @SYMTestType CIT
1.1625 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.1626 + CREATE_OBJECT RFs RFs1
1.1627 + CREATE_OBJECT RFile RFile1
1.1628 + CREATE_OBJECT CFileMan CFileMan1
1.1629 + COMMAND RFs1 new
1.1630 + COMMAND RFs1 Connect
1.1631 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.1632 + COMMAND RFile1 new
1.1633 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.1634 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2037-001-Copy_command005
1.1635 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2037-001-Open_command006
1.1636 + COMMAND RFile1 Close
1.1637 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2037-001-Open_command007
1.1638 + COMMAND RFile1 Close
1.1639 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2037-001-Delete_command008
1.1640 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.1641 + COMMAND CFileMan1 ~
1.1642 + COMMAND RFile1 ~
1.1643 + COMMAND RFs1 ~
1.1644 + END_TEST_BLOCK
1.1645 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2037
1.1646 +
1.1647 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2038
1.1648 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2038
1.1649 +//! @SYMAPI CFileMan
1.1650 +//! @SYMTestCaseDesc Function Copy(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0, TRequestStatus &aStatus) test.
1.1651 +//! Copy files using wildcard asynchronously.
1.1652 +//! Uses API elements: NewL(), Copy(), Delete();
1.1653 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.1654 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.1655 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1656 +//! and {TestPath}fileman\* as first parameter,
1.1657 +//! and {TestPath}fileman\Copy\ as second parameter,
1.1658 +//! and aSwitch=0,
1.1659 +//! and iStatus.
1.1660 +//! 4.Check that copied more that one file. Test1.txt and Test2.txt are exists.
1.1661 +//! @SYMTestStatus Implemented
1.1662 +//! @SYMTestPriority Critical
1.1663 +//! @SYMTestExpectedResults Attribs() returns KErrNone and attributes successfuly were changed for both files.
1.1664 +//! @SYMTestType CIT
1.1665 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.1666 + CREATE_OBJECT RFs RFs1
1.1667 + CREATE_OBJECT RFile RFile1
1.1668 + CREATE_OBJECT CFileMan CFileMan1
1.1669 + COMMAND RFs1 new
1.1670 + COMMAND RFs1 Connect
1.1671 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.1672 + COMMAND RFile1 new
1.1673 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.1674 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2038-001-Copy_command005
1.1675 + OUTSTANDING
1.1676 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2038-001-Open_command006
1.1677 + COMMAND RFile1 Close
1.1678 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2038-001-Open_command007
1.1679 + COMMAND RFile1 Close
1.1680 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2038-001-Delete_command008
1.1681 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.1682 + COMMAND CFileMan1 ~
1.1683 + COMMAND RFile1 ~
1.1684 + COMMAND RFs1 ~
1.1685 + END_TEST_BLOCK
1.1686 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2038
1.1687 +
1.1688 +
1.1689 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2039
1.1690 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2039
1.1691 +//! @SYMAPI CFileBase
1.1692 +//! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
1.1693 +//! Move files synchronously using path with trailing slash and without
1.1694 +//! Uses API elements: NewL(), Move(), Delete();
1.1695 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.1696 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.1697 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1698 +//! and {TestPath}fileman\* as first parameter,
1.1699 +//! and {TestPath}fileman\Copy\ as second parameter,
1.1700 +//! and aSwitch=0,
1.1701 +//! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1702 +//! and {TestPath}fileman\Copy\ as first parameter,
1.1703 +//! and {TestPath}fileman\Copy1\ as second parameter,
1.1704 +//! and aSwitch=ERecurse,
1.1705 +//! 5.Check that "Copy1" contains files (Test1.txt and Test2.txt) and "Copy" doesn't.
1.1706 +//! 6.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1707 +//! and {TestPath}fileman\Copy1 as first parameter,
1.1708 +//! and {TestPath}fileman\Copy\ as second parameter,
1.1709 +//! and aSwitch=0,
1.1710 +//! 7.Check that folder "Copy1" now exists only "\Copy\Copy1\"
1.1711 +//! @SYMTestStatus Implemented
1.1712 +//! @SYMTestPriority Critical
1.1713 +//! @SYMTestExpectedResults Move() return KErrPathNotFound when non recursive Move.
1.1714 +//! @SYMTestType CIT
1.1715 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.1716 + CREATE_OBJECT RFs RFs1
1.1717 + CREATE_OBJECT RFile RFile1
1.1718 + CREATE_OBJECT RDir RDir1
1.1719 + CREATE_OBJECT CFileMan CFileMan1
1.1720 + COMMAND RFs1 new
1.1721 + COMMAND RFs1 Connect
1.1722 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.1723 + COMMAND RFile1 new
1.1724 + COMMAND RDir1 new
1.1725 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.1726 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2039-001-Copy_command002
1.1727 + COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2039-001-Move_command003
1.1728 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2039-001-Open_command004
1.1729 + COMMAND RFile1 Close
1.1730 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2039-001-Open_command005
1.1731 + COMMAND RFile1 Close
1.1732 + COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2039-001-Move_command006
1.1733 + COMMAND !Error=-12 RDir1 Open PBASE-F32-FileMan-PublicApi-2039-001-Open_command007
1.1734 + COMMAND RDir1 Open PBASE-F32-FileMan-PublicApi-2039-001-Open_command008
1.1735 + COMMAND RDir1 Close
1.1736 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2039-001-Delete_command009
1.1737 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2039-001-RmDir_command010
1.1738 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.1739 + COMMAND RFile1 ~
1.1740 + COMMAND RDir1 ~
1.1741 + COMMAND CFileMan1 ~
1.1742 + COMMAND RFs1 ~
1.1743 + END_TEST_BLOCK
1.1744 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2039
1.1745 +
1.1746 +
1.1747 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2040
1.1748 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2040
1.1749 +//! @SYMAPI CFileBase
1.1750 +//! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
1.1751 +//! Move files synchronously using path with trailing slash and without
1.1752 +//! Uses API elements: NewL(), Move(), Delete();
1.1753 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.1754 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.1755 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1756 +//! and {TestPath}fileman\* as first parameter,
1.1757 +//! and {TestPath}fileman\Copy\ as second parameter,
1.1758 +//! and aSwitch=0,
1.1759 +//! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1.1760 +//! and {TestPath}fileman\Copy\ as first parameter,
1.1761 +//! and {TestPath}fileman\Copy1\ as second parameter,
1.1762 +//! and aSwitch=ERecurse,
1.1763 +//! 5.Check that "Copy1" contains files (Test1.txt and Test2.txt) and does not contains folder "Copy".
1.1764 +//! 6.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1.1765 +//! and {TestPath}fileman\Copy1 as first parameter,
1.1766 +//! and {TestPath}fileman\Copy\ as second parameter,
1.1767 +//! and aSwitch=0,
1.1768 +//! 7.Check that folder "Copy1" was moved to "\Copy\Copy1\"
1.1769 +//! @SYMTestStatus Implemented
1.1770 +//! @SYMTestPriority Critical
1.1771 +//! @SYMTestExpectedResults Move() moves only files if trailing slash exists and whole folder if no trailing slash.
1.1772 +//! @SYMTestType CIT
1.1773 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.1774 + CREATE_OBJECT RFs RFs1
1.1775 + CREATE_OBJECT RFile RFile1
1.1776 + CREATE_OBJECT RDir RDir1
1.1777 + CREATE_OBJECT CFileMan CFileMan1
1.1778 + COMMAND RFs1 new
1.1779 + COMMAND RFs1 Connect
1.1780 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.1781 + COMMAND RFile1 new
1.1782 + COMMAND RDir1 new
1.1783 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.1784 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2040-001-Copy_command002
1.1785 + COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2040-001-Move_command003
1.1786 + OUTSTANDING
1.1787 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2040-001-Open_command004
1.1788 + COMMAND RFile1 Close
1.1789 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2040-001-Open_command005
1.1790 + COMMAND RFile1 Close
1.1791 + COMMAND !Error=-12 RDir1 Open PBASE-F32-FileMan-PublicApi-2040-001-Open_command006
1.1792 + COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2040-001-Move_command007
1.1793 + OUTSTANDING
1.1794 + COMMAND !Error=-12 RDir1 Open PBASE-F32-FileMan-PublicApi-2040-001-Open_command008
1.1795 + COMMAND RDir1 Open PBASE-F32-FileMan-PublicApi-2040-001-Open_command009
1.1796 + COMMAND RDir1 Close
1.1797 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2040-001-Delete_command010
1.1798 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2040-001-RmDir_command011
1.1799 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.1800 + COMMAND RFile1 ~
1.1801 + COMMAND CFileMan1 ~
1.1802 + COMMAND RFs1 ~
1.1803 + END_TEST_BLOCK
1.1804 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2040
1.1805 +
1.1806 +
1.1807 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2041
1.1808 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2041
1.1809 +//! @SYMAPI CFileBase
1.1810 +//! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
1.1811 +//! Synchronously Move files with ReadOnly and Hidden atributes and check that the moved files have the same attributes.
1.1812 +//! Uses API elements: NewL(), Copy(), Delete();
1.1813 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.1814 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.1815 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1816 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.1817 +//! and {TestPath}fileman\Copy\Test1.txt as second parameter.
1.1818 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1819 +//! and {TestPath}fileman\Test2.txt as first parameter,
1.1820 +//! and {TestPath}fileman\Copy\Test2.txt as second parameter.
1.1821 +//! 5.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.1822 +//! and {TestPath}fileman\Copy\ as first parameter,
1.1823 +//! and KEntryAttReadOnly|KEntryAttHidden as second parameter,
1.1824 +//! and KEntryAttNormal as third parameter,
1.1825 +//! and TTime(0) as fourth parameter,
1.1826 +//! and 0 as fifth parameter.
1.1827 +//! 6.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1828 +//! and {TestPath}fileman\Copy as first parameter,
1.1829 +//! and {TestPath}fileman\Copy1\ as second parameter,
1.1830 +//! and aSwitch = ERecurse.
1.1831 +//! 7.Check that files have the same attributes.
1.1832 +//! 8.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.1833 +//! and {TestPath}fileman\Copy1\ as first parameter,
1.1834 +//! and KEntryAttNormal as second parameter,
1.1835 +//! and KEntryAttReadOnly|KEntryAttHidden as third parameter,
1.1836 +//! and TTime(0) as fourth parameter,
1.1837 +//! and 0 as fifth parameter.
1.1838 +//! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.1839 +//! and {TestPath}fileman\Copy1\* as parameter.
1.1840 +//! @SYMTestStatus Implemented
1.1841 +//! @SYMTestPriority Critical
1.1842 +//! @SYMTestExpectedResults File attributes unchanged after Move().
1.1843 +//! @SYMTestType CIT
1.1844 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.1845 + CREATE_OBJECT RFs RFs1
1.1846 + CREATE_OBJECT CFileMan CFileMan1
1.1847 + COMMAND RFs1 new
1.1848 + COMMAND RFs1 Connect
1.1849 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.1850 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.1851 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_EOverWrite
1.1852 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_EOverWrite
1.1853 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2041-001-Attribs_command004
1.1854 + COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2041-001-Move_command005
1.1855 + COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2041-001-Att_command006
1.1856 + COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2041-001-Att_command007
1.1857 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2041-001-Attribs_command008
1.1858 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2041-001-Delete_command009
1.1859 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2041-001-RmDir_command010
1.1860 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.1861 + COMMAND CFileMan1 ~
1.1862 + COMMAND RFs1 ~
1.1863 + END_TEST_BLOCK
1.1864 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2041
1.1865 +
1.1866 +
1.1867 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2042
1.1868 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2042
1.1869 +//! @SYMAPI CFileBase
1.1870 +//! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
1.1871 +//! Asynchronously Move files with ReadOnly and Hidden atributes and check that the moved files have the same attributes.
1.1872 +//! Uses API elements: NewL(), Copy(), Delete();
1.1873 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.1874 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.1875 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1876 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.1877 +//! and {TestPath}fileman\Copy\Test1.txt as second parameter.
1.1878 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1879 +//! and {TestPath}fileman\Test2.txt as first parameter,
1.1880 +//! and {TestPath}fileman\Copy\Test2.txt as second parameter.
1.1881 +//! 5.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.1882 +//! and {TestPath}fileman\Copy\ as first parameter,
1.1883 +//! and KEntryAttReadOnly|KEntryAttHidden as second parameter,
1.1884 +//! and KEntryAttNormal as third parameter,
1.1885 +//! and TTime(0) as fourth parameter,
1.1886 +//! and 0 as fifth parameter.
1.1887 +//! 6.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1.1888 +//! and {TestPath}fileman\Copy as first parameter,
1.1889 +//! and {TestPath}fileman\Copy1\ as second parameter,
1.1890 +//! and aSwitch = ERecurse,
1.1891 +//! and iStatus.
1.1892 +//! 7.Check that files have the same attributes.
1.1893 +//! 8.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.1894 +//! and {TestPath}fileman\Copy1\ as first parameter,
1.1895 +//! and KEntryAttNormal as second parameter,
1.1896 +//! and KEntryAttReadOnly|KEntryAttHidden as third parameter,
1.1897 +//! and TTime(0) as fourth parameter,
1.1898 +//! and 0 as fifth parameter.
1.1899 +//! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.1900 +//! and {TestPath}fileman\Copy1\* as parameter.
1.1901 +//! @SYMTestStatus Implemented
1.1902 +//! @SYMTestPriority Critical
1.1903 +//! @SYMTestExpectedResults File attributes unchanged after Move().
1.1904 +//! @SYMTestType CIT
1.1905 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.1906 + CREATE_OBJECT RFs RFs1
1.1907 + CREATE_OBJECT CFileMan CFileMan1
1.1908 + COMMAND RFs1 new
1.1909 + COMMAND RFs1 Connect
1.1910 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.1911 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.1912 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_EOverWrite
1.1913 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_EOverWrite
1.1914 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2042-001-Attribs_command004
1.1915 + COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2042-001-Move_command005
1.1916 + OUTSTANDING
1.1917 + COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2042-001-Att_command006
1.1918 + COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2042-001-Att_command007
1.1919 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2042-001-Attribs_command008
1.1920 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2042-001-Delete_command009
1.1921 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2042-001-RmDir_command010
1.1922 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.1923 + COMMAND CFileMan1 ~
1.1924 + COMMAND RFs1 ~
1.1925 + END_TEST_BLOCK
1.1926 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2042
1.1927 +
1.1928 +
1.1929 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2043
1.1930 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2043
1.1931 +//! @SYMAPI CFileBase
1.1932 +//! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch) test.
1.1933 +//! Synchronously Rename file with ReadOnly and Hidden atributes and check that the renamed file have the same attributes.
1.1934 +//! Uses API elements: NewL(), Copy(), Rename(), Delete();
1.1935 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.1936 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.1937 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1938 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.1939 +//! and {TestPath}fileman\Copy\Test1.txt as second parameter.
1.1940 +//! 5.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.1941 +//! and {TestPath}fileman\Copy\Test1.txt as first parameter,
1.1942 +//! and KEntryAttReadOnly|KEntryAttHidden as second parameter,
1.1943 +//! and KEntryAttNormal as third parameter,
1.1944 +//! and TTime(0) as fourth parameter,
1.1945 +//! and 0 as fifth parameter.
1.1946 +//! 6.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1947 +//! and {TestPath}fileman\Copy\Test1.txt as first parameter,
1.1948 +//! and {TestPath}fileman\Copy\Test.txt as second parameter,
1.1949 +//! and aSwitch = 0.
1.1950 +//! 7.Check that files have the same attributes.
1.1951 +//! 8.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.1952 +//! and {TestPath}fileman\Copy\Test.txt as first parameter,
1.1953 +//! and KEntryAttNormal as second parameter,
1.1954 +//! and KEntryAttReadOnly|KEntryAttHidden as third parameter,
1.1955 +//! and TTime(0) as fourth parameter,
1.1956 +//! and 0 as fifth parameter.
1.1957 +//! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.1958 +//! and {TestPath}fileman\Copy\* as parameter.
1.1959 +//! @SYMTestStatus Implemented
1.1960 +//! @SYMTestPriority Critical
1.1961 +//! @SYMTestExpectedResults File attributes unchanged after Rename().
1.1962 +//! @SYMTestType CIT
1.1963 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.1964 + CREATE_OBJECT RFs RFs1
1.1965 + CREATE_OBJECT CFileMan CFileMan1
1.1966 + COMMAND RFs1 new
1.1967 + COMMAND RFs1 Connect
1.1968 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.1969 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.1970 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_EOverWrite
1.1971 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2043-001-Attribs_command004
1.1972 + COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2043-001-Rename_command005
1.1973 + COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2043-001-Att_command006
1.1974 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2043-001-Attribs_command007
1.1975 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2043-001-Delete_command008
1.1976 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.1977 + COMMAND CFileMan1 ~
1.1978 + COMMAND RFs1 ~
1.1979 + END_TEST_BLOCK
1.1980 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2043
1.1981 +
1.1982 +
1.1983 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2044
1.1984 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2044
1.1985 +//! @SYMAPI CFileBase
1.1986 +//! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) test.
1.1987 +//! Asynchronously Rename file with ReadOnly and Hidden atributes and check that the renamed file have the same attributes.
1.1988 +//! Uses API elements: NewL(), Copy(), Rename(), Delete();
1.1989 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.1990 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.1991 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.1992 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.1993 +//! and {TestPath}fileman\Copy\Test1.txt as second parameter.
1.1994 +//! 5.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.1995 +//! and {TestPath}fileman\Copy\Test1.txt as first parameter,
1.1996 +//! and KEntryAttReadOnly|KEntryAttHidden as second parameter,
1.1997 +//! and KEntryAttNormal as third parameter,
1.1998 +//! and TTime(0) as fourth parameter,
1.1999 +//! and 0 as fifth parameter.
1.2000 +//! 6.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1.2001 +//! and {TestPath}fileman\Copy\Test1.txt as first parameter,
1.2002 +//! and {TestPath}fileman\Copy\Test.txt as second parameter,
1.2003 +//! and aSwitch = 0,
1.2004 +//! and iStatus.
1.2005 +//! 7.Check that files have the same attributes.
1.2006 +//! 8.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.2007 +//! and {TestPath}fileman\Copy\Test.txt as first parameter,
1.2008 +//! and KEntryAttNormal as second parameter,
1.2009 +//! and KEntryAttReadOnly|KEntryAttHidden as third parameter,
1.2010 +//! and TTime(0) as fourth parameter,
1.2011 +//! and 0 as fifth parameter.
1.2012 +//! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.2013 +//! and {TestPath}fileman\Copy\* as parameter.
1.2014 +//! @SYMTestStatus Implemented
1.2015 +//! @SYMTestPriority Critical
1.2016 +//! @SYMTestExpectedResults File attributes unchanged after Rename().
1.2017 +//! @SYMTestType CIT
1.2018 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.2019 + CREATE_OBJECT RFs RFs1
1.2020 + CREATE_OBJECT CFileMan CFileMan1
1.2021 + COMMAND RFs1 new
1.2022 + COMMAND RFs1 Connect
1.2023 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.2024 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.2025 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_EOverWrite
1.2026 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2044-001-Attribs_command004
1.2027 + COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2044-001-Rename_command005
1.2028 + OUTSTANDING
1.2029 + COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2044-001-Att_command006
1.2030 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2044-001-Attribs_command007
1.2031 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2044-001-Delete_command008
1.2032 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.2033 + COMMAND CFileMan1 ~
1.2034 + COMMAND RFs1 ~
1.2035 + END_TEST_BLOCK
1.2036 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2044
1.2037 +
1.2038 +
1.2039 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2045
1.2040 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2045
1.2041 +//! @SYMAPI CFileBase
1.2042 +//! @SYMTestCaseDesc Function Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
1.2043 +//! Call asynchronous 3 Copy() functions at once.
1.2044 +//! Uses API elements: NewL(), Copy(), Delete();
1.2045 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.2046 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.2047 +//! 3.Call CFileMan::Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1.2048 +//! and Opened RFile handle "{TestPath}fileman\Test1.txt" as first parameter,
1.2049 +//! and {TestPath}fileman\Copy\Test1.txt as second parameter,
1.2050 +//! and aSwitch = 0,
1.2051 +//! and iStatus.
1.2052 +//! 4.Call CFileMan::Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1.2053 +//! and Opened RFile handle "{TestPath}fileman\Test2.txt" as first parameter,
1.2054 +//! and {TestPath}fileman\Copy\Test2.txt as second parameter.
1.2055 +//! and aSwitch = 0,
1.2056 +//! and iStatus.
1.2057 +//! 5.Call CFileMan::Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1.2058 +//! and Opened RFile handle "{TestPath}fileman\Test3.txt" as first parameter,
1.2059 +//! and {TestPath}fileman\Copy\Test3.txt as second parameter.
1.2060 +//! and aSwitch = 0,
1.2061 +//! and iStatus.
1.2062 +//! 6.Check that only first file was copied other copy calls return KErrInUse.
1.2063 +//! 7.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.2064 +//! and {TestPath}fileman\Copy\* as parameter.
1.2065 +//! @SYMTestStatus Implemented
1.2066 +//! @SYMTestPriority Critical
1.2067 +//! @SYMTestExpectedResults All files were copied.
1.2068 +//! @SYMTestType CIT
1.2069 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.2070 + CREATE_OBJECT RFs RFs1
1.2071 + CREATE_OBJECT RFile RFile1
1.2072 + CREATE_OBJECT CFileMan CFileMan1
1.2073 + COMMAND RFs1 new
1.2074 + COMMAND RFs1 Connect
1.2075 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.2076 + COMMAND RFile1 new
1.2077 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.2078 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2045-001-Copy_command002
1.2079 + COMMAND !Error=-14 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2045-001-Copy_command003
1.2080 + COMMAND !Error=-14 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2045-001-Copy_command004
1.2081 + OUTSTANDING
1.2082 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2045-001-Open_command005
1.2083 + COMMAND RFile1 Close
1.2084 + COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2045-001-Open_command006
1.2085 + COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2045-001-Open_command007
1.2086 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2045-001-Delete_command008
1.2087 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.2088 + COMMAND CFileMan1 ~
1.2089 + COMMAND RFile1 ~
1.2090 + COMMAND RFs1 ~
1.2091 + END_TEST_BLOCK
1.2092 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2045
1.2093 +
1.2094 +
1.2095 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2046
1.2096 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2046
1.2097 +//! @SYMAPI CFileBase
1.2098 +//! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
1.2099 +//! Call asynchronous 3 Move() functions at once.
1.2100 +//! Uses API elements: NewL(), Cope(), Move(), Delete();
1.2101 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.2102 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.2103 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.2104 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.2105 +//! and {TestPath}fileman\Copy\Test1.txt as second parameter,
1.2106 +//! and aSwitch = 0.
1.2107 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.2108 +//! and {TestPath}fileman\Test2.txt as first parameter,
1.2109 +//! and {TestPath}fileman\Copy\Test2.txt as second parameter.
1.2110 +//! and aSwitch = 0.
1.2111 +//! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.2112 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.2113 +//! and {TestPath}fileman\Copy\Test3.txt as second parameter.
1.2114 +//! and aSwitch = 0.
1.2115 +//! 6.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1.2116 +//! and {TestPath}fileman\Copy\Test1.txt as first parameter,
1.2117 +//! and {TestPath}fileman\Test\Test1.txt as second parameter,
1.2118 +//! and aSwitch = 0,
1.2119 +//! and iStatus.
1.2120 +//! 7.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1.2121 +//! and {TestPath}fileman\Copy\Test2.txt as first parameter,
1.2122 +//! and {TestPath}fileman\Test\Test2.txt as second parameter.
1.2123 +//! and aSwitch = 0,
1.2124 +//! and iStatus.
1.2125 +//! 8.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1.2126 +//! and {TestPath}fileman\Copy\Test3.txt as first parameter,
1.2127 +//! and {TestPath}fileman\Test\Test3.txt as second parameter.
1.2128 +//! and aSwitch = 0,
1.2129 +//! and iStatus.
1.2130 +//! 9.Check that only first file was moved other Move calls return KErrInUse.
1.2131 +//! 10.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.2132 +//! and {TestPath}fileman\Copy\* as parameter.
1.2133 +//! 11.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.2134 +//! and {TestPath}fileman\Test\* as parameter.
1.2135 +//! @SYMTestStatus Implemented
1.2136 +//! @SYMTestPriority Critical
1.2137 +//! @SYMTestExpectedResults All files were moved.
1.2138 +//! @SYMTestType CIT
1.2139 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.2140 + CREATE_OBJECT RFs RFs1
1.2141 + CREATE_OBJECT RFile RFile1
1.2142 + CREATE_OBJECT CFileMan CFileMan1
1.2143 + COMMAND RFs1 new
1.2144 + COMMAND RFs1 Connect
1.2145 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.2146 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir
1.2147 + COMMAND RFile1 new
1.2148 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.2149 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
1.2150 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0
1.2151 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0
1.2152 + COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2046-001-Move_command002
1.2153 + COMMAND !Error=-14 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2046-001-Move_command003
1.2154 + COMMAND !Error=-14 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2046-001-Move_command004
1.2155 + OUTSTANDING
1.2156 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2046-001-Open_command005
1.2157 + COMMAND RFile1 Close
1.2158 + COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2046-001-Open_command006
1.2159 + COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2046-001-Open_command007
1.2160 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2046-001-Delete_command008
1.2161 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2046-001-Delete_command009
1.2162 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.2163 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir
1.2164 + COMMAND RFile1 ~
1.2165 + COMMAND CFileMan1 ~
1.2166 + COMMAND RFs1 ~
1.2167 + END_TEST_BLOCK
1.2168 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2046
1.2169 +
1.2170 +
1.2171 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2047
1.2172 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2047
1.2173 +//! @SYMAPI CFileBase
1.2174 +//! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
1.2175 +//! Call asynchronous 3 Rename() functions at once.
1.2176 +//! Uses API elements: NewL(), Cope(), Rename(), Delete();
1.2177 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.2178 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.2179 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.2180 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.2181 +//! and {TestPath}fileman\Copy\Test1.txt as second parameter,
1.2182 +//! and aSwitch = 0.
1.2183 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.2184 +//! and {TestPath}fileman\Test2.txt as first parameter,
1.2185 +//! and {TestPath}fileman\Copy\Test2.txt as second parameter.
1.2186 +//! and aSwitch = 0.
1.2187 +//! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.2188 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.2189 +//! and {TestPath}fileman\Copy\Test3.txt as second parameter.
1.2190 +//! and aSwitch = 0.
1.2191 +//! 6.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1.2192 +//! and {TestPath}fileman\Copy\Test1.txt as first parameter,
1.2193 +//! and {TestPath}fileman\Copy\Test1_new.txt as second parameter,
1.2194 +//! and aSwitch = 0,
1.2195 +//! and iStatus.
1.2196 +//! 7.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1.2197 +//! and {TestPath}fileman\Copy\Test2.txt as first parameter,
1.2198 +//! and {TestPath}fileman\Test\Test2_new.txt as second parameter.
1.2199 +//! and aSwitch = 0,
1.2200 +//! and iStatus.
1.2201 +//! 8.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1.2202 +//! and {TestPath}fileman\Copy\Test3.txt as first parameter,
1.2203 +//! and {TestPath}fileman\Test\Test3_new.txt as second parameter.
1.2204 +//! and aSwitch = 0,
1.2205 +//! and iStatus.
1.2206 +//! 9.Check that only first file was renamed other Rename calls return KErrInUse.
1.2207 +//! 10.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.2208 +//! and {TestPath}fileman\Copy\* as parameter.
1.2209 +//! @SYMTestStatus Implemented
1.2210 +//! @SYMTestPriority Critical
1.2211 +//! @SYMTestExpectedResults All files were moved.
1.2212 +//! @SYMTestType CIT
1.2213 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.2214 + CREATE_OBJECT RFs RFs1
1.2215 + CREATE_OBJECT RFile RFile1
1.2216 + CREATE_OBJECT CFileMan CFileMan1
1.2217 + COMMAND RFs1 new
1.2218 + COMMAND RFs1 Connect
1.2219 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.2220 + COMMAND RFile1 new
1.2221 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.2222 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
1.2223 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0
1.2224 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0
1.2225 + COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2047-001-Rename_command002
1.2226 + COMMAND !Error=-14 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2047-001-Rename_command003
1.2227 + COMMAND !Error=-14 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2047-001-Rename_command004
1.2228 + OUTSTANDING
1.2229 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2047-001-Open_command005
1.2230 + COMMAND RFile1 Close
1.2231 + COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2047-001-Open_command006
1.2232 + COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2047-001-Open_command007
1.2233 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2047-001-Delete_command008
1.2234 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.2235 + COMMAND RFile1 ~
1.2236 + COMMAND CFileMan1 ~
1.2237 + COMMAND RFs1 ~
1.2238 + END_TEST_BLOCK
1.2239 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2047
1.2240 +
1.2241 +
1.2242 +
1.2243 +//////////////////////////////////////////////////////////////////////
1.2244 +//////////////////////////////////////////////////////////////////////
1.2245 +////// //////
1.2246 +////// /////////////////////////////////// //////
1.2247 +////// /// /// //////
1.2248 +////// /// NEGATIVE TESTS /// //////
1.2249 +////// /// /// //////
1.2250 +////// /////////////////////////////////// //////
1.2251 +////// //////
1.2252 +//////////////////////////////////////////////////////////////////////
1.2253 +//////////////////////////////////////////////////////////////////////
1.2254 +
1.2255 +
1.2256 +////////////////////////////////////////////////////////////////////////////////////////////////////
1.2257 +//
1.2258 +//ATTRIBS
1.2259 +//Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.2260 +//
1.2261 +////////////////////////////////////////////////////////////////////////////////////////////////////
1.2262 +
1.2263 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2103
1.2264 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2103
1.2265 +//! @SYMAPI CFileMan
1.2266 +//! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) negative test.
1.2267 +//! Try to set attribute KEntryAttDir synchronously for file!
1.2268 +//! And then check that it was not set for file
1.2269 +//! Uses API elements: NewL(), Attribs().
1.2270 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.2271 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.2272 +//! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.2273 +//! and {TestPath}fileman\Test2.txt as first parameter,
1.2274 +//! and KEntryAttDir as second parameter,
1.2275 +//! and KEntryAttNormal as third parameter,
1.2276 +//! and TTime(0) as fourth parameter,
1.2277 +//! and 0 as fifth parameter.
1.2278 +//! @SYMTestStatus Implemented
1.2279 +//! @SYMTestPriority Critical
1.2280 +//! @SYMTestExpectedResults Attribute KEntryAttDir wasn't set for file.
1.2281 +//! @SYMTestType CIT
1.2282 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.2283 + CREATE_OBJECT RFs RFs1
1.2284 + CREATE_OBJECT CFileMan CFileMan1
1.2285 + COMMAND RFs1 new
1.2286 + COMMAND RFs1 Connect
1.2287 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.2288 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2103-001-Attribs_command005
1.2289 + COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2103-001-Att_command006
1.2290 + COMMAND CFileMan1 ~
1.2291 + COMMAND RFs1 ~
1.2292 + END_TEST_BLOCK
1.2293 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2103
1.2294 +
1.2295 +
1.2296 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2104
1.2297 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2104
1.2298 +//! @SYMAPI CFileMan
1.2299 +//! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) negative test.
1.2300 +//! Try to set attributes synchronously with wrong file path!
1.2301 +//! Uses API elements: NewL(), Attribs().
1.2302 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.2303 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.2304 +//! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.2305 +//! and {TestPath}fileman\\\Test2.txt as first parameter,
1.2306 +//! and KEntryAttReadOnly as second parameter,
1.2307 +//! and KEntryAttNormal as third parameter,
1.2308 +//! and TTime(0) as fourth parameter,
1.2309 +//! and CFileMan::ERecurse as fifth parameter.
1.2310 +//! @SYMTestStatus Implemented
1.2311 +//! @SYMTestPriority Critical
1.2312 +//! @SYMTestExpectedResults Function Attribs() returns KErrBadName.
1.2313 +//! @SYMTestType CIT
1.2314 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.2315 + CREATE_OBJECT RFs RFs1
1.2316 + CREATE_OBJECT CFileMan CFileMan1
1.2317 + COMMAND RFs1 new
1.2318 + COMMAND RFs1 Connect
1.2319 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.2320 + COMMAND !Error=-28 CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2104-001-Attribs_command005
1.2321 + COMMAND CFileMan1 ~
1.2322 + COMMAND RFs1 ~
1.2323 + END_TEST_BLOCK
1.2324 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2104
1.2325 +
1.2326 +
1.2327 +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1.2328 +//
1.2329 +//ATTRIBS
1.2330 +//Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus)
1.2331 +//
1.2332 +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1.2333 +
1.2334 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2105
1.2335 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2105
1.2336 +//! @SYMAPI CFileMan
1.2337 +//! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus)
1.2338 +//! negative test.
1.2339 +//! Try to set attribute KEntryAttDir asynchronously for file!
1.2340 +//! And then check that it was not set for file
1.2341 +//! Uses API elements: NewL(), Attribs().
1.2342 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.2343 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.2344 +//! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus)
1.2345 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.2346 +//! and KEntryAttDir as second parameter,
1.2347 +//! and KEntryAttNormal as third parameter,
1.2348 +//! and TTime(0) as fourth parameter,
1.2349 +//! and 0 as fifth parameter,
1.2350 +//! and iStatus as sixth parameter.
1.2351 +//! @SYMTestStatus Implemented
1.2352 +//! @SYMTestPriority Critical
1.2353 +//! @SYMTestExpectedResults Attribute KEntryAttDir wasn't set for file.
1.2354 +//! @SYMTestType CIT
1.2355 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.2356 + CREATE_OBJECT RFs RFs1
1.2357 + CREATE_OBJECT CFileMan CFileMan1
1.2358 + COMMAND RFs1 new
1.2359 + COMMAND RFs1 Connect
1.2360 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.2361 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2105-001-Attribs_command005
1.2362 + OUTSTANDING
1.2363 + COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2105-001-Att_command006
1.2364 + COMMAND CFileMan1 ~
1.2365 + COMMAND RFs1 ~
1.2366 + END_TEST_BLOCK
1.2367 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2105
1.2368 +
1.2369 +
1.2370 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2106
1.2371 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2106
1.2372 +//! @SYMAPI CFileMan
1.2373 +//! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus)
1.2374 +//! negative test.
1.2375 +//! Try to set attributes asynchronously with wrong file path!
1.2376 +//! Uses API elements: NewL(), Attribs().
1.2377 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.2378 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.2379 +//! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus)
1.2380 +//! and {TestPath}fileman\\\Test2.txt as first parameter,
1.2381 +//! and KEntryAttReadOnly as second parameter,
1.2382 +//! and KEntryAttNormal as third parameter,
1.2383 +//! and TTime(0) as fourth parameter,
1.2384 +//! and CFileMan::ERecurse as fifth parameter,
1.2385 +//! and iStatus as sixth parameter.
1.2386 +//! @SYMTestStatus Implemented
1.2387 +//! @SYMTestPriority Critical
1.2388 +//! @SYMTestExpectedResults Function Attribs() returns KErrBadName.
1.2389 +//! @SYMTestType CIT
1.2390 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.2391 + CREATE_OBJECT RFs RFs1
1.2392 + CREATE_OBJECT CFileMan CFileMan1
1.2393 + COMMAND RFs1 new
1.2394 + COMMAND RFs1 Connect
1.2395 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.2396 + COMMAND !AsyncError=-28 CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2106-001-Attribs_command005
1.2397 + OUTSTANDING
1.2398 + COMMAND CFileMan1 ~
1.2399 + COMMAND RFs1 ~
1.2400 + END_TEST_BLOCK
1.2401 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2106
1.2402 +
1.2403 +
1.2404 +///////////////////////////////////////////////////////////////////////
1.2405 +//
1.2406 +//COPY
1.2407 +//Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite)
1.2408 +//
1.2409 +///////////////////////////////////////////////////////////////////////
1.2410 +
1.2411 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2107
1.2412 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2107
1.2413 +//! @SYMAPI CFileMan
1.2414 +//! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test.
1.2415 +//! Sets file attributes to normal and tries to copy non-existing file synchronously from one directory to another.
1.2416 +//! Uses API elements: NewL(), Attribs(), Copy().
1.2417 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.2418 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.2419 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.2420 +//! and {TestPath}fileman\Test123.txt as first parameter,
1.2421 +//! and {TestPath}fileman\Copy\ as second parameter.
1.2422 +//! @SYMTestStatus Implemented
1.2423 +//! @SYMTestPriority Critical
1.2424 +//! @SYMTestExpectedResults Copy() returns KErrNotFound.
1.2425 +//! @SYMTestType CIT
1.2426 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.2427 + CREATE_OBJECT RFs RFs1
1.2428 + CREATE_OBJECT CFileMan CFileMan1
1.2429 + COMMAND RFs1 new
1.2430 + COMMAND RFs1 Connect
1.2431 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.2432 + COMMAND !Error=-1 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2107-001-Copy_command005
1.2433 + COMMAND CFileMan1 ~
1.2434 + COMMAND RFs1 ~
1.2435 + END_TEST_BLOCK
1.2436 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2107
1.2437 +
1.2438 +
1.2439 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2108
1.2440 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2108
1.2441 +//! @SYMAPI CFileMan
1.2442 +//! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test.
1.2443 +//! Sets file attributes to normal and tries to copy file with wrong path name from one directory to another synchronously.
1.2444 +//! Uses API elements: NewL(), Attribs(), Copy().
1.2445 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.2446 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.2447 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.2448 +//! and {TestPath}fileman\\\\\Test3.txt as first parameter,
1.2449 +//! and {TestPath}fileman\Copy\ as second parameter.
1.2450 +//! @SYMTestStatus Implemented
1.2451 +//! @SYMTestPriority Critical
1.2452 +//! @SYMTestExpectedResults Copy() returns KErrBadName.
1.2453 +//! @SYMTestType CIT
1.2454 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.2455 + CREATE_OBJECT RFs RFs1
1.2456 + CREATE_OBJECT CFileMan CFileMan1
1.2457 + COMMAND RFs1 new
1.2458 + COMMAND RFs1 Connect
1.2459 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.2460 + COMMAND !Error=-28 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2108-001-Copy_command005
1.2461 + COMMAND CFileMan1 ~
1.2462 + COMMAND RFs1 ~
1.2463 + END_TEST_BLOCK
1.2464 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2108
1.2465 +
1.2466 +
1.2467 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2109
1.2468 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2109
1.2469 +//! @SYMAPI CFileMan
1.2470 +//! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test.
1.2471 +//! Sets file attributes to normal and tries to copy file from one directory to directory with wrong path name synchronously.
1.2472 +//! Uses API elements: NewL(), Attribs(), Copy().
1.2473 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.2474 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.2475 +//! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.2476 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.2477 +//! and KEntryAttNormal as second parameter,
1.2478 +//! and KEntryAttReadOnly as third parameter,
1.2479 +//! and TTime(0) as fourth parameter,
1.2480 +//! and CFileMan::EOverWrite as fifth parameter.
1.2481 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.2482 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.2483 +//! and {TestPath}fileman\/\/\Copy\ as second parameter.
1.2484 +//! @SYMTestStatus Implemented
1.2485 +//! @SYMTestPriority Critical
1.2486 +//! @SYMTestExpectedResults Copy() returns KErrBadName.
1.2487 +//! @SYMTestType CIT
1.2488 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.2489 + CREATE_OBJECT RFs RFs1
1.2490 + CREATE_OBJECT CFileMan CFileMan1
1.2491 + COMMAND RFs1 new
1.2492 + COMMAND RFs1 Connect
1.2493 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.2494 + COMMAND !Error=-28 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2109-001-Copy_command005
1.2495 + COMMAND CFileMan1 ~
1.2496 + COMMAND RFs1 ~
1.2497 + END_TEST_BLOCK
1.2498 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2109
1.2499 +
1.2500 +
1.2501 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2110
1.2502 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2110
1.2503 +//! @SYMAPI CFileMan
1.2504 +//! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test.
1.2505 +//! Sets file attributes to normal and tries to copy file from one directory to non-existing directory synchronously.
1.2506 +//! Uses API elements: NewL(), Attribs(), Copy().
1.2507 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.2508 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.2509 +//! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.2510 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.2511 +//! and KEntryAttNormal as second parameter,
1.2512 +//! and KEntryAttReadOnly as third parameter,
1.2513 +//! and TTime(0) as fourth parameter,
1.2514 +//! and CFileMan::EOverWrite as fifth parameter.
1.2515 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.2516 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.2517 +//! and {TestPath}fileman\NotExist\ as second parameter.
1.2518 +//! @SYMTestStatus Implemented
1.2519 +//! @SYMTestPriority Critical
1.2520 +//! @SYMTestExpectedResults Copy() returns KErrPathNotFound
1.2521 +//! @SYMTestType CIT
1.2522 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.2523 + CREATE_OBJECT RFs RFs1
1.2524 + CREATE_OBJECT CFileMan CFileMan1
1.2525 + COMMAND RFs1 new
1.2526 + COMMAND RFs1 Connect
1.2527 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.2528 + COMMAND !Error=-12 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2110-001-Copy_command005
1.2529 + COMMAND CFileMan1 ~
1.2530 + COMMAND RFs1 ~
1.2531 + END_TEST_BLOCK
1.2532 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2110
1.2533 +
1.2534 +
1.2535 +/////////////////////////////////////////////////////////////////////////////////////
1.2536 +//
1.2537 +//COPY
1.2538 +//Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus)
1.2539 +//
1.2540 +/////////////////////////////////////////////////////////////////////////////////////
1.2541 +
1.2542 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2111
1.2543 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2111
1.2544 +//! @SYMAPI CFileMan
1.2545 +//! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test.
1.2546 +//! Sets file attributes to normal and tries to copy non-existing file from one directory to another asynchronously.
1.2547 +//! Uses API elements: NewL(), Attribs(), Copy().
1.2548 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.2549 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.2550 +//! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus)
1.2551 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.2552 +//! and KEntryAttNormal as second parameter,
1.2553 +//! and KEntryAttReadOnly as third parameter, and TTime(0) as fourth parameter,
1.2554 +//! and CFileMan::EOverWrite as fifth parameter,
1.2555 +//! and iStatus as sixth parameter.
1.2556 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus).
1.2557 +//! and {TestPath}fileman\Test123.txt as first parameter,
1.2558 +//! and {TestPath}fileman\Copy\ as second parameter,
1.2559 +//! and iStatus as last parameter.
1.2560 +//! @SYMTestStatus Implemented
1.2561 +//! @SYMTestPriority Critical
1.2562 +//! @SYMTestExpectedResults Copy() returns KErrNotFound.
1.2563 +//! @SYMTestType CIT
1.2564 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.2565 + CREATE_OBJECT RFs RFs1
1.2566 + CREATE_OBJECT CFileMan CFileMan1
1.2567 + COMMAND RFs1 new
1.2568 + COMMAND RFs1 Connect
1.2569 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.2570 + COMMAND !AsyncError=-1 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2111-001-Copy_command005
1.2571 + OUTSTANDING
1.2572 + COMMAND CFileMan1 ~
1.2573 + COMMAND RFs1 ~
1.2574 + END_TEST_BLOCK
1.2575 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2111
1.2576 +
1.2577 +
1.2578 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2112
1.2579 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2112
1.2580 +//! @SYMAPI CFileMan
1.2581 +//! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test.
1.2582 +//! Sets file attributes to normal and tries to copy file with wrong path name from one directory to another asynchronously.
1.2583 +//! Uses API elements: NewL(), Attribs(), Copy().
1.2584 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.2585 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.2586 +//! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus)
1.2587 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.2588 +//! and KEntryAttNormal as second parameter,
1.2589 +//! and KEntryAttReadOnly as third parameter, and TTime(0) as fourth parameter,
1.2590 +//! and CFileMan::EOverWrite as fifth parameter,
1.2591 +//! and iStatus as sixth parameter.
1.2592 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus).
1.2593 +//! and {TestPath}fileman\\\\\\Test3.txt as first parameter,
1.2594 +//! and {TestPath}fileman\Copy\ as second parameter,
1.2595 +//! and iStatus as last parameter.
1.2596 +//! @SYMTestStatus Implemented
1.2597 +//! @SYMTestPriority Critical
1.2598 +//! @SYMTestExpectedResults Copy() returns KErrBadName.
1.2599 +//! @SYMTestType CIT
1.2600 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.2601 + CREATE_OBJECT RFs RFs1
1.2602 + CREATE_OBJECT CFileMan CFileMan1
1.2603 + COMMAND RFs1 new
1.2604 + COMMAND RFs1 Connect
1.2605 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.2606 + COMMAND !AsyncError=-28 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2112-001-Copy_command005
1.2607 + OUTSTANDING
1.2608 + COMMAND CFileMan1 ~
1.2609 + COMMAND RFs1 ~
1.2610 + END_TEST_BLOCK
1.2611 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2112
1.2612 +
1.2613 +
1.2614 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2113
1.2615 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2113
1.2616 +//! @SYMAPI CFileMan
1.2617 +//! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test.
1.2618 +//! Sets file attributes to normal and tries to copy file from one directory to directory with wrong path name asynchronously.
1.2619 +//! Uses API elements: NewL(), Attribs(), Copy().
1.2620 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.2621 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.2622 +//! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus)
1.2623 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.2624 +//! and KEntryAttNormal as second parameter,
1.2625 +//! and KEntryAttReadOnly as third parameter, and TTime(0) as fourth parameter,
1.2626 +//! and CFileMan::EOverWrite as fifth parameter,
1.2627 +//! and iStatus as sixth parameter.
1.2628 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus).
1.2629 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.2630 +//! and {TestPath}fileman\/\/\Copy\ as second parameter,
1.2631 +//! and iStatus as last parameter.
1.2632 +//! @SYMTestStatus Implemented
1.2633 +//! @SYMTestPriority Critical
1.2634 +//! @SYMTestExpectedResults Copy() returns KErrBadName.
1.2635 +//! @SYMTestType CIT
1.2636 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.2637 + CREATE_OBJECT RFs RFs1
1.2638 + CREATE_OBJECT CFileMan CFileMan1
1.2639 + COMMAND RFs1 new
1.2640 + COMMAND RFs1 Connect
1.2641 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.2642 + COMMAND !AsyncError=-28 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2113-001-Copy_command005
1.2643 + OUTSTANDING
1.2644 + COMMAND CFileMan1 ~
1.2645 + COMMAND RFs1 ~
1.2646 + END_TEST_BLOCK
1.2647 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2113
1.2648 +
1.2649 +
1.2650 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2114
1.2651 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2114
1.2652 +//! @SYMAPI CFileMan
1.2653 +//! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test.
1.2654 +//! Sets file attributes to normal and tries to copy file from one directory to non-existing directory asynchronously.
1.2655 +//! Uses API elements: NewL(), Attribs(), Copy().
1.2656 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.2657 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.2658 +//! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus)
1.2659 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.2660 +//! and KEntryAttNormal as second parameter,
1.2661 +//! and KEntryAttReadOnly as third parameter, and TTime(0) as fourth parameter,
1.2662 +//! and CFileMan::EOverWrite as fifth parameter,
1.2663 +//! and iStatus as sixth parameter.
1.2664 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus).
1.2665 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.2666 +//! and {TestPath}fileman\NotExist\ as second parameter,
1.2667 +//! and iStatus as last parameter.
1.2668 +//! @SYMTestStatus Implemented
1.2669 +//! @SYMTestPriority Critical
1.2670 +//! @SYMTestExpectedResults Copy() returns KErrPathNotFound
1.2671 +//! @SYMTestType CIT
1.2672 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.2673 + CREATE_OBJECT RFs RFs1
1.2674 + CREATE_OBJECT CFileMan CFileMan1
1.2675 + COMMAND RFs1 new
1.2676 + COMMAND RFs1 Connect
1.2677 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.2678 + COMMAND !AsyncError=-12 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2114-001-Copy_command005
1.2679 + OUTSTANDING
1.2680 + COMMAND CFileMan1 ~
1.2681 + COMMAND RFs1 ~
1.2682 + END_TEST_BLOCK
1.2683 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2114
1.2684 +
1.2685 +
1.2686 +//////////////////////////////////////////////
1.2687 +//
1.2688 +//DELETE
1.2689 +//Delete(const TDesC &aName, TUint aSwitch=0)
1.2690 +//
1.2691 +//////////////////////////////////////////////
1.2692 +
1.2693 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2115
1.2694 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2115
1.2695 +//! @SYMAPI CFileMan
1.2696 +//! @SYMTestCaseDesc Function Delete(const TDesC &aName, TUint aSwitch=0) negative test.
1.2697 +//! Tries to delete non-existing file synchronously.
1.2698 +//! Uses API elements: NewL(), Delete().
1.2699 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.2700 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.2701 +//! 3.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), and {TestPath}fileman\Test123.txt as parameter
1.2702 +//! @SYMTestStatus Implemented
1.2703 +//! @SYMTestPriority Critical
1.2704 +//! @SYMTestExpectedResults Delete() returns KErrNotFound.
1.2705 +//! @SYMTestType CIT
1.2706 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.2707 + CREATE_OBJECT RFs RFs1
1.2708 + CREATE_OBJECT CFileMan CFileMan1
1.2709 + COMMAND RFs1 new
1.2710 + COMMAND RFs1 Connect
1.2711 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.2712 + COMMAND !Error=-1 CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2115-001-Delete_command005
1.2713 + COMMAND CFileMan1 ~
1.2714 + COMMAND RFs1 ~
1.2715 + END_TEST_BLOCK
1.2716 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2115
1.2717 +
1.2718 +
1.2719 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2116
1.2720 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2116
1.2721 +//! @SYMAPI CFileMan
1.2722 +//! @SYMTestCaseDesc Function Delete(const TDesC &aName, TUint aSwitch=0) negative test.
1.2723 +//! Tries to delete file with wrong path name synchronously.
1.2724 +//! Uses API elements: NewL(), Delete().
1.2725 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.2726 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.2727 +//! 3.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), and {TestPath}fileman\\\\\Test3.txt as parameter
1.2728 +//! @SYMTestStatus Implemented
1.2729 +//! @SYMTestPriority Critical
1.2730 +//! @SYMTestExpectedResults Delete() returns KErrBadName.
1.2731 +//! @SYMTestType CIT
1.2732 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.2733 + CREATE_OBJECT RFs RFs1
1.2734 + CREATE_OBJECT CFileMan CFileMan1
1.2735 + COMMAND RFs1 new
1.2736 + COMMAND RFs1 Connect
1.2737 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.2738 + COMMAND !Error=-28 CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2116-001-Delete_command005
1.2739 + COMMAND CFileMan1 ~
1.2740 + COMMAND RFs1 ~
1.2741 + END_TEST_BLOCK
1.2742 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2116
1.2743 +
1.2744 +
1.2745 +//////////////////////////////////////////////////////////////////////
1.2746 +//
1.2747 +//DELETE
1.2748 +//Delete(const TDesC &aName, TUint aSwitch=0, TRequestStatus &aStatus)
1.2749 +//
1.2750 +//////////////////////////////////////////////////////////////////////
1.2751 +
1.2752 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2117
1.2753 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2117
1.2754 +//! @SYMAPI CFileMan
1.2755 +//! @SYMTestCaseDesc Function Delete(const TDesC &aName, TUint aSwitch=0, TRequestStatus &aStatus) negative test.
1.2756 +//! Tries to delete non-existing file asynchronously.
1.2757 +//! Uses API elements: NewL(), Delete().
1.2758 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.2759 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.2760 +//! 3.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0, TRequestStatus &aStatus),
1.2761 +//! and {TestPath}fileman\Copy\Test123.txt as first parameter,
1.2762 +//! and CFileMan::EOverWrite as second parameter,
1.2763 +//! and iStatus as third parameter.
1.2764 +//! @SYMTestStatus Implemented
1.2765 +//! @SYMTestPriority Critical
1.2766 +//! @SYMTestExpectedResults Delete() returns KErrNotFound.
1.2767 +//! @SYMTestType CIT
1.2768 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.2769 + CREATE_OBJECT RFs RFs1
1.2770 + CREATE_OBJECT CFileMan CFileMan1
1.2771 + COMMAND RFs1 new
1.2772 + COMMAND RFs1 Connect
1.2773 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.2774 + COMMAND !AsyncError=-1 CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2117-001-Delete_command005
1.2775 + OUTSTANDING
1.2776 + COMMAND CFileMan1 ~
1.2777 + COMMAND RFs1 ~
1.2778 + END_TEST_BLOCK
1.2779 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2117
1.2780 +
1.2781 +
1.2782 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2118
1.2783 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2118
1.2784 +//! @SYMAPI CFileMan
1.2785 +//! @SYMTestCaseDesc Function Delete(const TDesC &aName, TUint aSwitch=0, TRequestStatus &aStatus) negative test.
1.2786 +//! Tries to delete file with wrong path name asynchronously.
1.2787 +//! Uses API elements: NewL(), Delete().
1.2788 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.2789 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.2790 +//! 3.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0, TRequestStatus &aStatus),
1.2791 +//! and {TestPath}fileman\Copy\\\\\Test3.txt as first parameter,
1.2792 +//! and CFileMan::EOverWrite as second parameter,
1.2793 +//! and iStatus as third parameter.
1.2794 +//! @SYMTestStatus Implemented
1.2795 +//! @SYMTestPriority Critical
1.2796 +//! @SYMTestExpectedResults Delete() returns KErrBadName.
1.2797 +//! @SYMTestType CIT
1.2798 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.2799 + CREATE_OBJECT RFs RFs1
1.2800 + CREATE_OBJECT CFileMan CFileMan1
1.2801 + COMMAND RFs1 new
1.2802 + COMMAND RFs1 Connect
1.2803 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.2804 + COMMAND !AsyncError=-28 CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2118-001-Delete_command005
1.2805 + OUTSTANDING
1.2806 + COMMAND CFileMan1 ~
1.2807 + COMMAND RFs1 ~
1.2808 + END_TEST_BLOCK
1.2809 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2118
1.2810 +
1.2811 +
1.2812 +////////////////////////////////////////////////////////////////////////
1.2813 +//
1.2814 +//MOVE
1.2815 +//Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite)
1.2816 +//
1.2817 +////////////////////////////////////////////////////////////////////////
1.2818 +
1.2819 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2119
1.2820 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2119
1.2821 +//! @SYMAPI CFileMan
1.2822 +//! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test.
1.2823 +//! Tries to move non-existing file from one directory to another synchronously.
1.2824 +//! Uses API elements: NewL(), Move().
1.2825 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.2826 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.2827 +//! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
1.2828 +//! and {TestPath}fileman\Test123.txt as first parameter,
1.2829 +//! and {TestPath}fileman\Copy\ as second parameter.
1.2830 +//! @SYMTestStatus Implemented
1.2831 +//! @SYMTestPriority Critical
1.2832 +//! @SYMTestExpectedResults Move() returns KErrNotFound.
1.2833 +//! @SYMTestType CIT
1.2834 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.2835 + CREATE_OBJECT RFs RFs1
1.2836 + CREATE_OBJECT CFileMan CFileMan1
1.2837 + COMMAND RFs1 new
1.2838 + COMMAND RFs1 Connect
1.2839 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.2840 + COMMAND !Error=-1 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2119-001-Move_command005
1.2841 + COMMAND CFileMan1 ~
1.2842 + COMMAND RFs1 ~
1.2843 + END_TEST_BLOCK
1.2844 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2119
1.2845 +
1.2846 +
1.2847 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2120
1.2848 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2120
1.2849 +//! @SYMAPI CFileMan
1.2850 +//! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test.
1.2851 +//! Tries to move file with wrong path name from one directory to another synchronously.
1.2852 +//! Uses API elements: NewL(), Move().
1.2853 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.2854 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.2855 +//! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
1.2856 +//! and {TestPath}fileman\\\\\Test3.txt as first parameter,
1.2857 +//! and {TestPath}fileman\Copy\ as second parameter.
1.2858 +//! @SYMTestStatus Implemented
1.2859 +//! @SYMTestPriority Critical
1.2860 +//! @SYMTestExpectedResults Move() returns KErrBadName.
1.2861 +//! @SYMTestType CIT
1.2862 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.2863 + CREATE_OBJECT RFs RFs1
1.2864 + CREATE_OBJECT CFileMan CFileMan1
1.2865 + COMMAND RFs1 new
1.2866 + COMMAND RFs1 Connect
1.2867 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.2868 + COMMAND !Error=-28 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2120-001-Move_command005
1.2869 + COMMAND CFileMan1 ~
1.2870 + COMMAND RFs1 ~
1.2871 + END_TEST_BLOCK
1.2872 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2120
1.2873 +
1.2874 +
1.2875 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2121
1.2876 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2121
1.2877 +//! @SYMAPI CFileMan
1.2878 +//! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test.
1.2879 +//! Tries to move file from one directory to directory with wrong path name synchronously.
1.2880 +//! Uses API elements: NewL(), Move().
1.2881 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.2882 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.2883 +//! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
1.2884 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.2885 +//! and {TestPath}fileman\\\Copy\ as second parameter.
1.2886 +//! @SYMTestStatus Implemented
1.2887 +//! @SYMTestPriority Critical
1.2888 +//! @SYMTestExpectedResults Move() returns KErrBadName.
1.2889 +//! @SYMTestType CIT
1.2890 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.2891 + CREATE_OBJECT RFs RFs1
1.2892 + CREATE_OBJECT CFileMan CFileMan1
1.2893 + COMMAND RFs1 new
1.2894 + COMMAND RFs1 Connect
1.2895 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.2896 + COMMAND !Error=-28 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2121-001-Move_command005
1.2897 + COMMAND CFileMan1 ~
1.2898 + COMMAND RFs1 ~
1.2899 + END_TEST_BLOCK
1.2900 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2121
1.2901 +
1.2902 +
1.2903 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2122
1.2904 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2122
1.2905 +//! @SYMAPI CFileMan
1.2906 +//! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test.
1.2907 +//! Tries to move file from one directory to non-existing directory synchronously.
1.2908 +//! Uses API elements: NewL(), Move().
1.2909 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.2910 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.2911 +//! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
1.2912 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.2913 +//! and {TestPath}fileman\NotExist\ as second parameter.
1.2914 +//! @SYMTestStatus Implemented
1.2915 +//! @SYMTestPriority Critical
1.2916 +//! @SYMTestExpectedResults Move() returns KErrPathNotFound.
1.2917 +//! @SYMTestType CIT
1.2918 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.2919 + CREATE_OBJECT RFs RFs1
1.2920 + CREATE_OBJECT CFileMan CFileMan1
1.2921 + COMMAND RFs1 new
1.2922 + COMMAND RFs1 Connect
1.2923 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.2924 + COMMAND !Error=-12 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2122-001-Move_command005
1.2925 + COMMAND CFileMan1 ~
1.2926 + COMMAND RFs1 ~
1.2927 + END_TEST_BLOCK
1.2928 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2122
1.2929 +
1.2930 +
1.2931 +//////////////////////////////////////////////////////////////////////////////////////
1.2932 +//
1.2933 +//MOVE
1.2934 +//Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus)
1.2935 +//
1.2936 +//////////////////////////////////////////////////////////////////////////////////////
1.2937 +
1.2938 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2123
1.2939 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2123
1.2940 +//! @SYMAPI CFileMan
1.2941 +//! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test.
1.2942 +//! Tries to move non-existing file from one directory to another asynchronously.
1.2943 +//! Uses API elements: NewL(), Move().
1.2944 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.2945 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.2946 +//! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus),
1.2947 +//! and {TestPath}fileman\Test123.txt as first parameter,
1.2948 +//! and {TestPath}fileman\Copy\ as second parameter,
1.2949 +//! and CFileMan::EOverWrite as third parameter,
1.2950 +//! and iStatus as fourth parameter.
1.2951 +//! @SYMTestStatus Implemented
1.2952 +//! @SYMTestPriority Critical
1.2953 +//! @SYMTestExpectedResults Move() returns KErrNotFound.
1.2954 +//! @SYMTestType CIT
1.2955 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.2956 + CREATE_OBJECT RFs RFs1
1.2957 + CREATE_OBJECT CFileMan CFileMan1
1.2958 + COMMAND RFs1 new
1.2959 + COMMAND RFs1 Connect
1.2960 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.2961 + COMMAND !AsyncError=-1 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2123-001-Move_command005
1.2962 + OUTSTANDING
1.2963 + COMMAND CFileMan1 ~
1.2964 + COMMAND RFs1 ~
1.2965 + END_TEST_BLOCK
1.2966 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2123
1.2967 +
1.2968 +
1.2969 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2124
1.2970 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2124
1.2971 +//! @SYMAPI CFileMan
1.2972 +//! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test.
1.2973 +//! Tries to move file with wrong path name from one directory to another asynchronously.
1.2974 +//! Uses API elements: NewL(), Move().
1.2975 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.2976 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.2977 +//! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus),
1.2978 +//! and {TestPath}fileman\\\\\\Test3.txt as first parameter,
1.2979 +//! and {TestPath}fileman\Copy\ as second parameter,
1.2980 +//! and CFileMan::EOverWrite as third parameter,
1.2981 +//! and iStatus as fourth parameter.
1.2982 +//! @SYMTestStatus Implemented
1.2983 +//! @SYMTestPriority Critical
1.2984 +//! @SYMTestExpectedResults Move() returns KErrBadName.
1.2985 +//! @SYMTestType CIT
1.2986 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.2987 + CREATE_OBJECT RFs RFs1
1.2988 + CREATE_OBJECT CFileMan CFileMan1
1.2989 + COMMAND RFs1 new
1.2990 + COMMAND RFs1 Connect
1.2991 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.2992 + COMMAND !AsyncError=-28 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2124-001-Move_command005
1.2993 + OUTSTANDING
1.2994 + COMMAND CFileMan1 ~
1.2995 + COMMAND RFs1 ~
1.2996 + END_TEST_BLOCK
1.2997 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2124
1.2998 +
1.2999 +
1.3000 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2125
1.3001 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2125
1.3002 +//! @SYMAPI CFileMan
1.3003 +//! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test.
1.3004 +//! Tries to move file from one directory to directory with wrong path name asynchronously.
1.3005 +//! Uses API elements: NewL(), Move().
1.3006 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.3007 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.3008 +//! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus),
1.3009 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.3010 +//! and {TestPath}fileman\\\Copy\ as second parameter,
1.3011 +//! and CFileMan::EOverWrite as third parameter,
1.3012 +//! and iStatus as fourth parameter.
1.3013 +//! @SYMTestStatus Implemented
1.3014 +//! @SYMTestPriority Critical
1.3015 +//! @SYMTestExpectedResults Move() returns KErrBadName.
1.3016 +//! @SYMTestType CIT
1.3017 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.3018 + CREATE_OBJECT RFs RFs1
1.3019 + CREATE_OBJECT CFileMan CFileMan1
1.3020 + COMMAND RFs1 new
1.3021 + COMMAND RFs1 Connect
1.3022 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.3023 + COMMAND !AsyncError=-28 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2125-001-Move_command005
1.3024 + OUTSTANDING
1.3025 + COMMAND CFileMan1 ~
1.3026 + COMMAND RFs1 ~
1.3027 + END_TEST_BLOCK
1.3028 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2125
1.3029 +
1.3030 +
1.3031 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2126
1.3032 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2126
1.3033 +//! @SYMAPI CFileMan
1.3034 +//! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test.
1.3035 +//! Tries to move file from one directory to non-existing directory asynchronously.
1.3036 +//! Uses API elements: NewL(), Move().
1.3037 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.3038 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.3039 +//! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus),
1.3040 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.3041 +//! and {TestPath}fileman\NotExist\ as second parameter,
1.3042 +//! and CFileMan::EOverWrite as third parameter,
1.3043 +//! and iStatus as fourth parameter.
1.3044 +//! @SYMTestStatus Implemented
1.3045 +//! @SYMTestPriority Critical
1.3046 +//! @SYMTestExpectedResults Move() returns KErrPathNotFound.
1.3047 +//! @SYMTestType CIT
1.3048 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.3049 + CREATE_OBJECT RFs RFs1
1.3050 + CREATE_OBJECT CFileMan CFileMan1
1.3051 + COMMAND RFs1 new
1.3052 + COMMAND RFs1 Connect
1.3053 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.3054 + COMMAND !AsyncError=-12 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2126-001-Move_command005
1.3055 + OUTSTANDING
1.3056 + COMMAND CFileMan1 ~
1.3057 + COMMAND RFs1 ~
1.3058 + END_TEST_BLOCK
1.3059 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2126
1.3060 +
1.3061 +
1.3062 +//////////////////////////////////////////////////////////////////////////
1.3063 +//
1.3064 +//RENAME
1.3065 +//Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite)
1.3066 +//
1.3067 +//////////////////////////////////////////////////////////////////////////
1.3068 +
1.3069 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2127
1.3070 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2127
1.3071 +//! @SYMAPI CFileMan
1.3072 +//! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test.
1.3073 +//! Tries to rename non-existing file name synchronously.
1.3074 +//! Uses API elements: NewL(), Rename().
1.3075 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.3076 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.3077 +//! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.3078 +//! and {TestPath}fileman\Test123.txt as first parameter,
1.3079 +//! and {TestPath}fileman\Renamed.txt as second parameter.
1.3080 +//! @SYMTestStatus Implemented
1.3081 +//! @SYMTestPriority Critical
1.3082 +//! @SYMTestExpectedResults Rename() returns KErrNotFound.
1.3083 +//! @SYMTestType CIT
1.3084 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.3085 + CREATE_OBJECT RFs RFs1
1.3086 + CREATE_OBJECT CFileMan CFileMan1
1.3087 + COMMAND RFs1 new
1.3088 + COMMAND RFs1 Connect
1.3089 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.3090 + COMMAND !Error=-1 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2127-001-Rename_command005
1.3091 + COMMAND CFileMan1 ~
1.3092 + COMMAND RFs1 ~
1.3093 + END_TEST_BLOCK
1.3094 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2127
1.3095 +
1.3096 +
1.3097 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2128
1.3098 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2128
1.3099 +//! @SYMAPI CFileMan
1.3100 +//! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test.
1.3101 +//! Tries to rename file with wrong path name synchronously.
1.3102 +//! Uses API elements: NewL(), Rename().
1.3103 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.3104 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.3105 +//! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.3106 +//! and {TestPath}fileman\\\\\Test3.txt as first parameter,
1.3107 +//! and {TestPath}fileman\Renamed.txt as second parameter.
1.3108 +//! @SYMTestStatus Implemented
1.3109 +//! @SYMTestPriority Critical
1.3110 +//! @SYMTestExpectedResults Rename() returns KErrBadName.
1.3111 +//! @SYMTestType CIT
1.3112 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.3113 + CREATE_OBJECT RFs RFs1
1.3114 + CREATE_OBJECT CFileMan CFileMan1
1.3115 + COMMAND RFs1 new
1.3116 + COMMAND RFs1 Connect
1.3117 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.3118 + COMMAND !Error=-28 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2128-001-Rename_command005
1.3119 + COMMAND CFileMan1 ~
1.3120 + COMMAND RFs1 ~
1.3121 + END_TEST_BLOCK
1.3122 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2128
1.3123 +
1.3124 +
1.3125 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2129
1.3126 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2129
1.3127 +//! @SYMAPI CFileMan
1.3128 +//! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test.
1.3129 +//! Tries to rename file synchronously when new file path is wrong.
1.3130 +//! Uses API elements: NewL(), Rename().
1.3131 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.3132 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.3133 +//! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.3134 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.3135 +//! and {TestPath}fileman\\\Renamed.txt as second parameter.
1.3136 +//! @SYMTestStatus Implemented
1.3137 +//! @SYMTestPriority Critical
1.3138 +//! @SYMTestExpectedResults Rename() returns KErrBadName.
1.3139 +//! @SYMTestType CIT
1.3140 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.3141 + CREATE_OBJECT RFs RFs1
1.3142 + CREATE_OBJECT CFileMan CFileMan1
1.3143 + COMMAND RFs1 new
1.3144 + COMMAND RFs1 Connect
1.3145 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.3146 + COMMAND !Error=-28 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2129-001-Rename_command005
1.3147 + COMMAND CFileMan1 ~
1.3148 + COMMAND RFs1 ~
1.3149 + END_TEST_BLOCK
1.3150 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2129
1.3151 +
1.3152 +
1.3153 +////////////////////////////////////////////////////////////////////////////////////////
1.3154 +//
1.3155 +//RENAME
1.3156 +//Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus)
1.3157 +//
1.3158 +////////////////////////////////////////////////////////////////////////////////////////
1.3159 +
1.3160 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2130
1.3161 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2130
1.3162 +//! @SYMAPI CFileMan
1.3163 +//! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test.
1.3164 +//! Tries to rename non-existing file name asynchronously.
1.3165 +//! Uses API elements: NewL(), Rename().
1.3166 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.3167 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.3168 +//! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus).
1.3169 +//! and {TestPath}fileman\Test123.txt as first parameter,
1.3170 +//! and {TestPath}fileman\Renamed.txt as second parameter,
1.3171 +//! and CFileMan::EOverWrite as third parameter,
1.3172 +//! and iStatus as last parameter.
1.3173 +//! @SYMTestStatus Implemented
1.3174 +//! @SYMTestPriority Critical
1.3175 +//! @SYMTestExpectedResults Rename() returns KErrNotFound.
1.3176 +//! @SYMTestType CIT
1.3177 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.3178 + CREATE_OBJECT RFs RFs1
1.3179 + CREATE_OBJECT CFileMan CFileMan1
1.3180 + COMMAND RFs1 new
1.3181 + COMMAND RFs1 Connect
1.3182 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.3183 + COMMAND !AsyncError=-1 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2130-001-Rename_command005
1.3184 + OUTSTANDING
1.3185 + COMMAND CFileMan1 ~
1.3186 + COMMAND RFs1 ~
1.3187 + END_TEST_BLOCK
1.3188 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2130
1.3189 +
1.3190 +
1.3191 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2131
1.3192 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2131
1.3193 +//! @SYMAPI CFileMan
1.3194 +//! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test.
1.3195 +//! Tries to rename file with wrong path name asynchronously.
1.3196 +//! Uses API elements: NewL(), Rename().
1.3197 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.3198 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.3199 +//! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus).
1.3200 +//! and {TestPath}fileman\\\\\Test3.txt as first parameter,
1.3201 +//! and {TestPath}fileman\Renamed.txt as second parameter,
1.3202 +//! and CFileMan::EOverWrite as third parameter,
1.3203 +//! and iStatus as last parameter.
1.3204 +//! @SYMTestStatus Implemented
1.3205 +//! @SYMTestPriority Critical
1.3206 +//! @SYMTestExpectedResults Rename() returns KErrBadName.
1.3207 +//! @SYMTestType CIT
1.3208 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.3209 + CREATE_OBJECT RFs RFs1
1.3210 + CREATE_OBJECT CFileMan CFileMan1
1.3211 + COMMAND RFs1 new
1.3212 + COMMAND RFs1 Connect
1.3213 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.3214 + COMMAND !AsyncError=-28 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2131-001-Rename_command005
1.3215 + OUTSTANDING
1.3216 + COMMAND CFileMan1 ~
1.3217 + COMMAND RFs1 ~
1.3218 + END_TEST_BLOCK
1.3219 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2131
1.3220 +
1.3221 +
1.3222 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2132
1.3223 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2132
1.3224 +//! @SYMAPI CFileMan
1.3225 +//! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test.
1.3226 +//! Tries to rename file asynchronously when new file path is wrong.
1.3227 +//! Uses API elements: NewL(), Rename().
1.3228 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.3229 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.3230 +//! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus).
1.3231 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.3232 +//! and {TestPath}fileman\\\Renamed.txt as second parameter,
1.3233 +//! and CFileMan::EOverWrite as third parameter,
1.3234 +//! and iStatus as last parameter.
1.3235 +//! @SYMTestStatus Implemented
1.3236 +//! @SYMTestPriority Critical
1.3237 +//! @SYMTestExpectedResults Rename() returns KErrBadName.
1.3238 +//! @SYMTestType CIT
1.3239 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.3240 + CREATE_OBJECT RFs RFs1
1.3241 + CREATE_OBJECT CFileMan CFileMan1
1.3242 + COMMAND RFs1 new
1.3243 + COMMAND RFs1 Connect
1.3244 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.3245 + COMMAND !AsyncError=-28 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2132-001-Rename_command005
1.3246 + OUTSTANDING
1.3247 + COMMAND CFileMan1 ~
1.3248 + COMMAND RFs1 ~
1.3249 + END_TEST_BLOCK
1.3250 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2132
1.3251 +
1.3252 +
1.3253 +//////////////////////////////
1.3254 +//
1.3255 +//REMOVE DIRECTORY
1.3256 +//RmDir(const TDesC &aDirName)
1.3257 +//
1.3258 +//////////////////////////////
1.3259 +
1.3260 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2133
1.3261 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2133
1.3262 +//! @SYMAPI CFileMan
1.3263 +//! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName) negative test.
1.3264 +//! Tries to remove non-existing directory synchronously.
1.3265 +//! Uses API elements: NewL(), RmDir().
1.3266 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.3267 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.3268 +//! 3.Call CFileMan::RmDir(const TDesC &aDirName) and {TestPath}fileman\Copy123\ as parameter.
1.3269 +//! @SYMTestStatus Implemented
1.3270 +//! @SYMTestPriority Critical
1.3271 +//! @SYMTestExpectedResults RmDir() returns KErrPathNotFound.
1.3272 +//! @SYMTestType CIT
1.3273 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.3274 + CREATE_OBJECT RFs RFs1
1.3275 + CREATE_OBJECT CFileMan CFileMan1
1.3276 + COMMAND RFs1 new
1.3277 + COMMAND RFs1 Connect
1.3278 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.3279 + COMMAND !Error=-12 CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2133-001-RmDir_command005
1.3280 + COMMAND CFileMan1 ~
1.3281 + COMMAND RFs1 ~
1.3282 + END_TEST_BLOCK
1.3283 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2133
1.3284 +
1.3285 +
1.3286 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2134
1.3287 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2134
1.3288 +//! @SYMAPI CFileMan
1.3289 +//! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName) negative test.
1.3290 +//! Tries to remove directory with wrong path name synchronously.
1.3291 +//! Uses API elements: NewL(), RmDir().
1.3292 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.3293 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.3294 +//! 3.Call CFileMan::RmDir(const TDesC &aDirName) and {TestPath}fileman\\\\\Copy\ as parameter.
1.3295 +//! @SYMTestStatus Implemented
1.3296 +//! @SYMTestPriority Critical
1.3297 +//! @SYMTestExpectedResults RmDir() returns KErrBadName.
1.3298 +//! @SYMTestType CIT
1.3299 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.3300 + CREATE_OBJECT RFs RFs1
1.3301 + CREATE_OBJECT CFileMan CFileMan1
1.3302 + COMMAND RFs1 new
1.3303 + COMMAND RFs1 Connect
1.3304 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.3305 + COMMAND !Error=-28 CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2134-001-RmDir_command005
1.3306 + COMMAND CFileMan1 ~
1.3307 + COMMAND RFs1 ~
1.3308 + END_TEST_BLOCK
1.3309 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2134
1.3310 +
1.3311 +
1.3312 +////////////////////////////////////////////////////////
1.3313 +//
1.3314 +//REMOVE DIRECTORY
1.3315 +//RmDir(const TDesC &aDirName, TRequestStatus &aStatus)
1.3316 +//
1.3317 +////////////////////////////////////////////////////////
1.3318 +
1.3319 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2135
1.3320 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2135
1.3321 +//! @SYMAPI CFileMan
1.3322 +//! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName, TRequestStatus &aStatus) negative test.
1.3323 +//! Tries to remove non-existing directory asynchronously.
1.3324 +//! Uses API elements: NewL(), RmDir().
1.3325 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.3326 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.3327 +//! 3.Call CFileMan::RmDir(const TDesC &aDirName, TRequestStatus &aStatus),
1.3328 +//! and {TestPath}fileman\Copy123\ as first parameter,
1.3329 +//! and iStatus as second parameter.
1.3330 +//! @SYMTestStatus Implemented
1.3331 +//! @SYMTestPriority Critical
1.3332 +//! @SYMTestExpectedResults RmDir() returns KErrPathNotFound.
1.3333 +//! @SYMTestType CIT
1.3334 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.3335 + CREATE_OBJECT RFs RFs1
1.3336 + CREATE_OBJECT CFileMan CFileMan1
1.3337 + COMMAND RFs1 new
1.3338 + COMMAND RFs1 Connect
1.3339 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.3340 + COMMAND !AsyncError=-12 CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2135-001-RmDir_command005
1.3341 + OUTSTANDING
1.3342 + COMMAND CFileMan1 ~
1.3343 + COMMAND RFs1 ~
1.3344 + END_TEST_BLOCK
1.3345 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2135
1.3346 +
1.3347 +
1.3348 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2136
1.3349 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2136
1.3350 +//! @SYMAPI CFileMan
1.3351 +//! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName, TRequestStatus &aStatus) negative test.
1.3352 +//! Tries to remove directory with wrong path name asynchronously.
1.3353 +//! Uses API elements: NewL(), RmDir().
1.3354 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.3355 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.3356 +//! 3.Call CFileMan::RmDir(const TDesC &aDirName, TRequestStatus &aStatus),
1.3357 +//! and {TestPath}fileman\\\\\Copy\ as first parameter,
1.3358 +//! and iStatus as second parameter.
1.3359 +//! @SYMTestStatus Implemented
1.3360 +//! @SYMTestPriority Critical
1.3361 +//! @SYMTestExpectedResults RmDir() returns KErrBadName.
1.3362 +//! @SYMTestType CIT
1.3363 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.3364 + CREATE_OBJECT RFs RFs1
1.3365 + CREATE_OBJECT CFileMan CFileMan1
1.3366 + COMMAND RFs1 new
1.3367 + COMMAND RFs1 Connect
1.3368 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.3369 + COMMAND !AsyncError=-28 CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2136-001-RmDir_command005
1.3370 + OUTSTANDING
1.3371 + COMMAND CFileMan1 ~
1.3372 + COMMAND RFs1 ~
1.3373 + END_TEST_BLOCK
1.3374 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2136
1.3375 +
1.3376 +
1.3377 +//////////////////////////////////////////////////////////////////////////
1.3378 +//
1.3379 +//COPY
1.3380 +//Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches=EOverWrite)
1.3381 +//
1.3382 +//////////////////////////////////////////////////////////////////////////
1.3383 +
1.3384 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2137
1.3385 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2137
1.3386 +//! @SYMAPI CFileMan
1.3387 +//! @SYMTestCaseDesc Function Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches=EOverWrite) negative test.
1.3388 +//! Opens file then tries to copy file content to another file with wrong path name synchronously.
1.3389 +//! Uses API elements: NewL(), Copy().
1.3390 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.3391 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.3392 +//! 3.Call RFile::Open() to open file.
1.3393 +//! 4.Call CFileMan::Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches=EOverWrite),
1.3394 +//! and RFile object as first object,
1.3395 +//! and {TestPath}fileman\\\\\test.txt as second parameter.
1.3396 +//! 5.RFs::Close().
1.3397 +//! @SYMTestStatus Implemented
1.3398 +//! @SYMTestPriority Critical
1.3399 +//! @SYMTestExpectedResults Copy() returns KErrBadName.
1.3400 +//! @SYMTestType CIT
1.3401 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.3402 + CREATE_OBJECT RFs RFs1
1.3403 + CREATE_OBJECT RFile RFile1
1.3404 + CREATE_OBJECT CFileMan CFileMan1
1.3405 + COMMAND RFs1 new
1.3406 + COMMAND RFs1 Connect
1.3407 + COMMAND RFile1 new
1.3408 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2137-001-Open_command006
1.3409 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.3410 + COMMAND !Error=-28 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2137-001-Copy_command008
1.3411 + COMMAND CFileMan1 ~
1.3412 + COMMAND RFile1 Close
1.3413 + COMMAND RFile1 ~
1.3414 + COMMAND RFs1 ~
1.3415 + END_TEST_BLOCK
1.3416 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2137
1.3417 +
1.3418 +
1.3419 +////////////////////////////////////////////////////////////////////////////////////////
1.3420 +//
1.3421 +//COPY
1.3422 +//Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches, TRequestStatus &aStatus)
1.3423 +//
1.3424 +////////////////////////////////////////////////////////////////////////////////////////
1.3425 +
1.3426 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2138
1.3427 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2138
1.3428 +//! @SYMAPI CFileMan
1.3429 +//! @SYMTestCaseDesc Function Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches, TRequestStatus &aStatus) negative test.
1.3430 +//! Opens file then tries to copy file content to another file with wrong path name asynchronously.
1.3431 +//! Uses API elements: NewL(), Copy().
1.3432 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.3433 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.3434 +//! 3.Call RFile::Open() to open file.
1.3435 +//! 4.Call CFileMan::Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches, TRequestStatus &aStatus),
1.3436 +//! and RFile object as first object,
1.3437 +//! and {TestPath}fileman\\\\\test.txt as second parameter,
1.3438 +//! and iStatus as last parameter.
1.3439 +//! @SYMTestStatus Implemented
1.3440 +//! @SYMTestPriority Critical
1.3441 +//! @SYMTestExpectedResults Copy() returns KErrBadName.
1.3442 +//! @SYMTestType CIT
1.3443 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.3444 + CREATE_OBJECT RFs RFs1
1.3445 + CREATE_OBJECT RFile RFile1
1.3446 + CREATE_OBJECT CFileMan CFileMan1
1.3447 + COMMAND RFs1 new
1.3448 + COMMAND RFs1 Connect
1.3449 + COMMAND RFile1 new
1.3450 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2138-001-Open_command006
1.3451 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.3452 + COMMAND !AsyncError=-28 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2138-001-Copy_command008
1.3453 + OUTSTANDING
1.3454 + COMMAND CFileMan1 ~
1.3455 + COMMAND RFile1 Close
1.3456 + COMMAND RFile1 ~
1.3457 + COMMAND RFs1 ~
1.3458 + END_TEST_BLOCK
1.3459 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2138
1.3460 +
1.3461 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2139
1.3462 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2139
1.3463 +//! @SYMAPI CFileMan
1.3464 +//! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) negative test.
1.3465 +//! Try to set attribute KEntryAttReadOnly and unset the same attribute KEntryAttReadOnly synchronously for file!
1.3466 +//! And then check that it was not set for file
1.3467 +//! Uses API elements: NewL(), Attribs().
1.3468 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.3469 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.3470 +//! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.3471 +//! and {TestPath}fileman\Test2.txt as first parameter,
1.3472 +//! and KEntryAttReadOnly as second parameter,
1.3473 +//! and KEntryAttReadOnly as third parameter,
1.3474 +//! and TTime(0) as fourth parameter,
1.3475 +//! and 0 as fifth parameter.
1.3476 +//! @SYMTestStatus Implemented
1.3477 +//! @SYMTestPriority Critical
1.3478 +//! @SYMTestExpectedResults Function Attribs() returns Panic with code 21.
1.3479 +//! @SYMTestType CIT
1.3480 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.3481 + CREATE_OBJECT RFs RFs1
1.3482 + CREATE_OBJECT CFileMan CFileMan1
1.3483 + COMMAND RFs1 new
1.3484 + COMMAND RFs1 Connect
1.3485 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.3486 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2139-001-Attribs_command005
1.3487 + COMMAND CFileMan1 ~
1.3488 + COMMAND RFs1 ~
1.3489 + END_TEST_BLOCK !PanicCode=21 !PanicString="FSCLIENT panic"
1.3490 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2139
1.3491 +
1.3492 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2140
1.3493 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2140
1.3494 +//! @SYMAPI CFileMan
1.3495 +//! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) negative test.
1.3496 +//! Try to set attribute KEntryAttReadOnly and unset the same attribute KEntryAttReadOnly asynchronously for file!
1.3497 +//! And then check that it was not set for file
1.3498 +//! Uses API elements: NewL(), Attribs().
1.3499 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.3500 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.3501 +//! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.3502 +//! and {TestPath}fileman\Test2.txt as first parameter,
1.3503 +//! and KEntryAttReadOnly as second parameter,
1.3504 +//! and KEntryAttReadOnly as third parameter,
1.3505 +//! and TTime(0) as fourth parameter,
1.3506 +//! and 0 as fifth parameter.
1.3507 +//! @SYMTestStatus Implemented
1.3508 +//! @SYMTestPriority Critical
1.3509 +//! @SYMTestExpectedResults Function Attribs() returns Panic with code 21.
1.3510 +//! @SYMTestType CIT
1.3511 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.3512 + CREATE_OBJECT RFs RFs1
1.3513 + CREATE_OBJECT CFileMan CFileMan1
1.3514 + COMMAND RFs1 new
1.3515 + COMMAND RFs1 Connect
1.3516 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.3517 + COMMAND !AsyncError=21 CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2140-001-Attribs_command005
1.3518 + OUTSTANDING
1.3519 + COMMAND CFileMan1 ~
1.3520 + COMMAND RFs1 ~
1.3521 + END_TEST_BLOCK
1.3522 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2140
1.3523 +
1.3524 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2141
1.3525 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2141
1.3526 +//! @SYMAPI CFileMan
1.3527 +//! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
1.3528 +//! Copy same file to the same location a three times with a different aSwitch parameter
1.3529 +//! Uses API elements: NewL(), Copy();
1.3530 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.3531 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.3532 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.3533 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.3534 +//! and {TestPath}fileman\Copy\ as second parameter,
1.3535 +//! and aSwitch = 0 as third parameter.
1.3536 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.3537 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.3538 +//! and {TestPath}fileman\Copy\ as second parameter,
1.3539 +//! and aSwitch = 0 as third parameter.
1.3540 +//! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.3541 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.3542 +//! and {TestPath}fileman\Copy\ as second parameter,
1.3543 +//! and aSwitch = EOverWrite as third parameter.
1.3544 +//! @SYMTestStatus Implemented
1.3545 +//! @SYMTestPriority Critical
1.3546 +//! @SYMTestExpectedResults After second Copy() returns KAlreadyExists.
1.3547 +//! @SYMTestType CIT
1.3548 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.3549 + CREATE_OBJECT RFs RFs1
1.3550 + CREATE_OBJECT CFileMan CFileMan1
1.3551 + COMMAND RFs1 new
1.3552 + COMMAND RFs1 Connect
1.3553 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.3554 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.3555 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
1.3556 + COMMAND !Error=-11 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
1.3557 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_EOverWrite
1.3558 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2141-001-Delete_command009
1.3559 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.3560 + COMMAND CFileMan1 ~
1.3561 + COMMAND RFs1 ~
1.3562 + END_TEST_BLOCK
1.3563 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2141
1.3564 +
1.3565 +
1.3566 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2142
1.3567 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2142
1.3568 +//! @SYMAPI CFileMan
1.3569 +//! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
1.3570 +//! Copy same file to the same location a three times with a different aSwitch parameter
1.3571 +//! Uses API elements: NewL(), Copy();
1.3572 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.3573 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.3574 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1.3575 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.3576 +//! and {TestPath}fileman\Copy\ as second parameter,
1.3577 +//! and aSwitch = 0 as third parameter,
1.3578 +//! and iStatus as fourth parameter.
1.3579 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1.3580 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.3581 +//! and {TestPath}fileman\Copy\ as second parameter,
1.3582 +//! and aSwitch = 0 as third parameter.
1.3583 +//! and iStatus as fourth parameter.
1.3584 +//! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1.3585 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.3586 +//! and {TestPath}fileman\Copy\ as second parameter,
1.3587 +//! and aSwitch = EOverWrite as third parameter.
1.3588 +//! and iStatus as fourth parameter.
1.3589 +//! @SYMTestStatus Implemented
1.3590 +//! @SYMTestPriority Critical
1.3591 +//! @SYMTestExpectedResults After second Copy() returns KAlreadyExists.
1.3592 +//! @SYMTestType CIT
1.3593 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.3594 + CREATE_OBJECT RFs RFs1
1.3595 + CREATE_OBJECT CFileMan CFileMan1
1.3596 + COMMAND RFs1 new
1.3597 + COMMAND RFs1 Connect
1.3598 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.3599 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.3600 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2142-001-Copy_command006
1.3601 + OUTSTANDING
1.3602 + COMMAND !AsyncError=-11 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2142-001-Copy_command007
1.3603 + OUTSTANDING
1.3604 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2142-001-Copy_command008
1.3605 + OUTSTANDING
1.3606 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2142-001-Delete_command009
1.3607 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.3608 + COMMAND CFileMan1 ~
1.3609 + COMMAND RFs1 ~
1.3610 + END_TEST_BLOCK
1.3611 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2142
1.3612 +
1.3613 +
1.3614 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2143
1.3615 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2143
1.3616 +//! @SYMAPI CFileMan
1.3617 +//! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
1.3618 +//! Move same file to the same location a three times with a different aSwitch parameter
1.3619 +//! Uses API elements: NewL(), Move(), Copy();
1.3620 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.3621 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.3622 +//! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.3623 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.3624 +//! and {TestPath}fileman\Move\ as second parameter,
1.3625 +//! and aSwitch = 0 as third parameter.
1.3626 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.3627 +//! and {TestPath}fileman\Move\Test1.txt as first parameter,
1.3628 +//! and {TestPath}fileman\ as second parameter,
1.3629 +//! and aSwitch = EOverWrite as third parameter.
1.3630 +//! 5.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.3631 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.3632 +//! and {TestPath}fileman\Move\ as second parameter,
1.3633 +//! and aSwitch = 0 as third parameter.
1.3634 +//! 6.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.3635 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.3636 +//! and {TestPath}fileman\Move\ as second parameter,
1.3637 +//! and aSwitch = EOverWrite as third parameter.
1.3638 +//! 7.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.3639 +//! and {TestPath}fileman\Move\Test1.txt as first parameter,
1.3640 +//! and {TestPath}fileman\ as second parameter,
1.3641 +//! and aSwitch = EOverWrite as third parameter.
1.3642 +//! @SYMTestStatus Implemented
1.3643 +//! @SYMTestPriority Critical
1.3644 +//! @SYMTestExpectedResults After second Move() returns KAlreadyExists.
1.3645 +//! @SYMTestType CIT
1.3646 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.3647 + CREATE_OBJECT RFs RFs1
1.3648 + CREATE_OBJECT CFileMan CFileMan1
1.3649 + COMMAND RFs1 new
1.3650 + COMMAND RFs1 Connect
1.3651 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2143-001-MkDir_command004
1.3652 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.3653 + COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2143-001-Move_command006
1.3654 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2143-001-Copy_command007
1.3655 + COMMAND !Error=-11 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2143-001-Move_command008
1.3656 + COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2143-001-Move_command009
1.3657 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2143-001-Copy_command010
1.3658 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2143-001-Delete_command011
1.3659 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2143-001-RmDir_command012
1.3660 + COMMAND CFileMan1 ~
1.3661 + COMMAND RFs1 ~
1.3662 + END_TEST_BLOCK
1.3663 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2143
1.3664 +
1.3665 +
1.3666 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2144
1.3667 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2144
1.3668 +//! @SYMAPI CFileMan
1.3669 +//! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
1.3670 +//! Move same file to the same location a three times with a different aSwitch parameter
1.3671 +//! Uses API elements: NewL(), Move(), Copy;
1.3672 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.3673 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.3674 +//! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.3675 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.3676 +//! and {TestPath}fileman\Move\ as second parameter,
1.3677 +//! and aSwitch = 0 as third parameter,
1.3678 +//! and iStatus as fourth parameter.
1.3679 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.3680 +//! and {TestPath}fileman\Move\Test1.txt as first parameter,
1.3681 +//! and {TestPath}fileman\ as second parameter,
1.3682 +//! and aSwitch = EOverWrite as third parameter.
1.3683 +//! 5.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.3684 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.3685 +//! and {TestPath}fileman\Move\ as second parameter,
1.3686 +//! and aSwitch = 0 as third parameter.
1.3687 +//! and iStatus as fourth parameter.
1.3688 +//! 6.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.3689 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.3690 +//! and {TestPath}fileman\Move\ as second parameter,
1.3691 +//! and aSwitch = EOverWrite as third parameter.
1.3692 +//! and iStatus as fourth parameter.
1.3693 +//! 7.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.3694 +//! and {TestPath}fileman\Move\Test1.txt as first parameter,
1.3695 +//! and {TestPath}fileman\ as second parameter,
1.3696 +//! and aSwitch = EOverWrite as third parameter.
1.3697 +//! @SYMTestStatus Implemented
1.3698 +//! @SYMTestPriority Critical
1.3699 +//! @SYMTestExpectedResults After second Move() returns KAlreadyExists.
1.3700 +//! @SYMTestType CIT
1.3701 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.3702 + CREATE_OBJECT RFs RFs1
1.3703 + CREATE_OBJECT CFileMan CFileMan1
1.3704 + COMMAND RFs1 new
1.3705 + COMMAND RFs1 Connect
1.3706 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2144-001-MkDir_command004
1.3707 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.3708 + COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2144-001-Move_command006
1.3709 + OUTSTANDING
1.3710 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2144-001-Copy_command007
1.3711 + COMMAND !AsyncError=-11 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2144-001-Move_command008
1.3712 + OUTSTANDING
1.3713 + COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2144-001-Move_command009
1.3714 + OUTSTANDING
1.3715 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2144-001-Copy_command010
1.3716 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2144-001-Delete_command011
1.3717 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2144-001-RmDir_command012
1.3718 + COMMAND CFileMan1 ~
1.3719 + COMMAND RFs1 ~
1.3720 + END_TEST_BLOCK
1.3721 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2144
1.3722 +
1.3723 +
1.3724 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2145
1.3725 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2145
1.3726 +//! @SYMAPI CFileMan
1.3727 +//! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
1.3728 +//! Rename same file to the same location a three times with a different aSwitch parameter
1.3729 +//! Uses API elements: NewL(), Rename(), Copy();
1.3730 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.3731 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.3732 +//! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.3733 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.3734 +//! and {TestPath}fileman\Rename\ as second parameter,
1.3735 +//! and aSwitch = 0 as third parameter.
1.3736 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.3737 +//! and {TestPath}fileman\Rename\Test1.txt as first parameter,
1.3738 +//! and {TestPath}fileman\ as second parameter,
1.3739 +//! and aSwitch = EOverWrite as third parameter.
1.3740 +//! 5.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.3741 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.3742 +//! and {TestPath}fileman\Rename\ as second parameter,
1.3743 +//! and aSwitch = 0 as third parameter.
1.3744 +//! 6.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.3745 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.3746 +//! and {TestPath}fileman\Rename\ as second parameter,
1.3747 +//! and aSwitch = EOverWrite as third parameter.
1.3748 +//! 7.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.3749 +//! and {TestPath}fileman\Rename\Test1.txt as first parameter,
1.3750 +//! and {TestPath}fileman\ as second parameter,
1.3751 +//! and aSwitch = EOverWrite as third parameter.
1.3752 +//! @SYMTestStatus Implemented
1.3753 +//! @SYMTestPriority Critical
1.3754 +//! @SYMTestExpectedResults After second Rename() returns KAlreadyExists.
1.3755 +//! @SYMTestType CIT
1.3756 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.3757 + CREATE_OBJECT RFs RFs1
1.3758 + CREATE_OBJECT CFileMan CFileMan1
1.3759 + COMMAND RFs1 new
1.3760 + COMMAND RFs1 Connect
1.3761 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2145-001-MkDir_command004
1.3762 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.3763 + COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2145-001-Rename_command006
1.3764 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2145-001-Copy_command007
1.3765 + COMMAND !Error=-11 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2145-001-Rename_command008
1.3766 + COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2145-001-Rename_command009
1.3767 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2145-001-Copy_command010
1.3768 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2145-001-Delete_command011
1.3769 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2145-001-RmDir_command012
1.3770 + COMMAND CFileMan1 ~
1.3771 + COMMAND RFs1 ~
1.3772 + END_TEST_BLOCK
1.3773 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2145
1.3774 +
1.3775 +
1.3776 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2146
1.3777 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2146
1.3778 +//! @SYMAPI CFileMan
1.3779 +//! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
1.3780 +//! Rename same file to the same location a three times with a different aSwitch parameter
1.3781 +//! Uses API elements: NewL(), Rename();
1.3782 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.3783 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.3784 +//! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.3785 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.3786 +//! and {TestPath}fileman\Rename\ as second parameter,
1.3787 +//! and aSwitch = 0 as third parameter,
1.3788 +//! and iStatus as fourth parameter.
1.3789 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.3790 +//! and {TestPath}fileman\Rename\Test1.txt as first parameter,
1.3791 +//! and {TestPath}fileman\ as second parameter,
1.3792 +//! and aSwitch = EOverWrite as third parameter.
1.3793 +//! 5.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.3794 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.3795 +//! and {TestPath}fileman\Rename\ as second parameter,
1.3796 +//! and aSwitch = 0 as third parameter.
1.3797 +//! and iStatus as fourth parameter.
1.3798 +//! 6.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.3799 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.3800 +//! and {TestPath}fileman\Rename\ as second parameter,
1.3801 +//! and aSwitch = EOverWrite as third parameter.
1.3802 +//! and iStatus as fourth parameter.
1.3803 +//! 7.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.3804 +//! and {TestPath}fileman\Rename\Test1.txt as first parameter,
1.3805 +//! and {TestPath}fileman\ as second parameter,
1.3806 +//! and aSwitch = EOverWrite as third parameter.
1.3807 +//! @SYMTestStatus Implemented
1.3808 +//! @SYMTestPriority Critical
1.3809 +//! @SYMTestExpectedResults After second Rename() returns KAlreadyExists.
1.3810 +//! @SYMTestType CIT
1.3811 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.3812 + CREATE_OBJECT RFs RFs1
1.3813 + CREATE_OBJECT CFileMan CFileMan1
1.3814 + COMMAND RFs1 new
1.3815 + COMMAND RFs1 Connect
1.3816 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2146-001-MkDir_command004
1.3817 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.3818 + COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2146-001-Rename_command006
1.3819 + OUTSTANDING
1.3820 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2146-001-Copy_command007
1.3821 + COMMAND !AsyncError=-11 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2146-001-Rename_command008
1.3822 + OUTSTANDING
1.3823 + COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2146-001-Rename_command009
1.3824 + OUTSTANDING
1.3825 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2146-001-Copy_command010
1.3826 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2146-001-Delete_command011
1.3827 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2146-001-RmDir_command012
1.3828 + COMMAND CFileMan1 ~
1.3829 + COMMAND RFs1 ~
1.3830 + END_TEST_BLOCK
1.3831 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2146
1.3832 +
1.3833 +
1.3834 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2147
1.3835 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2147
1.3836 +//! @SYMAPI CFileMan
1.3837 +//! @SYMTestCaseDesc Function Delete(const TDesC &aName, TUint aSwitch=0) test.
1.3838 +//! Call synchronous delete with KNullDesC argument.
1.3839 +//! Uses API elements: NewL(), Copy(), Delete();
1.3840 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.3841 +//! 2.Call RFs::SetSession() set session path to "{TestPath}fileman\Copy\"
1.3842 +//! 3.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.3843 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus),
1.3844 +//! and {TestPath}fileman\*.txt as first parameter,
1.3845 +//! and {TestPath}fileman\Copy\ as second parameter,
1.3846 +//! and CFileMan::EOverWrite as third parameter.
1.3847 +//! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.3848 +//! and KNullDesC as parameter
1.3849 +//! @SYMTestStatus Implemented
1.3850 +//! @SYMTestPriority Critical
1.3851 +//! @SYMTestExpectedResults All files deleted from folder "Copy".
1.3852 +//! @SYMTestType CIT
1.3853 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.3854 + CREATE_OBJECT RFs RFs1
1.3855 + CREATE_OBJECT CFileMan CFileMan1
1.3856 + COMMAND RFs1 new
1.3857 + COMMAND RFs1 Connect
1.3858 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.3859 + COMMAND RFs1 SetSessionPath PBASE-F32-FileMan-PublicApi-2147-001-SetSessionPath_command005
1.3860 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.3861 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2147-001-Copy_command007
1.3862 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2147-001-Delete_command008
1.3863 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.3864 + COMMAND CFileMan1 ~
1.3865 + COMMAND RFs1 ~
1.3866 + END_TEST_BLOCK
1.3867 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2147
1.3868 +
1.3869 +
1.3870 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2148
1.3871 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2148
1.3872 +//! @SYMAPI CFileMan
1.3873 +//! @SYMTestCaseDesc Function Delete(const TDesC &aName, TUint aSwitch=0, TRequestStatus &aStatus) test.
1.3874 +//! Call asynchronous delete with KNullDesC argument.
1.3875 +//! Uses API elements: NewL(), Copy(), Delete();
1.3876 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.3877 +//! 2.Call RFs::SetSession() set session path to "{TestPath}fileman\Copy\"
1.3878 +//! 3.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.3879 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus),
1.3880 +//! and {TestPath}fileman\*.txt as first parameter,
1.3881 +//! and {TestPath}fileman\Copy\ as second parameter,
1.3882 +//! and CFileMan::EOverWrite as third parameter.
1.3883 +//! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.3884 +//! and KNullDesC as parameter
1.3885 +//! and iStatus as fourth parameter.
1.3886 +//! @SYMTestStatus Implemented
1.3887 +//! @SYMTestPriority Critical
1.3888 +//! @SYMTestExpectedResults All files deleted from folder "Copy".
1.3889 +//! @SYMTestType CIT
1.3890 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.3891 + CREATE_OBJECT RFs RFs1
1.3892 + CREATE_OBJECT CFileMan CFileMan1
1.3893 + COMMAND RFs1 new
1.3894 + COMMAND RFs1 Connect
1.3895 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.3896 + COMMAND RFs1 SetSessionPath PBASE-F32-FileMan-PublicApi-2148-001-SetSessionPath_command005
1.3897 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.3898 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2148-001-Copy_command007
1.3899 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2148-001-Delete_command008
1.3900 + OUTSTANDING
1.3901 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.3902 + COMMAND CFileMan1 ~
1.3903 + COMMAND RFs1 ~
1.3904 + END_TEST_BLOCK
1.3905 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2148
1.3906 +
1.3907 +
1.3908 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2149
1.3909 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2149
1.3910 +//! @SYMAPI CFileMan
1.3911 +//! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName) test.
1.3912 +//! Delete newly created folder with sub folders.
1.3913 +//! Uses API elements: NewL(), RmDir();
1.3914 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.3915 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.3916 +//! 3.Call CFileMan::RmDir(const TDesC &aDirName),
1.3917 +//! and {TestPath}fileman\Copy\ as parameter.
1.3918 +//! 4.Check that folder was successfully deleted with sub folders.
1.3919 +//! @SYMTestStatus Implemented
1.3920 +//! @SYMTestPriority Critical
1.3921 +//! @SYMTestExpectedResults All sub folders and specified directory deleted.
1.3922 +//! @SYMTestType CIT
1.3923 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.3924 + CREATE_OBJECT RFs RFs1
1.3925 + CREATE_OBJECT RDir RDir1
1.3926 + CREATE_OBJECT CFileMan CFileMan1
1.3927 + COMMAND RFs1 new
1.3928 + COMMAND RFs1 Connect
1.3929 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.3930 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2149-001-MkDir_command005
1.3931 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2149-001-MkDir_command006
1.3932 + COMMAND RDir1 new
1.3933 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.3934 + COMMAND CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2149-001-RmDir_command008
1.3935 + COMMAND !Error=-12 RDir1 Open PBASE-F32-FileMan-PublicApi-2149-001-Open_command009
1.3936 + COMMAND CFileMan1 ~
1.3937 + COMMAND RDir1 ~
1.3938 + COMMAND RFs1 ~
1.3939 + END_TEST_BLOCK
1.3940 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2149
1.3941 +
1.3942 +
1.3943 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2150
1.3944 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2150
1.3945 +//! @SYMAPI CFileMan
1.3946 +//! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName, TRequestStatus &aStatus) test.
1.3947 +//! Delete newly created folder with sub folders asynchronously.
1.3948 +//! Uses API elements: NewL(), RmDir();
1.3949 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.3950 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.3951 +//! 3.Call CFileMan::RmDir(const TDesC &aDirName, TRequestStatus &aStatus),
1.3952 +//! and {TestPath}fileman\Copy\ as parameter,
1.3953 +//! and iStatus as second parameter.
1.3954 +//! @SYMTestStatus Implemented
1.3955 +//! @SYMTestPriority Critical
1.3956 +//! @SYMTestExpectedResults All sub folders and specified directory deleted.
1.3957 +//! @SYMTestType CIT
1.3958 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.3959 + CREATE_OBJECT RFs RFs1
1.3960 + CREATE_OBJECT RDir RDir1
1.3961 + CREATE_OBJECT CFileMan CFileMan1
1.3962 + COMMAND RFs1 new
1.3963 + COMMAND RFs1 Connect
1.3964 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.3965 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2150-001-MkDir_command005
1.3966 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2150-001-MkDir_command006
1.3967 + COMMAND RDir1 new
1.3968 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.3969 + COMMAND CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2150-001-RmDir_command008
1.3970 + OUTSTANDING
1.3971 + COMMAND !Error=-12 RDir1 Open PBASE-F32-FileMan-PublicApi-2150-001-Open_command009
1.3972 + COMMAND CFileMan1 ~
1.3973 + COMMAND RDir1 ~
1.3974 + COMMAND RFs1 ~
1.3975 + END_TEST_BLOCK
1.3976 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2150
1.3977 +
1.3978 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2151
1.3979 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2151
1.3980 +//! @SYMAPI CFileMan
1.3981 +//! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName) test.
1.3982 +//! Delete folder in which one file is readonly.
1.3983 +//! Uses API elements: NewL(), RmDir(), Copy(), Attribs;
1.3984 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.3985 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.3986 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
1.3987 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.3988 +//! and {TestPath}fileman\Copy\ as second parameter,
1.3989 +//! and aSwitch=0 as third parameter.
1.3990 +//! 4.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.3991 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.3992 +//! and KEntryAttReadOnly as second parameter,
1.3993 +//! and KEntryAttNormal as third parameter,
1.3994 +//! and TTime(0) as fourth parameter,
1.3995 +//! and CFileMan::ERecurse as fifth parameter.
1.3996 +//! 5.Call CFileMan::RmDir(const TDesC &aDirName),
1.3997 +//! and {TestPath}fileman\Copy\ as parameter.
1.3998 +//! 6.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.3999 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.4000 +//! and KEntryAttNormal as second parameter,
1.4001 +//! and KEntryAttReadOnly as third parameter,
1.4002 +//! and TTime(0) as fourth parameter,
1.4003 +//! and CFileMan::ERecurse as fifth parameter.
1.4004 +//! 7.Call CFileMan::RmDir(const TDesC &aDirName),
1.4005 +//! and {TestPath}fileman\Copy\ as parameter.
1.4006 +//! @SYMTestStatus Implemented
1.4007 +//! @SYMTestPriority Critical
1.4008 +//! @SYMTestExpectedResults RmDir() return KErrInUse.
1.4009 +//! @SYMTestType CIT
1.4010 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.4011 + CREATE_OBJECT RFs RFs1
1.4012 + CREATE_OBJECT CFileMan CFileMan1
1.4013 + COMMAND RFs1 new
1.4014 + COMMAND RFs1 Connect
1.4015 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.4016 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.4017 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
1.4018 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2151-001-Attribs_command007
1.4019 + COMMAND !Error=-14 CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2151-001-RmDir_command008
1.4020 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2151-001-Attribs_command009
1.4021 + COMMAND CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2151-001-RmDir_command010
1.4022 + COMMAND CFileMan1 ~
1.4023 + COMMAND RFs1 ~
1.4024 + END_TEST_BLOCK
1.4025 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2151
1.4026 +
1.4027 +
1.4028 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2152
1.4029 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2152
1.4030 +//! @SYMAPI CFileMan
1.4031 +//! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName, TRequestStatus &aStatus) test.
1.4032 +//! Delete folder in which one file is readonly.
1.4033 +//! Uses API elements: NewL(), RmDir(), Copy(), Attribs;
1.4034 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.4035 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.4036 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
1.4037 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.4038 +//! and {TestPath}fileman\Copy\ as second parameter,
1.4039 +//! and aSwitch=0 as third parameter.
1.4040 +//! 4.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.4041 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.4042 +//! and KEntryAttReadOnly as second parameter,
1.4043 +//! and KEntryAttNormal as third parameter,
1.4044 +//! and TTime(0) as fourth parameter,
1.4045 +//! and CFileMan::ERecurse as fifth parameter.
1.4046 +//! 5.Call CFileMan::RmDir(const TDesC &aDirName, TRequestStatus &aStatus),
1.4047 +//! and {TestPath}fileman\Copy\ as parameter.
1.4048 +//! and iStatus as second parameter.
1.4049 +//! 6.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0)
1.4050 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.4051 +//! and KEntryAttNormal as second parameter,
1.4052 +//! and KEntryAttReadOnly as third parameter,
1.4053 +//! and TTime(0) as fourth parameter,
1.4054 +//! and CFileMan::ERecurse as fifth parameter.
1.4055 +//! 7.Call CFileMan::RmDir(const TDesC &aDirName, TRequestStatus &aStatus),
1.4056 +//! and {TestPath}fileman\Copy\ as parameter.
1.4057 +//! and iStatus as second parameter.
1.4058 +//! @SYMTestStatus Implemented
1.4059 +//! @SYMTestPriority Critical
1.4060 +//! @SYMTestExpectedResults RmDir() return KErrInUse.
1.4061 +//! @SYMTestType CIT
1.4062 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.4063 + CREATE_OBJECT RFs RFs1
1.4064 + CREATE_OBJECT CFileMan CFileMan1
1.4065 + COMMAND RFs1 new
1.4066 + COMMAND RFs1 Connect
1.4067 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.4068 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.4069 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
1.4070 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2152-001-Attribs_command007
1.4071 + COMMAND !AsyncError=-14 CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2152-001-RmDir_command008
1.4072 + OUTSTANDING
1.4073 + COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2152-001-Attribs_command009
1.4074 + COMMAND CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2152-001-RmDir_command010
1.4075 + OUTSTANDING
1.4076 + COMMAND CFileMan1 ~
1.4077 + COMMAND RFs1 ~
1.4078 + END_TEST_BLOCK
1.4079 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2152
1.4080 +
1.4081 +
1.4082 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2153
1.4083 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2153
1.4084 +//! @SYMAPI CFileMan
1.4085 +//! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName) test.
1.4086 +//! Synchronously Delete folder in which one file is opened.
1.4087 +//! Uses API elements: NewL(), RmDir(), Copy();
1.4088 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.4089 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.4090 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
1.4091 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.4092 +//! and {TestPath}fileman\Copy\ as second parameter,
1.4093 +//! and aSwitch=0 as third parameter.
1.4094 +//! 4.Open File in directory which will be deleted.
1.4095 +//! 5.Call CFileMan::RmDir(const TDesC &aDirName),
1.4096 +//! and {TestPath}fileman\Copy\ as parameter.
1.4097 +//! 6.Close opened file.
1.4098 +//! 7.Call CFileMan::RmDir(const TDesC &aDirName),
1.4099 +//! and {TestPath}fileman\Copy\ as parameter.
1.4100 +//! @SYMTestStatus Implemented
1.4101 +//! @SYMTestPriority Critical
1.4102 +//! @SYMTestExpectedResults RmDir() return KErrInUse.
1.4103 +//! @SYMTestType CIT
1.4104 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.4105 + CREATE_OBJECT RFs RFs1
1.4106 + CREATE_OBJECT RFile RFile1
1.4107 + CREATE_OBJECT CFileMan CFileMan1
1.4108 + COMMAND RFs1 new
1.4109 + COMMAND RFs1 Connect
1.4110 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.4111 + COMMAND RFile1 new
1.4112 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.4113 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
1.4114 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2153-001-Open_command007
1.4115 + COMMAND !Error=-14 CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2153-001-RmDir_command008
1.4116 + COMMAND RFile1 Close
1.4117 + COMMAND CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2153-001-RmDir_command010
1.4118 + COMMAND CFileMan1 ~
1.4119 + COMMAND RFile1 ~
1.4120 + COMMAND RFs1 ~
1.4121 + END_TEST_BLOCK
1.4122 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2153
1.4123 +
1.4124 +
1.4125 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2154
1.4126 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2154
1.4127 +//! @SYMAPI CFileMan
1.4128 +//! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName, TRequestStatus &aStatus) test.
1.4129 +//! Asynchronously Delete folder in which one file is opened.
1.4130 +//! Uses API elements: NewL(), RmDir(), Copy();
1.4131 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.4132 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.4133 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite).
1.4134 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.4135 +//! and {TestPath}fileman\Copy\ as second parameter,
1.4136 +//! and aSwitch=0 as third parameter.
1.4137 +//! 4.Open File in directory which will be deleted.
1.4138 +//! 5.Call CFileMan::RmDir(const TDesC &aDirName, TRequestStatus &aStatus),
1.4139 +//! and {TestPath}fileman\Copy\ as parameter.
1.4140 +//! and iStatus as second parameter.
1.4141 +//! 6.Close opened file.
1.4142 +//! 7.Call CFileMan::RmDir(const TDesC &aDirName, TRequestStatus &aStatus),
1.4143 +//! and {TestPath}fileman\Copy\ as parameter.
1.4144 +//! and iStatus as second parameter.
1.4145 +//! @SYMTestStatus Implemented
1.4146 +//! @SYMTestPriority Critical
1.4147 +//! @SYMTestExpectedResults RmDir() return KErrInUse.
1.4148 +//! @SYMTestType CIT
1.4149 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.4150 + CREATE_OBJECT RFs RFs1
1.4151 + CREATE_OBJECT RFile RFile1
1.4152 + CREATE_OBJECT CFileMan CFileMan1
1.4153 + COMMAND RFs1 new
1.4154 + COMMAND RFs1 Connect
1.4155 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.4156 + COMMAND RFile1 new
1.4157 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.4158 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
1.4159 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2154-001-Open_command007
1.4160 + COMMAND !AsyncError=-14 CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2154-001-RmDir_command008
1.4161 + OUTSTANDING
1.4162 + COMMAND RFile1 Close
1.4163 + COMMAND CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2154-001-RmDir_command010
1.4164 + OUTSTANDING
1.4165 + COMMAND CFileMan1 ~
1.4166 + COMMAND RFile1 ~
1.4167 + COMMAND RFs1 ~
1.4168 + END_TEST_BLOCK
1.4169 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2154
1.4170 +
1.4171 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2155
1.4172 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2155
1.4173 +//! @SYMAPI CFileBase
1.4174 +//! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
1.4175 +//! Copy files to folder where alredy exists one file from list of copied files.
1.4176 +//! Uses API elements: NewL(), SetObserver(), Copy(), Delete();
1.4177 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.4178 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.4179 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4180 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.4181 +//! and {TestPath}fileman\Copy\ as second parameter,
1.4182 +//! and aSwitch=0.
1.4183 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4184 +//! and {TestPath}fileman\ as first parameter,
1.4185 +//! and {TestPath}fileman\Copy\ as second parameter,
1.4186 +//! and aSwitch=0.
1.4187 +//! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.4188 +//! and {TestPath}fileman\Copy\ as first parameter,
1.4189 +//! and aSwitch=ERecurse.
1.4190 +//! @SYMTestStatus Implemented
1.4191 +//! @SYMTestPriority Critical
1.4192 +//! @SYMTestExpectedResults Copy() return KErrAlreadyExists when trying to copy Test1.txt.
1.4193 +//! @SYMTestType CIT
1.4194 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.4195 + CREATE_OBJECT RFs RFs1
1.4196 + CREATE_OBJECT CFileMan CFileMan1
1.4197 + COMMAND RFs1 new
1.4198 + COMMAND RFs1 Connect
1.4199 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.4200 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.4201 + COMMAND CFileMan1 SetObserver
1.4202 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
1.4203 + COMMAND !Error=-11 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2155-001-Copy_command003
1.4204 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2155-001-Delete_command004
1.4205 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.4206 + COMMAND CFileMan1 ~
1.4207 + COMMAND RFs1 ~
1.4208 + END_TEST_BLOCK
1.4209 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2155
1.4210 +
1.4211 +
1.4212 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2156
1.4213 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2156
1.4214 +//! @SYMAPI CFileBase
1.4215 +//! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
1.4216 +//! Move files to folder where alredy exists one file from list of moved files.
1.4217 +//! Uses API elements: NewL(), SetObserver(), Copy(), Move(), Delete();
1.4218 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.4219 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.4220 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4221 +//! and {TestPath}fileman\ as first parameter,
1.4222 +//! and {TestPath}fileman\Copy\ as second parameter,
1.4223 +//! and aSwitch=0.
1.4224 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4225 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.4226 +//! and {TestPath}fileman\Copy1\ as second parameter,
1.4227 +//! and aSwitch=0.
1.4228 +//! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4229 +//! and {TestPath}fileman\Copy\ as first parameter,
1.4230 +//! and {TestPath}fileman\Copy1\ as second parameter,
1.4231 +//! and aSwitch=0.
1.4232 +//! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.4233 +//! and {TestPath}fileman\Copy1\ as first parameter,
1.4234 +//! and aSwitch=ERecurse.
1.4235 +//! @SYMTestStatus Implemented
1.4236 +//! @SYMTestPriority Critical
1.4237 +//! @SYMTestExpectedResults Move() return KErrAlreadyExists when trying to copy Test1.txt.
1.4238 +//! @SYMTestType CIT
1.4239 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.4240 + CREATE_OBJECT RFs RFs1
1.4241 + CREATE_OBJECT CFileMan CFileMan1
1.4242 + COMMAND RFs1 new
1.4243 + COMMAND RFs1 Connect
1.4244 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.4245 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2156-001-MkDir_command002
1.4246 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.4247 + COMMAND CFileMan1 SetObserver
1.4248 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2156-001-Copy_command003
1.4249 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2156-001-Copy_command004
1.4250 + COMMAND !Error=-11 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2156-001-Move_command005
1.4251 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2156-001-Delete_command006
1.4252 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2156-001-Delete_command007
1.4253 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2156-001-RmDir_command008
1.4254 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.4255 + COMMAND CFileMan1 ~
1.4256 + COMMAND RFs1 ~
1.4257 + END_TEST_BLOCK
1.4258 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2156
1.4259 +
1.4260 +
1.4261 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2157
1.4262 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2157
1.4263 +//! @SYMAPI CFileBase
1.4264 +//! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
1.4265 +//! Copy files to folder where alredy exists one file from list of copied files.
1.4266 +//! Uses API elements: NewL(), SetObserver(), Copy(), Delete();
1.4267 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.4268 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.4269 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4270 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.4271 +//! and {TestPath}fileman\Copy\ as second parameter,
1.4272 +//! and aSwitch=0,
1.4273 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4274 +//! and {TestPath}fileman\ as first parameter,
1.4275 +//! and {TestPath}fileman\Copy\ as second parameter,
1.4276 +//! and aSwitch=0,
1.4277 +//! and iStatus.
1.4278 +//! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.4279 +//! and {TestPath}fileman\Copy\ as first parameter,
1.4280 +//! and aSwitch=ERecurse.
1.4281 +//! @SYMTestStatus Implemented
1.4282 +//! @SYMTestPriority Critical
1.4283 +//! @SYMTestExpectedResults Copy() return KErrAlreadyExists when trying to copy Test1.txt.
1.4284 +//! @SYMTestType CIT
1.4285 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.4286 + CREATE_OBJECT RFs RFs1
1.4287 + CREATE_OBJECT CFileMan CFileMan1
1.4288 + COMMAND RFs1 new
1.4289 + COMMAND RFs1 Connect
1.4290 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.4291 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.4292 + COMMAND CFileMan1 SetObserver
1.4293 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
1.4294 + COMMAND !AsyncError=-11 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2157-001-Copy_command003
1.4295 + OUTSTANDING
1.4296 + COMMAND CFileMan1 ~
1.4297 + COMMAND RFs1 ~
1.4298 + END_TEST_BLOCK
1.4299 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.4300 + CREATE_OBJECT RFs RFs1
1.4301 + CREATE_OBJECT CFileMan CFileMan1
1.4302 + COMMAND RFs1 new
1.4303 + COMMAND RFs1 Connect
1.4304 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.4305 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2157-001-Delete_command004
1.4306 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.4307 + COMMAND CFileMan1 ~
1.4308 + COMMAND RFs1 ~
1.4309 + END_TEST_BLOCK
1.4310 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2157
1.4311 +
1.4312 +
1.4313 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2158
1.4314 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2158
1.4315 +//! @SYMAPI CFileBase
1.4316 +//! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
1.4317 +//! Move files to folder where alredy exists one file from list of moved files.
1.4318 +//! Uses API elements: NewL(), SetObserver(), Copy(), Move(), Delete();
1.4319 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.4320 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.4321 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4322 +//! and {TestPath}fileman\ as first parameter,
1.4323 +//! and {TestPath}fileman\Copy\ as second parameter,
1.4324 +//! and aSwitch=0.
1.4325 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4326 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.4327 +//! and {TestPath}fileman\Copy1\ as second parameter,
1.4328 +//! and aSwitch=0.
1.4329 +//! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4330 +//! and {TestPath}fileman\Copy\ as first parameter,
1.4331 +//! and {TestPath}fileman\Copy1\ as second parameter,
1.4332 +//! and aSwitch=0
1.4333 +//! and iStatus.
1.4334 +//! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.4335 +//! and {TestPath}fileman\Copy1\ as first parameter,
1.4336 +//! and aSwitch=ERecurse.
1.4337 +//! @SYMTestStatus Implemented
1.4338 +//! @SYMTestPriority Critical
1.4339 +//! @SYMTestExpectedResults Move() return KErrAlreadyExists when trying to copy Test1.txt.
1.4340 +//! @SYMTestType CIT
1.4341 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.4342 + CREATE_OBJECT RFs RFs1
1.4343 + CREATE_OBJECT CFileMan CFileMan1
1.4344 + COMMAND RFs1 new
1.4345 + COMMAND RFs1 Connect
1.4346 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.4347 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2158-001-MkDir_command002
1.4348 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.4349 + COMMAND CFileMan1 SetObserver
1.4350 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2158-001-Copy_command003
1.4351 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2158-001-Copy_command004
1.4352 + COMMAND !AsyncError=-11 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2158-001-Move_command005
1.4353 + OUTSTANDING
1.4354 + COMMAND CFileMan1 ~
1.4355 + COMMAND RFs1 ~
1.4356 + END_TEST_BLOCK
1.4357 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.4358 + CREATE_OBJECT RFs RFs1
1.4359 + CREATE_OBJECT CFileMan CFileMan1
1.4360 + COMMAND RFs1 new
1.4361 + COMMAND RFs1 Connect
1.4362 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.4363 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2158-001-Delete_command006
1.4364 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2158-001-Delete_command007
1.4365 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2158-001-RmDir_command008
1.4366 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.4367 + COMMAND CFileMan1 ~
1.4368 + COMMAND RFs1 ~
1.4369 + END_TEST_BLOCK
1.4370 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2158
1.4371 +
1.4372 +
1.4373 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2159
1.4374 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2159
1.4375 +//! @SYMAPI CFileBase
1.4376 +//! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test.
1.4377 +//! Synchronously try to move opened file.
1.4378 +//! Uses API elements: NewL(), Copy(), Delete();
1.4379 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.4380 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.4381 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4382 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.4383 +//! and {TestPath}fileman\Copy\Test1.txt as second parameter.
1.4384 +//! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4385 +//! and {TestPath}fileman\Copy as first parameter,
1.4386 +//! and {TestPath}fileman\Copy1\ as second parameter,
1.4387 +//! and aSwitch = ERecurse.
1.4388 +//! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.4389 +//! and {TestPath}fileman\Copy\* as parameter.
1.4390 +//! @SYMTestStatus Implemented
1.4391 +//! @SYMTestPriority Critical
1.4392 +//! @SYMTestExpectedResults Move() return KErrInUse.
1.4393 +//! @SYMTestType CIT
1.4394 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.4395 + CREATE_OBJECT RFs RFs1
1.4396 + CREATE_OBJECT RFile RFile1
1.4397 + CREATE_OBJECT CFileMan CFileMan1
1.4398 + COMMAND RFs1 new
1.4399 + COMMAND RFs1 Connect
1.4400 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.4401 + COMMAND RFile1 new
1.4402 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.4403 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_EOverWrite
1.4404 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2159-001-Open_command004
1.4405 + COMMAND !Error=-14 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2159-001-Move_command005
1.4406 + COMMAND RFile1 Close
1.4407 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2159-001-Delete_command006
1.4408 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.4409 + COMMAND CFileMan1 ~
1.4410 + COMMAND RFile1 ~
1.4411 + COMMAND RFs1 ~
1.4412 + END_TEST_BLOCK
1.4413 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2159
1.4414 +
1.4415 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2160
1.4416 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2160
1.4417 +//! @SYMAPI CFileBase
1.4418 +//! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
1.4419 +//! Asynchronously try to move opened file.
1.4420 +//! Uses API elements: NewL(), Copy(), Delete();
1.4421 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.4422 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.4423 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4424 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.4425 +//! and {TestPath}fileman\Copy\Test1.txt as second parameter.
1.4426 +//! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1.4427 +//! and {TestPath}fileman\Copy as first parameter,
1.4428 +//! and {TestPath}fileman\Copy1\ as second parameter,
1.4429 +//! and aSwitch = ERecurse.
1.4430 +//! and iStatus.
1.4431 +//! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.4432 +//! and {TestPath}fileman\Copy\* as parameter.
1.4433 +//! @SYMTestStatus Implemented
1.4434 +//! @SYMTestPriority Critical
1.4435 +//! @SYMTestExpectedResults Move() return KErrInUse.
1.4436 +//! @SYMTestType CIT
1.4437 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.4438 + CREATE_OBJECT RFs RFs1
1.4439 + CREATE_OBJECT RFile RFile1
1.4440 + CREATE_OBJECT CFileMan CFileMan1
1.4441 + COMMAND RFs1 new
1.4442 + COMMAND RFs1 Connect
1.4443 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.4444 + COMMAND RFile1 new
1.4445 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.4446 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_EOverWrite
1.4447 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2160-001-Open_command004
1.4448 + COMMAND !AsyncError=-14 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2160-001-Move_command005
1.4449 + OUTSTANDING
1.4450 + COMMAND RFile1 Close
1.4451 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2160-001-Delete_command006
1.4452 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.4453 + COMMAND CFileMan1 ~
1.4454 + COMMAND RFile1 ~
1.4455 + COMMAND RFs1 ~
1.4456 + END_TEST_BLOCK
1.4457 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2160
1.4458 +
1.4459 +
1.4460 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2161
1.4461 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2161
1.4462 +//! @SYMAPI CFileBase
1.4463 +//! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
1.4464 +//! Call asynchronous Copy() 3 times for one file at one time.
1.4465 +//! Uses API elements: NewL(), Copy(), Delete();
1.4466 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.4467 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.4468 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1.4469 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.4470 +//! and {TestPath}fileman\Copy\Test1.txt as second parameter,
1.4471 +//! and aSwitch = 0,
1.4472 +//! and iStatus.
1.4473 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1.4474 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.4475 +//! and {TestPath}fileman\Copy\Test1.txt as second parameter.
1.4476 +//! and aSwitch = 0,
1.4477 +//! and iStatus.
1.4478 +//! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1.4479 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.4480 +//! and {TestPath}fileman\Copy\Test1.txt as second parameter.
1.4481 +//! and aSwitch = 0,
1.4482 +//! and iStatus.
1.4483 +//! 6.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.4484 +//! and {TestPath}fileman\Copy\* as parameter.
1.4485 +//! @SYMTestStatus Implemented
1.4486 +//! @SYMTestPriority Critical
1.4487 +//! @SYMTestExpectedResults Second and third copy calls return KErrAlreadyExists.
1.4488 +//! @SYMTestType CIT
1.4489 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.4490 + CREATE_OBJECT RFs RFs1
1.4491 + CREATE_OBJECT CFileMan CFileMan1
1.4492 + COMMAND RFs1 new
1.4493 + COMMAND RFs1 Connect
1.4494 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.4495 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.4496 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2161-001-Copy_command002
1.4497 + COMMAND !Error=-14 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2161-001-Copy_command002
1.4498 + COMMAND !Error=-14 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2161-001-Copy_command002
1.4499 + OUTSTANDING
1.4500 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2161-001-Delete_command003
1.4501 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.4502 + COMMAND CFileMan1 ~
1.4503 + COMMAND RFs1 ~
1.4504 + END_TEST_BLOCK
1.4505 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2161
1.4506 +
1.4507 +
1.4508 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2162
1.4509 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2162
1.4510 +//! @SYMAPI CFileBase
1.4511 +//! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
1.4512 +//! Call asynchronous Move() 3 times for one file at one time.
1.4513 +//! Uses API elements: NewL(), Copy(), Move(), Delete();
1.4514 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.4515 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.4516 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4517 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.4518 +//! and {TestPath}fileman\Copy\Test1.txt as second parameter,
1.4519 +//! and aSwitch = 0.
1.4520 +//! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1.4521 +//! and {TestPath}fileman\Copy\Test1.txt as first parameter,
1.4522 +//! and {TestPath}fileman\Test\Test1.txt as second parameter.
1.4523 +//! and aSwitch = 0,
1.4524 +//! and iStatus.
1.4525 +//! 5.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1.4526 +//! and {TestPath}fileman\Copy\Test1.txt as first parameter,
1.4527 +//! and {TestPath}fileman\Test\Test1.txt as second parameter.
1.4528 +//! and aSwitch = 0,
1.4529 +//! and iStatus.
1.4530 +//! 6.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1.4531 +//! and {TestPath}fileman\Copy\Test1.txt as first parameter,
1.4532 +//! and {TestPath}fileman\Test\Test1.txt as second parameter.
1.4533 +//! and aSwitch = 0,
1.4534 +//! and iStatus.
1.4535 +//! 7.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.4536 +//! and {TestPath}fileman\Test\* as parameter.
1.4537 +//! @SYMTestStatus Implemented
1.4538 +//! @SYMTestPriority Critical
1.4539 +//! @SYMTestExpectedResults Second and third Move calls return KErrInUse.
1.4540 +//! @SYMTestType CIT
1.4541 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.4542 + CREATE_OBJECT RFs RFs1
1.4543 + CREATE_OBJECT CFileMan CFileMan1
1.4544 + COMMAND RFs1 new
1.4545 + COMMAND RFs1 Connect
1.4546 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.4547 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir
1.4548 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.4549 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2162-001-Copy_command002
1.4550 + COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2162-001-Move_command003
1.4551 + COMMAND !Error=-14 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2162-001-Move_command003
1.4552 + COMMAND !Error=-14 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2162-001-Move_command003
1.4553 + OUTSTANDING
1.4554 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2162-001-Delete_command004
1.4555 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.4556 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir
1.4557 + COMMAND CFileMan1 ~
1.4558 + COMMAND RFs1 ~
1.4559 + END_TEST_BLOCK
1.4560 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2162
1.4561 +
1.4562 +
1.4563 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2163
1.4564 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2163
1.4565 +//! @SYMAPI CFileBase
1.4566 +//! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test.
1.4567 +//! Call asynchronous Rename() 3 times for one file at one time.
1.4568 +//! Uses API elements: NewL(), Copy(), Move(), Delete();
1.4569 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.4570 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.4571 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4572 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.4573 +//! and {TestPath}fileman\Copy\Test1.txt as second parameter,
1.4574 +//! and aSwitch = 0.
1.4575 +//! 4.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1.4576 +//! and {TestPath}fileman\Copy\Test1.txt as first parameter,
1.4577 +//! and {TestPath}fileman\Copy\Test1_new.txt as second parameter.
1.4578 +//! and aSwitch = 0,
1.4579 +//! and iStatus.
1.4580 +//! 5.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1.4581 +//! and {TestPath}fileman\Copy\Test1.txt as first parameter,
1.4582 +//! and {TestPath}fileman\Copy\Test1_new.txt as second parameter.
1.4583 +//! and aSwitch = 0,
1.4584 +//! and iStatus.
1.4585 +//! 6.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus),
1.4586 +//! and {TestPath}fileman\Copy\Test1.txt as first parameter,
1.4587 +//! and {TestPath}fileman\Copy\Test1_new.txt as second parameter.
1.4588 +//! and aSwitch = 0,
1.4589 +//! and iStatus.
1.4590 +//! 7.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.4591 +//! and {TestPath}fileman\Copy\* as parameter.
1.4592 +//! @SYMTestStatus Implemented
1.4593 +//! @SYMTestPriority Critical
1.4594 +//! @SYMTestExpectedResults Second and third Rename calls return KErrInUse.
1.4595 +//! @SYMTestType CIT
1.4596 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.4597 + CREATE_OBJECT RFs RFs1
1.4598 + CREATE_OBJECT CFileMan CFileMan1
1.4599 + COMMAND RFs1 new
1.4600 + COMMAND RFs1 Connect
1.4601 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.4602 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.4603 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2163-001-Copy_command002
1.4604 + COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2163-001-Rename_command003
1.4605 + COMMAND !Error=-14 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2163-001-Rename_command003
1.4606 + COMMAND !Error=-14 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2163-001-Rename_command003
1.4607 + OUTSTANDING
1.4608 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2163-001-Delete_command004
1.4609 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.4610 + COMMAND CFileMan1 ~
1.4611 + COMMAND RFs1 ~
1.4612 + END_TEST_BLOCK
1.4613 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2163
1.4614 +
1.4615 +
1.4616 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2166
1.4617 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2166
1.4618 +//! @SYMAPI CFileBase
1.4619 +//! @SYMTestCaseDesc Function MFileManObserver::NotifyFileManStarted() test.
1.4620 +//! Return TControl::ECancel during synchronous Copy process for one file and check that this file wasn't copied.
1.4621 +//! Uses API elements: NewL(), Copy(), Delete();
1.4622 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.4623 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.4624 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4625 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.4626 +//! and {TestPath}fileman\Copy\ as second parameter,
1.4627 +//! and aSwitch = 0.
1.4628 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4629 +//! and {TestPath}fileman\Test2.txt as first parameter,
1.4630 +//! and {TestPath}fileman\Copy\ as second parameter,
1.4631 +//! and aSwitch = 0.
1.4632 +//! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4633 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.4634 +//! and {TestPath}fileman\Copy\ as second parameter,
1.4635 +//! and aSwitch = 0.
1.4636 +//! 6.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4637 +//! and {TestPath}fileman\Copy\ as first parameter,
1.4638 +//! and {TestPath}fileman\Test\ as second parameter,
1.4639 +//! and aSwitch = 0,
1.4640 +//! and also set to return TCOntrol::ECancel for Test2.txt in NotifyFileManStarted.
1.4641 +//! 7.Check that file Test2.txt wasn't copied.
1.4642 +//! 8.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.4643 +//! and {TestPath}fileman\Copy\* as parameter.
1.4644 +//! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.4645 +//! and {TestPath}fileman\Test\* as parameter.
1.4646 +//! @SYMTestStatus Implemented
1.4647 +//! @SYMTestPriority Critical
1.4648 +//! @SYMTestExpectedResults File Test2.txt wasn't copied.
1.4649 +//! @SYMTestType CIT
1.4650 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.4651 + CREATE_OBJECT RFs RFs1
1.4652 + CREATE_OBJECT RFile RFile1
1.4653 + CREATE_OBJECT CFileMan CFileMan1
1.4654 + COMMAND RFs1 new
1.4655 + COMMAND RFs1 Connect
1.4656 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.4657 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir
1.4658 + COMMAND RFile1 new
1.4659 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.4660 + COMMAND CFileMan1 SetObserver
1.4661 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
1.4662 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0
1.4663 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0
1.4664 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2166-001-Copy_command002
1.4665 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2166-001-Open_command003
1.4666 + COMMAND RFile1 Close
1.4667 + COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2166-001-Open_command004
1.4668 + COMMAND RFile1 Close
1.4669 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2166-001-Open_command005
1.4670 + COMMAND RFile1 Close
1.4671 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2166-001-Delete_command006
1.4672 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2166-001-Delete_command007
1.4673 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.4674 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir
1.4675 + COMMAND CFileMan1 ~
1.4676 + COMMAND RFile1 ~
1.4677 + COMMAND RFs1 ~
1.4678 + END_TEST_BLOCK
1.4679 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2166
1.4680 +
1.4681 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2167
1.4682 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2167
1.4683 +//! @SYMAPI CFileBase
1.4684 +//! @SYMTestCaseDesc Function MFileManObserver::NotifyFileManStarted() test.
1.4685 +//! Return TControl::ECancel during asynchronous Copy process for one file and check that this file wasn't copied.
1.4686 +//! Uses API elements: NewL(), Copy(), Delete();
1.4687 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.4688 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.4689 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4690 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.4691 +//! and {TestPath}fileman\Copy\ as second parameter,
1.4692 +//! and aSwitch = 0.
1.4693 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4694 +//! and {TestPath}fileman\Test2.txt as first parameter,
1.4695 +//! and {TestPath}fileman\Copy\ as second parameter,
1.4696 +//! and aSwitch = 0.
1.4697 +//! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4698 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.4699 +//! and {TestPath}fileman\Copy\ as second parameter,
1.4700 +//! and aSwitch = 0.
1.4701 +//! 6.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4702 +//! and {TestPath}fileman\Copy\ as first parameter,
1.4703 +//! and {TestPath}fileman\Test\ as second parameter,
1.4704 +//! and aSwitch = 0,
1.4705 +//! and also set to return TCOntrol::ECancel for Test2.txt in NotifyFileManStarted.
1.4706 +//! 7.Check that file Test2.txt wasn't copied.
1.4707 +//! 8.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.4708 +//! and {TestPath}fileman\Copy\* as parameter.
1.4709 +//! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.4710 +//! and {TestPath}fileman\Test\* as parameter.
1.4711 +//! @SYMTestStatus Implemented
1.4712 +//! @SYMTestPriority Critical
1.4713 +//! @SYMTestExpectedResults File Test2.txt wasn't copied.
1.4714 +//! @SYMTestType CIT
1.4715 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.4716 + CREATE_OBJECT RFs RFs1
1.4717 + CREATE_OBJECT RFile RFile1
1.4718 + CREATE_OBJECT CFileMan CFileMan1
1.4719 + COMMAND RFs1 new
1.4720 + COMMAND RFs1 Connect
1.4721 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.4722 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir
1.4723 + COMMAND RFile1 new
1.4724 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.4725 + COMMAND CFileMan1 SetObserver
1.4726 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
1.4727 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0
1.4728 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0
1.4729 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2167-001-Copy_command002
1.4730 + OUTSTANDING
1.4731 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2167-001-Open_command003
1.4732 + COMMAND RFile1 Close
1.4733 + COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2167-001-Open_command004
1.4734 + COMMAND RFile1 Close
1.4735 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2167-001-Open_command005
1.4736 + COMMAND RFile1 Close
1.4737 + COMMAND CFileMan1 ~
1.4738 + COMMAND RFile1 ~
1.4739 + COMMAND RFs1 ~
1.4740 + END_TEST_BLOCK
1.4741 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.4742 + CREATE_OBJECT RFs RFs1
1.4743 + CREATE_OBJECT CFileMan CFileMan1
1.4744 + COMMAND RFs1 new
1.4745 + COMMAND RFs1 Connect
1.4746 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.4747 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2167-001-Delete_command006
1.4748 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2167-001-Delete_command007
1.4749 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.4750 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir
1.4751 + COMMAND CFileMan1 ~
1.4752 + COMMAND RFs1 ~
1.4753 + END_TEST_BLOCK
1.4754 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2167
1.4755 +
1.4756 +
1.4757 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2168
1.4758 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2168
1.4759 +//! @SYMAPI CFileBase
1.4760 +//! @SYMTestCaseDesc Function MFileManObserver::NotifyFileManStarted() test.
1.4761 +//! Return TControl::EAbort during synchronous Copy process for one file and check that copy process is aborted.
1.4762 +//! Uses API elements: NewL(), Copy(), Delete();
1.4763 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.4764 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.4765 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4766 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.4767 +//! and {TestPath}fileman\Copy\ as second parameter,
1.4768 +//! and aSwitch = 0.
1.4769 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4770 +//! and {TestPath}fileman\Test2.txt as first parameter,
1.4771 +//! and {TestPath}fileman\Copy\ as second parameter,
1.4772 +//! and aSwitch = 0.
1.4773 +//! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4774 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.4775 +//! and {TestPath}fileman\Copy\ as second parameter,
1.4776 +//! and aSwitch = 0.
1.4777 +//! 6.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4778 +//! and {TestPath}fileman\Copy\ as first parameter,
1.4779 +//! and {TestPath}fileman\Test\ as second parameter,
1.4780 +//! and aSwitch = 0,
1.4781 +//! and also set to return TCOntrol::EAbort for Test2.txt in NotifyFileManStarted.
1.4782 +//! 7.Check that only file Test1.txt was copied. If files copied in this order, Test1.txt, Test2.txt, Test3.txt
1.4783 +//! 8.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.4784 +//! and {TestPath}fileman\Copy\* as parameter.
1.4785 +//! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.4786 +//! and {TestPath}fileman\Test\* as parameter.
1.4787 +//! @SYMTestStatus Implemented
1.4788 +//! @SYMTestPriority Critical
1.4789 +//! @SYMTestExpectedResults Only Test1.txt was copied. Copy returns KErrCancel.
1.4790 +//! @SYMTestType CIT
1.4791 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.4792 + CREATE_OBJECT RFs RFs1
1.4793 + CREATE_OBJECT RFile RFile1
1.4794 + CREATE_OBJECT CFileMan CFileMan1
1.4795 + COMMAND RFs1 new
1.4796 + COMMAND RFs1 Connect
1.4797 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.4798 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir
1.4799 + COMMAND RFile1 new
1.4800 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.4801 + COMMAND CFileMan1 SetObserver
1.4802 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
1.4803 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0
1.4804 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0
1.4805 + COMMAND !Error=-3 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2168-001-Copy_command002
1.4806 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2168-001-Open_command003
1.4807 + COMMAND RFile1 Close
1.4808 + COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2168-001-Open_command004
1.4809 + COMMAND RFile1 Close
1.4810 + COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2168-001-Open_command005
1.4811 + COMMAND RFile1 Close
1.4812 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2168-001-Delete_command006
1.4813 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2168-001-Delete_command007
1.4814 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.4815 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir
1.4816 + COMMAND CFileMan1 ~
1.4817 + COMMAND RFile1 ~
1.4818 + COMMAND RFs1 ~
1.4819 + END_TEST_BLOCK
1.4820 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2168
1.4821 +
1.4822 +
1.4823 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2169
1.4824 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2169
1.4825 +//! @SYMAPI CFileBase
1.4826 +//! @SYMTestCaseDesc Function MFileManObserver::NotifyFileManStarted() test.
1.4827 +//! Return TControl::EAbort during asynchronous Copy process for one file and check that copy process is aborted.
1.4828 +//! Uses API elements: NewL(), Copy(), Delete();
1.4829 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.4830 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.4831 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4832 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.4833 +//! and {TestPath}fileman\Copy\ as second parameter,
1.4834 +//! and aSwitch = 0.
1.4835 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4836 +//! and {TestPath}fileman\Test2.txt as first parameter,
1.4837 +//! and {TestPath}fileman\Copy\ as second parameter,
1.4838 +//! and aSwitch = 0.
1.4839 +//! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4840 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.4841 +//! and {TestPath}fileman\Copy\ as second parameter,
1.4842 +//! and aSwitch = 0.
1.4843 +//! 6.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4844 +//! and {TestPath}fileman\Copy\ as first parameter,
1.4845 +//! and {TestPath}fileman\Test\ as second parameter,
1.4846 +//! and aSwitch = 0,
1.4847 +//! and also set to return TCOntrol::EAbort for Test2.txt in NotifyFileManStarted.
1.4848 +//! 7.Check that only file Test1.txt was copied. If files copied in this order, Test1.txt, Test2.txt, Test3.txt
1.4849 +//! 8.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.4850 +//! and {TestPath}fileman\Copy\* as parameter.
1.4851 +//! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.4852 +//! and {TestPath}fileman\Test\* as parameter.
1.4853 +//! @SYMTestStatus Implemented
1.4854 +//! @SYMTestPriority Critical
1.4855 +//! @SYMTestExpectedResults Only Test1.txt was copied. Copy returns KErrCancel.
1.4856 +//! @SYMTestType CIT
1.4857 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.4858 + CREATE_OBJECT RFs RFs1
1.4859 + CREATE_OBJECT RFile RFile1
1.4860 + CREATE_OBJECT CFileMan CFileMan1
1.4861 + COMMAND RFs1 new
1.4862 + COMMAND RFs1 Connect
1.4863 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.4864 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir
1.4865 + COMMAND RFile1 new
1.4866 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.4867 + COMMAND CFileMan1 SetObserver
1.4868 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
1.4869 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0
1.4870 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0
1.4871 + COMMAND !AsyncError=-3 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2169-001-Copy_command002
1.4872 + OUTSTANDING
1.4873 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2169-001-Open_command003
1.4874 + COMMAND RFile1 Close
1.4875 + COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2169-001-Open_command004
1.4876 + COMMAND RFile1 Close
1.4877 + COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2169-001-Open_command005
1.4878 + COMMAND RFile1 Close
1.4879 + COMMAND CFileMan1 ~
1.4880 + COMMAND RFile1 ~
1.4881 + COMMAND RFs1 ~
1.4882 + END_TEST_BLOCK
1.4883 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.4884 + CREATE_OBJECT RFs RFs1
1.4885 + CREATE_OBJECT CFileMan CFileMan1
1.4886 + COMMAND RFs1 new
1.4887 + COMMAND RFs1 Connect
1.4888 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.4889 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2169-001-Delete_command006
1.4890 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2169-001-Delete_command007
1.4891 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.4892 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir
1.4893 + COMMAND CFileMan1 ~
1.4894 + COMMAND RFs1 ~
1.4895 + END_TEST_BLOCK
1.4896 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2169
1.4897 +
1.4898 +
1.4899 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2170
1.4900 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2170
1.4901 +//! @SYMAPI CFileBase
1.4902 +//! @SYMTestCaseDesc Function MFileManObserver::NotifyFileManOperation() test.
1.4903 +//! Return TControl::ECancel during synchronous Copy process for one file and check that this file wasn't copied.
1.4904 +//! Uses API elements: NewL(), Copy(), Delete();
1.4905 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.4906 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.4907 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4908 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.4909 +//! and {TestPath}fileman\Copy\ as second parameter,
1.4910 +//! and aSwitch = 0.
1.4911 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4912 +//! and {TestPath}fileman\Test2.txt as first parameter,
1.4913 +//! and {TestPath}fileman\Copy\ as second parameter,
1.4914 +//! and aSwitch = 0.
1.4915 +//! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4916 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.4917 +//! and {TestPath}fileman\Copy\ as second parameter,
1.4918 +//! and aSwitch = 0.
1.4919 +//! 6.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4920 +//! and {TestPath}fileman\Copy\ as first parameter,
1.4921 +//! and {TestPath}fileman\Test\ as second parameter,
1.4922 +//! and aSwitch = 0,
1.4923 +//! and also set to return TCOntrol::ECancel for Test2.txt in NotifyFileManOperation.
1.4924 +//! 7.Check that file Test2.txt wasn't copied.
1.4925 +//! 8.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.4926 +//! and {TestPath}fileman\Copy\* as parameter.
1.4927 +//! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.4928 +//! and {TestPath}fileman\Test\* as parameter.
1.4929 +//! @SYMTestStatus Implemented
1.4930 +//! @SYMTestPriority Critical
1.4931 +//! @SYMTestExpectedResults File Test2.txt wasn't copied.
1.4932 +//! @SYMTestType CIT
1.4933 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.4934 + CREATE_OBJECT RFs RFs1
1.4935 + CREATE_OBJECT RFile RFile1
1.4936 + CREATE_OBJECT CFileMan CFileMan1
1.4937 + COMMAND RFs1 new
1.4938 + COMMAND RFs1 Connect
1.4939 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.4940 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir
1.4941 + COMMAND RFile1 new
1.4942 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.4943 + COMMAND CFileMan1 SetObserver
1.4944 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
1.4945 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0
1.4946 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0
1.4947 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2170-001-Copy_command002
1.4948 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2170-001-Open_command003
1.4949 + COMMAND RFile1 Close
1.4950 + COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2170-001-Open_command004
1.4951 + COMMAND RFile1 Close
1.4952 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2170-001-Open_command005
1.4953 + COMMAND RFile1 Close
1.4954 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2170-001-Delete_command006
1.4955 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2170-001-Delete_command007
1.4956 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.4957 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir
1.4958 + COMMAND CFileMan1 ~
1.4959 + COMMAND RFile1 ~
1.4960 + COMMAND RFs1 ~
1.4961 + END_TEST_BLOCK
1.4962 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2170
1.4963 +
1.4964 +
1.4965 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2171
1.4966 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2171
1.4967 +//! @SYMAPI CFileBase
1.4968 +//! @SYMTestCaseDesc Function MFileManObserver::NotifyFileManOperation() test.
1.4969 +//! Return TControl::ECancel during asynchronous Copy process for one file and check that this file wasn't copied.
1.4970 +//! Uses API elements: NewL(), Copy(), Delete();
1.4971 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.4972 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.4973 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4974 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.4975 +//! and {TestPath}fileman\Copy\ as second parameter,
1.4976 +//! and aSwitch = 0.
1.4977 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4978 +//! and {TestPath}fileman\Test2.txt as first parameter,
1.4979 +//! and {TestPath}fileman\Copy\ as second parameter,
1.4980 +//! and aSwitch = 0.
1.4981 +//! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4982 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.4983 +//! and {TestPath}fileman\Copy\ as second parameter,
1.4984 +//! and aSwitch = 0.
1.4985 +//! 6.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.4986 +//! and {TestPath}fileman\Copy\ as first parameter,
1.4987 +//! and {TestPath}fileman\Test\ as second parameter,
1.4988 +//! and aSwitch = 0,
1.4989 +//! and also set to return TCOntrol::ECancel for Test2.txt in NotifyFileManOperation.
1.4990 +//! 7.Check that file Test2.txt wasn't copied.
1.4991 +//! 8.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.4992 +//! and {TestPath}fileman\Copy\* as parameter.
1.4993 +//! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.4994 +//! and {TestPath}fileman\Test\* as parameter.
1.4995 +//! @SYMTestStatus Implemented
1.4996 +//! @SYMTestPriority Critical
1.4997 +//! @SYMTestExpectedResults File Test2.txt wasn't copied.
1.4998 +//! @SYMTestType CIT
1.4999 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.5000 + CREATE_OBJECT RFs RFs1
1.5001 + CREATE_OBJECT RFile RFile1
1.5002 + CREATE_OBJECT CFileMan CFileMan1
1.5003 + COMMAND RFs1 new
1.5004 + COMMAND RFs1 Connect
1.5005 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.5006 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir
1.5007 + COMMAND RFile1 new
1.5008 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.5009 + COMMAND CFileMan1 SetObserver
1.5010 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
1.5011 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0
1.5012 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0
1.5013 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2171-001-Copy_command002
1.5014 + OUTSTANDING
1.5015 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2171-001-Open_command003
1.5016 + COMMAND RFile1 Close
1.5017 + COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2171-001-Open_command004
1.5018 + COMMAND RFile1 Close
1.5019 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2171-001-Open_command005
1.5020 + COMMAND RFile1 Close
1.5021 + COMMAND CFileMan1 ~
1.5022 + COMMAND RFile1 ~
1.5023 + COMMAND RFs1 ~
1.5024 + END_TEST_BLOCK
1.5025 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.5026 + CREATE_OBJECT RFs RFs1
1.5027 + CREATE_OBJECT CFileMan CFileMan1
1.5028 + COMMAND RFs1 new
1.5029 + COMMAND RFs1 Connect
1.5030 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.5031 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2171-001-Delete_command006
1.5032 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2171-001-Delete_command007
1.5033 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.5034 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir
1.5035 + COMMAND CFileMan1 ~
1.5036 + COMMAND RFs1 ~
1.5037 + END_TEST_BLOCK
1.5038 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2171
1.5039 +
1.5040 +
1.5041 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2172
1.5042 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2172
1.5043 +//! @SYMAPI CFileBase
1.5044 +//! @SYMTestCaseDesc Function MFileManObserver::NotifyFileManEnded() test.
1.5045 +//! Return TControl::EAbort during synchronous Copy process for one file and check that copy process is aborted.
1.5046 +//! Uses API elements: NewL(), Copy(), Delete();
1.5047 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.5048 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.5049 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.5050 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.5051 +//! and {TestPath}fileman\Copy\ as second parameter,
1.5052 +//! and aSwitch = 0.
1.5053 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.5054 +//! and {TestPath}fileman\Test2.txt as first parameter,
1.5055 +//! and {TestPath}fileman\Copy\ as second parameter,
1.5056 +//! and aSwitch = 0.
1.5057 +//! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.5058 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.5059 +//! and {TestPath}fileman\Copy\ as second parameter,
1.5060 +//! and aSwitch = 0.
1.5061 +//! 6.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.5062 +//! and {TestPath}fileman\Copy\ as first parameter,
1.5063 +//! and {TestPath}fileman\Test\ as second parameter,
1.5064 +//! and aSwitch = 0,
1.5065 +//! and also set to return TCOntrol::EAbort for Test1.txt in NotifyFileManEnded.
1.5066 +//! 7.Check that only file Test1.txt was copied.
1.5067 +//! 8.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.5068 +//! and {TestPath}fileman\Copy\* as parameter.
1.5069 +//! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.5070 +//! and {TestPath}fileman\Test\* as parameter.
1.5071 +//! @SYMTestStatus Implemented
1.5072 +//! @SYMTestPriority Critical
1.5073 +//! @SYMTestExpectedResults Only Test1.txt was copied.
1.5074 +//! @SYMTestType CIT
1.5075 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.5076 + CREATE_OBJECT RFs RFs1
1.5077 + CREATE_OBJECT RFile RFile1
1.5078 + CREATE_OBJECT CFileMan CFileMan1
1.5079 + COMMAND RFs1 new
1.5080 + COMMAND RFs1 Connect
1.5081 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.5082 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir
1.5083 + COMMAND RFile1 new
1.5084 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.5085 + COMMAND CFileMan1 SetObserver
1.5086 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
1.5087 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0
1.5088 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0
1.5089 + COMMAND !Error=-3 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2172-001-Copy_command002
1.5090 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2172-001-Open_command003
1.5091 + COMMAND RFile1 Close
1.5092 + COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2172-001-Open_command004
1.5093 + COMMAND RFile1 Close
1.5094 + COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2172-001-Open_command005
1.5095 + COMMAND RFile1 Close
1.5096 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2172-001-Delete_command006
1.5097 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2172-001-Delete_command007
1.5098 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.5099 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir
1.5100 + COMMAND CFileMan1 ~
1.5101 + COMMAND RFile1 ~
1.5102 + COMMAND RFs1 ~
1.5103 + END_TEST_BLOCK
1.5104 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2172
1.5105 +
1.5106 +
1.5107 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2173
1.5108 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2173
1.5109 +//! @SYMAPI CFileBase
1.5110 +//! @SYMTestCaseDesc Function MFileManObserver::NotifyFileManEnded() test.
1.5111 +//! Return TControl::EAbort during synchronous Copy process for one file and check that copy process is aborted.
1.5112 +//! Uses API elements: NewL(), Copy(), Delete();
1.5113 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.5114 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.5115 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.5116 +//! and {TestPath}fileman\Test1.txt as first parameter,
1.5117 +//! and {TestPath}fileman\Copy\ as second parameter,
1.5118 +//! and aSwitch = 0.
1.5119 +//! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.5120 +//! and {TestPath}fileman\Test2.txt as first parameter,
1.5121 +//! and {TestPath}fileman\Copy\ as second parameter,
1.5122 +//! and aSwitch = 0.
1.5123 +//! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.5124 +//! and {TestPath}fileman\Test3.txt as first parameter,
1.5125 +//! and {TestPath}fileman\Copy\ as second parameter,
1.5126 +//! and aSwitch = 0.
1.5127 +//! 6.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.5128 +//! and {TestPath}fileman\Copy\ as first parameter,
1.5129 +//! and {TestPath}fileman\Test\ as second parameter,
1.5130 +//! and aSwitch = 0,
1.5131 +//! and also set to return TCOntrol::EAbort for Test2.txt in NotifyFileManEnded.
1.5132 +//! 7.Check that only file Test1.txt was copied.
1.5133 +//! 8.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.5134 +//! and {TestPath}fileman\Copy\* as parameter.
1.5135 +//! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.5136 +//! and {TestPath}fileman\Test\* as parameter.
1.5137 +//! @SYMTestStatus Implemented
1.5138 +//! @SYMTestPriority Critical
1.5139 +//! @SYMTestExpectedResults Only Test1.txt was copied.
1.5140 +//! @SYMTestType CIT
1.5141 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.5142 + CREATE_OBJECT RFs RFs1
1.5143 + CREATE_OBJECT RFile RFile1
1.5144 + CREATE_OBJECT CFileMan CFileMan1
1.5145 + COMMAND RFs1 new
1.5146 + COMMAND RFs1 Connect
1.5147 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir
1.5148 + COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir
1.5149 + COMMAND RFile1 new
1.5150 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.5151 + COMMAND CFileMan1 SetObserver
1.5152 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0
1.5153 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0
1.5154 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0
1.5155 + COMMAND !AsyncError=-3 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2173-001-Copy_command002
1.5156 + OUTSTANDING
1.5157 + COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2173-001-Open_command003
1.5158 + COMMAND RFile1 Close
1.5159 + COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2173-001-Open_command004
1.5160 + COMMAND RFile1 Close
1.5161 + COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2173-001-Open_command005
1.5162 + COMMAND RFile1 Close
1.5163 + COMMAND CFileMan1 ~
1.5164 + COMMAND RFile1 ~
1.5165 + COMMAND RFs1 ~
1.5166 + END_TEST_BLOCK
1.5167 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.5168 + CREATE_OBJECT RFs RFs1
1.5169 + CREATE_OBJECT CFileMan CFileMan1
1.5170 + COMMAND RFs1 new
1.5171 + COMMAND RFs1 Connect
1.5172 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.5173 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2173-001-Delete_command006
1.5174 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2173-001-Delete_command007
1.5175 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir
1.5176 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir
1.5177 + COMMAND CFileMan1 ~
1.5178 + COMMAND RFs1 ~
1.5179 + END_TEST_BLOCK
1.5180 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2173
1.5181 +
1.5182 +
1.5183 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2999
1.5184 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2999
1.5185 +//! @SYMAPI CFileMan
1.5186 +//! @SYMTestCaseDesc Clenup the copied testdata.
1.5187 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.5188 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.5189 +//! 3.Call CFileMan::Delete() to delete all the files copied .
1.5190 +//! @SYMTestStatus Implemented
1.5191 +//! @SYMTestPriority Critical
1.5192 +//! @SYMTestExpectedResults Remove the testdata copied from particular directory
1.5193 +//! @SYMTestType CIT
1.5194 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.5195 + CREATE_OBJECT RFs RFs1
1.5196 + CREATE_OBJECT CFileMan CFileMan1
1.5197 + COMMAND RFs1 new
1.5198 + COMMAND RFs1 Connect
1.5199 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.5200 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-Delete-Uninstall
1.5201 + COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir-Uninstall
1.5202 + COMMAND CFileMan1 ~
1.5203 + COMMAND RFs1 ~
1.5204 + END_TEST_BLOCK
1.5205 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2999
1.5206 \ No newline at end of file