baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-RFS-PublicApi-OS.script
changeset 0 a41df078684a
child 15 4122176ea935
equal deleted inserted replaced
-1:000000000000 0:a41df078684a
       
     1 //
       
     2 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of the License "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description:
       
    15 //
       
    16 //! 	@file
       
    17 //! 	@SYMTestSuiteName		PBASE-F32-RFS-PublicApi-OS
       
    18 //!	@SYMScriptTestEnvironment	This test script requires a basic ROM.
       
    19 //! 	@SYMScriptAuthor 		Anton Grober, Oleg Kunetsov
       
    20 //! 	@SYMScriptDescription		The test script contains API tests for RFs functions that perform operations on a C-drive.
       
    21 
       
    22 LOAD_SUITE	T_Sfsrv
       
    23 
       
    24 
       
    25 START_TESTCASE 			PBASE-F32-RFS-PublicApi-1036
       
    26 //! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1036
       
    27 //! @SYMAPI			RFs
       
    28 //! @SYMAuthor			Anton Grober 
       
    29 //! @SYMCreationDate		02/10/2006 
       
    30 //! @SYMTestCaseDesc		LockDrive() function test. Passing C drive index as parameter.
       
    31 //!				Uses API elements: LockDrive().
       
    32 //! @SYMTestActions		1. Call Connect().
       
    33 //!				2. Call LockDrive()  passing C drive as drive number.
       
    34 //!				3. Call Close().
       
    35 //! @SYMTestStatus		Implemented
       
    36 //! @SYMTestPriority		High
       
    37 //! @SYMTestExpectedResults	Function LockDrive() returns KErrNotSupported.
       
    38 //! @SYMTestType		CIT
       
    39 	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-PublicApi-OS.ini 
       
    40 		CREATE_OBJECT	RFs	RFs1
       
    41 		COMMAND			RFs1	new		
       
    42 		COMMAND			RFs1	Connect
       
    43 		COMMAND	!Error=-5	RFs1	LockDrive		PBASE-F32-RFS-PublicApi-1036-001-LockDrive_command03
       
    44 		COMMAND			RFs1	Close		
       
    45 		COMMAND			RFs1	~		
       
    46 	END_TEST_BLOCK	
       
    47 END_TESTCASE			PBASE-F32-RFS-PublicApi-1036
       
    48 
       
    49 
       
    50 START_TESTCASE 			PBASE-F32-RFS-PublicApi-1061
       
    51 //! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1061
       
    52 //! @SYMAPI			RFs
       
    53 //! @SYMAuthor			Anton Grober 
       
    54 //! @SYMCreationDate		22/08/2006 
       
    55 //! @SYMTestCaseDesc		ScanDrive() test. Passing C drive's path as parameter.
       
    56 //!				Uses API elements: ScanDrive()
       
    57 //! @SYMTestActions		1. Call Connect().
       
    58 //!				2. Call ScanDrive() passing C drive's path as path parameter.	
       
    59 //!				3. Call Close().
       
    60 //! @SYMTestStatus		Implemented
       
    61 //! @SYMTestPriority		High
       
    62 //! @SYMTestExpectedResults	Function ScanDrive() returns KErrInUse.
       
    63 //! @SYMTestType		CIT
       
    64 	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-PublicApi-OS.ini 
       
    65 		CREATE_OBJECT	RFs	RFs1
       
    66 		COMMAND			RFs1	new		
       
    67 		COMMAND			RFs1	Connect
       
    68 		COMMAND	!Error=-14	RFs1	ScanDrive		PBASE-F32-RFS-PublicApi-1061-001-ScanDrive_command03
       
    69 		COMMAND			RFs1	Close		
       
    70 		COMMAND			RFs1	~		
       
    71 	END_TEST_BLOCK	
       
    72 END_TESTCASE			PBASE-F32-RFS-PublicApi-1061
       
    73 
       
    74 
       
    75 START_TESTCASE 			PBASE-F32-RFS-PublicApi-3010
       
    76 //! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-3010
       
    77 //! @SYMAPI			RFs
       
    78 //! @SYMTestCaseDesc		Function ResourceCountMarkStart(), ResourceCount(), ResourceCountMarkEnd() test.
       
    79 //!				Uses API elements: ResourceCountMarkStart(), ResourceCount(), ResourceCountMarkEnd().
       
    80 //! @SYMTestActions		1. Call Connect().
       
    81 //!				2. Call ResourceCountMarkStart().
       
    82 //!				3. Call RFile's Open() and pass "\base\T_Sfsrv\test.txt" as parameter.
       
    83 //!				4. Call ResourceCount() and check that it returns 1.
       
    84 //!				5. Call CloseFile().
       
    85 //!				6. Call ResourceCountMarkEnd().
       
    86 //!				7. Call Close().
       
    87 //! @SYMTestStatus		Implemented
       
    88 //! @SYMTestPriority		Critical
       
    89 //! @SYMTestExpectedResults	Resource count returns correct number of opened resources.
       
    90 //! @SYMTestType		CIT
       
    91 	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-PublicApi-OS.ini 
       
    92 		CREATE_OBJECT	RFs	RFs1
       
    93 		CREATE_OBJECT	RFile	RFile1
       
    94 		COMMAND		RFs1	new		
       
    95 		COMMAND		RFs1	Connect
       
    96 		COMMAND		RFs1	ResourceCountMarkStart
       
    97 		COMMAND		RFile1	new		
       
    98 		COMMAND		RFile1	Open		PBASE-F32-RFS-PublicApi-3010-001-Open_command06
       
    99 		COMMAND		RFs1	ResourceCount		PBASE-F32-RFS-PublicApi-3010-001-ResourceCount_command08
       
   100 		COMMAND		RFile1	Close		
       
   101 		COMMAND		RFile1	~		
       
   102 		COMMAND		RFs1	ResourceCountMarkEnd
       
   103 		COMMAND		RFs1	Close		
       
   104 		COMMAND		RFs1	~		
       
   105 	END_TEST_BLOCK	
       
   106 END_TESTCASE 			PBASE-F32-RFS-PublicApi-3010
       
   107 
       
   108 
       
   109 START_TESTCASE 			PBASE-F32-RFS-PublicApi-3122
       
   110 //! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-3122
       
   111 //! @SYMAPI			RFs
       
   112 //! @SYMTestCaseDesc		Function ResourceCountMarkEnd() test, where number of opened resources is not equals to the number of closed resources.
       
   113 //!				Uses API elements: Open(), ResourceCountMarkEnd().
       
   114 //! @SYMTestActions		1. Call Connect().
       
   115 //!				2. Call ResourceCountMarkStart().
       
   116 //!				3. Call RFile's Open() passing "\base\T_Sfsrv\test.txt" as parameter and EFileRead as the mode in which the file is opened.
       
   117 //!				4. Call ResourceCountMarkEnd().
       
   118 //!				5. Call Close() for opened file.
       
   119 //!				6. Call Close().
       
   120 //! @SYMTestStatus		Implemented
       
   121 //! @SYMTestPriority		High
       
   122 //! @SYMTestExpectedResults	Panic 2 (CSessionFs)
       
   123 //! @SYMTestType		CIT
       
   124 	START_TEST_BLOCK	100	T_Sfsrv	\base\PBASE-F32-RFS-PublicApi-OS.ini 
       
   125 		CREATE_OBJECT	RFs	RFs1
       
   126 		CREATE_OBJECT	RFile	RFile1
       
   127 		COMMAND		RFs1	new		
       
   128 		COMMAND		RFs1	Connect
       
   129 		COMMAND		RFs1	ResourceCountMarkStart
       
   130 		COMMAND		RFile1	new	
       
   131 		COMMAND		RFile1	Open		PBASE-F32-RFS-PublicApi-3122-001-Open_command06
       
   132 		COMMAND		RFs1	ResourceCountMarkEnd
       
   133 		COMMAND		RFile1	Close		
       
   134 		COMMAND		RFile1	~		
       
   135 		COMMAND		RFs1	Close		
       
   136 		COMMAND		RFs1	~		
       
   137 	END_TEST_BLOCK	!PanicCode=2 !PanicString="CSessionFs"
       
   138 END_TESTCASE 			PBASE-F32-RFS-PublicApi-3122
       
   139 
       
   140 START_TESTCASE 			PBASE-F32-RFS-PublicApi-1088
       
   141 //! @SYMTestCaseID		PBASE-F32-RFS-PublicApi-1088
       
   142 //! @SYMAPI			RFs
       
   143 //! @SYMTestCaseDesc		Setting SystemDrive with various drives using SetSystemDrive()
       
   144 //!				Uses API elements: SetSystemDrive().
       
   145 //! @SYMTestActions		1. Call Connect() method.
       
   146 //!				2. Call SetSystemDrive() passing the default drive number as argument.
       
   147 //!				3. Call SetSystemDrive() passing different drive letters (should all fail with KErrAlreadyexists)
       
   148 //!				4. Call Close() method.
       
   149 //! @SYMTestStatus		Implemented
       
   150 //! @SYMTestPriority		Critical
       
   151 //! @SYMTestExpectedResults	RFs::SetSystemDrive() is supposed to be called only once when the device boots.It will set with the valid drive for the first time.
       
   152 //!                         The subsequent call to SetSystemDrive() will result in -11(KErrAlready Exists). If the drive attribute is not valid
       
   153 //!                         it results in KernelPanic. Without TCB capability will return KErrPermissionDenied (-46)
       
   154 //! @SYMTestType		CIT
       
   155 	START_TEST_BLOCK	100	T_Sfsrv 	\base\PBASE-F32-RFS-PublicApi-OS.ini 
       
   156 		CREATE_OBJECT	RFs	RFs1
       
   157 		COMMAND			RFs1	new		
       
   158 		COMMAND			RFs1	Connect
       
   159 		COMMAND			RFs1	SetSystemDrive		PBASE-F32-RFS-PublicApi-1088-001-SetSystemDrive_command03
       
   160 		COMMAND	!Error=-11	RFs1	SetSystemDrive		PBASE-F32-RFS-PublicApi-1088-001-SetSystemDrive_0
       
   161 		COMMAND	!Error=-11	RFs1	SetSystemDrive		PBASE-F32-RFS-PublicApi-1088-001-SetSystemDrive_1
       
   162 		COMMAND	!Error=-11	RFs1	SetSystemDrive		PBASE-F32-RFS-PublicApi-1088-001-SetSystemDrive_2
       
   163 		COMMAND	!Error=-11	RFs1	SetSystemDrive		PBASE-F32-RFS-PublicApi-1088-001-SetSystemDrive_3
       
   164 		COMMAND	!Error=-11	RFs1	SetSystemDrive		PBASE-F32-RFS-PublicApi-1088-001-SetSystemDrive_4
       
   165 		COMMAND	!Error=-11	RFs1	SetSystemDrive		PBASE-F32-RFS-PublicApi-1088-001-SetSystemDrive_5
       
   166 		COMMAND	!Error=-11	RFs1	SetSystemDrive		PBASE-F32-RFS-PublicApi-1088-001-SetSystemDrive_6
       
   167 		COMMAND	!Error=-11	RFs1	SetSystemDrive		PBASE-F32-RFS-PublicApi-1088-001-SetSystemDrive_7
       
   168 		COMMAND	!Error=-11	RFs1	SetSystemDrive		PBASE-F32-RFS-PublicApi-1088-001-SetSystemDrive_8
       
   169 		COMMAND	!Error=-11	RFs1	SetSystemDrive		PBASE-F32-RFS-PublicApi-1088-001-SetSystemDrive_9
       
   170 		COMMAND	!Error=-11	RFs1	SetSystemDrive		PBASE-F32-RFS-PublicApi-1088-001-SetSystemDrive_10
       
   171 		COMMAND	!Error=-11	RFs1	SetSystemDrive		PBASE-F32-RFS-PublicApi-1088-001-SetSystemDrive_11
       
   172 		COMMAND	!Error=-11	RFs1	SetSystemDrive		PBASE-F32-RFS-PublicApi-1088-001-SetSystemDrive_12
       
   173 		COMMAND	!Error=-11	RFs1	SetSystemDrive		PBASE-F32-RFS-PublicApi-1088-001-SetSystemDrive_13
       
   174 		COMMAND	!Error=-11	RFs1	SetSystemDrive		PBASE-F32-RFS-PublicApi-1088-001-SetSystemDrive_14
       
   175 		COMMAND	!Error=-11	RFs1	SetSystemDrive		PBASE-F32-RFS-PublicApi-1088-001-SetSystemDrive_15
       
   176 		COMMAND	!Error=-11	RFs1	SetSystemDrive		PBASE-F32-RFS-PublicApi-1088-001-SetSystemDrive_16
       
   177 		COMMAND	!Error=-11	RFs1	SetSystemDrive		PBASE-F32-RFS-PublicApi-1088-001-SetSystemDrive_17
       
   178 		COMMAND	!Error=-11	RFs1	SetSystemDrive		PBASE-F32-RFS-PublicApi-1088-001-SetSystemDrive_18
       
   179 		COMMAND	!Error=-11	RFs1	SetSystemDrive		PBASE-F32-RFS-PublicApi-1088-001-SetSystemDrive_19
       
   180 		COMMAND	!Error=-11	RFs1	SetSystemDrive		PBASE-F32-RFS-PublicApi-1088-001-SetSystemDrive_20
       
   181 		COMMAND	!Error=-11	RFs1	SetSystemDrive		PBASE-F32-RFS-PublicApi-1088-001-SetSystemDrive_21
       
   182 		COMMAND	!Error=-11	RFs1	SetSystemDrive		PBASE-F32-RFS-PublicApi-1088-001-SetSystemDrive_22
       
   183 		COMMAND	!Error=-11	RFs1	SetSystemDrive		PBASE-F32-RFS-PublicApi-1088-001-SetSystemDrive_23
       
   184 		COMMAND	!Error=-11	RFs1	SetSystemDrive		PBASE-F32-RFS-PublicApi-1088-001-SetSystemDrive_24
       
   185 		COMMAND	!Error=-11	RFs1	SetSystemDrive		PBASE-F32-RFS-PublicApi-1088-001-SetSystemDrive_25
       
   186 		COMMAND			RFs1	Close		
       
   187 		COMMAND			RFs1	~		
       
   188 	END_TEST_BLOCK	
       
   189 END_TESTCASE 			PBASE-F32-RFS-PublicApi-1088
       
   190