os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-Format-PublicApi-RAM.script
Update contrib.
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-ram
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-1004
29 //! @SYMTestCaseID PBASE-F32-Format-PublicApi-1004
31 //! @SYMTestCaseDesc Function Open(RFs &aFs, const TDesC &aName, TUint aFormatMode, TInt &aCount) test. Call Open() with invalid
32 //! drive letter value.
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 //! "InvalidDriveLetter", 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 -28 (KErrBadName).
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=-28 format1 Open PBASE-F32-Format-PublicApi-1004-001-Open_command05
56 END_TESTCASE PBASE-F32-Format-PublicApi-1004
58 START_TESTCASE PBASE-F32-Format-PublicApi-1006
59 //! @SYMTestCaseID PBASE-F32-Format-PublicApi-1006
61 //! @SYMTestCaseDesc Function Close() test. Call Close() without calling Open() first.
62 //! Uses API elements: Close().
63 //! @SYMTestActions 1. Create RFs session.
64 //! 2. Connect the RFs session.
65 //! 3. Call Close() to close the RFormat instance.
66 //! 4. Close RFs session.
67 //! @SYMTestStatus Implemented
68 //! @SYMTestPriority Critical
69 //! @SYMTestExpectedResults The Close() method call will complete without errors.
71 START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-Format-PublicApi.ini
72 CREATE_OBJECT RFs rfs1
73 CREATE_OBJECT RFormat format1
82 END_TESTCASE PBASE-F32-Format-PublicApi-1006
84 START_TESTCASE PBASE-F32-Format-PublicApi-1011
85 //! @SYMTestCaseID PBASE-F32-Format-PublicApi-1011
87 //! @SYMTestCaseDesc Function Open(RFs &aFs, const TDesC &aName, TUint aFormatMode, TInt &aCount) test. Call Open() with
88 //! not mounted drive letter value.
89 //! Uses API elements: Open(), Close().
90 //! @SYMTestActions 1. Create RFs session.
91 //! 2. Connect the RFs session.
92 //! 3. Call Open(RFs &aFs, const TDesC &aName, TUint aFormatMode, TInt &aCount) method, passing the RFs session,
93 //! "NotMountedDriveChar", EQuickFormat, aCount as parameters.
94 //! 4. Call Close() to close the RFormat instance.
95 //! 5. Close RFs session.
96 //! @SYMTestStatus Implemented
97 //! @SYMTestPriority Critical
98 //! @SYMTestExpectedResults The Open() method call returns error -18 (KErrNotReady).
100 START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-Format-PublicApi.ini
101 CREATE_OBJECT RFs rfs1
102 CREATE_OBJECT RFormat format1
106 COMMAND !Error=-18 format1 Open PBASE-F32-Format-PublicApi-1011-001-Open_command05
107 COMMAND format1 Close
112 END_TESTCASE PBASE-F32-Format-PublicApi-1011