os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-FileMan-PublicApi-OS.script
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-FileMan-PublicApi-OS.script Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,62 @@
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-os
1.21 +//! @SYMScriptTestEnvironment This test script requires a basic ROM.
1.22 +//! @SYMScriptAuthor Jaanus Randveer
1.23 +//! @SYMScriptCreationDate 18/19/2007
1.24 +//! @SYMScriptDescription The test script contains API tests for the following functions of CFileMan class:
1.25 +//! TInt BytesTransferredByCopyStep()
1.26 +
1.27 +
1.28 +LOAD_SUITE T_SfSrv
1.29 +
1.30 +START_TESTCASE PBASE-F32-FileMan-PublicApi-2165
1.31 +//! @SYMTestCaseID PBASE-F32-FileMan-PublicApi-2165
1.32 +//! @SYMAPI CFileBase
1.33 +//! @SYMTestCaseDesc Function BytesTransferredByCopyStep() test.
1.34 +//! Check that function BytesTransferredByCopyStep() was called more that one time during Copy processs.
1.35 +//! Uses API elements: NewL(), Copy(), Delete();
1.36 +//! @SYMTestActions 1.Create a RFs session and call it's Connect() function.
1.37 +//! 2.Call CFileMan::NewL(RFs &aFs) and connected file server session as parameter.
1.38 +//! 3.Call CFileMan::Copy(const TDesC &anOld, const TDesC &aNew, TUint aSwitch=EOverWrite),
1.39 +//! and {TestPath}fileman\1mb as first parameter,
1.40 +//! and {TestPath}fileman\Copy\ as second parameter,
1.41 +//! and aSwitch = 0.
1.42 +//! 4.Check that in history for NotifyFileManOperation no record with total size of file.
1.43 +//! 5.Check that in history for NotifyFileManOperation total size of transfered bytes equals to to size of transfered file.
1.44 +//! 6.Call CFileMan::Delete(const TDesC &aName, TUint aSwitch=0),
1.45 +//! and {TestPath}fileman\Copy\* as parameter.
1.46 +//! @SYMTestStatus Implemented
1.47 +//! @SYMTestPriority Critical
1.48 +//! @SYMTestExpectedResults Second and third copy calls return KErrAlreadyExists.
1.49 +//! @SYMTestType CIT
1.50 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileMan-PublicApi.ini
1.51 + CREATE_OBJECT RFs RFs1
1.52 + CREATE_OBJECT CFileMan CFileMan1
1.53 + COMMAND RFs1 new
1.54 + COMMAND RFs1 Connect
1.55 + COMMAND RFs1 MkDirAll PBASE-F32-FileMan-PublicApi-2165-001-MkDirAll_command001
1.56 + COMMAND CFileMan1 NewL PBASE-F32-FileMan-PublicApi-NewL
1.57 + COMMAND CFileMan1 SetObserver
1.58 + COMMAND CFileMan1 Copy PBASE-F32-FileMan-PublicApi-2165-001-Copy_command002
1.59 + COMMAND CFileMan1 BytesTransferredByCopyStep PBASE-F32-FileMan-PublicApi-2165-001-BytesTransferredByCopyStep_command003
1.60 + COMMAND CFileMan1 Delete PBASE-F32-FileMan-PublicApi-2165-001-Delete_command004
1.61 + COMMAND CFileMan1 RmDir PBASE-F32-FileMan-PublicApi-2165-001-RmDir_command005
1.62 + COMMAND CFileMan1 ~
1.63 + COMMAND RFs1 ~
1.64 + END_TEST_BLOCK
1.65 +END_TESTCASE PBASE-F32-FileMan-PublicApi-2165
1.66 \ No newline at end of file