sl@0: // sl@0: // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: //! @file sl@0: //! @SYMTestSuiteName pbase-f32-sfsrv-publicapi-ram sl@0: //! @SYMScriptTestEnvironment This test script requires a basic ROM. sl@0: //! @SYMScriptAuthor Jaanus Randveer sl@0: //! @SYMScriptCreationDate 18/19/2007 sl@0: //! @SYMScriptDescription The test script contains API tests for the following functions of CFileMan class: sl@0: //! CFileMan *NewL(RFs &aFs) sl@0: //! CFileMan *NewL(RFs &aFs, MFileManObserver *anObserver) sl@0: //! TAction CurrentAction() sl@0: //! void GetCurrentTarget(TFileName &aFile) sl@0: //! void GetCurrentSource(TFileName &aFile) sl@0: //! TInt BytesTransferredByCopyStep() sl@0: //! TInt Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! TInt Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus) sl@0: //! TInt Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) sl@0: //! TInt Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) sl@0: //! TInt Delete(const TDesC &aName, TUint aSwitch=0) sl@0: //! TInt Delete(const TDesC &aName, TUint aSwitch, TRequestStatus &aStatus) sl@0: //! TInt Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) sl@0: //! TInt Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) sl@0: //! TInt Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) sl@0: //! TInt Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) sl@0: //! TInt RmDir(const TDesC &aDirName) sl@0: //! TInt RmDir(const TDesC &aDirName, TRequestStatus &aStatus) sl@0: //! TInt Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches=EOverWrite) sl@0: //! TInt Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches, TRequestStatus &aStatus) sl@0: //! void SetObserver(MFileManObserver *anObserver) sl@0: //! const TEntry &CurrentEntry() sl@0: //! TPtrC AbbreviatedPath() sl@0: //! TPtrC FullPath() sl@0: //! TInt GetLastError() sl@0: //! TFileManError GetMoreInfoAboutError() sl@0: sl@0: sl@0: LOAD_SUITE T_SfSrv sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2000 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2000 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Setup the environent to Test CFileMan by copying the testdata. sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy() to copy the testdata file required for further tests. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults TestDatas copied to particular directory. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDirAll PBASE-F32-FileMan-PublicApi-MkDirAll-Install sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy-Install sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2000 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2001 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2001 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Constructor NewL(RFs &aFs) test. sl@0: //! Uses API elements: NewL(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults CFileMan object is not NULL. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2001 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2002 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2002 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Constructor NewL(RFs &aFs, MFileManObserver *anObserver) test. sl@0: //! Uses API elements: NewL(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs, MFileManObserver *anObserver) and connected file server session as first parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults CFileMan object is not NULL. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-2002-001-NewL_command004 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2002 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2003 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2003 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function CurrentAction() test. sl@0: //! Gets action during copy process. sl@0: //! Uses API elements: NewL(), CurrentAction(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::SetObserver(). sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite). sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter. sl@0: //! 5.Call CFileMan::CurrentAction(). sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults CurrentAction() returns ECopy. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 SetObserver sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite sl@0: COMMAND CFileMan1 CurrentAction PBASE-F32-FileMan-PublicApi-2003-001-CurrentAction_command008 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2003-001-Delete_command009 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2003 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2004 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2004 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function GetCurrentTarget(TFileName &aFile) test. sl@0: //! Gets file target path during copy process. sl@0: //! Uses API elements: NewL(), GetCurrentTarget(), SetObserver(), Copy(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::SetObserver(). sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite). sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter. sl@0: //! 5.Call CFileMan::GetCurrentTarget(TFileName &aFile). sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults GetCurrentTarget() returns {TestPath}fileman\Copy\Test3.txt. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 SetObserver sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite sl@0: COMMAND CFileMan1 GetCurrentTarget PBASE-F32-FileMan-PublicApi-2004-001-GetCurrentTarget_command008 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2004-001-Delete_command009 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2004 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2005 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2005 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function GetCurrentSource(TFileName &aFile) test. sl@0: //! Gets file source path during copy process. sl@0: //! Uses API elements: NewL(), GetCurrentSource(), SetObserver(), Copy(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::SetObserver(). sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite). sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter. sl@0: //! 5.Call CFileMan::GetCurrentSource(TFileName &aFile). sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults GetCurrentSource() returns {TestPath}fileman\Test3.txt. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 SetObserver sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite sl@0: COMMAND CFileMan1 GetCurrentSource PBASE-F32-FileMan-PublicApi-2005-001-GetCurrentSource_command008 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2005-001-Delete_command009 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2005 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2006 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2006 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function BytesTransferredByCopyStep() test. sl@0: //! Gets the number of bytes transferred during a copy process. sl@0: //! Uses API elements: NewL(), SetObserver(), BytesTransferredByCopyStep(), Copy(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::SetObserver(). sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite). sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter. sl@0: //! 5.Call CFileMan::BytesTransferredByCopyStep(). sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults BytesTransferredByCopyStep() returns actual size of copyed file "51192". sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 SetObserver sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite sl@0: COMMAND CFileMan1 BytesTransferredByCopyStep PBASE-F32-FileMan-PublicApi-2006-001-BytesTransferredByCopyStep_command008 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2006-001-Delete_command009 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2006 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2007 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2007 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) test. sl@0: //! Sets file attributes synchronously to read-only. sl@0: //! Uses API elements: NewL(), Attribs(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call RFs::Att() to check that file has KEntryAttNormal as attribute. sl@0: //! 4.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and KEntryAttReadOnly as second parameter, sl@0: //! and KEntryAttNormal as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and CFileMan::ERecurse as fifth parameter. sl@0: //! 5.Call RFs::Att() to check that attribute was set to KEntryAttReadOnly sl@0: //! 6.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and KEntryAttNormal as second parameter, sl@0: //! and KEntryAttReadOnly as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and CFileMan::ERecurse as fifth parameter. sl@0: //! 7.Call RFs::Att() to check that file have KEntryAttNormal as attribute. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Attribs() returns KErrNone. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2007-001-Att_command005 sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2007-001-Attribs_command006 sl@0: COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2007-001-Att_command007 sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2007-001-Attribs_command008 sl@0: COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2007-001-Att_command009 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2007 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2008 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2008 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus) test. sl@0: //! Sets file attributes asynchronously to read-only. sl@0: //! Uses API elements: NewL(), Attribs(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call RFs::Att() to check that file has KEntryAttNormal as attribute. sl@0: //! 4.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus) sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and KEntryAttReadOnly as second parameter, sl@0: //! and KEntryAttNormal as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and CFileMan::ERecurse as fifth parameter sl@0: //! and iStatus as fourth parameter. sl@0: //! 5.Call RFs::Att() to check that attribute was set to KEntryAttReadOnly sl@0: //! 6.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus) sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and KEntryAttNormal as second parameter, sl@0: //! and KEntryAttReadOnly as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and CFileMan::ERecurse as fifth parameter sl@0: //! and iStatus as fourth parameter. sl@0: //! 7.Call RFs::Att() to check that file have KEntryAttNormal as attribute. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Attribs() returns KErrNone and second Attrib returns KErrInUse sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2008-001-Att_command005 sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2008-001-Attribs_command006 sl@0: OUTSTANDING sl@0: COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2008-001-Att_command007 sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2008-001-Attribs_command008 sl@0: COMMAND !Error=-14 CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2008-001-Attribs_command008 sl@0: OUTSTANDING sl@0: COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2008-001-Att_command009 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2008 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2009 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2009 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test. sl@0: //! Sets file attributes synchronously to normal and copies file synchronously from one directory to another. sl@0: //! Uses API elements: NewL(), Attribs(), Copy(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and KEntryAttNormal as second parameter, sl@0: //! and KEntryAttReadOnly as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and CFileMan::EOverWrite as fifth parameter. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Copy() returns KErrNone. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFile1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2009-001-Copy_command006 sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2009-001-Open_command007 sl@0: COMMAND RFile1 Close sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2009-001-Delete_command008 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFile1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2009 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2010 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2010 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) test. sl@0: //! Sets file attributes synchronously to normal and copies file asynchronously from one directory to another. sl@0: //! Uses API elements: NewL(), Attribs(), Copy(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus) sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and KEntryAttNormal as second parameter, sl@0: //! and KEntryAttReadOnly as third parameter, and TTime(0) as fourth parameter, sl@0: //! and CFileMan::EOverWrite as fifth parameter, sl@0: //! and iStatus as sixth parameter. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus). sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and iStatus as last parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Copy() returns KErrNone. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFile1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2010-001-Copy_command006 sl@0: OUTSTANDING sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2010-001-Open_command007 sl@0: COMMAND RFile1 Close sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2010-001-Delete_command008 sl@0: OUTSTANDING sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFile1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2010 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2011 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2011 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Delete(const TDesC &aName, TUint aSwitch=0) test. sl@0: //! Copies file asynchronously from one directory to another and deletes synchronously copied file. sl@0: //! Uses API elements: NewL(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter. sl@0: //! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), and {TestPath}fileman\Test1.txt as parameter sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Delete() returns KErrNone. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFile1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2011-001-Copy_command006 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2011-001-Delete_command007 sl@0: COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2011-001-Open_command008 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND RFile1 ~ sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2011 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2012 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2012 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Delete(const TDesC &aName, TUint aSwitch=0, TRequestStatus &aStatus) test. sl@0: //! Copies file asynchronously from one directory to another and deletes asynchronously copied file. sl@0: //! Uses API elements: NewL(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus). sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and iStatus as last parameter. sl@0: //! 4.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Copy\Test1.txt as first parameter, sl@0: //! and CFileMan::EOverWrite as second parameter, sl@0: //! and iStatus as third parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Delete() returns KErrNone and second delete returns KErrInUse. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFile1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2012-001-Copy_command006 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2012-001-Delete_command007 sl@0: COMMAND !Error=-14 CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2012-001-Delete_command007 sl@0: OUTSTANDING sl@0: COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2012-001-Open_command008 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFile1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2012 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2013 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2013 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test. sl@0: //! Moves file synchronously from one directory to another. sl@0: //! Uses API elements: NewL(), Move(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite). sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter. sl@0: //! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite). sl@0: //! and {TestPath}fileman\Copy\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\ as second parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Move() returns KErrNone. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFile1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2013-001-Move_command006 sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2013-001-Open_command007 sl@0: COMMAND RFile1 Close sl@0: COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2013-001-Move_command008 sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2013-001-Open_command009 sl@0: COMMAND RFile1 Close sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFile1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2013 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2014 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2014 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) test. sl@0: //! Moves file asynchronously from one directory to another. sl@0: //! Uses API elements: NewL(), Move(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and CFileMan::EOverWrite as third parameter, sl@0: //! and iStatus as fourth parameter. sl@0: //! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Copy\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\ as second parameter, sl@0: //! and CFileMan::EOverWrite as third parameter, sl@0: //! and iStatus as fourth parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Move() returns KErrNone. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFile1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2014-001-Move_command006 sl@0: OUTSTANDING sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2014-001-Open_command007 sl@0: COMMAND RFile1 Close sl@0: COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2014-001-Move_command008 sl@0: OUTSTANDING sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2014-001-Open_command009 sl@0: COMMAND RFile1 Close sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFile1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2014 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2015 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2015 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test. sl@0: //! Renames file name synchronously. sl@0: //! Uses API elements: NewL(), Rename(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Renamed.txt as second parameter. sl@0: //! 4.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Renamed.txt as first parameter, sl@0: //! and {TestPath}fileman\Test1.txt as second parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Rename() returns KErrNone. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFile1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2015-001-Rename_command005 sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2015-001-Open_command006 sl@0: COMMAND RFile1 Close sl@0: COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2015-001-Rename_command007 sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2015-001-Open_command008 sl@0: COMMAND RFile1 Close sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFile1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2015 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2016 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2016 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) test. sl@0: //! Renames file name asynchronously. sl@0: //! Uses API elements: NewL(), Rename(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus). sl@0: //! and {TestPath}fileman\Renamed.txt as first parameter, sl@0: //! and {TestPath}fileman\Test1.txt as second parameter, sl@0: //! and CFileMan::EOverWrite as third parameter, sl@0: //! and iStatus as last parameter. sl@0: //! 4.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus). sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Renamed.txt as second parameter, sl@0: //! and CFileMan::EOverWrite as third parameter, sl@0: //! and iStatus as last parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Rename() returns KErrNone. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFile1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2016-001-Rename_command005 sl@0: OUTSTANDING sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2016-001-Open_command006 sl@0: COMMAND RFile1 Close sl@0: COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2016-001-Rename_command007 sl@0: OUTSTANDING sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2016-001-Open_command008 sl@0: COMMAND RFile1 Close sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFile1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2016 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2017 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2017 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName) test. sl@0: //! Test removes newly created directory synchronously. sl@0: //! Uses API elements: NewL(), RmDir(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call RFs::MkDir(), and {TestPath}fileman\Removable\ as parameter. sl@0: //! 3.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 4.Call CFileMan::RmDir(const TDesC &aDirName) and {TestPath}fileman\Removable\ as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults RmDir() returns KErrNone. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RDir RDir1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2017-001-MkDir_command004 sl@0: COMMAND RDir1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND RDir1 Open PBASE-F32-FileMan-PublicApi-2017-001-Open_command006 sl@0: COMMAND RDir1 Close sl@0: COMMAND CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2017-001-RmDir_command007 sl@0: COMMAND !Error=-12 RDir1 Open PBASE-F32-FileMan-PublicApi-2017-001-Open_command008 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RDir1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2017 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2018 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2018 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName, TRequestStatus &aStatus) test. sl@0: //! Test removes newly created directory asynchronously. sl@0: //! Uses API elements: NewL(), RmDir(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call RFs::MkDir(), and {TestPath}fileman\Removable\ as parameter. sl@0: //! 3.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 4.Call CFileMan::RmDir(const TDesC &aDirName, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Removable\ as first parameter, sl@0: //! and iStatus as second parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults 1st RmDir returns KErrNone and Second call returns KErrInUse sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RDir RDir1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2018-001-MkDir_command004 sl@0: COMMAND RDir1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND RDir1 Open PBASE-F32-FileMan-PublicApi-2018-001-Open_command006 sl@0: COMMAND RDir1 Close sl@0: COMMAND CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2018-001-RmDir_command007 sl@0: COMMAND !Error=-14 CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2018-001-RmDir_command007 sl@0: OUTSTANDING sl@0: COMMAND !Error=-12 RDir1 Open PBASE-F32-FileMan-PublicApi-2018-001-Open_command008 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RDir1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2018 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2019 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2019 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches=EOverWrite) test. sl@0: //! Opens file then copies file content to another file synchronously. sl@0: //! Uses API elements: NewL(), Copy(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call RFile::Open() to open file. sl@0: //! 4.Call CFileMan::Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches=EOverWrite), sl@0: //! and RFile object as first object, sl@0: //! and {TestPath}fileman\Test1_RFs.txt as second parameter. sl@0: //! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Test1_RFs.txt as first parameter, sl@0: //! and 0 as second parameter. sl@0: //! 6.RFs::Close(). sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Copy() returns KErrNone. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFile1 new sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2019-001-Open_command006 sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2019-001-Copy_command008 sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2019-001-Open_command009 sl@0: COMMAND RFile1 Close sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2019-001-Delete_command010 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFile1 Close sl@0: COMMAND RFile1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2019 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2020 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2020 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches, TRequestStatus &aStatus) test. sl@0: //! Opens file then copies file content to another file asynchronously. sl@0: //! Uses API elements: NewL(), Copy(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call RFile::Open() to open file. sl@0: //! 4.Call CFileMan::Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches, TRequestStatus &aStatus), sl@0: //! and RFile object as first object, sl@0: //! and {TestPath}fileman\Test1_RFs.txt as second parameter, sl@0: //! and iStatus as last parameter. sl@0: //! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Test1_RFs.txt as first parameter, sl@0: //! and 0 as second parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults 1st Copy() returns KErrNone and second returns KErrInUse sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFile1 new sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2020-001-Open_command006 sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2020-001-Copy_command008 sl@0: COMMAND !Error=-14 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2020-001-Copy_command008 sl@0: OUTSTANDING sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2020-001-Open_command009 sl@0: COMMAND RFile1 Close sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2020-001-Delete_command010 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFile1 Close sl@0: COMMAND RFile1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2020 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2021 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2021 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function SetObserver(MFileManObserver *anObserver) test. sl@0: //! Sets observer. sl@0: //! Uses API elements: NewL(), SetObserver(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::SetObserver(). sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults No Panic and Error code returned. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 SetObserver sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2021 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2022 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2022 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function CurrentEntry() test. sl@0: //! Gets the entry currently being copied. sl@0: //! Uses API elements: NewL(), SetObserver(), CurrentEntry(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::SetObserver(). sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter. sl@0: //! 5.Call CFileMan::CurrentEntry(). sl@0: //! 6.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Copy\Test3.txt as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults CurrentEntry() returns TEntry in which iName is "Test3.txt". sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 SetObserver sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite sl@0: COMMAND CFileMan1 CurrentEntry PBASE-F32-FileMan-PublicApi-2022-001-CurrentEntry_command008 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2022-001-Delete_command009 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2022 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2023 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2023 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function AbbreviatedPath() test. sl@0: //! Gets the abbreviated path of the file currently being copied. sl@0: //! Uses API elements: NewL(), SetObserver(), AbbreviatedPath(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::SetObserver(). sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite). sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter. sl@0: //! 5.Call CFileMan::AbbreviatedPath(). sl@0: //! 6.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Copy\Test3.txt as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults AbbreviatedPath() returns \. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 SetObserver sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite sl@0: COMMAND CFileMan1 AbbreviatedPath PBASE-F32-FileMan-PublicApi-2023-001-AbbreviatedPath_command008 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2023-001-Delete_command009 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2023 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2024 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2024 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function FullPath() test. sl@0: //! Gets the full path of the file currently being copied. sl@0: //! Uses API elements: NewL(), SetObserver(), FullPath(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::SetObserver(). sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite). sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter. sl@0: //! 5.Call CFileMan::FullPath(). sl@0: //! 6.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Copy\Test3.txt as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults FullPath() returns {TestPath}fileman\. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 SetObserver sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite sl@0: COMMAND CFileMan1 FullPath PBASE-F32-FileMan-PublicApi-2024-001-FullPath_command008 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2024-001-Delete_command009 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2024 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2025 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2025 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function GetLastError() test. sl@0: //! Gets the latest error code returned during copy process sl@0: //! Uses API elements: NewL(), SetObserver(), GetLastError(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::SetObserver(). sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter. sl@0: //! 5.Call CFileMan::GetLastError(). sl@0: //! 6.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Copy\Test3.txt as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults GetLastError() returns KErrNone. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 SetObserver sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite sl@0: COMMAND CFileMan1 GetLastError PBASE-F32-FileMan-PublicApi-2025-001-GetLastError_command008 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2025-001-Delete_command009 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2025 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2026 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2026 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function GetMoreInfoAboutError() test. sl@0: //! Gets additional information about the latest error returned during copy process sl@0: //! Uses API elements: NewL(), SetObserver(), GetMoreInfoAboutError(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::SetObserver(). sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter. sl@0: //! 5.Call CFileMan::GetMoreInfoAboutError(). sl@0: //! 6.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Copy\Test3.txt as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults GetMoreInfoAboutError() returns ENoExtraInformation. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 SetObserver sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite sl@0: COMMAND CFileMan1 GetMoreInfoAboutError PBASE-F32-FileMan-PublicApi-2026-001-GetMoreInfoAboutError_command008 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2026-001-Delete_command009 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2026 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2027 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2027 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function Copy() test. sl@0: //! Copy File from one drive to another (RAM Drive). sl@0: //! Uses API elements: NewL(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}Test3.txt as first parameter, sl@0: //! and {RamDrive}fileman\Copy\ as second parameter. sl@0: //! 4.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {RamDrive}fileman\Copy\Test3.txt as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults File successfully copied from one drive to another. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDirAll PBASE-F32-FileMan-PublicApi-2027-001-MkDirAll_command004 sl@0: COMMAND RFile1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2027-001-Copy_command006 sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2027-001-Open_command007 sl@0: COMMAND RFile1 Close sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2027-001-Delete_command008 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2027-001-RmDir_command009 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFile1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2027 sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2028 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2028 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test. sl@0: //! Copy file with ReadOnly and Hidden atributes and check that the copied file have the same attributes. sl@0: //! Uses API elements: NewL(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and KEntryAttReadOnly|KEntryAttHidden as second parameter, sl@0: //! and KEntryAttNormal as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and 0 as fifth parameter. sl@0: //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test1.txt as second parameter. sl@0: //! 6.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\Copy\Test1.txt as first parameter, sl@0: //! and KEntryAttNormal as second parameter, sl@0: //! and KEntryAttReadOnly|KEntryAttHidden as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and 0 as fifth parameter. sl@0: //! 7.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Copy\Test1.txt as parameter. sl@0: //! 8.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and KEntryAttNormal as second parameter, sl@0: //! and KEntryAttReadOnly|KEntryAttHidden as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and 0 as fifth parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults File attributes unchanged after Copy(). sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFile1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2028-001-Att_command006 sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2028-001-Attribs_command007 sl@0: COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2028-001-Att_command008 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0 sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2028-001-Open_command010 sl@0: COMMAND RFile1 Close sl@0: COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2028-001-Att_command011 sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2028-001-Attribs_command012 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2028-001-Delete_command013 sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2028-001-Attribs_command014 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFile1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2028 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2029 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2029 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function Attribs(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test. sl@0: //! Set KEntryAttHidden attribute non recursivly and recursivly and then check that is was set correctly. sl@0: //! Uses API elements: NewL(), Attribs(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test3.txt as second parameter. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test\Test1.txt as second parameter. sl@0: //! 5.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and KEntryAttHidden as second parameter, sl@0: //! and KEntryAttNormal as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and 0 as fifth parameter. sl@0: //! 6.Check that only for Test1.txt attribute was set. sl@0: //! 7.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and KEntryAttNormal as second parameter, sl@0: //! and KEntryAttHidden as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and 0 as fifth parameter. sl@0: //! 8.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and KEntryAttHidden as second parameter, sl@0: //! and KEntryAttNormal as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and ERecurse as fifth parameter. sl@0: //! 9.Check that KEntryAttHidden was set for Test1.txt and for Test3.txt. sl@0: //! 10.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and KEntryAttNormal as second parameter, sl@0: //! and KEntryAttHidden as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and ERecurse as fifth parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults All attributes are set correctly. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_Copy-Test sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2029-001-Copy_command002 sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2029-001-Attribs_command003 sl@0: COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2029-001-Att_command004 sl@0: COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2029-001-Att_command005 sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2029-001-Attribs_command006 sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2029-001-Attribs_command007 sl@0: COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2029-001-Att_command008 sl@0: COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2029-001-Att_command009 sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2029-001-Attribs_command010 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2029-001-Delete_command011 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_Copy-Test sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2029 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2030 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2030 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function Attribs(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test. sl@0: //! Set KEntryAttHidden attribute non recursivly and recursivly and then check that is was set correctly. sl@0: //! Uses API elements: NewL(), Attribs(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test3.txt as second parameter. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test\Test1.txt as second parameter. sl@0: //! 5.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0, TRequestStatus &aStatus) sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and KEntryAttHidden as second parameter, sl@0: //! and KEntryAttNormal as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and 0 as fifth parameter. sl@0: //! and iStatus. sl@0: //! 6.Check that only for Test1.txt attribute was set. sl@0: //! 7.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0, TRequestStatus &aStatus) sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and KEntryAttNormal as second parameter, sl@0: //! and KEntryAttHidden as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and 0 as fifth parameter. sl@0: //! and iStatus. sl@0: //! 8.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0, TRequestStatus &aStatus) sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and KEntryAttHidden as second parameter, sl@0: //! and KEntryAttNormal as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and ERecurse as fifth parameter. sl@0: //! and iStatus. sl@0: //! 8.Check that KEntryAttHidden was set for Test1.txt and for Test3.txt. sl@0: //! 10.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0, TRequestStatus &aStatus) sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and KEntryAttNormal as second parameter, sl@0: //! and KEntryAttHidden as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and ERecurse as fifth parameter. sl@0: //! and iStatus. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults All attributes are set correctly. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_Copy-Test sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_EOverWrite sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2030-001-Copy_command002 sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2030-001-Attribs_command003 sl@0: OUTSTANDING sl@0: COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2030-001-Att_command004 sl@0: COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2030-001-Att_command005 sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2030-001-Attribs_command006 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2030-001-Attribs_command007 sl@0: OUTSTANDING sl@0: COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2030-001-Att_command008 sl@0: COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2030-001-Att_command009 sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2030-001-Attribs_command010 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2030-001-Delete_command011 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_Copy-Test sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2030 sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2031 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2031 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test. sl@0: //! Copy files using aSwitch=0 and aSwitch=ERecursive. sl@0: //! Uses API elements: NewL(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\ as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch=0. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and {TestPath}fileman\Copy1\ as second parameter, sl@0: //! and aSwitch=0. sl@0: //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and {TestPath}fileman\Copy1\ as second parameter. sl@0: //! and aSwitch=ERecurse. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Copy() return KErrPathNotFound when non recursive copy. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2031-001-Copy_command002 sl@0: COMMAND !Error=-12 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2031-001-Copy_command003 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2031-001-Copy_command004 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2031-001-Delete_command005 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2031-001-Delete_command006 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2031-001-RmDir_command007 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2031 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2032 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2032 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test. sl@0: //! Copy files using aSwitch=0 and aSwitch=ERecursive. sl@0: //! Uses API elements: NewL(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\ as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch=0, sl@0: //! and iStatus as parameter. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and {TestPath}fileman\Copy1\ as second parameter, sl@0: //! and aSwitch=0, sl@0: //! and iStatus as parameter. sl@0: //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and {TestPath}fileman\Copy1\ as second parameter. sl@0: //! and aSwitch=ERecurse, sl@0: //! and iStatus as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Copy() return KErrPathNotFound when non recursive copy. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2032-001-Copy_command002 sl@0: OUTSTANDING sl@0: COMMAND !AsyncError=-12 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2032-001-Copy_command003 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2032-001-Copy_command004 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2032-001-Delete_command005 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2032-001-Delete_command006 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2032-001-RmDir_command007 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2032 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2033 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2033 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test. sl@0: //! Move files using aSwitch=0 and aSwitch=ERecursive. sl@0: //! Uses API elements: NewL(), Move(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\ as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch=0. sl@0: //! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and {TestPath}fileman\Copy1\ as second parameter, sl@0: //! and aSwitch=0. sl@0: //! 5.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and {TestPath}fileman\Copy1\ as second parameter. sl@0: //! and aSwitch=ERecurse. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Move() return KErrPathNotFound when non recursive Move. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2033-001-Copy_command002 sl@0: COMMAND !Error=-12 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2033-001-Move_command003 sl@0: COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2033-001-Move_command004 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2033-001-Delete_command005 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2033-001-RmDir_command006 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2033 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2034 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2034 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test. sl@0: //! Move files using aSwitch=0 and aSwitch=ERecursive. sl@0: //! Uses API elements: NewL(), Move(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\ as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch=0, sl@0: //! and iStatus as parameter. sl@0: //! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and {TestPath}fileman\Copy1\ as second parameter, sl@0: //! and aSwitch=0, sl@0: //! and iStatus as parameter. sl@0: //! 5.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and {TestPath}fileman\Copy1\ as second parameter. sl@0: //! and aSwitch=ERecurse, sl@0: //! and iStatus as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Move() return KErrPathNotFound when non recursive Move. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2034-001-Copy_command002 sl@0: COMMAND !AsyncError=-12 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2034-001-Move_command003 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2034-001-Move_command004 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2034-001-Delete_command005 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2034-001-RmDir_command006 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2034 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2035 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2035 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) test. sl@0: //! Sets attributes for files(using wildcard) synchronously to read-only. sl@0: //! Uses API elements: NewL(), Copy(), Attribs(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch=0. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test2.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch=0. sl@0: //! 5.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\Copy\* as first parameter, sl@0: //! and KEntryAttReadOnly|KEntryAttHidden as second parameter, sl@0: //! and KEntryAttNormal as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and aSwitch=0 as fifth parameter. sl@0: //! 6.Call RFs::Att() to check that attribute was set for both files (Test1.txt, Test2.txt). sl@0: //! 7.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\Copy\* as first parameter, sl@0: //! and KEntryAttNormal as second parameter, sl@0: //! and KEntryAttReadOnly|KEntryAttHidden as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and aSwitch=0 as fifth parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Attribs() returns KErrNone and attributes successfuly were changed for both files. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0 sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2035-001-Attribs_command007 sl@0: COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2035-001-Att_command008 sl@0: COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2035-001-Att_command009 sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2035-001-Attribs_command010 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2035-001-Delete_command011 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2035 sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2036 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2036 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus) test. sl@0: //! Sets attributes for files(using wildcard) synchronously to read-only. sl@0: //! Uses API elements: NewL(), Copy(), Attribs(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch=0. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test2.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch=0. sl@0: //! 5.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0, TRequestStatus &aStatus) sl@0: //! and {TestPath}fileman\Copy\* as first parameter, sl@0: //! and KEntryAttReadOnly|KEntryAttHidden as second parameter, sl@0: //! and KEntryAttNormal as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and aSwitch=0 as fifth parameter. sl@0: //! and iStatus as fourth parameter. sl@0: //! 6.Call RFs::Att() to check that attribute was set for both files (Test1.txt, Test2.txt). sl@0: //! 7.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0, TRequestStatus &aStatus) sl@0: //! and {TestPath}fileman\Copy\* as first parameter, sl@0: //! and KEntryAttNormal as second parameter, sl@0: //! and KEntryAttReadOnly|KEntryAttHidden as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and aSwitch=0 as fifth parameter. sl@0: //! and iStatus as fourth parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Attribs() returns KErrNone and attributes successfuly were changed for both files. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0 sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2036-001-Attribs_command007 sl@0: OUTSTANDING sl@0: COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2036-001-Att_command008 sl@0: COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2036-001-Att_command009 sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2036-001-Attribs_command010 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2036-001-Delete_command011 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2036 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2037 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2037 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Copy(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) test. sl@0: //! Copy files using wildcard synchronously. sl@0: //! Uses API elements: NewL(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\* as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch=0. sl@0: //! 4.Check that copied more that one file. Test1.txt and Test2.txt are exists. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Attribs() returns KErrNone and attributes successfuly were changed for both files. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFile1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2037-001-Copy_command005 sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2037-001-Open_command006 sl@0: COMMAND RFile1 Close sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2037-001-Open_command007 sl@0: COMMAND RFile1 Close sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2037-001-Delete_command008 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFile1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2037 sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2038 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2038 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Copy(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0, TRequestStatus &aStatus) test. sl@0: //! Copy files using wildcard asynchronously. sl@0: //! Uses API elements: NewL(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\* as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch=0, sl@0: //! and iStatus. sl@0: //! 4.Check that copied more that one file. Test1.txt and Test2.txt are exists. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Attribs() returns KErrNone and attributes successfuly were changed for both files. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFile1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2038-001-Copy_command005 sl@0: OUTSTANDING sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2038-001-Open_command006 sl@0: COMMAND RFile1 Close sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2038-001-Open_command007 sl@0: COMMAND RFile1 Close sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2038-001-Delete_command008 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFile1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2038 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2039 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2039 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test. sl@0: //! Move files synchronously using path with trailing slash and without sl@0: //! Uses API elements: NewL(), Move(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\* as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch=0, sl@0: //! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and {TestPath}fileman\Copy1\ as second parameter, sl@0: //! and aSwitch=ERecurse, sl@0: //! 5.Check that "Copy1" contains files (Test1.txt and Test2.txt) and "Copy" doesn't. sl@0: //! 6.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Copy1 as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch=0, sl@0: //! 7.Check that folder "Copy1" now exists only "\Copy\Copy1\" sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Move() return KErrPathNotFound when non recursive Move. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT RDir RDir1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFile1 new sl@0: COMMAND RDir1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2039-001-Copy_command002 sl@0: COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2039-001-Move_command003 sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2039-001-Open_command004 sl@0: COMMAND RFile1 Close sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2039-001-Open_command005 sl@0: COMMAND RFile1 Close sl@0: COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2039-001-Move_command006 sl@0: COMMAND !Error=-12 RDir1 Open PBASE-F32-FileMan-PublicApi-2039-001-Open_command007 sl@0: COMMAND RDir1 Open PBASE-F32-FileMan-PublicApi-2039-001-Open_command008 sl@0: COMMAND RDir1 Close sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2039-001-Delete_command009 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2039-001-RmDir_command010 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND RFile1 ~ sl@0: COMMAND RDir1 ~ sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2039 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2040 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2040 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test. sl@0: //! Move files synchronously using path with trailing slash and without sl@0: //! Uses API elements: NewL(), Move(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\* as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch=0, sl@0: //! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and {TestPath}fileman\Copy1\ as second parameter, sl@0: //! and aSwitch=ERecurse, sl@0: //! 5.Check that "Copy1" contains files (Test1.txt and Test2.txt) and does not contains folder "Copy". sl@0: //! 6.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Copy1 as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch=0, sl@0: //! 7.Check that folder "Copy1" was moved to "\Copy\Copy1\" sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Move() moves only files if trailing slash exists and whole folder if no trailing slash. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT RDir RDir1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFile1 new sl@0: COMMAND RDir1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2040-001-Copy_command002 sl@0: COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2040-001-Move_command003 sl@0: OUTSTANDING sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2040-001-Open_command004 sl@0: COMMAND RFile1 Close sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2040-001-Open_command005 sl@0: COMMAND RFile1 Close sl@0: COMMAND !Error=-12 RDir1 Open PBASE-F32-FileMan-PublicApi-2040-001-Open_command006 sl@0: COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2040-001-Move_command007 sl@0: OUTSTANDING sl@0: COMMAND !Error=-12 RDir1 Open PBASE-F32-FileMan-PublicApi-2040-001-Open_command008 sl@0: COMMAND RDir1 Open PBASE-F32-FileMan-PublicApi-2040-001-Open_command009 sl@0: COMMAND RDir1 Close sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2040-001-Delete_command010 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2040-001-RmDir_command011 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND RFile1 ~ sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2040 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2041 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2041 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test. sl@0: //! Synchronously Move files with ReadOnly and Hidden atributes and check that the moved files have the same attributes. sl@0: //! Uses API elements: NewL(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test1.txt as second parameter. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test2.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test2.txt as second parameter. sl@0: //! 5.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and KEntryAttReadOnly|KEntryAttHidden as second parameter, sl@0: //! and KEntryAttNormal as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and 0 as fifth parameter. sl@0: //! 6.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Copy as first parameter, sl@0: //! and {TestPath}fileman\Copy1\ as second parameter, sl@0: //! and aSwitch = ERecurse. sl@0: //! 7.Check that files have the same attributes. sl@0: //! 8.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\Copy1\ as first parameter, sl@0: //! and KEntryAttNormal as second parameter, sl@0: //! and KEntryAttReadOnly|KEntryAttHidden as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and 0 as fifth parameter. sl@0: //! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Copy1\* as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults File attributes unchanged after Move(). sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_EOverWrite sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_EOverWrite sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2041-001-Attribs_command004 sl@0: COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2041-001-Move_command005 sl@0: COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2041-001-Att_command006 sl@0: COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2041-001-Att_command007 sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2041-001-Attribs_command008 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2041-001-Delete_command009 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2041-001-RmDir_command010 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2041 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2042 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2042 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test. sl@0: //! Asynchronously Move files with ReadOnly and Hidden atributes and check that the moved files have the same attributes. sl@0: //! Uses API elements: NewL(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test1.txt as second parameter. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test2.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test2.txt as second parameter. sl@0: //! 5.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and KEntryAttReadOnly|KEntryAttHidden as second parameter, sl@0: //! and KEntryAttNormal as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and 0 as fifth parameter. sl@0: //! 6.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Copy as first parameter, sl@0: //! and {TestPath}fileman\Copy1\ as second parameter, sl@0: //! and aSwitch = ERecurse, sl@0: //! and iStatus. sl@0: //! 7.Check that files have the same attributes. sl@0: //! 8.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\Copy1\ as first parameter, sl@0: //! and KEntryAttNormal as second parameter, sl@0: //! and KEntryAttReadOnly|KEntryAttHidden as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and 0 as fifth parameter. sl@0: //! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Copy1\* as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults File attributes unchanged after Move(). sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_EOverWrite sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_EOverWrite sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2042-001-Attribs_command004 sl@0: COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2042-001-Move_command005 sl@0: OUTSTANDING sl@0: COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2042-001-Att_command006 sl@0: COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2042-001-Att_command007 sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2042-001-Attribs_command008 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2042-001-Delete_command009 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2042-001-RmDir_command010 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2042 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2043 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2043 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch) test. sl@0: //! Synchronously Rename file with ReadOnly and Hidden atributes and check that the renamed file have the same attributes. sl@0: //! Uses API elements: NewL(), Copy(), Rename(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test1.txt as second parameter. sl@0: //! 5.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\Copy\Test1.txt as first parameter, sl@0: //! and KEntryAttReadOnly|KEntryAttHidden as second parameter, sl@0: //! and KEntryAttNormal as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and 0 as fifth parameter. sl@0: //! 6.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Copy\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test.txt as second parameter, sl@0: //! and aSwitch = 0. sl@0: //! 7.Check that files have the same attributes. sl@0: //! 8.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\Copy\Test.txt as first parameter, sl@0: //! and KEntryAttNormal as second parameter, sl@0: //! and KEntryAttReadOnly|KEntryAttHidden as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and 0 as fifth parameter. sl@0: //! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Copy\* as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults File attributes unchanged after Rename(). sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_EOverWrite sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2043-001-Attribs_command004 sl@0: COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2043-001-Rename_command005 sl@0: COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2043-001-Att_command006 sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2043-001-Attribs_command007 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2043-001-Delete_command008 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2043 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2044 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2044 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) test. sl@0: //! Asynchronously Rename file with ReadOnly and Hidden atributes and check that the renamed file have the same attributes. sl@0: //! Uses API elements: NewL(), Copy(), Rename(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test1.txt as second parameter. sl@0: //! 5.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\Copy\Test1.txt as first parameter, sl@0: //! and KEntryAttReadOnly|KEntryAttHidden as second parameter, sl@0: //! and KEntryAttNormal as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and 0 as fifth parameter. sl@0: //! 6.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Copy\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test.txt as second parameter, sl@0: //! and aSwitch = 0, sl@0: //! and iStatus. sl@0: //! 7.Check that files have the same attributes. sl@0: //! 8.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\Copy\Test.txt as first parameter, sl@0: //! and KEntryAttNormal as second parameter, sl@0: //! and KEntryAttReadOnly|KEntryAttHidden as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and 0 as fifth parameter. sl@0: //! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Copy\* as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults File attributes unchanged after Rename(). sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_EOverWrite sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2044-001-Attribs_command004 sl@0: COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2044-001-Rename_command005 sl@0: OUTSTANDING sl@0: COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2044-001-Att_command006 sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2044-001-Attribs_command007 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2044-001-Delete_command008 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2044 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2045 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2045 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test. sl@0: //! Call asynchronous 3 Copy() functions at once. sl@0: //! Uses API elements: NewL(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus), sl@0: //! and Opened RFile handle "{TestPath}fileman\Test1.txt" as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test1.txt as second parameter, sl@0: //! and aSwitch = 0, sl@0: //! and iStatus. sl@0: //! 4.Call CFileMan::Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus), sl@0: //! and Opened RFile handle "{TestPath}fileman\Test2.txt" as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test2.txt as second parameter. sl@0: //! and aSwitch = 0, sl@0: //! and iStatus. sl@0: //! 5.Call CFileMan::Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus), sl@0: //! and Opened RFile handle "{TestPath}fileman\Test3.txt" as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test3.txt as second parameter. sl@0: //! and aSwitch = 0, sl@0: //! and iStatus. sl@0: //! 6.Check that only first file was copied other copy calls return KErrInUse. sl@0: //! 7.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Copy\* as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults All files were copied. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFile1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2045-001-Copy_command002 sl@0: COMMAND !Error=-14 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2045-001-Copy_command003 sl@0: COMMAND !Error=-14 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2045-001-Copy_command004 sl@0: OUTSTANDING sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2045-001-Open_command005 sl@0: COMMAND RFile1 Close sl@0: COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2045-001-Open_command006 sl@0: COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2045-001-Open_command007 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2045-001-Delete_command008 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFile1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2045 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2046 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2046 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test. sl@0: //! Call asynchronous 3 Move() functions at once. sl@0: //! Uses API elements: NewL(), Cope(), Move(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test1.txt as second parameter, sl@0: //! and aSwitch = 0. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test2.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test2.txt as second parameter. sl@0: //! and aSwitch = 0. sl@0: //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test3.txt as second parameter. sl@0: //! and aSwitch = 0. sl@0: //! 6.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Copy\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Test\Test1.txt as second parameter, sl@0: //! and aSwitch = 0, sl@0: //! and iStatus. sl@0: //! 7.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Copy\Test2.txt as first parameter, sl@0: //! and {TestPath}fileman\Test\Test2.txt as second parameter. sl@0: //! and aSwitch = 0, sl@0: //! and iStatus. sl@0: //! 8.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Copy\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\Test\Test3.txt as second parameter. sl@0: //! and aSwitch = 0, sl@0: //! and iStatus. sl@0: //! 9.Check that only first file was moved other Move calls return KErrInUse. sl@0: //! 10.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Copy\* as parameter. sl@0: //! 11.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Test\* as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults All files were moved. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir sl@0: COMMAND RFile1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0 sl@0: COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2046-001-Move_command002 sl@0: COMMAND !Error=-14 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2046-001-Move_command003 sl@0: COMMAND !Error=-14 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2046-001-Move_command004 sl@0: OUTSTANDING sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2046-001-Open_command005 sl@0: COMMAND RFile1 Close sl@0: COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2046-001-Open_command006 sl@0: COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2046-001-Open_command007 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2046-001-Delete_command008 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2046-001-Delete_command009 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir sl@0: COMMAND RFile1 ~ sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2046 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2047 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2047 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test. sl@0: //! Call asynchronous 3 Rename() functions at once. sl@0: //! Uses API elements: NewL(), Cope(), Rename(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test1.txt as second parameter, sl@0: //! and aSwitch = 0. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test2.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test2.txt as second parameter. sl@0: //! and aSwitch = 0. sl@0: //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test3.txt as second parameter. sl@0: //! and aSwitch = 0. sl@0: //! 6.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Copy\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test1_new.txt as second parameter, sl@0: //! and aSwitch = 0, sl@0: //! and iStatus. sl@0: //! 7.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Copy\Test2.txt as first parameter, sl@0: //! and {TestPath}fileman\Test\Test2_new.txt as second parameter. sl@0: //! and aSwitch = 0, sl@0: //! and iStatus. sl@0: //! 8.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Copy\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\Test\Test3_new.txt as second parameter. sl@0: //! and aSwitch = 0, sl@0: //! and iStatus. sl@0: //! 9.Check that only first file was renamed other Rename calls return KErrInUse. sl@0: //! 10.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Copy\* as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults All files were moved. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFile1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0 sl@0: COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2047-001-Rename_command002 sl@0: COMMAND !Error=-14 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2047-001-Rename_command003 sl@0: COMMAND !Error=-14 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2047-001-Rename_command004 sl@0: OUTSTANDING sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2047-001-Open_command005 sl@0: COMMAND RFile1 Close sl@0: COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2047-001-Open_command006 sl@0: COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2047-001-Open_command007 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2047-001-Delete_command008 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND RFile1 ~ sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2047 sl@0: sl@0: sl@0: sl@0: ////////////////////////////////////////////////////////////////////// sl@0: ////////////////////////////////////////////////////////////////////// sl@0: ////// ////// sl@0: ////// /////////////////////////////////// ////// sl@0: ////// /// /// ////// sl@0: ////// /// NEGATIVE TESTS /// ////// sl@0: ////// /// /// ////// sl@0: ////// /////////////////////////////////// ////// sl@0: ////// ////// sl@0: ////////////////////////////////////////////////////////////////////// sl@0: ////////////////////////////////////////////////////////////////////// sl@0: sl@0: sl@0: //////////////////////////////////////////////////////////////////////////////////////////////////// sl@0: // sl@0: //ATTRIBS sl@0: //Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: // sl@0: //////////////////////////////////////////////////////////////////////////////////////////////////// sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2103 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2103 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) negative test. sl@0: //! Try to set attribute KEntryAttDir synchronously for file! sl@0: //! And then check that it was not set for file sl@0: //! Uses API elements: NewL(), Attribs(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\Test2.txt as first parameter, sl@0: //! and KEntryAttDir as second parameter, sl@0: //! and KEntryAttNormal as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and 0 as fifth parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Attribute KEntryAttDir wasn't set for file. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2103-001-Attribs_command005 sl@0: COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2103-001-Att_command006 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2103 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2104 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2104 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) negative test. sl@0: //! Try to set attributes synchronously with wrong file path! sl@0: //! Uses API elements: NewL(), Attribs(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\\\Test2.txt as first parameter, sl@0: //! and KEntryAttReadOnly as second parameter, sl@0: //! and KEntryAttNormal as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and CFileMan::ERecurse as fifth parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Function Attribs() returns KErrBadName. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !Error=-28 CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2104-001-Attribs_command005 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2104 sl@0: sl@0: sl@0: //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// sl@0: // sl@0: //ATTRIBS sl@0: //Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus) sl@0: // sl@0: //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2105 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2105 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus) sl@0: //! negative test. sl@0: //! Try to set attribute KEntryAttDir asynchronously for file! sl@0: //! And then check that it was not set for file sl@0: //! Uses API elements: NewL(), Attribs(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus) sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and KEntryAttDir as second parameter, sl@0: //! and KEntryAttNormal as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and 0 as fifth parameter, sl@0: //! and iStatus as sixth parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Attribute KEntryAttDir wasn't set for file. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2105-001-Attribs_command005 sl@0: OUTSTANDING sl@0: COMMAND RFs1 Att PBASE-F32-FileMan-PublicApi-2105-001-Att_command006 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2105 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2106 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2106 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus) sl@0: //! negative test. sl@0: //! Try to set attributes asynchronously with wrong file path! sl@0: //! Uses API elements: NewL(), Attribs(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus) sl@0: //! and {TestPath}fileman\\\Test2.txt as first parameter, sl@0: //! and KEntryAttReadOnly as second parameter, sl@0: //! and KEntryAttNormal as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and CFileMan::ERecurse as fifth parameter, sl@0: //! and iStatus as sixth parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Function Attribs() returns KErrBadName. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !AsyncError=-28 CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2106-001-Attribs_command005 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2106 sl@0: sl@0: sl@0: /////////////////////////////////////////////////////////////////////// sl@0: // sl@0: //COPY sl@0: //Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) sl@0: // sl@0: /////////////////////////////////////////////////////////////////////// sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2107 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2107 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test. sl@0: //! Sets file attributes to normal and tries to copy non-existing file synchronously from one directory to another. sl@0: //! Uses API elements: NewL(), Attribs(), Copy(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test123.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Copy() returns KErrNotFound. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !Error=-1 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2107-001-Copy_command005 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2107 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2108 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2108 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test. sl@0: //! Sets file attributes to normal and tries to copy file with wrong path name from one directory to another synchronously. sl@0: //! Uses API elements: NewL(), Attribs(), Copy(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\\\\\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Copy() returns KErrBadName. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !Error=-28 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2108-001-Copy_command005 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2108 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2109 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2109 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test. sl@0: //! Sets file attributes to normal and tries to copy file from one directory to directory with wrong path name synchronously. sl@0: //! Uses API elements: NewL(), Attribs(), Copy(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and KEntryAttNormal as second parameter, sl@0: //! and KEntryAttReadOnly as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and CFileMan::EOverWrite as fifth parameter. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\/\/\Copy\ as second parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Copy() returns KErrBadName. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !Error=-28 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2109-001-Copy_command005 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2109 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2110 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2110 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test. sl@0: //! Sets file attributes to normal and tries to copy file from one directory to non-existing directory synchronously. sl@0: //! Uses API elements: NewL(), Attribs(), Copy(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and KEntryAttNormal as second parameter, sl@0: //! and KEntryAttReadOnly as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and CFileMan::EOverWrite as fifth parameter. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\NotExist\ as second parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Copy() returns KErrPathNotFound sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !Error=-12 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2110-001-Copy_command005 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2110 sl@0: sl@0: sl@0: ///////////////////////////////////////////////////////////////////////////////////// sl@0: // sl@0: //COPY sl@0: //Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) sl@0: // sl@0: ///////////////////////////////////////////////////////////////////////////////////// sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2111 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2111 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test. sl@0: //! Sets file attributes to normal and tries to copy non-existing file from one directory to another asynchronously. sl@0: //! Uses API elements: NewL(), Attribs(), Copy(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus) sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and KEntryAttNormal as second parameter, sl@0: //! and KEntryAttReadOnly as third parameter, and TTime(0) as fourth parameter, sl@0: //! and CFileMan::EOverWrite as fifth parameter, sl@0: //! and iStatus as sixth parameter. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus). sl@0: //! and {TestPath}fileman\Test123.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and iStatus as last parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Copy() returns KErrNotFound. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !AsyncError=-1 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2111-001-Copy_command005 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2111 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2112 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2112 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test. sl@0: //! Sets file attributes to normal and tries to copy file with wrong path name from one directory to another asynchronously. sl@0: //! Uses API elements: NewL(), Attribs(), Copy(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus) sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and KEntryAttNormal as second parameter, sl@0: //! and KEntryAttReadOnly as third parameter, and TTime(0) as fourth parameter, sl@0: //! and CFileMan::EOverWrite as fifth parameter, sl@0: //! and iStatus as sixth parameter. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus). sl@0: //! and {TestPath}fileman\\\\\\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and iStatus as last parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Copy() returns KErrBadName. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !AsyncError=-28 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2112-001-Copy_command005 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2112 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2113 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2113 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test. sl@0: //! Sets file attributes to normal and tries to copy file from one directory to directory with wrong path name asynchronously. sl@0: //! Uses API elements: NewL(), Attribs(), Copy(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus) sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and KEntryAttNormal as second parameter, sl@0: //! and KEntryAttReadOnly as third parameter, and TTime(0) as fourth parameter, sl@0: //! and CFileMan::EOverWrite as fifth parameter, sl@0: //! and iStatus as sixth parameter. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus). sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\/\/\Copy\ as second parameter, sl@0: //! and iStatus as last parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Copy() returns KErrBadName. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !AsyncError=-28 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2113-001-Copy_command005 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2113 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2114 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2114 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test. sl@0: //! Sets file attributes to normal and tries to copy file from one directory to non-existing directory asynchronously. sl@0: //! Uses API elements: NewL(), Attribs(), Copy(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch, TRequestStatus &aStatus) sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and KEntryAttNormal as second parameter, sl@0: //! and KEntryAttReadOnly as third parameter, and TTime(0) as fourth parameter, sl@0: //! and CFileMan::EOverWrite as fifth parameter, sl@0: //! and iStatus as sixth parameter. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus). sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\NotExist\ as second parameter, sl@0: //! and iStatus as last parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Copy() returns KErrPathNotFound sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !AsyncError=-12 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2114-001-Copy_command005 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2114 sl@0: sl@0: sl@0: ////////////////////////////////////////////// sl@0: // sl@0: //DELETE sl@0: //Delete(const TDesC &aName, TUint aSwitch=0) sl@0: // sl@0: ////////////////////////////////////////////// sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2115 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2115 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Delete(const TDesC &aName, TUint aSwitch=0) negative test. sl@0: //! Tries to delete non-existing file synchronously. sl@0: //! Uses API elements: NewL(), Delete(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), and {TestPath}fileman\Test123.txt as parameter sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Delete() returns KErrNotFound. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !Error=-1 CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2115-001-Delete_command005 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2115 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2116 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2116 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Delete(const TDesC &aName, TUint aSwitch=0) negative test. sl@0: //! Tries to delete file with wrong path name synchronously. sl@0: //! Uses API elements: NewL(), Delete(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), and {TestPath}fileman\\\\\Test3.txt as parameter sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Delete() returns KErrBadName. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !Error=-28 CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2116-001-Delete_command005 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2116 sl@0: sl@0: sl@0: ////////////////////////////////////////////////////////////////////// sl@0: // sl@0: //DELETE sl@0: //Delete(const TDesC &aName, TUint aSwitch=0, TRequestStatus &aStatus) sl@0: // sl@0: ////////////////////////////////////////////////////////////////////// sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2117 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2117 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Delete(const TDesC &aName, TUint aSwitch=0, TRequestStatus &aStatus) negative test. sl@0: //! Tries to delete non-existing file asynchronously. sl@0: //! Uses API elements: NewL(), Delete(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Copy\Test123.txt as first parameter, sl@0: //! and CFileMan::EOverWrite as second parameter, sl@0: //! and iStatus as third parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Delete() returns KErrNotFound. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !AsyncError=-1 CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2117-001-Delete_command005 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2117 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2118 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2118 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Delete(const TDesC &aName, TUint aSwitch=0, TRequestStatus &aStatus) negative test. sl@0: //! Tries to delete file with wrong path name asynchronously. sl@0: //! Uses API elements: NewL(), Delete(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Copy\\\\\Test3.txt as first parameter, sl@0: //! and CFileMan::EOverWrite as second parameter, sl@0: //! and iStatus as third parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Delete() returns KErrBadName. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !AsyncError=-28 CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2118-001-Delete_command005 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2118 sl@0: sl@0: sl@0: //////////////////////////////////////////////////////////////////////// sl@0: // sl@0: //MOVE sl@0: //Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) sl@0: // sl@0: //////////////////////////////////////////////////////////////////////// sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2119 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2119 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test. sl@0: //! Tries to move non-existing file from one directory to another synchronously. sl@0: //! Uses API elements: NewL(), Move(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite). sl@0: //! and {TestPath}fileman\Test123.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Move() returns KErrNotFound. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !Error=-1 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2119-001-Move_command005 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2119 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2120 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2120 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test. sl@0: //! Tries to move file with wrong path name from one directory to another synchronously. sl@0: //! Uses API elements: NewL(), Move(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite). sl@0: //! and {TestPath}fileman\\\\\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Move() returns KErrBadName. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !Error=-28 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2120-001-Move_command005 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2120 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2121 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2121 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test. sl@0: //! Tries to move file from one directory to directory with wrong path name synchronously. sl@0: //! Uses API elements: NewL(), Move(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite). sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\\\Copy\ as second parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Move() returns KErrBadName. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !Error=-28 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2121-001-Move_command005 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2121 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2122 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2122 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test. sl@0: //! Tries to move file from one directory to non-existing directory synchronously. sl@0: //! Uses API elements: NewL(), Move(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite). sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\NotExist\ as second parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Move() returns KErrPathNotFound. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !Error=-12 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2122-001-Move_command005 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2122 sl@0: sl@0: sl@0: ////////////////////////////////////////////////////////////////////////////////////// sl@0: // sl@0: //MOVE sl@0: //Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) sl@0: // sl@0: ////////////////////////////////////////////////////////////////////////////////////// sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2123 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2123 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test. sl@0: //! Tries to move non-existing file from one directory to another asynchronously. sl@0: //! Uses API elements: NewL(), Move(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Test123.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and CFileMan::EOverWrite as third parameter, sl@0: //! and iStatus as fourth parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Move() returns KErrNotFound. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !AsyncError=-1 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2123-001-Move_command005 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2123 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2124 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2124 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test. sl@0: //! Tries to move file with wrong path name from one directory to another asynchronously. sl@0: //! Uses API elements: NewL(), Move(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\\\\\\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and CFileMan::EOverWrite as third parameter, sl@0: //! and iStatus as fourth parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Move() returns KErrBadName. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !AsyncError=-28 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2124-001-Move_command005 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2124 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2125 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2125 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test. sl@0: //! Tries to move file from one directory to directory with wrong path name asynchronously. sl@0: //! Uses API elements: NewL(), Move(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\\\Copy\ as second parameter, sl@0: //! and CFileMan::EOverWrite as third parameter, sl@0: //! and iStatus as fourth parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Move() returns KErrBadName. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !AsyncError=-28 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2125-001-Move_command005 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2125 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2126 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2126 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test. sl@0: //! Tries to move file from one directory to non-existing directory asynchronously. sl@0: //! Uses API elements: NewL(), Move(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\NotExist\ as second parameter, sl@0: //! and CFileMan::EOverWrite as third parameter, sl@0: //! and iStatus as fourth parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Move() returns KErrPathNotFound. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !AsyncError=-12 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2126-001-Move_command005 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2126 sl@0: sl@0: sl@0: ////////////////////////////////////////////////////////////////////////// sl@0: // sl@0: //RENAME sl@0: //Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) sl@0: // sl@0: ////////////////////////////////////////////////////////////////////////// sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2127 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2127 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test. sl@0: //! Tries to rename non-existing file name synchronously. sl@0: //! Uses API elements: NewL(), Rename(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test123.txt as first parameter, sl@0: //! and {TestPath}fileman\Renamed.txt as second parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Rename() returns KErrNotFound. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !Error=-1 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2127-001-Rename_command005 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2127 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2128 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2128 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test. sl@0: //! Tries to rename file with wrong path name synchronously. sl@0: //! Uses API elements: NewL(), Rename(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\\\\\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\Renamed.txt as second parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Rename() returns KErrBadName. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !Error=-28 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2128-001-Rename_command005 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2128 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2129 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2129 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) negative test. sl@0: //! Tries to rename file synchronously when new file path is wrong. sl@0: //! Uses API elements: NewL(), Rename(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\\\Renamed.txt as second parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Rename() returns KErrBadName. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !Error=-28 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2129-001-Rename_command005 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2129 sl@0: sl@0: sl@0: //////////////////////////////////////////////////////////////////////////////////////// sl@0: // sl@0: //RENAME sl@0: //Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) sl@0: // sl@0: //////////////////////////////////////////////////////////////////////////////////////// sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2130 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2130 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test. sl@0: //! Tries to rename non-existing file name asynchronously. sl@0: //! Uses API elements: NewL(), Rename(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus). sl@0: //! and {TestPath}fileman\Test123.txt as first parameter, sl@0: //! and {TestPath}fileman\Renamed.txt as second parameter, sl@0: //! and CFileMan::EOverWrite as third parameter, sl@0: //! and iStatus as last parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Rename() returns KErrNotFound. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !AsyncError=-1 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2130-001-Rename_command005 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2130 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2131 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2131 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test. sl@0: //! Tries to rename file with wrong path name asynchronously. sl@0: //! Uses API elements: NewL(), Rename(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus). sl@0: //! and {TestPath}fileman\\\\\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\Renamed.txt as second parameter, sl@0: //! and CFileMan::EOverWrite as third parameter, sl@0: //! and iStatus as last parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Rename() returns KErrBadName. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !AsyncError=-28 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2131-001-Rename_command005 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2131 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2132 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2132 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus) negative test. sl@0: //! Tries to rename file asynchronously when new file path is wrong. sl@0: //! Uses API elements: NewL(), Rename(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus). sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\\\Renamed.txt as second parameter, sl@0: //! and CFileMan::EOverWrite as third parameter, sl@0: //! and iStatus as last parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Rename() returns KErrBadName. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !AsyncError=-28 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2132-001-Rename_command005 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2132 sl@0: sl@0: sl@0: ////////////////////////////// sl@0: // sl@0: //REMOVE DIRECTORY sl@0: //RmDir(const TDesC &aDirName) sl@0: // sl@0: ////////////////////////////// sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2133 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2133 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName) negative test. sl@0: //! Tries to remove non-existing directory synchronously. sl@0: //! Uses API elements: NewL(), RmDir(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::RmDir(const TDesC &aDirName) and {TestPath}fileman\Copy123\ as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults RmDir() returns KErrPathNotFound. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !Error=-12 CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2133-001-RmDir_command005 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2133 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2134 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2134 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName) negative test. sl@0: //! Tries to remove directory with wrong path name synchronously. sl@0: //! Uses API elements: NewL(), RmDir(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::RmDir(const TDesC &aDirName) and {TestPath}fileman\\\\\Copy\ as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults RmDir() returns KErrBadName. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !Error=-28 CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2134-001-RmDir_command005 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2134 sl@0: sl@0: sl@0: //////////////////////////////////////////////////////// sl@0: // sl@0: //REMOVE DIRECTORY sl@0: //RmDir(const TDesC &aDirName, TRequestStatus &aStatus) sl@0: // sl@0: //////////////////////////////////////////////////////// sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2135 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2135 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName, TRequestStatus &aStatus) negative test. sl@0: //! Tries to remove non-existing directory asynchronously. sl@0: //! Uses API elements: NewL(), RmDir(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::RmDir(const TDesC &aDirName, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Copy123\ as first parameter, sl@0: //! and iStatus as second parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults RmDir() returns KErrPathNotFound. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !AsyncError=-12 CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2135-001-RmDir_command005 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2135 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2136 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2136 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName, TRequestStatus &aStatus) negative test. sl@0: //! Tries to remove directory with wrong path name asynchronously. sl@0: //! Uses API elements: NewL(), RmDir(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::RmDir(const TDesC &aDirName, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\\\\\Copy\ as first parameter, sl@0: //! and iStatus as second parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults RmDir() returns KErrBadName. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !AsyncError=-28 CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2136-001-RmDir_command005 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2136 sl@0: sl@0: sl@0: ////////////////////////////////////////////////////////////////////////// sl@0: // sl@0: //COPY sl@0: //Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches=EOverWrite) sl@0: // sl@0: ////////////////////////////////////////////////////////////////////////// sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2137 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2137 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches=EOverWrite) negative test. sl@0: //! Opens file then tries to copy file content to another file with wrong path name synchronously. sl@0: //! Uses API elements: NewL(), Copy(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call RFile::Open() to open file. sl@0: //! 4.Call CFileMan::Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches=EOverWrite), sl@0: //! and RFile object as first object, sl@0: //! and {TestPath}fileman\\\\\test.txt as second parameter. sl@0: //! 5.RFs::Close(). sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Copy() returns KErrBadName. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFile1 new sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2137-001-Open_command006 sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !Error=-28 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2137-001-Copy_command008 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFile1 Close sl@0: COMMAND RFile1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2137 sl@0: sl@0: sl@0: //////////////////////////////////////////////////////////////////////////////////////// sl@0: // sl@0: //COPY sl@0: //Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches, TRequestStatus &aStatus) sl@0: // sl@0: //////////////////////////////////////////////////////////////////////////////////////// sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2138 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2138 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches, TRequestStatus &aStatus) negative test. sl@0: //! Opens file then tries to copy file content to another file with wrong path name asynchronously. sl@0: //! Uses API elements: NewL(), Copy(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call RFile::Open() to open file. sl@0: //! 4.Call CFileMan::Copy(const RFile &anOld, const TDesC &aNew, TUint aSwitches, TRequestStatus &aStatus), sl@0: //! and RFile object as first object, sl@0: //! and {TestPath}fileman\\\\\test.txt as second parameter, sl@0: //! and iStatus as last parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Copy() returns KErrBadName. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFile1 new sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2138-001-Open_command006 sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !AsyncError=-28 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2138-001-Copy_command008 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFile1 Close sl@0: COMMAND RFile1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2138 sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2139 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2139 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) negative test. sl@0: //! Try to set attribute KEntryAttReadOnly and unset the same attribute KEntryAttReadOnly synchronously for file! sl@0: //! And then check that it was not set for file sl@0: //! Uses API elements: NewL(), Attribs(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\Test2.txt as first parameter, sl@0: //! and KEntryAttReadOnly as second parameter, sl@0: //! and KEntryAttReadOnly as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and 0 as fifth parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Function Attribs() returns Panic with code 21. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2139-001-Attribs_command005 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK !PanicCode=21 !PanicString="FSCLIENT panic" sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2139 sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2140 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2140 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) negative test. sl@0: //! Try to set attribute KEntryAttReadOnly and unset the same attribute KEntryAttReadOnly asynchronously for file! sl@0: //! And then check that it was not set for file sl@0: //! Uses API elements: NewL(), Attribs(). sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\Test2.txt as first parameter, sl@0: //! and KEntryAttReadOnly as second parameter, sl@0: //! and KEntryAttReadOnly as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and 0 as fifth parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Function Attribs() returns Panic with code 21. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND !AsyncError=21 CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2140-001-Attribs_command005 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2140 sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2141 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2141 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test. sl@0: //! Copy same file to the same location a three times with a different aSwitch parameter sl@0: //! Uses API elements: NewL(), Copy(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = 0 as third parameter. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = 0 as third parameter. sl@0: //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = EOverWrite as third parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults After second Copy() returns KAlreadyExists. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0 sl@0: COMMAND !Error=-11 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_EOverWrite sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2141-001-Delete_command009 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2141 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2142 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2142 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test. sl@0: //! Copy same file to the same location a three times with a different aSwitch parameter sl@0: //! Uses API elements: NewL(), Copy(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = 0 as third parameter, sl@0: //! and iStatus as fourth parameter. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = 0 as third parameter. sl@0: //! and iStatus as fourth parameter. sl@0: //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = EOverWrite as third parameter. sl@0: //! and iStatus as fourth parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults After second Copy() returns KAlreadyExists. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2142-001-Copy_command006 sl@0: OUTSTANDING sl@0: COMMAND !AsyncError=-11 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2142-001-Copy_command007 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2142-001-Copy_command008 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2142-001-Delete_command009 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2142 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2143 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2143 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test. sl@0: //! Move same file to the same location a three times with a different aSwitch parameter sl@0: //! Uses API elements: NewL(), Move(), Copy(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Move\ as second parameter, sl@0: //! and aSwitch = 0 as third parameter. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Move\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\ as second parameter, sl@0: //! and aSwitch = EOverWrite as third parameter. sl@0: //! 5.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Move\ as second parameter, sl@0: //! and aSwitch = 0 as third parameter. sl@0: //! 6.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Move\ as second parameter, sl@0: //! and aSwitch = EOverWrite as third parameter. sl@0: //! 7.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Move\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\ as second parameter, sl@0: //! and aSwitch = EOverWrite as third parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults After second Move() returns KAlreadyExists. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2143-001-MkDir_command004 sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2143-001-Move_command006 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2143-001-Copy_command007 sl@0: COMMAND !Error=-11 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2143-001-Move_command008 sl@0: COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2143-001-Move_command009 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2143-001-Copy_command010 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2143-001-Delete_command011 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2143-001-RmDir_command012 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2143 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2144 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2144 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test. sl@0: //! Move same file to the same location a three times with a different aSwitch parameter sl@0: //! Uses API elements: NewL(), Move(), Copy; sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Move\ as second parameter, sl@0: //! and aSwitch = 0 as third parameter, sl@0: //! and iStatus as fourth parameter. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Move\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\ as second parameter, sl@0: //! and aSwitch = EOverWrite as third parameter. sl@0: //! 5.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Move\ as second parameter, sl@0: //! and aSwitch = 0 as third parameter. sl@0: //! and iStatus as fourth parameter. sl@0: //! 6.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Move\ as second parameter, sl@0: //! and aSwitch = EOverWrite as third parameter. sl@0: //! and iStatus as fourth parameter. sl@0: //! 7.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Move\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\ as second parameter, sl@0: //! and aSwitch = EOverWrite as third parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults After second Move() returns KAlreadyExists. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2144-001-MkDir_command004 sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2144-001-Move_command006 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2144-001-Copy_command007 sl@0: COMMAND !AsyncError=-11 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2144-001-Move_command008 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2144-001-Move_command009 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2144-001-Copy_command010 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2144-001-Delete_command011 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2144-001-RmDir_command012 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2144 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2145 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2145 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test. sl@0: //! Rename same file to the same location a three times with a different aSwitch parameter sl@0: //! Uses API elements: NewL(), Rename(), Copy(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Rename\ as second parameter, sl@0: //! and aSwitch = 0 as third parameter. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Rename\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\ as second parameter, sl@0: //! and aSwitch = EOverWrite as third parameter. sl@0: //! 5.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Rename\ as second parameter, sl@0: //! and aSwitch = 0 as third parameter. sl@0: //! 6.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Rename\ as second parameter, sl@0: //! and aSwitch = EOverWrite as third parameter. sl@0: //! 7.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Rename\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\ as second parameter, sl@0: //! and aSwitch = EOverWrite as third parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults After second Rename() returns KAlreadyExists. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2145-001-MkDir_command004 sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2145-001-Rename_command006 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2145-001-Copy_command007 sl@0: COMMAND !Error=-11 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2145-001-Rename_command008 sl@0: COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2145-001-Rename_command009 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2145-001-Copy_command010 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2145-001-Delete_command011 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2145-001-RmDir_command012 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2145 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2146 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2146 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test. sl@0: //! Rename same file to the same location a three times with a different aSwitch parameter sl@0: //! Uses API elements: NewL(), Rename(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Rename\ as second parameter, sl@0: //! and aSwitch = 0 as third parameter, sl@0: //! and iStatus as fourth parameter. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Rename\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\ as second parameter, sl@0: //! and aSwitch = EOverWrite as third parameter. sl@0: //! 5.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Rename\ as second parameter, sl@0: //! and aSwitch = 0 as third parameter. sl@0: //! and iStatus as fourth parameter. sl@0: //! 6.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Rename\ as second parameter, sl@0: //! and aSwitch = EOverWrite as third parameter. sl@0: //! and iStatus as fourth parameter. sl@0: //! 7.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Rename\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\ as second parameter, sl@0: //! and aSwitch = EOverWrite as third parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults After second Rename() returns KAlreadyExists. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2146-001-MkDir_command004 sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2146-001-Rename_command006 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2146-001-Copy_command007 sl@0: COMMAND !AsyncError=-11 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2146-001-Rename_command008 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2146-001-Rename_command009 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2146-001-Copy_command010 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2146-001-Delete_command011 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2146-001-RmDir_command012 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2146 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2147 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2147 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Delete(const TDesC &aName, TUint aSwitch=0) test. sl@0: //! Call synchronous delete with KNullDesC argument. sl@0: //! Uses API elements: NewL(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call RFs::SetSession() set session path to "{TestPath}fileman\Copy\" sl@0: //! 3.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\*.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and CFileMan::EOverWrite as third parameter. sl@0: //! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and KNullDesC as parameter sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults All files deleted from folder "Copy". sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFs1 SetSessionPath PBASE-F32-FileMan-PublicApi-2147-001-SetSessionPath_command005 sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2147-001-Copy_command007 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2147-001-Delete_command008 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2147 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2148 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2148 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function Delete(const TDesC &aName, TUint aSwitch=0, TRequestStatus &aStatus) test. sl@0: //! Call asynchronous delete with KNullDesC argument. sl@0: //! Uses API elements: NewL(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call RFs::SetSession() set session path to "{TestPath}fileman\Copy\" sl@0: //! 3.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\*.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and CFileMan::EOverWrite as third parameter. sl@0: //! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and KNullDesC as parameter sl@0: //! and iStatus as fourth parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults All files deleted from folder "Copy". sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFs1 SetSessionPath PBASE-F32-FileMan-PublicApi-2148-001-SetSessionPath_command005 sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2148-001-Copy_command007 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2148-001-Delete_command008 sl@0: OUTSTANDING sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2148 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2149 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2149 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName) test. sl@0: //! Delete newly created folder with sub folders. sl@0: //! Uses API elements: NewL(), RmDir(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::RmDir(const TDesC &aDirName), sl@0: //! and {TestPath}fileman\Copy\ as parameter. sl@0: //! 4.Check that folder was successfully deleted with sub folders. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults All sub folders and specified directory deleted. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RDir RDir1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2149-001-MkDir_command005 sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2149-001-MkDir_command006 sl@0: COMMAND RDir1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2149-001-RmDir_command008 sl@0: COMMAND !Error=-12 RDir1 Open PBASE-F32-FileMan-PublicApi-2149-001-Open_command009 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RDir1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2149 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2150 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2150 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName, TRequestStatus &aStatus) test. sl@0: //! Delete newly created folder with sub folders asynchronously. sl@0: //! Uses API elements: NewL(), RmDir(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::RmDir(const TDesC &aDirName, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Copy\ as parameter, sl@0: //! and iStatus as second parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults All sub folders and specified directory deleted. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RDir RDir1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2150-001-MkDir_command005 sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2150-001-MkDir_command006 sl@0: COMMAND RDir1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2150-001-RmDir_command008 sl@0: OUTSTANDING sl@0: COMMAND !Error=-12 RDir1 Open PBASE-F32-FileMan-PublicApi-2150-001-Open_command009 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RDir1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2150 sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2151 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2151 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName) test. sl@0: //! Delete folder in which one file is readonly. sl@0: //! Uses API elements: NewL(), RmDir(), Copy(), Attribs; sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite). sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch=0 as third parameter. sl@0: //! 4.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and KEntryAttReadOnly as second parameter, sl@0: //! and KEntryAttNormal as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and CFileMan::ERecurse as fifth parameter. sl@0: //! 5.Call CFileMan::RmDir(const TDesC &aDirName), sl@0: //! and {TestPath}fileman\Copy\ as parameter. sl@0: //! 6.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and KEntryAttNormal as second parameter, sl@0: //! and KEntryAttReadOnly as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and CFileMan::ERecurse as fifth parameter. sl@0: //! 7.Call CFileMan::RmDir(const TDesC &aDirName), sl@0: //! and {TestPath}fileman\Copy\ as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults RmDir() return KErrInUse. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0 sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2151-001-Attribs_command007 sl@0: COMMAND !Error=-14 CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2151-001-RmDir_command008 sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2151-001-Attribs_command009 sl@0: COMMAND CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2151-001-RmDir_command010 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2151 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2152 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2152 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName, TRequestStatus &aStatus) test. sl@0: //! Delete folder in which one file is readonly. sl@0: //! Uses API elements: NewL(), RmDir(), Copy(), Attribs; sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite). sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch=0 as third parameter. sl@0: //! 4.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and KEntryAttReadOnly as second parameter, sl@0: //! and KEntryAttNormal as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and CFileMan::ERecurse as fifth parameter. sl@0: //! 5.Call CFileMan::RmDir(const TDesC &aDirName, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Copy\ as parameter. sl@0: //! and iStatus as second parameter. sl@0: //! 6.Call CFileMan::Attribs(const TDesC &aName, TUint aSetMask, TUint aClearMask, const TTime &aTime, TUint aSwitch=0) sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and KEntryAttNormal as second parameter, sl@0: //! and KEntryAttReadOnly as third parameter, sl@0: //! and TTime(0) as fourth parameter, sl@0: //! and CFileMan::ERecurse as fifth parameter. sl@0: //! 7.Call CFileMan::RmDir(const TDesC &aDirName, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Copy\ as parameter. sl@0: //! and iStatus as second parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults RmDir() return KErrInUse. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0 sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2152-001-Attribs_command007 sl@0: COMMAND !AsyncError=-14 CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2152-001-RmDir_command008 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 Attribs PBASE-F32-FileMan-PublicApi-2152-001-Attribs_command009 sl@0: COMMAND CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2152-001-RmDir_command010 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2152 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2153 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2153 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName) test. sl@0: //! Synchronously Delete folder in which one file is opened. sl@0: //! Uses API elements: NewL(), RmDir(), Copy(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite). sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch=0 as third parameter. sl@0: //! 4.Open File in directory which will be deleted. sl@0: //! 5.Call CFileMan::RmDir(const TDesC &aDirName), sl@0: //! and {TestPath}fileman\Copy\ as parameter. sl@0: //! 6.Close opened file. sl@0: //! 7.Call CFileMan::RmDir(const TDesC &aDirName), sl@0: //! and {TestPath}fileman\Copy\ as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults RmDir() return KErrInUse. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFile1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0 sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2153-001-Open_command007 sl@0: COMMAND !Error=-14 CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2153-001-RmDir_command008 sl@0: COMMAND RFile1 Close sl@0: COMMAND CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2153-001-RmDir_command010 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFile1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2153 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2154 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2154 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Function RmDir(const TDesC &aDirName, TRequestStatus &aStatus) test. sl@0: //! Asynchronously Delete folder in which one file is opened. sl@0: //! Uses API elements: NewL(), RmDir(), Copy(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite). sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch=0 as third parameter. sl@0: //! 4.Open File in directory which will be deleted. sl@0: //! 5.Call CFileMan::RmDir(const TDesC &aDirName, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Copy\ as parameter. sl@0: //! and iStatus as second parameter. sl@0: //! 6.Close opened file. sl@0: //! 7.Call CFileMan::RmDir(const TDesC &aDirName, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Copy\ as parameter. sl@0: //! and iStatus as second parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults RmDir() return KErrInUse. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFile1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0 sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2154-001-Open_command007 sl@0: COMMAND !AsyncError=-14 CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2154-001-RmDir_command008 sl@0: OUTSTANDING sl@0: COMMAND RFile1 Close sl@0: COMMAND CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2154-001-RmDir_command010 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFile1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2154 sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2155 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2155 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test. sl@0: //! Copy files to folder where alredy exists one file from list of copied files. sl@0: //! Uses API elements: NewL(), SetObserver(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch=0. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\ as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch=0. sl@0: //! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and aSwitch=ERecurse. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Copy() return KErrAlreadyExists when trying to copy Test1.txt. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 SetObserver sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0 sl@0: COMMAND !Error=-11 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2155-001-Copy_command003 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2155-001-Delete_command004 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2155 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2156 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2156 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test. sl@0: //! Move files to folder where alredy exists one file from list of moved files. sl@0: //! Uses API elements: NewL(), SetObserver(), Copy(), Move(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\ as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch=0. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy1\ as second parameter, sl@0: //! and aSwitch=0. sl@0: //! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and {TestPath}fileman\Copy1\ as second parameter, sl@0: //! and aSwitch=0. sl@0: //! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Copy1\ as first parameter, sl@0: //! and aSwitch=ERecurse. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Move() return KErrAlreadyExists when trying to copy Test1.txt. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2156-001-MkDir_command002 sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 SetObserver sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2156-001-Copy_command003 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2156-001-Copy_command004 sl@0: COMMAND !Error=-11 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2156-001-Move_command005 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2156-001-Delete_command006 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2156-001-Delete_command007 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2156-001-RmDir_command008 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2156 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2157 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2157 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test. sl@0: //! Copy files to folder where alredy exists one file from list of copied files. sl@0: //! Uses API elements: NewL(), SetObserver(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch=0, sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\ as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch=0, sl@0: //! and iStatus. sl@0: //! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and aSwitch=ERecurse. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Copy() return KErrAlreadyExists when trying to copy Test1.txt. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 SetObserver sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0 sl@0: COMMAND !AsyncError=-11 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2157-001-Copy_command003 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2157-001-Delete_command004 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2157 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2158 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2158 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test. sl@0: //! Move files to folder where alredy exists one file from list of moved files. sl@0: //! Uses API elements: NewL(), SetObserver(), Copy(), Move(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\ as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch=0. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy1\ as second parameter, sl@0: //! and aSwitch=0. sl@0: //! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and {TestPath}fileman\Copy1\ as second parameter, sl@0: //! and aSwitch=0 sl@0: //! and iStatus. sl@0: //! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Copy1\ as first parameter, sl@0: //! and aSwitch=ERecurse. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Move() return KErrAlreadyExists when trying to copy Test1.txt. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-2158-001-MkDir_command002 sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 SetObserver sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2158-001-Copy_command003 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2158-001-Copy_command004 sl@0: COMMAND !AsyncError=-11 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2158-001-Move_command005 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2158-001-Delete_command006 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2158-001-Delete_command007 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-2158-001-RmDir_command008 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2158 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2159 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2159 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite) test. sl@0: //! Synchronously try to move opened file. sl@0: //! Uses API elements: NewL(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test1.txt as second parameter. sl@0: //! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Copy as first parameter, sl@0: //! and {TestPath}fileman\Copy1\ as second parameter, sl@0: //! and aSwitch = ERecurse. sl@0: //! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Copy\* as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Move() return KErrInUse. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFile1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_EOverWrite sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2159-001-Open_command004 sl@0: COMMAND !Error=-14 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2159-001-Move_command005 sl@0: COMMAND RFile1 Close sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2159-001-Delete_command006 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFile1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2159 sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2160 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2160 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test. sl@0: //! Asynchronously try to move opened file. sl@0: //! Uses API elements: NewL(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test1.txt as second parameter. sl@0: //! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Copy as first parameter, sl@0: //! and {TestPath}fileman\Copy1\ as second parameter, sl@0: //! and aSwitch = ERecurse. sl@0: //! and iStatus. sl@0: //! 5.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Copy\* as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Move() return KErrInUse. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFile1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_EOverWrite sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2160-001-Open_command004 sl@0: COMMAND !AsyncError=-14 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2160-001-Move_command005 sl@0: OUTSTANDING sl@0: COMMAND RFile1 Close sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2160-001-Delete_command006 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFile1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2160 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2161 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2161 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test. sl@0: //! Call asynchronous Copy() 3 times for one file at one time. sl@0: //! Uses API elements: NewL(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test1.txt as second parameter, sl@0: //! and aSwitch = 0, sl@0: //! and iStatus. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test1.txt as second parameter. sl@0: //! and aSwitch = 0, sl@0: //! and iStatus. sl@0: //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test1.txt as second parameter. sl@0: //! and aSwitch = 0, sl@0: //! and iStatus. sl@0: //! 6.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Copy\* as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Second and third copy calls return KErrAlreadyExists. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2161-001-Copy_command002 sl@0: COMMAND !Error=-14 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2161-001-Copy_command002 sl@0: COMMAND !Error=-14 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2161-001-Copy_command002 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2161-001-Delete_command003 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2161 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2162 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2162 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test. sl@0: //! Call asynchronous Move() 3 times for one file at one time. sl@0: //! Uses API elements: NewL(), Copy(), Move(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test1.txt as second parameter, sl@0: //! and aSwitch = 0. sl@0: //! 4.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Copy\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Test\Test1.txt as second parameter. sl@0: //! and aSwitch = 0, sl@0: //! and iStatus. sl@0: //! 5.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Copy\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Test\Test1.txt as second parameter. sl@0: //! and aSwitch = 0, sl@0: //! and iStatus. sl@0: //! 6.Call CFileMan::Move(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Copy\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Test\Test1.txt as second parameter. sl@0: //! and aSwitch = 0, sl@0: //! and iStatus. sl@0: //! 7.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Test\* as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Second and third Move calls return KErrInUse. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2162-001-Copy_command002 sl@0: COMMAND CFileMan1 Move PBASE-F32-FileMan-PublicApi-2162-001-Move_command003 sl@0: COMMAND !Error=-14 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2162-001-Move_command003 sl@0: COMMAND !Error=-14 CFileMan1 Move PBASE-F32-FileMan-PublicApi-2162-001-Move_command003 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2162-001-Delete_command004 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2162 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2163 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2163 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus) test. sl@0: //! Call asynchronous Rename() 3 times for one file at one time. sl@0: //! Uses API elements: NewL(), Copy(), Move(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test1.txt as second parameter, sl@0: //! and aSwitch = 0. sl@0: //! 4.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Copy\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test1_new.txt as second parameter. sl@0: //! and aSwitch = 0, sl@0: //! and iStatus. sl@0: //! 5.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Copy\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test1_new.txt as second parameter. sl@0: //! and aSwitch = 0, sl@0: //! and iStatus. sl@0: //! 6.Call CFileMan::Rename(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite, TRequestStatus &aStatus), sl@0: //! and {TestPath}fileman\Copy\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\Test1_new.txt as second parameter. sl@0: //! and aSwitch = 0, sl@0: //! and iStatus. sl@0: //! 7.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Copy\* as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Second and third Rename calls return KErrInUse. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2163-001-Copy_command002 sl@0: COMMAND CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2163-001-Rename_command003 sl@0: COMMAND !Error=-14 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2163-001-Rename_command003 sl@0: COMMAND !Error=-14 CFileMan1 Rename PBASE-F32-FileMan-PublicApi-2163-001-Rename_command003 sl@0: OUTSTANDING sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2163-001-Delete_command004 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2163 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2166 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2166 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function MFileManObserver::NotifyFileManStarted() test. sl@0: //! Return TControl::ECancel during synchronous Copy process for one file and check that this file wasn't copied. sl@0: //! Uses API elements: NewL(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = 0. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test2.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = 0. sl@0: //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = 0. sl@0: //! 6.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and {TestPath}fileman\Test\ as second parameter, sl@0: //! and aSwitch = 0, sl@0: //! and also set to return TCOntrol::ECancel for Test2.txt in NotifyFileManStarted. sl@0: //! 7.Check that file Test2.txt wasn't copied. sl@0: //! 8.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Copy\* as parameter. sl@0: //! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Test\* as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults File Test2.txt wasn't copied. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir sl@0: COMMAND RFile1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 SetObserver sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2166-001-Copy_command002 sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2166-001-Open_command003 sl@0: COMMAND RFile1 Close sl@0: COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2166-001-Open_command004 sl@0: COMMAND RFile1 Close sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2166-001-Open_command005 sl@0: COMMAND RFile1 Close sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2166-001-Delete_command006 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2166-001-Delete_command007 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFile1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2166 sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2167 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2167 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function MFileManObserver::NotifyFileManStarted() test. sl@0: //! Return TControl::ECancel during asynchronous Copy process for one file and check that this file wasn't copied. sl@0: //! Uses API elements: NewL(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = 0. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test2.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = 0. sl@0: //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = 0. sl@0: //! 6.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and {TestPath}fileman\Test\ as second parameter, sl@0: //! and aSwitch = 0, sl@0: //! and also set to return TCOntrol::ECancel for Test2.txt in NotifyFileManStarted. sl@0: //! 7.Check that file Test2.txt wasn't copied. sl@0: //! 8.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Copy\* as parameter. sl@0: //! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Test\* as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults File Test2.txt wasn't copied. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir sl@0: COMMAND RFile1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 SetObserver sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2167-001-Copy_command002 sl@0: OUTSTANDING sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2167-001-Open_command003 sl@0: COMMAND RFile1 Close sl@0: COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2167-001-Open_command004 sl@0: COMMAND RFile1 Close sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2167-001-Open_command005 sl@0: COMMAND RFile1 Close sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFile1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2167-001-Delete_command006 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2167-001-Delete_command007 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2167 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2168 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2168 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function MFileManObserver::NotifyFileManStarted() test. sl@0: //! Return TControl::EAbort during synchronous Copy process for one file and check that copy process is aborted. sl@0: //! Uses API elements: NewL(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = 0. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test2.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = 0. sl@0: //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = 0. sl@0: //! 6.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and {TestPath}fileman\Test\ as second parameter, sl@0: //! and aSwitch = 0, sl@0: //! and also set to return TCOntrol::EAbort for Test2.txt in NotifyFileManStarted. sl@0: //! 7.Check that only file Test1.txt was copied. If files copied in this order, Test1.txt, Test2.txt, Test3.txt sl@0: //! 8.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Copy\* as parameter. sl@0: //! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Test\* as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Only Test1.txt was copied. Copy returns KErrCancel. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir sl@0: COMMAND RFile1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 SetObserver sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0 sl@0: COMMAND !Error=-3 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2168-001-Copy_command002 sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2168-001-Open_command003 sl@0: COMMAND RFile1 Close sl@0: COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2168-001-Open_command004 sl@0: COMMAND RFile1 Close sl@0: COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2168-001-Open_command005 sl@0: COMMAND RFile1 Close sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2168-001-Delete_command006 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2168-001-Delete_command007 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFile1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2168 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2169 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2169 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function MFileManObserver::NotifyFileManStarted() test. sl@0: //! Return TControl::EAbort during asynchronous Copy process for one file and check that copy process is aborted. sl@0: //! Uses API elements: NewL(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = 0. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test2.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = 0. sl@0: //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = 0. sl@0: //! 6.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and {TestPath}fileman\Test\ as second parameter, sl@0: //! and aSwitch = 0, sl@0: //! and also set to return TCOntrol::EAbort for Test2.txt in NotifyFileManStarted. sl@0: //! 7.Check that only file Test1.txt was copied. If files copied in this order, Test1.txt, Test2.txt, Test3.txt sl@0: //! 8.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Copy\* as parameter. sl@0: //! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Test\* as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Only Test1.txt was copied. Copy returns KErrCancel. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir sl@0: COMMAND RFile1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 SetObserver sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0 sl@0: COMMAND !AsyncError=-3 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2169-001-Copy_command002 sl@0: OUTSTANDING sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2169-001-Open_command003 sl@0: COMMAND RFile1 Close sl@0: COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2169-001-Open_command004 sl@0: COMMAND RFile1 Close sl@0: COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2169-001-Open_command005 sl@0: COMMAND RFile1 Close sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFile1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2169-001-Delete_command006 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2169-001-Delete_command007 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2169 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2170 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2170 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function MFileManObserver::NotifyFileManOperation() test. sl@0: //! Return TControl::ECancel during synchronous Copy process for one file and check that this file wasn't copied. sl@0: //! Uses API elements: NewL(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = 0. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test2.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = 0. sl@0: //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = 0. sl@0: //! 6.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and {TestPath}fileman\Test\ as second parameter, sl@0: //! and aSwitch = 0, sl@0: //! and also set to return TCOntrol::ECancel for Test2.txt in NotifyFileManOperation. sl@0: //! 7.Check that file Test2.txt wasn't copied. sl@0: //! 8.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Copy\* as parameter. sl@0: //! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Test\* as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults File Test2.txt wasn't copied. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir sl@0: COMMAND RFile1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 SetObserver sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2170-001-Copy_command002 sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2170-001-Open_command003 sl@0: COMMAND RFile1 Close sl@0: COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2170-001-Open_command004 sl@0: COMMAND RFile1 Close sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2170-001-Open_command005 sl@0: COMMAND RFile1 Close sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2170-001-Delete_command006 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2170-001-Delete_command007 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFile1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2170 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2171 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2171 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function MFileManObserver::NotifyFileManOperation() test. sl@0: //! Return TControl::ECancel during asynchronous Copy process for one file and check that this file wasn't copied. sl@0: //! Uses API elements: NewL(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = 0. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test2.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = 0. sl@0: //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = 0. sl@0: //! 6.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and {TestPath}fileman\Test\ as second parameter, sl@0: //! and aSwitch = 0, sl@0: //! and also set to return TCOntrol::ECancel for Test2.txt in NotifyFileManOperation. sl@0: //! 7.Check that file Test2.txt wasn't copied. sl@0: //! 8.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Copy\* as parameter. sl@0: //! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Test\* as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults File Test2.txt wasn't copied. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir sl@0: COMMAND RFile1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 SetObserver sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2171-001-Copy_command002 sl@0: OUTSTANDING sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2171-001-Open_command003 sl@0: COMMAND RFile1 Close sl@0: COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2171-001-Open_command004 sl@0: COMMAND RFile1 Close sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2171-001-Open_command005 sl@0: COMMAND RFile1 Close sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFile1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2171-001-Delete_command006 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2171-001-Delete_command007 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2171 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2172 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2172 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function MFileManObserver::NotifyFileManEnded() test. sl@0: //! Return TControl::EAbort during synchronous Copy process for one file and check that copy process is aborted. sl@0: //! Uses API elements: NewL(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = 0. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test2.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = 0. sl@0: //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = 0. sl@0: //! 6.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and {TestPath}fileman\Test\ as second parameter, sl@0: //! and aSwitch = 0, sl@0: //! and also set to return TCOntrol::EAbort for Test1.txt in NotifyFileManEnded. sl@0: //! 7.Check that only file Test1.txt was copied. sl@0: //! 8.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Copy\* as parameter. sl@0: //! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Test\* as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Only Test1.txt was copied. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir sl@0: COMMAND RFile1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 SetObserver sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0 sl@0: COMMAND !Error=-3 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2172-001-Copy_command002 sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2172-001-Open_command003 sl@0: COMMAND RFile1 Close sl@0: COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2172-001-Open_command004 sl@0: COMMAND RFile1 Close sl@0: COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2172-001-Open_command005 sl@0: COMMAND RFile1 Close sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2172-001-Delete_command006 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2172-001-Delete_command007 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFile1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2172 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2173 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2173 sl@0: //! @SYMAPI CFileBase sl@0: //! @SYMTestCaseDesc Function MFileManObserver::NotifyFileManEnded() test. sl@0: //! Return TControl::EAbort during synchronous Copy process for one file and check that copy process is aborted. sl@0: //! Uses API elements: NewL(), Copy(), Delete(); sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test1.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = 0. sl@0: //! 4.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test2.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = 0. sl@0: //! 5.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Test3.txt as first parameter, sl@0: //! and {TestPath}fileman\Copy\ as second parameter, sl@0: //! and aSwitch = 0. sl@0: //! 6.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite), sl@0: //! and {TestPath}fileman\Copy\ as first parameter, sl@0: //! and {TestPath}fileman\Test\ as second parameter, sl@0: //! and aSwitch = 0, sl@0: //! and also set to return TCOntrol::EAbort for Test2.txt in NotifyFileManEnded. sl@0: //! 7.Check that only file Test1.txt was copied. sl@0: //! 8.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Copy\* as parameter. sl@0: //! 9.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), sl@0: //! and {TestPath}fileman\Test\* as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Only Test1.txt was copied. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFile RFile1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_CopyDir sl@0: COMMAND RFs1 MkDir PBASE-F32-FileMan-PublicApi-MkDir_TestDir sl@0: COMMAND RFile1 new sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 SetObserver sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test1_txt_0 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test2_txt_0 sl@0: COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-Copy_Test3_txt_0 sl@0: COMMAND !AsyncError=-3 CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2173-001-Copy_command002 sl@0: OUTSTANDING sl@0: COMMAND RFile1 Open PBASE-F32-FileMan-PublicApi-2173-001-Open_command003 sl@0: COMMAND RFile1 Close sl@0: COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2173-001-Open_command004 sl@0: COMMAND RFile1 Close sl@0: COMMAND !Error=-1 RFile1 Open PBASE-F32-FileMan-PublicApi-2173-001-Open_command005 sl@0: COMMAND RFile1 Close sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFile1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2173-001-Delete_command006 sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2173-001-Delete_command007 sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_CopyDir sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir_TestDir sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2173 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-FileMan-PublicApi-2999 sl@0: //! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2999 sl@0: //! @SYMAPI CFileMan sl@0: //! @SYMTestCaseDesc Clenup the copied testdata. sl@0: //! @SYMTestActions 1.Create a RFs session and call it's Connect() function. sl@0: //! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter. sl@0: //! 3.Call CFileMan::Delete() to delete all the files copied . sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Remove the testdata copied from particular directory sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL sl@0: COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-Delete-Uninstall sl@0: COMMAND RFs1 RmDir PBASE-F32-FileMan-PublicApi-RmDir-Uninstall sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-FileMan-PublicApi-2999