os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-Format-PublicApi-ROM.script
First public contribution.
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".
9 // Initial Contributors:
10 // Nokia Corporation - initial contribution.
17 //! @SYMTestSuiteName pbase-f32-sfsrv-publicapi-rom
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);
28 START_TESTCASE PBASE-F32-Format-PublicApi-1002
29 //! @SYMTestCaseID PBASE-F32-Format-PublicApi-1002
31 //! @SYMTestCaseDesc Functions Open(RFs &aFs, const TDesC &aName, TUint aFormatMode, TInt &aCount) and Close() test. Open a ROM device
32 //! using EQuickFormat as format mode and close it.
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 //! ROM drive letter, 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 -14 (KErrInUse).
44 START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-Format-PublicApi.ini
45 CREATE_OBJECT RFs rfs1
46 CREATE_OBJECT RFormat format1
50 COMMAND !Error=-14 format1 Open PBASE-F32-Format-PublicApi-1002-001-Open_command05
56 END_TESTCASE PBASE-F32-Format-PublicApi-1002