baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-Format-PublicApi-ROM.script
author John Imhofe
Mon, 19 Oct 2009 15:55:17 +0100
changeset 0 a41df078684a
child 15 4122176ea935
permissions -rw-r--r--
Convert Kernelhwsrv package from SFL to EPL kernel\eka\compsupp is subject to the ARM EABI LICENSE userlibandfileserver\fatfilenameconversionplugins\unicodeTables is subject to the Unicode license kernel\eka\kernel\zlib is subject to the zlib license

//
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of the License "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//
//! 	@file
//! 	@SYMTestSuiteName		pbase-f32-sfsrv-publicapi-rom
//!	@SYMScriptTestEnvironment	This test script requires a basic ROM.
//! 	@SYMScriptAuthor 		Alvar Udras, Runno Sgirka
//! 	@SYMScriptDescription		The test script contains API tests for the following functions of RFormat class:
//!	TInt Open(RFs &aFs, const TDesC &aName, TUint aFormatMode, TInt &aCount);
//!	void Close();

LOAD_SUITE	t_sfsrv
DELAY 5000


START_TESTCASE 			PBASE-F32-Format-PublicApi-1002
//! @SYMTestCaseID		PBASE-F32-Format-PublicApi-1002
//! @SYMAPI			RFormat
//! @SYMTestCaseDesc		Functions Open(RFs &aFs, const TDesC &aName, TUint aFormatMode, TInt &aCount) and Close() test. Open a ROM device
//!				using EQuickFormat as format mode and close it.
//!				Uses API elements: Open(), Close().
//! @SYMTestActions		1. Create RFs session.
//!				2. Connect the RFs session.
//!				3. Call Open(RFs &aFs, const TDesC &aName, TUint aFormatMode, TInt &aCount) method, passing the RFs session,
//!				   ROM drive letter, EQuickFormat, aCount as parameters.
//!				4. Call Close() to close the RFormat instance.
//!				5. Close RFs session.
//! @SYMTestStatus		Implemented
//! @SYMTestPriority		Critical
//! @SYMTestExpectedResults	The Open() method call returns error -14 (KErrInUse).
//! @SYMTestType		CIT
	START_TEST_BLOCK	100	t_sfsrv	\base\PBASE-F32-Format-PublicApi.ini 
		CREATE_OBJECT	RFs	rfs1
		CREATE_OBJECT	RFormat	format1
		COMMAND			rfs1	new
		COMMAND			rfs1	Connect
		COMMAND			format1	new
		COMMAND	!Error=-14	format1	Open		PBASE-F32-Format-PublicApi-1002-001-Open_command05
		COMMAND			format1	Close
		COMMAND			format1	~
		COMMAND			rfs1	Close
		COMMAND			rfs1	~
	END_TEST_BLOCK	
END_TESTCASE 			PBASE-F32-Format-PublicApi-1002