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