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