os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-Format-PublicApi-ROM.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.
     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 "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-sfsrv-publicapi-rom
    18 //!	@SYMScriptTestEnvironment	This test script requires a basic ROM.
    19 //! 	@SYMScriptAuthor 		Alvar Udras, Runno Sgirka
    20 //! 	@SYMScriptDescription		The test script contains API tests for the following functions of RFormat class:
    21 //!	TInt Open(RFs &aFs, const TDesC &aName, TUint aFormatMode, TInt &aCount);
    22 //!	void Close();
    23 
    24 LOAD_SUITE	t_sfsrv
    25 DELAY 5000
    26 
    27 
    28 START_TESTCASE 			PBASE-F32-Format-PublicApi-1002
    29 //! @SYMTestCaseID		PBASE-F32-Format-PublicApi-1002
    30 //! @SYMAPI			RFormat
    31 //! @SYMTestCaseDesc		Functions Open(RFs &aFs, const TDesC &aName, TUint aFormatMode, TInt &aCount) and Close() test. Open a ROM device
    32 //!				using EQuickFormat as format mode and close it.
    33 //!				Uses API elements: Open(), Close().
    34 //! @SYMTestActions		1. Create RFs session.
    35 //!				2. Connect the RFs session.
    36 //!				3. Call Open(RFs &aFs, const TDesC &aName, TUint aFormatMode, TInt &aCount) method, passing the RFs session,
    37 //!				   ROM drive letter, EQuickFormat, aCount as parameters.
    38 //!				4. Call Close() to close the RFormat instance.
    39 //!				5. Close RFs session.
    40 //! @SYMTestStatus		Implemented
    41 //! @SYMTestPriority		Critical
    42 //! @SYMTestExpectedResults	The Open() method call returns error -14 (KErrInUse).
    43 //! @SYMTestType		CIT
    44 	START_TEST_BLOCK	100	t_sfsrv	\base\PBASE-F32-Format-PublicApi.ini 
    45 		CREATE_OBJECT	RFs	rfs1
    46 		CREATE_OBJECT	RFormat	format1
    47 		COMMAND			rfs1	new
    48 		COMMAND			rfs1	Connect
    49 		COMMAND			format1	new
    50 		COMMAND	!Error=-14	format1	Open		PBASE-F32-Format-PublicApi-1002-001-Open_command05
    51 		COMMAND			format1	Close
    52 		COMMAND			format1	~
    53 		COMMAND			rfs1	Close
    54 		COMMAND			rfs1	~
    55 	END_TEST_BLOCK	
    56 END_TESTCASE 			PBASE-F32-Format-PublicApi-1002
    57