os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-RFS-Drives-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-Drives-PublicApi-RAM
sl@0
    18
//! @SYMScriptTestEnvironment	This test script requires a basic RAM.
sl@0
    19
//! @SYMScriptAuthor 		Anton Grober
sl@0
    20
//! @SYMScriptDescription	The test script contains API drives & volumes 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-1002
sl@0
    26
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1002
sl@0
    27
//! @SYMAPI			RFs
sl@0
    28
//! @SYMAuthor			Anton Grober 
sl@0
    29
//! @SYMCreationDate		21/08/2006 
sl@0
    30
//! @SYMTestCaseDesc		Drive() function test. Passing exisiting drive index as parameter.
sl@0
    31
//!				Uses API elements: Drive()
sl@0
    32
//! @SYMTestActions		1. Call Connect().
sl@0
    33
//!				2. Call Drive() passing TDriveInfo reference as first parameter and RAM-drive as second parameter.
sl@0
    34
//!				3. Call Close().
sl@0
    35
//! @SYMTestStatus		Implemented
sl@0
    36
//! @SYMTestPriority		Critical
sl@0
    37
//! @SYMTestExpectedResults	Function returns KErrNone and iType field of TDriveInfo indeicates a correct type.
sl@0
    38
//! @SYMTestType		CIT
sl@0
    39
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini 
sl@0
    40
		CREATE_OBJECT	RFs	RFs1
sl@0
    41
		COMMAND		RFs1	new		
sl@0
    42
		COMMAND		RFs1	Connect		
sl@0
    43
		COMMAND		RFs1	Drive		PBASE-F32-RFS-PublicApi-1002-001-Drive_command03
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-1002
sl@0
    48
sl@0
    49
sl@0
    50
START_TESTCASE 			PBASE-F32-RFS-PublicApi-1003
sl@0
    51
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1003
sl@0
    52
//! @SYMAPI			RFs
sl@0
    53
//! @SYMAuthor			Anton Grober 
sl@0
    54
//! @SYMCreationDate		22/08/2006 
sl@0
    55
//! @SYMTestCaseDesc		Volume() and SetVolumeLabel() function test. Passing exisiting drive index as parameter.
sl@0
    56
//!				Uses API elements: Volume(), SetVolumeLabel().
sl@0
    57
//! @SYMTestActions		1. Call Connect().
sl@0
    58
//!				2. Saving volume label.
sl@0
    59
//!				3. Call SetVolumeLabel() passing "Test" as first parameter and the drive number as a second parameter.
sl@0
    60
//!				4. Call Volume() passing  TVolumeInfo reference as first parameter and the drive number as a second parameter.
sl@0
    61
//!				5. Restoring volume label.
sl@0
    62
//!				6. Call Close().
sl@0
    63
//! @SYMTestStatus		Implemented
sl@0
    64
//! @SYMTestPriority		Critical
sl@0
    65
//! @SYMTestExpectedResults	Function SetVolumeLabel() returns KErrNone.  Function Volume() returns KErrNone and iName field of TVolumeInfo is "Test".
sl@0
    66
//! @SYMTestType		CIT
sl@0
    67
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini 
sl@0
    68
		CREATE_OBJECT	RFs	RFs1
sl@0
    69
		COMMAND		RFs1	new		
sl@0
    70
		COMMAND		RFs1	Connect		
sl@0
    71
		COMMAND		RFs1	Volume		PBASE-F32-RFS-PublicApi-1003-001-Volume_command03
sl@0
    72
		COMMAND		RFs1	SetVolumeLabel		PBASE-F32-RFS-PublicApi-1003-001-SetVolumeLabel_command04
sl@0
    73
		COMMAND		RFs1	Volume		PBASE-F32-RFS-PublicApi-1003-001-Volume_command05
sl@0
    74
		COMMAND		RFs1	SetVolumeLabel		PBASE-F32-RFS-PublicApi-1003-001-SetVolumeLabel_command06
sl@0
    75
		COMMAND		RFs1	Close		
sl@0
    76
		COMMAND		RFs1	~		
sl@0
    77
	END_TEST_BLOCK
sl@0
    78
END_TESTCASE 			PBASE-F32-RFS-PublicApi-1003
sl@0
    79
sl@0
    80
sl@0
    81
START_TESTCASE 			PBASE-F32-RFS-PublicApi-1004
sl@0
    82
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1004
sl@0
    83
//! @SYMAPI			RFs
sl@0
    84
//! @SYMAuthor			Anton Grober 
sl@0
    85
//! @SYMCreationDate		22/08/2006 
sl@0
    86
//! @SYMTestCaseDesc		SetSubst() and Subst() functions test. Passing exisiting drive index as second parameter and existing path to folder as second parameter.
sl@0
    87
//!				Uses API elements: Subst(), SetSubst().
sl@0
    88
//! @SYMTestActions		1. Call Connect().
sl@0
    89
//!				2. Call SetSubst() passing "\base\" as a first parameter and non-mounted valid drive's number as a drive number.
sl@0
    90
//!				3. Check that function returned KErrNone.	
sl@0
    91
//!				4. Call Subst() passing TDesC16 reference as first parameter and non-mounted valid drive's number as a drive number.
sl@0
    92
//!				5. Call SetSubst() passing ""(empty descriptor) as a first parameter and non-mounted valid drive's number as a drive number. This will unsubst the substed.
sl@0
    93
//!				6. Check that function returned KErrNone.
sl@0
    94
//!				7. Call Close().
sl@0
    95
//! @SYMTestStatus		Implemented
sl@0
    96
//! @SYMTestPriority		Critical
sl@0
    97
//! @SYMTestExpectedResults	Function SetSubst() returns KErrNone. Functions Subst() returns "\base\" through TDesC16 reference and returns KErrNone.
sl@0
    98
//! @SYMTestType		CIT
sl@0
    99
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini 
sl@0
   100
		CREATE_OBJECT	RFs	RFs1
sl@0
   101
		COMMAND		RFs1	new		
sl@0
   102
		COMMAND		RFs1	Connect		
sl@0
   103
		COMMAND		RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-1004-001-FileSystemName_command03
sl@0
   104
		COMMAND		RFs1	DismountFileSystem		PBASE-F32-RFS-PublicApi-1004-001-DismountFileSystem_command04
sl@0
   105
		COMMAND		RFs1	SetSubst		PBASE-F32-RFS-PublicApi-1004-001-SetSubst_command05
sl@0
   106
		COMMAND		RFs1	Subst		PBASE-F32-RFS-PublicApi-1004-001-Subst_command06
sl@0
   107
		COMMAND		RFs1	SetSubst		PBASE-F32-RFS-PublicApi-1004-001-SetSubst_command07
sl@0
   108
		COMMAND		RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-1004-001-MountFileSystem_command08
sl@0
   109
		COMMAND		RFs1	Close		
sl@0
   110
		COMMAND		RFs1	~		
sl@0
   111
	END_TEST_BLOCK
sl@0
   112
END_TESTCASE 			PBASE-F32-RFS-PublicApi-1004
sl@0
   113
sl@0
   114
sl@0
   115
START_TESTCASE 			PBASE-F32-RFS-PublicApi-1008
sl@0
   116
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1008
sl@0
   117
//! @SYMAPI			RFs
sl@0
   118
//! @SYMAuthor			Anton Grober 
sl@0
   119
//! @SYMCreationDate		22/08/2006 
sl@0
   120
//! @SYMTestCaseDesc		CheckDisk() passing path with FAT filesystem.
sl@0
   121
//!				Uses API elements: CheckDisk().
sl@0
   122
//! @SYMTestActions		1. Call Connect().
sl@0
   123
//!				2. Call CheckDisk() passing drive with FAT filesystem as a drive number.
sl@0
   124
//!				3. Call Close().
sl@0
   125
//! @SYMTestStatus		Implemented
sl@0
   126
//! @SYMTestPriority		Critical
sl@0
   127
//! @SYMTestExpectedResults	Function CheckDisk() returns KErrNone.
sl@0
   128
//! @SYMTestType		CIT
sl@0
   129
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini 
sl@0
   130
		CREATE_OBJECT	RFs	RFs1
sl@0
   131
		COMMAND		RFs1	new		
sl@0
   132
		COMMAND		RFs1	Connect		
sl@0
   133
		COMMAND		RFs1	CheckDisk		PBASE-F32-RFS-PublicApi-1008-001-CheckDisk_command03
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-1008
sl@0
   138
sl@0
   139
sl@0
   140
START_TESTCASE 			PBASE-F32-RFS-PublicApi-1009
sl@0
   141
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1009
sl@0
   142
//! @SYMAPI			RFs
sl@0
   143
//! @SYMAuthor			Anton Grober 
sl@0
   144
//! @SYMCreationDate		22/08/2006 
sl@0
   145
//! @SYMTestCaseDesc		ScanDrive() passing path to drive with FAT filesystem.
sl@0
   146
//!				Uses API elements: ScanDrive();
sl@0
   147
//! @SYMTestActions		1. Call Connect().
sl@0
   148
//!				2. Call ScanDrive() passing drive's with FAT filesystem number as a drive number.
sl@0
   149
//!				3. Call Close().
sl@0
   150
//! @SYMTestStatus		Implemented
sl@0
   151
//! @SYMTestPriority		Critical
sl@0
   152
//! @SYMTestExpectedResults	Function ScanDrive() returns KErrNone.
sl@0
   153
//! @SYMTestType		CIT
sl@0
   154
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini 
sl@0
   155
		CREATE_OBJECT	RFs	RFs1
sl@0
   156
		COMMAND		RFs1	new		
sl@0
   157
		COMMAND		RFs1	Connect		
sl@0
   158
		COMMAND		RFs1	ScanDrive		PBASE-F32-RFS-PublicApi-1009-001-ScanDrive_command03
sl@0
   159
		COMMAND		RFs1	Close		
sl@0
   160
		COMMAND		RFs1	~		
sl@0
   161
	END_TEST_BLOCK
sl@0
   162
END_TESTCASE 			PBASE-F32-RFS-PublicApi-1009
sl@0
   163
sl@0
   164
sl@0
   165
START_TESTCASE 			PBASE-F32-RFS-PublicApi-1010
sl@0
   166
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1010
sl@0
   167
//! @SYMAPI			RFs
sl@0
   168
//! @SYMAuthor			Anton Grober 
sl@0
   169
//! @SYMCreationDate		22/08/2006 
sl@0
   170
//! @SYMTestCaseDesc		SetDriveName() and GetDriveName() tests. Passing existing drive as parameter and some descriptor as drive name or store for returned value.
sl@0
   171
//!						Uses API elements: GetDriveName(), SetDriveName();
sl@0
   172
//! @SYMTestActions		1. Call Connect().
sl@0
   173
//!				2. Saving drive name for restoring.
sl@0
   174
//!				3. Call SetDriveName() passing default drive's number as first parameter and "TEST" as second parameter.
sl@0
   175
//!				4. Call GetDriveName() passing default drive's number as first paramter and TDesC16 reference as second paramter.
sl@0
   176
//!				5. Restoring drive name.
sl@0
   177
//!				6. Call Close().
sl@0
   178
//! @SYMTestStatus		Implemented
sl@0
   179
//! @SYMTestPriority		Critical
sl@0
   180
//! @SYMTestExpectedResults	Function SetDriveName() returns KErrNone. Function GetDriveName() returns "TEST" through a TDesC16 reference and returns KErrNone.
sl@0
   181
//! @SYMTestType		CIT
sl@0
   182
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini 
sl@0
   183
		CREATE_OBJECT	RFs	RFs1
sl@0
   184
		COMMAND		RFs1	new		
sl@0
   185
		COMMAND		RFs1	Connect		
sl@0
   186
		COMMAND		RFs1	GetDriveName		PBASE-F32-RFS-PublicApi-1010-001-GetDriveName_command03
sl@0
   187
		COMMAND		RFs1	SetDriveName		PBASE-F32-RFS-PublicApi-1010-001-SetDriveName_command04
sl@0
   188
		COMMAND		RFs1	GetDriveName		PBASE-F32-RFS-PublicApi-1010-001-GetDriveName_command05
sl@0
   189
		COMMAND		RFs1	SetDriveName		PBASE-F32-RFS-PublicApi-1010-001-SetDriveName_command06
sl@0
   190
		COMMAND		RFs1	Close		
sl@0
   191
		COMMAND		RFs1	~		
sl@0
   192
	END_TEST_BLOCK
sl@0
   193
END_TESTCASE 			PBASE-F32-RFS-PublicApi-1010
sl@0
   194
sl@0
   195
sl@0
   196
START_TESTCASE 			PBASE-F32-RFS-PublicApi-1013
sl@0
   197
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1013
sl@0
   198
//! @SYMAPI			RFs
sl@0
   199
//! @SYMAuthor			Anton Grober 
sl@0
   200
//! @SYMCreationDate		22/08/2006 
sl@0
   201
//! @SYMTestCaseDesc		ReserveDriveSpace(), GetReserveAccess() and ReleaseReserveAccess() tests. Passing existing drive as first parameter and amount of space int bytes as second.
sl@0
   202
//!						Uses API elements: ReserveDriveSpace(), GetReserveAccess() and ReleaseReserveAccess().
sl@0
   203
//! @SYMTestActions		1. Call Connect().
sl@0
   204
//!				2. Call ReserveDriveSpace() passing 100(bytes) as first parameter and default drive's number as second parameter.	
sl@0
   205
//!				3. Call GetReserveAccess() passing default drive's number as parameter.
sl@0
   206
//!				4. Call ReleaseReserveAccess() passing default drive's number as parameter.
sl@0
   207
//!				5. Call Close().
sl@0
   208
//! @SYMTestStatus		Implemented
sl@0
   209
//! @SYMTestPriority		Critical
sl@0
   210
//! @SYMTestExpectedResults	Function ReserveReserveAccess() returns KErrNone. Function GetReseveAccess() returns KErrNone. Function ReleaseReserveAccess() returns KErrNone.
sl@0
   211
//! @SYMTestType		CIT
sl@0
   212
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini 
sl@0
   213
		CREATE_OBJECT	RFs	RFs1
sl@0
   214
		COMMAND		RFs1	new		
sl@0
   215
		COMMAND		RFs1	Connect		
sl@0
   216
		COMMAND		RFs1	ReserveDriveSpace		PBASE-F32-RFS-PublicApi-1013-001-ReserveDriveSpace_command03
sl@0
   217
		COMMAND		RFs1	GetReserveAccess		PBASE-F32-RFS-PublicApi-1013-001-GetReserveAccess_command04
sl@0
   218
		COMMAND		RFs1	ReleaseReserveAccess		PBASE-F32-RFS-PublicApi-1013-001-ReleaseReserveAccess_command05
sl@0
   219
		COMMAND		RFs1	Close		
sl@0
   220
		COMMAND		RFs1	~		
sl@0
   221
	END_TEST_BLOCK
sl@0
   222
END_TESTCASE 			PBASE-F32-RFS-PublicApi-1013
sl@0
   223
sl@0
   224
sl@0
   225
START_TESTCASE 			PBASE-F32-RFS-PublicApi-1018
sl@0
   226
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1018
sl@0
   227
//! @SYMAPI			RFs
sl@0
   228
//! @SYMAuthor			Anton Grober 
sl@0
   229
//! @SYMCreationDate		22/08/2006 
sl@0
   230
//! @SYMTestCaseDesc		Volume() function test. Passing non-mounted drive index as parameter.
sl@0
   231
//!				Uses API elements: Volume().
sl@0
   232
//! @SYMTestActions		1. Call Connect().
sl@0
   233
//!				2. Call Volume() passing  TVolumeInfo reference as first parameter and the non-mounted drive's number as a second parameter.
sl@0
   234
//!				3. Call Close().
sl@0
   235
//! @SYMTestStatus		Implemented
sl@0
   236
//! @SYMTestPriority		High
sl@0
   237
//! @SYMTestExpectedResults	Function Volume() returns KErrNotReady.
sl@0
   238
//! @SYMTestType		CIT
sl@0
   239
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini 
sl@0
   240
		CREATE_OBJECT	RFs	RFs1
sl@0
   241
		COMMAND			RFs1	new		
sl@0
   242
		COMMAND			RFs1	Connect		
sl@0
   243
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-1018-001-FileSystemName_command03
sl@0
   244
		COMMAND			RFs1	DismountFileSystem		PBASE-F32-RFS-PublicApi-1018-001-DismountFileSystem_command04
sl@0
   245
		COMMAND	!Error=-18	RFs1	Volume		PBASE-F32-RFS-PublicApi-1018-001-Volume_command05
sl@0
   246
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-1018-001-MountFileSystem_command06
sl@0
   247
		COMMAND			RFs1	Close		
sl@0
   248
		COMMAND			RFs1	~		
sl@0
   249
	END_TEST_BLOCK
sl@0
   250
END_TESTCASE			PBASE-F32-RFS-PublicApi-1018
sl@0
   251
sl@0
   252
sl@0
   253
START_TESTCASE 			PBASE-F32-RFS-PublicApi-1020
sl@0
   254
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1020
sl@0
   255
//! @SYMAPI			RFs
sl@0
   256
//! @SYMAuthor			Anton Grober 
sl@0
   257
//! @SYMCreationDate		02/10/2006 
sl@0
   258
//! @SYMTestCaseDesc		SetVolumeLabel() function test. Passing not mounted drive index as parameter.
sl@0
   259
//!				Uses API elements: SetVolumeLabel().
sl@0
   260
//! @SYMTestActions		1. Call Connect().
sl@0
   261
//!				2. Call SetVolumeLabel() passing  TVolumeInfo reference as first parameter and the non-mounted drive's number as a second parameter.
sl@0
   262
//!				3. Call Close().
sl@0
   263
//! @SYMTestStatus		Implemented
sl@0
   264
//! @SYMTestPriority		High
sl@0
   265
//! @SYMTestExpectedResults	Function SetVolumeLabel() returns KErrNotReady.
sl@0
   266
//! @SYMTestType		CIT
sl@0
   267
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini 
sl@0
   268
		CREATE_OBJECT	RFs	RFs1
sl@0
   269
		COMMAND			RFs1	new		
sl@0
   270
		COMMAND			RFs1	Connect		
sl@0
   271
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-1020-001-FileSystemName_command03
sl@0
   272
		COMMAND			RFs1	DismountFileSystem		PBASE-F32-RFS-PublicApi-1020-001-DismountFileSystem_command04
sl@0
   273
		COMMAND	!Error=-18	RFs1	SetVolumeLabel		PBASE-F32-RFS-PublicApi-1020-001-SetVolumeLabel_command05
sl@0
   274
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-1020-001-MountFileSystem_command06
sl@0
   275
		COMMAND			RFs1	Close		
sl@0
   276
		COMMAND			RFs1	~		
sl@0
   277
	END_TEST_BLOCK
sl@0
   278
END_TESTCASE			PBASE-F32-RFS-PublicApi-1020
sl@0
   279
sl@0
   280
sl@0
   281
START_TESTCASE 			PBASE-F32-RFS-PublicApi-1022
sl@0
   282
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1022
sl@0
   283
//! @SYMAPI			RFs
sl@0
   284
//! @SYMAuthor			Anton Grober 
sl@0
   285
//! @SYMCreationDate		02/10/2006 
sl@0
   286
//! @SYMTestCaseDesc		SetSubst() function test. Passing exisiting and mounted drive index as parameter.
sl@0
   287
//!				Uses API elements: SetSubst().
sl@0
   288
//! @SYMTestActions		1. Call Connect().
sl@0
   289
//!				2. Call SetSubst() passing some correct path descriptor as first parameter and some mounted drive as second.
sl@0
   290
//!				3. Call Close().
sl@0
   291
//! @SYMTestStatus		Implemented
sl@0
   292
//! @SYMTestPriority		High
sl@0
   293
//! @SYMTestExpectedResults	Function SetSubst() returns KErrGeneral.
sl@0
   294
//! @SYMTestType		CIT
sl@0
   295
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini 
sl@0
   296
		CREATE_OBJECT	RFs	RFs1
sl@0
   297
		COMMAND			RFs1	new		
sl@0
   298
		COMMAND			RFs1	Connect		
sl@0
   299
		COMMAND	!Error=-2	RFs1	SetSubst		PBASE-F32-RFS-PublicApi-1022-001-SetSubst_command03
sl@0
   300
		COMMAND			RFs1	Close		
sl@0
   301
		COMMAND			RFs1	~		
sl@0
   302
	END_TEST_BLOCK
sl@0
   303
END_TESTCASE			PBASE-F32-RFS-PublicApi-1022
sl@0
   304
sl@0
   305
sl@0
   306
START_TESTCASE 			PBASE-F32-RFS-PublicApi-1023
sl@0
   307
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1023
sl@0
   308
//! @SYMAPI			RFs
sl@0
   309
//! @SYMAuthor			Anton Grober 
sl@0
   310
//! @SYMCreationDate		02/10/2006 
sl@0
   311
//! @SYMTestCaseDesc		SetSubst() function test. Passing correct path as other parameter and incorrect drive index as parameter.
sl@0
   312
//!				Uses API elements: SetSubst().
sl@0
   313
//! @SYMTestActions		1. Call Connect().
sl@0
   314
//!				2. Call SetSubst() passing  descriptor with some icorrect path as first parameter and umounted drive number as second.
sl@0
   315
//!				3. Call Close().
sl@0
   316
//! @SYMTestStatus		Implemented
sl@0
   317
//! @SYMTestPriority		High
sl@0
   318
//! @SYMTestExpectedResults	Function SetSubst() returns KErrBadName.
sl@0
   319
//! @SYMTestType		CIT
sl@0
   320
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini 
sl@0
   321
		CREATE_OBJECT	RFs	RFs1
sl@0
   322
		COMMAND			RFs1	new		
sl@0
   323
		COMMAND			RFs1	Connect		
sl@0
   324
		COMMAND	!Error=-28	RFs1	SetSubst		PBASE-F32-RFS-PublicApi-1023-001-SetSubst_command03
sl@0
   325
		COMMAND			RFs1	Close		
sl@0
   326
		COMMAND			RFs1	~		
sl@0
   327
	END_TEST_BLOCK
sl@0
   328
END_TESTCASE			PBASE-F32-RFS-PublicApi-1023
sl@0
   329
sl@0
   330
sl@0
   331
START_TESTCASE 			PBASE-F32-RFS-PublicApi-1024
sl@0
   332
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1024
sl@0
   333
//! @SYMAPI			RFs
sl@0
   334
//! @SYMAuthor			Anton Grober 
sl@0
   335
//! @SYMCreationDate		02/10/2006 
sl@0
   336
//! @SYMTestCaseDesc		SetSubst() function test. Passing not mounted drive index as parameter and incorrect path as other parameter.
sl@0
   337
//!				Uses API elements: SetSubst().
sl@0
   338
//! @SYMTestActions		1. Call Connect().
sl@0
   339
//!				2. Call SetSubst() passing  descriptor with some incorrect path as first parameter and umounted drive number as second.
sl@0
   340
//!				3. Call Close().
sl@0
   341
//! @SYMTestStatus		Implemented
sl@0
   342
//! @SYMTestPriority		High
sl@0
   343
//! @SYMTestExpectedResults	Function SetSubst() returns KErrBadName.
sl@0
   344
//! @SYMTestType		CIT
sl@0
   345
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini 
sl@0
   346
		CREATE_OBJECT	RFs	RFs1
sl@0
   347
		COMMAND			RFs1	new		
sl@0
   348
		COMMAND			RFs1	Connect		
sl@0
   349
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-1024-001-FileSystemName_command03
sl@0
   350
		COMMAND			RFs1	DismountFileSystem		PBASE-F32-RFS-PublicApi-1024-001-DismountFileSystem_command04
sl@0
   351
		COMMAND	!Error=-28	RFs1	SetSubst		PBASE-F32-RFS-PublicApi-1024-001-SetSubst_command05
sl@0
   352
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-1024-001-MountFileSystem_command06
sl@0
   353
		COMMAND			RFs1	Close		
sl@0
   354
		COMMAND			RFs1	~		
sl@0
   355
	END_TEST_BLOCK
sl@0
   356
END_TESTCASE			PBASE-F32-RFS-PublicApi-1024
sl@0
   357
sl@0
   358
sl@0
   359
START_TESTCASE 			PBASE-F32-RFS-PublicApi-1031
sl@0
   360
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1031
sl@0
   361
//! @SYMAPI			RFs
sl@0
   362
//! @SYMAuthor			Anton Grober 
sl@0
   363
//! @SYMCreationDate		22/08/2006 
sl@0
   364
//! @SYMTestCaseDesc		CheckDisk() test that passes a non-mounted drive number as a parameter.
sl@0
   365
//!				Uses API elements: CheckDisk()
sl@0
   366
//! @SYMTestActions		1. Call Connect().
sl@0
   367
//!				2. Call CheckDisk() passing non-mounted drive number as a parameter.	
sl@0
   368
//!				3. Call Close().
sl@0
   369
//! @SYMTestStatus		Implemented
sl@0
   370
//! @SYMTestPriority		High
sl@0
   371
//! @SYMTestExpectedResults	Function CheckDisk() returns KErrNotReady.
sl@0
   372
//! @SYMTestType		CIT
sl@0
   373
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini 
sl@0
   374
		CREATE_OBJECT	RFs	RFs1
sl@0
   375
		COMMAND			RFs1	new		
sl@0
   376
		COMMAND			RFs1	Connect		
sl@0
   377
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-1031-001-FileSystemName_command03
sl@0
   378
		COMMAND			RFs1	DismountFileSystem		PBASE-F32-RFS-PublicApi-1031-001-DismountFileSystem_command04
sl@0
   379
		COMMAND	!Error=-18	RFs1	CheckDisk		PBASE-F32-RFS-PublicApi-1031-001-CheckDisk_command05
sl@0
   380
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-1031-001-MountFileSystem_command06
sl@0
   381
		COMMAND			RFs1	Close		
sl@0
   382
		COMMAND			RFs1	~		
sl@0
   383
	END_TEST_BLOCK
sl@0
   384
END_TESTCASE			PBASE-F32-RFS-PublicApi-1031
sl@0
   385
sl@0
   386
sl@0
   387
START_TESTCASE 			PBASE-F32-RFS-PublicApi-1033
sl@0
   388
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1033
sl@0
   389
//! @SYMAPI			RFs
sl@0
   390
//! @SYMAuthor			Anton Grober 
sl@0
   391
//! @SYMCreationDate		22/08/2006 
sl@0
   392
//! @SYMTestCaseDesc		ScanDrive() test that passes a non-mounted drive number as a parameter.
sl@0
   393
//!				Uses API elements: ScanDrive()
sl@0
   394
//! @SYMTestActions		1. Call Connect().
sl@0
   395
//!				2. Call ScanDrive() passing a non-mounted drive number as a parameter.
sl@0
   396
//!				3. Call Close().
sl@0
   397
//! @SYMTestStatus		Implemented
sl@0
   398
//! @SYMTestPriority		High
sl@0
   399
//! @SYMTestExpectedResults	Function ScanDrive() returns KErrNotReady.
sl@0
   400
//! @SYMTestType		CIT
sl@0
   401
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini 
sl@0
   402
		CREATE_OBJECT	RFs	RFs1
sl@0
   403
		COMMAND			RFs1	new		
sl@0
   404
		COMMAND			RFs1	Connect		
sl@0
   405
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-1033-001-FileSystemName_command03
sl@0
   406
		COMMAND			RFs1	DismountFileSystem		PBASE-F32-RFS-PublicApi-1033-001-DismountFileSystem_command04
sl@0
   407
		COMMAND	!Error=-18	RFs1	ScanDrive		PBASE-F32-RFS-PublicApi-1033-001-ScanDrive_command05
sl@0
   408
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-1033-001-MountFileSystem_command06
sl@0
   409
		COMMAND			RFs1	Close		
sl@0
   410
		COMMAND			RFs1	~		
sl@0
   411
	END_TEST_BLOCK
sl@0
   412
END_TESTCASE			PBASE-F32-RFS-PublicApi-1033
sl@0
   413
sl@0
   414
sl@0
   415
START_TESTCASE 			PBASE-F32-RFS-PublicApi-1037
sl@0
   416
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1037
sl@0
   417
//! @SYMAPI			RFs
sl@0
   418
//! @SYMAuthor			Anton Grober 
sl@0
   419
//! @SYMCreationDate		02/10/2006 
sl@0
   420
//! @SYMTestCaseDesc		LockDrive() function test. Passing not mounted drive index as parameter.
sl@0
   421
//!				Uses API elements: LockDrive().
sl@0
   422
//! @SYMTestActions		1. Call Connect().
sl@0
   423
//!				2. Call LockDrive() passing some nonmounted drive's number as drive number parameter.
sl@0
   424
//!				3. Call Close().
sl@0
   425
//! @SYMTestStatus		Implemented
sl@0
   426
//! @SYMTestPriority		High
sl@0
   427
//! @SYMTestExpectedResults	Function LockDrive() returns KErrNotReady.
sl@0
   428
//! @SYMTestType		CIT
sl@0
   429
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini 
sl@0
   430
		CREATE_OBJECT	RFs	RFs1
sl@0
   431
		COMMAND			RFs1	new		
sl@0
   432
		COMMAND			RFs1	Connect		
sl@0
   433
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-1037-001-FileSystemName_command03
sl@0
   434
		COMMAND			RFs1	DismountFileSystem		PBASE-F32-RFS-PublicApi-1037-001-DismountFileSystem_command04
sl@0
   435
		COMMAND	!Error=-18	RFs1	LockDrive		PBASE-F32-RFS-PublicApi-1037-001-LockDrive_command05
sl@0
   436
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-1037-001-MountFileSystem_command06
sl@0
   437
		COMMAND			RFs1	Close		
sl@0
   438
		COMMAND			RFs1	~		
sl@0
   439
	END_TEST_BLOCK
sl@0
   440
END_TESTCASE			PBASE-F32-RFS-PublicApi-1037
sl@0
   441
sl@0
   442
sl@0
   443
START_TESTCASE 			PBASE-F32-RFS-PublicApi-1043
sl@0
   444
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1043
sl@0
   445
//! @SYMAPI			RFs
sl@0
   446
//! @SYMAuthor			Anton Grober 
sl@0
   447
//! @SYMCreationDate		02/10/2006 
sl@0
   448
//! @SYMTestCaseDesc		ReserveDriveSpace() function test. Trying to reserve drive space again after getting access to it.
sl@0
   449
//!				Uses API elements: ReserveDriveSpace().
sl@0
   450
//! @SYMTestActions		1. Call Connect().
sl@0
   451
//!				2. Call ReserveDriveSpace() passing valid drive's number(RAM-drive's) as drive number parameter and 100(bytes) as amount of space to reserve.
sl@0
   452
//!				3. Call GetReserveAccess() with same drive's number(default drive's).
sl@0
   453
//!				4. Call ReserveDriveSpace() passing valid drive's number(RAM-drive's) as drive number parameter and 100 as amount of space to reserve.
sl@0
   454
//!				5. Call Close().
sl@0
   455
//! @SYMTestStatus		Implemented
sl@0
   456
//! @SYMTestPriority		High
sl@0
   457
//! @SYMTestExpectedResults	Function ReserveDriveSpace() returns KErrInUse.
sl@0
   458
//! @SYMTestType		CIT
sl@0
   459
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini 
sl@0
   460
		CREATE_OBJECT		RFs	RFs1
sl@0
   461
		COMMAND			RFs1	new		
sl@0
   462
		COMMAND			RFs1	Connect		
sl@0
   463
		COMMAND			RFs1	ReserveDriveSpace		PBASE-F32-RFS-PublicApi-1043-001-ReserveDriveSpace_command03
sl@0
   464
		COMMAND			RFs1	GetReserveAccess		PBASE-F32-RFS-PublicApi-1043-001-GetReserveAccess_command04
sl@0
   465
		COMMAND	!Error=-14	RFs1	ReserveDriveSpace		PBASE-F32-RFS-PublicApi-1043-001-ReserveDriveSpace_command05
sl@0
   466
		COMMAND			RFs1	Close		
sl@0
   467
		COMMAND			RFs1	~		
sl@0
   468
	END_TEST_BLOCK
sl@0
   469
END_TESTCASE			PBASE-F32-RFS-PublicApi-1043
sl@0
   470
sl@0
   471
sl@0
   472
START_TESTCASE 			PBASE-F32-RFS-PublicApi-1044
sl@0
   473
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1044
sl@0
   474
//! @SYMAPI			RFs
sl@0
   475
//! @SYMAuthor			Anton Grober 
sl@0
   476
//! @SYMCreationDate		02/10/2006 
sl@0
   477
//! @SYMTestCaseDesc		ReserveDriveSpace() function test. Trying to reserve too much drive space.
sl@0
   478
//!				Uses API elements: ReserveDriveSpace().
sl@0
   479
//! @SYMTestActions		1. Call Connect().
sl@0
   480
//!				2. Call ReserveDriveSpace() passing valid drive's number(RAM-drive') as drive number parameter and 10000000000(in bytes and must be too big) as amount of space to reserve.
sl@0
   481
//!				3. Call Close().
sl@0
   482
//! @SYMTestStatus		Implemented
sl@0
   483
//! @SYMTestPriority		High
sl@0
   484
//! @SYMTestExpectedResults	Function ReserveDriveSpace() returns KErrArgument
sl@0
   485
//! @SYMTestType		CIT
sl@0
   486
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini 
sl@0
   487
		CREATE_OBJECT	RFs	RFs1
sl@0
   488
		COMMAND			RFs1	new		
sl@0
   489
		COMMAND			RFs1	Connect		
sl@0
   490
		COMMAND	!Error=-6	RFs1	ReserveDriveSpace		PBASE-F32-RFS-PublicApi-1044-001-ReserveDriveSpace_command03
sl@0
   491
		COMMAND			RFs1	Close		
sl@0
   492
		COMMAND			RFs1	~		
sl@0
   493
	END_TEST_BLOCK
sl@0
   494
END_TESTCASE			PBASE-F32-RFS-PublicApi-1044
sl@0
   495
sl@0
   496
sl@0
   497
START_TESTCASE 			PBASE-F32-RFS-PublicApi-1045
sl@0
   498
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1045
sl@0
   499
//! @SYMAPI			RFs
sl@0
   500
//! @SYMAuthor			Anton Grober 
sl@0
   501
//! @SYMCreationDate		02/10/2006 
sl@0
   502
//! @SYMTestCaseDesc		GetReserveAccess() function test. Trying to get access without reserving any space before.
sl@0
   503
//!				Uses API elements: GetReserveAccess().
sl@0
   504
//! @SYMTestActions		1. Call Connect().
sl@0
   505
//!				2. Call GetReserveAccess() passing valid drive's number (RAM-drive') as drive number parameter.
sl@0
   506
//!				3. Call Close().
sl@0
   507
//! @SYMTestStatus		Implemented
sl@0
   508
//! @SYMTestPriority		High
sl@0
   509
//! @SYMTestExpectedResults	Function GetReserveAccess() returns KErrPremissionDenied.
sl@0
   510
//! @SYMTestType		CIT
sl@0
   511
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini 
sl@0
   512
		CREATE_OBJECT	RFs	RFs1
sl@0
   513
		COMMAND			RFs1	new		
sl@0
   514
		COMMAND			RFs1	Connect		
sl@0
   515
		COMMAND	!Error=-46	RFs1	GetReserveAccess		PBASE-F32-RFS-PublicApi-1045-001-GetReserveAccess_command03
sl@0
   516
		COMMAND			RFs1	Close		
sl@0
   517
		COMMAND			RFs1	~		
sl@0
   518
	END_TEST_BLOCK
sl@0
   519
END_TESTCASE			PBASE-F32-RFS-PublicApi-1045
sl@0
   520
sl@0
   521
sl@0
   522
START_TESTCASE 			PBASE-F32-RFS-PublicApi-1053
sl@0
   523
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1053
sl@0
   524
//! @SYMAPI			RFs
sl@0
   525
//! @SYMAuthor			Anton Grober 
sl@0
   526
//! @SYMCreationDate		22/08/2006 
sl@0
   527
//! @SYMTestCaseDesc		SetSubst() functions test. Passing existing path to folder as parameter. Using KDefaultDrive as drive parameter.
sl@0
   528
//!				Uses API elements: SetSubst().
sl@0
   529
//! @SYMTestActions		1. Call Connect().
sl@0
   530
//!				2. Call SetSubst() passing "\base\" as a first parameter. Testing with default drive.
sl@0
   531
//!				3. Call SetSubst() passing ""(empty descriptor) as a first parameter. This will unsubst the substed.
sl@0
   532
//!				4. Call Close().
sl@0
   533
//! @SYMTestStatus		Implemented
sl@0
   534
//! @SYMTestPriority		High
sl@0
   535
//! @SYMTestExpectedResults	Function SetSubst() returns KErrGeneral.
sl@0
   536
//! @SYMTestType		CIT
sl@0
   537
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini 
sl@0
   538
		CREATE_OBJECT	RFs	RFs1
sl@0
   539
		COMMAND			RFs1	new		
sl@0
   540
		COMMAND			RFs1	Connect		
sl@0
   541
		COMMAND	!Error=-2	RFs1	SetSubst	PBASE-F32-RFS-PublicApi-1053-001-SetSubst_command03
sl@0
   542
		COMMAND	!Error=-2	RFs1	SetSubst	PBASE-F32-RFS-PublicApi-1053-001-SetSubst_command04
sl@0
   543
		COMMAND			RFs1	Close		
sl@0
   544
		COMMAND			RFs1	~		
sl@0
   545
	END_TEST_BLOCK
sl@0
   546
END_TESTCASE 			PBASE-F32-RFS-PublicApi-1053
sl@0
   547
sl@0
   548
sl@0
   549
START_TESTCASE 			PBASE-F32-RFS-PublicApi-1058
sl@0
   550
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1058
sl@0
   551
//! @SYMAPI			RFs
sl@0
   552
//! @SYMAuthor			Anton Grober 
sl@0
   553
//! @SYMCreationDate		24/01/2007
sl@0
   554
//! @SYMTestCaseDesc		IsValidDrive() passing non-mounted drive as parameter.
sl@0
   555
//!				Uses API elements: IsValidDrive().
sl@0
   556
//! @SYMTestActions		1. Call IsValidDrive() passing non-mounted drive in range from EDriveC to EDriveZ.
sl@0
   557
//! @SYMTestStatus		Implemented
sl@0
   558
//! @SYMTestPriority		High
sl@0
   559
//! @SYMTestExpectedResults	Function IsValidDrive() returns ETrue.
sl@0
   560
//! @SYMTestType		CIT
sl@0
   561
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini 
sl@0
   562
		CREATE_OBJECT	RFs	RFs1
sl@0
   563
		COMMAND		RFs1	new		
sl@0
   564
		COMMAND		RFs1	Connect		
sl@0
   565
		COMMAND		RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-1058-001-FileSystemName_command03
sl@0
   566
		COMMAND		RFs1	DismountFileSystem		PBASE-F32-RFS-PublicApi-1058-001-DismountFileSystem_command04
sl@0
   567
		COMMAND		RFs1	IsValidDrive		PBASE-F32-RFS-PublicApi-1058-001-IsValidDrive_command05
sl@0
   568
		COMMAND		RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-1058-001-MountFileSystem_command06
sl@0
   569
		COMMAND		RFs1	Close		
sl@0
   570
		COMMAND		RFs1	~		
sl@0
   571
	END_TEST_BLOCK
sl@0
   572
END_TESTCASE 			PBASE-F32-RFS-PublicApi-1058
sl@0
   573
sl@0
   574
sl@0
   575
START_TESTCASE 			PBASE-F32-RFS-PublicApi-1062
sl@0
   576
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1062
sl@0
   577
//! @SYMAPI			RFs
sl@0
   578
//! @SYMAuthor			Anton Grober 
sl@0
   579
//! @SYMCreationDate		22/08/2006 
sl@0
   580
//! @SYMTestCaseDesc		ReleaseReserveAccess() test that uses the function without previous call to ReserveDriveSpace(). 
sl@0
   581
//!				Uses API elements: ReleaseReserveAccess()
sl@0
   582
//! @SYMTestActions		1. Call Connect().
sl@0
   583
//!				2. Call ReleaseReserveAccess() passing RAM-drive's path as path parameter.	
sl@0
   584
//!				3. Call Close().
sl@0
   585
//! @SYMTestStatus		Implemented
sl@0
   586
//! @SYMTestPriority		Critical
sl@0
   587
//! @SYMTestExpectedResults	Function ReleaseReserveAccess() returns KErrNone.
sl@0
   588
//! @SYMTestType		CIT
sl@0
   589
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini 
sl@0
   590
		CREATE_OBJECT	RFs	RFs1
sl@0
   591
		COMMAND		RFs1	new		
sl@0
   592
		COMMAND		RFs1	Connect		
sl@0
   593
		COMMAND		RFs1	ReleaseReserveAccess		PBASE-F32-RFS-PublicApi-1062-001-ReleaseReserveAccess_command03
sl@0
   594
		COMMAND		RFs1	Close		
sl@0
   595
		COMMAND		RFs1	~		
sl@0
   596
	END_TEST_BLOCK
sl@0
   597
END_TESTCASE			PBASE-F32-RFS-PublicApi-1062
sl@0
   598
sl@0
   599
sl@0
   600
START_TESTCASE			PBASE-F32-RFS-PublicApi-1063
sl@0
   601
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1063
sl@0
   602
//! @SYMAPI			RFs
sl@0
   603
//! @SYMAuthor			Anton Grober 
sl@0
   604
//! @SYMCreationDate		22/08/2006 
sl@0
   605
//! @SYMTestCaseDesc		SetSubst() test. Passing some non-mounted drive index as parameter. Drive() test passing substed drive as parameter.
sl@0
   606
//!				Uses API elements: SetSubst(), Drive()
sl@0
   607
//! @SYMTestActions		1. Call Connect().
sl@0
   608
//!				2. Call SetSubst() with path '\base\' and non-mounted drive as parameter.
sl@0
   609
//!				3. Call Drive() and get through TDriveInfo object through the reference using the same drive as parameter.
sl@0
   610
//!				4. Call SetSubst() with empty path to unsubst the drive we have substed.
sl@0
   611
//!				5. Call Close().
sl@0
   612
//! @SYMTestStatus		Implemented
sl@0
   613
//! @SYMTestPriority		Critical
sl@0
   614
//! @SYMTestExpectedResults	Function Drive() returns KErrNone and TDriveInfo object through the reference with KDriveAttSubsted attribute enabled.
sl@0
   615
//! @SYMTestType		CIT
sl@0
   616
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini 
sl@0
   617
		CREATE_OBJECT	RFs	RFs1
sl@0
   618
		COMMAND		RFs1	new		
sl@0
   619
		COMMAND		RFs1	Connect		
sl@0
   620
		COMMAND		RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-1063-001-FileSystemName_command03
sl@0
   621
		COMMAND		RFs1	DismountFileSystem		PBASE-F32-RFS-PublicApi-1063-001-DismountFileSystem_command04
sl@0
   622
		COMMAND		RFs1	SetSubst		PBASE-F32-RFS-PublicApi-1063-001-SetSubst_command05
sl@0
   623
		COMMAND		RFs1	Drive		PBASE-F32-RFS-PublicApi-1063-001-Drive_command06
sl@0
   624
		COMMAND		RFs1	SetSubst		PBASE-F32-RFS-PublicApi-1063-001-SetSubst_command07
sl@0
   625
		COMMAND		RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-1063-001-MountFileSystem_command08
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-1063
sl@0
   630
sl@0
   631
sl@0
   632
START_TESTCASE			PBASE-F32-RFS-PublicApi-1065
sl@0
   633
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1065
sl@0
   634
//! @SYMAPI			RFs
sl@0
   635
//! @SYMCreationDate		22/08/2006 
sl@0
   636
//! @SYMTestCaseDesc		ErasePassword() test. Passing non-mounted drive's number as parameter .
sl@0
   637
//!				Uses API elements: ErasePassword()
sl@0
   638
//! @SYMTestActions		1. Call Connect().
sl@0
   639
//!				2. Call ErasePassword() passing not mounted drive's number.	
sl@0
   640
//!				3. Call Close().
sl@0
   641
//! @SYMTestStatus		Implemented
sl@0
   642
//! @SYMTestPriority		High
sl@0
   643
//! @SYMTestExpectedResults	Function ErasePassword() returns KErrNotReady.
sl@0
   644
//! @SYMTestType		CIT
sl@0
   645
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-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			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-1065-001-FileSystemName_command03
sl@0
   650
		COMMAND			RFs1	DismountFileSystem		PBASE-F32-RFS-PublicApi-1065-001-DismountFileSystem_command04
sl@0
   651
		COMMAND	!Error=-18	RFs1	ErasePassword		PBASE-F32-RFS-PublicApi-1065-001-ErasePassword_command05
sl@0
   652
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-1065-001-MountFileSystem_command06
sl@0
   653
		COMMAND			RFs1	Close		
sl@0
   654
		COMMAND			RFs1	~		
sl@0
   655
	END_TEST_BLOCK
sl@0
   656
END_TESTCASE			PBASE-F32-RFS-PublicApi-1065
sl@0
   657
sl@0
   658
sl@0
   659
START_TESTCASE			PBASE-F32-RFS-PublicApi-1070
sl@0
   660
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1070
sl@0
   661
//! @SYMAPI			RFs
sl@0
   662
//! @SYMCreationDate		22/08/2006 
sl@0
   663
//! @SYMTestCaseDesc		ClearPassword() test. Passing non-mounted drive's number as parameter.
sl@0
   664
//!				Uses API elements: ClearPassword()
sl@0
   665
//! @SYMTestActions		1. Call Connect().
sl@0
   666
//!				2. Call ClearPassword() passing not mounted drive's number and 'test' as password.
sl@0
   667
//!				3. Call Close().
sl@0
   668
//! @SYMTestStatus		Implemented
sl@0
   669
//! @SYMTestPriority		High
sl@0
   670
//! @SYMTestExpectedResults	Function ClearPassword() returns KErrNotReady.
sl@0
   671
//! @SYMTestType		CIT
sl@0
   672
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini 
sl@0
   673
		CREATE_OBJECT	RFs	RFs1
sl@0
   674
		COMMAND			RFs1	new		
sl@0
   675
		COMMAND			RFs1	Connect		
sl@0
   676
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-1070-001-FileSystemName_command03
sl@0
   677
		COMMAND			RFs1	DismountFileSystem		PBASE-F32-RFS-PublicApi-1070-001-DismountFileSystem_command04
sl@0
   678
		COMMAND	!Error=-18	RFs1	ClearPassword		PBASE-F32-RFS-PublicApi-1070-001-ClearPassword_command05
sl@0
   679
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-1070-001-MountFileSystem_command06
sl@0
   680
		COMMAND			RFs1	Close		
sl@0
   681
		COMMAND			RFs1	~		
sl@0
   682
	END_TEST_BLOCK
sl@0
   683
END_TESTCASE			PBASE-F32-RFS-PublicApi-1070
sl@0
   684
sl@0
   685
sl@0
   686
START_TESTCASE			PBASE-F32-RFS-PublicApi-1075
sl@0
   687
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1075
sl@0
   688
//! @SYMAPI			RFs
sl@0
   689
//! @SYMCreationDate		22/08/2006 
sl@0
   690
//! @SYMTestCaseDesc		UnlockDrive() test. Passing non-mounted drive's number as parameter.
sl@0
   691
//!				Uses API elements: UnlockDrive()
sl@0
   692
//! @SYMTestActions		1. Call Connect().
sl@0
   693
//!				2. Call UnlockDrive() passing not mounted drive's number and 'test' as password.
sl@0
   694
//!				3. Call Close().
sl@0
   695
//! @SYMTestStatus		Implemented
sl@0
   696
//! @SYMTestPriority		High
sl@0
   697
//! @SYMTestExpectedResults	Function UnlockDrive() returns KErrNotReady.
sl@0
   698
//! @SYMTestType		CIT
sl@0
   699
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini 
sl@0
   700
		CREATE_OBJECT	RFs	RFs1
sl@0
   701
		COMMAND			RFs1	new		
sl@0
   702
		COMMAND			RFs1	Connect		
sl@0
   703
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-1075-001-FileSystemName_command03
sl@0
   704
		COMMAND			RFs1	DismountFileSystem		PBASE-F32-RFS-PublicApi-1075-001-DismountFileSystem_command04
sl@0
   705
		COMMAND	!Error=-18	RFs1	UnlockDrive		PBASE-F32-RFS-PublicApi-1075-001-UnlockDrive_command05
sl@0
   706
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-1075-001-MountFileSystem_command06
sl@0
   707
		COMMAND			RFs1	Close		
sl@0
   708
		COMMAND			RFs1	~		
sl@0
   709
	END_TEST_BLOCK
sl@0
   710
END_TESTCASE			PBASE-F32-RFS-PublicApi-1075
sl@0
   711
sl@0
   712
sl@0
   713
START_TESTCASE			PBASE-F32-RFS-PublicApi-1078
sl@0
   714
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1078
sl@0
   715
//! @SYMAPI			RFs
sl@0
   716
//! @SYMCreationDate		08/02/2007 
sl@0
   717
//! @SYMTestCaseDesc		ReserveDriveSpace() test. Testing with non-mounted drive.
sl@0
   718
//!				Uses API elements: ReserveDriveSpace()
sl@0
   719
//! @SYMTestActions		1. Call Connect().
sl@0
   720
//!				2. Call ReserveDriveSpace() passing non-mounted drive's number and 100(bytes) to reserve.	
sl@0
   721
//!				3. Call Close().
sl@0
   722
//! @SYMTestStatus		Implemented
sl@0
   723
//! @SYMTestPriority		High
sl@0
   724
//! @SYMTestExpectedResults	Function ReserveDriveSpace() returns KErrNotReady.
sl@0
   725
//! @SYMTestType		CIT
sl@0
   726
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini 
sl@0
   727
		CREATE_OBJECT	RFs	RFs1
sl@0
   728
		COMMAND			RFs1	new		
sl@0
   729
		COMMAND			RFs1	Connect		
sl@0
   730
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-1078-001-FileSystemName_command03
sl@0
   731
		COMMAND			RFs1	DismountFileSystem		PBASE-F32-RFS-PublicApi-1078-001-DismountFileSystem_command04
sl@0
   732
		COMMAND	!Error=-18	RFs1	ReserveDriveSpace		PBASE-F32-RFS-PublicApi-1078-001-ReserveDriveSpace_command05
sl@0
   733
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-1078-001-MountFileSystem_command06
sl@0
   734
		COMMAND			RFs1	Close		
sl@0
   735
		COMMAND			RFs1	~		
sl@0
   736
	END_TEST_BLOCK
sl@0
   737
END_TESTCASE			PBASE-F32-RFS-PublicApi-1078
sl@0
   738
sl@0
   739
sl@0
   740
START_TESTCASE			PBASE-F32-RFS-PublicApi-1079
sl@0
   741
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1079
sl@0
   742
//! @SYMAPI			RFs
sl@0
   743
//! @SYMCreationDate		08/02/2007 
sl@0
   744
//! @SYMTestCaseDesc		GetReserveAccess() test. Testing with non-mounted drive.
sl@0
   745
//!				Uses API elements: GetReserveAccess()
sl@0
   746
//! @SYMTestActions		1. Call Connect().
sl@0
   747
//!				2. Call GetReserveAccess() passing non-mounted drive's number.	
sl@0
   748
//!				3. Call Close().
sl@0
   749
//! @SYMTestStatus		Implemented
sl@0
   750
//! @SYMTestPriority		High
sl@0
   751
//! @SYMTestExpectedResults	Function GetReserveAccess() returns KErrPermissionDenied.
sl@0
   752
//! @SYMTestType		CIT
sl@0
   753
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini 
sl@0
   754
		CREATE_OBJECT	RFs	RFs1
sl@0
   755
		COMMAND			RFs1	new		
sl@0
   756
		COMMAND			RFs1	Connect		
sl@0
   757
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-1079-001-FileSystemName_command03
sl@0
   758
		COMMAND			RFs1	DismountFileSystem		PBASE-F32-RFS-PublicApi-1079-001-DismountFileSystem_command04
sl@0
   759
		COMMAND	!Error=-46	RFs1	GetReserveAccess		PBASE-F32-RFS-PublicApi-1079-001-GetReserveAccess_command05
sl@0
   760
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-1079-001-MountFileSystem_command06
sl@0
   761
		COMMAND			RFs1	Close		
sl@0
   762
		COMMAND			RFs1	~		
sl@0
   763
	END_TEST_BLOCK
sl@0
   764
END_TESTCASE			PBASE-F32-RFS-PublicApi-1079
sl@0
   765
sl@0
   766
sl@0
   767
START_TESTCASE			PBASE-F32-RFS-PublicApi-1080
sl@0
   768
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1080
sl@0
   769
//! @SYMAPI			RFs
sl@0
   770
//! @SYMCreationDate		08/02/2007 
sl@0
   771
//! @SYMTestCaseDesc		ReleaseReserveAccess() test.Testing with non-mounted drive.
sl@0
   772
//!				Uses API elements: ReleaseReserveAccess()
sl@0
   773
//! @SYMTestActions		1. Call Connect().
sl@0
   774
//!				2. Call ReleaseReserveAccess() passing non-mounted drive's number.	
sl@0
   775
//!				3. Call Close().
sl@0
   776
//! @SYMTestStatus		Implemented
sl@0
   777
//! @SYMTestPriority		High
sl@0
   778
//! @SYMTestExpectedResults	Function ReleaseReserveAccess() returns KErrNone.
sl@0
   779
//! @SYMTestType		CIT
sl@0
   780
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini 
sl@0
   781
		CREATE_OBJECT	RFs	RFs1
sl@0
   782
		COMMAND		RFs1	new		
sl@0
   783
		COMMAND		RFs1	Connect		
sl@0
   784
		COMMAND		RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-1080-001-FileSystemName_command03
sl@0
   785
		COMMAND		RFs1	DismountFileSystem		PBASE-F32-RFS-PublicApi-1080-001-DismountFileSystem_command04
sl@0
   786
		COMMAND		RFs1	ReleaseReserveAccess		PBASE-F32-RFS-PublicApi-1080-001-ReleaseReserveAccess_command05
sl@0
   787
		COMMAND		RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-1080-001-MountFileSystem_command06
sl@0
   788
		COMMAND		RFs1	Close		
sl@0
   789
		COMMAND		RFs1	~		
sl@0
   790
	END_TEST_BLOCK
sl@0
   791
END_TESTCASE			PBASE-F32-RFS-PublicApi-1080
sl@0
   792
sl@0
   793
START_TESTCASE 			PBASE-F32-RFS-PublicApi-1027
sl@0
   794
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1027
sl@0
   795
//! @SYMAPI			RFs
sl@0
   796
//! @SYMAuthor			Anton Grober 
sl@0
   797
//! @SYMCreationDate		02/10/2006 
sl@0
   798
//! @SYMTestCaseDesc		GetMediaSerialNumber() function test. Passing substed drive's index as parameter.
sl@0
   799
//!				Uses API elements: GetMediaSerialNumber().
sl@0
   800
//! @SYMTestActions		1. Call Connect().
sl@0
   801
//!				2. Call Subst() passing empty drive suitable for substing as drive number and "<DRIVE>:\base\" as path where <DRIVE> is a test drive.
sl@0
   802
//!				3. Call GetMediaSerialNumber() passing  descriptor reference as first parameter and substed drive number as second.
sl@0
   803
//!				4. Call Subst passing empty drive suitable for substing as drive number and ""(empty descriptor) to unsubst drive.
sl@0
   804
//!				5. Call Close().
sl@0
   805
//! @SYMTestStatus		Implemented
sl@0
   806
//! @SYMTestPriority		High
sl@0
   807
//! @SYMTestExpectedResults	Function GetMediaSerialNumber() returns KErrNotSupported
sl@0
   808
//! @SYMTestType		CIT
sl@0
   809
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini 
sl@0
   810
		CREATE_OBJECT	RFs	RFs1
sl@0
   811
		COMMAND			RFs1	new		
sl@0
   812
		COMMAND			RFs1	Connect		
sl@0
   813
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-1027-001-FileSystemName_command03
sl@0
   814
		COMMAND			RFs1	DismountFileSystem		PBASE-F32-RFS-PublicApi-1027-001-DismountFileSystem_command04
sl@0
   815
		COMMAND			RFs1	SetSubst		PBASE-F32-RFS-PublicApi-1027-001-SetSubst_command05
sl@0
   816
		COMMAND	!Error=-5	RFs1	GetMediaSerialNumber		PBASE-F32-RFS-PublicApi-1027-001-GetMediaSerialNumber_command06
sl@0
   817
		COMMAND			RFs1	SetSubst		PBASE-F32-RFS-PublicApi-1027-001-SetSubst_command07
sl@0
   818
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-1027-001-MountFileSystem_command08
sl@0
   819
		COMMAND			RFs1	Close		
sl@0
   820
		COMMAND			RFs1	~		
sl@0
   821
	END_TEST_BLOCK
sl@0
   822
END_TESTCASE			PBASE-F32-RFS-PublicApi-1027
sl@0
   823
sl@0
   824
START_TESTCASE 			PBASE-F32-RFS-PublicApi-1086
sl@0
   825
//! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1086
sl@0
   826
//! @SYMAPI			RFs
sl@0
   827
//! @SYMTestCaseDesc		Function VolumeIOParam() test with non mounted drive.
sl@0
   828
//!				Uses API elements: VolumeIOParam().
sl@0
   829
//! @SYMTestActions		1. Call Connect() method.
sl@0
   830
//!				2. Call VolumeIOParam() passing the drive number where is not mounted file system as argument.
sl@0
   831
//!				3. Call Close() method.
sl@0
   832
//! @SYMTestStatus		Implemented
sl@0
   833
//! @SYMTestPriority		Critical
sl@0
   834
//! @SYMTestExpectedResults	Return KErrNotReady (-18).
sl@0
   835
//! @SYMTestType		CIT
sl@0
   836
	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini 
sl@0
   837
		CREATE_OBJECT	RFs	RFs1
sl@0
   838
		COMMAND			RFs1	new		
sl@0
   839
		COMMAND			RFs1	Connect		
sl@0
   840
		COMMAND			RFs1	FileSystemName		PBASE-F32-RFS-PublicApi-1086-001-FileSystemName_command03
sl@0
   841
		COMMAND			RFs1	DismountFileSystem	PBASE-F32-RFS-PublicApi-1086-001-DismountFileSystem_command04
sl@0
   842
		COMMAND	!Error=-18	RFs1	VolumeIOParam		PBASE-F32-RFS-PublicApi-1086-001-VolumeIOParam_command05
sl@0
   843
		COMMAND			RFs1	MountFileSystem		PBASE-F32-RFS-PublicApi-1086-001-MountFileSystem_command06
sl@0
   844
		COMMAND			RFs1	Close		
sl@0
   845
		COMMAND			RFs1	~		
sl@0
   846
	END_TEST_BLOCK
sl@0
   847
END_TESTCASE 			PBASE-F32-RFS-PublicApi-1086
sl@0
   848
sl@0
   849