os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-Format-PublicApi-ROM.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-Format-PublicApi-ROM.script	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,57 @@
     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-sfsrv-publicapi-rom
    1.21 +//!	@SYMScriptTestEnvironment	This test script requires a basic ROM.
    1.22 +//! 	@SYMScriptAuthor 		Alvar Udras, Runno Sgirka
    1.23 +//! 	@SYMScriptDescription		The test script contains API tests for the following functions of RFormat class:
    1.24 +//!	TInt Open(RFs &aFs, const TDesC &aName, TUint aFormatMode, TInt &aCount);
    1.25 +//!	void Close();
    1.26 +
    1.27 +LOAD_SUITE	t_sfsrv
    1.28 +DELAY 5000
    1.29 +
    1.30 +
    1.31 +START_TESTCASE 			PBASE-F32-Format-PublicApi-1002
    1.32 +//! @SYMTestCaseID		PBASE-F32-Format-PublicApi-1002
    1.33 +//! @SYMAPI			RFormat
    1.34 +//! @SYMTestCaseDesc		Functions Open(RFs &aFs, const TDesC &aName, TUint aFormatMode, TInt &aCount) and Close() test. Open a ROM device
    1.35 +//!				using EQuickFormat as format mode and close it.
    1.36 +//!				Uses API elements: Open(), Close().
    1.37 +//! @SYMTestActions		1. Create RFs session.
    1.38 +//!				2. Connect the RFs session.
    1.39 +//!				3. Call Open(RFs &aFs, const TDesC &aName, TUint aFormatMode, TInt &aCount) method, passing the RFs session,
    1.40 +//!				   ROM drive letter, EQuickFormat, aCount as parameters.
    1.41 +//!				4. Call Close() to close the RFormat instance.
    1.42 +//!				5. Close RFs session.
    1.43 +//! @SYMTestStatus		Implemented
    1.44 +//! @SYMTestPriority		Critical
    1.45 +//! @SYMTestExpectedResults	The Open() method call returns error -14 (KErrInUse).
    1.46 +//! @SYMTestType		CIT
    1.47 +	START_TEST_BLOCK	100	t_sfsrv	\base\PBASE-F32-Format-PublicApi.ini 
    1.48 +		CREATE_OBJECT	RFs	rfs1
    1.49 +		CREATE_OBJECT	RFormat	format1
    1.50 +		COMMAND			rfs1	new
    1.51 +		COMMAND			rfs1	Connect
    1.52 +		COMMAND			format1	new
    1.53 +		COMMAND	!Error=-14	format1	Open		PBASE-F32-Format-PublicApi-1002-001-Open_command05
    1.54 +		COMMAND			format1	Close
    1.55 +		COMMAND			format1	~
    1.56 +		COMMAND			rfs1	Close
    1.57 +		COMMAND			rfs1	~
    1.58 +	END_TEST_BLOCK	
    1.59 +END_TESTCASE 			PBASE-F32-Format-PublicApi-1002
    1.60 +