os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-RFS-Files-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-RFS-Files-PublicApi-RAM
sl@0
    18
//! @SYMScriptTestEnvironment	This test script requires a basic ROM.
sl@0
    19
//! @SYMScriptAuthor 		Sergei Tveritin
sl@0
    20
//! @SYMScriptDescription	The test script contains API files & directories related tests for RFs functions that perform operations on a RAM (not removeable RAM drive).
sl@0
    21
sl@0
    22
LOAD_SUITE	T_Sfsrv
sl@0
    23
sl@0
    24
sl@0
    25
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2001
sl@0
    26
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2001
sl@0
    27
//! @SYMAPI			RFs
sl@0
    28
//! @SYMTestCaseDesc		Functions SetSessionPath() and SessionPath() test.
sl@0
    29
//!				Uses API elements: SetSessionPath(), SessionPath().
sl@0
    30
//! @SYMTestActions		1. Call Connect() method.
sl@0
    31
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
    32
//!				3. Call SessionPath() and check that it returns "<DRIVE>:\base\T_Sfsrv\" where <DRIVE> is a test drive letter.
sl@0
    33
//!				4. Call Close() method.
sl@0
    34
//! @SYMTestStatus		Implemented
sl@0
    35
//! @SYMTestPriority		Critical
sl@0
    36
//! @SYMTestExpectedResults	The path "<DRIVE>:\base\T_Sfsrv\" was successfully set and get where <DRIVE> is a test drive letter.
sl@0
    37
//! @SYMTestType		CIT
sl@0
    38
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
    39
		CREATE_OBJECT	RFs	RFs1
sl@0
    40
		COMMAND		RFs1	new
sl@0
    41
		COMMAND		RFs1	Connect
sl@0
    42
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2001-001-SetSessionPath_command03
sl@0
    43
		COMMAND		RFs1	SessionPath		PBASE-F32-RFS-PublicApi-2001-001-SessionPath_command04
sl@0
    44
		COMMAND		RFs1	Close
sl@0
    45
		COMMAND		RFs1	~		
sl@0
    46
	END_TEST_BLOCK	
sl@0
    47
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2001
sl@0
    48
sl@0
    49
sl@0
    50
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2002
sl@0
    51
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2002
sl@0
    52
//! @SYMAPI			RFs
sl@0
    53
//! @SYMTestCaseDesc		Function RealName() test.
sl@0
    54
//!				Uses API elements: RealName().
sl@0
    55
//! @SYMTestActions		1. Call Connect() method.
sl@0
    56
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
    57
//!				3. Call RealName() and pass "test.txt" as parameter,
sl@0
    58
//!				   and check that it returns "<DRIVE>:\base\T_Sfsrv\test.txt" where <DRIVE> is a test drive letter.
sl@0
    59
//!				4. Call Close() method.
sl@0
    60
//! @SYMTestStatus		Implemented
sl@0
    61
//! @SYMTestPriority		Critical
sl@0
    62
//! @SYMTestExpectedResults	Function RealName() return "<DRIVE>:\base\T_Sfsrv\test.txt" successfully where <DRIVE> is a test drive letter.
sl@0
    63
//! @SYMTestType		CIT
sl@0
    64
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
    65
		CREATE_OBJECT	RFs	RFs1
sl@0
    66
		CREATE_OBJECT	RFile	RFile1
sl@0
    67
		COMMAND		RFs1	new
sl@0
    68
		COMMAND		RFs1	Connect
sl@0
    69
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2002-001-SetSessionPath_command03
sl@0
    70
		COMMAND		RFile1	new
sl@0
    71
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2002-001-Create_command06
sl@0
    72
		COMMAND		RFile1	Close
sl@0
    73
		COMMAND		RFile1	~
sl@0
    74
		COMMAND		RFs1	RealName		PBASE-F32-RFS-PublicApi-2002-001-RealName_command10
sl@0
    75
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2002-001-Delete_command11
sl@0
    76
		COMMAND		RFs1	Close
sl@0
    77
		COMMAND		RFs1	~
sl@0
    78
	END_TEST_BLOCK	
sl@0
    79
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2002
sl@0
    80
sl@0
    81
sl@0
    82
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2003
sl@0
    83
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2003
sl@0
    84
//! @SYMAPI			RFs
sl@0
    85
//! @SYMTestCaseDesc		Function Parse(const TDesC &aName, TParse &aParse) test.
sl@0
    86
//!				Uses API elements: Parse().
sl@0
    87
//! @SYMTestActions		1. Call Connect() method.
sl@0
    88
//!				2. Create a file "test03.txt" in a "<DRIVE>:\base\T_Sfsrv\" directory where <DRIVE> is a test drive letter.
sl@0
    89
//!				3. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
    90
//!				4. Call Parse() and pass "test03.txt" as parameter,
sl@0
    91
//!				   and check that it return "test03" as a name of file, ".txt" as a extension.
sl@0
    92
//!				5. Remove the test03.txt file.
sl@0
    93
//!				6. Call Close() method.
sl@0
    94
//! @SYMTestStatus		Implemented
sl@0
    95
//! @SYMTestPriority		Critical
sl@0
    96
//! @SYMTestExpectedResults	Function Parse() return KErrNone, "test03" and ".txt" returned successfully.
sl@0
    97
//! @SYMTestType		CIT
sl@0
    98
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
    99
		CREATE_OBJECT	RFs	RFs1
sl@0
   100
		CREATE_OBJECT	RFile	RFile1
sl@0
   101
		COMMAND		RFs1	new
sl@0
   102
		COMMAND		RFs1	Connect
sl@0
   103
		COMMAND		RFile1	new
sl@0
   104
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2003-001-Create_command05
sl@0
   105
		COMMAND		RFile1	Close
sl@0
   106
		COMMAND		RFile1	~
sl@0
   107
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2003-001-SetSessionPath_command09
sl@0
   108
		COMMAND		RFs1	Parse		PBASE-F32-RFS-PublicApi-2003-001-Parse_command10
sl@0
   109
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2003-001-Delete_command11
sl@0
   110
		COMMAND		RFs1	Close
sl@0
   111
		COMMAND		RFs1	~
sl@0
   112
	END_TEST_BLOCK	
sl@0
   113
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2003
sl@0
   114
sl@0
   115
sl@0
   116
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2004
sl@0
   117
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2004
sl@0
   118
//! @SYMAPI			RFs
sl@0
   119
//! @SYMTestCaseDesc		Function Parse(const TDesC &aName, const TDesC &aRelated, TParse &aParse) test.
sl@0
   120
//!				Uses API elements: Parse().
sl@0
   121
//! @SYMTestActions		1. Call Connect() method.
sl@0
   122
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
   123
//!				3. Call Parse() and pass "*&test.txt" as parameter,
sl@0
   124
//!				   and check that it return "test" as a name of file, ".txt" as a extension and "*" as a related.
sl@0
   125
//!				4. Call Close() method.
sl@0
   126
//! @SYMTestStatus		Implemented
sl@0
   127
//! @SYMTestPriority		Critical
sl@0
   128
//! @SYMTestExpectedResults	Function Parse() return KErrNone, "test",".txt" and "*" returned successfully.
sl@0
   129
//! @SYMTestType		CIT
sl@0
   130
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
   131
		CREATE_OBJECT	RFs	RFs1
sl@0
   132
		CREATE_OBJECT	RFile	RFile1
sl@0
   133
		COMMAND		RFs1	new
sl@0
   134
		COMMAND		RFs1	Connect
sl@0
   135
		COMMAND		RFile1	new
sl@0
   136
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2004-001-Create_command05
sl@0
   137
		COMMAND		RFile1	Close
sl@0
   138
		COMMAND		RFile1	~
sl@0
   139
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2004-001-SetSessionPath_command09
sl@0
   140
		COMMAND		RFs1	Parse		PBASE-F32-RFS-PublicApi-2004-001-Parse_command10
sl@0
   141
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2004-001-Delete_command11
sl@0
   142
		COMMAND		RFs1	Close
sl@0
   143
		COMMAND		RFs1	~
sl@0
   144
	END_TEST_BLOCK	
sl@0
   145
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2004
sl@0
   146
sl@0
   147
sl@0
   148
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2005
sl@0
   149
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2005
sl@0
   150
//! @SYMAPI			RFs
sl@0
   151
//! @SYMTestCaseDesc		Function MkDir() test.
sl@0
   152
//!				Uses API elements: MkDir(), GetDir().
sl@0
   153
//! @SYMTestActions		1. Call Connect() method.
sl@0
   154
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
   155
//!				3. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\TestDir\" as parameter.
sl@0
   156
//!				4. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter,
sl@0
   157
//!				   and check that list of directory contents has a "TestDir" of directory.
sl@0
   158
//!				5. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\TestDir\" as parameter.
sl@0
   159
//!				6. Call Close() method.
sl@0
   160
//! @SYMTestStatus		Implemented
sl@0
   161
//! @SYMTestPriority		Critical
sl@0
   162
//! @SYMTestExpectedResults	Function MkDir() return KErrNone, "<DRIVE>:\base\T_Sfsrv\TestDir\" directory was successfully created.
sl@0
   163
//! @SYMTestType		CIT
sl@0
   164
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
   165
		CREATE_OBJECT	RFs	RFs1
sl@0
   166
		COMMAND		RFs1	new
sl@0
   167
		COMMAND		RFs1	Connect
sl@0
   168
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2005-001-SetSessionPath_command03
sl@0
   169
		COMMAND		RFs1	MkDir		PBASE-F32-RFS-PublicApi-2005-001-MkDir_command04
sl@0
   170
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2005-001-GetDir_command05
sl@0
   171
		COMMAND		RFs1	RmDir		PBASE-F32-RFS-PublicApi-2005-001-RmDir_command06
sl@0
   172
		COMMAND		RFs1	Close
sl@0
   173
		COMMAND		RFs1	~
sl@0
   174
	END_TEST_BLOCK	
sl@0
   175
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2005
sl@0
   176
sl@0
   177
sl@0
   178
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2006
sl@0
   179
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2006
sl@0
   180
//! @SYMAPI			RFs
sl@0
   181
//! @SYMTestCaseDesc		Function MkDirAll() test.
sl@0
   182
//!				Uses API elements: MkDirAll(), GetDir().
sl@0
   183
//! @SYMTestActions		1. Call Connect() method.
sl@0
   184
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
   185
//!				3. Call MkDirAll() and pass "<DRIVE>:\base\T_Sfsrv\TestDirAll\" as parameter.
sl@0
   186
//!				4. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter,
sl@0
   187
//!				   and check that list of directory contents has a "TestDirAll" of directory.
sl@0
   188
//!				5. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\TestDirAll\" as parameter.
sl@0
   189
//!				6. Call Close() method.
sl@0
   190
//! @SYMTestStatus		Implemented
sl@0
   191
//! @SYMTestPriority		Critical
sl@0
   192
//! @SYMTestExpectedResults	Function MkDirAll() return KErrNone, "<DRIVE>:\base\T_Sfsrv\TestDirAll\" directory was successfully created.
sl@0
   193
//! @SYMTestType		CIT
sl@0
   194
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
   195
		CREATE_OBJECT	RFs	RFs1
sl@0
   196
		COMMAND		RFs1	new
sl@0
   197
		COMMAND		RFs1	Connect
sl@0
   198
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2006-001-SetSessionPath_command03
sl@0
   199
		COMMAND		RFs1	MkDirAll		PBASE-F32-RFS-PublicApi-2006-001-MkDirAll_command04
sl@0
   200
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2006-001-GetDir_command05
sl@0
   201
		COMMAND		RFs1	RmDir		PBASE-F32-RFS-PublicApi-2006-001-RmDir_command06
sl@0
   202
		COMMAND		RFs1	Close
sl@0
   203
		COMMAND		RFs1	~
sl@0
   204
	END_TEST_BLOCK	
sl@0
   205
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2006
sl@0
   206
sl@0
   207
sl@0
   208
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2007
sl@0
   209
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2007
sl@0
   210
//! @SYMAPI			RFs
sl@0
   211
//! @SYMTestCaseDesc		Function RmDir() test.
sl@0
   212
//!				Uses API elements: RmDir(), GetDir().
sl@0
   213
//! @SYMTestActions		1. Call Connect() method.
sl@0
   214
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
   215
//!				3. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\TestDir\" as parameter.
sl@0
   216
//!				4. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\TestDir\" as parameter.
sl@0
   217
//!				5. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter,
sl@0
   218
//!				   and check that list of directory contents hasn't a "TestDir" of directory.
sl@0
   219
//!				6. Call Close() method.
sl@0
   220
//! @SYMTestStatus		Implemented
sl@0
   221
//! @SYMTestPriority		Critical
sl@0
   222
//! @SYMTestExpectedResults	Function RmDir() return KErrNone, "<DRIVE>:\base\T_Sfsrv\TestDir\" and "<DRIVE>:\base\T_Sfsrv\TestDirAll\" directories was successfully removed.
sl@0
   223
//! @SYMTestType		CIT
sl@0
   224
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
   225
		CREATE_OBJECT	RFs	RFs1
sl@0
   226
		COMMAND		RFs1	new
sl@0
   227
		COMMAND		RFs1	Connect
sl@0
   228
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2007-001-SetSessionPath_command03
sl@0
   229
		COMMAND		RFs1	MkDir		PBASE-F32-RFS-PublicApi-2007-001-MkDir_command04
sl@0
   230
		COMMAND		RFs1	RmDir		PBASE-F32-RFS-PublicApi-2007-001-RmDir_command05
sl@0
   231
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2007-001-GetDir_command06
sl@0
   232
		COMMAND		RFs1	Close
sl@0
   233
		COMMAND		RFs1	~
sl@0
   234
	END_TEST_BLOCK	
sl@0
   235
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2007
sl@0
   236
sl@0
   237
sl@0
   238
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2008
sl@0
   239
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2008
sl@0
   240
//! @SYMAPI			RFs
sl@0
   241
//! @SYMTestCaseDesc		Function GetDir(const TDesC &aName, const TUidType &anEntryUid, TUint anEntrySortKey, CDir *&aFileList) test,
sl@0
   242
//!				with a filtered list of a directory's contents by UID type.
sl@0
   243
//!				Uses API elements: GetDir().
sl@0
   244
//! @SYMTestActions		1. Call Connect() method.
sl@0
   245
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
   246
//!				3. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter,
sl@0
   247
//!				   and and setting up parameter "_uidtype" as "0" for including UID type in filtered list.
sl@0
   248
//!				4. Call Close() method.
sl@0
   249
//! @SYMTestStatus		Implemented
sl@0
   250
//! @SYMTestPriority		Critical
sl@0
   251
//! @SYMTestExpectedResults	Filtered list of a directory's contents by UID type has been returned successfully.
sl@0
   252
//! @SYMTestType		CIT
sl@0
   253
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
   254
		CREATE_OBJECT	RFs	RFs1
sl@0
   255
		COMMAND		RFs1	new
sl@0
   256
		COMMAND		RFs1	Connect
sl@0
   257
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2008-001-SetSessionPath_command03
sl@0
   258
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2008-001-GetDir_command04
sl@0
   259
		COMMAND		RFs1	Close
sl@0
   260
		COMMAND		RFs1	~
sl@0
   261
	END_TEST_BLOCK	
sl@0
   262
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2008
sl@0
   263
sl@0
   264
sl@0
   265
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2009
sl@0
   266
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2009
sl@0
   267
//! @SYMAPI			RFs
sl@0
   268
//! @SYMTestCaseDesc		Function GetDir(const TDesC &aName, TUint anEntryAttMask, TUint anEntrySortKey, CDir *&anEntryList, CDir *&aDirList) test,
sl@0
   269
//!				with a filtered list of the directory and file entries contained in a directory.
sl@0
   270
//!				Uses API elements: GetDir().
sl@0
   271
//! @SYMTestActions		1. Call Connect() method.
sl@0
   272
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
   273
//!				3. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter,
sl@0
   274
//!				   and setting up parameter "_isdirlist" as TRUE for filtered list of directory entries only.
sl@0
   275
//!				4. Call Close() method.
sl@0
   276
//! @SYMTestStatus		Implemented
sl@0
   277
//! @SYMTestPriority		Critical
sl@0
   278
//! @SYMTestExpectedResults	The list of a directory's and files has been returned successfully.
sl@0
   279
//! @SYMTestType		CIT
sl@0
   280
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
   281
		CREATE_OBJECT	RFs	RFs1
sl@0
   282
		COMMAND		RFs1	new
sl@0
   283
		COMMAND		RFs1	Connect
sl@0
   284
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2009-001-SetSessionPath_command03
sl@0
   285
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2009-001-GetDir_command04
sl@0
   286
		COMMAND		RFs1	Close
sl@0
   287
		COMMAND		RFs1	~
sl@0
   288
	END_TEST_BLOCK	
sl@0
   289
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2009
sl@0
   290
sl@0
   291
sl@0
   292
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2010
sl@0
   293
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2010
sl@0
   294
//! @SYMAPI			RFs
sl@0
   295
//! @SYMTestCaseDesc		Function Replace() test.
sl@0
   296
//!				Uses API elements: Replace(), GetDir().
sl@0
   297
//! @SYMTestActions		1. Call Connect() method.
sl@0
   298
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
   299
//!				3. Call Replace() and pass "testing.txt" as parameter as old name and "replace.txt" as parameter as a new name of file.
sl@0
   300
//!				4. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter,
sl@0
   301
//!				   and check that list of directory contents has a "replace.txt" of file.
sl@0
   302
//!				5. Call Close() method.
sl@0
   303
//! @SYMTestStatus		Implemented
sl@0
   304
//! @SYMTestPriority		Critical
sl@0
   305
//! @SYMTestExpectedResults	The file "testing.txt" replaced to "replace.txt" successfully.
sl@0
   306
//! @SYMTestType		CIT
sl@0
   307
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
   308
		CREATE_OBJECT	RFs	RFs1
sl@0
   309
		CREATE_OBJECT	RFile	RFile1
sl@0
   310
		COMMAND		RFs1	new
sl@0
   311
		COMMAND		RFs1	Connect
sl@0
   312
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2010-001-SetSessionPath_command03
sl@0
   313
		COMMAND		RFile1	new
sl@0
   314
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2010-001-Create_command06
sl@0
   315
		COMMAND		RFile1	Close
sl@0
   316
		COMMAND		RFile1	~
sl@0
   317
		COMMAND		RFs1	Replace		PBASE-F32-RFS-PublicApi-2010-001-Replace_command10
sl@0
   318
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2010-001-GetDir_command11
sl@0
   319
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2010-001-Delete_command12
sl@0
   320
		COMMAND		RFs1	Close
sl@0
   321
		COMMAND		RFs1	~
sl@0
   322
	END_TEST_BLOCK	
sl@0
   323
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2010
sl@0
   324
sl@0
   325
sl@0
   326
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2011
sl@0
   327
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2011
sl@0
   328
//! @SYMAPI			RFs
sl@0
   329
//! @SYMTestCaseDesc		Function Rename() test.
sl@0
   330
//!				Uses API elements: Rename(), GetDir().
sl@0
   331
//! @SYMTestActions		1. Call Connect() method.
sl@0
   332
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
   333
//!				3. Call Rename() and pass "testing.txt" as parameter as old name and "rename.txt" as parameter as a new name of file.
sl@0
   334
//!				4. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter,
sl@0
   335
//!				   and check that list of directory contents has a "rename.txt" of file.
sl@0
   336
//!				5. Call Close() method.
sl@0
   337
//! @SYMTestStatus		Implemented
sl@0
   338
//! @SYMTestPriority		Critical
sl@0
   339
//! @SYMTestExpectedResults	The file "testing.txt" renamed to "rename.txt" successfully.
sl@0
   340
//! @SYMTestType		CIT
sl@0
   341
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
   342
		CREATE_OBJECT	RFs	RFs1
sl@0
   343
		CREATE_OBJECT	RFile	RFile1
sl@0
   344
		COMMAND		RFs1	new
sl@0
   345
		COMMAND		RFs1	Connect
sl@0
   346
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2011-001-SetSessionPath_command03
sl@0
   347
		COMMAND		RFile1	new
sl@0
   348
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2011-001-Create_command06
sl@0
   349
		COMMAND		RFile1	Close
sl@0
   350
		COMMAND		RFile1	~
sl@0
   351
		COMMAND		RFs1	Rename		PBASE-F32-RFS-PublicApi-2011-001-Rename_command10
sl@0
   352
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2011-001-GetDir_command11
sl@0
   353
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2011-001-Delete_command12
sl@0
   354
		COMMAND		RFs1	Close
sl@0
   355
		COMMAND		RFs1	~
sl@0
   356
	END_TEST_BLOCK	
sl@0
   357
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2011
sl@0
   358
sl@0
   359
sl@0
   360
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2012
sl@0
   361
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2012
sl@0
   362
//! @SYMAPI			RFs
sl@0
   363
//! @SYMTestCaseDesc		Function Delete() test.
sl@0
   364
//!				Uses API elements: Delete(), GetDir().
sl@0
   365
//! @SYMTestActions		1. Call Connect() method.
sl@0
   366
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
   367
//!				3. Call Delete() and pass "testing.txt" as parameter.
sl@0
   368
//!				4. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter,
sl@0
   369
//!				   and check that list of directory contents hasn't a "testing.txt" of file.
sl@0
   370
//!				5. Call Close() method.
sl@0
   371
//! @SYMTestStatus		Implemented
sl@0
   372
//! @SYMTestPriority		Critical
sl@0
   373
//! @SYMTestExpectedResults	The file "testing.txt" was successfully removed.
sl@0
   374
//! @SYMTestType		CIT
sl@0
   375
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
   376
		CREATE_OBJECT	RFs	RFs1
sl@0
   377
		CREATE_OBJECT	RFile	RFile1
sl@0
   378
		COMMAND		RFs1	new
sl@0
   379
		COMMAND		RFs1	Connect
sl@0
   380
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2012-001-SetSessionPath_command03
sl@0
   381
		COMMAND		RFile1	new
sl@0
   382
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2012-001-Create_command06
sl@0
   383
		COMMAND		RFile1	Close
sl@0
   384
		COMMAND		RFile1	~
sl@0
   385
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2012-001-Delete_command10
sl@0
   386
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2012-001-GetDir_command11
sl@0
   387
		COMMAND		RFs1	Close
sl@0
   388
		COMMAND		RFs1	~
sl@0
   389
	END_TEST_BLOCK	
sl@0
   390
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2012
sl@0
   391
sl@0
   392
sl@0
   393
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2013
sl@0
   394
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2013
sl@0
   395
//! @SYMAPI			RFs
sl@0
   396
//! @SYMTestCaseDesc		Functions Att() and SetAtt() test.
sl@0
   397
//!				Uses API elements: SetAtt(), Att().
sl@0
   398
//! @SYMTestActions		1. Call Connect() method.
sl@0
   399
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
   400
//!				3. Call SetAtt() and pass "KEntryAttReadOnly" of attribute as parameter for "test.txt" of file.
sl@0
   401
//!				4. Call Att() and pass "test.txt" as parameter,
sl@0
   402
//!				   and check that the "test.txt" file has a "KEntryAttReadOnly" of attribute.
sl@0
   403
//!				5. Call SetAtt() to clear "KEntryAttReadOnly" attribute for the "test.txt" file.
sl@0
   404
//!				6. Call Close() method.
sl@0
   405
//! @SYMTestStatus		Implemented
sl@0
   406
//! @SYMTestPriority		Critical
sl@0
   407
//! @SYMTestExpectedResults	The attribute "KEntryAttReadOnly" was successfully set and get.
sl@0
   408
//! @SYMTestType		CIT
sl@0
   409
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
   410
		CREATE_OBJECT	RFs	RFs1
sl@0
   411
		CREATE_OBJECT	RFile	RFile1
sl@0
   412
		COMMAND		RFs1	new
sl@0
   413
		COMMAND		RFs1	Connect
sl@0
   414
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2013-001-SetSessionPath_command03
sl@0
   415
		COMMAND		RFile1	new
sl@0
   416
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2013-001-Create_command06
sl@0
   417
		COMMAND		RFile1	Close
sl@0
   418
		COMMAND		RFile1	~
sl@0
   419
		COMMAND		RFs1	SetAtt		PBASE-F32-RFS-PublicApi-2013-001-SetAtt_command10
sl@0
   420
		COMMAND		RFs1	Att		PBASE-F32-RFS-PublicApi-2013-001-Att_command11
sl@0
   421
		COMMAND		RFs1	SetAtt		PBASE-F32-RFS-PublicApi-2013-001-SetAtt_command12
sl@0
   422
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2013-001-Delete_command13
sl@0
   423
		COMMAND		RFs1	Close
sl@0
   424
		COMMAND		RFs1	~
sl@0
   425
	END_TEST_BLOCK	
sl@0
   426
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2013
sl@0
   427
sl@0
   428
sl@0
   429
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2014
sl@0
   430
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2014
sl@0
   431
//! @SYMAPI			RFs
sl@0
   432
//! @SYMTestCaseDesc		Functions SetModified() and Modified() test.
sl@0
   433
//!				Uses API elements: SetModified(), Modified().
sl@0
   434
//! @SYMTestActions		1. Call Connect() method.
sl@0
   435
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
   436
//!				3. Call SetModified() and pass "20060101:" as parameter for "test.txt" of file.
sl@0
   437
//!				4. Call Modified() and pass "test.txt" as parameter,
sl@0
   438
//!				   and check that the "test.txt" file has a "20060101:" as last modification date.
sl@0
   439
//!				5. Call Close() method.
sl@0
   440
//! @SYMTestStatus		Implemented
sl@0
   441
//! @SYMTestPriority		Critical
sl@0
   442
//! @SYMTestExpectedResults	The last modification date and time of a file was successfully set and get.
sl@0
   443
//! @SYMTestType		CIT
sl@0
   444
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
   445
		CREATE_OBJECT	RFs	RFs1
sl@0
   446
		CREATE_OBJECT	RFile	RFile1
sl@0
   447
		COMMAND		RFs1	new
sl@0
   448
		COMMAND		RFs1	Connect
sl@0
   449
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2014-001-SetSessionPath_command03
sl@0
   450
		COMMAND		RFile1	new
sl@0
   451
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2014-001-Create_command06
sl@0
   452
		COMMAND		RFile1	Close
sl@0
   453
		COMMAND		RFile1	~
sl@0
   454
		COMMAND		RFs1	SetModified		PBASE-F32-RFS-PublicApi-2014-001-SetModified_command10
sl@0
   455
		COMMAND		RFs1	Modified		PBASE-F32-RFS-PublicApi-2014-001-Modified_command11
sl@0
   456
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2014-001-Delete_command12
sl@0
   457
		COMMAND		RFs1	Close
sl@0
   458
		COMMAND		RFs1	~
sl@0
   459
	END_TEST_BLOCK	
sl@0
   460
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2014
sl@0
   461
sl@0
   462
sl@0
   463
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2015
sl@0
   464
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2015
sl@0
   465
//! @SYMAPI			RFs
sl@0
   466
//! @SYMTestCaseDesc		Functions SetEntry() and Entry() test.
sl@0
   467
//!				Uses API elements: SetEntry(), Entry().
sl@0
   468
//! @SYMTestActions		1. Call Connect() method.
sl@0
   469
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
   470
//!				3. Call SetEntry()  and pass "20060101:" and "KEntryAttReadOnly" as parameter for "test.txt" of file.
sl@0
   471
//!				4. Call Entry() and pass "test.txt" as parameter,
sl@0
   472
//!				   and check that the "test.txt" file has a "20060101:" as last modification date,
sl@0
   473
//!				   and "KEntryAttReadOnly" as attribute.
sl@0
   474
//!				5. Call SetEntry() to clear "KEntryAttReadOnly" attribute for the "test.txt" file.
sl@0
   475
//!				6. Call Close() method.
sl@0
   476
//! @SYMTestStatus		Implemented
sl@0
   477
//! @SYMTestPriority		Critical
sl@0
   478
//! @SYMTestExpectedResults	The last modification date and attribute of file was successfully set and get.
sl@0
   479
//! @SYMTestType		CIT
sl@0
   480
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
   481
		CREATE_OBJECT	RFile	RFile1
sl@0
   482
		CREATE_OBJECT	RFs	RFs1
sl@0
   483
		COMMAND		RFs1	new
sl@0
   484
		COMMAND		RFs1	Connect
sl@0
   485
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2015-001-SetSessionPath_command03
sl@0
   486
		COMMAND		RFile1	new
sl@0
   487
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2015-001-Create_command06
sl@0
   488
		COMMAND		RFile1	Close
sl@0
   489
		COMMAND		RFile1	~
sl@0
   490
		COMMAND		RFs1	SetEntry		PBASE-F32-RFS-PublicApi-2015-001-SetEntry_command10
sl@0
   491
		COMMAND		RFs1	Entry		PBASE-F32-RFS-PublicApi-2015-001-Entry_command11
sl@0
   492
		COMMAND		RFs1	SetEntry		PBASE-F32-RFS-PublicApi-2015-001-SetEntry_command12
sl@0
   493
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2015-001-Delete_command13
sl@0
   494
		COMMAND		RFs1	Close
sl@0
   495
		COMMAND		RFs1	~
sl@0
   496
	END_TEST_BLOCK	
sl@0
   497
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2015
sl@0
   498
sl@0
   499
sl@0
   500
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2016
sl@0
   501
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2016
sl@0
   502
//! @SYMAPI			RFs
sl@0
   503
//! @SYMTestCaseDesc		Function ReadFileSection() test.
sl@0
   504
//!				Uses API elements: ReadFileSection().
sl@0
   505
//! @SYMTestActions		1. Call Connect() method.
sl@0
   506
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
   507
//!				3. Call ReadFileSection()  and pass "test.txt" as parameter, offset = 0, length = 10, buffer with a length = 10.
sl@0
   508
//!				4. Call Close() method.
sl@0
   509
//! @SYMTestStatus		Implemented
sl@0
   510
//! @SYMTestPriority		Critical
sl@0
   511
//! @SYMTestExpectedResults	The data from a file "test.txt" returned successfully and not NULL.
sl@0
   512
//! @SYMTestType		CIT
sl@0
   513
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
   514
		CREATE_OBJECT	RFs	RFs1
sl@0
   515
		CREATE_OBJECT	RFile	RFile1
sl@0
   516
		COMMAND		RFs1	new
sl@0
   517
		COMMAND		RFs1	Connect
sl@0
   518
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2016-001-SetSessionPath_command03
sl@0
   519
		COMMAND		RFile1	new
sl@0
   520
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2016-001-Create_command06
sl@0
   521
		COMMAND		RFile1	Write		PBASE-F32-RFS-PublicApi-2016-001-Write_command07
sl@0
   522
		COMMAND		RFile1	Close
sl@0
   523
		COMMAND		RFile1	~
sl@0
   524
		COMMAND		RFs1	ReadFileSection		PBASE-F32-RFS-PublicApi-2016-001-ReadFileSection_command11
sl@0
   525
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2016-001-Delete_command12
sl@0
   526
		COMMAND		RFs1	Close
sl@0
   527
		COMMAND		RFs1	~
sl@0
   528
	END_TEST_BLOCK	
sl@0
   529
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2016
sl@0
   530
sl@0
   531
sl@0
   532
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2017
sl@0
   533
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2017
sl@0
   534
//! @SYMAPI			RFs
sl@0
   535
//! @SYMTestCaseDesc		Function IsFileOpen() test.
sl@0
   536
//!				Uses API elements: IsFileOpen().
sl@0
   537
//! @SYMTestActions		1. Call Connect() method.
sl@0
   538
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
   539
//!				3. Call IsFileOpen()  and pass "test.txt" as parameter and that it is not open.
sl@0
   540
//!				4. Call Close() method.
sl@0
   541
//! @SYMTestStatus		Implemented
sl@0
   542
//! @SYMTestPriority		Critical
sl@0
   543
//! @SYMTestExpectedResults	The file "test.txt" is closed.
sl@0
   544
//! @SYMTestType		CIT
sl@0
   545
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
   546
		CREATE_OBJECT	RFs	RFs1
sl@0
   547
		CREATE_OBJECT	RFile	RFile1
sl@0
   548
		COMMAND		RFs1	new
sl@0
   549
		COMMAND		RFs1	Connect
sl@0
   550
		COMMAND		RFile1	new
sl@0
   551
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2017-001-Create_command05
sl@0
   552
		COMMAND		RFile1	Close
sl@0
   553
		COMMAND		RFile1	~
sl@0
   554
		COMMAND		RFs1	IsFileOpen		PBASE-F32-RFS-PublicApi-2017-001-IsFileOpen_command09
sl@0
   555
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2017-001-Delete_command10
sl@0
   556
		COMMAND		RFs1	Close
sl@0
   557
		COMMAND		RFs1	~
sl@0
   558
	END_TEST_BLOCK	
sl@0
   559
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2017
sl@0
   560
sl@0
   561
sl@0
   562
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2018
sl@0
   563
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2018
sl@0
   564
//! @SYMAPI			RFs
sl@0
   565
//! @SYMTestCaseDesc		Function GetShortName() test.
sl@0
   566
//!				Uses API elements: GetShortName().
sl@0
   567
//! @SYMTestActions		1. Call Connect() method.
sl@0
   568
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
   569
//!				3. Call GetShortName() and pass "<DRIVE>:\base\T_Sfsrv\test.txt" as parameter,
sl@0
   570
//!				   and check that it return "test.txt".
sl@0
   571
//!				4. Call Close() method.
sl@0
   572
//! @SYMTestStatus		Implemented
sl@0
   573
//! @SYMTestPriority		Critical
sl@0
   574
//! @SYMTestExpectedResults	The short name "test.txt" return successfully.
sl@0
   575
//! @SYMTestType		CIT
sl@0
   576
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
   577
		CREATE_OBJECT	RFs	RFs1
sl@0
   578
		CREATE_OBJECT	RFile	RFile1
sl@0
   579
		COMMAND		RFs1	new
sl@0
   580
		COMMAND		RFs1	Connect
sl@0
   581
		COMMAND		RFile1	new
sl@0
   582
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2018-001-Create_command05
sl@0
   583
		COMMAND		RFile1	Close
sl@0
   584
		COMMAND		RFile1	~
sl@0
   585
		COMMAND		RFs1	GetShortName		PBASE-F32-RFS-PublicApi-2018-001-GetShortName_command09
sl@0
   586
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2018-001-Delete_command10
sl@0
   587
		COMMAND		RFs1	Close
sl@0
   588
		COMMAND		RFs1	~
sl@0
   589
	END_TEST_BLOCK	
sl@0
   590
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2018
sl@0
   591
sl@0
   592
sl@0
   593
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2019
sl@0
   594
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2019
sl@0
   595
//! @SYMAPI			RFs
sl@0
   596
//! @SYMTestCaseDesc		Function GetLongName() test.
sl@0
   597
//!				Uses API elements: GetLongName().
sl@0
   598
//! @SYMTestActions		1. Call Connect() method.
sl@0
   599
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
   600
//!				3. Call GetLongName() and pass "<DRIVE>:\base\T_Sfsrv\test.txt" as parameter,
sl@0
   601
//!				   and check that it return "test.txt".
sl@0
   602
//!				4. Call Close() method.
sl@0
   603
//! @SYMTestStatus		Implemented
sl@0
   604
//! @SYMTestPriority		Critical
sl@0
   605
//! @SYMTestExpectedResults	The long name "test.txt" return successfully.
sl@0
   606
//! @SYMTestType		CIT
sl@0
   607
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
   608
		CREATE_OBJECT	RFs	RFs1
sl@0
   609
		CREATE_OBJECT	RFile	RFile1
sl@0
   610
		COMMAND		RFs1	new
sl@0
   611
		COMMAND		RFs1	Connect
sl@0
   612
		COMMAND		RFile1	new
sl@0
   613
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2019-001-Create_command05
sl@0
   614
		COMMAND		RFile1	Close
sl@0
   615
		COMMAND		RFile1	~
sl@0
   616
		COMMAND		RFs1	GetLongName		PBASE-F32-RFS-PublicApi-2019-001-GetLongName_command09
sl@0
   617
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2019-001-Delete_command10
sl@0
   618
		COMMAND		RFs1	Close
sl@0
   619
		COMMAND		RFs1	~
sl@0
   620
	END_TEST_BLOCK	
sl@0
   621
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2019
sl@0
   622
sl@0
   623
sl@0
   624
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2020
sl@0
   625
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2020
sl@0
   626
//! @SYMAPI			RFs
sl@0
   627
//! @SYMTestCaseDesc		Function IsFileInRom() test.
sl@0
   628
//!				Uses API elements: IsFileInRom().
sl@0
   629
//! @SYMTestActions		1. Call Connect() method.
sl@0
   630
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
   631
//!				3. Call IsFileInRom() and pass "test.txt" as parameter and check that faile is not in ROM.
sl@0
   632
//!				4. Call Close() method.
sl@0
   633
//! @SYMTestStatus		Implemented
sl@0
   634
//! @SYMTestPriority		Critical
sl@0
   635
//! @SYMTestExpectedResults	The file "test.txt" is not in ROM.
sl@0
   636
//! @SYMTestType		CIT
sl@0
   637
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
   638
		CREATE_OBJECT	RFs	RFs1
sl@0
   639
		CREATE_OBJECT	RFile	RFile1
sl@0
   640
		COMMAND		RFs1	new
sl@0
   641
		COMMAND		RFs1	Connect
sl@0
   642
		COMMAND		RFile1	new
sl@0
   643
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2020-001-Create_command05
sl@0
   644
		COMMAND		RFile1	Close
sl@0
   645
		COMMAND		RFile1	~
sl@0
   646
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2020-001-SetSessionPath_command09
sl@0
   647
		COMMAND		RFs1	IsFileInRom		PBASE-F32-RFS-PublicApi-2020-001-IsFileInRom_command10
sl@0
   648
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2020-001-Delete_command11
sl@0
   649
		COMMAND		RFs1	Close
sl@0
   650
		COMMAND		RFs1	~
sl@0
   651
	END_TEST_BLOCK	
sl@0
   652
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2020
sl@0
   653
sl@0
   654
sl@0
   655
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2021
sl@0
   656
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2021
sl@0
   657
//! @SYMAPI			RFs
sl@0
   658
//! @SYMTestCaseDesc		Function IsValidName(const TDesC &anEntryName) test.
sl@0
   659
//!				Uses API elements: IsValidName().
sl@0
   660
//! @SYMTestActions		1. Call Connect() method.
sl@0
   661
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
   662
//!				3. Call IsValidName() and pass "test.txt" as parameter and check that is valid name.
sl@0
   663
//!				4. Call Close() method.
sl@0
   664
//! @SYMTestStatus		Implemented
sl@0
   665
//! @SYMTestPriority		Critical
sl@0
   666
//! @SYMTestExpectedResults	The filename "test.txt" is valid.
sl@0
   667
//! @SYMTestType		CIT
sl@0
   668
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
   669
		CREATE_OBJECT	RFs	RFs1
sl@0
   670
		COMMAND		RFs1	new
sl@0
   671
		COMMAND		RFs1	Connect
sl@0
   672
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2021-001-SetSessionPath_command03
sl@0
   673
		COMMAND		RFs1	IsValidName		PBASE-F32-RFS-PublicApi-2021-001-IsValidName_command04
sl@0
   674
		COMMAND		RFs1	Close
sl@0
   675
		COMMAND		RFs1	~
sl@0
   676
	END_TEST_BLOCK	
sl@0
   677
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2021
sl@0
   678
sl@0
   679
sl@0
   680
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2022
sl@0
   681
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2022
sl@0
   682
//! @SYMAPI			RFs
sl@0
   683
//! @SYMTestCaseDesc		Function IsValidName(const TDesC &aFileName, TText &aBadChar) test with a illegal character within a filename.
sl@0
   684
//!				Uses API elements: IsValidName().
sl@0
   685
//! @SYMTestActions		1. Call Connect() method.
sl@0
   686
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
   687
//!				3. Call IsValidName() and pass "*&^test.txt" as parameter and check that isn't valid name.
sl@0
   688
//!				4. Call Close() method.
sl@0
   689
//! @SYMTestStatus		Implemented
sl@0
   690
//! @SYMTestPriority		Critical
sl@0
   691
//! @SYMTestExpectedResults	The filename isn't valid and illegal characters "*" returned properly.
sl@0
   692
//! @SYMTestType		CIT
sl@0
   693
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
   694
		CREATE_OBJECT	RFs	RFs1
sl@0
   695
		COMMAND		RFs1	new
sl@0
   696
		COMMAND		RFs1	Connect
sl@0
   697
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2022-001-SetSessionPath_command03
sl@0
   698
		COMMAND		RFs1	IsValidName		PBASE-F32-RFS-PublicApi-2022-001-IsValidName_command04
sl@0
   699
		COMMAND		RFs1	Close
sl@0
   700
		COMMAND		RFs1	~
sl@0
   701
	END_TEST_BLOCK	
sl@0
   702
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2022
sl@0
   703
sl@0
   704
sl@0
   705
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2023
sl@0
   706
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2023
sl@0
   707
//! @SYMAPI			RFs
sl@0
   708
//! @SYMTestCaseDesc		Function SetSessionToPrivate() test.
sl@0
   709
//!				Uses API elements: SetSessionToPrivate().
sl@0
   710
//! @SYMTestActions		1. Call Connect() method.
sl@0
   711
//!				2. Call SetSessionToPrivate() and pass a drive as parameter.
sl@0
   712
//!				3. Call SessionPath() method and check that it return "<DRIVE>:\Private\200041C1\" where <DRIVE> is a letter of the drive and
sl@0
   713
//!				   "200041C1" must be the same number which is declared in mmp file as UID.
sl@0
   714
//!				4. Call Close() method.
sl@0
   715
//! @SYMTestStatus		Implemented
sl@0
   716
//! @SYMTestPriority		Critical
sl@0
   717
//! @SYMTestExpectedResults	SessionPath() returns KErrNone and the correct private path
sl@0
   718
//! @SYMTestType		CIT
sl@0
   719
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
   720
		CREATE_OBJECT	RFs	RFs1
sl@0
   721
		COMMAND		RFs1	new
sl@0
   722
		COMMAND		RFs1	Connect
sl@0
   723
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2023-001-SetSessionPath_command03
sl@0
   724
		COMMAND		RFs1	SetSessionToPrivate		PBASE-F32-RFS-PublicApi-2023-001-SetSessionToPrivate_command04
sl@0
   725
		COMMAND		RFs1	SessionPath		PBASE-F32-RFS-PublicApi-2023-001-SessionPath_command05
sl@0
   726
		COMMAND		RFs1	Close
sl@0
   727
		COMMAND		RFs1	~
sl@0
   728
	END_TEST_BLOCK	
sl@0
   729
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2023
sl@0
   730
sl@0
   731
sl@0
   732
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2024
sl@0
   733
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2024
sl@0
   734
//! @SYMAPI			RFs
sl@0
   735
//! @SYMTestCaseDesc		Function CreatePrivatePath() and PrivatePath() test.
sl@0
   736
//!				Uses API elements: CreatePrivatePath(), PrivatePath().
sl@0
   737
//! @SYMTestActions		1. Call Connect() method.
sl@0
   738
//!				2. Call CreatePrivatePath() and pass a drive as parameter.
sl@0
   739
//!				3. Call PrivatePath() and check that it returns "\Private\200041C1\"
sl@0
   740
//!				   where "200041C1" must be the same number which is declared in mmp file as UID.
sl@0
   741
//!				4. Call Close() method.
sl@0
   742
//! @SYMTestStatus		Implemented
sl@0
   743
//! @SYMTestPriority		Critical
sl@0
   744
//! @SYMTestExpectedResults	The private path for the drive driver created and returned successfully.
sl@0
   745
//! @SYMTestType		CIT
sl@0
   746
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
   747
		CREATE_OBJECT	RFs	RFs1
sl@0
   748
		COMMAND		RFs1	new
sl@0
   749
		COMMAND		RFs1	Connect
sl@0
   750
		COMMAND		RFs1	CreatePrivatePath		PBASE-F32-RFS-PublicApi-2024-001-CreatePrivatePath_command03
sl@0
   751
		COMMAND		RFs1	PrivatePath		PBASE-F32-RFS-PublicApi-2024-001-PrivatePath_command04
sl@0
   752
		COMMAND		RFs1	RmDir		PBASE-F32-RFS-PublicApi-2024-001-RmDir_command05
sl@0
   753
		COMMAND		RFs1	Close
sl@0
   754
		COMMAND		RFs1	~
sl@0
   755
	END_TEST_BLOCK	
sl@0
   756
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2024
sl@0
   757
sl@0
   758
sl@0
   759
///////////////////////////////
sl@0
   760
//
sl@0
   761
// REALNAME
sl@0
   762
//
sl@0
   763
///////////////////////////////
sl@0
   764
sl@0
   765
sl@0
   766
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2026
sl@0
   767
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2026
sl@0
   768
//! @SYMAPI			RFs
sl@0
   769
//! @SYMCreationDate		5/10/2006
sl@0
   770
//! @SYMTestCaseDesc		Functions RealName() test where file does not exist.
sl@0
   771
//!				Uses API elements: RealName().
sl@0
   772
//! @SYMTestActions		1. Call Connect() method.
sl@0
   773
//!				2. Call RealName() and pass "<DRIVE>:\base\T_Sfsrv\none.txt" as parameter where <DRIVE> is a test drive letter.
sl@0
   774
//!				3. Call Close() method.
sl@0
   775
//! @SYMTestStatus		Implemented
sl@0
   776
//! @SYMTestPriority		Critical
sl@0
   777
//! @SYMTestExpectedResults	Function RealName() return KErrNone.
sl@0
   778
//! @SYMTestType		CIT
sl@0
   779
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
   780
		CREATE_OBJECT	RFs	RFs1
sl@0
   781
		COMMAND		RFs1	new
sl@0
   782
		COMMAND		RFs1	Connect
sl@0
   783
		COMMAND		RFs1	RealName		PBASE-F32-RFS-PublicApi-2026-001-RealName_command03
sl@0
   784
		COMMAND		RFs1	Close
sl@0
   785
		COMMAND		RFs1	~
sl@0
   786
	END_TEST_BLOCK	
sl@0
   787
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2026
sl@0
   788
sl@0
   789
sl@0
   790
sl@0
   791
///////////////////////////////
sl@0
   792
//
sl@0
   793
// SETSESSIONPATH
sl@0
   794
//
sl@0
   795
///////////////////////////////
sl@0
   796
sl@0
   797
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2027
sl@0
   798
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2027
sl@0
   799
//! @SYMAPI			RFs
sl@0
   800
//! @SYMCreationDate		5/10/2006
sl@0
   801
//! @SYMTestCaseDesc		Functions SetSessionPath() test where file does not exist.
sl@0
   802
//!				Uses API elements: SetSessionPath().
sl@0
   803
//! @SYMTestActions		1. Call Connect() method.
sl@0
   804
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\NoneDir\" as parameter where <DRIVE> is a test drive letter.
sl@0
   805
//!				3. Call Close() method.
sl@0
   806
//! @SYMTestStatus		Implemented
sl@0
   807
//! @SYMTestPriority		Critical
sl@0
   808
//! @SYMTestExpectedResults	Function SetSessionPath() return KErrNone.
sl@0
   809
//! @SYMTestType		CIT
sl@0
   810
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
   811
		CREATE_OBJECT	RFs	RFs1
sl@0
   812
		COMMAND		RFs1	new
sl@0
   813
		COMMAND		RFs1	Connect
sl@0
   814
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2027-001-SetSessionPath_command03
sl@0
   815
		COMMAND		RFs1	Close
sl@0
   816
		COMMAND		RFs1	~
sl@0
   817
	END_TEST_BLOCK	
sl@0
   818
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2027
sl@0
   819
sl@0
   820
sl@0
   821
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2028
sl@0
   822
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2028
sl@0
   823
//! @SYMAPI			RFs
sl@0
   824
//! @SYMCreationDate		5/10/2006
sl@0
   825
//! @SYMTestCaseDesc		Functions SetSessionPath() negative test for session path is invalid.
sl@0
   826
//!				Uses API elements: SetSessionPath().
sl@0
   827
//! @SYMTestActions		1. Call Connect() method.
sl@0
   828
//!				2. Call SetSessionPath() and pass "<DRIVE>:\<>:"/|\" as parameter where <DRIVE> is a test drive letter.
sl@0
   829
//!				3. Call Close() method.
sl@0
   830
//! @SYMTestStatus		Implemented
sl@0
   831
//! @SYMTestPriority		High
sl@0
   832
//! @SYMTestExpectedResults	Function SetSessionPath() return KErrBadName.
sl@0
   833
//! @SYMTestType		CIT
sl@0
   834
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
   835
		CREATE_OBJECT	RFs	RFs1
sl@0
   836
		COMMAND			RFs1	new
sl@0
   837
		COMMAND			RFs1	Connect
sl@0
   838
		COMMAND	!Error=-28	RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2028-001-SetSessionPath_command03
sl@0
   839
		COMMAND			RFs1	Close
sl@0
   840
		COMMAND			RFs1	~
sl@0
   841
	END_TEST_BLOCK	
sl@0
   842
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2028
sl@0
   843
sl@0
   844
sl@0
   845
sl@0
   846
///////////////////////////////
sl@0
   847
//
sl@0
   848
// PARSE
sl@0
   849
//
sl@0
   850
///////////////////////////////
sl@0
   851
sl@0
   852
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2029
sl@0
   853
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2029
sl@0
   854
//! @SYMAPI			RFs
sl@0
   855
//! @SYMCreationDate		5/10/2006
sl@0
   856
//! @SYMTestCaseDesc		Function Parse(const TDesC &aName, TParse &aParse) test where name of parse is invalid.
sl@0
   857
//!				Uses API elements: Parse().
sl@0
   858
//! @SYMTestActions		1. Call Connect() method.
sl@0
   859
//!				2. Call Parse() and pass "<DRIVE>:\<>:"/|.txt" as parameter where <DRIVE> is a test drive letter.
sl@0
   860
//!				3. Call Close() method.
sl@0
   861
//! @SYMTestStatus		Implemented
sl@0
   862
//! @SYMTestPriority		Critical
sl@0
   863
//! @SYMTestExpectedResults	Function Parse() return KErrNone.
sl@0
   864
//! @SYMTestType		CIT
sl@0
   865
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
   866
		CREATE_OBJECT	RFs	RFs1
sl@0
   867
		COMMAND		RFs1	new
sl@0
   868
		COMMAND		RFs1	Connect
sl@0
   869
		COMMAND		RFs1	Parse		PBASE-F32-RFS-PublicApi-2029-001-Parse_command03
sl@0
   870
		COMMAND		RFs1	Close
sl@0
   871
		COMMAND		RFs1	~
sl@0
   872
	END_TEST_BLOCK	
sl@0
   873
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2029
sl@0
   874
sl@0
   875
sl@0
   876
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2031
sl@0
   877
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2031
sl@0
   878
//! @SYMAPI			RFs
sl@0
   879
//! @SYMCreationDate		5/10/2006
sl@0
   880
//! @SYMTestCaseDesc		Function Parse(const TDesC &aName, const TDesC &aRelated, TParse &aParse) test where name of parse is invalid.
sl@0
   881
//!				Uses API elements: Parse().
sl@0
   882
//! @SYMTestActions		1. Call Connect() method.
sl@0
   883
//!				2. Call Parse() and pass "<DRIVE>:\<>:"/|.txt" as parameter where <DRIVE> is a test drive letter.
sl@0
   884
//!				3. Call Close() method.
sl@0
   885
//! @SYMTestStatus		Implemented
sl@0
   886
//! @SYMTestPriority		Critical
sl@0
   887
//! @SYMTestExpectedResults	Function Parse() return KErrNone.
sl@0
   888
//! @SYMTestType		CIT
sl@0
   889
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
   890
		CREATE_OBJECT	RFs	RFs1
sl@0
   891
		COMMAND		RFs1	new
sl@0
   892
		COMMAND		RFs1	Connect
sl@0
   893
		COMMAND		RFs1	Parse		PBASE-F32-RFS-PublicApi-2031-001-Parse_command03
sl@0
   894
		COMMAND		RFs1	Close
sl@0
   895
		COMMAND		RFs1	~
sl@0
   896
	END_TEST_BLOCK	
sl@0
   897
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2031
sl@0
   898
sl@0
   899
sl@0
   900
///////////////////////////////
sl@0
   901
//
sl@0
   902
// MKDIR
sl@0
   903
//
sl@0
   904
///////////////////////////////
sl@0
   905
sl@0
   906
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2034
sl@0
   907
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2034
sl@0
   908
//! @SYMAPI			RFs
sl@0
   909
//! @SYMCreationDate		5/10/2006
sl@0
   910
//! @SYMTestCaseDesc		Function MkDir() negative test where name of directory is invalide.
sl@0
   911
//!				Uses API elements: MkDir().
sl@0
   912
//! @SYMTestActions		1. Call Connect() method.
sl@0
   913
//!				2. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\MkDir<>:"/|\" as parameter where <DRIVE> is a test drive letter.
sl@0
   914
//!				4. Call Close() method.
sl@0
   915
//! @SYMTestStatus		Implemented
sl@0
   916
//! @SYMTestPriority		High
sl@0
   917
//! @SYMTestExpectedResults	Function MkDir() return KErrBadName.
sl@0
   918
//! @SYMTestType		CIT
sl@0
   919
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
   920
		CREATE_OBJECT	RFs	RFs1
sl@0
   921
		COMMAND			RFs1	new
sl@0
   922
		COMMAND			RFs1	Connect
sl@0
   923
		COMMAND			RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2034-001-SetSessionPath_command03
sl@0
   924
		COMMAND	!Error=-28	RFs1	MkDir		PBASE-F32-RFS-PublicApi-2034-001-MkDir_command04
sl@0
   925
		COMMAND			RFs1	Close
sl@0
   926
		COMMAND			RFs1	~
sl@0
   927
	END_TEST_BLOCK	
sl@0
   928
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2034
sl@0
   929
sl@0
   930
sl@0
   931
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2035
sl@0
   932
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2035
sl@0
   933
//! @SYMAPI			RFs
sl@0
   934
//! @SYMCreationDate		5/10/2006
sl@0
   935
//! @SYMTestCaseDesc		Function MkDir() negative test where directory is exist.
sl@0
   936
//!				Uses API elements: MkDir().
sl@0
   937
//! @SYMTestActions		1. Call Connect() method.
sl@0
   938
//!				2. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\MkDirTwice\" as parameter where <DRIVE> is a test drive letter.
sl@0
   939
//!				3. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\MkDirTwice\" as parameter.
sl@0
   940
//!				4. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\MkDirTwice\" as parameter.
sl@0
   941
//!				5. Call Close() method.
sl@0
   942
//! @SYMTestStatus		Implemented
sl@0
   943
//! @SYMTestPriority		High
sl@0
   944
//! @SYMTestExpectedResults	Function MkDir() return KErrAlreadyExists.
sl@0
   945
//! @SYMTestType		CIT
sl@0
   946
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
   947
		CREATE_OBJECT	RFs	RFs1
sl@0
   948
		COMMAND			RFs1	new
sl@0
   949
		COMMAND			RFs1	Connect
sl@0
   950
		COMMAND			RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2035-001-SetSessionPath_command03
sl@0
   951
		COMMAND		RFs1	MkDir		PBASE-F32-RFS-PublicApi-2035-001-MkDir_command04
sl@0
   952
		COMMAND	!Error=-11	RFs1	MkDir		PBASE-F32-RFS-PublicApi-2035-001-MkDir_command05
sl@0
   953
		COMMAND			RFs1	RmDir		PBASE-F32-RFS-PublicApi-2035-001-RmDir_command06
sl@0
   954
		COMMAND			RFs1	Close
sl@0
   955
		COMMAND			RFs1	~
sl@0
   956
	END_TEST_BLOCK	
sl@0
   957
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2035
sl@0
   958
sl@0
   959
sl@0
   960
sl@0
   961
///////////////////////////////
sl@0
   962
//
sl@0
   963
// MKDIRALL
sl@0
   964
//
sl@0
   965
///////////////////////////////
sl@0
   966
sl@0
   967
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2036
sl@0
   968
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2036
sl@0
   969
//! @SYMAPI			RFs
sl@0
   970
//! @SYMCreationDate		5/10/2006
sl@0
   971
//! @SYMTestCaseDesc		Function MkDir() negative test where name of directory is invalide.
sl@0
   972
//!				Uses API elements: MkDirAll().
sl@0
   973
//! @SYMTestActions		1. Call Connect() method.
sl@0
   974
//!				2. Call MkDirAll() and pass "<DRIVE>:\base\T_Sfsrv\MkDirAll<>:"/|\" as parameter where <DRIVE> is a test drive letter.
sl@0
   975
//!				3. Call Close() method.
sl@0
   976
//! @SYMTestStatus		Implemented
sl@0
   977
//! @SYMTestPriority		High
sl@0
   978
//! @SYMTestExpectedResults	Function MkDirAll() return KErrBadName.
sl@0
   979
//! @SYMTestType		CIT
sl@0
   980
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
   981
		CREATE_OBJECT	RFs	RFs1
sl@0
   982
		COMMAND			RFs1	new
sl@0
   983
		COMMAND			RFs1	Connect
sl@0
   984
		COMMAND			RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2036-001-SetSessionPath_command03
sl@0
   985
		COMMAND	!Error=-28	RFs1	MkDirAll		PBASE-F32-RFS-PublicApi-2036-001-MkDirAll_command04
sl@0
   986
		COMMAND			RFs1	Close
sl@0
   987
		COMMAND			RFs1	~
sl@0
   988
	END_TEST_BLOCK	
sl@0
   989
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2036
sl@0
   990
sl@0
   991
sl@0
   992
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2037
sl@0
   993
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2037
sl@0
   994
//! @SYMAPI			RFs
sl@0
   995
//! @SYMCreationDate		5/10/2006
sl@0
   996
//! @SYMTestCaseDesc		Function MkDir() negative test where directory is exist.
sl@0
   997
//!				Uses API elements: MkDirAll().
sl@0
   998
//! @SYMTestActions		1. Call Connect() method.
sl@0
   999
//!				2. Call MkDirAll() and pass "<DRIVE>:\base\T_Sfsrv\MkDirAllTwice\" as parameter where <DRIVE> is a test drive letter.
sl@0
  1000
//!				3. Call MkDirAll() and pass "<DRIVE>:\base\T_Sfsrv\MkDirAllTwice\" as parameter.
sl@0
  1001
//!				4. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\MkDirTwice\" as parameter.
sl@0
  1002
//!				5. Call Close() method.
sl@0
  1003
//! @SYMTestStatus		Implemented
sl@0
  1004
//! @SYMTestPriority		High
sl@0
  1005
//! @SYMTestExpectedResults	Function MkDirAll() return KErrAlreadyExists.
sl@0
  1006
//! @SYMTestType		CIT
sl@0
  1007
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1008
		CREATE_OBJECT	RFs	RFs1
sl@0
  1009
		COMMAND			RFs1	new
sl@0
  1010
		COMMAND			RFs1	Connect
sl@0
  1011
		COMMAND			RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2037-001-SetSessionPath_command03
sl@0
  1012
		COMMAND			RFs1	MkDirAll		PBASE-F32-RFS-PublicApi-2037-001-MkDirAll_command04
sl@0
  1013
		COMMAND	!Error=-11	RFs1	MkDirAll		PBASE-F32-RFS-PublicApi-2037-001-MkDirAll_command05
sl@0
  1014
		COMMAND			RFs1	RmDir		PBASE-F32-RFS-PublicApi-2037-001-RmDir_command06
sl@0
  1015
		COMMAND			RFs1	Close
sl@0
  1016
		COMMAND			RFs1	~
sl@0
  1017
	END_TEST_BLOCK	
sl@0
  1018
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2037
sl@0
  1019
sl@0
  1020
sl@0
  1021
sl@0
  1022
///////////////////////////////
sl@0
  1023
//
sl@0
  1024
// RMDIR
sl@0
  1025
//
sl@0
  1026
///////////////////////////////
sl@0
  1027
sl@0
  1028
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2038
sl@0
  1029
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2038
sl@0
  1030
//! @SYMAPI			RFs
sl@0
  1031
//! @SYMCreationDate		5/10/2006
sl@0
  1032
//! @SYMTestCaseDesc		Function RmDir() negative test where name of directory is invalid.
sl@0
  1033
//!				Uses API elements: RmDir().
sl@0
  1034
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1035
//!				2. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\RmDir<>:"/|\" as parameter where <DRIVE> is a test drive letter.
sl@0
  1036
//!				3. Call Close() method.
sl@0
  1037
//! @SYMTestStatus		Implemented
sl@0
  1038
//! @SYMTestPriority		High
sl@0
  1039
//! @SYMTestExpectedResults	Function RmDir() return KErrBadName.
sl@0
  1040
//! @SYMTestType		CIT
sl@0
  1041
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1042
		CREATE_OBJECT	RFs	RFs1
sl@0
  1043
		COMMAND			RFs1	new
sl@0
  1044
		COMMAND			RFs1	Connect
sl@0
  1045
		COMMAND	!Error=-28	RFs1	RmDir		PBASE-F32-RFS-PublicApi-2038-001-RmDir_command03
sl@0
  1046
		COMMAND			RFs1	Close
sl@0
  1047
		COMMAND			RFs1	~
sl@0
  1048
	END_TEST_BLOCK	
sl@0
  1049
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2038
sl@0
  1050
sl@0
  1051
sl@0
  1052
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2039
sl@0
  1053
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2039
sl@0
  1054
//! @SYMAPI			RFs
sl@0
  1055
//! @SYMCreationDate		5/10/2006
sl@0
  1056
//! @SYMTestCaseDesc		Function RmDir() negative test where directory does not exist.
sl@0
  1057
//!				Uses API elements: RmDir().
sl@0
  1058
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1059
//!				2. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\NoneDir\" as parameter where <DRIVE> is a test drive letter.
sl@0
  1060
//!				3. Call Close() method.
sl@0
  1061
//! @SYMTestStatus		Implemented
sl@0
  1062
//! @SYMTestPriority		High
sl@0
  1063
//! @SYMTestExpectedResults	Function RmDir() return KErrNotFound.
sl@0
  1064
//! @SYMTestType		CIT
sl@0
  1065
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1066
		CREATE_OBJECT	RFs	RFs1
sl@0
  1067
		COMMAND			RFs1	new
sl@0
  1068
		COMMAND			RFs1	Connect
sl@0
  1069
		COMMAND	!Error=-1	RFs1	RmDir		PBASE-F32-RFS-PublicApi-2039-001-RmDir_command03
sl@0
  1070
		COMMAND			RFs1	Close
sl@0
  1071
		COMMAND			RFs1	~
sl@0
  1072
	END_TEST_BLOCK	
sl@0
  1073
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2039
sl@0
  1074
sl@0
  1075
sl@0
  1076
sl@0
  1077
///////////////////////////////
sl@0
  1078
//
sl@0
  1079
// GETDIR
sl@0
  1080
// TInt GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList) const;
sl@0
  1081
//
sl@0
  1082
///////////////////////////////
sl@0
  1083
sl@0
  1084
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2040
sl@0
  1085
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2040
sl@0
  1086
//! @SYMAPI			RFs
sl@0
  1087
//! @SYMCreationDate		5/10/2006
sl@0
  1088
//! @SYMTestCaseDesc		Function GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList) negative test,
sl@0
  1089
//!				where name of directory is invalid.
sl@0
  1090
//!				Uses API elements: GetDir().
sl@0
  1091
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1092
//!				2. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\ErrDir<>:"/|\" as parameter where <DRIVE> is a test drive letter.
sl@0
  1093
//!				3. Call Close() method.
sl@0
  1094
//! @SYMTestStatus		Implemented
sl@0
  1095
//! @SYMTestPriority		High
sl@0
  1096
//! @SYMTestExpectedResults	Function GetDir() return KErrBadName.
sl@0
  1097
//! @SYMTestType		CIT
sl@0
  1098
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1099
		CREATE_OBJECT	RFs	RFs1
sl@0
  1100
		COMMAND			RFs1	new
sl@0
  1101
		COMMAND			RFs1	Connect
sl@0
  1102
		COMMAND	!Error=-28	RFs1	GetDir		PBASE-F32-RFS-PublicApi-2040-001-GetDir_command03
sl@0
  1103
		COMMAND			RFs1	Close
sl@0
  1104
		COMMAND			RFs1	~
sl@0
  1105
	END_TEST_BLOCK	
sl@0
  1106
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2040
sl@0
  1107
sl@0
  1108
sl@0
  1109
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2041
sl@0
  1110
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2041
sl@0
  1111
//! @SYMAPI			RFs
sl@0
  1112
//! @SYMCreationDate		5/10/2006
sl@0
  1113
//! @SYMTestCaseDesc		Function GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList) negative test,
sl@0
  1114
//!				where directory does not exist.
sl@0
  1115
//!				Uses API elements: GetDir().
sl@0
  1116
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1117
//!				2. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\NoneDir\" as parameter where <DRIVE> is a test drive letter.
sl@0
  1118
//!				3. Call Close() method.
sl@0
  1119
//! @SYMTestStatus		Implemented
sl@0
  1120
//! @SYMTestPriority		High
sl@0
  1121
//! @SYMTestExpectedResults	Function GetDir() return KErrPathNotFound.
sl@0
  1122
//! @SYMTestType		CIT
sl@0
  1123
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1124
		CREATE_OBJECT	RFs	RFs1
sl@0
  1125
		COMMAND			RFs1	new
sl@0
  1126
		COMMAND			RFs1	Connect
sl@0
  1127
		COMMAND	!Error=-12	RFs1	GetDir		PBASE-F32-RFS-PublicApi-2041-001-GetDir_command03
sl@0
  1128
		COMMAND			RFs1	Close
sl@0
  1129
		COMMAND			RFs1	~
sl@0
  1130
	END_TEST_BLOCK	
sl@0
  1131
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2041
sl@0
  1132
sl@0
  1133
sl@0
  1134
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2042
sl@0
  1135
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2042
sl@0
  1136
//! @SYMAPI			RFs
sl@0
  1137
//! @SYMCreationDate		5/10/2006
sl@0
  1138
//! @SYMTestCaseDesc		Function GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList) test,
sl@0
  1139
//!				where sort key flag is used for exclusive matching.
sl@0
  1140
//!				Uses API elements: GetDir().
sl@0
  1141
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1142
//!				2. Create files "test42a.txt" and "test42b.txt".
sl@0
  1143
//!				3. Call SetAtt() and pass "test42a.txt" as name and "KEntryAttReadOnly" as attribute of file.
sl@0
  1144
//!				4. Call Att() and pass "test42a.txt" as name and check that the attrtribute "KEntryAttReadOnly" is set.
sl@0
  1145
//!				5. Call GetDir() and pass parameters "<DRIVE>:\base\T_Sfsrv\" as name and "KEntryAttMatchExclusive|KEntryAttReadOnly" as attribute bitmask where <DRIVE> is a test drive letter,
sl@0
  1146
//!				   and check that the file "test42a.txt" is exist in list of entries.
sl@0
  1147
//!				6. Call GetDir() and pass parameters "<DRIVE>:\base\T_Sfsrv\" as name and "KEntryAttMatchExclusive|KEntryAttReadOnly" as attribute bitmask where <DRIVE> is a test drive letter,
sl@0
  1148
//!				   and check that the file "test42b.txt" is not exist in list of entries.
sl@0
  1149
//!				7. Call SetAtt() and pass "test42a.txt" as name and "KEntryAttNormal" as attribute of file.
sl@0
  1150
//!				8. Delete files "test42a.txt" and "test42b.txt".
sl@0
  1151
//!				9. Call Close() method.
sl@0
  1152
//! @SYMTestStatus		Implemented
sl@0
  1153
//! @SYMTestPriority		Critical
sl@0
  1154
//! @SYMTestExpectedResults	Function GetDir() return KErrNone, the file "test42a.txt" is not exist in list of entries.
sl@0
  1155
//! @SYMTestType		CIT
sl@0
  1156
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1157
		CREATE_OBJECT	RFs	RFs1
sl@0
  1158
		CREATE_OBJECT	RFile	RFile1
sl@0
  1159
		COMMAND		RFs1	new
sl@0
  1160
		COMMAND		RFs1	Connect
sl@0
  1161
		COMMAND		RFile1	new
sl@0
  1162
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2042-001-Create_command05
sl@0
  1163
		COMMAND		RFile1	Close
sl@0
  1164
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2042-001-Create_command07
sl@0
  1165
		COMMAND		RFile1	Close
sl@0
  1166
		COMMAND		RFile1	~
sl@0
  1167
		COMMAND		RFs1	SetAtt		PBASE-F32-RFS-PublicApi-2042-001-SetAtt_command11
sl@0
  1168
		COMMAND		RFs1	Att		PBASE-F32-RFS-PublicApi-2042-001-Att_command12
sl@0
  1169
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2042-001-GetDir_command13
sl@0
  1170
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2042-001-GetDir_command14
sl@0
  1171
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2042-001-Delete_command15
sl@0
  1172
		COMMAND		RFs1	SetAtt		PBASE-F32-RFS-PublicApi-2042-001-SetAtt_command16
sl@0
  1173
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2042-001-Delete_command17
sl@0
  1174
		COMMAND		RFs1	Close
sl@0
  1175
		COMMAND		RFs1	~
sl@0
  1176
	END_TEST_BLOCK	
sl@0
  1177
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2042
sl@0
  1178
sl@0
  1179
sl@0
  1180
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2043
sl@0
  1181
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2043
sl@0
  1182
//! @SYMAPI			RFs
sl@0
  1183
//! @SYMCreationDate		5/10/2006
sl@0
  1184
//! @SYMTestCaseDesc		Function GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList) test,
sl@0
  1185
//!				where ordering is requested to be both ascending and descending at the same time.
sl@0
  1186
//!				Uses API elements: GetDir().
sl@0
  1187
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1188
//!				2. Call GetDir() and pass parameters "<DRIVE>:\base\T_Sfsrv\" as name and "EAscending|EDescending" as sort key where <DRIVE> is a test drive letter.
sl@0
  1189
//!				3. Call Close() method.
sl@0
  1190
//! @SYMTestStatus		Implemented
sl@0
  1191
//! @SYMTestPriority		High
sl@0
  1192
//! @SYMTestExpectedResults	Function GetDir() return KErrNone.
sl@0
  1193
//! @SYMTestType		CIT
sl@0
  1194
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1195
		CREATE_OBJECT	RFs	RFs1
sl@0
  1196
		CREATE_OBJECT	RFile	RFile1
sl@0
  1197
		COMMAND		RFs1	new
sl@0
  1198
		COMMAND		RFs1	Connect
sl@0
  1199
		COMMAND		RFile1	new
sl@0
  1200
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2043-001-Create_command05
sl@0
  1201
		COMMAND		RFile1	Close
sl@0
  1202
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2043-001-Create_command07
sl@0
  1203
		COMMAND		RFile1	Close
sl@0
  1204
		COMMAND		RFile1	~
sl@0
  1205
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2043-001-GetDir_command11
sl@0
  1206
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2043-001-Delete_command12
sl@0
  1207
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2043-001-Delete_command13
sl@0
  1208
		COMMAND		RFs1	Close
sl@0
  1209
		COMMAND		RFs1	~
sl@0
  1210
	END_TEST_BLOCK	
sl@0
  1211
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2043
sl@0
  1212
sl@0
  1213
sl@0
  1214
sl@0
  1215
///////////////////////////////
sl@0
  1216
//
sl@0
  1217
// GETDIR
sl@0
  1218
// TInt GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList,CDir*& aDirList) const;
sl@0
  1219
//
sl@0
  1220
///////////////////////////////
sl@0
  1221
sl@0
  1222
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2044
sl@0
  1223
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2044
sl@0
  1224
//! @SYMAPI			RFs
sl@0
  1225
//! @SYMCreationDate		5/10/2006
sl@0
  1226
//! @SYMTestCaseDesc		Function GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList,CDir*& aDirList) negative test,
sl@0
  1227
//!				where name of directory is invalide.
sl@0
  1228
//!				Uses API elements: GetDir().
sl@0
  1229
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1230
//!				2. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\ErrDir<>:"/|\" as parameter where <DRIVE> is a test drive letter.
sl@0
  1231
//!				3. Call Close() method.
sl@0
  1232
//! @SYMTestStatus		Implemented
sl@0
  1233
//! @SYMTestPriority		High
sl@0
  1234
//! @SYMTestExpectedResults	Function GetDir() return KErrBadName.
sl@0
  1235
//! @SYMTestType		CIT
sl@0
  1236
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1237
		CREATE_OBJECT	RFs	RFs1
sl@0
  1238
		COMMAND			RFs1	new
sl@0
  1239
		COMMAND			RFs1	Connect
sl@0
  1240
		COMMAND	!Error=-28	RFs1	GetDir		PBASE-F32-RFS-PublicApi-2044-001-GetDir_command03
sl@0
  1241
		COMMAND			RFs1	Close
sl@0
  1242
		COMMAND			RFs1	~
sl@0
  1243
	END_TEST_BLOCK	
sl@0
  1244
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2044
sl@0
  1245
sl@0
  1246
sl@0
  1247
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2045
sl@0
  1248
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2045
sl@0
  1249
//! @SYMAPI			RFs
sl@0
  1250
//! @SYMCreationDate		5/10/2006
sl@0
  1251
//! @SYMTestCaseDesc		Function GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList,CDir*& aDirList) negative test,
sl@0
  1252
//!				where directory does not exist.
sl@0
  1253
//!				Uses API elements: GetDir().
sl@0
  1254
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1255
//!				2. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\NoneDir\" as parameter where <DRIVE> is a test drive letter.
sl@0
  1256
//!				3. Call Close() method.
sl@0
  1257
//! @SYMTestStatus		Implemented
sl@0
  1258
//! @SYMTestPriority		High
sl@0
  1259
//! @SYMTestExpectedResults	Function GetDir() return KErrPathNotFound.
sl@0
  1260
//! @SYMTestType		CIT
sl@0
  1261
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1262
		CREATE_OBJECT	RFs	RFs1
sl@0
  1263
		COMMAND			RFs1	new
sl@0
  1264
		COMMAND			RFs1	Connect
sl@0
  1265
		COMMAND	!Error=-12	RFs1	GetDir		PBASE-F32-RFS-PublicApi-2045-001-GetDir_command03
sl@0
  1266
		COMMAND			RFs1	Close
sl@0
  1267
		COMMAND			RFs1	~
sl@0
  1268
	END_TEST_BLOCK	
sl@0
  1269
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2045
sl@0
  1270
sl@0
  1271
sl@0
  1272
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2046
sl@0
  1273
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2046
sl@0
  1274
//! @SYMAPI			RFs
sl@0
  1275
//! @SYMCreationDate		5/10/2006
sl@0
  1276
//! @SYMTestCaseDesc		Function GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList,CDir*& aDirList) test,
sl@0
  1277
//!				where sort key flag is used for exclusive matching.
sl@0
  1278
//!				Uses API elements: GetDir().
sl@0
  1279
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1280
//!				2. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\Test46a\" as name where <DRIVE> is a test drive letter.
sl@0
  1281
//!				3. Create file "test46a.txt".
sl@0
  1282
//!				4. Call GetDir() and pass parameters "<DRIVE>:\base\T_Sfsrv\" as name and "KEntryAttMatchExclusive|KEntryAttDir" as attribute bitmask where <DRIVE> is a test drive letter,
sl@0
  1283
//!				   and check that the directories "Test46a" is exist in list of entries.
sl@0
  1284
//!				5. Call GetDir() and pass parameters "<DRIVE>:\base\T_Sfsrv\" as name and "KEntryAttMatchExclusive|KEntryAttDir" as attribute bitmask where <DRIVE> is a test drive letter,
sl@0
  1285
//!				   and check that the file "test46a.txt" is not exist in list of entries.
sl@0
  1286
//!				6. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\Test46a\" as name where <DRIVE> is a test drive letter.
sl@0
  1287
//!				7. Delete file "test46a.txt".
sl@0
  1288
//!				8. Call Close() method.
sl@0
  1289
//! @SYMTestStatus		Implemented
sl@0
  1290
//! @SYMTestPriority		Critical
sl@0
  1291
//! @SYMTestExpectedResults	Function GetDir() return KErrNone, the directories "Test46a" is not exist in list of entries.
sl@0
  1292
//! @SYMTestType		CIT
sl@0
  1293
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1294
		CREATE_OBJECT	RFile	RFile1
sl@0
  1295
		CREATE_OBJECT	RFs	RFs1
sl@0
  1296
		COMMAND		RFs1	new
sl@0
  1297
		COMMAND		RFs1	Connect
sl@0
  1298
		COMMAND		RFile1	new
sl@0
  1299
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2046-001-Create_command05
sl@0
  1300
		COMMAND		RFile1	Close
sl@0
  1301
		COMMAND		RFile1	~
sl@0
  1302
		COMMAND		RFs1	MkDir		PBASE-F32-RFS-PublicApi-2046-001-MkDir_command09
sl@0
  1303
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2046-001-GetDir_command10
sl@0
  1304
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2046-001-GetDir_command11
sl@0
  1305
		COMMAND		RFs1	RmDir		PBASE-F32-RFS-PublicApi-2046-001-RmDir_command12
sl@0
  1306
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2046-001-Delete_command13
sl@0
  1307
		COMMAND		RFs1	Close
sl@0
  1308
	END_TEST_BLOCK	
sl@0
  1309
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2046
sl@0
  1310
sl@0
  1311
sl@0
  1312
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2047
sl@0
  1313
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2047
sl@0
  1314
//! @SYMAPI			RFs
sl@0
  1315
//! @SYMCreationDate		5/10/2006
sl@0
  1316
//! @SYMTestCaseDesc		Function GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList,CDir*& aDirList) negative test,
sl@0
  1317
//!				where ordering is requested to be both ascending and descending at the same time.
sl@0
  1318
//!				Uses API elements: GetDir().
sl@0
  1319
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1320
//!				2. Call GetDir() and pass parameters "<DRIVE>:\base\T_Sfsrv\" as name and "EAscending|EDescending" as sort key where <DRIVE> is a test drive letter.
sl@0
  1321
//!				3. Call Close() method.
sl@0
  1322
//! @SYMTestStatus		Implemented
sl@0
  1323
//! @SYMTestPriority		High
sl@0
  1324
//! @SYMTestExpectedResults	Function GetDir() return KErrNone.
sl@0
  1325
//! @SYMTestType		CIT
sl@0
  1326
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1327
		CREATE_OBJECT	RFs	RFs1
sl@0
  1328
		CREATE_OBJECT	RFile	RFile1
sl@0
  1329
		COMMAND		RFs1	new
sl@0
  1330
		COMMAND		RFs1	Connect
sl@0
  1331
		COMMAND		RFile1	new
sl@0
  1332
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2047-001-Create_command05
sl@0
  1333
		COMMAND		RFile1	Close
sl@0
  1334
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2047-001-Create_command07
sl@0
  1335
		COMMAND		RFile1	Close
sl@0
  1336
		COMMAND		RFile1	~
sl@0
  1337
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2047-001-GetDir_command11
sl@0
  1338
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2047-001-Delete_command12
sl@0
  1339
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2047-001-Delete_command13
sl@0
  1340
		COMMAND		RFs1	Close
sl@0
  1341
		COMMAND		RFs1	~
sl@0
  1342
	END_TEST_BLOCK	
sl@0
  1343
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2047
sl@0
  1344
sl@0
  1345
sl@0
  1346
sl@0
  1347
///////////////////////////////
sl@0
  1348
//
sl@0
  1349
// GETDIR
sl@0
  1350
// TInt GetDir(const TDesC& aName,const TUidType& anEntryUid,TUint anEntrySortKey,CDir*& aFileList) const;
sl@0
  1351
//
sl@0
  1352
///////////////////////////////
sl@0
  1353
sl@0
  1354
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2048
sl@0
  1355
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2048
sl@0
  1356
//! @SYMAPI			RFs
sl@0
  1357
//! @SYMCreationDate		5/10/2006
sl@0
  1358
//! @SYMTestCaseDesc		Function GetDir(const TDesC& aName,const TUidType& anEntryUid,TUint anEntrySortKey,CDir*& aFileList) negative test,
sl@0
  1359
//!				where name of directory is invalid.
sl@0
  1360
//!				Uses API elements: GetDir().
sl@0
  1361
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1362
//!				2. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\ErrDir<>:"/|\" as parameter where <DRIVE> is a test drive letter.
sl@0
  1363
//!				3. Call Close() method.
sl@0
  1364
//! @SYMTestStatus		Implemented
sl@0
  1365
//! @SYMTestPriority		High
sl@0
  1366
//! @SYMTestExpectedResults	Function GetDir() return KErrBadName.
sl@0
  1367
//! @SYMTestType		CIT
sl@0
  1368
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1369
		CREATE_OBJECT	RFs	RFs1
sl@0
  1370
		COMMAND			RFs1	new
sl@0
  1371
		COMMAND			RFs1	Connect
sl@0
  1372
		COMMAND	!Error=-28	RFs1	GetDir		PBASE-F32-RFS-PublicApi-2048-001-GetDir_command03
sl@0
  1373
		COMMAND			RFs1	Close
sl@0
  1374
		COMMAND			RFs1	~
sl@0
  1375
	END_TEST_BLOCK	
sl@0
  1376
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2048
sl@0
  1377
sl@0
  1378
sl@0
  1379
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2049
sl@0
  1380
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2049
sl@0
  1381
//! @SYMAPI			RFs
sl@0
  1382
//! @SYMCreationDate		5/10/2006
sl@0
  1383
//! @SYMTestCaseDesc		Function GetDir(const TDesC& aName,const TUidType& anEntryUid,TUint anEntrySortKey,CDir*& aFileList) negative test,
sl@0
  1384
//!				where directory name does not exist.
sl@0
  1385
//!				Uses API elements: GetDir().
sl@0
  1386
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1387
//!				2. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\NoneDir\" as parameter where <DRIVE> is a test drive letter.
sl@0
  1388
//!				3. Call Close() method.
sl@0
  1389
//! @SYMTestStatus		Implemented
sl@0
  1390
//! @SYMTestPriority		Critical
sl@0
  1391
//! @SYMTestExpectedResults	Function GetDir() return KErrPathNotFound.
sl@0
  1392
//! @SYMTestType		CIT
sl@0
  1393
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1394
		CREATE_OBJECT	RFs	RFs1
sl@0
  1395
		COMMAND			RFs1	new
sl@0
  1396
		COMMAND			RFs1	Connect
sl@0
  1397
		COMMAND	!Error=-12	RFs1	GetDir		PBASE-F32-RFS-PublicApi-2049-001-GetDir_command03
sl@0
  1398
		COMMAND			RFs1	Close
sl@0
  1399
		COMMAND			RFs1	~
sl@0
  1400
	END_TEST_BLOCK	
sl@0
  1401
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2049
sl@0
  1402
sl@0
  1403
sl@0
  1404
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2050
sl@0
  1405
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2050
sl@0
  1406
//! @SYMAPI			RFs
sl@0
  1407
//! @SYMCreationDate		5/10/2006
sl@0
  1408
//! @SYMTestCaseDesc		Function GetDir(const TDesC& aName,const TUidType& anEntryUid,TUint anEntrySortKey,CDir*& aFileList) test,
sl@0
  1409
//!				for invalid entry UID type.
sl@0
  1410
//!				Uses API elements: GetDir().
sl@0
  1411
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1412
//!				2. Call GetDir() and pass parameters "<DRIVE>:\base\T_Sfsrv\" as name and "-12345" as UID type where <DRIVE> is a test drive letter.
sl@0
  1413
//!				3. Call Close() method.
sl@0
  1414
//! @SYMTestStatus		Implemented
sl@0
  1415
//! @SYMTestPriority		Critical
sl@0
  1416
//! @SYMTestExpectedResults	Function GetDir() return KErrNone.
sl@0
  1417
//! @SYMTestType		CIT
sl@0
  1418
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1419
		CREATE_OBJECT	RFs	RFs1
sl@0
  1420
		CREATE_OBJECT	RFile	RFile1
sl@0
  1421
		COMMAND		RFs1	new
sl@0
  1422
		COMMAND		RFs1	Connect
sl@0
  1423
		COMMAND		RFile1	new
sl@0
  1424
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2050-001-Create_command05
sl@0
  1425
		COMMAND		RFile1	Close
sl@0
  1426
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2050-001-Create_command07
sl@0
  1427
		COMMAND		RFile1	Close
sl@0
  1428
		COMMAND		RFile1	~
sl@0
  1429
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2050-001-GetDir_command11
sl@0
  1430
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2050-001-Delete_command12
sl@0
  1431
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2050-001-Delete_command13
sl@0
  1432
		COMMAND		RFs1	Close
sl@0
  1433
		COMMAND		RFs1	~
sl@0
  1434
	END_TEST_BLOCK	
sl@0
  1435
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2050
sl@0
  1436
sl@0
  1437
sl@0
  1438
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2051
sl@0
  1439
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2051
sl@0
  1440
//! @SYMAPI			RFs
sl@0
  1441
//! @SYMCreationDate		5/10/2006
sl@0
  1442
//! @SYMTestCaseDesc		Function GetDir(const TDesC& aName,const TUidType& anEntryUid,TUint anEntrySortKey,CDir*& aFileList) negative test,
sl@0
  1443
//!				where ordering is requested to be both ascending and descending at the same time.
sl@0
  1444
//!				Uses API elements: GetDir().
sl@0
  1445
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1446
//!				2. Call GetDir() and pass parameters "<DRIVE>:\base\T_Sfsrv\" as name and "EAscending|EDescending" as sort key where <DRIVE> is a test drive letter.
sl@0
  1447
//!				3. Call Close() method.
sl@0
  1448
//! @SYMTestStatus		Implemented
sl@0
  1449
//! @SYMTestPriority		High
sl@0
  1450
//! @SYMTestExpectedResults	Function GetDir() return KErrNone.
sl@0
  1451
//! @SYMTestType		CIT
sl@0
  1452
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1453
		CREATE_OBJECT	RFs	RFs1
sl@0
  1454
		CREATE_OBJECT	RFile	RFile1
sl@0
  1455
		COMMAND		RFs1	new
sl@0
  1456
		COMMAND		RFs1	Connect
sl@0
  1457
		COMMAND		RFile1	new
sl@0
  1458
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2051-001-Create_command05
sl@0
  1459
		COMMAND		RFile1	Close
sl@0
  1460
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2051-001-Create_command07
sl@0
  1461
		COMMAND		RFile1	Close
sl@0
  1462
		COMMAND		RFile1	~
sl@0
  1463
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2051-001-GetDir_command11
sl@0
  1464
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2051-001-Delete_command12
sl@0
  1465
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2051-001-Delete_command13
sl@0
  1466
		COMMAND		RFs1	Close
sl@0
  1467
		COMMAND		RFs1	~
sl@0
  1468
	END_TEST_BLOCK	
sl@0
  1469
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2051
sl@0
  1470
sl@0
  1471
sl@0
  1472
sl@0
  1473
///////////////////////////////
sl@0
  1474
//
sl@0
  1475
// DELETE
sl@0
  1476
//
sl@0
  1477
///////////////////////////////
sl@0
  1478
sl@0
  1479
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2052
sl@0
  1480
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2052
sl@0
  1481
//! @SYMAPI			RFs
sl@0
  1482
//! @SYMCreationDate		5/10/2006
sl@0
  1483
//! @SYMTestCaseDesc		Function Delete() negative test where file does not exist.
sl@0
  1484
//!				Uses API elements: Delete().
sl@0
  1485
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1486
//!				2. Call Delete() and pass "<DRIVE>:\base\T_Sfsrv\nonefile.txt" as parameter where <DRIVE> is a test drive letter.
sl@0
  1487
//!				3. Call Close() method.
sl@0
  1488
//! @SYMTestStatus		Implemented
sl@0
  1489
//! @SYMTestPriority		High
sl@0
  1490
//! @SYMTestExpectedResults	Function Delete() return KErrNotFound.
sl@0
  1491
//! @SYMTestType		CIT
sl@0
  1492
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1493
		CREATE_OBJECT	RFs	RFs1
sl@0
  1494
		COMMAND			RFs1	new
sl@0
  1495
		COMMAND			RFs1	Connect
sl@0
  1496
		COMMAND	!Error=-1	RFs1	Delete		PBASE-F32-RFS-PublicApi-2052-001-Delete_command03
sl@0
  1497
		COMMAND			RFs1	Close
sl@0
  1498
		COMMAND			RFs1	~
sl@0
  1499
	END_TEST_BLOCK	
sl@0
  1500
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2052
sl@0
  1501
sl@0
  1502
sl@0
  1503
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2053
sl@0
  1504
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2053
sl@0
  1505
//! @SYMAPI			RFs
sl@0
  1506
//! @SYMCreationDate		5/10/2006
sl@0
  1507
//! @SYMTestCaseDesc		Function Delete() negative test where name of file is invalid.
sl@0
  1508
//!				Uses API elements: Delete().
sl@0
  1509
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1510
//!				2. Call Delete() and pass "<>:"/|.txt" as parameter.
sl@0
  1511
//!				3. Call Close() method.
sl@0
  1512
//! @SYMTestStatus		Implemented
sl@0
  1513
//! @SYMTestPriority		High
sl@0
  1514
//! @SYMTestExpectedResults	Function Delete() return KErrBadName.
sl@0
  1515
//! @SYMTestType		CIT
sl@0
  1516
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1517
		CREATE_OBJECT	RFs	RFs1
sl@0
  1518
		COMMAND			RFs1	new
sl@0
  1519
		COMMAND			RFs1	Connect
sl@0
  1520
		COMMAND	!Error=-28	RFs1	Delete		PBASE-F32-RFS-PublicApi-2053-001-Delete_command03
sl@0
  1521
		COMMAND			RFs1	Close
sl@0
  1522
		COMMAND			RFs1	~
sl@0
  1523
	END_TEST_BLOCK	
sl@0
  1524
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2053
sl@0
  1525
sl@0
  1526
sl@0
  1527
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2054
sl@0
  1528
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2054
sl@0
  1529
//! @SYMAPI			RFs
sl@0
  1530
//! @SYMCreationDate		5/10/2006
sl@0
  1531
//! @SYMTestCaseDesc		Function Delete() negative test for readonly file.
sl@0
  1532
//!				Uses API elements: Delete().
sl@0
  1533
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1534
//!				2. Call Delete() and pass "<DRIVE>:\base\T_Sfsrv\testing.txt" as parameter where <DRIVE> is a test drive letter.
sl@0
  1535
//!				3. Call Close() method.
sl@0
  1536
//! @SYMTestStatus		Implemented
sl@0
  1537
//! @SYMTestPriority		High
sl@0
  1538
//! @SYMTestExpectedResults	Function Delete() return KErrAccessDenied.
sl@0
  1539
//! @SYMTestType		CIT
sl@0
  1540
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1541
		CREATE_OBJECT	RFs	RFs1
sl@0
  1542
		CREATE_OBJECT	RFile	RFile1
sl@0
  1543
		COMMAND			RFs1	new
sl@0
  1544
		COMMAND			RFs1	Connect
sl@0
  1545
		COMMAND			RFile1	new
sl@0
  1546
		COMMAND			RFile1	Create		PBASE-F32-RFS-PublicApi-2054-001-Create_command05
sl@0
  1547
		COMMAND			RFile1	Close
sl@0
  1548
		COMMAND			RFile1	~
sl@0
  1549
		COMMAND			RFs1	SetAtt		PBASE-F32-RFS-PublicApi-2054-001-SetAtt_command09
sl@0
  1550
		COMMAND	!Error=-21	RFs1	Delete		PBASE-F32-RFS-PublicApi-2054-001-Delete_command10
sl@0
  1551
		COMMAND			RFs1	SetAtt		PBASE-F32-RFS-PublicApi-2054-001-SetAtt_command11
sl@0
  1552
		COMMAND			RFs1	Delete		PBASE-F32-RFS-PublicApi-2054-001-Delete_command12
sl@0
  1553
		COMMAND			RFs1	Close
sl@0
  1554
		COMMAND			RFs1	~
sl@0
  1555
	END_TEST_BLOCK	
sl@0
  1556
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2054
sl@0
  1557
sl@0
  1558
sl@0
  1559
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2055
sl@0
  1560
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2055
sl@0
  1561
//! @SYMAPI			RFs
sl@0
  1562
//! @SYMCreationDate		5/10/2006
sl@0
  1563
//! @SYMTestCaseDesc		Function Delete() test for system file.
sl@0
  1564
//!				Uses API elements: Delete().
sl@0
  1565
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1566
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
  1567
//!				3. Call SetAtt() and pass parameters "testing.txt" as name and "KEntryAttSystem" attribute of file.
sl@0
  1568
//!				4. Call Delete() and pass parameter "testing.txt" as name of file.
sl@0
  1569
//!				5. Call Close() method.
sl@0
  1570
//! @SYMTestStatus		Implemented
sl@0
  1571
//! @SYMTestPriority		Critical
sl@0
  1572
//! @SYMTestExpectedResults	Function Delete() return KErrNone.
sl@0
  1573
//! @SYMTestType		CIT
sl@0
  1574
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1575
		CREATE_OBJECT	RFs	RFs1
sl@0
  1576
		CREATE_OBJECT	RFile	RFile1
sl@0
  1577
		COMMAND		RFs1	new
sl@0
  1578
		COMMAND		RFs1	Connect
sl@0
  1579
		COMMAND		RFile1	new
sl@0
  1580
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2055-001-Create_command05
sl@0
  1581
		COMMAND		RFile1	Close
sl@0
  1582
		COMMAND		RFile1	~
sl@0
  1583
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2055-001-SetSessionPath_command09
sl@0
  1584
		COMMAND		RFs1	SetAtt		PBASE-F32-RFS-PublicApi-2055-001-SetAtt_command10
sl@0
  1585
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2055-001-Delete_command11
sl@0
  1586
		COMMAND		RFs1	Close
sl@0
  1587
		COMMAND		RFs1	~
sl@0
  1588
	END_TEST_BLOCK	
sl@0
  1589
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2055
sl@0
  1590
sl@0
  1591
sl@0
  1592
sl@0
  1593
///////////////////////////////
sl@0
  1594
//
sl@0
  1595
// REPLASE
sl@0
  1596
//
sl@0
  1597
///////////////////////////////
sl@0
  1598
sl@0
  1599
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2056
sl@0
  1600
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2056
sl@0
  1601
//! @SYMAPI			RFs
sl@0
  1602
//! @SYMCreationDate		5/10/2006
sl@0
  1603
//! @SYMTestCaseDesc		Function Replace() negative test where old file does not exist.
sl@0
  1604
//!				Uses API elements: Replace().
sl@0
  1605
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1606
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
  1607
//!				3. Call Replace() and pass the parameters "none.txt" as old name and "replace.txt" as a new name of file.
sl@0
  1608
//!				4. Call Close() method.
sl@0
  1609
//! @SYMTestStatus		Implemented
sl@0
  1610
//! @SYMTestPriority		High
sl@0
  1611
//! @SYMTestExpectedResults	Function Replace() return KErrNotFound.
sl@0
  1612
//! @SYMTestType		CIT
sl@0
  1613
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1614
		CREATE_OBJECT	RFs	RFs1
sl@0
  1615
		COMMAND			RFs1	new
sl@0
  1616
		COMMAND			RFs1	Connect
sl@0
  1617
		COMMAND			RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2056-001-SetSessionPath_command03
sl@0
  1618
		COMMAND	!Error=-1	RFs1	Replace		PBASE-F32-RFS-PublicApi-2056-001-Replace_command04
sl@0
  1619
		COMMAND			RFs1	Close
sl@0
  1620
		COMMAND			RFs1	~
sl@0
  1621
	END_TEST_BLOCK	
sl@0
  1622
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2056
sl@0
  1623
sl@0
  1624
sl@0
  1625
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2057
sl@0
  1626
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2057
sl@0
  1627
//! @SYMAPI			RFs
sl@0
  1628
//! @SYMCreationDate		5/10/2006
sl@0
  1629
//! @SYMTestCaseDesc		Function Replace() negative test where old name of file is invalid.
sl@0
  1630
//!				Uses API elements: Replace().
sl@0
  1631
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1632
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
  1633
//!				3. Call Replace() and pass the parameters "<>:"/|.txt" as old name and "replace.txt" as a new name of file.
sl@0
  1634
//!				4. Call Close() method.
sl@0
  1635
//! @SYMTestStatus		Implemented
sl@0
  1636
//! @SYMTestPriority		High
sl@0
  1637
//! @SYMTestExpectedResults	Function Replace() return KErrBadName.
sl@0
  1638
//! @SYMTestType		CIT
sl@0
  1639
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1640
		CREATE_OBJECT	RFs	RFs1
sl@0
  1641
		CREATE_OBJECT	RFile	RFile1
sl@0
  1642
		COMMAND			RFs1	new
sl@0
  1643
		COMMAND			RFs1	Connect
sl@0
  1644
		COMMAND			RFile1	new
sl@0
  1645
		COMMAND			RFile1	Create		PBASE-F32-RFS-PublicApi-2057-001-Create_command05
sl@0
  1646
		COMMAND			RFile1	Close
sl@0
  1647
		COMMAND			RFile1	~
sl@0
  1648
		COMMAND			RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2057-001-SetSessionPath_command09
sl@0
  1649
		COMMAND	!Error=-28	RFs1	Replace		PBASE-F32-RFS-PublicApi-2057-001-Replace_command10
sl@0
  1650
		COMMAND			RFs1	Delete		PBASE-F32-RFS-PublicApi-2057-001-Delete_command11
sl@0
  1651
		COMMAND			RFs1	Close
sl@0
  1652
		COMMAND			RFs1	~
sl@0
  1653
	END_TEST_BLOCK	
sl@0
  1654
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2057
sl@0
  1655
sl@0
  1656
sl@0
  1657
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2058
sl@0
  1658
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2058
sl@0
  1659
//! @SYMAPI			RFs
sl@0
  1660
//! @SYMCreationDate		5/10/2006
sl@0
  1661
//! @SYMTestCaseDesc		Function Replace() negative test where new name of file is invalid.
sl@0
  1662
//!				Uses API elements: Replace().
sl@0
  1663
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1664
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
  1665
//!				3. Call Replace() and pass the parameters "testing.txt" as old name and "<>:"/|.txt" as a new name of file.
sl@0
  1666
//!				4. Call Close() method.
sl@0
  1667
//! @SYMTestStatus		Implemented
sl@0
  1668
//! @SYMTestPriority		High
sl@0
  1669
//! @SYMTestExpectedResults	Function Replace() return KErrBadName.
sl@0
  1670
//! @SYMTestType		CIT
sl@0
  1671
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1672
		CREATE_OBJECT	RFs	RFs1
sl@0
  1673
		CREATE_OBJECT	RFile	RFile1
sl@0
  1674
		COMMAND			RFs1	new
sl@0
  1675
		COMMAND			RFs1	Connect
sl@0
  1676
		COMMAND			RFile1	new
sl@0
  1677
		COMMAND			RFile1	Create		PBASE-F32-RFS-PublicApi-2058-001-Create_command05
sl@0
  1678
		COMMAND			RFile1	Close
sl@0
  1679
		COMMAND			RFile1	~
sl@0
  1680
		COMMAND			RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2058-001-SetSessionPath_command09
sl@0
  1681
		COMMAND	!Error=-28	RFs1	Replace		PBASE-F32-RFS-PublicApi-2058-001-Replace_command10
sl@0
  1682
		COMMAND			RFs1	Delete		PBASE-F32-RFS-PublicApi-2058-001-Delete_command11
sl@0
  1683
		COMMAND			RFs1	Close
sl@0
  1684
		COMMAND			RFs1	~
sl@0
  1685
	END_TEST_BLOCK	
sl@0
  1686
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2058
sl@0
  1687
sl@0
  1688
sl@0
  1689
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2059
sl@0
  1690
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2059
sl@0
  1691
//! @SYMAPI			RFs
sl@0
  1692
//! @SYMCreationDate		5/10/2006
sl@0
  1693
//! @SYMTestCaseDesc		Function Replace() test where new file exists and is a read-only file.
sl@0
  1694
//!				Uses API elements: Replace().
sl@0
  1695
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1696
//!				2. Create two files "T_Sfsrv59_old.txt" and "T_Sfsrv59_new.txt", making sure that the files are closed.
sl@0
  1697
//!				3. Call SetAtt() to set "T_Sfsrv59_new.txt" file's KEntryAttReadOnly attribute.
sl@0
  1698
//!				4. Call Replace() and pass the parameters "T_Sfsrv59_old.txt" as old name and "T_Sfsrv59_new.txt" as a new name of file.
sl@0
  1699
//!				5. Call Delete() method on old file name.
sl@0
  1700
//!				6. Call Close() method.
sl@0
  1701
//! @SYMTestStatus		Implemented
sl@0
  1702
//! @SYMTestPriority		High
sl@0
  1703
//! @SYMTestExpectedResults	Function Replace() returns KErrAccessDenied.
sl@0
  1704
//! @SYMTestType		CIT
sl@0
  1705
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1706
		CREATE_OBJECT	RFs	RFs1
sl@0
  1707
		CREATE_OBJECT	RFile	RFile1
sl@0
  1708
		COMMAND			RFs1	new
sl@0
  1709
		COMMAND			RFs1	Connect
sl@0
  1710
		COMMAND			RFile1	new
sl@0
  1711
		COMMAND			RFile1	Create		PBASE-F32-RFS-PublicApi-2059-001-Create_command05
sl@0
  1712
		COMMAND			RFile1	Close
sl@0
  1713
		COMMAND			RFile1	Create		PBASE-F32-RFS-PublicApi-2059-001-Create_command07
sl@0
  1714
		COMMAND			RFile1	Close
sl@0
  1715
		COMMAND			RFile1	~
sl@0
  1716
		COMMAND			RFs1	SetAtt		PBASE-F32-RFS-PublicApi-2059-001-SetAtt_command11
sl@0
  1717
		COMMAND			RFs1	Att		PBASE-F32-RFS-PublicApi-2059-001-Att_command12
sl@0
  1718
		COMMAND			RFs1	SetSessionPath	PBASE-F32-RFS-PublicApi-2059-001-SetSessionPath_command13
sl@0
  1719
		COMMAND	!Error=-21    	RFs1	Replace		PBASE-F32-RFS-PublicApi-2059-001-Replace_command14
sl@0
  1720
		COMMAND			RFs1	SetAtt		PBASE-F32-RFS-PublicApi-2059-001-SetAtt_command15
sl@0
  1721
		COMMAND			RFs1	Delete		PBASE-F32-RFS-PublicApi-2059-001-Delete_command16
sl@0
  1722
		COMMAND			RFs1	Delete		PBASE-F32-RFS-PublicApi-2059-001-Delete_command17
sl@0
  1723
		COMMAND			RFs1	Close
sl@0
  1724
		COMMAND			RFs1	~
sl@0
  1725
	END_TEST_BLOCK	
sl@0
  1726
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2059
sl@0
  1727
sl@0
  1728
sl@0
  1729
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2060
sl@0
  1730
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2060
sl@0
  1731
//! @SYMAPI			RFs
sl@0
  1732
//! @SYMCreationDate		5/10/2006
sl@0
  1733
//! @SYMTestCaseDesc		Function Replace() negative test where new path of new file has a other drive.
sl@0
  1734
//!				Uses API elements: Replace().
sl@0
  1735
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1736
//!				2. Call SetSessionPath() and pass "<DRIVE>:\" as parameter where <DRIVE> is a MMC drive letter.
sl@0
  1737
//!				3. Call Replace() and pass the parameters "T_Sfsrv60_old.txt" as old name and "\base\T_Sfsrv\T_Sfsrv60_new.txt" as a new name of file.
sl@0
  1738
//!				4. Call Close() method.
sl@0
  1739
//! @SYMTestStatus		Implemented
sl@0
  1740
//! @SYMTestPriority		High
sl@0
  1741
//! @SYMTestExpectedResults	Function Replace() return KErrArgument.
sl@0
  1742
//! @SYMTestType		CIT
sl@0
  1743
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1744
		CREATE_OBJECT	RFs	RFs1
sl@0
  1745
		CREATE_OBJECT	RFile	RFile1
sl@0
  1746
		COMMAND			RFs1	new
sl@0
  1747
		COMMAND			RFs1	Connect
sl@0
  1748
		COMMAND			RFile1	new
sl@0
  1749
		COMMAND			RFile1	Create		PBASE-F32-RFS-PublicApi-2060-001-Create_command05
sl@0
  1750
		COMMAND			RFile1	Close
sl@0
  1751
		COMMAND			RFile1	~
sl@0
  1752
		COMMAND			RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2060-001-SetSessionPath_command09
sl@0
  1753
		COMMAND	!Error=-6	RFs1	Replace		PBASE-F32-RFS-PublicApi-2060-001-Replace_command10
sl@0
  1754
		COMMAND			RFs1	Delete		PBASE-F32-RFS-PublicApi-2060-001-Delete_command11
sl@0
  1755
		COMMAND			RFs1	Close
sl@0
  1756
		COMMAND			RFs1	~
sl@0
  1757
	END_TEST_BLOCK	
sl@0
  1758
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2060
sl@0
  1759
sl@0
  1760
sl@0
  1761
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2061
sl@0
  1762
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2061
sl@0
  1763
//! @SYMAPI			RFs
sl@0
  1764
//! @SYMCreationDate		5/10/2006
sl@0
  1765
//! @SYMTestCaseDesc		Function Rename() negative test where new path of new file has a other drive.
sl@0
  1766
//!				Uses API elements: Rename().
sl@0
  1767
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1768
//!				2. Call SetSessionPath() and pass "<DRIVE>:\" as parameter where <DRIVE> is a MMC drive letter.
sl@0
  1769
//!				3. Call Rename() and pass the parameters "T_Sfsrv61_old.txt" as old name and "\base\T_Sfsrv\T_Sfsrv61_new.txt" as a new name of file.
sl@0
  1770
//!				4. Call Close() method.
sl@0
  1771
//! @SYMTestStatus		Implemented
sl@0
  1772
//! @SYMTestPriority		High
sl@0
  1773
//! @SYMTestExpectedResults	Function Rename() return KErrArgument.
sl@0
  1774
//! @SYMTestType		CIT
sl@0
  1775
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1776
		CREATE_OBJECT	RFs	RFs1
sl@0
  1777
		CREATE_OBJECT	RFile	RFile1
sl@0
  1778
		COMMAND			RFs1	new
sl@0
  1779
		COMMAND			RFs1	Connect
sl@0
  1780
		COMMAND			RFile1	new
sl@0
  1781
		COMMAND			RFile1	Create		PBASE-F32-RFS-PublicApi-2061-001-Create_command05
sl@0
  1782
		COMMAND			RFile1	Close
sl@0
  1783
		COMMAND			RFile1	~
sl@0
  1784
		COMMAND			RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2061-001-SetSessionPath_command09
sl@0
  1785
		COMMAND	!Error=-6	RFs1	Rename		PBASE-F32-RFS-PublicApi-2061-001-Rename_command10
sl@0
  1786
		COMMAND			RFs1	Delete		PBASE-F32-RFS-PublicApi-2061-001-Delete_command11
sl@0
  1787
		COMMAND			RFs1	Close
sl@0
  1788
		COMMAND			RFs1	~
sl@0
  1789
	END_TEST_BLOCK	
sl@0
  1790
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2061
sl@0
  1791
sl@0
  1792
sl@0
  1793
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2062
sl@0
  1794
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2062
sl@0
  1795
//! @SYMAPI			RFs
sl@0
  1796
//! @SYMCreationDate		5/10/2006
sl@0
  1797
//! @SYMTestCaseDesc		Function Rename() negative test where new name of file is invalid.
sl@0
  1798
//!				Uses API elements: Replace().
sl@0
  1799
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1800
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
  1801
//!				3. Call Rename() and pass the parameters "testing.txt" as old name and "<>:"/|.txt" as a new name of file.
sl@0
  1802
//!				4. Call Close() method.
sl@0
  1803
//! @SYMTestStatus		Implemented
sl@0
  1804
//! @SYMTestPriority		High
sl@0
  1805
//! @SYMTestExpectedResults	Function Rename() return KErrBadName.
sl@0
  1806
//! @SYMTestType		CIT
sl@0
  1807
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1808
		CREATE_OBJECT	RFs	RFs1
sl@0
  1809
		CREATE_OBJECT	RFile	RFile1
sl@0
  1810
		COMMAND			RFs1	new
sl@0
  1811
		COMMAND			RFs1	Connect
sl@0
  1812
		COMMAND			RFile1	new
sl@0
  1813
		COMMAND			RFile1	Create		PBASE-F32-RFS-PublicApi-2062-001-Create_command05
sl@0
  1814
		COMMAND			RFile1	Close
sl@0
  1815
		COMMAND			RFile1	~
sl@0
  1816
		COMMAND			RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2062-001-SetSessionPath_command09
sl@0
  1817
		COMMAND	!Error=-28	RFs1	Rename		PBASE-F32-RFS-PublicApi-2062-001-Rename_command10
sl@0
  1818
		COMMAND			RFs1	Delete		PBASE-F32-RFS-PublicApi-2062-001-Delete_command11
sl@0
  1819
		COMMAND			RFs1	Close
sl@0
  1820
		COMMAND			RFs1	~
sl@0
  1821
	END_TEST_BLOCK	
sl@0
  1822
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2062
sl@0
  1823
sl@0
  1824
sl@0
  1825
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2063
sl@0
  1826
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2063
sl@0
  1827
//! @SYMAPI			RFs
sl@0
  1828
//! @SYMCreationDate		5/10/2006
sl@0
  1829
//! @SYMTestCaseDesc		Function Rename() negative test where old name of file is invalid.
sl@0
  1830
//!				Uses API elements: Replace().
sl@0
  1831
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1832
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
  1833
//!				3. Call Rename() and pass the parameters "<>:"/|.txt" as old name and "rename.txt" as a new name of file.
sl@0
  1834
//!				4. Call Close() method.
sl@0
  1835
//! @SYMTestStatus		Implemented
sl@0
  1836
//! @SYMTestPriority		High
sl@0
  1837
//! @SYMTestExpectedResults	Function Rename() return KErrBadName.
sl@0
  1838
//! @SYMTestType		CIT
sl@0
  1839
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1840
		CREATE_OBJECT	RFs	RFs1
sl@0
  1841
		COMMAND			RFs1	new
sl@0
  1842
		COMMAND			RFs1	Connect
sl@0
  1843
		COMMAND			RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2063-001-SetSessionPath_command03
sl@0
  1844
		COMMAND	!Error=-28	RFs1	Rename		PBASE-F32-RFS-PublicApi-2063-001-Rename_command04
sl@0
  1845
		COMMAND			RFs1	Close
sl@0
  1846
		COMMAND			RFs1	~
sl@0
  1847
	END_TEST_BLOCK	
sl@0
  1848
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2063
sl@0
  1849
sl@0
  1850
sl@0
  1851
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2064
sl@0
  1852
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2064
sl@0
  1853
//! @SYMAPI			RFs
sl@0
  1854
//! @SYMCreationDate		5/10/2006
sl@0
  1855
//! @SYMTestCaseDesc		Function Rename() negative test where new file is exist and read only.
sl@0
  1856
//!				Uses API elements: Replace().
sl@0
  1857
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1858
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
  1859
//!				3. Call Rename() and pass the parameters "testing.txt" as old name and "rename.txt" as a new name of file.
sl@0
  1860
//!				4. Call Close() method.
sl@0
  1861
//! @SYMTestStatus		Implemented
sl@0
  1862
//! @SYMTestPriority		High
sl@0
  1863
//! @SYMTestExpectedResults	Function Rename() return KErrAlreadyExists.
sl@0
  1864
//! @SYMTestType		CIT
sl@0
  1865
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1866
		CREATE_OBJECT	RFs	RFs1
sl@0
  1867
		CREATE_OBJECT	RFile	RFile1
sl@0
  1868
		COMMAND			RFs1	new
sl@0
  1869
		COMMAND			RFs1	Connect
sl@0
  1870
		COMMAND			RFile1	new
sl@0
  1871
		COMMAND			RFile1	Create		PBASE-F32-RFS-PublicApi-2064-001-Create_command05
sl@0
  1872
		COMMAND			RFile1	Close
sl@0
  1873
		COMMAND			RFile1	Create		PBASE-F32-RFS-PublicApi-2064-001-Create_command07
sl@0
  1874
		COMMAND			RFile1	Close
sl@0
  1875
		COMMAND			RFile1	~
sl@0
  1876
		COMMAND			RFs1	SetAtt		PBASE-F32-RFS-PublicApi-2064-001-SetAtt_command11
sl@0
  1877
		COMMAND			RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2064-001-SetSessionPath_command12
sl@0
  1878
		COMMAND	!Error=-11	RFs1	Rename		PBASE-F32-RFS-PublicApi-2064-001-Rename_command13
sl@0
  1879
		COMMAND			RFs1	SetAtt		PBASE-F32-RFS-PublicApi-2064-001-SetAtt_command14
sl@0
  1880
		COMMAND			RFs1	Delete		PBASE-F32-RFS-PublicApi-2064-001-Delete_command15
sl@0
  1881
		COMMAND			RFs1	Delete		PBASE-F32-RFS-PublicApi-2064-001-Delete_command16
sl@0
  1882
		COMMAND			RFs1	Close
sl@0
  1883
		COMMAND			RFs1	~
sl@0
  1884
	END_TEST_BLOCK	
sl@0
  1885
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2064
sl@0
  1886
sl@0
  1887
sl@0
  1888
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2065
sl@0
  1889
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2065
sl@0
  1890
//! @SYMAPI			RFs
sl@0
  1891
//! @SYMCreationDate		5/10/2006
sl@0
  1892
//! @SYMTestCaseDesc		Function Rename() negative test where old file does not exist.
sl@0
  1893
//!				Uses API elements: Replace().
sl@0
  1894
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1895
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
  1896
//!				3. Call Rename() and pass the parameters "none.txt" as old name and "rename.txt" as a new name of file.
sl@0
  1897
//!				4. Call Close() method.
sl@0
  1898
//! @SYMTestStatus		Implemented
sl@0
  1899
//! @SYMTestPriority		High
sl@0
  1900
//! @SYMTestExpectedResults	Function Rename() return KErrNotFound.
sl@0
  1901
//! @SYMTestType		CIT
sl@0
  1902
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1903
		CREATE_OBJECT	RFs	RFs1
sl@0
  1904
		COMMAND			RFs1	new
sl@0
  1905
		COMMAND			RFs1	Connect
sl@0
  1906
		COMMAND			RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2065-001-SetSessionPath_command03
sl@0
  1907
		COMMAND	!Error=-1	RFs1	Rename		PBASE-F32-RFS-PublicApi-2065-001-Rename_command04
sl@0
  1908
		COMMAND			RFs1	Close
sl@0
  1909
		COMMAND			RFs1	~
sl@0
  1910
	END_TEST_BLOCK	
sl@0
  1911
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2065
sl@0
  1912
sl@0
  1913
sl@0
  1914
sl@0
  1915
///////////////////////////////
sl@0
  1916
//
sl@0
  1917
// ATT
sl@0
  1918
//
sl@0
  1919
///////////////////////////////
sl@0
  1920
sl@0
  1921
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2066
sl@0
  1922
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2066
sl@0
  1923
//! @SYMAPI			RFs
sl@0
  1924
//! @SYMCreationDate		5/10/2006
sl@0
  1925
//! @SYMTestCaseDesc		Functions Att() negative test where file does not exist.
sl@0
  1926
//!				Uses API elements: Att().
sl@0
  1927
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1928
//!				2. Call Att() and pass parameter "<DRIVE>:\base\T_Sfsrv\none.txt" as name of file where <DRIVE> is a test drive letter.
sl@0
  1929
//!				3. Call Close() method.
sl@0
  1930
//! @SYMTestStatus		Implemented
sl@0
  1931
//! @SYMTestPriority		High
sl@0
  1932
//! @SYMTestExpectedResults	Function Att() return KErrNotFound.
sl@0
  1933
//! @SYMTestType		CIT
sl@0
  1934
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1935
		CREATE_OBJECT	RFs	RFs1
sl@0
  1936
		COMMAND			RFs1	new
sl@0
  1937
		COMMAND			RFs1	Connect
sl@0
  1938
		COMMAND	!Error=-1	RFs1	Att		PBASE-F32-RFS-PublicApi-2066-001-Att_command03
sl@0
  1939
		COMMAND			RFs1	Close
sl@0
  1940
		COMMAND			RFs1	~
sl@0
  1941
	END_TEST_BLOCK	
sl@0
  1942
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2066
sl@0
  1943
sl@0
  1944
sl@0
  1945
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2067
sl@0
  1946
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2067
sl@0
  1947
//! @SYMAPI			RFs
sl@0
  1948
//! @SYMCreationDate		5/10/2006
sl@0
  1949
//! @SYMTestCaseDesc		Functions Att() negative test where name of file is invalid.
sl@0
  1950
//!				Uses API elements: Att().
sl@0
  1951
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1952
//!				2. Call Att() and pass parameter "<>:"/|.txt" as name of file.
sl@0
  1953
//!				3. Call Close() method.
sl@0
  1954
//! @SYMTestStatus		Implemented
sl@0
  1955
//! @SYMTestPriority		High
sl@0
  1956
//! @SYMTestExpectedResults	Function Att() return KErrBadName.
sl@0
  1957
//! @SYMTestType		CIT
sl@0
  1958
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1959
		CREATE_OBJECT	RFs	RFs1
sl@0
  1960
		COMMAND			RFs1	new
sl@0
  1961
		COMMAND			RFs1	Connect
sl@0
  1962
		COMMAND	!Error=-28	RFs1	Att		PBASE-F32-RFS-PublicApi-2067-001-Att_command03
sl@0
  1963
		COMMAND			RFs1	Close
sl@0
  1964
		COMMAND			RFs1	~
sl@0
  1965
	END_TEST_BLOCK	
sl@0
  1966
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2067
sl@0
  1967
sl@0
  1968
sl@0
  1969
sl@0
  1970
///////////////////////////////
sl@0
  1971
//
sl@0
  1972
// SETATT
sl@0
  1973
//
sl@0
  1974
///////////////////////////////
sl@0
  1975
sl@0
  1976
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2068
sl@0
  1977
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2068
sl@0
  1978
//! @SYMAPI			RFs
sl@0
  1979
//! @SYMCreationDate		5/10/2006
sl@0
  1980
//! @SYMTestCaseDesc		Functions SetAtt() negative test where file does not exist.
sl@0
  1981
//!				Uses API elements: SetAtt().
sl@0
  1982
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1983
//!				2. Call SetAtt() and pass parameter "none.txt" as name of file.
sl@0
  1984
//!				3. Call Close() method.
sl@0
  1985
//! @SYMTestStatus		Implemented
sl@0
  1986
//! @SYMTestPriority		High
sl@0
  1987
//! @SYMTestExpectedResults	Function SetAtt() return KErrNotFound.
sl@0
  1988
//! @SYMTestType		CIT
sl@0
  1989
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  1990
		CREATE_OBJECT	RFs	RFs1
sl@0
  1991
		COMMAND			RFs1	new
sl@0
  1992
		COMMAND			RFs1	Connect
sl@0
  1993
		COMMAND	!Error=-1	RFs1	SetAtt		PBASE-F32-RFS-PublicApi-2068-001-SetAtt_command03
sl@0
  1994
		COMMAND			RFs1	Close
sl@0
  1995
		COMMAND			RFs1	~
sl@0
  1996
	END_TEST_BLOCK	
sl@0
  1997
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2068
sl@0
  1998
sl@0
  1999
sl@0
  2000
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2069
sl@0
  2001
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2069
sl@0
  2002
//! @SYMAPI			RFs
sl@0
  2003
//! @SYMCreationDate		5/10/2006
sl@0
  2004
//! @SYMTestCaseDesc		Functions Att() negative test where name of file is invalid.
sl@0
  2005
//!				Uses API elements: AttSetAtt).
sl@0
  2006
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2007
//!				2. Call SetAtt() and pass parameter "<>:"/|.txt" as name of file.
sl@0
  2008
//!				3. Call Close() method.
sl@0
  2009
//! @SYMTestStatus		Implemented
sl@0
  2010
//! @SYMTestPriority		High
sl@0
  2011
//! @SYMTestExpectedResults	Function SetAtt() return KErrBadName.
sl@0
  2012
//! @SYMTestType		CIT
sl@0
  2013
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2014
		CREATE_OBJECT	RFs	RFs1
sl@0
  2015
		COMMAND			RFs1	new
sl@0
  2016
		COMMAND			RFs1	Connect
sl@0
  2017
		COMMAND	!Error=-28	RFs1	SetAtt		PBASE-F32-RFS-PublicApi-2069-001-SetAtt_command03
sl@0
  2018
		COMMAND			RFs1	Close
sl@0
  2019
		COMMAND			RFs1	~
sl@0
  2020
	END_TEST_BLOCK	
sl@0
  2021
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2069
sl@0
  2022
sl@0
  2023
sl@0
  2024
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2070
sl@0
  2025
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2070
sl@0
  2026
//! @SYMAPI			RFs
sl@0
  2027
//! @SYMCreationDate		5/10/2006
sl@0
  2028
//! @SYMTestCaseDesc		Functions SetAtt() test where the attribute to be set is too big number.
sl@0
  2029
//!				Uses API elements: SetAtt().
sl@0
  2030
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2031
//!				2. Call SetAtt() and pass parameters "testing.txt" as name and "99999999" as set attribute.
sl@0
  2032
//!				3. Call Close() method.
sl@0
  2033
//! @SYMTestStatus		Implemented
sl@0
  2034
//! @SYMTestPriority		Critical
sl@0
  2035
//! @SYMTestExpectedResults	Function SetAtt() return KErrNone.
sl@0
  2036
//! @SYMTestType		CIT
sl@0
  2037
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2038
		CREATE_OBJECT	RFs	RFs1
sl@0
  2039
		CREATE_OBJECT	RFile	RFile1
sl@0
  2040
		COMMAND		RFs1	new
sl@0
  2041
		COMMAND		RFs1	Connect
sl@0
  2042
		COMMAND		RFile1	new
sl@0
  2043
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2070-001-Create_command05
sl@0
  2044
		COMMAND		RFile1	Close
sl@0
  2045
		COMMAND		RFile1	~
sl@0
  2046
		COMMAND		RFs1	SetAtt		PBASE-F32-RFS-PublicApi-2070-001-SetAtt_command09
sl@0
  2047
		COMMAND		RFs1	SetAtt		PBASE-F32-RFS-PublicApi-2070-001-SetAtt_command10
sl@0
  2048
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2070-001-Delete_command11
sl@0
  2049
		COMMAND		RFs1	Close
sl@0
  2050
		COMMAND		RFs1	~
sl@0
  2051
	END_TEST_BLOCK	
sl@0
  2052
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2070
sl@0
  2053
sl@0
  2054
sl@0
  2055
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2071
sl@0
  2056
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2071
sl@0
  2057
//! @SYMAPI			RFs
sl@0
  2058
//! @SYMCreationDate		5/10/2006
sl@0
  2059
//! @SYMTestCaseDesc		Functions SetAtt() test where the sets attribute "KEntryAttVolume" for RAM drive.
sl@0
  2060
//!				Uses API elements: SetAtt(), Att().
sl@0
  2061
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2062
//!				2. Call SetAtt() and pass parameters "<DRIVE>:\" as name and "KEntryAttVolume" as attribute to be set, where <DRIVE> is a test drive letter.
sl@0
  2063
//!				3. Call Att() and check that attribute "KEntryAttVolume" is ignored.
sl@0
  2064
//!				3. Call Close() method.
sl@0
  2065
//! @SYMTestStatus		Implemented
sl@0
  2066
//! @SYMTestPriority		High
sl@0
  2067
//! @SYMTestExpectedResults	Function SetAtt() and Att() return KErrBadName, as "<DRIVE>:\" is not a valid file name or directory
sl@0
  2068
//! @SYMTestType		CIT
sl@0
  2069
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2070
		CREATE_OBJECT	RFs	RFs1
sl@0
  2071
		COMMAND			RFs1	new
sl@0
  2072
		COMMAND			RFs1	Connect
sl@0
  2073
		COMMAND	!Error=-28	RFs1	SetAtt		PBASE-F32-RFS-PublicApi-2071-001-SetAtt_command04
sl@0
  2074
		COMMAND	!Error=-28	RFs1	Att		PBASE-F32-RFS-PublicApi-2071-001-Att_command05
sl@0
  2075
		COMMAND			RFs1	Close
sl@0
  2076
		COMMAND			RFs1	~
sl@0
  2077
	END_TEST_BLOCK	
sl@0
  2078
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2071
sl@0
  2079
sl@0
  2080
sl@0
  2081
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2072
sl@0
  2082
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2072
sl@0
  2083
//! @SYMAPI			RFs
sl@0
  2084
//! @SYMCreationDate		5/10/2006
sl@0
  2085
//! @SYMTestCaseDesc		Functions SetAtt() negative test where attribute appears in both bitmasks.
sl@0
  2086
//!				Uses API elements: SetAtt().
sl@0
  2087
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2088
//!				2. Call SetAtt() and pass parameters "testing.txt" as name and "KEntryAttReadOnly" as clear attribute.
sl@0
  2089
//!				   and "KEntryAttReadOnly" as set attribute.
sl@0
  2090
//!				3. Call Close() method.
sl@0
  2091
//! @SYMTestStatus		Implemented
sl@0
  2092
//! @SYMTestPriority		High
sl@0
  2093
//! @SYMTestExpectedResults	Function SetAtt() return FSCLIENT panic Code = 21.
sl@0
  2094
//! @SYMTestType		CIT
sl@0
  2095
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2096
		CREATE_OBJECT	RFs	RFs1
sl@0
  2097
		CREATE_OBJECT	RFile	RFile1
sl@0
  2098
		COMMAND		RFs1	new
sl@0
  2099
		COMMAND		RFs1	Connect
sl@0
  2100
		COMMAND		RFile1	new
sl@0
  2101
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2072-001-Create_command05
sl@0
  2102
		COMMAND		RFile1	Close
sl@0
  2103
		COMMAND		RFile1	~
sl@0
  2104
		COMMAND	!Error=-28	RFs1	SetAtt		PBASE-F32-RFS-PublicApi-2072-001-SetAtt_command09
sl@0
  2105
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2072-001-Delete_command10
sl@0
  2106
		COMMAND		RFs1	Close
sl@0
  2107
		COMMAND		RFs1	~
sl@0
  2108
	END_TEST_BLOCK	!PanicCode=21 !PanicString="FSCLIENT panic"
sl@0
  2109
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2110
		CREATE_OBJECT	RFs	RFs1
sl@0
  2111
		COMMAND		RFs1	new
sl@0
  2112
		COMMAND		RFs1	Connect
sl@0
  2113
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2072-002-Delete_command03
sl@0
  2114
		COMMAND		RFs1	Close
sl@0
  2115
		COMMAND		RFs1	~
sl@0
  2116
	END_TEST_BLOCK	
sl@0
  2117
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2072
sl@0
  2118
sl@0
  2119
sl@0
  2120
sl@0
  2121
///////////////////////////////
sl@0
  2122
//
sl@0
  2123
// MODIFIED
sl@0
  2124
//
sl@0
  2125
///////////////////////////////
sl@0
  2126
sl@0
  2127
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2073
sl@0
  2128
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2073
sl@0
  2129
//! @SYMAPI			RFs
sl@0
  2130
//! @SYMCreationDate		5/10/2006
sl@0
  2131
//! @SYMTestCaseDesc		Functions Modified() negative test where name of file is invalid.
sl@0
  2132
//!				Uses API elements: Modified().
sl@0
  2133
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2134
//!				2. Call Modified() and pass "<>:"/|.txt" as parameter.
sl@0
  2135
//!				3. Call Close() method.
sl@0
  2136
//! @SYMTestStatus		Implemented
sl@0
  2137
//! @SYMTestPriority		High
sl@0
  2138
//! @SYMTestExpectedResults	Function Modified() return KErrBadName.
sl@0
  2139
//! @SYMTestType		CIT
sl@0
  2140
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2141
		CREATE_OBJECT	RFs	RFs1
sl@0
  2142
		COMMAND			RFs1	new
sl@0
  2143
		COMMAND			RFs1	Connect
sl@0
  2144
		COMMAND	!Error=-28	RFs1	Modified		PBASE-F32-RFS-PublicApi-2073-001-Modified_command03
sl@0
  2145
		COMMAND			RFs1	Close
sl@0
  2146
		COMMAND			RFs1	~
sl@0
  2147
	END_TEST_BLOCK	
sl@0
  2148
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2073
sl@0
  2149
sl@0
  2150
sl@0
  2151
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2074
sl@0
  2152
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2074
sl@0
  2153
//! @SYMAPI			RFs
sl@0
  2154
//! @SYMCreationDate		5/10/2006
sl@0
  2155
//! @SYMTestCaseDesc		Functions Modified() negative test where file does not exist.
sl@0
  2156
//!				Uses API elements: Modified().
sl@0
  2157
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2158
//!				2. Call Modified() and pass "none.txt" as parameter.
sl@0
  2159
//!				3. Call Close() method.
sl@0
  2160
//! @SYMTestStatus		Implemented
sl@0
  2161
//! @SYMTestPriority		High
sl@0
  2162
//! @SYMTestExpectedResults	Function Modified() return KErrNotFound.
sl@0
  2163
//! @SYMTestType		CIT
sl@0
  2164
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2165
		CREATE_OBJECT	RFs	RFs1
sl@0
  2166
		COMMAND			RFs1	new
sl@0
  2167
		COMMAND			RFs1	Connect
sl@0
  2168
		COMMAND	!Error=-1	RFs1	Modified		PBASE-F32-RFS-PublicApi-2074-001-Modified_command03
sl@0
  2169
		COMMAND			RFs1	Close
sl@0
  2170
		COMMAND			RFs1	~
sl@0
  2171
	END_TEST_BLOCK	
sl@0
  2172
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2074
sl@0
  2173
sl@0
  2174
sl@0
  2175
sl@0
  2176
///////////////////////////////
sl@0
  2177
//
sl@0
  2178
// SETMODIFIED
sl@0
  2179
//
sl@0
  2180
///////////////////////////////
sl@0
  2181
sl@0
  2182
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2075
sl@0
  2183
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2075
sl@0
  2184
//! @SYMAPI			RFs
sl@0
  2185
//! @SYMCreationDate		5/10/2006
sl@0
  2186
//! @SYMTestCaseDesc		Functions SetModified() negative test where file does not exist.
sl@0
  2187
//!				Uses API elements: SetModified().
sl@0
  2188
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2189
//!				2. Call SetModified() and pass parameters "20060101:" as time and "none.txt" as name of file.
sl@0
  2190
//!				3. Call Close() method.
sl@0
  2191
//! @SYMTestStatus		Implemented
sl@0
  2192
//! @SYMTestPriority		High
sl@0
  2193
//! @SYMTestExpectedResults	Function SetModified() return KErrNotFound.
sl@0
  2194
//! @SYMTestType		CIT
sl@0
  2195
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2196
		CREATE_OBJECT	RFs	RFs1
sl@0
  2197
		COMMAND			RFs1	new
sl@0
  2198
		COMMAND			RFs1	Connect
sl@0
  2199
		COMMAND	!Error=-1	RFs1	SetModified		PBASE-F32-RFS-PublicApi-2075-001-SetModified_command03
sl@0
  2200
		COMMAND			RFs1	Close
sl@0
  2201
		COMMAND			RFs1	~
sl@0
  2202
	END_TEST_BLOCK	
sl@0
  2203
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2075
sl@0
  2204
sl@0
  2205
sl@0
  2206
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2076
sl@0
  2207
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2076
sl@0
  2208
//! @SYMAPI			RFs
sl@0
  2209
//! @SYMCreationDate		5/10/2006
sl@0
  2210
//! @SYMTestCaseDesc		Functions SetModified() negative test where name of file is invalid.
sl@0
  2211
//!				Uses API elements: SetModified().
sl@0
  2212
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2213
//!				2. Call SetModified() and pass parameters "20060101:" as time and "<>:"/|.txt" as name of file.
sl@0
  2214
//!				3. Call Close() method.
sl@0
  2215
//! @SYMTestStatus		Implemented
sl@0
  2216
//! @SYMTestPriority		High
sl@0
  2217
//! @SYMTestExpectedResults	Function SetModified() return KErrBadName.
sl@0
  2218
//! @SYMTestType		CIT
sl@0
  2219
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2220
		CREATE_OBJECT	RFs	RFs1
sl@0
  2221
		COMMAND			RFs1	new
sl@0
  2222
		COMMAND			RFs1	Connect
sl@0
  2223
		COMMAND	!Error=-28	RFs1	SetModified		PBASE-F32-RFS-PublicApi-2076-001-SetModified_command03
sl@0
  2224
		COMMAND			RFs1	Close
sl@0
  2225
		COMMAND			RFs1	~
sl@0
  2226
	END_TEST_BLOCK	
sl@0
  2227
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2076
sl@0
  2228
sl@0
  2229
sl@0
  2230
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2077
sl@0
  2231
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2077
sl@0
  2232
//! @SYMAPI			RFs
sl@0
  2233
//! @SYMCreationDate		5/10/2006
sl@0
  2234
//! @SYMTestCaseDesc		Functions SetModified() test where time is 0.
sl@0
  2235
//!				Uses API elements: SetModified().
sl@0
  2236
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2237
//!				2. Call SetModified() and pass parameters 0-time and "test.txt" (that resides on a MMC drive) as name of file.
sl@0
  2238
//!				3. Call Close() method.
sl@0
  2239
//! @SYMTestStatus		Implemented
sl@0
  2240
//! @SYMTestPriority		High
sl@0
  2241
//! @SYMTestExpectedResults	Function SetModified() return KErrNone.
sl@0
  2242
//! @SYMTestType		CIT
sl@0
  2243
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2244
		CREATE_OBJECT	RFs	RFs1
sl@0
  2245
		CREATE_OBJECT	RFile	RFile1
sl@0
  2246
		COMMAND		RFs1	new
sl@0
  2247
		COMMAND		RFs1	Connect
sl@0
  2248
		COMMAND		RFile1	new
sl@0
  2249
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2077-001-Create_command05
sl@0
  2250
		COMMAND		RFile1	Close
sl@0
  2251
		COMMAND		RFile1	~
sl@0
  2252
		COMMAND		RFs1	SetModified		PBASE-F32-RFS-PublicApi-2077-001-SetModified_command09
sl@0
  2253
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2077-001-Delete_command10
sl@0
  2254
		COMMAND		RFs1	Close
sl@0
  2255
		COMMAND		RFs1	~
sl@0
  2256
	END_TEST_BLOCK	
sl@0
  2257
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2077
sl@0
  2258
sl@0
  2259
sl@0
  2260
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2078
sl@0
  2261
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2078
sl@0
  2262
//! @SYMAPI			RFs
sl@0
  2263
//! @SYMCreationDate		5/10/2006
sl@0
  2264
//! @SYMTestCaseDesc		Functions SetModified() negative test when the file is read only and open.
sl@0
  2265
//!				Uses API elements: SetModified().
sl@0
  2266
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2267
//!				2. Call Open();
sl@0
  2268
//!				3. Call SetModified() and pass parameters "20060101:" as time and "testing.txt" as name of file.
sl@0
  2269
//!				4. Call Close() method.
sl@0
  2270
//! @SYMTestStatus		Implemented
sl@0
  2271
//! @SYMTestPriority		High
sl@0
  2272
//! @SYMTestExpectedResults	Function SetModified() return KErrInUse.
sl@0
  2273
//! @SYMTestType		CIT
sl@0
  2274
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2275
		CREATE_OBJECT	RFs	RFs1
sl@0
  2276
		CREATE_OBJECT	RFile	RFile1
sl@0
  2277
		COMMAND			RFs1	new
sl@0
  2278
		COMMAND			RFs1	Connect
sl@0
  2279
		COMMAND			RFile1	new
sl@0
  2280
		COMMAND			RFile1	Create		PBASE-F32-RFS-PublicApi-2078-001-Create_command05
sl@0
  2281
		COMMAND			RFile1	Close
sl@0
  2282
		COMMAND			RFs1	SetAtt		PBASE-F32-RFS-PublicApi-2078-001-SetAtt_command08
sl@0
  2283
		COMMAND			RFile1	Open		PBASE-F32-RFS-PublicApi-2078-001-Open_command10
sl@0
  2284
		COMMAND	!Error=-14	RFs1	SetModified		PBASE-F32-RFS-PublicApi-2078-001-SetModified_command12
sl@0
  2285
		COMMAND			RFile1	Close
sl@0
  2286
		COMMAND			RFile1	~
sl@0
  2287
		COMMAND			RFs1	SetAtt		PBASE-F32-RFS-PublicApi-2078-001-SetAtt_command17
sl@0
  2288
		COMMAND			RFs1	Delete		PBASE-F32-RFS-PublicApi-2078-001-Delete_command18
sl@0
  2289
		COMMAND			RFs1	Close
sl@0
  2290
		COMMAND			RFs1	~
sl@0
  2291
	END_TEST_BLOCK	
sl@0
  2292
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2078
sl@0
  2293
sl@0
  2294
sl@0
  2295
sl@0
  2296
///////////////////////////////
sl@0
  2297
//
sl@0
  2298
// ENTRY
sl@0
  2299
//
sl@0
  2300
///////////////////////////////
sl@0
  2301
sl@0
  2302
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2079
sl@0
  2303
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2079
sl@0
  2304
//! @SYMAPI			RFs
sl@0
  2305
//! @SYMCreationDate		5/10/2006
sl@0
  2306
//! @SYMTestCaseDesc		Functions Entry() negative test where name of file is invalid.
sl@0
  2307
//!				Uses API elements: Entry().
sl@0
  2308
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2309
//!				2. Call Entry() and pass "<>:"/|.txt" as parameter.
sl@0
  2310
//!				3. Call Close() method.
sl@0
  2311
//! @SYMTestStatus		Implemented
sl@0
  2312
//! @SYMTestPriority		High
sl@0
  2313
//! @SYMTestExpectedResults	Function Entry() return KErrBadName.
sl@0
  2314
//! @SYMTestType		CIT
sl@0
  2315
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2316
		CREATE_OBJECT	RFs	RFs1
sl@0
  2317
		COMMAND			RFs1	new
sl@0
  2318
		COMMAND			RFs1	Connect
sl@0
  2319
		COMMAND	!Error=-28	RFs1	Entry		PBASE-F32-RFS-PublicApi-2079-001-Entry_command03
sl@0
  2320
		COMMAND			RFs1	Close
sl@0
  2321
		COMMAND			RFs1	~
sl@0
  2322
	END_TEST_BLOCK	
sl@0
  2323
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2079
sl@0
  2324
sl@0
  2325
sl@0
  2326
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2080
sl@0
  2327
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2080
sl@0
  2328
//! @SYMAPI			RFs
sl@0
  2329
//! @SYMCreationDate		5/10/2006
sl@0
  2330
//! @SYMTestCaseDesc		Functions Entry() negative test where file does not exist.
sl@0
  2331
//!				Uses API elements: Entry().
sl@0
  2332
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2333
//!				2. Call Entry() and pass "none.txt" as parameter.
sl@0
  2334
//!				3. Call Close() method.
sl@0
  2335
//! @SYMTestStatus		Implemented
sl@0
  2336
//! @SYMTestPriority		High
sl@0
  2337
//! @SYMTestExpectedResults	Function Entry() return KErrNotFound.
sl@0
  2338
//! @SYMTestType		CIT
sl@0
  2339
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2340
		CREATE_OBJECT	RFs	RFs1
sl@0
  2341
		COMMAND			RFs1	new
sl@0
  2342
		COMMAND			RFs1	Connect
sl@0
  2343
		COMMAND	!Error=-1	RFs1	Entry		PBASE-F32-RFS-PublicApi-2080-001-Entry_command03
sl@0
  2344
		COMMAND			RFs1	Close
sl@0
  2345
		COMMAND			RFs1	~
sl@0
  2346
	END_TEST_BLOCK	
sl@0
  2347
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2080
sl@0
  2348
sl@0
  2349
sl@0
  2350
sl@0
  2351
///////////////////////////////
sl@0
  2352
//
sl@0
  2353
// SETENTRY
sl@0
  2354
//
sl@0
  2355
///////////////////////////////
sl@0
  2356
sl@0
  2357
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2081
sl@0
  2358
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2081
sl@0
  2359
//! @SYMAPI			RFs
sl@0
  2360
//! @SYMCreationDate		5/10/2006
sl@0
  2361
//! @SYMTestCaseDesc		Functions SetEntry() negative test where file does not exist.
sl@0
  2362
//!				Uses API elements: SetEntry().
sl@0
  2363
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2364
//!				2. Call SetEntry() and pass "none.txt" as parameter.
sl@0
  2365
//!				3. Call Close() method.
sl@0
  2366
//! @SYMTestStatus		Implemented
sl@0
  2367
//! @SYMTestPriority		High
sl@0
  2368
//! @SYMTestExpectedResults	Function SetEntry() return KErrNotFound.
sl@0
  2369
//! @SYMTestType		CIT
sl@0
  2370
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2371
		CREATE_OBJECT	RFs	RFs1
sl@0
  2372
		COMMAND			RFs1	new
sl@0
  2373
		COMMAND			RFs1	Connect
sl@0
  2374
		COMMAND	!Error=-1	RFs1	SetEntry		PBASE-F32-RFS-PublicApi-2081-001-SetEntry_command03
sl@0
  2375
		COMMAND			RFs1	Close
sl@0
  2376
		COMMAND			RFs1	~
sl@0
  2377
	END_TEST_BLOCK	
sl@0
  2378
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2081
sl@0
  2379
sl@0
  2380
sl@0
  2381
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2082
sl@0
  2382
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2082
sl@0
  2383
//! @SYMAPI			RFs
sl@0
  2384
//! @SYMCreationDate		5/10/2006
sl@0
  2385
//! @SYMTestCaseDesc		Functions SetEntry() negative test where name of file is invalid.
sl@0
  2386
//!				Uses API elements: SetEntry().
sl@0
  2387
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2388
//!				2. Call SetEntry() and pass "<>:"/|.txt" as parameter.
sl@0
  2389
//!				3. Call Close() method.
sl@0
  2390
//! @SYMTestStatus		Implemented
sl@0
  2391
//! @SYMTestPriority		High
sl@0
  2392
//! @SYMTestExpectedResults	Function SetEntry() return KErrBadName.
sl@0
  2393
//! @SYMTestType		CIT
sl@0
  2394
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2395
		CREATE_OBJECT	RFs	RFs1
sl@0
  2396
		COMMAND			RFs1	new
sl@0
  2397
		COMMAND			RFs1	Connect
sl@0
  2398
		COMMAND	!Error=-28	RFs1	SetEntry		PBASE-F32-RFS-PublicApi-2082-001-SetEntry_command03
sl@0
  2399
		COMMAND			RFs1	Close
sl@0
  2400
		COMMAND			RFs1	~
sl@0
  2401
	END_TEST_BLOCK	
sl@0
  2402
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2082
sl@0
  2403
sl@0
  2404
sl@0
  2405
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2083
sl@0
  2406
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2083
sl@0
  2407
//! @SYMAPI			RFs
sl@0
  2408
//! @SYMCreationDate		5/10/2006
sl@0
  2409
//! @SYMTestCaseDesc		Functions SetEntry() test where set attribute is a big number.
sl@0
  2410
//!				Uses API elements: SetEntry().
sl@0
  2411
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2412
//!				2. Call SetEntry() and pass parameters "test.txt" as name and "2147483647" (hex FFFFFFFF) as set attribute of file.
sl@0
  2413
//!				3. Call Close() method.
sl@0
  2414
//! @SYMTestStatus		Implemented
sl@0
  2415
//! @SYMTestPriority		Critical
sl@0
  2416
//! @SYMTestExpectedResults	Function SetEntry() return KErrNone.
sl@0
  2417
//! @SYMTestType		CIT
sl@0
  2418
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2419
		CREATE_OBJECT	RFs	RFs1
sl@0
  2420
		CREATE_OBJECT	RFile	RFile1
sl@0
  2421
		COMMAND		RFs1	new
sl@0
  2422
		COMMAND		RFs1	Connect
sl@0
  2423
		COMMAND		RFile1	new
sl@0
  2424
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2083-001-Create_command05
sl@0
  2425
		COMMAND		RFile1	Close
sl@0
  2426
		COMMAND		RFile1	~
sl@0
  2427
		COMMAND		RFs1	SetEntry		PBASE-F32-RFS-PublicApi-2083-001-SetEntry_command09
sl@0
  2428
		COMMAND		RFs1	SetEntry		PBASE-F32-RFS-PublicApi-2083-001-SetEntry_command10
sl@0
  2429
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2083-001-Delete_command11
sl@0
  2430
		COMMAND		RFs1	Close
sl@0
  2431
		COMMAND		RFs1	~
sl@0
  2432
	END_TEST_BLOCK	
sl@0
  2433
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2083
sl@0
  2434
sl@0
  2435
sl@0
  2436
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2084
sl@0
  2437
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2084
sl@0
  2438
//! @SYMAPI			RFs
sl@0
  2439
//! @SYMCreationDate		5/10/2006
sl@0
  2440
//! @SYMTestCaseDesc		Functions SetEntry() negative test where an attribute is set and unset in the same time.
sl@0
  2441
//!				Uses API elements: SetEntry().
sl@0
  2442
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2443
//!				2. Call SetEntry() and pass parameters "test.txt" as name and KEntryAttReadOnly as both clear and set attribute.
sl@0
  2444
//!				3. Call Close() method.
sl@0
  2445
//! @SYMTestStatus		Implemented
sl@0
  2446
//! @SYMTestPriority		High
sl@0
  2447
//! @SYMTestExpectedResults	Function SetEntry() return FSCLIENT panic Code = 21.
sl@0
  2448
//! @SYMTestType		CIT
sl@0
  2449
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2450
		CREATE_OBJECT	RFs	RFs1
sl@0
  2451
		CREATE_OBJECT	RFile	RFile1
sl@0
  2452
		COMMAND		RFs1	new
sl@0
  2453
		COMMAND		RFs1	Connect
sl@0
  2454
		COMMAND		RFile1	new
sl@0
  2455
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2084-001-Create_command05
sl@0
  2456
		COMMAND		RFile1	Close
sl@0
  2457
		COMMAND		RFile1	~
sl@0
  2458
		COMMAND		RFs1	SetEntry		PBASE-F32-RFS-PublicApi-2084-001-SetEntry_command09
sl@0
  2459
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2084-001-Delete_command10
sl@0
  2460
		COMMAND		RFs1	Close
sl@0
  2461
		COMMAND		RFs1	~
sl@0
  2462
	END_TEST_BLOCK	!PanicCode=21 !PanicString="FSCLIENT panic"
sl@0
  2463
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2464
		CREATE_OBJECT	RFs	RFs1
sl@0
  2465
		COMMAND		RFs1	new
sl@0
  2466
		COMMAND		RFs1	Connect
sl@0
  2467
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2084-002-Delete_command03
sl@0
  2468
		COMMAND		RFs1	Close
sl@0
  2469
		COMMAND		RFs1	~
sl@0
  2470
	END_TEST_BLOCK	
sl@0
  2471
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2084
sl@0
  2472
sl@0
  2473
sl@0
  2474
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2085
sl@0
  2475
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2085
sl@0
  2476
//! @SYMAPI			RFs
sl@0
  2477
//! @SYMCreationDate		5/10/2006
sl@0
  2478
//! @SYMTestCaseDesc		Functions SetEntry() negative test where time is negative.
sl@0
  2479
//!				Uses API elements: SetEntry().
sl@0
  2480
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2481
//!				2. Call SetEntry() and pass parameters "test.txt" as name (that resides on a MMC drive) and "-12345" as time and read only.
sl@0
  2482
//!				3. Call Delete() fails with error KErrAccessDenied
sl@0
  2483
//!				4. Call SetEntry() and remove read only.
sl@0
  2484
//!				5. Call Delete().
sl@0
  2485
//!				6. Call Close() method.
sl@0
  2486
//! @SYMTestStatus		Implemented
sl@0
  2487
//! @SYMTestPriority		Critical
sl@0
  2488
//! @SYMTestExpectedResults	First Delete() call returns KErrAccessDenied.
sl@0
  2489
//! @SYMTestType		CIT
sl@0
  2490
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2491
		CREATE_OBJECT	RFs	RFs1
sl@0
  2492
		CREATE_OBJECT	RFile	RFile1
sl@0
  2493
		COMMAND			RFs1	new
sl@0
  2494
		COMMAND			RFs1	Connect
sl@0
  2495
		COMMAND			RFile1	new
sl@0
  2496
		COMMAND			RFile1	Create		PBASE-F32-RFS-PublicApi-2085-001-Create_command05
sl@0
  2497
		COMMAND			RFile1	Close
sl@0
  2498
		COMMAND			RFile1	~
sl@0
  2499
		COMMAND			RFs1	SetEntry		PBASE-F32-RFS-PublicApi-2085-001-SetEntry_command09
sl@0
  2500
		COMMAND	!Error=-21	RFs1	Delete		PBASE-F32-RFS-PublicApi-2085-001-Delete_command10
sl@0
  2501
		COMMAND			RFs1	SetEntry		PBASE-F32-RFS-PublicApi-2085-001-SetEntry_command11
sl@0
  2502
		COMMAND			RFs1	Delete		PBASE-F32-RFS-PublicApi-2085-001-Delete_command12
sl@0
  2503
		COMMAND			RFs1	Close
sl@0
  2504
		COMMAND			RFs1	~
sl@0
  2505
	END_TEST_BLOCK	
sl@0
  2506
END_TESTCASE			PBASE-F32-RFS-PublicApi-2085
sl@0
  2507
sl@0
  2508
sl@0
  2509
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2086
sl@0
  2510
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2086
sl@0
  2511
//! @SYMAPI			RFs
sl@0
  2512
//! @SYMCreationDate		5/10/2006
sl@0
  2513
//! @SYMTestCaseDesc		Functions SetEntry() negative test where attribute appears in both bitmasks.
sl@0
  2514
//!				Uses API elements: SetEntry().
sl@0
  2515
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2516
//!				2. Call SetEntry() and pass parameters "test.txt" as name and "KEntryAttReadOnly" as set attribute
sl@0
  2517
//!				   and "KEntryAttReadOnly" as clear attribute.
sl@0
  2518
//!				3. Call Close() method.
sl@0
  2519
//! @SYMTestStatus		Implemented
sl@0
  2520
//! @SYMTestPriority		High
sl@0
  2521
//! @SYMTestExpectedResults	Function SetEntry() return FSCLIENT panic Code = 21.
sl@0
  2522
//! @SYMTestType		CIT
sl@0
  2523
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2524
		CREATE_OBJECT	RFs	RFs1
sl@0
  2525
		CREATE_OBJECT	RFile	RFile1
sl@0
  2526
		COMMAND		RFs1	new
sl@0
  2527
		COMMAND		RFs1	Connect
sl@0
  2528
		COMMAND		RFile1	new
sl@0
  2529
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2086-001-Create_command05
sl@0
  2530
		COMMAND		RFile1	Close
sl@0
  2531
		COMMAND		RFile1	~
sl@0
  2532
		COMMAND		RFs1	SetEntry		PBASE-F32-RFS-PublicApi-2086-001-SetEntry_command09
sl@0
  2533
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2086-001-Delete_command10
sl@0
  2534
		COMMAND		RFs1	Close
sl@0
  2535
		COMMAND		RFs1	~
sl@0
  2536
	END_TEST_BLOCK	!PanicCode=21 !PanicString="FSCLIENT panic"
sl@0
  2537
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2538
		CREATE_OBJECT	RFs	RFs1
sl@0
  2539
		COMMAND		RFs1	new
sl@0
  2540
		COMMAND		RFs1	Connect
sl@0
  2541
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2086-002-Delete_command03
sl@0
  2542
		COMMAND		RFs1	Close
sl@0
  2543
		COMMAND		RFs1	~
sl@0
  2544
	END_TEST_BLOCK
sl@0
  2545
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2086
sl@0
  2546
sl@0
  2547
sl@0
  2548
sl@0
  2549
///////////////////////////////
sl@0
  2550
//
sl@0
  2551
// READFILESECTION
sl@0
  2552
//
sl@0
  2553
///////////////////////////////
sl@0
  2554
sl@0
  2555
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2087
sl@0
  2556
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2087
sl@0
  2557
//! @SYMAPI			RFs
sl@0
  2558
//! @SYMCreationDate		5/10/2006
sl@0
  2559
//! @SYMTestCaseDesc		Function ReadFileSection() negative test where name of file is invalid.
sl@0
  2560
//!				Uses API elements: ReadFileSection().
sl@0
  2561
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2562
//!				2. Call ReadFileSection() and pass parameter "<>:"/|.txt" as name of file.
sl@0
  2563
//!				3. Call Close() method.
sl@0
  2564
//! @SYMTestStatus		Implemented
sl@0
  2565
//! @SYMTestPriority		Critical
sl@0
  2566
//! @SYMTestExpectedResults	Function ReadFileSection() return KErrBadName.
sl@0
  2567
//! @SYMTestType		CIT
sl@0
  2568
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2569
		CREATE_OBJECT	RFs	RFs1
sl@0
  2570
		COMMAND			RFs1	new
sl@0
  2571
		COMMAND			RFs1	Connect
sl@0
  2572
		COMMAND	!Error=-28	RFs1	ReadFileSection		PBASE-F32-RFS-PublicApi-2087-001-ReadFileSection_command03
sl@0
  2573
		COMMAND			RFs1	Close
sl@0
  2574
		COMMAND			RFs1	~
sl@0
  2575
	END_TEST_BLOCK	
sl@0
  2576
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2087
sl@0
  2577
sl@0
  2578
sl@0
  2579
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2088
sl@0
  2580
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2088
sl@0
  2581
//! @SYMAPI			RFs
sl@0
  2582
//! @SYMCreationDate		5/10/2006
sl@0
  2583
//! @SYMTestCaseDesc		Function ReadFileSection() negative test where file does not exist.
sl@0
  2584
//!				Uses API elements: ReadFileSection().
sl@0
  2585
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2586
//!				2. Call ReadFileSection() and pass parameter "none.txt" as name of file.
sl@0
  2587
//!				3. Call Close() method.
sl@0
  2588
//! @SYMTestStatus		Implemented
sl@0
  2589
//! @SYMTestPriority		High
sl@0
  2590
//! @SYMTestExpectedResults	Function ReadFileSection() return KErrNotFound.
sl@0
  2591
//! @SYMTestType		CIT
sl@0
  2592
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2593
		CREATE_OBJECT	RFs	RFs1
sl@0
  2594
		COMMAND			RFs1	new
sl@0
  2595
		COMMAND			RFs1	Connect
sl@0
  2596
		COMMAND	!Error=-1	RFs1	ReadFileSection		PBASE-F32-RFS-PublicApi-2088-001-ReadFileSection_command03
sl@0
  2597
		COMMAND			RFs1	Close
sl@0
  2598
		COMMAND			RFs1	~
sl@0
  2599
	END_TEST_BLOCK	
sl@0
  2600
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2088
sl@0
  2601
sl@0
  2602
sl@0
  2603
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2089
sl@0
  2604
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2089
sl@0
  2605
//! @SYMAPI			RFs
sl@0
  2606
//! @SYMCreationDate		5/10/2006
sl@0
  2607
//! @SYMTestCaseDesc		Function ReadFileSection() negative test where the offset from the start is negative.
sl@0
  2608
//!				Uses API elements: ReadFileSection().
sl@0
  2609
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2610
//!				2. Call ReadFileSection() and pass parameters "test.txt" as name of file and "-12345" as offset.
sl@0
  2611
//!				3. Call Close() method.
sl@0
  2612
//! @SYMTestStatus		Implemented
sl@0
  2613
//! @SYMTestPriority		High
sl@0
  2614
//! @SYMTestExpectedResults	Function ReadFileSection() return panic FSCLIENT: 19.
sl@0
  2615
//! @SYMTestType		CIT
sl@0
  2616
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2617
		CREATE_OBJECT	RFs	RFs1
sl@0
  2618
		CREATE_OBJECT	RFile	RFile1
sl@0
  2619
		COMMAND		RFs1	new
sl@0
  2620
		COMMAND		RFs1	Connect
sl@0
  2621
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2089-001-SetSessionPath_command03
sl@0
  2622
		COMMAND		RFile1	new
sl@0
  2623
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2089-001-Create_command06
sl@0
  2624
		COMMAND		RFile1	Write		PBASE-F32-RFS-PublicApi-2089-001-Write_command07
sl@0
  2625
		COMMAND		RFile1	Close
sl@0
  2626
		COMMAND		RFile1	~
sl@0
  2627
		COMMAND		RFs1	ReadFileSection		PBASE-F32-RFS-PublicApi-2089-001-ReadFileSection_command11
sl@0
  2628
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2089-001-Delete_command12
sl@0
  2629
		COMMAND		RFs1	Close
sl@0
  2630
		COMMAND		RFs1	~
sl@0
  2631
	END_TEST_BLOCK	!PanicCode=19 !PanicString="FSCLIENT panic"
sl@0
  2632
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2633
		CREATE_OBJECT	RFs	RFs1
sl@0
  2634
		COMMAND		RFs1	new
sl@0
  2635
		COMMAND		RFs1	Connect
sl@0
  2636
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2089-002-Delete_command03
sl@0
  2637
		COMMAND		RFs1	Close
sl@0
  2638
		COMMAND		RFs1	~
sl@0
  2639
	END_TEST_BLOCK	
sl@0
  2640
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2089
sl@0
  2641
sl@0
  2642
sl@0
  2643
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2090
sl@0
  2644
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2090
sl@0
  2645
//! @SYMAPI			RFs
sl@0
  2646
//! @SYMCreationDate		5/10/2006
sl@0
  2647
//! @SYMTestCaseDesc		Function ReadFileSection() negative test where the number of bytes to be read from the file greater than the maximum length of the target buffer.
sl@0
  2648
//!				Uses API elements: ReadFileSection().
sl@0
  2649
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2650
//!				2. Creating the buffer length equaling 10 bytes for the data to be read from the file.
sl@0
  2651
//!				2. Call ReadFileSection() and pass parameters "test.txt" as name,
sl@0
  2652
//!				   "20" as the number of bytes to be read from the file,
sl@0
  2653
//!				   "10" as the buffer length for the data to be read from the file.
sl@0
  2654
//!				3. Call Close() method.
sl@0
  2655
//! @SYMTestStatus		Implemented
sl@0
  2656
//! @SYMTestPriority		High
sl@0
  2657
//! @SYMTestExpectedResults	Function ReadFileSection() return FSCLIENT panic = 27.
sl@0
  2658
//! @SYMTestType		CIT
sl@0
  2659
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2660
		CREATE_OBJECT	RFs	RFs1
sl@0
  2661
		CREATE_OBJECT	RFile	RFile1
sl@0
  2662
		COMMAND		RFs1	new
sl@0
  2663
		COMMAND		RFs1	Connect
sl@0
  2664
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2090-001-SetSessionPath_command03
sl@0
  2665
		COMMAND		RFile1	new
sl@0
  2666
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2090-001-Create_command06
sl@0
  2667
		COMMAND		RFile1	Write		PBASE-F32-RFS-PublicApi-2090-001-Write_command07
sl@0
  2668
		COMMAND		RFile1	Close
sl@0
  2669
		COMMAND		RFile1	~
sl@0
  2670
		COMMAND		RFs1	ReadFileSection		PBASE-F32-RFS-PublicApi-2090-001-ReadFileSection_command11
sl@0
  2671
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2090-001-Delete_command12
sl@0
  2672
		COMMAND		RFs1	Close
sl@0
  2673
		COMMAND		RFs1	~
sl@0
  2674
	END_TEST_BLOCK	!PanicCode=27 !PanicString="FSCLIENT panic"
sl@0
  2675
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2676
		CREATE_OBJECT	RFs	RFs1
sl@0
  2677
		COMMAND		RFs1	new
sl@0
  2678
		COMMAND		RFs1	Connect
sl@0
  2679
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2090-002-Delete_command03
sl@0
  2680
		COMMAND		RFs1	Close
sl@0
  2681
		COMMAND		RFs1	~
sl@0
  2682
	END_TEST_BLOCK	
sl@0
  2683
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2090
sl@0
  2684
sl@0
  2685
sl@0
  2686
sl@0
  2687
///////////////////////////////
sl@0
  2688
//
sl@0
  2689
// ISFILEISOPEN
sl@0
  2690
//
sl@0
  2691
///////////////////////////////
sl@0
  2692
sl@0
  2693
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2091
sl@0
  2694
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2091
sl@0
  2695
//! @SYMAPI			RFs
sl@0
  2696
//! @SYMCreationDate		5/10/2006
sl@0
  2697
//! @SYMTestCaseDesc		Function IsFileOpen() negative test where name of file is invalid.
sl@0
  2698
//!				Uses API elements: IsFileOpen().
sl@0
  2699
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2700
//!				2. Call IsFileOpen() and pass parameter "<>:"/|.txt" as name of file.
sl@0
  2701
//!				3. Call Close() method.
sl@0
  2702
//! @SYMTestStatus		Implemented
sl@0
  2703
//! @SYMTestPriority		Critical
sl@0
  2704
//! @SYMTestExpectedResults	Function IsFileOpen() return KErrBadName.
sl@0
  2705
//! @SYMTestType		CIT
sl@0
  2706
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2707
		CREATE_OBJECT	RFs	RFs1
sl@0
  2708
		COMMAND			RFs1	new
sl@0
  2709
		COMMAND			RFs1	Connect
sl@0
  2710
		COMMAND	!Error=-28	RFs1	IsFileOpen		PBASE-F32-RFS-PublicApi-2091-001-IsFileOpen_command03
sl@0
  2711
		COMMAND			RFs1	Close
sl@0
  2712
		COMMAND			RFs1	~
sl@0
  2713
	END_TEST_BLOCK	
sl@0
  2714
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2091
sl@0
  2715
sl@0
  2716
sl@0
  2717
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2092
sl@0
  2718
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2092
sl@0
  2719
//! @SYMAPI			RFs
sl@0
  2720
//! @SYMCreationDate		5/10/2006
sl@0
  2721
//! @SYMTestCaseDesc		Function IsFileOpen() negative test where file does not exist.
sl@0
  2722
//!				Uses API elements: IsFileOpen().
sl@0
  2723
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2724
//!				2. Call IsFileOpen() and pass parameter "<DRIVE>:\base\T_Sfsrv\none.txt" as name of file where <DRIVE> is a test drive letter.
sl@0
  2725
//!				3. Call Close() method.
sl@0
  2726
//! @SYMTestStatus		Implemented
sl@0
  2727
//! @SYMTestPriority		High
sl@0
  2728
//! @SYMTestExpectedResults	Function IsFileOpen() return KErrNotFound.
sl@0
  2729
//! @SYMTestType		CIT
sl@0
  2730
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2731
		CREATE_OBJECT	RFs	RFs1
sl@0
  2732
		COMMAND			RFs1	new
sl@0
  2733
		COMMAND			RFs1	Connect
sl@0
  2734
		COMMAND	!Error=-1	RFs1	IsFileOpen		PBASE-F32-RFS-PublicApi-2092-001-IsFileOpen_command03
sl@0
  2735
		COMMAND			RFs1	Close
sl@0
  2736
		COMMAND			RFs1	~
sl@0
  2737
	END_TEST_BLOCK	
sl@0
  2738
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2092
sl@0
  2739
sl@0
  2740
sl@0
  2741
sl@0
  2742
///////////////////////////////
sl@0
  2743
//
sl@0
  2744
// GETSHORTNAME
sl@0
  2745
//
sl@0
  2746
///////////////////////////////
sl@0
  2747
sl@0
  2748
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2093
sl@0
  2749
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2093
sl@0
  2750
//! @SYMAPI			RFs
sl@0
  2751
//! @SYMCreationDate		5/10/2006
sl@0
  2752
//! @SYMTestCaseDesc		Function GetShortName() negative test where name of file is invalid.
sl@0
  2753
//!				Uses API elements: GetShortName().
sl@0
  2754
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2755
//!				2. Call GetShortName() and pass parameter "<DRIVE>:\base\T_Sfsrv\<>:"/|.txt" as name of file where <DRIVE> is a test drive letter.
sl@0
  2756
//!				3. Call Close() method.
sl@0
  2757
//! @SYMTestStatus		Implemented
sl@0
  2758
//! @SYMTestPriority		High
sl@0
  2759
//! @SYMTestExpectedResults	Function IsFileOpen() return KErrBadName.
sl@0
  2760
//! @SYMTestType		CIT
sl@0
  2761
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2762
		CREATE_OBJECT	RFs	RFs1
sl@0
  2763
		COMMAND			RFs1	new
sl@0
  2764
		COMMAND			RFs1	Connect
sl@0
  2765
		COMMAND	!Error=-28	RFs1	GetShortName		PBASE-F32-RFS-PublicApi-2093-001-GetShortName_command03
sl@0
  2766
		COMMAND			RFs1	Close
sl@0
  2767
		COMMAND			RFs1	~
sl@0
  2768
	END_TEST_BLOCK	
sl@0
  2769
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2093
sl@0
  2770
sl@0
  2771
sl@0
  2772
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2094
sl@0
  2773
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2094
sl@0
  2774
//! @SYMAPI			RFs
sl@0
  2775
//! @SYMCreationDate		5/10/2006
sl@0
  2776
//! @SYMTestCaseDesc		Function GetShortName() negative test where file does not exist.
sl@0
  2777
//!				Uses API elements: GetShortName().
sl@0
  2778
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2779
//!				2. Call GetShortName() and pass parameter "<DRIVE>:\base\T_Sfsrv\none.txt" as name of file where <DRIVE> is a test drive letter.
sl@0
  2780
//!				3. Call Close() method.
sl@0
  2781
//! @SYMTestStatus		Implemented
sl@0
  2782
//! @SYMTestPriority		High
sl@0
  2783
//! @SYMTestExpectedResults	Function IsFileOpen() return KErrNotFound.
sl@0
  2784
//! @SYMTestType		CIT
sl@0
  2785
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2786
		CREATE_OBJECT	RFs	RFs1
sl@0
  2787
		COMMAND			RFs1	new
sl@0
  2788
		COMMAND			RFs1	Connect
sl@0
  2789
		COMMAND	!Error=-1	RFs1	GetShortName		PBASE-F32-RFS-PublicApi-2094-001-GetShortName_command03
sl@0
  2790
		COMMAND			RFs1	Close
sl@0
  2791
		COMMAND			RFs1	~
sl@0
  2792
	END_TEST_BLOCK	
sl@0
  2793
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2094
sl@0
  2794
sl@0
  2795
sl@0
  2796
sl@0
  2797
///////////////////////////////
sl@0
  2798
//
sl@0
  2799
// GETLONGNAME
sl@0
  2800
//
sl@0
  2801
///////////////////////////////
sl@0
  2802
sl@0
  2803
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2095
sl@0
  2804
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2095
sl@0
  2805
//! @SYMAPI			RFs
sl@0
  2806
//! @SYMCreationDate		5/10/2006
sl@0
  2807
//! @SYMTestCaseDesc		Function GetLongName() negative test where name of file is invalid.
sl@0
  2808
//!				Uses API elements: GetLongName().
sl@0
  2809
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2810
//!				2. Call GetLongName() and pass parameter "<DRIVE>:\base\T_Sfsrv\<>:"/|.txt" as name of file where <DRIVE> is a test drive letter.
sl@0
  2811
//!				3. Call Close() method.
sl@0
  2812
//! @SYMTestStatus		Implemented
sl@0
  2813
//! @SYMTestPriority		High
sl@0
  2814
//! @SYMTestExpectedResults	Function GetLongName() return KErrBadName.
sl@0
  2815
//! @SYMTestType		CIT
sl@0
  2816
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2817
		CREATE_OBJECT	RFs	RFs1
sl@0
  2818
		COMMAND			RFs1	new
sl@0
  2819
		COMMAND			RFs1	Connect
sl@0
  2820
		COMMAND	!Error=-28	RFs1	GetLongName		PBASE-F32-RFS-PublicApi-2095-001-GetLongName_command03
sl@0
  2821
		COMMAND			RFs1	Close
sl@0
  2822
		COMMAND			RFs1	~
sl@0
  2823
	END_TEST_BLOCK	
sl@0
  2824
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2095
sl@0
  2825
sl@0
  2826
sl@0
  2827
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2096
sl@0
  2828
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2096
sl@0
  2829
//! @SYMAPI			RFs
sl@0
  2830
//! @SYMCreationDate		5/10/2006
sl@0
  2831
//! @SYMTestCaseDesc		Function GetLongName() negative test where file does not exist.
sl@0
  2832
//!				Uses API elements: GetLongName().
sl@0
  2833
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2834
//!				2. Call GetLongName() and pass parameter "none.txt" as name of file.
sl@0
  2835
//!				3. Call Close() method.
sl@0
  2836
//! @SYMTestStatus		Implemented
sl@0
  2837
//! @SYMTestPriority		High
sl@0
  2838
//! @SYMTestExpectedResults	Function GetLongName() return KErrNotFound.
sl@0
  2839
//! @SYMTestType		CIT
sl@0
  2840
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2841
		CREATE_OBJECT	RFs	RFs1
sl@0
  2842
		COMMAND			RFs1	new
sl@0
  2843
		COMMAND			RFs1	Connect
sl@0
  2844
		COMMAND	!Error=-1	RFs1	GetLongName		PBASE-F32-RFS-PublicApi-2096-001-GetLongName_command03
sl@0
  2845
		COMMAND			RFs1	Close
sl@0
  2846
		COMMAND			RFs1	~
sl@0
  2847
	END_TEST_BLOCK	
sl@0
  2848
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2096
sl@0
  2849
sl@0
  2850
sl@0
  2851
sl@0
  2852
///////////////////////////////
sl@0
  2853
//
sl@0
  2854
// ISFILEINROM
sl@0
  2855
//
sl@0
  2856
///////////////////////////////
sl@0
  2857
sl@0
  2858
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2097
sl@0
  2859
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2097
sl@0
  2860
//! @SYMAPI			RFs
sl@0
  2861
//! @SYMCreationDate		5/10/2006
sl@0
  2862
//! @SYMTestCaseDesc		Function IsFileInRom() test where name of file is invalid.
sl@0
  2863
//!				Uses API elements: IsFileInRom().
sl@0
  2864
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2865
//!				2. Call IsFileInRom() and pass parameter "<DRIVE>:\base\T_Sfsrv\<>:"/|.txt" as name of file and check that the result is FALSE where <DRIVE> is a test drive letter.
sl@0
  2866
//!				3. Call Close() method.
sl@0
  2867
//! @SYMTestStatus		Implemented
sl@0
  2868
//! @SYMTestPriority		Critical
sl@0
  2869
//! @SYMTestExpectedResults	Function IsFileInRom() return FALSE.
sl@0
  2870
//! @SYMTestType		CIT
sl@0
  2871
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2872
		CREATE_OBJECT	RFs	RFs1
sl@0
  2873
		COMMAND		RFs1	new
sl@0
  2874
		COMMAND		RFs1	Connect
sl@0
  2875
		COMMAND		RFs1	IsFileInRom		PBASE-F32-RFS-PublicApi-2097-001-IsFileInRom_command03
sl@0
  2876
		COMMAND		RFs1	Close
sl@0
  2877
		COMMAND		RFs1	~
sl@0
  2878
	END_TEST_BLOCK	
sl@0
  2879
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2097
sl@0
  2880
sl@0
  2881
sl@0
  2882
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2098
sl@0
  2883
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2098
sl@0
  2884
//! @SYMAPI			RFs
sl@0
  2885
//! @SYMCreationDate		5/10/2006
sl@0
  2886
//! @SYMTestCaseDesc		Function IsFileInRom() test where file does not exist.
sl@0
  2887
//!				Uses API elements: IsFileInRom().
sl@0
  2888
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2889
//!				2. Call IsFileInRom() and pass parameter "<DRIVE>:\base\T_Sfsrv\none.txt" as name of file and check that the result is FALSE where <DRIVE> is a test drive letter.
sl@0
  2890
//!				3. Call Close() method.
sl@0
  2891
//! @SYMTestStatus		Implemented
sl@0
  2892
//! @SYMTestPriority		Critical
sl@0
  2893
//! @SYMTestExpectedResults	Function IsFileInRom() return FALSE.
sl@0
  2894
//! @SYMTestType		CIT
sl@0
  2895
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2896
		CREATE_OBJECT	RFs	RFs1
sl@0
  2897
		COMMAND		RFs1	new
sl@0
  2898
		COMMAND		RFs1	Connect
sl@0
  2899
		COMMAND		RFs1	IsFileInRom		PBASE-F32-RFS-PublicApi-2098-001-IsFileInRom_command03
sl@0
  2900
		COMMAND		RFs1	Close
sl@0
  2901
		COMMAND		RFs1	~
sl@0
  2902
	END_TEST_BLOCK	
sl@0
  2903
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2098
sl@0
  2904
sl@0
  2905
sl@0
  2906
sl@0
  2907
///////////////////////////////
sl@0
  2908
//
sl@0
  2909
// ISVALIDNAME (const TDesC &anEntryName)
sl@0
  2910
//
sl@0
  2911
///////////////////////////////
sl@0
  2912
sl@0
  2913
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2099
sl@0
  2914
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2099
sl@0
  2915
//! @SYMAPI			RFs
sl@0
  2916
//! @SYMCreationDate		5/10/2006
sl@0
  2917
//! @SYMTestCaseDesc		Function IsValidName(const TDesC &anEntryName) test where name has double backslashes.
sl@0
  2918
//!				Uses API elements: IsValidName().
sl@0
  2919
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2920
//!				2. Call IsValidName() and pass parameter "<DRIVE>:\\\\test.txt" as name of file and check that the result is FALSE where <DRIVE> is a test drive letter.
sl@0
  2921
//!				3. Call Close() method.
sl@0
  2922
//! @SYMTestStatus		Implemented
sl@0
  2923
//! @SYMTestPriority		Critical
sl@0
  2924
//! @SYMTestExpectedResults	Function IsValidName() return FALSE.
sl@0
  2925
//! @SYMTestType		CIT
sl@0
  2926
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2927
		CREATE_OBJECT	RFs	RFs1
sl@0
  2928
		COMMAND		RFs1	new
sl@0
  2929
		COMMAND		RFs1	Connect
sl@0
  2930
		COMMAND		RFs1	IsValidName		PBASE-F32-RFS-PublicApi-2099-001-IsValidName_command03
sl@0
  2931
		COMMAND		RFs1	Close
sl@0
  2932
		COMMAND		RFs1	~
sl@0
  2933
	END_TEST_BLOCK	
sl@0
  2934
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2099
sl@0
  2935
sl@0
  2936
sl@0
  2937
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2102
sl@0
  2938
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2102
sl@0
  2939
//! @SYMAPI			RFs
sl@0
  2940
//! @SYMCreationDate		5/10/2006
sl@0
  2941
//! @SYMTestCaseDesc		Function SetSessionToPrivate() test where drive is nonmounted.
sl@0
  2942
//!				Uses API elements: SetSessionToPrivate().
sl@0
  2943
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2944
//!				2. Call SetSessionToPrivate() and pass "<DRIVE>" as parameter where <DRIVE> is nonmounted drive letter.
sl@0
  2945
//!				3. Call RFile:Create to create a file in private location
sl@0
  2946
//!				4. Call Close() method.
sl@0
  2947
//! @SYMTestStatus		Implemented
sl@0
  2948
//! @SYMTestPriority		Critical
sl@0
  2949
//! @SYMTestExpectedResults	Function RFile:Create() return KErrNotReady.
sl@0
  2950
//! @SYMTestType		CIT
sl@0
  2951
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2952
		CREATE_OBJECT	RFs	rfs
sl@0
  2953
		CREATE_OBJECT	RFile	file
sl@0
  2954
		COMMAND			rfs	new
sl@0
  2955
		COMMAND			rfs	Connect
sl@0
  2956
		COMMAND			rfs	FileSystemName		PBASE-F32-RFS-PublicApi-2102-001-FileSystemName_command03
sl@0
  2957
		COMMAND			rfs	DismountFileSystem		PBASE-F32-RFS-PublicApi-2102-001-DismountFileSystem_command04
sl@0
  2958
		COMMAND			rfs	SetSessionToPrivate		PBASE-F32-RFS-PublicApi-2102-001-SetSessionToPrivate_command05
sl@0
  2959
		COMMAND			file	new
sl@0
  2960
		COMMAND	!Error=-18	file	Create		PBASE-F32-RFS-PublicApi-2102-001-Create_command08
sl@0
  2961
		COMMAND			file	Close
sl@0
  2962
		COMMAND			file	~
sl@0
  2963
		COMMAND			rfs	MountFileSystem		PBASE-F32-RFS-PublicApi-2102-001-MountFileSystem_command12
sl@0
  2964
		COMMAND			rfs	Close
sl@0
  2965
		COMMAND			rfs	~
sl@0
  2966
	END_TEST_BLOCK	
sl@0
  2967
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2102
sl@0
  2968
sl@0
  2969
sl@0
  2970
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2104
sl@0
  2971
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2104
sl@0
  2972
//! @SYMAPI			RFs
sl@0
  2973
//! @SYMCreationDate		5/10/2006
sl@0
  2974
//! @SYMTestCaseDesc		Function CreatePrivatePath() negative test where drive is nonmounted.
sl@0
  2975
//!				Uses API elements: CreatePrivatePath().
sl@0
  2976
//! @SYMTestActions		1. Call Connect() method.
sl@0
  2977
//!				2. Call CreatePrivatePath() and pass "<DRIVE>" as parameter where <DRIVE> is nonmounted drive letter.
sl@0
  2978
//!				3. Call Close() method.
sl@0
  2979
//! @SYMTestStatus		Implemented
sl@0
  2980
//! @SYMTestPriority		High
sl@0
  2981
//! @SYMTestExpectedResults	Function CreatePrivatePath() return KErrNotReady.
sl@0
  2982
//! @SYMTestType		CIT
sl@0
  2983
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  2984
		CREATE_OBJECT	RFs	RFs1
sl@0
  2985
		COMMAND			RFs1	new
sl@0
  2986
		COMMAND			RFs1	Connect
sl@0
  2987
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-2104-001-FileSystemName_command03
sl@0
  2988
		COMMAND			RFs1	DismountFileSystem		PBASE-F32-RFS-PublicApi-2104-001-DismountFileSystem_command04
sl@0
  2989
		COMMAND	!Error=-18	RFs1	CreatePrivatePath		PBASE-F32-RFS-PublicApi-2104-001-CreatePrivatePath_command05
sl@0
  2990
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-2104-001-MountFileSystem_command06
sl@0
  2991
		COMMAND			RFs1	Close
sl@0
  2992
		COMMAND			RFs1	~
sl@0
  2993
	END_TEST_BLOCK	
sl@0
  2994
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2104
sl@0
  2995
sl@0
  2996
sl@0
  2997
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2105
sl@0
  2998
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2105
sl@0
  2999
//! @SYMAPI			RFs
sl@0
  3000
//! @SYMCreationDate		19/03/2007
sl@0
  3001
//! @SYMTestCaseDesc		Functions SetAtt() test where the sets attribute "KEntryAttVolume" for a file.
sl@0
  3002
//!				Uses API elements: SetAtt(), Att().
sl@0
  3003
//! @SYMTestActions		1. Call Connect() method.
sl@0
  3004
//!				2. Call SetAtt() and pass parameters "<DRIVE>:\test2105.txt" as name and "KEntryAttVolume" as attribute to be set, where <DRIVE> is a test drive letter.
sl@0
  3005
//!				3. Call Att() check that "KEntryAttVolume" is not set.
sl@0
  3006
//!				4. Call Delete() method.
sl@0
  3007
//!				5. Call Close() method.
sl@0
  3008
//! @SYMTestStatus		Implemented
sl@0
  3009
//! @SYMTestPriority		High
sl@0
  3010
//! @SYMTestExpectedResults	Function SetAtt() return KErrNone, KEntryAttVolume cannot be used and is ignored.
sl@0
  3011
//! @SYMTestType		CIT
sl@0
  3012
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  3013
		CREATE_OBJECT	RFs	rfs
sl@0
  3014
		CREATE_OBJECT	RFile	file
sl@0
  3015
		COMMAND		rfs	new
sl@0
  3016
		COMMAND		rfs	Connect
sl@0
  3017
		COMMAND		file	new
sl@0
  3018
		COMMAND		file	Create		PBASE-F32-RFS-PublicApi-2105-001-Create_command05
sl@0
  3019
		COMMAND		file	Close
sl@0
  3020
		COMMAND		file	~
sl@0
  3021
		COMMAND		rfs	SetAtt		PBASE-F32-RFS-PublicApi-2105-001-SetAtt_command09
sl@0
  3022
		COMMAND		rfs	Att		PBASE-F32-RFS-PublicApi-2105-001-Att_command10
sl@0
  3023
		COMMAND		rfs	Delete		PBASE-F32-RFS-PublicApi-2105-001-Delete_command11
sl@0
  3024
		COMMAND		rfs	Close
sl@0
  3025
		COMMAND		rfs	~
sl@0
  3026
	END_TEST_BLOCK	
sl@0
  3027
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2105
sl@0
  3028
sl@0
  3029
///////////////////////////////
sl@0
  3030
//
sl@0
  3031
// GETDIR
sl@0
  3032
// TInt GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList) const;
sl@0
  3033
//
sl@0
  3034
///////////////////////////////
sl@0
  3035
sl@0
  3036
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2201
sl@0
  3037
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2201
sl@0
  3038
//! @SYMAPI			RFs
sl@0
  3039
//! @SYMCreationDate		5/10/2006
sl@0
  3040
//! @SYMTestCaseDesc		Function GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList) negative test, 
sl@0
  3041
//!				where name of directory include wildcard.
sl@0
  3042
//!				Uses API elements: GetDir().
sl@0
  3043
//! @SYMTestActions		1. Call Connect() method.
sl@0
  3044
//!				2. Create a "<DRIVE>:\base\T_Sfsrv\testdir\" directory where <DRIVE> is a test drive letter.
sl@0
  3045
//!				3. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\te*\" as parameter.
sl@0
  3046
//!				4. Remove "<DRIVE>:\base\T_Sfsrv\testdir\" directory.
sl@0
  3047
//!				5. Call Close() method.
sl@0
  3048
//! @SYMTestStatus		Implemented
sl@0
  3049
//! @SYMTestPriority		High
sl@0
  3050
//! @SYMTestExpectedResults	Function GetDir() return KErrBadName.
sl@0
  3051
//! @SYMTestType		CIT
sl@0
  3052
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  3053
		CREATE_OBJECT	RFs	RFs1
sl@0
  3054
		COMMAND			RFs1	new
sl@0
  3055
		COMMAND			RFs1	Connect
sl@0
  3056
		COMMAND			RFs1	MkDir		PBASE-F32-RFS-PublicApi-2201-001-MkDir_command03
sl@0
  3057
		COMMAND	!Error=-28	RFs1	GetDir		PBASE-F32-RFS-PublicApi-2201-001-GetDir_command04
sl@0
  3058
		COMMAND			RFs1	RmDir		PBASE-F32-RFS-PublicApi-2201-001-RmDir_command05
sl@0
  3059
		COMMAND			RFs1	Close
sl@0
  3060
		COMMAND			RFs1	~
sl@0
  3061
	END_TEST_BLOCK	
sl@0
  3062
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2201
sl@0
  3063
sl@0
  3064
sl@0
  3065
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2202
sl@0
  3066
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2202
sl@0
  3067
//! @SYMAPI			RFs
sl@0
  3068
//! @SYMCreationDate		5/10/2006
sl@0
  3069
//! @SYMTestCaseDesc		Function GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList) test, 
sl@0
  3070
//!				where name of files include wildcard.
sl@0
  3071
//!				Uses API elements: SetSessionPath(), GetDir().
sl@0
  3072
//! @SYMTestActions		1. Call Connect() method.
sl@0
  3073
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
  3074
//!				3. Create files "file1.txt" and "file2.txt"
sl@0
  3075
//!				4. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\*.txt" as parameter where <DRIVE> is a test drive letter.
sl@0
  3076
//!				   and check that list of directory contents has a "file1.txt" of file.
sl@0
  3077
//!				5. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\*.txt" as parameter where <DRIVE> is a test drive letter.
sl@0
  3078
//!				   and check that list of directory contents has a "file2.txt" of file.
sl@0
  3079
//!				6. Delete files "file1.txt" and "file2.txt"
sl@0
  3080
//!				7. Call Close() method.
sl@0
  3081
//! @SYMTestStatus		Implemented
sl@0
  3082
//! @SYMTestPriority		Critical
sl@0
  3083
//! @SYMTestExpectedResults	Function GetDir() return KErrNone.
sl@0
  3084
//! @SYMTestType		CIT
sl@0
  3085
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  3086
		CREATE_OBJECT	RFs	RFs1
sl@0
  3087
		CREATE_OBJECT	RFile	RFile1
sl@0
  3088
		COMMAND		RFs1	new
sl@0
  3089
		COMMAND		RFs1	Connect
sl@0
  3090
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2202-001-SetSessionPath_command03
sl@0
  3091
		COMMAND		RFile1	new
sl@0
  3092
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2202-001-Create_command06
sl@0
  3093
		COMMAND		RFile1	Close
sl@0
  3094
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2202-001-Create_command08
sl@0
  3095
		COMMAND		RFile1	Close
sl@0
  3096
		COMMAND		RFile1	~
sl@0
  3097
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2202-001-GetDir_command12
sl@0
  3098
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2202-001-GetDir_command13
sl@0
  3099
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2202-001-Delete_command14
sl@0
  3100
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2202-001-Delete_command15
sl@0
  3101
		COMMAND		RFs1	Close
sl@0
  3102
		COMMAND		RFs1	~
sl@0
  3103
	END_TEST_BLOCK	
sl@0
  3104
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2202
sl@0
  3105
sl@0
  3106
sl@0
  3107
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2203
sl@0
  3108
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2203
sl@0
  3109
//! @SYMAPI			RFs
sl@0
  3110
//! @SYMCreationDate		5/10/2006
sl@0
  3111
//! @SYMTestCaseDesc		Function GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList) negative test, 
sl@0
  3112
//!				where path includes nonmounted drive.
sl@0
  3113
//!				Uses API elements: GetDir().
sl@0
  3114
//! @SYMTestActions		1. Call Connect() method.
sl@0
  3115
//!				2. Call GetDir() and pass "<DRIVE>:\" as parameter where <DRIVE> is nonmounted drive letter.
sl@0
  3116
//!				3. Call Close() method.
sl@0
  3117
//! @SYMTestStatus		Implemented
sl@0
  3118
//! @SYMTestPriority		High
sl@0
  3119
//! @SYMTestExpectedResults	Function GetDir() return KErrNotReady.
sl@0
  3120
//! @SYMTestType		CIT
sl@0
  3121
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  3122
		CREATE_OBJECT	RFs	RFs1
sl@0
  3123
		COMMAND			RFs1	new
sl@0
  3124
		COMMAND			RFs1	Connect
sl@0
  3125
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-2203-001-FileSystemName_command03
sl@0
  3126
		COMMAND			RFs1	DismountFileSystem		PBASE-F32-RFS-PublicApi-2203-001-DismountFileSystem_command04
sl@0
  3127
		COMMAND	!Error=-18	RFs1	GetDir		PBASE-F32-RFS-PublicApi-2203-001-GetDir_command05
sl@0
  3128
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-2203-001-MountFileSystem_command06
sl@0
  3129
		COMMAND			RFs1	Close
sl@0
  3130
		COMMAND			RFs1	~
sl@0
  3131
	END_TEST_BLOCK	
sl@0
  3132
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2203
sl@0
  3133
sl@0
  3134
sl@0
  3135
///////////////////////////////
sl@0
  3136
//
sl@0
  3137
// GETDIR
sl@0
  3138
// TInt GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList,CDir*& aDirList) const;
sl@0
  3139
//
sl@0
  3140
///////////////////////////////
sl@0
  3141
sl@0
  3142
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2204
sl@0
  3143
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2204
sl@0
  3144
//! @SYMAPI			RFs
sl@0
  3145
//! @SYMCreationDate		5/10/2006
sl@0
  3146
//! @SYMTestCaseDesc		Function GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList,CDir*& aDirList) negative test, 
sl@0
  3147
//!				where name of directory include wildcard.
sl@0
  3148
//!				Uses API elements: GetDir().
sl@0
  3149
//! @SYMTestActions		1. Call Connect() method.
sl@0
  3150
//!				2. Create a "<DRIVE>:\base\T_Sfsrv\testdir\" directory where <DRIVE> is a test drive letter.
sl@0
  3151
//!				3. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\te*\" as parameter.
sl@0
  3152
//!				4. Remove "<DRIVE>:\base\T_Sfsrv\testdir\" directory.
sl@0
  3153
//!				5. Call Close() method.
sl@0
  3154
//! @SYMTestStatus		Implemented
sl@0
  3155
//! @SYMTestPriority		High
sl@0
  3156
//! @SYMTestExpectedResults	Function GetDir() return KErrBadName.
sl@0
  3157
//! @SYMTestType		CIT
sl@0
  3158
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  3159
		CREATE_OBJECT	RFs	RFs1
sl@0
  3160
		COMMAND			RFs1	new
sl@0
  3161
		COMMAND			RFs1	Connect
sl@0
  3162
		COMMAND			RFs1	MkDir		PBASE-F32-RFS-PublicApi-2204-001-MkDir_command03
sl@0
  3163
		COMMAND	!Error=-28	RFs1	GetDir		PBASE-F32-RFS-PublicApi-2204-001-GetDir_command04
sl@0
  3164
		COMMAND			RFs1	RmDir		PBASE-F32-RFS-PublicApi-2204-001-RmDir_command05
sl@0
  3165
		COMMAND			RFs1	Close
sl@0
  3166
		COMMAND			RFs1	~
sl@0
  3167
	END_TEST_BLOCK	
sl@0
  3168
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2204
sl@0
  3169
sl@0
  3170
sl@0
  3171
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2205
sl@0
  3172
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2205
sl@0
  3173
//! @SYMAPI			RFs
sl@0
  3174
//! @SYMCreationDate		5/10/2006
sl@0
  3175
//! @SYMTestCaseDesc		Function GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList,CDir*& aDirList) test, 
sl@0
  3176
//!				where name of files include wildcard.
sl@0
  3177
//!				Uses API elements: SetSessionPath(), GetDir().
sl@0
  3178
//! @SYMTestActions		1. Call Connect() method.
sl@0
  3179
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
  3180
//!				3. Create files "file1.txt" and "file2.txt"
sl@0
  3181
//!				4. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\*.txt" as parameter where <DRIVE> is a test drive letter.
sl@0
  3182
//!				   and check that list of directory contents has a "file1.txt" of file.
sl@0
  3183
//!				5. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\*.txt" as parameter where <DRIVE> is a test drive letter.
sl@0
  3184
//!				   and check that list of directory contents has a "file2.txt" of file.
sl@0
  3185
//!				6. Delete files "file1.txt" and "file2.txt"
sl@0
  3186
//!				7. Call Close() method.
sl@0
  3187
//! @SYMTestStatus		Implemented
sl@0
  3188
//! @SYMTestPriority		Critical
sl@0
  3189
//! @SYMTestExpectedResults	Function GetDir() return KErrNone.
sl@0
  3190
//! @SYMTestType		CIT
sl@0
  3191
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  3192
		CREATE_OBJECT	RFs	RFs1
sl@0
  3193
		CREATE_OBJECT	RFile	RFile1
sl@0
  3194
		COMMAND		RFs1	new
sl@0
  3195
		COMMAND		RFs1	Connect
sl@0
  3196
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2205-001-SetSessionPath_command03
sl@0
  3197
		COMMAND		RFile1	new
sl@0
  3198
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2205-001-Create_command06
sl@0
  3199
		COMMAND		RFile1	Close
sl@0
  3200
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2205-001-Create_command08
sl@0
  3201
		COMMAND		RFile1	Close
sl@0
  3202
		COMMAND		RFile1	~
sl@0
  3203
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2205-001-GetDir_command12
sl@0
  3204
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2205-001-GetDir_command13
sl@0
  3205
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2205-001-Delete_command14
sl@0
  3206
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2205-001-Delete_command15
sl@0
  3207
		COMMAND		RFs1	Close
sl@0
  3208
		COMMAND		RFs1	~
sl@0
  3209
	END_TEST_BLOCK	
sl@0
  3210
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2205
sl@0
  3211
sl@0
  3212
sl@0
  3213
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2206
sl@0
  3214
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2206
sl@0
  3215
//! @SYMAPI			RFs
sl@0
  3216
//! @SYMCreationDate		5/10/2006
sl@0
  3217
//! @SYMTestCaseDesc		Function GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList,CDir*& aDirList) negative test,
sl@0
  3218
//!				where path includes nonmounted drive.
sl@0
  3219
//!				Uses API elements: GetDir().
sl@0
  3220
//! @SYMTestActions		1. Call Connect() method.
sl@0
  3221
//!				2. Call GetDir() and pass "<DRIVE>:\" as parameter where <DRIVE> is nonmounted drive letter.
sl@0
  3222
//!				3. Call Close() method.
sl@0
  3223
//! @SYMTestStatus		Implemented
sl@0
  3224
//! @SYMTestPriority		High
sl@0
  3225
//! @SYMTestExpectedResults	Function GetDir() return KErrNotReady.
sl@0
  3226
//! @SYMTestType		CIT
sl@0
  3227
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  3228
		CREATE_OBJECT	RFs	RFs1
sl@0
  3229
		COMMAND			RFs1	new
sl@0
  3230
		COMMAND			RFs1	Connect
sl@0
  3231
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-2206-001-FileSystemName_command03
sl@0
  3232
		COMMAND			RFs1	DismountFileSystem		PBASE-F32-RFS-PublicApi-2206-001-DismountFileSystem_command04
sl@0
  3233
		COMMAND	!Error=-18	RFs1	GetDir		PBASE-F32-RFS-PublicApi-2206-001-GetDir_command05
sl@0
  3234
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-2206-001-MountFileSystem_command06
sl@0
  3235
		COMMAND			RFs1	Close
sl@0
  3236
		COMMAND			RFs1	~
sl@0
  3237
	END_TEST_BLOCK	
sl@0
  3238
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2206
sl@0
  3239
sl@0
  3240
sl@0
  3241
///////////////////////////////
sl@0
  3242
//
sl@0
  3243
// GETDIR
sl@0
  3244
// TInt GetDir(const TDesC& aName,const TUidType& anEntryUid,TUint anEntrySortKey,CDir*& aFileList) const;
sl@0
  3245
//
sl@0
  3246
///////////////////////////////
sl@0
  3247
sl@0
  3248
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2207
sl@0
  3249
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2207
sl@0
  3250
//! @SYMAPI			RFs
sl@0
  3251
//! @SYMCreationDate		5/10/2006
sl@0
  3252
//! @SYMTestCaseDesc		Function GetDir(const TDesC& aName,const TUidType& anEntryUid,TUint anEntrySortKey,CDir*& aFileList) negative test, 
sl@0
  3253
//!				where name of directory include wildcard.
sl@0
  3254
//!				Uses API elements: GetDir().
sl@0
  3255
//! @SYMTestActions		1. Call Connect() method.
sl@0
  3256
//!				2. Create a "<DRIVE>:\base\T_Sfsrv\testdir\" directory where <DRIVE> is a test drive letter.
sl@0
  3257
//!				3. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\te*\" as parameter.
sl@0
  3258
//!				4. Remove "<DRIVE>:\base\T_Sfsrv\testdir\" directory.
sl@0
  3259
//!				5. Call Close() method.
sl@0
  3260
//! @SYMTestStatus		Implemented
sl@0
  3261
//! @SYMTestPriority		High
sl@0
  3262
//! @SYMTestExpectedResults	Function GetDir() return KErrBadName.
sl@0
  3263
//! @SYMTestType		CIT
sl@0
  3264
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  3265
		CREATE_OBJECT	RFs	RFs1
sl@0
  3266
		COMMAND			RFs1	new
sl@0
  3267
		COMMAND			RFs1	Connect
sl@0
  3268
		COMMAND			RFs1	MkDir		PBASE-F32-RFS-PublicApi-2207-001-MkDir_command03
sl@0
  3269
		COMMAND	!Error=-28	RFs1	GetDir		PBASE-F32-RFS-PublicApi-2207-001-GetDir_command04
sl@0
  3270
		COMMAND			RFs1	RmDir		PBASE-F32-RFS-PublicApi-2207-001-RmDir_command05
sl@0
  3271
		COMMAND			RFs1	Close
sl@0
  3272
		COMMAND			RFs1	~
sl@0
  3273
	END_TEST_BLOCK	
sl@0
  3274
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2207
sl@0
  3275
sl@0
  3276
sl@0
  3277
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2208
sl@0
  3278
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2208
sl@0
  3279
//! @SYMAPI			RFs
sl@0
  3280
//! @SYMCreationDate		5/10/2006
sl@0
  3281
//! @SYMTestCaseDesc		Function GetDir(const TDesC& aName,const TUidType& anEntryUid,TUint anEntrySortKey,CDir*& aFileList) test, 
sl@0
  3282
//!				where name of files include wildcard.
sl@0
  3283
//!				Uses API elements: SetSessionPath(), GetDir().
sl@0
  3284
//! @SYMTestActions		1. Call Connect() method.
sl@0
  3285
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
  3286
//!				3. Create files "file1.txt" and "file2.txt"
sl@0
  3287
//!				4. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\*.txt" as parameter where <DRIVE> is a test drive letter.
sl@0
  3288
//!				   and check that list of directory contents has a "file1.txt" of file.
sl@0
  3289
//!				5. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\*.txt" as parameter where <DRIVE> is a test drive letter.
sl@0
  3290
//!				   and check that list of directory contents has a "file2.txt" of file.
sl@0
  3291
//!				6. Delete files "file1.txt" and "file2.txt"
sl@0
  3292
//!				7. Call Close() method.
sl@0
  3293
//! @SYMTestStatus		Implemented
sl@0
  3294
//! @SYMTestPriority		Critical
sl@0
  3295
//! @SYMTestExpectedResults	Function GetDir() return KErrNone.
sl@0
  3296
//! @SYMTestType		CIT
sl@0
  3297
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  3298
		CREATE_OBJECT	RFs	RFs1
sl@0
  3299
		CREATE_OBJECT	RFile	RFile1
sl@0
  3300
		COMMAND		RFs1	new
sl@0
  3301
		COMMAND		RFs1	Connect
sl@0
  3302
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2208-001-SetSessionPath_command03
sl@0
  3303
		COMMAND		RFile1	new
sl@0
  3304
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2208-001-Create_command06
sl@0
  3305
		COMMAND		RFile1	Close
sl@0
  3306
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2208-001-Create_command08
sl@0
  3307
		COMMAND		RFile1	Close
sl@0
  3308
		COMMAND		RFile1	~
sl@0
  3309
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2208-001-GetDir_command12
sl@0
  3310
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2208-001-GetDir_command13
sl@0
  3311
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2208-001-Delete_command14
sl@0
  3312
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2208-001-Delete_command15
sl@0
  3313
		COMMAND		RFs1	Close
sl@0
  3314
		COMMAND		RFs1	~
sl@0
  3315
	END_TEST_BLOCK	
sl@0
  3316
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2208
sl@0
  3317
sl@0
  3318
sl@0
  3319
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2209
sl@0
  3320
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2209
sl@0
  3321
//! @SYMAPI			RFs
sl@0
  3322
//! @SYMCreationDate		5/10/2006
sl@0
  3323
//! @SYMTestCaseDesc		Function GetDir(const TDesC& aName,const TUidType& anEntryUid,TUint anEntrySortKey,CDir*& aFileList) negative test,
sl@0
  3324
//!				where path includes nonmounted drive.
sl@0
  3325
//!				Uses API elements: GetDir().
sl@0
  3326
//! @SYMTestActions		1. Call Connect() method.
sl@0
  3327
//!				2. Call GetDir() and pass "<DRIVE>:\" as parameter where <DRIVE> is nonmounted drive letter.
sl@0
  3328
//!				3. Call Close() method.
sl@0
  3329
//! @SYMTestStatus		Implemented
sl@0
  3330
//! @SYMTestPriority		High
sl@0
  3331
//! @SYMTestExpectedResults	Function GetDir() return KErrNotReady.
sl@0
  3332
//! @SYMTestType		CIT
sl@0
  3333
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  3334
		CREATE_OBJECT	RFs	RFs1
sl@0
  3335
		COMMAND			RFs1	new
sl@0
  3336
		COMMAND			RFs1	Connect
sl@0
  3337
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-2209-001-FileSystemName_command03
sl@0
  3338
		COMMAND			RFs1	DismountFileSystem		PBASE-F32-RFS-PublicApi-2209-001-DismountFileSystem_command04
sl@0
  3339
		COMMAND	!Error=-18	RFs1	GetDir		PBASE-F32-RFS-PublicApi-2209-001-GetDir_command05
sl@0
  3340
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-2209-001-MountFileSystem_command06
sl@0
  3341
		COMMAND			RFs1	Close
sl@0
  3342
		COMMAND			RFs1	~
sl@0
  3343
	END_TEST_BLOCK	
sl@0
  3344
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2209
sl@0
  3345
sl@0
  3346
sl@0
  3347
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2210
sl@0
  3348
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2210
sl@0
  3349
//! @SYMAPI			RFs
sl@0
  3350
//! @SYMCreationDate		5/10/2006
sl@0
  3351
//! @SYMTestCaseDesc		Function Rename() negative test where new name of file includes wildcard.
sl@0
  3352
//!				Uses API elements: SetSessionPath(), Rename().
sl@0
  3353
//! @SYMTestActions		1. Call Connect() method.
sl@0
  3354
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
  3355
//!				3. Create file "test_old.txt".
sl@0
  3356
//!				4. Call Rename() and pass the parameters "test_old.txt" as old name and "test*.txt" as a new name of file.
sl@0
  3357
//!				5. Delete file "test_old.txt".
sl@0
  3358
//!				6. Call Close() method.
sl@0
  3359
//! @SYMTestStatus		Implemented
sl@0
  3360
//! @SYMTestPriority		High
sl@0
  3361
//! @SYMTestExpectedResults	Function Rename() return KErrBadName.
sl@0
  3362
//! @SYMTestType		CIT
sl@0
  3363
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  3364
		CREATE_OBJECT	RFs	RFs1
sl@0
  3365
		CREATE_OBJECT	RFile	RFile1
sl@0
  3366
		COMMAND			RFs1	new
sl@0
  3367
		COMMAND			RFs1	Connect
sl@0
  3368
		COMMAND			RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2210-001-SetSessionPath_command03
sl@0
  3369
		COMMAND			RFile1	new
sl@0
  3370
		COMMAND			RFile1	Create		PBASE-F32-RFS-PublicApi-2210-001-Create_command06
sl@0
  3371
		COMMAND			RFile1	Close
sl@0
  3372
		COMMAND			RFile1	~
sl@0
  3373
		COMMAND	!Error=-28	RFs1	Rename		PBASE-F32-RFS-PublicApi-2210-001-Rename_command10
sl@0
  3374
		COMMAND			RFs1	Delete		PBASE-F32-RFS-PublicApi-2210-001-Delete_command11
sl@0
  3375
		COMMAND			RFs1	Close
sl@0
  3376
		COMMAND			RFs1	~
sl@0
  3377
	END_TEST_BLOCK	
sl@0
  3378
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2210
sl@0
  3379
sl@0
  3380
sl@0
  3381
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2211
sl@0
  3382
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2211
sl@0
  3383
//! @SYMAPI			RFs
sl@0
  3384
//! @SYMTestCaseDesc		Function Rename() test of renaming the directories.
sl@0
  3385
//!				Uses API elements: SetSessionPath(), Rename(), GetDir(), RmDir().
sl@0
  3386
//! @SYMTestActions		1. Call Connect() method.
sl@0
  3387
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
  3388
//!				3. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\DirOld\" as parameter where <DRIVE> is a test drive letter.
sl@0
  3389
//!				4. Call Rename() and pass the parameters "DirOld" as old name and "DirNew" as a new name of directory.
sl@0
  3390
//!				5. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter,
sl@0
  3391
//!				   and check that list of directory contents has a "DirNew" of directory.
sl@0
  3392
//!				6. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\DirNew\" as parameter where <DRIVE> is a test drive letter.
sl@0
  3393
//!				7. Call Close() method.
sl@0
  3394
//! @SYMTestStatus		Implemented
sl@0
  3395
//! @SYMTestPriority		Critical
sl@0
  3396
//! @SYMTestExpectedResults	Function Rename() returns KErrNone, the directory "DirOld" renamed to "DirNew" successfully.
sl@0
  3397
//! @SYMTestType		CIT
sl@0
  3398
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  3399
		CREATE_OBJECT	RFs	RFs1
sl@0
  3400
		COMMAND		RFs1	new
sl@0
  3401
		COMMAND		RFs1	Connect
sl@0
  3402
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2211-001-SetSessionPath_command03
sl@0
  3403
		COMMAND		RFs1	MkDir		PBASE-F32-RFS-PublicApi-2211-001-MkDir_command04
sl@0
  3404
		COMMAND		RFs1	Rename		PBASE-F32-RFS-PublicApi-2211-001-Rename_command05
sl@0
  3405
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2211-001-GetDir_command06
sl@0
  3406
		COMMAND		RFs1	RmDir		PBASE-F32-RFS-PublicApi-2211-001-RmDir_command07
sl@0
  3407
		COMMAND		RFs1	Close
sl@0
  3408
		COMMAND		RFs1	~
sl@0
  3409
	END_TEST_BLOCK	
sl@0
  3410
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2211
sl@0
  3411
sl@0
  3412
sl@0
  3413
///////////////////////////////
sl@0
  3414
// REPLACE
sl@0
  3415
///////////////////////////////
sl@0
  3416
sl@0
  3417
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2212
sl@0
  3418
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2212
sl@0
  3419
//! @SYMAPI			RFs
sl@0
  3420
//! @SYMCreationDate		5/10/2006
sl@0
  3421
//! @SYMTestCaseDesc		Function Replace() negative test where new name of file includes wildcard.
sl@0
  3422
//!				Uses API elements: SetSessionPath(), Replace().
sl@0
  3423
//! @SYMTestActions		1. Call Connect() method.
sl@0
  3424
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
  3425
//!				3. Create file "test_old.txt".
sl@0
  3426
//!				4. Call Replace() and pass the parameters "test_old.txt" as old name and "*.txt" as a new name of file.
sl@0
  3427
//!				5. Delete files "test_old.txt".
sl@0
  3428
//!				6. Call Close() method.
sl@0
  3429
//! @SYMTestStatus		Implemented
sl@0
  3430
//! @SYMTestPriority		High
sl@0
  3431
//! @SYMTestExpectedResults	Function Replace() return KErrBadName.
sl@0
  3432
//! @SYMTestType		CIT
sl@0
  3433
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  3434
		CREATE_OBJECT	RFs	RFs1
sl@0
  3435
		CREATE_OBJECT	RFile	RFile1
sl@0
  3436
		COMMAND			RFs1	new
sl@0
  3437
		COMMAND			RFs1	Connect
sl@0
  3438
		COMMAND			RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2212-001-SetSessionPath_command03
sl@0
  3439
		COMMAND			RFile1	new
sl@0
  3440
		COMMAND			RFile1	Create		PBASE-F32-RFS-PublicApi-2212-001-Create_command06
sl@0
  3441
		COMMAND			RFile1	Close
sl@0
  3442
		COMMAND			RFile1	~
sl@0
  3443
		COMMAND	!Error=-28	RFs1	Replace		PBASE-F32-RFS-PublicApi-2212-001-Replace_command10
sl@0
  3444
		COMMAND			RFs1	Delete		PBASE-F32-RFS-PublicApi-2212-001-Delete_command11
sl@0
  3445
		COMMAND			RFs1	Close
sl@0
  3446
		COMMAND			RFs1	~
sl@0
  3447
	END_TEST_BLOCK	
sl@0
  3448
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2212
sl@0
  3449
sl@0
  3450
sl@0
  3451
///////////////////////////////
sl@0
  3452
// MKDIR
sl@0
  3453
///////////////////////////////
sl@0
  3454
sl@0
  3455
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2213
sl@0
  3456
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2213
sl@0
  3457
//! @SYMAPI			RFs
sl@0
  3458
//! @SYMTestCaseDesc		Function MkDir() negative test that would create a directory in a directory that doesn't exist.
sl@0
  3459
//!				Uses API elements: MkDir(), GetDir().
sl@0
  3460
//! @SYMTestActions		1. Call Connect() method.
sl@0
  3461
//!				2. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\DoesntExist\NewDir\" as parameter.
sl@0
  3462
//!				3. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter,
sl@0
  3463
//!				   and check that list of directory contents hasn't a "DoesntExist" of directory.
sl@0
  3464
//!				4. Call Close() method.
sl@0
  3465
//! @SYMTestStatus		Implemented
sl@0
  3466
//! @SYMTestPriority		High
sl@0
  3467
//! @SYMTestExpectedResults	Function MkDir() return KErrPathNotFound.
sl@0
  3468
//! @SYMTestType		CIT
sl@0
  3469
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  3470
		CREATE_OBJECT	RFs	RFs1
sl@0
  3471
		COMMAND			RFs1	new
sl@0
  3472
		COMMAND			RFs1	Connect
sl@0
  3473
		COMMAND	!Error=-12	RFs1	MkDir		PBASE-F32-RFS-PublicApi-2213-001-MkDir_command03
sl@0
  3474
		COMMAND			RFs1	GetDir		PBASE-F32-RFS-PublicApi-2213-001-GetDir_command04
sl@0
  3475
		COMMAND			RFs1	Close
sl@0
  3476
		COMMAND			RFs1	~
sl@0
  3477
	END_TEST_BLOCK	
sl@0
  3478
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2213
sl@0
  3479
sl@0
  3480
sl@0
  3481
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2214
sl@0
  3482
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2214
sl@0
  3483
//! @SYMAPI			RFs
sl@0
  3484
//! @SYMTestCaseDesc		Function MkDir() test where the path doesn't end with "\".
sl@0
  3485
//!				Uses API elements: MkDir(), GetDir(), RmDir().
sl@0
  3486
//! @SYMTestActions		1. Call Connect() method.
sl@0
  3487
//!				2. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\DoesntExist\NewDir" as parameter.
sl@0
  3488
//!				3. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter,
sl@0
  3489
//!				   and check that list of directory contents has a "DoesntExist" of directory.
sl@0
  3490
//!				4. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\DoesntExist\" as parameter,
sl@0
  3491
//!				   and check that list of directory contents hasn't a "NewDir" of directory.
sl@0
  3492
//!				5. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\DoesntExistAll\DoesntExist\" as parameter.
sl@0
  3493
//!				6. Call Close() method.
sl@0
  3494
//! @SYMTestStatus		Implemented
sl@0
  3495
//! @SYMTestPriority		Critical
sl@0
  3496
//! @SYMTestExpectedResults	Function MkDir() return KErrNone, directories "DoesntExist" is created, "NewDir" not created..
sl@0
  3497
//! @SYMTestType		CIT
sl@0
  3498
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  3499
		CREATE_OBJECT	RFs	RFs1
sl@0
  3500
		COMMAND		RFs1	new
sl@0
  3501
		COMMAND		RFs1	Connect
sl@0
  3502
		COMMAND		RFs1	MkDir		PBASE-F32-RFS-PublicApi-2214-001-MkDir_command03
sl@0
  3503
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2214-001-GetDir_command04
sl@0
  3504
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2214-001-GetDir_command05
sl@0
  3505
		COMMAND		RFs1	RmDir		PBASE-F32-RFS-PublicApi-2214-001-RmDir_command06
sl@0
  3506
		COMMAND		RFs1	Close
sl@0
  3507
		COMMAND		RFs1	~
sl@0
  3508
	END_TEST_BLOCK	
sl@0
  3509
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2214
sl@0
  3510
sl@0
  3511
sl@0
  3512
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2215
sl@0
  3513
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2215
sl@0
  3514
//! @SYMAPI			RFs
sl@0
  3515
//! @SYMTestCaseDesc		Function MkDir() negative test where the path doesn't exist and not ended with "\".
sl@0
  3516
//!				Uses API elements: MkDir(), GetDir().
sl@0
  3517
//! @SYMTestActions		1. Call Connect() method.
sl@0
  3518
//!				2. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\DoesntExist\NewDir1\NewDir2" as parameter.
sl@0
  3519
//!				3. Call Close() method.
sl@0
  3520
//! @SYMTestStatus		Implemented
sl@0
  3521
//! @SYMTestPriority		High
sl@0
  3522
//! @SYMTestExpectedResults	Function MkDir() return KErrPathNotFound.
sl@0
  3523
//! @SYMTestType		CIT
sl@0
  3524
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  3525
		CREATE_OBJECT	RFs	RFs1
sl@0
  3526
		COMMAND			RFs1	new
sl@0
  3527
		COMMAND			RFs1	Connect
sl@0
  3528
		COMMAND	!Error=-12	RFs1	MkDir		PBASE-F32-RFS-PublicApi-2215-001-MkDir_command03
sl@0
  3529
		COMMAND			RFs1	Close
sl@0
  3530
		COMMAND			RFs1	~
sl@0
  3531
	END_TEST_BLOCK	
sl@0
  3532
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2215
sl@0
  3533
sl@0
  3534
sl@0
  3535
///////////////////////////////
sl@0
  3536
// MKDIRALL
sl@0
  3537
///////////////////////////////
sl@0
  3538
sl@0
  3539
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2216
sl@0
  3540
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2216
sl@0
  3541
//! @SYMAPI			RFs
sl@0
  3542
//! @SYMCreationDate		5/10/2006
sl@0
  3543
//! @SYMTestCaseDesc		Function MkDirAll() that would create a directory in a directory that doesn't exist.
sl@0
  3544
//!				Uses API elements: MkDirAll(), GetDir(), RmDir().
sl@0
  3545
//! @SYMTestActions		1. Call Connect() method.
sl@0
  3546
//!				2. Call MkDirAll() and pass "<DRIVE>:\base\T_Sfsrv\DoesntExistAll\NewDirAll\" as parameter where <DRIVE> is a test drive letter.
sl@0
  3547
//!				3. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter,
sl@0
  3548
//!				   check that list of directory contents has a "DoesntExistAll" of directory.
sl@0
  3549
//!				4. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\DoesntExistAll\" as parameter,
sl@0
  3550
//!				   check that list of directory contents has a "NewDirAll" of directory.
sl@0
  3551
//!				5. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\DoesntExistAll\NewDirAll\" as parameter.
sl@0
  3552
//!				6. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\DoesntExistAll\" as parameter.
sl@0
  3553
//!				7. Call Close() method.
sl@0
  3554
//! @SYMTestStatus		Implemented
sl@0
  3555
//! @SYMTestPriority		Critical
sl@0
  3556
//! @SYMTestExpectedResults	Function MkDirAll() return KErrNone, directories "DoesntExistAll" and "NewDirAll" is created.
sl@0
  3557
//! @SYMTestType		CIT
sl@0
  3558
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  3559
		CREATE_OBJECT	RFs	RFs1
sl@0
  3560
		COMMAND		RFs1	new
sl@0
  3561
		COMMAND		RFs1	Connect
sl@0
  3562
		COMMAND		RFs1	MkDirAll		PBASE-F32-RFS-PublicApi-2216-001-MkDirAll_command03
sl@0
  3563
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2216-001-GetDir_command04
sl@0
  3564
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2216-001-GetDir_command05
sl@0
  3565
		COMMAND		RFs1	RmDir		PBASE-F32-RFS-PublicApi-2216-001-RmDir_command06
sl@0
  3566
		COMMAND		RFs1	RmDir		PBASE-F32-RFS-PublicApi-2216-001-RmDir_command07
sl@0
  3567
		COMMAND		RFs1	Close
sl@0
  3568
		COMMAND		RFs1	~
sl@0
  3569
	END_TEST_BLOCK	
sl@0
  3570
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2216
sl@0
  3571
sl@0
  3572
sl@0
  3573
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2217
sl@0
  3574
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2217
sl@0
  3575
//! @SYMAPI			RFs
sl@0
  3576
//! @SYMTestCaseDesc		Function MkDirAll() test where the path doesn't end with "\".
sl@0
  3577
//!				Uses API elements: MkDirAll(), GetDir(), RmDir().
sl@0
  3578
//! @SYMTestActions		1. Call Connect() method.
sl@0
  3579
//!				2. Call MkDirAll() and pass "<DRIVE>:\base\T_Sfsrv\DoesntExistAll\NewDirAll" as parameter where <DRIVE> is a test drive letter.
sl@0
  3580
//!				3. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter,
sl@0
  3581
//!				   check that list of directory contents has a "DoesntExistAll" of directory.
sl@0
  3582
//!				4. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\DoesntExistAll\" as parameter,
sl@0
  3583
//!				   check that list of directory contents hasn't a "NewDirAll" of directory.
sl@0
  3584
//!				5. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\DoesntExistAll\" as parameter.
sl@0
  3585
//!				6. Call Close() method
sl@0
  3586
//! @SYMTestStatus		Implemented
sl@0
  3587
//! @SYMTestPriority		Critical
sl@0
  3588
//! @SYMTestExpectedResults	Function MkDirAll() return KErrNone, directories "DoesntExistAll" is created, "NewDirAll" not created.
sl@0
  3589
//! @SYMTestType		CIT
sl@0
  3590
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  3591
		CREATE_OBJECT	RFs	RFs1
sl@0
  3592
		COMMAND		RFs1	new
sl@0
  3593
		COMMAND		RFs1	Connect
sl@0
  3594
		COMMAND		RFs1	MkDirAll		PBASE-F32-RFS-PublicApi-2217-001-MkDirAll_command03
sl@0
  3595
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2217-001-GetDir_command04
sl@0
  3596
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2217-001-GetDir_command05
sl@0
  3597
		COMMAND		RFs1	RmDir		PBASE-F32-RFS-PublicApi-2217-001-RmDir_command06
sl@0
  3598
		COMMAND		RFs1	Close
sl@0
  3599
		COMMAND		RFs1	~
sl@0
  3600
	END_TEST_BLOCK	
sl@0
  3601
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2217
sl@0
  3602
sl@0
  3603
sl@0
  3604
///////////////////////////////
sl@0
  3605
// DELETE
sl@0
  3606
///////////////////////////////
sl@0
  3607
sl@0
  3608
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2218
sl@0
  3609
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2218
sl@0
  3610
//! @SYMAPI			RFs
sl@0
  3611
//! @SYMCreationDate		5/10/2006
sl@0
  3612
//! @SYMTestCaseDesc		Function Delete() negative test where name of file includes "?" of wildcard.
sl@0
  3613
//!				Uses API elements: Delete().
sl@0
  3614
//! @SYMTestActions		1. Call Connect() method.
sl@0
  3615
//!				2. Call Delete() and pass "delete?.txt" as parameter.
sl@0
  3616
//!				3. Call Close() method.
sl@0
  3617
//! @SYMTestStatus		Implemented
sl@0
  3618
//! @SYMTestPriority		High
sl@0
  3619
//! @SYMTestExpectedResults	Function Delete() return KErrBadName.
sl@0
  3620
//! @SYMTestType		CIT
sl@0
  3621
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  3622
		CREATE_OBJECT	RFs	RFs1
sl@0
  3623
		COMMAND			RFs1	new
sl@0
  3624
		COMMAND			RFs1	Connect
sl@0
  3625
		COMMAND	!Error=-28	RFs1	Delete		PBASE-F32-RFS-PublicApi-2218-001-Delete_command03
sl@0
  3626
		COMMAND			RFs1	Close
sl@0
  3627
		COMMAND			RFs1	~
sl@0
  3628
	END_TEST_BLOCK	
sl@0
  3629
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2218
sl@0
  3630
sl@0
  3631
sl@0
  3632
///////////////////////////////
sl@0
  3633
// RMDIR
sl@0
  3634
///////////////////////////////
sl@0
  3635
sl@0
  3636
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2219
sl@0
  3637
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2219
sl@0
  3638
//! @SYMAPI			RFs
sl@0
  3639
//! @SYMCreationDate		5/10/2006
sl@0
  3640
//! @SYMTestCaseDesc		Function RmDir() negative test removing non empty directory.
sl@0
  3641
//!				Uses API elements: RmDir(), RmDir().
sl@0
  3642
//! @SYMTestActions		1. Call Connect() method.
sl@0
  3643
//!				2. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\RmDir\" as parameter.
sl@0
  3644
//!				3. Call Create() and pass "<DRIVE>:\base\T_Sfsrv\RmDir\file1.txt" as parameter where <DRIVE> is a test drive letter.
sl@0
  3645
//!				4. Call Create() and pass "<DRIVE>:\base\T_Sfsrv\RmDir\file2.txt" as parameter where <DRIVE> is a test drive letter.
sl@0
  3646
//!				5. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\RmDir\" as parameter where <DRIVE> is a test drive letter.
sl@0
  3647
//!				6. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter,
sl@0
  3648
//!				   check that list of directory contents has a "RmDir" of directory.
sl@0
  3649
//!				7. Delete files "file1.txt" and "file2.txt".
sl@0
  3650
//!				8. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\RmDir\" as parameter.
sl@0
  3651
//!				9. Call Close() method.
sl@0
  3652
//! @SYMTestStatus		Implemented
sl@0
  3653
//! @SYMTestPriority		High
sl@0
  3654
//! @SYMTestExpectedResults	Function RmDir() return KErrInUse.
sl@0
  3655
//! @SYMTestType		CIT
sl@0
  3656
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  3657
		CREATE_OBJECT	RFs	RFs1
sl@0
  3658
		CREATE_OBJECT	RFile	RFile1
sl@0
  3659
		COMMAND			RFs1	new
sl@0
  3660
		COMMAND			RFs1	Connect
sl@0
  3661
		COMMAND			RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2219-001-SetSessionPath_command03
sl@0
  3662
		COMMAND			RFs1	MkDir		PBASE-F32-RFS-PublicApi-2219-001-MkDir_command04
sl@0
  3663
		COMMAND			RFile1	new
sl@0
  3664
		COMMAND			RFile1	Create		PBASE-F32-RFS-PublicApi-2219-001-Create_command07
sl@0
  3665
		COMMAND			RFile1	Close
sl@0
  3666
		COMMAND			RFile1	Create		PBASE-F32-RFS-PublicApi-2219-001-Create_command09
sl@0
  3667
		COMMAND			RFile1	Close
sl@0
  3668
		COMMAND			RFile1	~
sl@0
  3669
		COMMAND	!Error=-14	RFs1	RmDir		PBASE-F32-RFS-PublicApi-2219-001-RmDir_command13
sl@0
  3670
		COMMAND			RFs1	GetDir		PBASE-F32-RFS-PublicApi-2219-001-GetDir_command14
sl@0
  3671
		COMMAND			RFs1	Delete		PBASE-F32-RFS-PublicApi-2219-001-Delete_command15
sl@0
  3672
		COMMAND			RFs1	Delete		PBASE-F32-RFS-PublicApi-2219-001-Delete_command16
sl@0
  3673
		COMMAND			RFs1	RmDir		PBASE-F32-RFS-PublicApi-2219-001-RmDir_command17
sl@0
  3674
		COMMAND			RFs1	Close
sl@0
  3675
		COMMAND			RFs1	~
sl@0
  3676
	END_TEST_BLOCK	
sl@0
  3677
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2219
sl@0
  3678
sl@0
  3679
sl@0
  3680
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2220
sl@0
  3681
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2220
sl@0
  3682
//! @SYMAPI			RFs
sl@0
  3683
//! @SYMCreationDate		5/10/2006
sl@0
  3684
//! @SYMTestCaseDesc		Function RmDir() test removing directory where path doesn't end with a backslash.
sl@0
  3685
//!				Uses API elements: MkDir(), GetDir(), RmDir().
sl@0
  3686
//! @SYMTestActions		1. Call Connect() method.
sl@0
  3687
//!				2. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\RmDir\" as parameter.
sl@0
  3688
//!				3. Call RmDir) and pass "<DRIVE>:\base\T_Sfsrv\RmDir\None" as parameter where <DRIVE> is a test drive letter.
sl@0
  3689
//!				4. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter,
sl@0
  3690
//!				   check that list of directory contents hasn't a "RmDir" of directory.
sl@0
  3691
//!				5. Call Close() method.
sl@0
  3692
//! @SYMTestStatus		Implemented
sl@0
  3693
//! @SYMTestPriority		Critical
sl@0
  3694
//! @SYMTestExpectedResults	Function RmDir() return KErrNone, directory "RmDir" is removed.
sl@0
  3695
//! @SYMTestType		CIT
sl@0
  3696
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  3697
		CREATE_OBJECT	RFs	RFs1
sl@0
  3698
		COMMAND		RFs1	new
sl@0
  3699
		COMMAND		RFs1	Connect
sl@0
  3700
		COMMAND		RFs1	MkDir		PBASE-F32-RFS-PublicApi-2220-001-MkDir_command03
sl@0
  3701
		COMMAND		RFs1	RmDir		PBASE-F32-RFS-PublicApi-2220-001-RmDir_command04
sl@0
  3702
		COMMAND		RFs1	GetDir		PBASE-F32-RFS-PublicApi-2220-001-GetDir_command05
sl@0
  3703
		COMMAND		RFs1	Close
sl@0
  3704
		COMMAND		RFs1	~
sl@0
  3705
	END_TEST_BLOCK	
sl@0
  3706
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2220
sl@0
  3707
sl@0
  3708
sl@0
  3709
///////////////////////////////
sl@0
  3710
// GETSHORTNAME
sl@0
  3711
///////////////////////////////
sl@0
  3712
sl@0
  3713
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2221
sl@0
  3714
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2221
sl@0
  3715
//! @SYMAPI			RFs
sl@0
  3716
//! @SYMTestCaseDesc		Function GetShortName() test.
sl@0
  3717
//!				Uses API elements: SetSessionPath(), GetShortName().
sl@0
  3718
//! @SYMTestActions		1. Call Connect() method.
sl@0
  3719
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
  3720
//!				3. Create file "TestLongNameFile.txt".
sl@0
  3721
//!				4. Call GetShortName() and pass "TestLongNameFile.txt" as parameter of long name of file,
sl@0
  3722
//!				   and check that it return "TESTLO~1.TXT".
sl@0
  3723
//!				5. Delete file "TestLongNameFile.txt".
sl@0
  3724
//!				6. Call Close() method.
sl@0
  3725
//! @SYMTestStatus		Implemented
sl@0
  3726
//! @SYMTestPriority		Critical
sl@0
  3727
//! @SYMTestExpectedResults	Function GetShortName() return KErNone, the short name "TESTLO~1.TXT" return successfully.
sl@0
  3728
//! @SYMTestType		CIT
sl@0
  3729
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  3730
		CREATE_OBJECT	RFs	RFs1
sl@0
  3731
		CREATE_OBJECT	RFile	RFile1
sl@0
  3732
		COMMAND		RFs1	new
sl@0
  3733
		COMMAND		RFs1	Connect
sl@0
  3734
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2221-001-SetSessionPath_command03
sl@0
  3735
		COMMAND		RFile1	new
sl@0
  3736
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2221-001-Create_command06
sl@0
  3737
		COMMAND		RFile1	Close
sl@0
  3738
		COMMAND		RFile1	~
sl@0
  3739
		COMMAND		RFs1	GetShortName		PBASE-F32-RFS-PublicApi-2221-001-GetShortName_command10
sl@0
  3740
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2221-001-Delete_command11
sl@0
  3741
		COMMAND		RFs1	Close
sl@0
  3742
		COMMAND		RFs1	~
sl@0
  3743
	END_TEST_BLOCK	
sl@0
  3744
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2221
sl@0
  3745
sl@0
  3746
sl@0
  3747
///////////////////////////////
sl@0
  3748
// GETLONGNAME
sl@0
  3749
///////////////////////////////
sl@0
  3750
sl@0
  3751
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2222
sl@0
  3752
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2222
sl@0
  3753
//! @SYMAPI			RFs
sl@0
  3754
//! @SYMTestCaseDesc		Function GetLongName() test.
sl@0
  3755
//!				Uses API elements: SetSessionPath(), GetLongName().
sl@0
  3756
//! @SYMTestActions		1. Call Connect() method.
sl@0
  3757
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
  3758
//!				3. Create file "TestLongNameFile.txt".
sl@0
  3759
//!				4. Call GetLongName() and pass "TESTLO~1.TXT"  as parameter of short name of file,
sl@0
  3760
//!				   and check that it return "TestLongNameFile.txt".
sl@0
  3761
//!				5. Delete file "TestLongNameFile.txt".
sl@0
  3762
//!				6. Call Close() method.
sl@0
  3763
//! @SYMTestStatus		Implemented
sl@0
  3764
//! @SYMTestPriority		Critical
sl@0
  3765
//! @SYMTestExpectedResults	Function GetLongName() return KErNone, the long name "TestLongNameFile.txt" return successfully.
sl@0
  3766
//! @SYMTestType		CIT
sl@0
  3767
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  3768
		CREATE_OBJECT	RFs	RFs1
sl@0
  3769
		CREATE_OBJECT	RFile	RFile1
sl@0
  3770
		COMMAND		RFs1	new
sl@0
  3771
		COMMAND		RFs1	Connect
sl@0
  3772
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2222-001-SetSessionPath_command03
sl@0
  3773
		COMMAND		RFile1	new
sl@0
  3774
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2222-001-Create_command06
sl@0
  3775
		COMMAND		RFile1	Close
sl@0
  3776
		COMMAND		RFile1	~
sl@0
  3777
		COMMAND		RFs1	GetLongName		PBASE-F32-RFS-PublicApi-2222-001-GetLongName_command10
sl@0
  3778
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2222-001-Delete_command11
sl@0
  3779
		COMMAND		RFs1	Close
sl@0
  3780
		COMMAND		RFs1	~
sl@0
  3781
	END_TEST_BLOCK	
sl@0
  3782
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2222
sl@0
  3783
sl@0
  3784
sl@0
  3785
///////////////////////////////
sl@0
  3786
// ISFILEOPEN
sl@0
  3787
///////////////////////////////
sl@0
  3788
sl@0
  3789
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2223
sl@0
  3790
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2223
sl@0
  3791
//! @SYMAPI			RFs
sl@0
  3792
//! @SYMTestCaseDesc		Function IsFileOpen() test.
sl@0
  3793
//!				Uses API elements: SetSessionPath(), IsFileOpen().
sl@0
  3794
//! @SYMTestActions		1. Call Connect() method.
sl@0
  3795
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
  3796
//!				3. Call RFile's Open() and pass "test.txt" as parameter of file name.
sl@0
  3797
//!				4. Call IsFileOpen()  and pass "test.txt" as parameter and check that it is open.
sl@0
  3798
//!				5. Call Close() method.
sl@0
  3799
//! @SYMTestStatus		Implemented
sl@0
  3800
//! @SYMTestPriority		Critical
sl@0
  3801
//! @SYMTestExpectedResults	Function IsFileOpen() return KErNone, file "test.txt" is open.
sl@0
  3802
//! @SYMTestType		CIT
sl@0
  3803
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  3804
		CREATE_OBJECT	RFs	RFs1
sl@0
  3805
		CREATE_OBJECT	RFile	RFile1
sl@0
  3806
		COMMAND		RFs1	new
sl@0
  3807
		COMMAND		RFs1	Connect
sl@0
  3808
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2223-001-SetSessionPath_command03
sl@0
  3809
		COMMAND		RFile1	new
sl@0
  3810
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2223-001-Create_command06
sl@0
  3811
		COMMAND		RFs1	IsFileOpen		PBASE-F32-RFS-PublicApi-2223-001-IsFileOpen_command08
sl@0
  3812
		COMMAND		RFile1	Close
sl@0
  3813
		COMMAND		RFile1	~
sl@0
  3814
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2223-001-Delete_command13
sl@0
  3815
		COMMAND		RFs1	Close
sl@0
  3816
		COMMAND		RFs1	~
sl@0
  3817
	END_TEST_BLOCK	
sl@0
  3818
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2223
sl@0
  3819
sl@0
  3820
sl@0
  3821
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2224
sl@0
  3822
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2224
sl@0
  3823
//! @SYMAPI			RFs
sl@0
  3824
//! @SYMTestCaseDesc		Functions SetSessionPath() test where path is an empty string and function SessionPath() test
sl@0
  3825
//!				where check that the current path is system default path.
sl@0
  3826
//!				Uses API elements: SetSessionPath(), SessionPath().
sl@0
  3827
//! @SYMTestActions		1. Call Connect() method.
sl@0
  3828
//!				2. Call SetSessionPath() and some valid directory path on the C-drive.
sl@0
  3829
//!				3. Call SetSessionPath() and pass empty string as parameter of path.
sl@0
  3830
//!				4. Call SessionPath() and check that it is the same as was set by the first SetSessionPath() call.
sl@0
  3831
//!				5. Call Close() method.
sl@0
  3832
//! @SYMTestStatus		Implemented
sl@0
  3833
//! @SYMTestPriority		Critical
sl@0
  3834
//! @SYMTestExpectedResults	Function SetSessionPath return KErrNone and doesn't change session path.
sl@0
  3835
//! @SYMTestType		CIT
sl@0
  3836
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  3837
		CREATE_OBJECT	RFs	RFs1
sl@0
  3838
		COMMAND		RFs1	new
sl@0
  3839
		COMMAND		RFs1	Connect
sl@0
  3840
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2224-001-SetSessionPath_command03
sl@0
  3841
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2224-001-SetSessionPath_command04
sl@0
  3842
		COMMAND		RFs1	SessionPath		PBASE-F32-RFS-PublicApi-2224-001-SessionPath_command05
sl@0
  3843
		COMMAND		RFs1	Close
sl@0
  3844
		COMMAND		RFs1	~
sl@0
  3845
	END_TEST_BLOCK	
sl@0
  3846
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2224
sl@0
  3847
sl@0
  3848
sl@0
  3849
///////////////////////////////
sl@0
  3850
// SETATT & ATT
sl@0
  3851
///////////////////////////////
sl@0
  3852
sl@0
  3853
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2225
sl@0
  3854
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2225
sl@0
  3855
//! @SYMAPI			RFs
sl@0
  3856
//! @SYMTestCaseDesc		Functions SetAtt() and Att() test for directory.
sl@0
  3857
//!				Uses API elements: SetSessionPath(), SetAtt() and Att(), MkDir(), RmDir().
sl@0
  3858
//! @SYMTestActions		1. Call Connect() method.
sl@0
  3859
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
  3860
//!				3. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\TestDir\" as parameter.
sl@0
  3861
//!				4. Call SetAtt() and pass "TestDir" as name of directory.
sl@0
  3862
//!				5. Call Att() and pass "TestDir" as name of directory and check that flag of directory is set.
sl@0
  3863
//!				6. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\TestDir\" as parameter.
sl@0
  3864
//!				7. Call Close() method.
sl@0
  3865
//! @SYMTestStatus		Implemented
sl@0
  3866
//! @SYMTestPriority		Critical
sl@0
  3867
//! @SYMTestExpectedResults	Function SetAtt() and Att() return KErrNone, flag of directory is set.
sl@0
  3868
//! @SYMTestType		CIT
sl@0
  3869
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  3870
		CREATE_OBJECT	RFs	RFs1
sl@0
  3871
		COMMAND		RFs1	new
sl@0
  3872
		COMMAND		RFs1	Connect
sl@0
  3873
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2225-001-SetSessionPath_command03
sl@0
  3874
		COMMAND		RFs1	MkDir		PBASE-F32-RFS-PublicApi-2225-001-MkDir_command04
sl@0
  3875
		COMMAND		RFs1	SetAtt		PBASE-F32-RFS-PublicApi-2225-001-SetAtt_command05
sl@0
  3876
		COMMAND		RFs1	Att		PBASE-F32-RFS-PublicApi-2225-001-Att_command06
sl@0
  3877
		COMMAND		RFs1	RmDir		PBASE-F32-RFS-PublicApi-2225-001-RmDir_command07
sl@0
  3878
		COMMAND		RFs1	Close
sl@0
  3879
		COMMAND		RFs1	~
sl@0
  3880
	END_TEST_BLOCK	
sl@0
  3881
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2225
sl@0
  3882
sl@0
  3883
sl@0
  3884
///////////////////////////////
sl@0
  3885
// SETENTRY & ENTRY
sl@0
  3886
///////////////////////////////
sl@0
  3887
sl@0
  3888
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2226
sl@0
  3889
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2226
sl@0
  3890
//! @SYMAPI			RFs
sl@0
  3891
//! @SYMTestCaseDesc		Functions SetEntry() and Entry() test for directory.
sl@0
  3892
//!				Uses API elements: SetSessionPath(), SetEntry(), Entry(), Modified(),  MkDir(), RmDir().
sl@0
  3893
//! @SYMTestActions		1. Call Connect() method.
sl@0
  3894
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
  3895
//!				3. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\TetsDir\" as parameter.
sl@0
  3896
//!				4. Call SetEntry() and pass "TestDir" as name of directory, "20090101" as time of modified. 
sl@0
  3897
//!				5. Call Entry() and pass "TestDir" as name of directory and check that flag of directory is set.
sl@0
  3898
//!				6. Call Modified() and pass "TestDir" as name of directory and check that time of modified is set to "20090101".
sl@0
  3899
//!				7. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\TestDir\" as parameter.
sl@0
  3900
//!				8. Call Close() method.
sl@0
  3901
//! @SYMTestStatus		Implemented
sl@0
  3902
//! @SYMTestPriority		Critical
sl@0
  3903
//! @SYMTestExpectedResults	Function SetEntry() and Entry() return KErrNone, time of modified is set to "20090101".
sl@0
  3904
//! @SYMTestType		CIT
sl@0
  3905
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  3906
		CREATE_OBJECT	RFs	RFs1
sl@0
  3907
		COMMAND		RFs1	new
sl@0
  3908
		COMMAND		RFs1	Connect
sl@0
  3909
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2226-001-SetSessionPath_command03
sl@0
  3910
		COMMAND		RFs1	MkDir		PBASE-F32-RFS-PublicApi-2226-001-MkDir_command04
sl@0
  3911
		COMMAND		RFs1	SetEntry		PBASE-F32-RFS-PublicApi-2226-001-SetEntry_command05
sl@0
  3912
		COMMAND		RFs1	Entry		PBASE-F32-RFS-PublicApi-2226-001-Entry_command06
sl@0
  3913
		COMMAND		RFs1	Modified		PBASE-F32-RFS-PublicApi-2226-001-Modified_command07
sl@0
  3914
		COMMAND		RFs1	RmDir		PBASE-F32-RFS-PublicApi-2226-001-RmDir_command08
sl@0
  3915
		COMMAND		RFs1	Close
sl@0
  3916
		COMMAND		RFs1	~
sl@0
  3917
	END_TEST_BLOCK	
sl@0
  3918
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2226
sl@0
  3919
sl@0
  3920
sl@0
  3921
///////////////////////////////
sl@0
  3922
// SETMODIFIED & MODIFIED
sl@0
  3923
///////////////////////////////
sl@0
  3924
sl@0
  3925
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2227
sl@0
  3926
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2227
sl@0
  3927
//! @SYMAPI			RFs
sl@0
  3928
//! @SYMTestCaseDesc		Functions SetModified() and Modified() test for directory and uses SetModified() to set a future time for the directory.
sl@0
  3929
//!				Uses API elements: SetSessionPath(), SetEntry(), Entry(), Modified(), MkDir(), RmDir().
sl@0
  3930
//! @SYMTestActions		1. Call Connect() method.
sl@0
  3931
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
  3932
//!				3. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\TestDir\" as parameter.
sl@0
  3933
//!				4. Call SetModified() and pass "TestDir" as name of directory, "20990101" as time of modified. 
sl@0
  3934
//!				5. Call Modified() and pass "TestDir" as name of directory and check that time of modified is set to "20990101".
sl@0
  3935
//!				6. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\TestDir\" as parameter.
sl@0
  3936
//!				7. Call Close() method.
sl@0
  3937
//! @SYMTestStatus		Implemented
sl@0
  3938
//! @SYMTestPriority		Critical
sl@0
  3939
//! @SYMTestExpectedResults	Function SetModified() and Modified() return KErrNone, time of modified is set to "20990101".
sl@0
  3940
//! @SYMTestType		CIT
sl@0
  3941
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  3942
		CREATE_OBJECT	RFs	RFs1
sl@0
  3943
		COMMAND		RFs1	new
sl@0
  3944
		COMMAND		RFs1	Connect
sl@0
  3945
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2227-001-SetSessionPath_command03
sl@0
  3946
		COMMAND		RFs1	MkDir		PBASE-F32-RFS-PublicApi-2227-001-MkDir_command04
sl@0
  3947
		COMMAND		RFs1	SetModified		PBASE-F32-RFS-PublicApi-2227-001-SetModified_command05
sl@0
  3948
		COMMAND		RFs1	Modified		PBASE-F32-RFS-PublicApi-2227-001-Modified_command06
sl@0
  3949
		COMMAND		RFs1	RmDir		PBASE-F32-RFS-PublicApi-2227-001-RmDir_command07
sl@0
  3950
		COMMAND		RFs1	Close
sl@0
  3951
		COMMAND		RFs1	~
sl@0
  3952
	END_TEST_BLOCK	
sl@0
  3953
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2227
sl@0
  3954
sl@0
  3955
sl@0
  3956
///////////////////////////////
sl@0
  3957
// READFILESECTION
sl@0
  3958
///////////////////////////////
sl@0
  3959
sl@0
  3960
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2229
sl@0
  3961
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2229
sl@0
  3962
//! @SYMAPI			RFs
sl@0
  3963
//! @SYMTestCaseDesc		Functions ReadFileSection() test where offset, in bytes, from the start has some positive number.
sl@0
  3964
//!				Uses API elements: SetSessionPath(), ReadFileSection().
sl@0
  3965
//! @SYMTestActions		1. Call Connect() method.
sl@0
  3966
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
  3967
//!				3. Call Create() passing "EFileShareAny" as file mode and "test2229.txt" as name of file.
sl@0
  3968
//!				4. Call Write() passing some data to write as argument.
sl@0
  3969
//!				5. Call Close() to close created file.
sl@0
  3970
//!				6. Call ReadFileSection()  and pass "test2229.txt" as parameter as name of file and
sl@0
  3971
//!				   "10" as offset, in bytes, from the start.
sl@0
  3972
//!				7. Call Delete() passing parameter "test2229.txt" as name of file. 
sl@0
  3973
//!				8. Call Close() method.
sl@0
  3974
//! @SYMTestStatus		Implemented
sl@0
  3975
//! @SYMTestPriority		Critical
sl@0
  3976
//! @SYMTestExpectedResults	Function SetSessionPath() return KErrNone.
sl@0
  3977
//! @SYMTestType		CIT
sl@0
  3978
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  3979
		CREATE_OBJECT	RFs	RFs1
sl@0
  3980
		CREATE_OBJECT	RFile	RFile1
sl@0
  3981
		COMMAND		RFs1	new
sl@0
  3982
		COMMAND		RFs1	Connect
sl@0
  3983
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2229-001-SetSessionPath_command03
sl@0
  3984
		COMMAND		RFile1	new
sl@0
  3985
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2229-001-Create_command06
sl@0
  3986
		COMMAND		RFile1	Write		PBASE-F32-RFS-PublicApi-2229-001-Write_command07
sl@0
  3987
		COMMAND		RFile1	Close
sl@0
  3988
		COMMAND		RFile1	~
sl@0
  3989
		COMMAND		RFs1	ReadFileSection		PBASE-F32-RFS-PublicApi-2229-001-ReadFileSection_command11
sl@0
  3990
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2229-001-Delete_command12
sl@0
  3991
		COMMAND		RFs1	Close
sl@0
  3992
		COMMAND		RFs1	~
sl@0
  3993
	END_TEST_BLOCK	
sl@0
  3994
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2229
sl@0
  3995
sl@0
  3996
sl@0
  3997
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2230
sl@0
  3998
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2230
sl@0
  3999
//! @SYMAPI			RFs
sl@0
  4000
//! @SYMTestCaseDesc		Functions ReadFileSection() test where number of bytes to be read is greater than file size.
sl@0
  4001
//!				Uses API elements: SetSessionPath(), ReadFileSection().
sl@0
  4002
//! @SYMTestActions		1. Call Connect() method.
sl@0
  4003
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
  4004
//!				3. Call Create() passing "EFileShareAny" as file mode and "test2230.txt" as name of file.
sl@0
  4005
//!				4. Call Write() passing some data to write as argument.
sl@0
  4006
//!				5. Call Close() to close created file.
sl@0
  4007
//!				6. Call ReadFileSection()  and pass "test2230.txt" as parameter as name of file and
sl@0
  4008
//!				   "5555" number of bytes to be read.
sl@0
  4009
//!				7. Call Delete() passing parameter "test2230.txt" as name of file.
sl@0
  4010
//!				8. Call Close() method.
sl@0
  4011
//! @SYMTestStatus		Implemented
sl@0
  4012
//! @SYMTestPriority		High
sl@0
  4013
//! @SYMTestExpectedResults	Function SetSessionPath() return KErrNone.
sl@0
  4014
//! @SYMTestType		CIT
sl@0
  4015
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  4016
		CREATE_OBJECT	RFs	RFs1
sl@0
  4017
		CREATE_OBJECT	RFile	RFile1
sl@0
  4018
		COMMAND		RFs1	new
sl@0
  4019
		COMMAND		RFs1	Connect
sl@0
  4020
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2230-001-SetSessionPath_command03
sl@0
  4021
		COMMAND		RFile1	new
sl@0
  4022
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2230-001-Create_command06
sl@0
  4023
		COMMAND		RFile1	Write		PBASE-F32-RFS-PublicApi-2230-001-Write_command07
sl@0
  4024
		COMMAND		RFile1	Close
sl@0
  4025
		COMMAND		RFile1	~
sl@0
  4026
		COMMAND		RFs1	ReadFileSection		PBASE-F32-RFS-PublicApi-2230-001-ReadFileSection_command11
sl@0
  4027
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2230-001-Delete_command12
sl@0
  4028
		COMMAND		RFs1	Close
sl@0
  4029
		COMMAND		RFs1	~
sl@0
  4030
	END_TEST_BLOCK	
sl@0
  4031
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2230
sl@0
  4032
sl@0
  4033
sl@0
  4034
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2231
sl@0
  4035
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2231
sl@0
  4036
//! @SYMAPI			RFs
sl@0
  4037
//! @SYMTestCaseDesc		Functions ReadFileSection() negative test where passed the name of directory instead of name of file.
sl@0
  4038
//!				Uses API elements: ReadFileSection().
sl@0
  4039
//! @SYMTestActions		1. Call Connect() method.
sl@0
  4040
//!				2. Call ReadFileSection()  and pass "<DRIVE>:\base\T_Sfsrv\" as parameter as name of file.
sl@0
  4041
//!				3. Call Close() method.
sl@0
  4042
//! @SYMTestStatus		Implemented
sl@0
  4043
//! @SYMTestPriority		High
sl@0
  4044
//! @SYMTestExpectedResults	Function SetSessionPath() return KErrBadName.
sl@0
  4045
//! @SYMTestType		CIT
sl@0
  4046
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  4047
		CREATE_OBJECT	RFs	RFs1
sl@0
  4048
		COMMAND			RFs1	new
sl@0
  4049
		COMMAND			RFs1	Connect
sl@0
  4050
		COMMAND	!Error=-28	RFs1	ReadFileSection		PBASE-F32-RFS-PublicApi-2231-001-ReadFileSection_command03
sl@0
  4051
		COMMAND			RFs1	Close
sl@0
  4052
		COMMAND			RFs1	~
sl@0
  4053
	END_TEST_BLOCK	
sl@0
  4054
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2231
sl@0
  4055
sl@0
  4056
sl@0
  4057
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2232
sl@0
  4058
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2232
sl@0
  4059
//! @SYMAPI			RFs
sl@0
  4060
//! @SYMTestCaseDesc		Function ReadFileSection() test with 0 as a length argument.
sl@0
  4061
//!				Uses API elements: ReadFileSection().
sl@0
  4062
//! @SYMTestActions		1. Call Connect() method.
sl@0
  4063
//!				2. Call ReadFileSection()  and pass "<DRIVE>:\base\T_Sfsrv\test.txt" as parameter, offset = 0, length = 0, buffer with a length = 10.
sl@0
  4064
//!				3. Call Close() method.
sl@0
  4065
//! @SYMTestStatus		Implemented
sl@0
  4066
//! @SYMTestPriority		Critical
sl@0
  4067
//! @SYMTestExpectedResults	ReadFileSection() returns KErrNone.
sl@0
  4068
//! @SYMTestType		CIT
sl@0
  4069
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  4070
		CREATE_OBJECT	RFs	RFs1
sl@0
  4071
		CREATE_OBJECT	RFile	RFile1
sl@0
  4072
		COMMAND		RFs1	new
sl@0
  4073
		COMMAND		RFs1	Connect
sl@0
  4074
		COMMAND		RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2232-001-SetSessionPath_command03
sl@0
  4075
		COMMAND		RFile1	new
sl@0
  4076
		COMMAND		RFile1	Create		PBASE-F32-RFS-PublicApi-2232-001-Create_command06
sl@0
  4077
		COMMAND		RFile1	Write		PBASE-F32-RFS-PublicApi-2232-001-Write_command07
sl@0
  4078
		COMMAND		RFile1	Close
sl@0
  4079
		COMMAND		RFile1	~
sl@0
  4080
		COMMAND		RFs1	ReadFileSection		PBASE-F32-RFS-PublicApi-2232-001-ReadFileSection_command11
sl@0
  4081
		COMMAND		RFs1	Delete		PBASE-F32-RFS-PublicApi-2232-001-Delete_command12
sl@0
  4082
		COMMAND		RFs1	Close
sl@0
  4083
		COMMAND		RFs1	~
sl@0
  4084
	END_TEST_BLOCK	
sl@0
  4085
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2232
sl@0
  4086
sl@0
  4087
sl@0
  4088
///////////////////////////////
sl@0
  4089
// DELETE
sl@0
  4090
///////////////////////////////
sl@0
  4091
sl@0
  4092
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2233
sl@0
  4093
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2233
sl@0
  4094
//! @SYMAPI			RFs
sl@0
  4095
//! @SYMCreationDate		5/10/2006
sl@0
  4096
//! @SYMTestCaseDesc		Function Delete() negative test where name of file includes "*" of wildcard.
sl@0
  4097
//!				Uses API elements: Delete().
sl@0
  4098
//! @SYMTestActions		1. Call Connect() method.
sl@0
  4099
//!				2. Call Delete() and pass "delete*.txt" as parameter.
sl@0
  4100
//!				3. Call Close() method.
sl@0
  4101
//! @SYMTestStatus		Implemented
sl@0
  4102
//! @SYMTestPriority		High
sl@0
  4103
//! @SYMTestExpectedResults	Function Delete() return KErrBadName.
sl@0
  4104
//! @SYMTestType		CIT
sl@0
  4105
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  4106
		CREATE_OBJECT	RFs	RFs1
sl@0
  4107
		COMMAND			RFs1	new
sl@0
  4108
		COMMAND			RFs1	Connect
sl@0
  4109
		COMMAND	!Error=-28	RFs1	Delete		PBASE-F32-RFS-PublicApi-2233-001-Delete_command03
sl@0
  4110
		COMMAND			RFs1	Close
sl@0
  4111
		COMMAND			RFs1	~
sl@0
  4112
	END_TEST_BLOCK	
sl@0
  4113
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2233
sl@0
  4114
sl@0
  4115
sl@0
  4116
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2234
sl@0
  4117
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2234
sl@0
  4118
//! @SYMAPI			RFs
sl@0
  4119
//! @SYMCreationDate		5/10/2006
sl@0
  4120
//! @SYMTestCaseDesc		Function Delete() negative test where name of file includes "*" and "?" of wildcards.
sl@0
  4121
//!				Uses API elements: Delete().
sl@0
  4122
//! @SYMTestActions		1. Call Connect() method.
sl@0
  4123
//!				2. Call Delete() and pass "delete*?.txt" as parameter.
sl@0
  4124
//!				3. Call Close() method.
sl@0
  4125
//! @SYMTestStatus		Implemented
sl@0
  4126
//! @SYMTestPriority		High
sl@0
  4127
//! @SYMTestExpectedResults	Function Delete() return KErrBadName.
sl@0
  4128
//! @SYMTestType		CIT
sl@0
  4129
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  4130
		CREATE_OBJECT	RFs	RFs1
sl@0
  4131
		COMMAND			RFs1	new
sl@0
  4132
		COMMAND			RFs1	Connect
sl@0
  4133
		COMMAND	!Error=-28	RFs1	Delete		PBASE-F32-RFS-PublicApi-2234-001-Delete_command03
sl@0
  4134
		COMMAND			RFs1	Close
sl@0
  4135
		COMMAND			RFs1	~
sl@0
  4136
	END_TEST_BLOCK	
sl@0
  4137
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2234
sl@0
  4138
sl@0
  4139
sl@0
  4140
START_TESTCASE 			PBASE-F32-RFS-PublicApi-2228
sl@0
  4141
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-2228
sl@0
  4142
//! @SYMAPI			RFs
sl@0
  4143
//! @SYMTestCaseDesc		Functions ReadFileSection() negative test where the number of bytes to be read is negative.
sl@0
  4144
//!				Uses API elements: SetSessionPath(), ReadFileSection().
sl@0
  4145
//! @SYMTestActions		1. Call Connect() method.
sl@0
  4146
//!				2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter.
sl@0
  4147
//!				3. Call Create() passing "EFileShareAny" as file mode and "test2228.txt" as name of file.
sl@0
  4148
//!				4. Call Write() passing some data to write as argument.
sl@0
  4149
//!				5. Call Close() to close created file.
sl@0
  4150
//!				6. Call ReadFileSection()  and pass "test2228.txt" as parameter as name of file and
sl@0
  4151
//!				   "-1" as number of bytes to be read.
sl@0
  4152
//!				7. Call Delete() passing parameter "test2228.txt" as name of file. 
sl@0
  4153
//!				8. Call Close() method.
sl@0
  4154
//! @SYMTestStatus		Implemented
sl@0
  4155
//! @SYMTestPriority		High
sl@0
  4156
//! @SYMTestExpectedResults	Function ReadFileSection() return KErrArgument.
sl@0
  4157
//! @SYMTestType		CIT
sl@0
  4158
	START_TEST_BLOCK	100	T_Sfsrv 	\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini 
sl@0
  4159
		CREATE_OBJECT	RFs	RFs1
sl@0
  4160
		CREATE_OBJECT	RFile	RFile1
sl@0
  4161
		COMMAND			RFs1	new
sl@0
  4162
		COMMAND			RFs1	Connect
sl@0
  4163
		COMMAND			RFs1	SetSessionPath		PBASE-F32-RFS-PublicApi-2228-001-SetSessionPath_command03
sl@0
  4164
		COMMAND			RFile1	new
sl@0
  4165
		COMMAND			RFile1	Create		PBASE-F32-RFS-PublicApi-2228-001-Create_command06
sl@0
  4166
		COMMAND			RFile1	Write		PBASE-F32-RFS-PublicApi-2228-001-Write_command07
sl@0
  4167
		COMMAND			RFile1	Close
sl@0
  4168
		COMMAND			RFile1	~
sl@0
  4169
		COMMAND	!Error=-6	RFs1	ReadFileSection		PBASE-F32-RFS-PublicApi-2228-001-ReadFileSection_command11
sl@0
  4170
		COMMAND			RFs1	Delete		PBASE-F32-RFS-PublicApi-2228-001-Delete_command12
sl@0
  4171
		COMMAND			RFs1	Close
sl@0
  4172
		COMMAND			RFs1	~
sl@0
  4173
	END_TEST_BLOCK	
sl@0
  4174
END_TESTCASE 			PBASE-F32-RFS-PublicApi-2228