os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-Format-PublicApi-RAM.script
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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-ram
    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-1004
    29 //! @SYMTestCaseID		PBASE-F32-Format-PublicApi-1004
    30 //! @SYMAPI			RFormat
    31 //! @SYMTestCaseDesc		Function Open(RFs &aFs, const TDesC &aName, TUint aFormatMode, TInt &aCount) test. Call Open() with invalid
    32 //!				drive letter value.
    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 //!				   "InvalidDriveLetter", 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 -28 (KErrBadName).
    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=-28	format1	Open		PBASE-F32-Format-PublicApi-1004-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-1004
    57 
    58 START_TESTCASE 			PBASE-F32-Format-PublicApi-1006
    59 //! @SYMTestCaseID		PBASE-F32-Format-PublicApi-1006
    60 //! @SYMAPI			RFormat
    61 //! @SYMTestCaseDesc		Function Close() test. Call Close() without calling Open() first.
    62 //!				Uses API elements: Close().
    63 //! @SYMTestActions		1. Create RFs session.
    64 //!				2. Connect the RFs session.
    65 //!				3. Call Close() to close the RFormat instance.
    66 //!				4. Close RFs session.
    67 //! @SYMTestStatus		Implemented
    68 //! @SYMTestPriority		Critical
    69 //! @SYMTestExpectedResults	The Close() method call will complete without errors.
    70 //! @SYMTestType		CIT
    71 	START_TEST_BLOCK	100	t_sfsrv	\base\PBASE-F32-Format-PublicApi.ini 
    72 		CREATE_OBJECT	RFs	rfs1
    73 		CREATE_OBJECT	RFormat	format1
    74 		COMMAND		rfs1	new
    75 		COMMAND		rfs1	Connect
    76 		COMMAND		format1	new
    77 		COMMAND		format1	Close
    78 		COMMAND		format1	~
    79 		COMMAND		rfs1	Close
    80 		COMMAND		rfs1	~
    81 	END_TEST_BLOCK	
    82 END_TESTCASE 			PBASE-F32-Format-PublicApi-1006
    83 
    84 START_TESTCASE 			PBASE-F32-Format-PublicApi-1011
    85 //! @SYMTestCaseID		PBASE-F32-Format-PublicApi-1011
    86 //! @SYMAPI			RFormat
    87 //! @SYMTestCaseDesc		Function Open(RFs &aFs, const TDesC &aName, TUint aFormatMode, TInt &aCount) test. Call Open() with
    88 //!				not mounted drive letter value.
    89 //!				Uses API elements: Open(), Close().
    90 //! @SYMTestActions		1. Create RFs session.
    91 //!				2. Connect the RFs session.
    92 //!				3. Call Open(RFs &aFs, const TDesC &aName, TUint aFormatMode, TInt &aCount) method, passing the RFs session,
    93 //!				   "NotMountedDriveChar", EQuickFormat, aCount as parameters.
    94 //!				4. Call Close() to close the RFormat instance.
    95 //!				5. Close RFs session.
    96 //! @SYMTestStatus		Implemented
    97 //! @SYMTestPriority		Critical
    98 //! @SYMTestExpectedResults	The Open() method call returns error -18 (KErrNotReady).
    99 //! @SYMTestType		CIT
   100 	START_TEST_BLOCK	100	t_sfsrv	\base\PBASE-F32-Format-PublicApi.ini 
   101 		CREATE_OBJECT	RFs	rfs1
   102 		CREATE_OBJECT	RFormat	format1
   103 		COMMAND			rfs1	new
   104 		COMMAND			rfs1	Connect
   105 		COMMAND			format1	new
   106 		COMMAND	!Error=-18	format1	Open		PBASE-F32-Format-PublicApi-1011-001-Open_command05
   107 		COMMAND			format1	Close
   108 		COMMAND			format1	~
   109 		COMMAND			rfs1	Close
   110 		COMMAND			rfs1	~
   111 	END_TEST_BLOCK	
   112 END_TESTCASE 			PBASE-F32-Format-PublicApi-1011