sl@0
|
1 |
//
|
sl@0
|
2 |
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
// All rights reserved.
|
sl@0
|
4 |
// This component and the accompanying materials are made available
|
sl@0
|
5 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
6 |
// which accompanies this distribution, and is available
|
sl@0
|
7 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
//
|
sl@0
|
9 |
// Initial Contributors:
|
sl@0
|
10 |
// Nokia Corporation - initial contribution.
|
sl@0
|
11 |
//
|
sl@0
|
12 |
// Contributors:
|
sl@0
|
13 |
//
|
sl@0
|
14 |
// Description:
|
sl@0
|
15 |
//
|
sl@0
|
16 |
//! @file
|
sl@0
|
17 |
//! @SYMTestSuiteName pbase-f32-sfsrv-publicapi-any
|
sl@0
|
18 |
//! @SYMScriptTestEnvironment This test script requires a basic ROM.
|
sl@0
|
19 |
//! @SYMScriptAuthor Tanel Milsaar, Runno Sgirka
|
sl@0
|
20 |
//! @SYMScriptDescription The test script contains API tests for the following functions of TDriveUnit class:
|
sl@0
|
21 |
//! TDriveUnit(TInt aDrive);
|
sl@0
|
22 |
//! TDriveUnit(const TDesC &aDrive);
|
sl@0
|
23 |
//! TDriveUnit &operator=(TInt aDrive);
|
sl@0
|
24 |
//! void TDriveUnit &operator=(TInt aDrive);
|
sl@0
|
25 |
//! TDriveUnit &operator=(const TDesC &aDrive);
|
sl@0
|
26 |
//! operator TInt() const;
|
sl@0
|
27 |
//! TDriveName Name() const;
|
sl@0
|
28 |
|
sl@0
|
29 |
|
sl@0
|
30 |
LOAD_SUITE t_sfsrv
|
sl@0
|
31 |
DELAY 5000
|
sl@0
|
32 |
|
sl@0
|
33 |
|
sl@0
|
34 |
START_TESTCASE PBASE-F32-DriveUnit-PublicApi-0001
|
sl@0
|
35 |
//! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-0001
|
sl@0
|
36 |
//! @SYMAPI TDriveUnit
|
sl@0
|
37 |
//! @SYMTestCaseDesc Function TDriveUnit() test. Create an instance with a drive number lesser than KMaxDrives.
|
sl@0
|
38 |
//! Uses API elements: TDriveUnit().
|
sl@0
|
39 |
//! @SYMTestActions 1. Call TDriveUnit(TInt aDrive) to create a TDriveUnit object, passing "3" as parameter.
|
sl@0
|
40 |
//! 2. Call operator TInt() to convert the drive unit to an integer value, passing "3" as expected value,
|
sl@0
|
41 |
//! for verification.
|
sl@0
|
42 |
//! @SYMTestStatus Implemented
|
sl@0
|
43 |
//! @SYMTestPriority Critical
|
sl@0
|
44 |
//! @SYMTestExpectedResults The TDriveUnit() method call is completed without errors, test returns "3" as drive number.
|
sl@0
|
45 |
//! @SYMTestType CIT
|
sl@0
|
46 |
START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini
|
sl@0
|
47 |
CREATE_OBJECT TDriveUnit driveUnit1
|
sl@0
|
48 |
COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-0001-001-new_command01
|
sl@0
|
49 |
COMMAND driveUnit1 convertToInt PBASE-F32-DriveUnit-PublicApi-0001-001-convertToInt_command02
|
sl@0
|
50 |
COMMAND driveUnit1 ~
|
sl@0
|
51 |
END_TEST_BLOCK
|
sl@0
|
52 |
END_TESTCASE PBASE-F32-DriveUnit-PublicApi-0001
|
sl@0
|
53 |
|
sl@0
|
54 |
|
sl@0
|
55 |
START_TESTCASE PBASE-F32-DriveUnit-PublicApi-0002
|
sl@0
|
56 |
//! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-0002
|
sl@0
|
57 |
//! @SYMAPI TDriveUnit
|
sl@0
|
58 |
//! @SYMTestCaseDesc Function TDriveUnit() test. Create an instance with a drive letter defined in TDriveName.
|
sl@0
|
59 |
//! Uses API elements: TDriveUnit().
|
sl@0
|
60 |
//! @SYMTestActions 1. Call TDriveUnit(const TDesC &aDrive) to create a TDriveUnit object, passing "C" as parameter.
|
sl@0
|
61 |
//! 2. Call Name() to get the drive unit name as text, passing "C:" as expected value for verification.
|
sl@0
|
62 |
//! @SYMTestStatus Implemented
|
sl@0
|
63 |
//! @SYMTestPriority Critical
|
sl@0
|
64 |
//! @SYMTestExpectedResults The TDriveUnit() method call is completed without errors, test returns "C:" as drive name.
|
sl@0
|
65 |
//! @SYMTestType CIT
|
sl@0
|
66 |
START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini
|
sl@0
|
67 |
CREATE_OBJECT TDriveUnit driveUnit1
|
sl@0
|
68 |
COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-0002-001-new_command01
|
sl@0
|
69 |
COMMAND driveUnit1 name PBASE-F32-DriveUnit-PublicApi-0002-001-name_command02
|
sl@0
|
70 |
COMMAND driveUnit1 ~
|
sl@0
|
71 |
END_TEST_BLOCK
|
sl@0
|
72 |
END_TESTCASE PBASE-F32-DriveUnit-PublicApi-0002
|
sl@0
|
73 |
|
sl@0
|
74 |
|
sl@0
|
75 |
START_TESTCASE PBASE-F32-DriveUnit-PublicApi-0003
|
sl@0
|
76 |
//! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-0003
|
sl@0
|
77 |
//! @SYMAPI TDriveUnit
|
sl@0
|
78 |
//! @SYMTestCaseDesc Function operator=() test. Assigns a new drive number lesser than KMaxDrives to the drive unit.
|
sl@0
|
79 |
//! Uses API elements: TDriveUnit(), operator=().
|
sl@0
|
80 |
//! @SYMTestActions 1. Call TDriveUnit(TInt aDrive) to create a TDriveUnit object, passing "3" as parameter.
|
sl@0
|
81 |
//! 2. Call operator=() to assign a new drive number, passing "4" as parameter.
|
sl@0
|
82 |
//! 3. Call operator TInt() to convert the drive unit to an integer value, passing "4" as expected value,
|
sl@0
|
83 |
//! for verification.
|
sl@0
|
84 |
//! @SYMTestStatus Implemented
|
sl@0
|
85 |
//! @SYMTestPriority Critical
|
sl@0
|
86 |
//! @SYMTestExpectedResults The operator=() call is completed without errors, test returns "4" as drive number.
|
sl@0
|
87 |
//! @SYMTestType CIT
|
sl@0
|
88 |
START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini
|
sl@0
|
89 |
CREATE_OBJECT TDriveUnit driveUnit1
|
sl@0
|
90 |
COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-0003-001-new_command01
|
sl@0
|
91 |
COMMAND driveUnit1 = PBASE-F32-DriveUnit-PublicApi-0003-001-_command02
|
sl@0
|
92 |
COMMAND driveUnit1 convertToInt PBASE-F32-DriveUnit-PublicApi-0003-001-convertToInt_command03
|
sl@0
|
93 |
COMMAND driveUnit1 ~
|
sl@0
|
94 |
END_TEST_BLOCK
|
sl@0
|
95 |
END_TESTCASE PBASE-F32-DriveUnit-PublicApi-0003
|
sl@0
|
96 |
|
sl@0
|
97 |
|
sl@0
|
98 |
START_TESTCASE PBASE-F32-DriveUnit-PublicApi-0004
|
sl@0
|
99 |
//! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-0004
|
sl@0
|
100 |
//! @SYMAPI TDriveUnit
|
sl@0
|
101 |
//! @SYMTestCaseDesc Function operator=() test. Assigns a new drive letter to the drive unit.
|
sl@0
|
102 |
//! Uses API elements: TDriveUnit(), operator=().
|
sl@0
|
103 |
//! @SYMTestActions 1. Call TDriveUnit(const TDesC &aDrive) to create a TDriveUnit object, passing "C" as parameter.
|
sl@0
|
104 |
//! 2. Call operator=() to assign a new drive letter, passing "F" as parameter.
|
sl@0
|
105 |
//! 3. Call Name() to get the drive unit name as text, passing "F:" as expected value for verification.
|
sl@0
|
106 |
//! @SYMTestStatus Implemented
|
sl@0
|
107 |
//! @SYMTestPriority Critical
|
sl@0
|
108 |
//! @SYMTestExpectedResults The operator=() call is completed without errors, test returns "F:" as drive name.
|
sl@0
|
109 |
//! @SYMTestType CIT
|
sl@0
|
110 |
START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini
|
sl@0
|
111 |
CREATE_OBJECT TDriveUnit driveUnit1
|
sl@0
|
112 |
COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-0004-001-new_command01
|
sl@0
|
113 |
COMMAND driveUnit1 = PBASE-F32-DriveUnit-PublicApi-0004-001-_command02
|
sl@0
|
114 |
COMMAND driveUnit1 name PBASE-F32-DriveUnit-PublicApi-0004-001-name_command03
|
sl@0
|
115 |
COMMAND driveUnit1 ~
|
sl@0
|
116 |
END_TEST_BLOCK
|
sl@0
|
117 |
END_TESTCASE PBASE-F32-DriveUnit-PublicApi-0004
|
sl@0
|
118 |
|
sl@0
|
119 |
|
sl@0
|
120 |
START_TESTCASE PBASE-F32-DriveUnit-PublicApi-0005
|
sl@0
|
121 |
//! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-0005
|
sl@0
|
122 |
//! @SYMAPI TDriveUnit
|
sl@0
|
123 |
//! @SYMTestCaseDesc Function operator TInt() test. Converts the drive unit to an integer value.
|
sl@0
|
124 |
//! Uses API elements: TDriveUnit(), operator TInt().
|
sl@0
|
125 |
//! @SYMTestActions 1. Call TDriveUnit(const TDesC &aDrive) to create a TDriveUnit object, passing "C" as parameter.
|
sl@0
|
126 |
//! 2. Call operator TInt() to convert the drive unit to an integer value, passing 2 as expected value.
|
sl@0
|
127 |
//! @SYMTestStatus Implemented
|
sl@0
|
128 |
//! @SYMTestPriority Critical
|
sl@0
|
129 |
//! @SYMTestExpectedResults The TInt() operator call is completed without errors, returning 2.
|
sl@0
|
130 |
//! @SYMTestType CIT
|
sl@0
|
131 |
START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini
|
sl@0
|
132 |
CREATE_OBJECT TDriveUnit driveUnit1
|
sl@0
|
133 |
COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-0005-001-new_command01
|
sl@0
|
134 |
COMMAND driveUnit1 convertToInt PBASE-F32-DriveUnit-PublicApi-0005-001-convertToInt_command02
|
sl@0
|
135 |
COMMAND driveUnit1 ~
|
sl@0
|
136 |
END_TEST_BLOCK
|
sl@0
|
137 |
END_TESTCASE PBASE-F32-DriveUnit-PublicApi-0005
|
sl@0
|
138 |
|
sl@0
|
139 |
|
sl@0
|
140 |
START_TESTCASE PBASE-F32-DriveUnit-PublicApi-0006
|
sl@0
|
141 |
//! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-0006
|
sl@0
|
142 |
//! @SYMAPI TDriveUnit
|
sl@0
|
143 |
//! @SYMTestCaseDesc Function Name() test. Gets the drive unit name as text.
|
sl@0
|
144 |
//! Uses API elements: TDriveUnit(), Name().
|
sl@0
|
145 |
//! @SYMTestActions 1. Call TDriveUnit(TInt aDrive) to create a TDriveUnit object, passing "22" as parameter.
|
sl@0
|
146 |
//! 2. Call Name() to get the drive unit name as text, passing "W:" as expected value.
|
sl@0
|
147 |
//! @SYMTestStatus Implemented
|
sl@0
|
148 |
//! @SYMTestPriority Critical
|
sl@0
|
149 |
//! @SYMTestExpectedResults The Name() method call is completed without errors, returning "W:".
|
sl@0
|
150 |
//! @SYMTestType CIT
|
sl@0
|
151 |
START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini
|
sl@0
|
152 |
CREATE_OBJECT TDriveUnit driveUnit1
|
sl@0
|
153 |
COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-0006-001-new_command01
|
sl@0
|
154 |
COMMAND driveUnit1 name PBASE-F32-DriveUnit-PublicApi-0006-001-name_command02
|
sl@0
|
155 |
COMMAND driveUnit1 ~
|
sl@0
|
156 |
END_TEST_BLOCK
|
sl@0
|
157 |
END_TESTCASE PBASE-F32-DriveUnit-PublicApi-0006
|
sl@0
|
158 |
|
sl@0
|
159 |
|
sl@0
|
160 |
START_TESTCASE PBASE-F32-DriveUnit-PublicApi-0007
|
sl@0
|
161 |
//! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-0007
|
sl@0
|
162 |
//! @SYMAPI TDriveUnit
|
sl@0
|
163 |
//! @SYMTestCaseDesc Function TDriveUnit() test. Create an instance with a drive letter defined in TDriveName, with a colon at the end.
|
sl@0
|
164 |
//! Uses API elements: TDriveUnit().
|
sl@0
|
165 |
//! @SYMTestActions 1. Call TDriveUnit(const TDesC &aDrive) to create a TDriveUnit object, passing "C:" as parameter.
|
sl@0
|
166 |
//! 2. Call Name() to get the drive unit name as text, passing "C:" as expected value for verification.
|
sl@0
|
167 |
//! @SYMTestStatus Implemented
|
sl@0
|
168 |
//! @SYMTestPriority Critical
|
sl@0
|
169 |
//! @SYMTestExpectedResults The TDriveUnit() method call is completed without errors, test returns "C:" as drive name.
|
sl@0
|
170 |
//! @SYMTestType CIT
|
sl@0
|
171 |
START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini
|
sl@0
|
172 |
CREATE_OBJECT TDriveUnit driveUnit1
|
sl@0
|
173 |
COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-0007-001-new_command01
|
sl@0
|
174 |
COMMAND driveUnit1 name PBASE-F32-DriveUnit-PublicApi-0007-001-name_command02
|
sl@0
|
175 |
COMMAND driveUnit1 ~
|
sl@0
|
176 |
END_TEST_BLOCK
|
sl@0
|
177 |
END_TESTCASE PBASE-F32-DriveUnit-PublicApi-0007
|
sl@0
|
178 |
|
sl@0
|
179 |
|
sl@0
|
180 |
START_TESTCASE PBASE-F32-DriveUnit-PublicApi-0008
|
sl@0
|
181 |
//! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-0008
|
sl@0
|
182 |
//! @SYMAPI TDriveUnit
|
sl@0
|
183 |
//! @SYMTestCaseDesc Function TDriveUnit() test. Create an instance with a drive letter defined in TDriveName, as lowercase.
|
sl@0
|
184 |
//! Uses API elements: TDriveUnit().
|
sl@0
|
185 |
//! @SYMTestActions 1. Call TDriveUnit(const TDesC &aDrive) to create a TDriveUnit object, passing "c" as parameter.
|
sl@0
|
186 |
//! 2. Call Name() to get the drive unit name as text, passing "C:" as expected value for verification.
|
sl@0
|
187 |
//! @SYMTestStatus Implemented
|
sl@0
|
188 |
//! @SYMTestPriority Critical
|
sl@0
|
189 |
//! @SYMTestExpectedResults The TDriveUnit() method call is completed without errors, test returns "C:" as drive name.
|
sl@0
|
190 |
//! @SYMTestType CIT
|
sl@0
|
191 |
START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini
|
sl@0
|
192 |
CREATE_OBJECT TDriveUnit driveUnit1
|
sl@0
|
193 |
COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-0008-001-new_command01
|
sl@0
|
194 |
COMMAND driveUnit1 name PBASE-F32-DriveUnit-PublicApi-0008-001-name_command02
|
sl@0
|
195 |
COMMAND driveUnit1 ~
|
sl@0
|
196 |
END_TEST_BLOCK
|
sl@0
|
197 |
END_TESTCASE PBASE-F32-DriveUnit-PublicApi-0008
|
sl@0
|
198 |
|
sl@0
|
199 |
|
sl@0
|
200 |
START_TESTCASE PBASE-F32-DriveUnit-PublicApi-0009
|
sl@0
|
201 |
//! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-0009
|
sl@0
|
202 |
//! @SYMAPI TDriveUnit
|
sl@0
|
203 |
//! @SYMTestCaseDesc Function operator=() test. Assigns a new lowercase drive letter to the drive unit.
|
sl@0
|
204 |
//! Uses API elements: TDriveUnit(), operator=().
|
sl@0
|
205 |
//! @SYMTestActions 1. Call TDriveUnit(const TDesC &aDrive) to create a TDriveUnit object, passing "C" as parameter.
|
sl@0
|
206 |
//! 2. Call operator=() to assign a new drive letter, passing "f" as parameter.
|
sl@0
|
207 |
//! 3. Call Name() to get the drive unit name as text, passing "F:" as expected value for verification.
|
sl@0
|
208 |
//! @SYMTestStatus Implemented
|
sl@0
|
209 |
//! @SYMTestPriority Critical
|
sl@0
|
210 |
//! @SYMTestExpectedResults The operator=() call is completed without errors, test returns "F:" as drive name.
|
sl@0
|
211 |
//! @SYMTestType CIT
|
sl@0
|
212 |
START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini
|
sl@0
|
213 |
CREATE_OBJECT TDriveUnit driveUnit1
|
sl@0
|
214 |
COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-0009-001-new_command01
|
sl@0
|
215 |
COMMAND driveUnit1 = PBASE-F32-DriveUnit-PublicApi-0009-001-_command02
|
sl@0
|
216 |
COMMAND driveUnit1 name PBASE-F32-DriveUnit-PublicApi-0009-001-name_command03
|
sl@0
|
217 |
COMMAND driveUnit1 ~
|
sl@0
|
218 |
END_TEST_BLOCK
|
sl@0
|
219 |
END_TESTCASE PBASE-F32-DriveUnit-PublicApi-0009
|
sl@0
|
220 |
|
sl@0
|
221 |
|
sl@0
|
222 |
START_TESTCASE PBASE-F32-DriveUnit-PublicApi-0010
|
sl@0
|
223 |
//! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-0010
|
sl@0
|
224 |
//! @SYMAPI TDriveUnit
|
sl@0
|
225 |
//! @SYMTestCaseDesc Function TDriveUnit() test. Create a TDriveUnit instance.
|
sl@0
|
226 |
//! Uses API elements: TDriveUnit().
|
sl@0
|
227 |
//! @SYMTestActions 1. Call TDriveUnit() to create a TDriveUnit object.
|
sl@0
|
228 |
//! @SYMTestStatus Implemented
|
sl@0
|
229 |
//! @SYMTestPriority Critical
|
sl@0
|
230 |
//! @SYMTestExpectedResults The TDriveUnit() method call is completed without errors.
|
sl@0
|
231 |
//! @SYMTestType CIT
|
sl@0
|
232 |
START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini
|
sl@0
|
233 |
CREATE_OBJECT TDriveUnit driveUnit1
|
sl@0
|
234 |
COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-0010-001-new_command01
|
sl@0
|
235 |
COMMAND driveUnit1 ~
|
sl@0
|
236 |
END_TEST_BLOCK
|
sl@0
|
237 |
END_TESTCASE PBASE-F32-DriveUnit-PublicApi-0010
|
sl@0
|
238 |
|
sl@0
|
239 |
|
sl@0
|
240 |
// ************************
|
sl@0
|
241 |
// *** NEGATIVE TESTS ***
|
sl@0
|
242 |
// ************************
|
sl@0
|
243 |
|
sl@0
|
244 |
|
sl@0
|
245 |
START_TESTCASE PBASE-F32-DriveUnit-PublicApi-1001
|
sl@0
|
246 |
//! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-1001
|
sl@0
|
247 |
//! @SYMAPI TDriveUnit
|
sl@0
|
248 |
//! @SYMTestCaseDesc Function TDriveUnit() test. Create an instance with a drive number greater than KMaxDrives.
|
sl@0
|
249 |
//! Uses API elements: TDriveUnit().
|
sl@0
|
250 |
//! @SYMTestActions 1. Call TDriveUnit(TInt aDrive) to create a TDriveUnit object, passing "100" as parameter.
|
sl@0
|
251 |
//! @SYMTestStatus Implemented
|
sl@0
|
252 |
//! @SYMTestPriority High Priority
|
sl@0
|
253 |
//! @SYMTestExpectedResults The TDriveUnit() method call will panic (FSCLIENT Code=0).
|
sl@0
|
254 |
//! @SYMTestType CIT
|
sl@0
|
255 |
START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini
|
sl@0
|
256 |
CREATE_OBJECT TDriveUnit driveUnit1
|
sl@0
|
257 |
COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-1001-001-new_command01
|
sl@0
|
258 |
COMMAND driveUnit1 ~
|
sl@0
|
259 |
END_TEST_BLOCK !PanicCode=0 !PanicString="FSCLIENT panic"
|
sl@0
|
260 |
END_TESTCASE PBASE-F32-DriveUnit-PublicApi-1001
|
sl@0
|
261 |
|
sl@0
|
262 |
|
sl@0
|
263 |
START_TESTCASE PBASE-F32-DriveUnit-PublicApi-1002
|
sl@0
|
264 |
//! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-1002
|
sl@0
|
265 |
//! @SYMAPI TDriveUnit
|
sl@0
|
266 |
//! @SYMTestCaseDesc Function operator=() test. Assigns a drive number greater than KMaxDrives to the drive unit.
|
sl@0
|
267 |
//! Uses API elements: TDriveUnit, operator=().
|
sl@0
|
268 |
//! @SYMTestActions 1. Call TDriveUnit(TInt aDrive) to create a TDriveUnit object, passing "16" as parameter.
|
sl@0
|
269 |
//! 2. Call operator=() to assign a new drive number, passing "100" as parameter.
|
sl@0
|
270 |
//! @SYMTestStatus Implemented
|
sl@0
|
271 |
//! @SYMTestPriority High Priority
|
sl@0
|
272 |
//! @SYMTestExpectedResults The TDriveUnit() method call will panic (FSCLIENT Code=0).
|
sl@0
|
273 |
//! @SYMTestType CIT
|
sl@0
|
274 |
START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini
|
sl@0
|
275 |
CREATE_OBJECT TDriveUnit driveUnit1
|
sl@0
|
276 |
COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-1002-001-new_command01
|
sl@0
|
277 |
COMMAND driveUnit1 = PBASE-F32-DriveUnit-PublicApi-1002-001-_command02
|
sl@0
|
278 |
COMMAND driveUnit1 ~
|
sl@0
|
279 |
END_TEST_BLOCK !PanicCode=0 !PanicString="FSCLIENT panic"
|
sl@0
|
280 |
END_TESTCASE PBASE-F32-DriveUnit-PublicApi-1002
|
sl@0
|
281 |
|
sl@0
|
282 |
|
sl@0
|
283 |
START_TESTCASE PBASE-F32-DriveUnit-PublicApi-1003
|
sl@0
|
284 |
//! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-1003
|
sl@0
|
285 |
//! @SYMAPI TDriveUnit
|
sl@0
|
286 |
//! @SYMTestCaseDesc Function TDriveUnit() test. Create an instance with a drive number equal to KMaxDrives.
|
sl@0
|
287 |
//! Uses API elements: TDriveUnit().
|
sl@0
|
288 |
//! @SYMTestActions 1. Call TDriveUnit(TInt aDrive) to create a TDriveUnit object, passing "26" as parameter.
|
sl@0
|
289 |
//! @SYMTestStatus Implemented
|
sl@0
|
290 |
//! @SYMTestPriority High Priority
|
sl@0
|
291 |
//! @SYMTestExpectedResults The TDriveUnit() method call will panic (FSCLIENT Code=0).
|
sl@0
|
292 |
//! @SYMTestType CIT
|
sl@0
|
293 |
START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini
|
sl@0
|
294 |
CREATE_OBJECT TDriveUnit driveUnit1
|
sl@0
|
295 |
COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-1003-001-new_command01
|
sl@0
|
296 |
COMMAND driveUnit1 ~
|
sl@0
|
297 |
END_TEST_BLOCK !PanicCode=0 !PanicString="FSCLIENT panic"
|
sl@0
|
298 |
END_TESTCASE PBASE-F32-DriveUnit-PublicApi-1003
|
sl@0
|
299 |
|
sl@0
|
300 |
|
sl@0
|
301 |
START_TESTCASE PBASE-F32-DriveUnit-PublicApi-1004
|
sl@0
|
302 |
//! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-1004
|
sl@0
|
303 |
//! @SYMAPI TDriveUnit
|
sl@0
|
304 |
//! @SYMTestCaseDesc Function TDriveUnit() test. Create an instance with a drive number bigger than KMaxDrives.
|
sl@0
|
305 |
//! Uses API elements: TDriveUnit().
|
sl@0
|
306 |
//! @SYMTestActions 1. Call TDriveUnit(TInt aDrive) to create a TDriveUnit object, passing "50" as parameter.
|
sl@0
|
307 |
//! @SYMTestStatus Implemented
|
sl@0
|
308 |
//! @SYMTestPriority High Priority
|
sl@0
|
309 |
//! @SYMTestExpectedResults The TDriveUnit() method call will panic (FSCLIENT Code=0).
|
sl@0
|
310 |
//! @SYMTestType CIT
|
sl@0
|
311 |
START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini
|
sl@0
|
312 |
CREATE_OBJECT TDriveUnit driveUnit1
|
sl@0
|
313 |
COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-1004-001-new_command01
|
sl@0
|
314 |
COMMAND driveUnit1 ~
|
sl@0
|
315 |
END_TEST_BLOCK !PanicCode=0 !PanicString="FSCLIENT panic"
|
sl@0
|
316 |
END_TESTCASE PBASE-F32-DriveUnit-PublicApi-1004
|
sl@0
|
317 |
|
sl@0
|
318 |
|
sl@0
|
319 |
START_TESTCASE PBASE-F32-DriveUnit-PublicApi-1005
|
sl@0
|
320 |
//! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-1005
|
sl@0
|
321 |
//! @SYMAPI TDriveUnit
|
sl@0
|
322 |
//! @SYMTestCaseDesc Function operator=() test. Assigns a new drive number to the drive unit bigger than KMaxDrives.
|
sl@0
|
323 |
//! Uses API elements: TDriveUnit(), operator=().
|
sl@0
|
324 |
//! @SYMTestActions 1. Call TDriveUnit(TInt aDrive) to create a TDriveUnit object, passing "7" as parameter.
|
sl@0
|
325 |
//! 2. Call operator=() to assign a new drive number, passing "100" as parameter.
|
sl@0
|
326 |
//! @SYMTestStatus Implemented
|
sl@0
|
327 |
//! @SYMTestPriority High Priority
|
sl@0
|
328 |
//! @SYMTestExpectedResults The operator=() call will panic (FSCLIENT Code=0).
|
sl@0
|
329 |
//! @SYMTestType CIT
|
sl@0
|
330 |
START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini
|
sl@0
|
331 |
CREATE_OBJECT TDriveUnit driveUnit1
|
sl@0
|
332 |
COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-1005-001-new_command01
|
sl@0
|
333 |
COMMAND driveUnit1 = PBASE-F32-DriveUnit-PublicApi-1005-001-_command02
|
sl@0
|
334 |
COMMAND driveUnit1 ~
|
sl@0
|
335 |
END_TEST_BLOCK !PanicCode=0 !PanicString="FSCLIENT panic"
|
sl@0
|
336 |
END_TESTCASE PBASE-F32-DriveUnit-PublicApi-1005
|
sl@0
|
337 |
|
sl@0
|
338 |
|
sl@0
|
339 |
START_TESTCASE PBASE-F32-DriveUnit-PublicApi-1006
|
sl@0
|
340 |
//! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-1006
|
sl@0
|
341 |
//! @SYMAPI TDriveUnit
|
sl@0
|
342 |
//! @SYMTestCaseDesc Function TDriveUnit() test. Create an instance with a malformed drive name.
|
sl@0
|
343 |
//! Uses API elements: TDriveUnit().
|
sl@0
|
344 |
//! @SYMTestActions 1. Call TDriveUnit(const TDesC &aDrive) to create a TDriveUnit object, passing "##" as parameter.
|
sl@0
|
345 |
//! @SYMTestStatus Implemented
|
sl@0
|
346 |
//! @SYMTestPriority High Priority
|
sl@0
|
347 |
//! @SYMTestExpectedResults The TDriveUnit() method call will panic (FSCLIENT Code=1).
|
sl@0
|
348 |
//! @SYMTestType CIT
|
sl@0
|
349 |
START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini
|
sl@0
|
350 |
CREATE_OBJECT TDriveUnit driveUnit1
|
sl@0
|
351 |
COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-1006-001-new_command01
|
sl@0
|
352 |
COMMAND driveUnit1 ~
|
sl@0
|
353 |
END_TEST_BLOCK !PanicCode=1 !PanicString="FSCLIENT panic"
|
sl@0
|
354 |
END_TESTCASE PBASE-F32-DriveUnit-PublicApi-1006
|
sl@0
|
355 |
|
sl@0
|
356 |
|
sl@0
|
357 |
START_TESTCASE PBASE-F32-DriveUnit-PublicApi-1007
|
sl@0
|
358 |
//! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-1007
|
sl@0
|
359 |
//! @SYMAPI TDriveUnit
|
sl@0
|
360 |
//! @SYMTestCaseDesc Function operator=() test. Assigns a malformed drive name to the drive unit.
|
sl@0
|
361 |
//! Uses API elements: TDriveUnit(), operator=().
|
sl@0
|
362 |
//! @SYMTestActions 1. Call TDriveUnit(const TDesC &aDrive) to create a TDriveUnit object, passing "Z" as parameter.
|
sl@0
|
363 |
//! 2. Call operator=() to assign a new drive letter, passing "##" as parameter.
|
sl@0
|
364 |
//! @SYMTestStatus Implemented
|
sl@0
|
365 |
//! @SYMTestPriority High Priority
|
sl@0
|
366 |
//! @SYMTestExpectedResults The operator=() call will panic (FSCLIENT Code=1).
|
sl@0
|
367 |
//! @SYMTestType CIT
|
sl@0
|
368 |
START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini
|
sl@0
|
369 |
CREATE_OBJECT TDriveUnit driveUnit1
|
sl@0
|
370 |
COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-1007-001-new_command01
|
sl@0
|
371 |
COMMAND driveUnit1 = PBASE-F32-DriveUnit-PublicApi-1007-001-_command02
|
sl@0
|
372 |
COMMAND driveUnit1 ~
|
sl@0
|
373 |
END_TEST_BLOCK !PanicCode=1 !PanicString="FSCLIENT panic"
|
sl@0
|
374 |
END_TESTCASE PBASE-F32-DriveUnit-PublicApi-1007
|