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.
sl@0
     1
//
sl@0
     2
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
// All rights reserved.
sl@0
     4
// This component and the accompanying materials are made available
sl@0
     5
// under the terms of "Eclipse Public License v1.0"
sl@0
     6
// which accompanies this distribution, and is available
sl@0
     7
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
//
sl@0
     9
// Initial Contributors:
sl@0
    10
// Nokia Corporation - initial contribution.
sl@0
    11
//
sl@0
    12
// Contributors:
sl@0
    13
//
sl@0
    14
// Description: 
sl@0
    15
//
sl@0
    16
//! @file
sl@0
    17
//! @SYMTestSuiteName		pbase-f32-sfsrv-publicapi-os
sl@0
    18
//! @SYMScriptTestEnvironment	This test script requires a basic ROM.
sl@0
    19
//! @SYMScriptAuthor 		Jaanus Randveer
sl@0
    20
//! @SYMScriptCreationDate		18/19/2007
sl@0
    21
//! @SYMScriptDescription		The test script contains API tests for the following functions of CFileMan class:
sl@0
    22
//!	TInt BytesTransferredByCopyStep()
sl@0
    23
sl@0
    24
sl@0
    25
LOAD_SUITE	T_SfSrv
sl@0
    26
sl@0
    27
START_TESTCASE			PBASE-F32-FileMan-PublicApi-2165
sl@0
    28
//! @SYMTestCaseID		PBASE-F32-FileMan-PublicApi-2165
sl@0
    29
//! @SYMAPI			CFileBase
sl@0
    30
//! @SYMTestCaseDesc		Function  BytesTransferredByCopyStep() test.
sl@0
    31
//!											Check that function BytesTransferredByCopyStep() was called more that one time during Copy processs.
sl@0
    32
//! 				Uses API elements: NewL(), Copy(), Delete();
sl@0
    33
//! @SYMTestActions		1.Create a RFs session and call it's Connect() function.
sl@0
    34
//!				2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
sl@0
    35
//!				3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
sl@0
    36
//!				  and {TestPath}fileman\1mb as first parameter, 
sl@0
    37
//!				  and {TestPath}fileman\Copy\ as second parameter,
sl@0
    38
//!					and aSwitch = 0.
sl@0
    39
//!				4.Check that in history for NotifyFileManOperation no record with total size of file.
sl@0
    40
//!				5.Check that in history for NotifyFileManOperation total size of transfered bytes equals to to size of transfered file.
sl@0
    41
//!				6.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0), 
sl@0
    42
//!				  and {TestPath}fileman\Copy\* as parameter.
sl@0
    43
//! @SYMTestStatus		Implemented
sl@0
    44
//! @SYMTestPriority		Critical
sl@0
    45
//! @SYMTestExpectedResults Second and third copy calls return KErrAlreadyExists.
sl@0
    46
//! @SYMTestType		CIT
sl@0
    47
	START_TEST_BLOCK	50	T_SfSrv	\base\PBASE-F32-FileMan-PublicApi.ini 
sl@0
    48
		CREATE_OBJECT	RFs				RFs1
sl@0
    49
		CREATE_OBJECT	CFileMan	CFileMan1
sl@0
    50
		COMMAND		RFs1			new
sl@0
    51
		COMMAND		RFs1			Connect
sl@0
    52
		COMMAND		RFs1			MkDirAll		PBASE-F32-FileMan-PublicApi-2165-001-MkDirAll_command001
sl@0
    53
		COMMAND		CFileMan1	NewL				PBASE-F32-FileMan-PublicApi-NewL
sl@0
    54
		COMMAND		CFileMan1	SetObserver
sl@0
    55
		COMMAND		CFileMan1	Copy				PBASE-F32-FileMan-PublicApi-2165-001-Copy_command002
sl@0
    56
		COMMAND		CFileMan1	BytesTransferredByCopyStep				PBASE-F32-FileMan-PublicApi-2165-001-BytesTransferredByCopyStep_command003
sl@0
    57
		COMMAND		CFileMan1	Delete			PBASE-F32-FileMan-PublicApi-2165-001-Delete_command004
sl@0
    58
		COMMAND		CFileMan1	RmDir				PBASE-F32-FileMan-PublicApi-2165-001-RmDir_command005
sl@0
    59
		COMMAND		CFileMan1	~
sl@0
    60
		COMMAND		RFs1			~		
sl@0
    61
	END_TEST_BLOCK	
sl@0
    62
END_TESTCASE			PBASE-F32-FileMan-PublicApi-2165