os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-File-PublicApi-NAND.script
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-File-PublicApi-NAND.script	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,100 @@
     1.4 +//
     1.5 +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +// All rights reserved.
     1.7 +// This component and the accompanying materials are made available
     1.8 +// under the terms of "Eclipse Public License v1.0"
     1.9 +// which accompanies this distribution, and is available
    1.10 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +//
    1.12 +// Initial Contributors:
    1.13 +// Nokia Corporation - initial contribution.
    1.14 +//
    1.15 +// Contributors:
    1.16 +//
    1.17 +// Description: 
    1.18 +//
    1.19 +//! 	@file
    1.20 +//! 	@SYMTestSuiteName		PBASE-F32-File-PublicApi-NAND
    1.21 +//!	@SYMScriptTestEnvironment	This test script requires a Pagged ROM.
    1.22 +//!                             So tests has to be run on Pagged ROM.This tests is good tests only on H/w on which the memory is pagaed.
    1.23 +//!                             On emulator these tests will not return proper value/so it can be ignored.
    1.24 +//! 	@SYMScriptCreationDate		27/08/2007
    1.25 +//! 	@SYMScriptDescription		The test script contains API tests for the following functions of RFile class:
    1.26 +//!	TInt BlockMap(SBlockMapInfo &aInfo, TInt64 &aStartPos, TInt64 aEndPos=-1, TInt aBlockMapusage=EBlockMapUsagePaging) const;
    1.27 +
    1.28 +
    1.29 +LOAD_SUITE	T_SfSrv
    1.30 +DELAY		1000
    1.31 +
    1.32 +
    1.33 +//
    1.34 +// BlockMap
    1.35 +//
    1.36 +
    1.37 +
    1.38 +START_TESTCASE 			PBASE-F32-File-PublicApi-6001
    1.39 +//! @SYMTestCaseID		PBASE-F32-File-PublicApi-6001
    1.40 +//! @SYMAPI			RFile
    1.41 +//! @SYMTestCaseDesc		Function BlockMap() test, replace a file and then call BlockMap() on it to get the block/cluster Information
    1.42 +//!				Uses API elements: Open(), BlockMap().
    1.43 +//! @SYMTestActions		1. Create RFs session.
    1.44 +//!				2. Call RFile::Replace() 
    1.45 +//!				4. Call RFile::BlockMap().
    1.46 +//!				5. Close RFile.
    1.47 +//!				6. Delete file.
    1.48 +//!				7. Close RFs.
    1.49 +//!
    1.50 +//! @SYMTestStatus		Implemented
    1.51 +//! @SYMTestPriority		Critical
    1.52 +//! @SYMTestExpectedResults	The tests returns KErrNotSupported on the Rom which is unpaged. On the pagged rom this tests will return 
    1.53 +//!  KErrCompletion if the end of the file is reached.                     
    1.54 +//!
    1.55 +//! @SYMTestType		CIT
    1.56 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-File-PublicApi.ini
    1.57 +		CREATE_OBJECT	RFs	RFs1
    1.58 +		CREATE_OBJECT	RFile	file
    1.59 +		COMMAND			RFs1	new		
    1.60 +		COMMAND			RFs1	Connect		
    1.61 +		COMMAND			file	new		
    1.62 +		COMMAND			file	Open		PBASE-F32-File-PublicApi-6001-001-Replace_command003
    1.63 +		COMMAND		!Error=-17	file	BlockMap PBASE-F32-File-PublicApi-6001-001-BlockMap_command003
    1.64 +		COMMAND			file	Close		
    1.65 +		COMMAND			file	~	
    1.66 +		COMMAND			RFs1	~		
    1.67 +	END_TEST_BLOCK	
    1.68 +END_TESTCASE 		PBASE-F32-File-PublicApi-6001
    1.69 +
    1.70 +
    1.71 +START_TESTCASE 			PBASE-F32-File-PublicApi-6002
    1.72 +//! @SYMTestCaseID		PBASE-F32-File-PublicApi-6002
    1.73 +//! @SYMAPI			RFile
    1.74 +//! @SYMTestCaseDesc		Function BlockMap() test. Call BlockMap with Usage ETestDebug
    1.75 +//!				Uses API elements: Open(), BlockMap().
    1.76 +//! @SYMTestActions		1. Create RFs session.
    1.77 +//!				2. Call RFile::Replace() to create file tc0002 with EFileWrite 
    1.78 +//!				4. Call RFile::BlockMap() passing EBlockMapUsagePaging for usage, 0 for startPos.
    1.79 +//!				5. Close RFile.
    1.80 +//!				6. Delete file.
    1.81 +//!				7. Close RFs.
    1.82 +//!
    1.83 +//! @SYMTestStatus		Implemented
    1.84 +//! @SYMTestPriority		Critical
    1.85 +//! @SYMTestExpectedResults	The tests returns KErrNotSupported on the Rom which is unpaged. On the pagged rom this tests will return 
    1.86 +//!  KErrCompletion if the end of the file is reached.
    1.87 +//!
    1.88 +//! @SYMTestType		CIT
    1.89 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-File-PublicApi.ini
    1.90 +		CREATE_OBJECT	RFs	RFs1
    1.91 +		CREATE_OBJECT	RFile	file
    1.92 +		COMMAND			RFs1	new		
    1.93 +		COMMAND			RFs1	Connect		
    1.94 +		COMMAND			file	new		
    1.95 +		COMMAND			file	Open	PBASE-F32-File-PublicApi-6002-001-Replace_command003
    1.96 +		COMMAND	!Error=-17	file	BlockMap	PBASE-F32-File-PublicApi-6002-001-BlockMap_command004
    1.97 +		COMMAND			file	Close		
    1.98 +		COMMAND			file	~	
    1.99 +		COMMAND			RFs1	~		
   1.100 +	END_TEST_BLOCK	
   1.101 +END_TESTCASE 		PBASE-F32-File-PublicApi-6002
   1.102 +
   1.103 +