os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-Format-PublicApi-RAM.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-Format-PublicApi-RAM.script Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,112 @@
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-ram
1.21 +//! @SYMScriptTestEnvironment This test script requires a basic ROM.
1.22 +//! @SYMScriptAuthor Alvar Udras, Runno Sgirka
1.23 +//! @SYMScriptDescription The test script contains API tests for the following functions of RFormat class:
1.24 +//! TInt Open(RFs &aFs, const TDesC &aName, TUint aFormatMode, TInt &aCount);
1.25 +//! void Close();
1.26 +
1.27 +LOAD_SUITE t_sfsrv
1.28 +DELAY 5000
1.29 +
1.30 +
1.31 +START_TESTCASE PBASE-F32-Format-PublicApi-1004
1.32 +//! @SYMTestCaseID PBASE-F32-Format-PublicApi-1004
1.33 +//! @SYMAPI RFormat
1.34 +//! @SYMTestCaseDesc Function Open(RFs &aFs, const TDesC &aName, TUint aFormatMode, TInt &aCount) test. Call Open() with invalid
1.35 +//! drive letter value.
1.36 +//! Uses API elements: Open(), Close().
1.37 +//! @SYMTestActions 1. Create RFs session.
1.38 +//! 2. Connect the RFs session.
1.39 +//! 3. Call Open(RFs &aFs, const TDesC &aName, TUint aFormatMode, TInt &aCount) method, passing the RFs session,
1.40 +//! "InvalidDriveLetter", EQuickFormat, aCount as parameters.
1.41 +//! 4. Call Close() to close the RFormat instance.
1.42 +//! 5. Close RFs session.
1.43 +//! @SYMTestStatus Implemented
1.44 +//! @SYMTestPriority Critical
1.45 +//! @SYMTestExpectedResults The Open() method call returns error -28 (KErrBadName).
1.46 +//! @SYMTestType CIT
1.47 + START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-Format-PublicApi.ini
1.48 + CREATE_OBJECT RFs rfs1
1.49 + CREATE_OBJECT RFormat format1
1.50 + COMMAND rfs1 new
1.51 + COMMAND rfs1 Connect
1.52 + COMMAND format1 new
1.53 + COMMAND !Error=-28 format1 Open PBASE-F32-Format-PublicApi-1004-001-Open_command05
1.54 + COMMAND format1 Close
1.55 + COMMAND format1 ~
1.56 + COMMAND rfs1 Close
1.57 + COMMAND rfs1 ~
1.58 + END_TEST_BLOCK
1.59 +END_TESTCASE PBASE-F32-Format-PublicApi-1004
1.60 +
1.61 +START_TESTCASE PBASE-F32-Format-PublicApi-1006
1.62 +//! @SYMTestCaseID PBASE-F32-Format-PublicApi-1006
1.63 +//! @SYMAPI RFormat
1.64 +//! @SYMTestCaseDesc Function Close() test. Call Close() without calling Open() first.
1.65 +//! Uses API elements: Close().
1.66 +//! @SYMTestActions 1. Create RFs session.
1.67 +//! 2. Connect the RFs session.
1.68 +//! 3. Call Close() to close the RFormat instance.
1.69 +//! 4. Close RFs session.
1.70 +//! @SYMTestStatus Implemented
1.71 +//! @SYMTestPriority Critical
1.72 +//! @SYMTestExpectedResults The Close() method call will complete without errors.
1.73 +//! @SYMTestType CIT
1.74 + START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-Format-PublicApi.ini
1.75 + CREATE_OBJECT RFs rfs1
1.76 + CREATE_OBJECT RFormat format1
1.77 + COMMAND rfs1 new
1.78 + COMMAND rfs1 Connect
1.79 + COMMAND format1 new
1.80 + COMMAND format1 Close
1.81 + COMMAND format1 ~
1.82 + COMMAND rfs1 Close
1.83 + COMMAND rfs1 ~
1.84 + END_TEST_BLOCK
1.85 +END_TESTCASE PBASE-F32-Format-PublicApi-1006
1.86 +
1.87 +START_TESTCASE PBASE-F32-Format-PublicApi-1011
1.88 +//! @SYMTestCaseID PBASE-F32-Format-PublicApi-1011
1.89 +//! @SYMAPI RFormat
1.90 +//! @SYMTestCaseDesc Function Open(RFs &aFs, const TDesC &aName, TUint aFormatMode, TInt &aCount) test. Call Open() with
1.91 +//! not mounted drive letter value.
1.92 +//! Uses API elements: Open(), Close().
1.93 +//! @SYMTestActions 1. Create RFs session.
1.94 +//! 2. Connect the RFs session.
1.95 +//! 3. Call Open(RFs &aFs, const TDesC &aName, TUint aFormatMode, TInt &aCount) method, passing the RFs session,
1.96 +//! "NotMountedDriveChar", EQuickFormat, aCount as parameters.
1.97 +//! 4. Call Close() to close the RFormat instance.
1.98 +//! 5. Close RFs session.
1.99 +//! @SYMTestStatus Implemented
1.100 +//! @SYMTestPriority Critical
1.101 +//! @SYMTestExpectedResults The Open() method call returns error -18 (KErrNotReady).
1.102 +//! @SYMTestType CIT
1.103 + START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-Format-PublicApi.ini
1.104 + CREATE_OBJECT RFs rfs1
1.105 + CREATE_OBJECT RFormat format1
1.106 + COMMAND rfs1 new
1.107 + COMMAND rfs1 Connect
1.108 + COMMAND format1 new
1.109 + COMMAND !Error=-18 format1 Open PBASE-F32-Format-PublicApi-1011-001-Open_command05
1.110 + COMMAND format1 Close
1.111 + COMMAND format1 ~
1.112 + COMMAND rfs1 Close
1.113 + COMMAND rfs1 ~
1.114 + END_TEST_BLOCK
1.115 +END_TESTCASE PBASE-F32-Format-PublicApi-1011