os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-RFS-Mounts-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-Mounts-PublicApi-RAM
sl@0
    18
//! @SYMScriptTestEnvironment	This test script requires a basic ROM.
sl@0
    19
//! @SYMScriptAuthor 		Oleg Kuznetsov
sl@0
    20
//! @SYMScriptDescription	The test script contains API mounting related tests for RFs functions that perform operations on a 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-0002
sl@0
    26
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0002
sl@0
    27
//! @SYMAPI			RFs
sl@0
    28
//! @SYMTestCaseDesc		Functions MountFileSystem() (MountFileSystem(const TDesC& aFileSystemName,TInt aDrive) 
sl@0
    29
//!				and MountFileSystem(const TDesC& aFileSystemName,TInt aDrive, TBool aIsSync) versions) and DismountFileSystem() test.
sl@0
    30
//!				The test assumes that the tested file system is already mounted onto the tested drive.
sl@0
    31
//!				Uses API elements:  MountFileSystem(), DismountFileSystem(), FileSystemName().
sl@0
    32
//! @SYMTestActions		1. Call Connect() method.
sl@0
    33
//!				2. Call FileSystemName() for a drive where a file system was mounted.
sl@0
    34
//!				3. Call DismountFileSystem() providing the file system name and the drive number.
sl@0
    35
//!				4. Call MountFileSystem() passing the file system name, an enabled free drive number.
sl@0
    36
//!				5. Call DismountFileSystem() providing the name of the file system and the drive number.
sl@0
    37
//!				6. Call MountFileSystem() passing the file system name, an enabled free drive number and ETrue as a synchronization parameter.
sl@0
    38
//!				7. Call DismountFileSystem() providing the name of the file system and the drive number.
sl@0
    39
//!				8. Call MountFileSystem() passing the file system name, an enabled free drive number and EFalse as a synchronization parameter.
sl@0
    40
//!				9. Call Close() method.
sl@0
    41
//! @SYMTestStatus		Implemented
sl@0
    42
//! @SYMTestPriority		Critical
sl@0
    43
//! @SYMTestExpectedResults	All MountFileSystem() and DismountFileSystem() calls return KErrNone.
sl@0
    44
//! @SYMTestType		CIT
sl@0
    45
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
    46
		CREATE_OBJECT	RFs	RFs1
sl@0
    47
		COMMAND		RFs1	new
sl@0
    48
		COMMAND		RFs1	Connect
sl@0
    49
		COMMAND		RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-0002-001-FileSystemName_command03
sl@0
    50
		COMMAND		RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0002-001-DismountFileSystem_command04
sl@0
    51
		COMMAND		RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0002-001-MountFileSystem_command05
sl@0
    52
		COMMAND		RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0002-001-DismountFileSystem_command06
sl@0
    53
		COMMAND		RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0002-001-MountFileSystem_command07
sl@0
    54
		COMMAND		RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0002-001-DismountFileSystem_command08
sl@0
    55
		COMMAND		RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0002-001-MountFileSystem_command09
sl@0
    56
		COMMAND		RFs1	Close
sl@0
    57
		COMMAND		RFs1	~		
sl@0
    58
	END_TEST_BLOCK	
sl@0
    59
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0002
sl@0
    60
sl@0
    61
sl@0
    62
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0004
sl@0
    63
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0004
sl@0
    64
//! @SYMAPI			RFs
sl@0
    65
//! @SYMTestCaseDesc		Functions MountFileSystem() (MountFileSystem(const TDesC& aFileSystemName,const TDesC& aExtensionName,TInt aDrive)
sl@0
    66
//!				and MountFileSystem(const TDesC& aFileSystemName,const TDesC& aExtensionName,TInt aDrive, TBool aIsSync) versions) test. 
sl@0
    67
//!				The test assumes that the tested file system is already mounted onto the tested drive.
sl@0
    68
//!				The test requires a file system extension plug-in.
sl@0
    69
//!				Uses API elements:  AddExtension(), MountFileSystem(), DismountFileSystem(), RemoveExtension(), FileSystemName().
sl@0
    70
//! @SYMTestActions		1. Call Connect() method.
sl@0
    71
//!				2. Call FileSystemName() for a drive where a file system was mounted.
sl@0
    72
//!				3. Call DismountFileSystem() providing the file system name and the drive number.
sl@0
    73
//!				4. Call AddExtension() providing the file name of a file system extension plug-in as an argument.
sl@0
    74
//!				5. Call MountFileSystem() passing the file system name, plug-in extension name and an enabled free drive number.
sl@0
    75
//!				6. Call DismountFileSystem() providing the file system name and the drive number.
sl@0
    76
//!				7. Call MountFileSystem() passing the file system name, plug-in extension name, an enabled free drive number and ETrue as a 
sl@0
    77
//!					synchronization parameter.
sl@0
    78
//!				8. Call DismountFileSystem() providing the file system name and the drive number.
sl@0
    79
//!				9. Call MountFileSystem() passing the file system name, plug-in extension name, an enabled free drive number and EFalse 
sl@0
    80
//!					as a synchronization parameter.
sl@0
    81
//!				10. Call DismountFileSystem() providing the file system name and the drive number.
sl@0
    82
//!				11. Call RemoveExtension() providing the name of the plug-in file system extension as an argument.
sl@0
    83
//!				12. Call MountFileSystem() passing the file system name, the drive number and EFalse as a synchronization parameter.
sl@0
    84
//!				13. Call Close() method.
sl@0
    85
//! @SYMTestStatus		Implemented
sl@0
    86
//! @SYMTestPriority		Critical
sl@0
    87
//! @SYMTestExpectedResults	All MountFileSystem() and DismountFileSystem() calls return KErrNone.
sl@0
    88
//! @SYMTestType		CIT
sl@0
    89
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
    90
		CREATE_OBJECT	RFs	RFs1
sl@0
    91
		COMMAND		RFs1	new
sl@0
    92
		COMMAND		RFs1	Connect
sl@0
    93
		COMMAND		RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-0004-001-FileSystemName_command03
sl@0
    94
		COMMAND		RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0004-001-DismountFileSystem_command04
sl@0
    95
		COMMAND		RFs1	AddExtension		PBASE-F32-RFS-PublicApi-0004-001-AddExtension_command05
sl@0
    96
		COMMAND		RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0004-001-MountFileSystem_command06
sl@0
    97
		COMMAND		RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0004-001-DismountFileSystem_command07
sl@0
    98
		COMMAND		RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0004-001-MountFileSystem_command08
sl@0
    99
		COMMAND		RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0004-001-DismountFileSystem_command09
sl@0
   100
		COMMAND		RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0004-001-MountFileSystem_command10
sl@0
   101
		COMMAND		RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0004-001-DismountFileSystem_command11
sl@0
   102
		COMMAND		RFs1	RemoveExtension		PBASE-F32-RFS-PublicApi-0004-001-RemoveExtension_command12
sl@0
   103
		COMMAND		RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0004-001-MountFileSystem_command13
sl@0
   104
		COMMAND		RFs1	Close
sl@0
   105
		COMMAND		RFs1	~		
sl@0
   106
	END_TEST_BLOCK	
sl@0
   107
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0004
sl@0
   108
sl@0
   109
sl@0
   110
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0005
sl@0
   111
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0005
sl@0
   112
//! @SYMAPI			RFs
sl@0
   113
//! @SYMTestCaseDesc		Functions MountExtension() and DismountExtension() test. The test requires a file system extension plug-in.
sl@0
   114
//!				The test assumes that the tested file system is already mounted onto the tested drive.
sl@0
   115
//!				Uses API elements:  AddExtension(), MountExtension(), DismountExtension(), RemoveExtension().
sl@0
   116
//! @SYMTestActions		1. Call Connect() method.
sl@0
   117
//!				2. Call AddExtension() providing the file name of a file system extension plug-in as an argument.
sl@0
   118
//!				3. Call MountExtension() passing the plug-in extension name and an enabled free drive number with mounted file system.
sl@0
   119
//!				4. Call DismountExtension() providing the name of the plug-in extension and the drive number.
sl@0
   120
//!				5. Call RemoveExtension() providing the name of the plug-in file system extension as an argument.
sl@0
   121
//!				6. Call Close() method.
sl@0
   122
//! @SYMTestStatus		Implemented
sl@0
   123
//! @SYMTestPriority		Critical
sl@0
   124
//! @SYMTestExpectedResults	Both MountExtension() and DismountExtension() return KErrNone.
sl@0
   125
//! @SYMTestType		CIT
sl@0
   126
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
   127
		CREATE_OBJECT	RFs	RFs1
sl@0
   128
		COMMAND		RFs1	new
sl@0
   129
		COMMAND		RFs1	Connect
sl@0
   130
		COMMAND		RFs1	AddExtension		PBASE-F32-RFS-PublicApi-0005-001-AddExtension_command03
sl@0
   131
		COMMAND		RFs1	MountExtension		PBASE-F32-RFS-PublicApi-0005-001-MountExtension_command04
sl@0
   132
		COMMAND		RFs1	DismountExtension	PBASE-F32-RFS-PublicApi-0005-001-DismountExtension_command05
sl@0
   133
		COMMAND		RFs1	RemoveExtension		PBASE-F32-RFS-PublicApi-0005-001-RemoveExtension_command06
sl@0
   134
		COMMAND		RFs1	Close
sl@0
   135
		COMMAND		RFs1	~		
sl@0
   136
	END_TEST_BLOCK	
sl@0
   137
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0005
sl@0
   138
sl@0
   139
sl@0
   140
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0006
sl@0
   141
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0006
sl@0
   142
//! @SYMAPI			RFs
sl@0
   143
//! @SYMTestCaseDesc		Function MountFileSystemAndScan() test. 
sl@0
   144
//!				The test assumes that the tested file system is already mounted onto the tested drive.
sl@0
   145
//!				The test requires a file system extension plug-in.
sl@0
   146
//!				Uses API elements:  AddExtension(), RemoveExtension(), MountFileSystemAndScan(), DismountFileSystem(), FileSystemName().
sl@0
   147
//! @SYMTestActions		1. Call Connect() method.
sl@0
   148
//!				2. Call FileSystemName() for a drive where a file system was mounted.
sl@0
   149
//!				3. Call DismountFileSystem() providing the file system name and the drive number.
sl@0
   150
//!				4. Call AddExtension() providing the file name of a file system extension plug-in as an argument.
sl@0
   151
//!				5. Call MountFileSystemAndScan() passing the file system name and drive number. 
sl@0
   152
//!					Check that on return aIsMountSuccess parameter is set to ETrue.
sl@0
   153
//!				6. Call DismountFileSystem() providing the name of the file system and the drive number.
sl@0
   154
//!				7. Call MountFileSystemAndScan() passing the file system name , plug-in extension name and drive number.
sl@0
   155
//!					Check that on return aIsMountSuccess parameter is set to ETrue.
sl@0
   156
//!				8. Call DismountFileSystem() providing the name of the file system and the drive number.
sl@0
   157
//!				9. Call RemoveExtension() providing the name of the file system extension as an argument.
sl@0
   158
//!				10. Call MountFileSystem() passing the file system name and the drive number.
sl@0
   159
//!				11. Call Close() method.
sl@0
   160
//! @SYMTestStatus		Implemented
sl@0
   161
//! @SYMTestPriority		Critical
sl@0
   162
//! @SYMTestExpectedResults	All MountFileSystemAndScan() calls return KErrNone and set output argument aIsMountSuccess to ETrue on return.
sl@0
   163
//! @SYMTestType		CIT
sl@0
   164
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-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	FileSystemName		PBASE-F32-RFS-PublicApi-0006-001-FileSystemName_command03
sl@0
   169
		COMMAND		RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0006-001-DismountFileSystem_command04
sl@0
   170
		COMMAND		RFs1	AddExtension		PBASE-F32-RFS-PublicApi-0006-001-AddExtension_command05
sl@0
   171
		COMMAND		RFs1	MountFileSystemAndScan	PBASE-F32-RFS-PublicApi-0006-001-MountFileSystemAndScan_command06
sl@0
   172
		COMMAND		RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0006-001-DismountFileSystem_command07
sl@0
   173
		COMMAND		RFs1	MountFileSystemAndScan	PBASE-F32-RFS-PublicApi-0006-001-MountFileSystemAndScan_command08
sl@0
   174
		COMMAND		RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0006-001-DismountFileSystem_command09
sl@0
   175
		COMMAND		RFs1	RemoveExtension		PBASE-F32-RFS-PublicApi-0006-001-RemoveExtension_command10
sl@0
   176
		COMMAND		RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0006-001-MountFileSystem_command11
sl@0
   177
		COMMAND		RFs1	Close
sl@0
   178
		COMMAND		RFs1	~		
sl@0
   179
	END_TEST_BLOCK	
sl@0
   180
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0006
sl@0
   181
sl@0
   182
sl@0
   183
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0008
sl@0
   184
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0008
sl@0
   185
//! @SYMAPI			RFs
sl@0
   186
//! @SYMTestCaseDesc		Function ExtensionName() test. The test requires a file system extension plug-in.
sl@0
   187
//!				The test assumes that the tested file system is already mounted onto the tested drive.
sl@0
   188
//!				Uses API elements:  AddExtension(), MountExtension(), ExtensionName(), RemoveExtension().
sl@0
   189
//! @SYMTestActions		1. Call Connect() method.
sl@0
   190
//!				2. Call AddExtension() providing the file name of a file system extension plug-in as an argument.
sl@0
   191
//!				3. Call MountExtension() passing the plug-in extension name and an enabled free drive number.
sl@0
   192
//!				4. Call ExtensionName() passing the drive number as argument and position 0. Check that aExtensionName parameter 
sl@0
   193
//!					is set to the same as a real name of the plug-in extension on return.
sl@0
   194
//!				5. Call RemoveExtension() providing the name of the plug-in file system extension as an argument.
sl@0
   195
//!				6. Call Close() method.
sl@0
   196
//! @SYMTestStatus		Implemented
sl@0
   197
//! @SYMTestPriority		Critical
sl@0
   198
//! @SYMTestExpectedResults	ExtensionName() returns KErrNone and the real name of the extension through the aExtensionName output argument.
sl@0
   199
//! @SYMTestType		CIT
sl@0
   200
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
   201
		CREATE_OBJECT	RFs	RFs1
sl@0
   202
		COMMAND		RFs1	new
sl@0
   203
		COMMAND		RFs1	Connect
sl@0
   204
		COMMAND		RFs1	AddExtension		PBASE-F32-RFS-PublicApi-0008-001-AddExtension_command03
sl@0
   205
		COMMAND		RFs1	MountExtension		PBASE-F32-RFS-PublicApi-0008-001-MountExtension_command04
sl@0
   206
		COMMAND		RFs1	ExtensionName		PBASE-F32-RFS-PublicApi-0008-001-ExtensionName_command05
sl@0
   207
		COMMAND		RFs1	DismountExtension	PBASE-F32-RFS-PublicApi-0008-001-DismountExtension_command06
sl@0
   208
		COMMAND		RFs1	RemoveExtension		PBASE-F32-RFS-PublicApi-0008-001-RemoveExtension_command07
sl@0
   209
		COMMAND		RFs1	Close
sl@0
   210
		COMMAND		RFs1	~		
sl@0
   211
	END_TEST_BLOCK	
sl@0
   212
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0008
sl@0
   213
sl@0
   214
sl@0
   215
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0009
sl@0
   216
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0009
sl@0
   217
//! @SYMAPI			RFs
sl@0
   218
//! @SYMTestCaseDesc		Function RemountDrive() test.
sl@0
   219
//!				The test assumes that the tested file system is already mounted onto the tested drive.
sl@0
   220
//!				Uses API elements:  RemountDrive().
sl@0
   221
//! @SYMTestActions		1. Call Connect() method.
sl@0
   222
//!				2. Call RemountDrive() passing the drive (with a file system on) and flags 0 as arguments. 
sl@0
   223
//!				3. Call Close() method.
sl@0
   224
//! @SYMTestStatus		Implemented
sl@0
   225
//! @SYMTestPriority		Critical
sl@0
   226
//! @SYMTestExpectedResults	RemountDrive() returns KErrNone.
sl@0
   227
//! @SYMTestType		CIT
sl@0
   228
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
   229
		CREATE_OBJECT	RFs	RFs1
sl@0
   230
		COMMAND		RFs1	new
sl@0
   231
		COMMAND		RFs1	Connect
sl@0
   232
		COMMAND		RFs1	RemountDrive		PBASE-F32-RFS-PublicApi-0009-001-RemountDrive_command03
sl@0
   233
		COMMAND		RFs1	Close
sl@0
   234
		COMMAND		RFs1	~		
sl@0
   235
	END_TEST_BLOCK	
sl@0
   236
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0009
sl@0
   237
sl@0
   238
sl@0
   239
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0010
sl@0
   240
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0010
sl@0
   241
//! @SYMAPI			RFs
sl@0
   242
//! @SYMTestCaseDesc		Function NotifyDismount() test.
sl@0
   243
//!				The test assumes that the tested file system is already mounted onto the tested drive.
sl@0
   244
//!				Uses API elements:  NotifyDismount(), MountFileSystem(), DismountFileSystem(), FileSystemName().
sl@0
   245
//! @SYMTestActions		1. Create a RFs session and call it's Connect() function.
sl@0
   246
//!				2. Create another RFs session and call it's Connect() function.
sl@0
   247
//!				3. Call first session's FileSystemName() for a drive where a file system was mounted.
sl@0
   248
//!				4. Call second session's NotifyDismount() providing the drive number and mode value EFsDismountRegisterClient and starts waiting for a notification on the background.
sl@0
   249
//!				5. Call first session's NotifyDismount() providing the drive number and mode value EFsDismountNotifyClients and starts waiting for a notification on the background.
sl@0
   250
//!				6. Call second session's AllowDismount() providing the drive number.
sl@0
   251
//!				7. Call first session's MountFileSystem() passing the file system name and the drive number to restore the file system on the drive.
sl@0
   252
//!				8. Call Close() of both sessions.
sl@0
   253
//! @SYMTestStatus		Implemented
sl@0
   254
//! @SYMTestPriority		Critical
sl@0
   255
//! @SYMTestExpectedResults	See actions.
sl@0
   256
//! @SYMTestType		CIT
sl@0
   257
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
   258
		CREATE_OBJECT	RFs	RFs1
sl@0
   259
		CREATE_OBJECT	RFs	RFs2
sl@0
   260
		COMMAND		RFs1	new
sl@0
   261
		COMMAND		RFs1	Connect
sl@0
   262
		COMMAND		RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-0010-001-FileSystemName_command03
sl@0
   263
		COMMAND		RFs2	new
sl@0
   264
		COMMAND		RFs2	Connect
sl@0
   265
		COMMAND		RFs2	NotifyDismount		PBASE-F32-RFS-PublicApi-0010-001-NotifyDismount_command07
sl@0
   266
		COMMAND		RFs1	NotifyDismount		PBASE-F32-RFS-PublicApi-0010-001-NotifyDismount_command09
sl@0
   267
		COMMAND		RFs2	AllowDismount		PBASE-F32-RFS-PublicApi-0010-001-AllowDismount_command12
sl@0
   268
			OUTSTANDING
sl@0
   269
				OUTSTANDING
sl@0
   270
		COMMAND		RFs2	Close
sl@0
   271
		COMMAND		RFs2	~
sl@0
   272
			OUTSTANDING	
sl@0
   273
		COMMAND		RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0010-001-MountFileSystem_command17
sl@0
   274
		COMMAND		RFs1	Close
sl@0
   275
		COMMAND		RFs1	~
sl@0
   276
	END_TEST_BLOCK	
sl@0
   277
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0010
sl@0
   278
sl@0
   279
sl@0
   280
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0011
sl@0
   281
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0011
sl@0
   282
//! @SYMAPI			RFs
sl@0
   283
//! @SYMTestCaseDesc		Function NotifyDismountCancel(TRequestStatus& aStat) test.
sl@0
   284
//!				The test assumes that the tested file system is already mounted onto the tested drive.
sl@0
   285
//!				Uses API elements:  NotifyDismountCancel(), NotifyDismount(), MountFileSystem(), FileSystemName().
sl@0
   286
//! @SYMTestActions		1. Call Connect() method.
sl@0
   287
//!				2. Call FileSystemName() for a drive where a file system was mounted.
sl@0
   288
//!				3. Call NotifyDismount() providing the drive number and mode value EFsDismountRegisterClient and starts waiting for a notification on the background.
sl@0
   289
//!				4. Call NotifyDismountCancel() providing the same TRequestStatus as in previous call.
sl@0
   290
//!				5. Call NotifyDismount() providing the drive number and mode value EFsDismountNotifyClients and starts waiting for a notification on the background.
sl@0
   291
//!				6. Call MountFileSystem() passing the file system name and the drive number.
sl@0
   292
//!				7. Call Close() of both sessions.
sl@0
   293
//! @SYMTestStatus		Implemented
sl@0
   294
//! @SYMTestPriority		Critical
sl@0
   295
//! @SYMTestExpectedResults	KErrCancel(-3)
sl@0
   296
//! @SYMTestType		CIT
sl@0
   297
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
   298
		CREATE_OBJECT	RFs	RFs1
sl@0
   299
		COMMAND			RFs1	new
sl@0
   300
		COMMAND			RFs1	Connect
sl@0
   301
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-0011-001-FileSystemName_command03
sl@0
   302
		COMMAND	!AsyncError=-3	RFs1	NotifyDismount		PBASE-F32-RFS-PublicApi-0011-001-NotifyDismount_command04
sl@0
   303
		COMMAND			RFs1	NotifyDismountCancel	PBASE-F32-RFS-PublicApi-0011-001-NotifyDismountCancel_command05
sl@0
   304
		OUTSTANDING	
sl@0
   305
		COMMAND			RFs1	NotifyDismount		PBASE-F32-RFS-PublicApi-0011-001-NotifyDismount_command07
sl@0
   306
		OUTSTANDING	
sl@0
   307
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0011-001-MountFileSystem_command09
sl@0
   308
		COMMAND			RFs1	Close
sl@0
   309
		COMMAND			RFs1	~
sl@0
   310
	END_TEST_BLOCK	
sl@0
   311
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0011
sl@0
   312
sl@0
   313
sl@0
   314
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0017
sl@0
   315
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0017
sl@0
   316
//! @SYMAPI			RFs
sl@0
   317
//! @SYMTestCaseDesc		Function SwapFileSystem() test.
sl@0
   318
//!				The test assumes that the tested file system is already mounted onto the tested drive.
sl@0
   319
//!				Uses API elements:  SwapFileSystem()
sl@0
   320
//! @SYMTestActions		1. Call Connect() method.
sl@0
   321
//!				2. Call FileSystemName() for a drive where a file system was mounted.
sl@0
   322
//!				3. Call DismountFileSystem() providing the file system name and the drive number.
sl@0
   323
//!				4. Call MountFileSystem() passing the file system name, an enabled free drive number and ETrue as a synchronization parameter.
sl@0
   324
//!				5. Call SwapFileSystem() passing file system name, the same file system name again and the drive number.
sl@0
   325
//!				6. Call Close() method.
sl@0
   326
//! @SYMTestStatus		Implemented
sl@0
   327
//! @SYMTestPriority		Critical
sl@0
   328
//! @SYMTestExpectedResults	SwapFileSystem() returns KErrNone. 
sl@0
   329
//! @SYMTestType		CIT
sl@0
   330
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
   331
		CREATE_OBJECT	RFs	RFs1
sl@0
   332
		COMMAND		RFs1	new
sl@0
   333
		COMMAND		RFs1	Connect
sl@0
   334
		COMMAND		RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-0017-001-FileSystemName_command03
sl@0
   335
		COMMAND		RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0017-001-DismountFileSystem_command04
sl@0
   336
		COMMAND		RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0017-001-MountFileSystem_command05
sl@0
   337
		COMMAND		RFs1	SwapFileSystem		PBASE-F32-RFS-PublicApi-0017-001-SwapFileSystem_command06
sl@0
   338
		COMMAND		RFs1	Close
sl@0
   339
		COMMAND		RFs1	~
sl@0
   340
	END_TEST_BLOCK	
sl@0
   341
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0017
sl@0
   342
sl@0
   343
sl@0
   344
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0018
sl@0
   345
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0018
sl@0
   346
//! @SYMAPI			RFs
sl@0
   347
//! @SYMTestCaseDesc		Function NotifyDismountCancel() test.
sl@0
   348
//!				The test assumes that the tested file system is already mounted onto the tested drive.
sl@0
   349
//!				Uses API elements:  NotifyDismountCancel(), NotifyDismount(), MountFileSystem(), DismountFileSystem()
sl@0
   350
//! @SYMTestActions		1. Create a RFs session and call it's Connect() function.
sl@0
   351
//!				2. Call NotifyDismount() providing the drive number and mode value EFsDismountRegisterClient and starts waiting for a notification on the background.
sl@0
   352
//!				3. Call NotifyDismount() providing the drive number and mode value EFsDismountNotifyClients and starts waiting for a notification on the background.
sl@0
   353
//!				4. Call NotifyDismountCancel() without arguments(for all requests) .
sl@0
   354
//!				5. Call Close() method.
sl@0
   355
//! @SYMTestStatus		Implemented
sl@0
   356
//! @SYMTestPriority		Critical
sl@0
   357
//! @SYMTestExpectedResults	KErrCancel(-3)
sl@0
   358
//! @SYMTestType		CIT
sl@0
   359
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
   360
		CREATE_OBJECT	RFs	RFs1
sl@0
   361
		COMMAND			RFs1	new
sl@0
   362
		COMMAND			RFs1	Connect
sl@0
   363
		COMMAND			RFs1	NotifyDismount		PBASE-F32-RFS-PublicApi-0018-001-NotifyDismount_command03
sl@0
   364
		COMMAND	!AsyncError=-3	RFs1	NotifyDismount		PBASE-F32-RFS-PublicApi-0018-001-NotifyDismount_command04
sl@0
   365
		COMMAND			RFs1	NotifyDismountCancel	PBASE-F32-RFS-PublicApi-0018-001-NotifyDismountCancel_command05
sl@0
   366
		OUTSTANDING	
sl@0
   367
		COMMAND			RFs1	Close
sl@0
   368
		COMMAND			RFs1	~
sl@0
   369
	END_TEST_BLOCK	
sl@0
   370
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0018
sl@0
   371
sl@0
   372
sl@0
   373
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0025
sl@0
   374
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0025
sl@0
   375
//! @SYMAPI			RFs
sl@0
   376
//! @SYMTestCaseDesc		Functions MountFileSystem(const TDesC &aFileSystemName, TInt aDrive) test with incorrect file system name.
sl@0
   377
//!				Uses API elements: MountFileSystem().
sl@0
   378
//! @SYMTestActions		1. Call Connect() method.
sl@0
   379
//!				2. Call MountFileSystem() providing the incorrect file system name and drive for mounts where nothing mounted.
sl@0
   380
//!				3. Call Close() method.
sl@0
   381
//! @SYMTestStatus		Implemented
sl@0
   382
//! @SYMTestPriority		High
sl@0
   383
//! @SYMTestExpectedResults	KErrNotFound.
sl@0
   384
//! @SYMTestType		CIT
sl@0
   385
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
   386
		CREATE_OBJECT	RFs	RFs1
sl@0
   387
		COMMAND			RFs1	new
sl@0
   388
		COMMAND			RFs1	Connect
sl@0
   389
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-0025-001-FileSystemName_command03
sl@0
   390
		COMMAND			RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0025-001-DismountFileSystem_command04
sl@0
   391
		COMMAND	!Error=-1	RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0025-001-MountFileSystem_command05
sl@0
   392
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0025-001-MountFileSystem_command06
sl@0
   393
		COMMAND			RFs1	Close
sl@0
   394
		COMMAND			RFs1	~
sl@0
   395
	END_TEST_BLOCK	
sl@0
   396
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0025
sl@0
   397
sl@0
   398
sl@0
   399
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0026
sl@0
   400
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0026
sl@0
   401
//! @SYMAPI			RFs
sl@0
   402
//! @SYMTestCaseDesc		Functions MountFileSystem(const TDesC &aFileSystemName, TInt aDrive) test, mount file system where already mounted one.
sl@0
   403
//!				Uses API elements: MountFileSystem().
sl@0
   404
//!				The test assumes that the tested file system is already mounted onto the tested drive.
sl@0
   405
//! @SYMTestActions		1. Call Connect() method.
sl@0
   406
//!				2. Call MountFileSystem() providing the file system name and drive for mounts.
sl@0
   407
//!				3. Call Close() method.
sl@0
   408
//! @SYMTestStatus		Implemented
sl@0
   409
//! @SYMTestPriority		High
sl@0
   410
//! @SYMTestExpectedResults	KErrAccessDenied.
sl@0
   411
//! @SYMTestType		CIT
sl@0
   412
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
   413
		CREATE_OBJECT	RFs	RFs1
sl@0
   414
		COMMAND			RFs1	new
sl@0
   415
		COMMAND			RFs1	Connect
sl@0
   416
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-0026-001-FileSystemName_command03
sl@0
   417
		COMMAND	!Error=-21	RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0026-001-MountFileSystem_command04
sl@0
   418
		COMMAND			RFs1	Close
sl@0
   419
		COMMAND			RFs1	~
sl@0
   420
	END_TEST_BLOCK	
sl@0
   421
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0026
sl@0
   422
sl@0
   423
sl@0
   424
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0028
sl@0
   425
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0028
sl@0
   426
//! @SYMAPI			RFs
sl@0
   427
//! @SYMTestCaseDesc		Functions MountFileSystem(const TDesC &aFileSystemName, TInt aDrive, TBool aIsSync) test with incorrect file system name.
sl@0
   428
//!				Uses API elements: MountFileSystem().
sl@0
   429
//! @SYMTestActions		1. Call Connect() method.
sl@0
   430
//!				2. Call MountFileSystem() providing the incorrect file system name and drive for mounts where nothing mounted, and ETrue as a synchronization parameter.
sl@0
   431
//!				3. Call Close() method.
sl@0
   432
//! @SYMTestStatus		Implemented
sl@0
   433
//! @SYMTestPriority		High
sl@0
   434
//! @SYMTestExpectedResults	KErrNotFound.
sl@0
   435
//! @SYMTestType		CIT
sl@0
   436
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
   437
		CREATE_OBJECT	RFs	RFs1
sl@0
   438
		COMMAND			RFs1	new
sl@0
   439
		COMMAND			RFs1	Connect
sl@0
   440
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-0028-001-FileSystemName_command03
sl@0
   441
		COMMAND			RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0028-001-DismountFileSystem_command04
sl@0
   442
		COMMAND	!Error=-1	RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0028-001-MountFileSystem_command05
sl@0
   443
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0028-001-MountFileSystem_command06
sl@0
   444
		COMMAND			RFs1	Close
sl@0
   445
		COMMAND			RFs1	~
sl@0
   446
	END_TEST_BLOCK	
sl@0
   447
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0028
sl@0
   448
sl@0
   449
sl@0
   450
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0029
sl@0
   451
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0029
sl@0
   452
//! @SYMAPI			RFs
sl@0
   453
//! @SYMTestCaseDesc		Functions MountFileSystem(const TDesC &aFileSystemName, TInt aDrive, TBool aIsSync) test, mount file system where already mounted one.
sl@0
   454
//!				Uses API elements: MountFileSystem().
sl@0
   455
//!				The test assumes that the tested file system is already mounted onto the tested drive.
sl@0
   456
//! @SYMTestActions		1. Call Connect() method.
sl@0
   457
//!				2. Call MountFileSystem() providing the file system name and drive for mounts, and ETrue as a synchronization parameter.
sl@0
   458
//!				3. Call Close() method.
sl@0
   459
//! @SYMTestStatus		Implemented
sl@0
   460
//! @SYMTestPriority		High
sl@0
   461
//! @SYMTestExpectedResults	KErrAccessDenied.
sl@0
   462
//! @SYMTestType		CIT
sl@0
   463
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
   464
		CREATE_OBJECT	RFs	RFs1
sl@0
   465
		COMMAND			RFs1	new
sl@0
   466
		COMMAND			RFs1	Connect
sl@0
   467
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-0029-001-FileSystemName_command03
sl@0
   468
		COMMAND	!Error=-21	RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0029-001-MountFileSystem_command04
sl@0
   469
		COMMAND			RFs1	Close
sl@0
   470
		COMMAND			RFs1	~
sl@0
   471
	END_TEST_BLOCK	
sl@0
   472
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0029
sl@0
   473
sl@0
   474
sl@0
   475
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0031
sl@0
   476
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0031
sl@0
   477
//! @SYMAPI			RFs
sl@0
   478
//! @SYMTestCaseDesc		Functions MountFileSystem(const TDesC &aFileSystemName, TInt aDrive, TBool aIsSync) test with incorrect file system name.
sl@0
   479
//!				Uses API elements: MountFileSystem().
sl@0
   480
//! @SYMTestActions		1. Call Connect() method.
sl@0
   481
//!				2. Call MountFileSystem() providing the bad file system name and drive for mounts where nothing mounted, and EFalse as a synchronization parameter.
sl@0
   482
//!				3. Call Close() method.
sl@0
   483
//! @SYMTestStatus		Implemented
sl@0
   484
//! @SYMTestPriority		High
sl@0
   485
//! @SYMTestExpectedResults	KErrNotFound.
sl@0
   486
//! @SYMTestType		CIT
sl@0
   487
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
   488
		CREATE_OBJECT	RFs	RFs1
sl@0
   489
		COMMAND			RFs1	new
sl@0
   490
		COMMAND			RFs1	Connect
sl@0
   491
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-0031-001-FileSystemName_command03
sl@0
   492
		COMMAND			RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0031-001-DismountFileSystem_command04
sl@0
   493
		COMMAND	!Error=-1	RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0031-001-MountFileSystem_command05
sl@0
   494
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0031-001-MountFileSystem_command06
sl@0
   495
		COMMAND			RFs1	Close
sl@0
   496
		COMMAND			RFs1	~
sl@0
   497
	END_TEST_BLOCK	
sl@0
   498
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0031
sl@0
   499
sl@0
   500
sl@0
   501
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0032
sl@0
   502
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0032
sl@0
   503
//! @SYMAPI			RFs
sl@0
   504
//! @SYMTestCaseDesc		Functions MountFileSystem(const TDesC &aFileSystemName, TInt aDrive, TBool aIsSync) test, mount file system where already mounted one.
sl@0
   505
//!				Uses API elements: MountFileSystem().
sl@0
   506
//!				The test assumes that the tested file system is already mounted onto the tested drive.
sl@0
   507
//! @SYMTestActions		1. Call Connect() method.
sl@0
   508
//!				2. Call MountFileSystem() providing the file system name and drive for mounts, and EFalse as a synchronization parameter.
sl@0
   509
//!				3. Call Close() method.
sl@0
   510
//! @SYMTestStatus		Implemented
sl@0
   511
//! @SYMTestPriority		High
sl@0
   512
//! @SYMTestExpectedResults	KErrAccessDenied.
sl@0
   513
//! @SYMTestType		CIT
sl@0
   514
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
   515
		CREATE_OBJECT	RFs	RFs1
sl@0
   516
		COMMAND			RFs1	new
sl@0
   517
		COMMAND			RFs1	Connect
sl@0
   518
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-0032-001-FileSystemName_command03
sl@0
   519
		COMMAND	!Error=-21	RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0032-001-MountFileSystem_command04
sl@0
   520
		COMMAND			RFs1	Close
sl@0
   521
		COMMAND			RFs1	~
sl@0
   522
	END_TEST_BLOCK	
sl@0
   523
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0032
sl@0
   524
sl@0
   525
sl@0
   526
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0034
sl@0
   527
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0034
sl@0
   528
//! @SYMAPI			RFs
sl@0
   529
//! @SYMTestCaseDesc		Functions MountFileSystemAndScan(const TDesC &aFileSystemName, TInt aDrive, TBool &aIsMountSuccess) test with bad file system name.
sl@0
   530
//!				Uses API elements: MountFileSystemAndScan().
sl@0
   531
//! @SYMTestActions		1. Call Connect() method.
sl@0
   532
//!				2. Call MountFileSystemAndScan() providing the bad file system name and drive for mounts (not drive for MMC card).
sl@0
   533
//!				3. Call Close() method.
sl@0
   534
//! @SYMTestStatus		Implemented
sl@0
   535
//! @SYMTestPriority		High
sl@0
   536
//! @SYMTestExpectedResults	KErrNotFound, Filesystem not found
sl@0
   537
//! @SYMTestType		CIT
sl@0
   538
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
   539
		CREATE_OBJECT	RFs	RFs1
sl@0
   540
		COMMAND			RFs1	new
sl@0
   541
		COMMAND			RFs1	Connect
sl@0
   542
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-0034-001-FileSystemName_command03
sl@0
   543
		COMMAND			RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0034-001-DismountFileSystem_command04
sl@0
   544
		COMMAND	!Error=-1	RFs1	MountFileSystemAndScan	PBASE-F32-RFS-PublicApi-0034-001-MountFileSystemAndScan_command05
sl@0
   545
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0034-001-MountFileSystem_command06
sl@0
   546
		COMMAND			RFs1	Close
sl@0
   547
		COMMAND			RFs1	~
sl@0
   548
	END_TEST_BLOCK	
sl@0
   549
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0034
sl@0
   550
sl@0
   551
sl@0
   552
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0035
sl@0
   553
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0035
sl@0
   554
//! @SYMAPI			RFs
sl@0
   555
//! @SYMTestCaseDesc		Functions MountFileSystemAndScan(const TDesC &aFileSystemName, TInt aDrive, TBool &aIsMountSuccess) test with mounting file system that not support scanning.
sl@0
   556
//!				Uses API elements: MountFileSystemAndScan(), DismountFileSystem().
sl@0
   557
//! @SYMTestActions		1. Call Connect() method.
sl@0
   558
//!				2. Call MountFileSystemAndScan() providing the file system name and the drive number.
sl@0
   559
//!				3. Call DismountFileSystem() providing the file system name and the drive number.
sl@0
   560
//!				4. Call Close() method.
sl@0
   561
//! @SYMTestStatus		Implemented
sl@0
   562
//! @SYMTestPriority		High
sl@0
   563
//! @SYMTestExpectedResults	KErrNone.
sl@0
   564
//! @SYMTestType		CIT
sl@0
   565
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
   566
		CREATE_OBJECT	RFs	RFs1
sl@0
   567
		COMMAND		RFs1	new
sl@0
   568
		COMMAND		RFs1	Connect
sl@0
   569
		COMMAND		RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-0035-001-FileSystemName_command03
sl@0
   570
		COMMAND		RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0035-001-DismountFileSystem_command04
sl@0
   571
		COMMAND		RFs1	MountFileSystemAndScan	PBASE-F32-RFS-PublicApi-0035-001-MountFileSystemAndScan_command05
sl@0
   572
		COMMAND		RFs1	Close
sl@0
   573
		COMMAND		RFs1	~
sl@0
   574
	END_TEST_BLOCK	
sl@0
   575
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0035
sl@0
   576
sl@0
   577
sl@0
   578
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0037
sl@0
   579
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0037
sl@0
   580
//! @SYMAPI			RFs
sl@0
   581
//! @SYMTestCaseDesc		Functions MountFileSystem(const TDesC &aFileSystemName, const TDesC &aExtensionName, TInt aDrive, TBool aIsSync) test with incorrect file system extension name.
sl@0
   582
//!				Uses API elements: MountFileSystem(), DismountFileSystem().
sl@0
   583
//! @SYMTestActions		1. Call Connect() method.
sl@0
   584
//!				2. Call MountFileSystem() providing the file system name, drive for mounts, bad name of extension and EFalse as a synchronization parameter.
sl@0
   585
//!				3. Call Close() method.
sl@0
   586
//! @SYMTestStatus		Implemented
sl@0
   587
//! @SYMTestPriority		High
sl@0
   588
//! @SYMTestExpectedResults	KErrNotFound, extension not found
sl@0
   589
//! @SYMTestType		CIT
sl@0
   590
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
   591
		CREATE_OBJECT	RFs	RFs1
sl@0
   592
		COMMAND			RFs1	new
sl@0
   593
		COMMAND			RFs1	Connect
sl@0
   594
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-0037-001-FileSystemName_command03
sl@0
   595
		COMMAND			RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0037-001-DismountFileSystem_command04
sl@0
   596
		COMMAND	!Error=-1	RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0037-001-MountFileSystem_command05
sl@0
   597
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0037-001-MountFileSystem_command06
sl@0
   598
		COMMAND			RFs1	Close
sl@0
   599
		COMMAND			RFs1	~
sl@0
   600
	END_TEST_BLOCK	
sl@0
   601
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0037
sl@0
   602
sl@0
   603
sl@0
   604
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0038
sl@0
   605
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0038
sl@0
   606
//! @SYMAPI			RFs
sl@0
   607
//! @SYMTestCaseDesc		Functions MountFileSystem(const TDesC &aFileSystemName, const TDesC &aExtensionName, TInt aDrive, TBool aIsSync) test with incorrect file system extension name.
sl@0
   608
//!				Uses API elements: MountFileSystem(), DismountFileSystem().
sl@0
   609
//! @SYMTestActions		1. Call Connect() method.
sl@0
   610
//!				2. Call MountFileSystem() providing the file system name, drive for mounts, bad name of extension and ETrue as a synchronization parameter.
sl@0
   611
//!				3. Call DismountFileSystem() providing the file system name and the drive for mounts.
sl@0
   612
//!				4. Call Close() method.
sl@0
   613
//! @SYMTestStatus		Implemented
sl@0
   614
//! @SYMTestPriority		High
sl@0
   615
//! @SYMTestExpectedResults	KErrNotFound, extension not found
sl@0
   616
//! @SYMTestType		CIT
sl@0
   617
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
   618
		CREATE_OBJECT	RFs	RFs1
sl@0
   619
		COMMAND			RFs1	new
sl@0
   620
		COMMAND			RFs1	Connect
sl@0
   621
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-0038-001-FileSystemName_command03
sl@0
   622
		COMMAND			RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0038-001-DismountFileSystem_command04
sl@0
   623
		COMMAND	!Error=-1	RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0038-001-MountFileSystem_command05
sl@0
   624
		COMMAND			RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0038-001-DismountFileSystem_command06
sl@0
   625
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0038-001-MountFileSystem_command07
sl@0
   626
		COMMAND			RFs1	Close
sl@0
   627
		COMMAND			RFs1	~
sl@0
   628
	END_TEST_BLOCK	
sl@0
   629
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0038
sl@0
   630
sl@0
   631
sl@0
   632
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0040
sl@0
   633
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0040
sl@0
   634
//! @SYMAPI			RFs
sl@0
   635
//! @SYMTestCaseDesc		Functions DismountFileSystem() test with incorrect file system name.
sl@0
   636
//!				Uses API elements: DismountFileSystem().
sl@0
   637
//!				The test assumes that the tested file system is already mounted onto the tested drive.
sl@0
   638
//! @SYMTestActions		1. Call Connect() method.
sl@0
   639
//!				2. Call DismountFileSystem() providing the bad file system name and drive for mounts.
sl@0
   640
//!				3. Call Close() method.
sl@0
   641
//! @SYMTestStatus		Implemented
sl@0
   642
//! @SYMTestPriority		High
sl@0
   643
//! @SYMTestExpectedResults	KErrNotFound, file system not found.
sl@0
   644
//! @SYMTestType		CIT
sl@0
   645
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
   646
		CREATE_OBJECT	RFs	RFs1
sl@0
   647
		COMMAND			RFs1	new
sl@0
   648
		COMMAND			RFs1	Connect
sl@0
   649
		COMMAND	!Error=-1	RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0040-001-DismountFileSystem_command03
sl@0
   650
		COMMAND			RFs1	Close
sl@0
   651
		COMMAND			RFs1	~
sl@0
   652
	END_TEST_BLOCK	
sl@0
   653
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0040
sl@0
   654
sl@0
   655
sl@0
   656
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0041
sl@0
   657
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0041
sl@0
   658
//! @SYMAPI			RFs
sl@0
   659
//! @SYMTestCaseDesc		Functions DismountFileSystem() test, dismount file system from drive, where not mounted one.
sl@0
   660
//!				Uses API elements: DismountFileSystem().
sl@0
   661
//! @SYMTestActions		1. Call Connect() method.
sl@0
   662
//!				2. Call DismountFileSystem() providing the file system name and drive for mounts where no file system mounted.
sl@0
   663
//!				3. Call Close() method.
sl@0
   664
//! @SYMTestStatus		Implemented
sl@0
   665
//! @SYMTestPriority		High
sl@0
   666
//! @SYMTestExpectedResults	KErrNotReady
sl@0
   667
//! @SYMTestType		CIT
sl@0
   668
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-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	FileSystemName		PBASE-F32-RFS-PublicApi-0041-001-FileSystemName_command03
sl@0
   673
		COMMAND			RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0041-001-DismountFileSystem_command04
sl@0
   674
		COMMAND	!Error=-18	RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0041-001-DismountFileSystem_command05
sl@0
   675
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0041-001-MountFileSystem_command06
sl@0
   676
		COMMAND			RFs1	Close
sl@0
   677
		COMMAND			RFs1	~
sl@0
   678
	END_TEST_BLOCK	
sl@0
   679
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0041
sl@0
   680
sl@0
   681
sl@0
   682
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0046
sl@0
   683
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0046
sl@0
   684
//! @SYMAPI			RFs
sl@0
   685
//! @SYMTestCaseDesc		Functions MountExtension() test, mount file system extension on drive, where no mounted file system.
sl@0
   686
//!				Uses API elements: MountExtension(), AddExtension(), RemoveExtension().
sl@0
   687
//!				The test requires a file system extension plug-in.
sl@0
   688
//! @SYMTestActions		1. Call Connect() method.
sl@0
   689
//!				2. Call AddExtension() providing plug-in extension name.
sl@0
   690
//!				3. Call MountExtension() providing plug-in extension name and drive where not mounted file system. 
sl@0
   691
//!				4. Call RemoveExtension() providing plug-in extension name.
sl@0
   692
//!				5. Call Close() method.
sl@0
   693
//! @SYMTestStatus		Implemented
sl@0
   694
//! @SYMTestPriority		High
sl@0
   695
//! @SYMTestExpectedResults	KErrNone
sl@0
   696
//! @SYMTestType		CIT
sl@0
   697
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
   698
		CREATE_OBJECT	RFs	RFs1
sl@0
   699
		COMMAND		RFs1	new
sl@0
   700
		COMMAND		RFs1	Connect
sl@0
   701
		COMMAND		RFs1	AddExtension		PBASE-F32-RFS-PublicApi-0046-001-AddExtension_command03
sl@0
   702
		COMMAND		RFs1	MountExtension		PBASE-F32-RFS-PublicApi-0046-001-MountExtension_command04
sl@0
   703
		COMMAND		RFs1	DismountExtension	PBASE-F32-RFS-PublicApi-0046-001-DismountExtension_command05
sl@0
   704
		COMMAND		RFs1	RemoveExtension		PBASE-F32-RFS-PublicApi-0046-001-RemoveExtension_command06
sl@0
   705
		COMMAND		RFs1	Close
sl@0
   706
		COMMAND		RFs1	~
sl@0
   707
	END_TEST_BLOCK	
sl@0
   708
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0046
sl@0
   709
sl@0
   710
sl@0
   711
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0048
sl@0
   712
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0048
sl@0
   713
//! @SYMAPI			RFs
sl@0
   714
//! @SYMTestCaseDesc		Functions MountExtension() test with incorrect file system extension name.
sl@0
   715
//!				Uses API elements: MountExtension().
sl@0
   716
//! @SYMTestActions		1. Call Connect() method.
sl@0
   717
//!				2. Call MountExtension() providing bad extension name and drive for mounts where is a mounted file system on.
sl@0
   718
//!				3. Call Close() method.
sl@0
   719
//! @SYMTestStatus		Implemented
sl@0
   720
//! @SYMTestPriority		High
sl@0
   721
//! @SYMTestExpectedResults	KErrNotFound
sl@0
   722
//! @SYMTestType		CIT
sl@0
   723
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
   724
		CREATE_OBJECT	RFs	RFs1
sl@0
   725
		COMMAND			RFs1	new
sl@0
   726
		COMMAND			RFs1	Connect
sl@0
   727
		COMMAND	!Error=-1	RFs1	MountExtension		PBASE-F32-RFS-PublicApi-0048-001-MountExtension_command03
sl@0
   728
		COMMAND			RFs1	Close
sl@0
   729
		COMMAND			RFs1	~
sl@0
   730
	END_TEST_BLOCK	
sl@0
   731
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0048
sl@0
   732
sl@0
   733
sl@0
   734
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0050
sl@0
   735
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0050
sl@0
   736
//! @SYMAPI			RFs
sl@0
   737
//! @SYMTestCaseDesc		Functions DismountExtension() test with incorrect file system extension name.
sl@0
   738
//!				Uses API elements: DismountExtension().
sl@0
   739
//! @SYMTestActions		1. Call Connect() method.
sl@0
   740
//!				2. Call DismountExtension() providing bad extension name and drive number where is no mounted file system. 
sl@0
   741
//!				3. Call Close() method.
sl@0
   742
//! @SYMTestStatus		Implemented
sl@0
   743
//! @SYMTestPriority		High
sl@0
   744
//! @SYMTestExpectedResults	KErrNotFound
sl@0
   745
//! @SYMTestType		CIT
sl@0
   746
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-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	!Error=-1	RFs1	DismountExtension	PBASE-F32-RFS-PublicApi-0050-001-DismountExtension_command03
sl@0
   751
		COMMAND			RFs1	Close
sl@0
   752
		COMMAND			RFs1	~
sl@0
   753
	END_TEST_BLOCK	
sl@0
   754
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0050
sl@0
   755
sl@0
   756
sl@0
   757
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0054
sl@0
   758
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0054
sl@0
   759
//! @SYMAPI			RFs
sl@0
   760
//! @SYMTestCaseDesc		Functions ExtensionName() test with large number of position as argument.
sl@0
   761
//!				Uses API elements: ExtensionName().
sl@0
   762
//!				The test assumes that the tested file system is already mounted onto the tested drive.
sl@0
   763
//! @SYMTestActions		1. Call Connect() method.
sl@0
   764
//!				2. Call ExtensionName() providing drive number and large number as position.
sl@0
   765
//!				3. Call Close() method.
sl@0
   766
//! @SYMTestStatus		Implemented
sl@0
   767
//! @SYMTestPriority		High
sl@0
   768
//! @SYMTestExpectedResults	KErrNotFound
sl@0
   769
//! @SYMTestType		CIT
sl@0
   770
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
   771
		CREATE_OBJECT	RFs	RFs1
sl@0
   772
		COMMAND			RFs1	new
sl@0
   773
		COMMAND			RFs1	Connect
sl@0
   774
		COMMAND	!Error=-1	RFs1	ExtensionName		PBASE-F32-RFS-PublicApi-0054-001-ExtensionName_command03
sl@0
   775
		COMMAND			RFs1	Close
sl@0
   776
		COMMAND			RFs1	~
sl@0
   777
	END_TEST_BLOCK	
sl@0
   778
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0054
sl@0
   779
sl@0
   780
sl@0
   781
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0059
sl@0
   782
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0059
sl@0
   783
//! @SYMAPI			RFs
sl@0
   784
//! @SYMTestCaseDesc		Functions NotifyDismount() test with drive where no mounted file system.
sl@0
   785
//!				Uses API elements: NotifyDismount().
sl@0
   786
//! @SYMTestActions		1. Call Connect() method.
sl@0
   787
//!				2. Call NotifyDismount() providing drive number where is no mounted file system and mode EFsDismountForceDismount and starts waiting for a notification on the background.
sl@0
   788
//!				3. Call Close() method.
sl@0
   789
//! @SYMTestStatus		Implemented
sl@0
   790
//! @SYMTestPriority		High
sl@0
   791
//! @SYMTestExpectedResults	KErrNone
sl@0
   792
//! @SYMTestType		CIT
sl@0
   793
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
   794
		CREATE_OBJECT	RFs	RFs1
sl@0
   795
		COMMAND		RFs1	new
sl@0
   796
		COMMAND		RFs1	Connect
sl@0
   797
		COMMAND		RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-0059-001-FileSystemName_command03
sl@0
   798
		COMMAND		RFs1	NotifyDismount		PBASE-F32-RFS-PublicApi-0059-001-NotifyDismount_command04
sl@0
   799
		OUTSTANDING	
sl@0
   800
		COMMAND		RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0059-001-MountFileSystem_command06
sl@0
   801
		COMMAND		RFs1	Close
sl@0
   802
		COMMAND		RFs1	~
sl@0
   803
	END_TEST_BLOCK	
sl@0
   804
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0059
sl@0
   805
sl@0
   806
sl@0
   807
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0060
sl@0
   808
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0060
sl@0
   809
//! @SYMAPI			RFs
sl@0
   810
//! @SYMTestCaseDesc		Functions AllowDismount() test with drive where no mounted file system.
sl@0
   811
//!				Uses API elements: AllowDismount().
sl@0
   812
//! @SYMTestActions		1. Call Connect() method.
sl@0
   813
//!				2. Call AllowDismount() providing drive number where no mounted file system.
sl@0
   814
//!				3. Call Close() method.
sl@0
   815
//! @SYMTestStatus		Implemented
sl@0
   816
//! @SYMTestPriority		High
sl@0
   817
//! @SYMTestExpectedResults	KErrNotFound as nothing has requested to notify the dismount
sl@0
   818
//! @SYMTestType		CIT
sl@0
   819
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
   820
		CREATE_OBJECT	RFs	RFs1
sl@0
   821
		COMMAND			RFs1	new
sl@0
   822
		COMMAND			RFs1	Connect
sl@0
   823
		COMMAND	!Error=-1	RFs1	AllowDismount		PBASE-F32-RFS-PublicApi-0060-001-AllowDismount_command03
sl@0
   824
		COMMAND			RFs1	Close
sl@0
   825
		COMMAND			RFs1	~
sl@0
   826
	END_TEST_BLOCK	
sl@0
   827
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0060
sl@0
   828
sl@0
   829
sl@0
   830
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0069
sl@0
   831
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0069
sl@0
   832
//! @SYMAPI			RFs
sl@0
   833
//! @SYMTestCaseDesc		Functions SwapFileSystem() test with incorrect file system name as old file system argument.
sl@0
   834
//!				Uses API elements: SwapFileSystem().
sl@0
   835
//!				The test assumes that the tested file system is already mounted onto the tested drive.
sl@0
   836
//! @SYMTestActions		1. Call Connect() method.
sl@0
   837
//!				2. Call SwapFileSystem() providing enabled drive, bad name of old file system name and FAT as new file system name.
sl@0
   838
//!				3. Call Close() method.
sl@0
   839
//! @SYMTestStatus		Implemented
sl@0
   840
//! @SYMTestPriority		High
sl@0
   841
//! @SYMTestExpectedResults	KErrNotFound
sl@0
   842
//! @SYMTestType		CIT
sl@0
   843
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
   844
		CREATE_OBJECT	RFs	RFs1
sl@0
   845
		COMMAND			RFs1	new
sl@0
   846
		COMMAND			RFs1	Connect
sl@0
   847
		COMMAND	!Error=-1	RFs1	SwapFileSystem		PBASE-F32-RFS-PublicApi-0069-001-SwapFileSystem_command03
sl@0
   848
		COMMAND			RFs1	Close
sl@0
   849
		COMMAND			RFs1	~
sl@0
   850
	END_TEST_BLOCK	
sl@0
   851
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0069
sl@0
   852
sl@0
   853
sl@0
   854
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0070
sl@0
   855
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0070
sl@0
   856
//! @SYMAPI			RFs
sl@0
   857
//! @SYMTestCaseDesc		Functions SwapFileSystem() test with incorrect file system name as new file system argument.
sl@0
   858
//!				Uses API elements: SwapFileSystem().
sl@0
   859
//!				The test assumes that the tested file system is already mounted onto the tested drive.
sl@0
   860
//! @SYMTestActions		1. Call Connect() method.
sl@0
   861
//!				2. Call SwapFileSystem() providing enabled drive, FAT as old file system name and bad name of new file system name.
sl@0
   862
//!				3. Call Close() method.
sl@0
   863
//! @SYMTestStatus		Implemented
sl@0
   864
//! @SYMTestPriority		High
sl@0
   865
//! @SYMTestExpectedResults	KErrNotFound
sl@0
   866
//! @SYMTestType		CIT
sl@0
   867
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
   868
		CREATE_OBJECT	RFs	RFs1
sl@0
   869
		COMMAND			RFs1	new
sl@0
   870
		COMMAND			RFs1	Connect
sl@0
   871
		COMMAND	!Error=-1	RFs1	SwapFileSystem		PBASE-F32-RFS-PublicApi-0070-001-SwapFileSystem_command03
sl@0
   872
		COMMAND			RFs1	Close
sl@0
   873
		COMMAND			RFs1	~
sl@0
   874
	END_TEST_BLOCK	
sl@0
   875
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0070
sl@0
   876
sl@0
   877
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0072
sl@0
   878
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0072
sl@0
   879
//! @SYMAPI			RFs
sl@0
   880
//! @SYMTestCaseDesc		Function NotifyDismountCancel(TRequestStatus& aStat) test that tryes to cancel same request twice.
sl@0
   881
//!				The test assumes that the tested file system is already mounted onto the tested drive.
sl@0
   882
//!				Uses API elements:  NotifyDismountCancel(), NotifyDismount(), MountFileSystem(), FileSystemName().
sl@0
   883
//! @SYMTestActions		1. Call Connect() method.
sl@0
   884
//!				2. Call FileSystemName() for a drive where a file system was mounted.
sl@0
   885
//!				3. Call NotifyDismount() providing the drive number and mode value EFsDismountRegisterClient and starts waiting for a notification on the background.
sl@0
   886
//!				4. Call NotifyDismountCancel() providing the same TRequestStatus as in previous call.
sl@0
   887
//!				5. Call NotifyDismountCancel() providing the same TRequestStatus as in previous call.
sl@0
   888
//!				6. Call Close() of both sessions.
sl@0
   889
//! @SYMTestStatus		Implemented
sl@0
   890
//! @SYMTestPriority		Critical
sl@0
   891
//! @SYMTestExpectedResults	Request status is set to KErrCancel(-3) and second NotifyDismountCancel() doesn't cause panic.
sl@0
   892
//! @SYMTestType		CIT
sl@0
   893
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
   894
		CREATE_OBJECT	RFs	RFs1
sl@0
   895
		COMMAND			RFs1	new
sl@0
   896
		COMMAND			RFs1	Connect
sl@0
   897
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-0072-001-FileSystemName_command03
sl@0
   898
		COMMAND	!AsyncError=-3	RFs1	NotifyDismount		PBASE-F32-RFS-PublicApi-0072-001-NotifyDismount_command04
sl@0
   899
		COMMAND			RFs1	NotifyDismountCancel	PBASE-F32-RFS-PublicApi-0072-001-NotifyDismountCancel_command05
sl@0
   900
		COMMAND			RFs1	NotifyDismountCancel	PBASE-F32-RFS-PublicApi-0072-001-NotifyDismountCancel_command06
sl@0
   901
		OUTSTANDING	
sl@0
   902
		COMMAND			RFs1	Close
sl@0
   903
		COMMAND			RFs1	~
sl@0
   904
	END_TEST_BLOCK	
sl@0
   905
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0072
sl@0
   906
sl@0
   907
sl@0
   908
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0075
sl@0
   909
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0075
sl@0
   910
//! @SYMAPI			RFs
sl@0
   911
//! @SYMTestCaseDesc		Function NotifyChange(TNotifyType aType, TRequestStatus &aStat, const TDesC &aPathName) test with notify types ENotifyAll.
sl@0
   912
//!				Uses API elements:  NotifyChange(), FileSystemName(), DismountFileSystem(), MountFileSystem().
sl@0
   913
//!				The test assumes that the tested file system is already mounted onto the tested drive.
sl@0
   914
//! @SYMTestActions		1. Call Connect().
sl@0
   915
//!				2. Call FileSystemName() passing the drive number as argument.
sl@0
   916
//!				3. Call NotifyChange() passing ENotifyAll as parameter and starts waiting for a notification on the background.
sl@0
   917
//!				4. Call DismountFileSystem() passing the drive number as argument.
sl@0
   918
//!				5. Call NotifyChange() passing ENotifyAll as parameter and starts waiting for a notification on the background.
sl@0
   919
//!				6. Call MountFileSystem() passing the drive number as argument.
sl@0
   920
//!				7. Call Close().
sl@0
   921
//! @SYMTestStatus		Implemented
sl@0
   922
//! @SYMTestPriority		High
sl@0
   923
//! @SYMTestExpectedResults	Doesn't cause panic.
sl@0
   924
//! @SYMTestType		CIT
sl@0
   925
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
   926
		CREATE_OBJECT	RFs	RFs1
sl@0
   927
		COMMAND		RFs1	new
sl@0
   928
		COMMAND		RFs1	Connect
sl@0
   929
		COMMAND		RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-0075-001-FileSystemName_command03
sl@0
   930
		COMMAND		RFs1	NotifyChange		PBASE-F32-RFS-PublicApi-0075-001-NotifyChange_command04
sl@0
   931
		COMMAND		RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0075-001-DismountFileSystem_command05
sl@0
   932
		OUTSTANDING	
sl@0
   933
		COMMAND		RFs1	NotifyChange		PBASE-F32-RFS-PublicApi-0075-001-NotifyChange_command07
sl@0
   934
		COMMAND		RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0075-001-MountFileSystem_command08
sl@0
   935
		OUTSTANDING	
sl@0
   936
		COMMAND		RFs1	Close
sl@0
   937
		COMMAND		RFs1	~
sl@0
   938
	END_TEST_BLOCK	
sl@0
   939
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0075
sl@0
   940
sl@0
   941
sl@0
   942
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0014
sl@0
   943
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0014
sl@0
   944
//! @SYMAPI			RFs
sl@0
   945
//! @SYMTestCaseDesc		Function AddCompositeMount() test.
sl@0
   946
//!				Uses API elements:  AddCompositeMount()
sl@0
   947
//! @SYMTestActions		1. Call Connect().
sl@0
   948
//!				2. Call AddCompositeMount() providing a file system name, c-drive as a local drive, and an empty drive as a composite drive and EFalse as a synchronization parameter.
sl@0
   949
//!				3. Call Close().
sl@0
   950
//! @SYMTestStatus		Implemented
sl@0
   951
//! @SYMTestPriority		High
sl@0
   952
//! @SYMTestExpectedResults	Check that AddCompositeMount() returns KErrNotSupported (-5).
sl@0
   953
//! @SYMTestType		CIT
sl@0
   954
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
   955
		CREATE_OBJECT	RFs	RFs1
sl@0
   956
		COMMAND			RFs1	new
sl@0
   957
		COMMAND			RFs1	Connect
sl@0
   958
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-0014-001-FileSystemName_command03
sl@0
   959
		COMMAND			RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0014-001-DismountFileSystem_command04
sl@0
   960
		COMMAND	!Error=-5	RFs1	AddCompositeMount	PBASE-F32-RFS-PublicApi-0014-001-AddCompositeMount_command05
sl@0
   961
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0014-001-MountFileSystem_command06
sl@0
   962
		COMMAND			RFs1	Close
sl@0
   963
		COMMAND			RFs1	~		
sl@0
   964
	END_TEST_BLOCK	
sl@0
   965
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0014
sl@0
   966
sl@0
   967
sl@0
   968
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0036
sl@0
   969
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0036
sl@0
   970
//! @SYMAPI			RFs
sl@0
   971
//! @SYMTestCaseDesc		Functions MountFileSystemAndScan(const TDesC &aFileSystemName, const TDesC &aExtensionName, TInt aDrive, TBool &aIsMountSuccess) test with incorrect file system extension name.
sl@0
   972
//!				Uses API elements: MountFileSystemAndScan(), DismountFileSystem().
sl@0
   973
//! @SYMTestActions		1. Call Connect() method.
sl@0
   974
//!				2. Call MountFileSystemAndScan() providing the file system name (Fat) and drive for mounts, and bad name of extension.
sl@0
   975
//!				3. Call DismountFileSystem() providing the file system name and the drive for mounts.
sl@0
   976
//!				4. Call Close() method.
sl@0
   977
//! @SYMTestStatus		Implemented
sl@0
   978
//! @SYMTestPriority		High
sl@0
   979
//! @SYMTestExpectedResults	KErrNotFound, extension not found
sl@0
   980
//! @SYMTestType		CIT
sl@0
   981
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
   982
		CREATE_OBJECT	RFs	RFs1
sl@0
   983
		COMMAND			RFs1	new
sl@0
   984
		COMMAND			RFs1	Connect
sl@0
   985
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-0036-001-FileSystemName_command03
sl@0
   986
		COMMAND			RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0036-001-DismountFileSystem_command04
sl@0
   987
		COMMAND	!Error=-1	RFs1	MountFileSystemAndScan	PBASE-F32-RFS-PublicApi-0036-001-MountFileSystemAndScan_command05
sl@0
   988
		COMMAND			RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0036-001-DismountFileSystem_command06
sl@0
   989
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0036-001-MountFileSystem_command07
sl@0
   990
		COMMAND			RFs1	Close
sl@0
   991
		COMMAND			RFs1	~		
sl@0
   992
	END_TEST_BLOCK	
sl@0
   993
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0036
sl@0
   994
sl@0
   995
sl@0
   996
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0043
sl@0
   997
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0043
sl@0
   998
//! @SYMAPI			RFs
sl@0
   999
//! @SYMTestCaseDesc		Functions FileSystemName() test, get file system name from drive where no mounted file system.
sl@0
  1000
//!				Uses API elements: FileSystemName().
sl@0
  1001
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1002
//!				2. Call FileSystemName() providing a drive number where is no mounted file system.
sl@0
  1003
//!				3. Call Close() method.
sl@0
  1004
//! @SYMTestStatus		Implemented
sl@0
  1005
//! @SYMTestPriority		High
sl@0
  1006
//! @SYMTestExpectedResults	KErrNotFound
sl@0
  1007
//! @SYMTestType		CIT
sl@0
  1008
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
  1009
		CREATE_OBJECT	RFs	RFs1
sl@0
  1010
		COMMAND			RFs1	new
sl@0
  1011
		COMMAND			RFs1	Connect
sl@0
  1012
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-0043-001-FileSystemName_command03
sl@0
  1013
		COMMAND			RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0043-001-DismountFileSystem_command04
sl@0
  1014
		COMMAND	!Error=-1	RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-0043-001-FileSystemName_command05
sl@0
  1015
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0043-001-MountFileSystem_command06
sl@0
  1016
		COMMAND			RFs1	Close
sl@0
  1017
		COMMAND			RFs1	~		
sl@0
  1018
	END_TEST_BLOCK	
sl@0
  1019
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0043
sl@0
  1020
sl@0
  1021
sl@0
  1022
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0063
sl@0
  1023
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0063
sl@0
  1024
//! @SYMAPI			RFs
sl@0
  1025
//! @SYMTestCaseDesc		Functions AddCompositeMount() test with incorrect file system name in asynchronous mode.
sl@0
  1026
//!				Uses API elements: AddCompositeMount().
sl@0
  1027
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1028
//!				2. Call AddCompositeMount() providing C-drive as local drive, an empty drive as a composite drive argument, bad filesystem name and false as synchronous as a parameters.
sl@0
  1029
//!				3. Call Close() method.
sl@0
  1030
//! @SYMTestStatus		Implemented
sl@0
  1031
//! @SYMTestPriority		High
sl@0
  1032
//! @SYMTestExpectedResults	KErrNotFound
sl@0
  1033
//! @SYMTestType		CIT
sl@0
  1034
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
  1035
		CREATE_OBJECT	RFs	RFs1
sl@0
  1036
		COMMAND			RFs1	new
sl@0
  1037
		COMMAND			RFs1	Connect
sl@0
  1038
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-0063-001-FileSystemName_command03
sl@0
  1039
		COMMAND			RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0063-001-DismountFileSystem_command04
sl@0
  1040
		COMMAND	!Error=-1	RFs1	AddCompositeMount	PBASE-F32-RFS-PublicApi-0063-001-AddCompositeMount_command05
sl@0
  1041
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0063-001-MountFileSystem_command06
sl@0
  1042
		COMMAND			RFs1	Close
sl@0
  1043
		COMMAND			RFs1	~		
sl@0
  1044
	END_TEST_BLOCK	
sl@0
  1045
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0063
sl@0
  1046
sl@0
  1047
sl@0
  1048
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0064
sl@0
  1049
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0064
sl@0
  1050
//! @SYMAPI			RFs
sl@0
  1051
//! @SYMTestCaseDesc		Functions AddCompositeMount() test with incorrect file system name in synchronous mode.
sl@0
  1052
//!				Uses API elements: AddCompositeMount().
sl@0
  1053
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1054
//!				2. Call AddCompositeMount() providing drive number as local drive, drive for mount, bad filesystem name and true as synchronous as a parameters.
sl@0
  1055
//!				3. Call Close() method.
sl@0
  1056
//! @SYMTestStatus		Implemented
sl@0
  1057
//! @SYMTestPriority		High
sl@0
  1058
//! @SYMTestExpectedResults	KErrNotFound
sl@0
  1059
//! @SYMTestType		CIT
sl@0
  1060
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
  1061
		CREATE_OBJECT	RFs	RFs1
sl@0
  1062
		COMMAND			RFs1	new
sl@0
  1063
		COMMAND			RFs1	Connect
sl@0
  1064
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-0064-001-FileSystemName_command03
sl@0
  1065
		COMMAND			RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0064-001-DismountFileSystem_command04
sl@0
  1066
		COMMAND	!Error=-1	RFs1	AddCompositeMount	PBASE-F32-RFS-PublicApi-0064-001-AddCompositeMount_command05
sl@0
  1067
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0064-001-MountFileSystem_command06
sl@0
  1068
		COMMAND			RFs1	Close
sl@0
  1069
		COMMAND			RFs1	~		
sl@0
  1070
	END_TEST_BLOCK	
sl@0
  1071
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0064
sl@0
  1072
sl@0
  1073
sl@0
  1074
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0065
sl@0
  1075
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0065
sl@0
  1076
//! @SYMAPI			RFs
sl@0
  1077
//! @SYMTestCaseDesc		Functions AddCompositeMount() test with negative drive number for local drive argument in asynchronous mode.
sl@0
  1078
//!				Uses API elements: AddCompositeMount().
sl@0
  1079
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1080
//!				2. Call AddCompositeMount() providing negative drive number as local drive, drive for mounts, "FAT" filesystem name and FALSE as synchronous as a parameters.
sl@0
  1081
//!				3. Call Close() method.
sl@0
  1082
//! @SYMTestStatus		Implemented
sl@0
  1083
//! @SYMTestPriority		High
sl@0
  1084
//! @SYMTestExpectedResults	KErrNotSupported
sl@0
  1085
//! @SYMTestType		CIT
sl@0
  1086
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
  1087
		CREATE_OBJECT	RFs	RFs1
sl@0
  1088
		COMMAND			RFs1	new
sl@0
  1089
		COMMAND			RFs1	Connect
sl@0
  1090
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-0065-001-FileSystemName_command03
sl@0
  1091
		COMMAND			RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0065-001-DismountFileSystem_command04
sl@0
  1092
		COMMAND	!Error=-5	RFs1	AddCompositeMount	PBASE-F32-RFS-PublicApi-0065-001-AddCompositeMount_command05
sl@0
  1093
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0065-001-MountFileSystem_command06
sl@0
  1094
		COMMAND			RFs1	Close
sl@0
  1095
		COMMAND			RFs1	~		
sl@0
  1096
	END_TEST_BLOCK	
sl@0
  1097
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0065
sl@0
  1098
sl@0
  1099
sl@0
  1100
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0066
sl@0
  1101
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0066
sl@0
  1102
//! @SYMAPI			RFs
sl@0
  1103
//! @SYMTestCaseDesc		Functions AddCompositeMount() test with negative drive number for composite drive argument in asynchronous mode.
sl@0
  1104
//!				Uses API elements: AddCompositeMount().
sl@0
  1105
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1106
//!				2. Call AddCompositeMount() providing C-drive as a local drive, negative drive number as composite drive, "FAT" filesystem name and FALSE as synchronous as a parameters.
sl@0
  1107
//!				3. Call Close() method.
sl@0
  1108
//! @SYMTestStatus		Implemented
sl@0
  1109
//! @SYMTestPriority		High
sl@0
  1110
//! @SYMTestExpectedResults	KErrNotSupported
sl@0
  1111
//! @SYMTestType		CIT
sl@0
  1112
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
  1113
		CREATE_OBJECT	RFs	RFs1
sl@0
  1114
		COMMAND			RFs1	new
sl@0
  1115
		COMMAND			RFs1	Connect
sl@0
  1116
		COMMAND	!Error=-5	RFs1	AddCompositeMount	PBASE-F32-RFS-PublicApi-0066-001-AddCompositeMount_command03
sl@0
  1117
		COMMAND			RFs1	Close
sl@0
  1118
		COMMAND			RFs1	~		
sl@0
  1119
	END_TEST_BLOCK	
sl@0
  1120
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0066
sl@0
  1121
sl@0
  1122
sl@0
  1123
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0067
sl@0
  1124
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0067
sl@0
  1125
//! @SYMAPI			RFs
sl@0
  1126
//! @SYMTestCaseDesc		Functions AddCompositeMount() test with negative drive number for local drive argument in synchronous mode.
sl@0
  1127
//!				Uses API elements: AddCompositeMount().
sl@0
  1128
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1129
//!				2. Call AddCompositeMount() providing negative drive number as local drive, drive for mounts, "FAT" filesystem name and TRUE as synchronous as a parameters.
sl@0
  1130
//!				3. Call Close() method.
sl@0
  1131
//! @SYMTestStatus		Implemented
sl@0
  1132
//! @SYMTestPriority		High
sl@0
  1133
//! @SYMTestExpectedResults	KErrNotSupported
sl@0
  1134
//! @SYMTestType		CIT
sl@0
  1135
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
  1136
		CREATE_OBJECT	RFs	RFs1
sl@0
  1137
		COMMAND			RFs1	new
sl@0
  1138
		COMMAND			RFs1	Connect
sl@0
  1139
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-0067-001-FileSystemName_command03
sl@0
  1140
		COMMAND			RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-0067-001-DismountFileSystem_command04
sl@0
  1141
		COMMAND	!Error=-5	RFs1	AddCompositeMount	PBASE-F32-RFS-PublicApi-0067-001-AddCompositeMount_command05
sl@0
  1142
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0067-001-MountFileSystem_command06
sl@0
  1143
		COMMAND			RFs1	Close
sl@0
  1144
		COMMAND			RFs1	~		
sl@0
  1145
	END_TEST_BLOCK	
sl@0
  1146
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0067
sl@0
  1147
sl@0
  1148
sl@0
  1149
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0068
sl@0
  1150
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0068
sl@0
  1151
//! @SYMAPI			RFs
sl@0
  1152
//! @SYMTestCaseDesc		Functions AddCompositeMount() test with negative drive number for composite drive argument in synchronous mode.
sl@0
  1153
//!				Uses API elements: AddCompositeMount().
sl@0
  1154
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1155
//!				2. Call AddCompositeMount() providing drive number as local drive, negative drive number as composite drive, "FAT" filesystem name and TRUE as synchronous as a parameters.
sl@0
  1156
//!				3. Call Close() method.
sl@0
  1157
//! @SYMTestStatus		Implemented
sl@0
  1158
//! @SYMTestPriority		High
sl@0
  1159
//! @SYMTestExpectedResults	KErrNotSupported
sl@0
  1160
//! @SYMTestType		CIT
sl@0
  1161
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
  1162
		CREATE_OBJECT	RFs	RFs1
sl@0
  1163
		COMMAND			RFs1	new
sl@0
  1164
		COMMAND			RFs1	Connect
sl@0
  1165
		COMMAND	!Error=-5	RFs1	AddCompositeMount	PBASE-F32-RFS-PublicApi-0068-001-AddCompositeMount_command03
sl@0
  1166
		COMMAND			RFs1	Close
sl@0
  1167
		COMMAND			RFs1	~		
sl@0
  1168
	END_TEST_BLOCK	
sl@0
  1169
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0068
sl@0
  1170
sl@0
  1171
START_TESTCASE 			PBASE-F32-RFS-PublicApi-0074
sl@0
  1172
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-0074
sl@0
  1173
//! @SYMAPI			RFs
sl@0
  1174
//! @SYMTestCaseDesc		Function FileSystemSubType() test with non mounted drive.
sl@0
  1175
//!				Uses API elements: FileSystemSubType().
sl@0
  1176
//! @SYMTestActions		1. Call Connect() method.
sl@0
  1177
//!				2. Call FileSystemSubType() passing the drive number where is not mounted file system as argument.
sl@0
  1178
//!				3. Call Close() method.
sl@0
  1179
//! @SYMTestStatus		Implemented
sl@0
  1180
//! @SYMTestPriority		Critical
sl@0
  1181
//! @SYMTestExpectedResults	Return KErrNotReady (-18).
sl@0
  1182
//! @SYMTestType		CIT
sl@0
  1183
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini 
sl@0
  1184
		CREATE_OBJECT	RFs	RFs1
sl@0
  1185
		COMMAND			RFs1	new
sl@0
  1186
		COMMAND			RFs1	Connect
sl@0
  1187
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-0074-001-FileSystemName_command03
sl@0
  1188
		COMMAND			RFs1	DismountFileSystem		PBASE-F32-RFS-PublicApi-0074-001-DismountFileSystem_command04
sl@0
  1189
		COMMAND	!Error=-18	RFs1	FileSystemSubType		PBASE-F32-RFS-PublicApi-0074-001-FileSystemSubType_command05
sl@0
  1190
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-0074-001-MountFileSystem_command06
sl@0
  1191
		COMMAND			RFs1	Close	
sl@0
  1192
		COMMAND			RFs1	~		
sl@0
  1193
	END_TEST_BLOCK	
sl@0
  1194
END_TESTCASE 			PBASE-F32-RFS-PublicApi-0074