os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-FileMan-PublicApi-OS.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-os
    18 //! @SYMScriptTestEnvironment	This test script requires a basic ROM.
    19 //! @SYMScriptAuthor 		Jaanus Randveer
    20 //! @SYMScriptCreationDate		18/19/2007
    21 //! @SYMScriptDescription		The test script contains API tests for the following functions of CFileMan class:
    22 //!	TInt BytesTransferredByCopyStep()
    23 
    24 
    25 LOAD_SUITE	T_SfSrv
    26 
    27 START_TESTCASE			PBASE-F32-FileMan-PublicApi-2165
    28 //! @SYMTestCaseID		PBASE-F32-FileMan-PublicApi-2165
    29 //! @SYMAPI			CFileBase
    30 //! @SYMTestCaseDesc		Function  BytesTransferredByCopyStep() test.
    31 //!											Check that function BytesTransferredByCopyStep() was called more that one time during Copy processs.
    32 //! 				Uses API elements: NewL(), Copy(), Delete();
    33 //! @SYMTestActions		1.Create a RFs session and call it's Connect() function.
    34 //!				2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
    35 //!				3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
    36 //!				  and {TestPath}fileman\1mb as first parameter, 
    37 //!				  and {TestPath}fileman\Copy\ as second parameter,
    38 //!					and aSwitch = 0.
    39 //!				4.Check that in history for NotifyFileManOperation no record with total size of file.
    40 //!				5.Check that in history for NotifyFileManOperation total size of transfered bytes equals to to size of transfered file.
    41 //!				6.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), 
    42 //!				  and {TestPath}fileman\Copy\* as parameter.
    43 //! @SYMTestStatus		Implemented
    44 //! @SYMTestPriority		Critical
    45 //! @SYMTestExpectedResults Second and third copy calls return KErrAlreadyExists.
    46 //! @SYMTestType		CIT
    47 	START_TEST_BLOCK	50	T_SfSrv	\base\PBASE-F32-FileMan-PublicApi.ini 
    48 		CREATE_OBJECT	RFs				RFs1
    49 		CREATE_OBJECT	CFileMan	CFileMan1
    50 		COMMAND		RFs1			new
    51 		COMMAND		RFs1			Connect
    52 		COMMAND		RFs1			MkDirAll		PBASE-F32-FileMan-PublicApi-2165-001-MkDirAll_command001
    53 		COMMAND		CFileMan1	NewL				PBASE-F32-FileMan-PublicApi-NewL
    54 		COMMAND		CFileMan1	SetObserver
    55 		COMMAND		CFileMan1	Copy				PBASE-F32-FileMan-PublicApi-2165-001-Copy_command002
    56 		COMMAND		CFileMan1	BytesTransferredByCopyStep				PBASE-F32-FileMan-PublicApi-2165-001-BytesTransferredByCopyStep_command003
    57 		COMMAND		CFileMan1	Delete			PBASE-F32-FileMan-PublicApi-2165-001-Delete_command004
    58 		COMMAND		CFileMan1	RmDir				PBASE-F32-FileMan-PublicApi-2165-001-RmDir_command005
    59 		COMMAND		CFileMan1	~
    60 		COMMAND		RFs1			~		
    61 	END_TEST_BLOCK	
    62 END_TESTCASE			PBASE-F32-FileMan-PublicApi-2165