os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-RFS-Files-PublicApi-ANY.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 BASE-F32-RFS-Files-PublicApi-ANY
18 //! @SYMScriptTestEnvironment This test script requires a basic ROM.
19 //! @SYMScriptAuthor Sergei Tveritin
20 //! @SYMScriptDescription The test script contains API files & directories related tests for RFs functions that don't depend on any special type of test drive.
25 START_TESTCASE PBASE-F32-RFS-PublicApi-2030
26 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2030
28 //! @SYMCreationDate 5/10/2006
29 //! @SYMTestCaseDesc Function Parse(const TDesC &aName, TParse &aParse) test where name of parse is empty.
30 //! Uses API elements: Parse().
31 //! @SYMTestActions 1. Call Connect() method.
32 //! 2. Call Parse() and pass parameter "NULL" as name of parse.
33 //! 3. Call Close() method.
34 //! @SYMTestStatus Implemented
35 //! @SYMTestPriority Critical
36 //! @SYMTestExpectedResults Function Parse() return KErrNone.
38 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-ANY.ini
39 CREATE_OBJECT RFs RFs1
42 COMMAND RFs1 Parse PBASE-F32-RFS-PublicApi-2030-001-Parse_command03
46 END_TESTCASE PBASE-F32-RFS-PublicApi-2030
49 START_TESTCASE PBASE-F32-RFS-PublicApi-2032
50 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2032
52 //! @SYMCreationDate 5/10/2006
53 //! @SYMTestCaseDesc Function Parse(const TDesC &aName, const TDesC &aRelated, TParse &aParse) test where related name of parse is invalid.
54 //! Uses API elements: Parse().
55 //! @SYMTestActions 1. Call Connect() method.
56 //! 2. Call Parse() and pass parameter "\<>:"/|" as related.
57 //! 3. Call Close() method.
58 //! @SYMTestStatus Implemented
59 //! @SYMTestPriority Critical
60 //! @SYMTestExpectedResults Function Parse() return KErrNone.
62 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-ANY.ini
63 CREATE_OBJECT RFs RFs1
66 COMMAND RFs1 Parse PBASE-F32-RFS-PublicApi-2032-001-Parse_command03
70 END_TESTCASE PBASE-F32-RFS-PublicApi-2032
73 START_TESTCASE PBASE-F32-RFS-PublicApi-2033
74 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2033
76 //! @SYMCreationDate 5/10/2006
77 //! @SYMTestCaseDesc Function Parse(const TDesC &aName, TParse &aParse, TParse &aParse) test where name of parse is empty.
78 //! Uses API elements: Parse().
79 //! @SYMTestActions 1. Call Connect() method.
80 //! 2. Call Parse() and pass parameter "NULL" as name of parse.
81 //! 3. Call Close() method.
82 //! @SYMTestStatus Implemented
83 //! @SYMTestPriority Critical
84 //! @SYMTestExpectedResults Function Parse() return KErrNone.
86 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-ANY.ini
87 CREATE_OBJECT RFs RFs1
90 COMMAND RFs1 Parse PBASE-F32-RFS-PublicApi-2033-001-Parse_command03
94 END_TESTCASE PBASE-F32-RFS-PublicApi-2033
96 ///////////////////////////////
98 // ISVALIDNAME (const TDesC &aFileName, TText &aBadChar)
100 ///////////////////////////////
102 START_TESTCASE PBASE-F32-RFS-PublicApi-2100
103 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2100
105 //! @SYMCreationDate 5/10/2006
106 //! @SYMTestCaseDesc Function IsValidName(const TDesC &aFileName, TText &aBadChar) test where name is invalid.
107 //! Uses API elements: IsValidName().
108 //! @SYMTestActions 1. Call Connect() method.
109 //! 2. Call IsValidName() and pass parameter "test<>:"/|.txt" as name of file and check that the result is FALSE.
110 //! 3. Call Close() method.
111 //! @SYMTestStatus Implemented
112 //! @SYMTestPriority Critical
113 //! @SYMTestExpectedResults Function IsValidName() return FALSE.
115 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-ANY.ini
116 CREATE_OBJECT RFs RFs1
119 COMMAND RFs1 IsValidName PBASE-F32-RFS-PublicApi-2100-001-IsValidName_command03
123 END_TESTCASE PBASE-F32-RFS-PublicApi-2100
127 ///////////////////////////////
129 // SETSESSIONTOPRIVATE
131 ///////////////////////////////
133 START_TESTCASE PBASE-F32-RFS-PublicApi-2101
134 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2101
136 //! @SYMCreationDate 5/10/2006
137 //! @SYMTestCaseDesc Function SetSessionToPrivate() test where drive is negative.
138 //! Uses API elements: SetSessionToPrivate().
139 //! @SYMTestActions 1. Call Connect() method.
140 //! 2. Call SetSessionToPrivate() and pass parameter "-12345" as driver.
141 //! 3. Call NotifyChange with a wildcard drive letter
142 //! 3. Call Close() method.
143 //! @SYMTestStatus Implemented
144 //! @SYMTestPriority Critical
145 //! @SYMTestExpectedResults Function NotifyChange() return KErrArgument.
147 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-ANY.ini
148 CREATE_OBJECT RFs RFs1
151 COMMAND RFs1 SetSessionToPrivate PBASE-F32-RFS-PublicApi-2101-001-SetSessionToPrivate_command03
152 COMMAND !AsyncError=-6 RFs1 NotifyChange PBASE-F32-RFS-PublicApi-2101-001-NotifyChange_command04
157 END_TESTCASE PBASE-F32-RFS-PublicApi-2101
160 ///////////////////////////////
164 ///////////////////////////////
167 START_TESTCASE PBASE-F32-RFS-PublicApi-2103
168 //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2103
170 //! @SYMCreationDate 5/10/2006
171 //! @SYMTestCaseDesc Function CreatePrivatePath() negative test where drive is negative.
172 //! Uses API elements: CreatePrivatePath().
173 //! @SYMTestActions 1. Call Connect() method.
174 //! 2. Call CreatePrivatePath() and pass parameter "-12345" as driver.
175 //! 3. Call Close() method.
176 //! @SYMTestStatus Implemented
177 //! @SYMTestPriority High
178 //! @SYMTestExpectedResults Function CreatePrivatePath() return KErrBadName.
180 START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-ANY.ini
181 CREATE_OBJECT RFs RFs1
184 COMMAND !Error=-28 RFs1 CreatePrivatePath PBASE-F32-RFS-PublicApi-2103-001-CreatePrivatePath_command03
188 END_TESTCASE PBASE-F32-RFS-PublicApi-2103