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-RFS-Drives-PublicApi-REM-manual |
|
18 |
//! @SYMScriptTestEnvironment This test script requires a basic ROM. |
|
19 |
//! @SYMScriptAuthor Anton Grober |
|
20 |
//! @SYMScriptDescription The test script contains API drives & volumes related tests for RFs functions |
|
21 |
//! that perform operations on a removeable RAM drive, but cannot be fully automated. This script requires user intervention. |
|
22 |
||
23 |
LOAD_SUITE T_Sfsrv |
|
24 |
||
25 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1041 |
|
26 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1041 |
|
27 |
//! @SYMAPI RFs |
|
28 |
//! @SYMAuthor Anton Grober |
|
29 |
//! @SYMCreationDate 02/10/2006 |
|
30 |
//! @SYMTestCaseDesc UnlockDrive() function test. Passing invalid password as parameter. |
|
31 |
//! Uses API elements: UnlockDrive(). |
|
32 |
//! @SYMTestActions 1. Call Connect(). |
|
33 |
//! 2. Call LockDrive() passing some valid drive's number as drive number parameter and some password. |
|
34 |
//! 3. Open/close card door. |
|
35 |
//! 4. Call UnlockDrive() passing same drive's number as drive number parameter and invalid password as old password. |
|
36 |
//! 5 Call UnlockDrive() passing same drive's number as drive number parameter and valid password. It's neccessary for clearing password in next step. |
|
37 |
//! 6. Call ClearPassword() to clean up changes. |
|
38 |
//! 7. Call Close(). |
|
39 |
//! @SYMTestStatus Implemented |
|
40 |
//! @SYMTestPriority High |
|
41 |
//! @SYMTestExpectedResults Function UnlockDrive() returns KErrAccessDenied. |
|
42 |
//! @SYMTestType CIT |
|
43 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-REM-manual.ini |
|
44 |
CREATE_OBJECT RFs RFs1 |
|
45 |
COMMAND RFs1 new |
|
46 |
COMMAND RFs1 Connect |
|
47 |
COMMAND RFs1 LockDrive PBASE-F32-RFS-PublicApi-1041-001-LockDrive_command03 |
|
48 |
COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-1041-001-NotifyChange_command05 |
|
49 |
COMMAND RFs1 prompt |
|
50 |
OUTSTANDING |
|
51 |
COMMAND RFs1 Drive PBASE-F32-RFS-PublicApi-1041-001-Drive_command07 |
|
52 |
COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-1041-001-NotifyChange_command08 |
|
53 |
OUTSTANDING |
|
54 |
COMMAND RFs1 Drive PBASE-F32-RFS-PublicApi-1041-001-Drive_command10 |
|
55 |
COMMAND !Error=-21 RFs1 UnlockDrive PBASE-F32-RFS-PublicApi-1041-001-UnlockDrive_command11 |
|
56 |
COMMAND RFs1 UnlockDrive PBASE-F32-RFS-PublicApi-1041-001-UnlockDrive_command12 |
|
57 |
COMMAND RFs1 ClearPassword PBASE-F32-RFS-PublicApi-1041-001-ClearPassword_command13 |
|
58 |
COMMAND RFs1 Close |
|
59 |
COMMAND RFs1 ~ |
|
60 |
END_TEST_BLOCK |
|
61 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1041 |
|
62 |
||
63 |
||
64 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1056 |
|
65 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1056 |
|
66 |
//! @SYMAPI RFs |
|
67 |
//! @SYMCreationDate 22/08/2006 |
|
68 |
//! @SYMTestCaseDesc ClearPassword() test. Testing with invalid password. |
|
69 |
//! Uses API elements: ClearPassword(), LockDrive(), UnlockDrive(). |
|
70 |
//! @SYMTestActions 1. Call Connect(). |
|
71 |
//! 2. Call LockDrive() with MMC-card drive's number and 'test' password. |
|
72 |
//! 3. Open/Close MMC-card doors. |
|
73 |
//! 4. Call UnlockDrive() with MMC-card drive's number and 'test' password. |
|
74 |
//! 5. Call ClearPassword() passing MMC-card drive's number and wrong password. |
|
75 |
//! 6. Call ClearPassword() passing MMC-card drive's number and 'test' as password. |
|
76 |
//! 7. Call Close(). |
|
77 |
//! @SYMTestStatus Implemented |
|
78 |
//! @SYMTestPriority High |
|
79 |
//! @SYMTestExpectedResults Function ClearPassworPassword() returns KErrAccessDenied. |
|
80 |
//! @SYMTestType CIT |
|
81 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-REM-manual.ini |
|
82 |
CREATE_OBJECT RFs RFs1 |
|
83 |
COMMAND RFs1 new |
|
84 |
COMMAND RFs1 Connect |
|
85 |
COMMAND RFs1 LockDrive PBASE-F32-RFS-PublicApi-1056-001-LockDrive_command03 |
|
86 |
COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-1056-001-NotifyChange_command05 |
|
87 |
COMMAND RFs1 prompt |
|
88 |
OUTSTANDING |
|
89 |
COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-1056-001-NotifyChange_command07 |
|
90 |
OUTSTANDING |
|
91 |
COMMAND RFs1 UnlockDrive PBASE-F32-RFS-PublicApi-1056-001-UnlockDrive_command09 |
|
92 |
COMMAND !Error=-21 RFs1 ClearPassword PBASE-F32-RFS-PublicApi-1056-001-ClearPassword_command10 |
|
93 |
COMMAND RFs1 ClearPassword PBASE-F32-RFS-PublicApi-1056-001-ClearPassword_command11 |
|
94 |
COMMAND RFs1 Close |
|
95 |
COMMAND RFs1 ~ |
|
96 |
END_TEST_BLOCK |
|
97 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1056 |
|
98 |
||
99 |
||
100 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1067 |
|
101 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1067 |
|
102 |
//! @SYMAPI RFs |
|
103 |
//! @SYMCreationDate 22/08/2006 |
|
104 |
//! @SYMScriptInfo This test case should DESTROY all your data on MMC card. |
|
105 |
//! @SYMTestCaseDesc ErasePassword() test. Passing existing drive as paramter. Drive should be an MMC card. |
|
106 |
//! Uses API elements: ErasePassword() |
|
107 |
//! @SYMTestActions 1. Call Connect(). |
|
108 |
//! 2. Call LockDrive() passing MMC drive's with fat filesystem number and "test" as password. |
|
109 |
//! 3. Open/Close card door. |
|
110 |
//! 4. Call ErasePassword() passing MMC drive's with FAT filesystem number. |
|
111 |
//! 5. Call Close(). |
|
112 |
//! 6. Reformatting MMC-drive with EHighDensity parameter.(step PBASE-F32-RFS-PublicApi-1067-002) |
|
113 |
//! 7. Copying USBLOAD.ZIP to MMC drive.(step PBASE-F32-RFS-PublicApi-1067-003) |
|
114 |
//! @SYMTestStatus Implemented |
|
115 |
//! @SYMTestPriority Critical |
|
116 |
//! @SYMTestExpectedResults Function ErasePassword() erase a drive and clears password and returns KErrNone. |
|
117 |
//! @SYMTestType CIT |
|
118 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-REM-manual.ini |
|
119 |
CREATE_OBJECT RFs RFs1 |
|
120 |
COMMAND RFs1 new |
|
121 |
COMMAND RFs1 Connect |
|
122 |
COMMAND RFs1 LockDrive PBASE-F32-RFS-PublicApi-1067-001-LockDrive_command03 |
|
123 |
COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-1067-001-NotifyChange_command05 |
|
124 |
COMMAND RFs1 prompt |
|
125 |
OUTSTANDING |
|
126 |
COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-1067-001-NotifyChange_command07 |
|
127 |
OUTSTANDING |
|
128 |
COMMAND RFs1 ErasePassword PBASE-F32-RFS-PublicApi-1067-001-ErasePassword_command09 |
|
129 |
COMMAND RFs1 Close |
|
130 |
COMMAND RFs1 ~ |
|
131 |
END_TEST_BLOCK |
|
132 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-REM-manual.ini |
|
133 |
CREATE_OBJECT RFs rfs |
|
134 |
CREATE_OBJECT RFormat format |
|
135 |
COMMAND rfs new |
|
136 |
COMMAND rfs Connect |
|
137 |
COMMAND format new PBASE-F32-RFS-PublicApi-1067-002-new_command04 |
|
138 |
COMMAND format Open PBASE-F32-RFS-PublicApi-1067-002-Open_command05 |
|
139 |
COMMAND format Next |
|
140 |
COMMAND format Close |
|
141 |
COMMAND format ~ |
|
142 |
COMMAND rfs Close |
|
143 |
COMMAND rfs ~ |
|
144 |
END_TEST_BLOCK |
|
145 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-REM-manual.ini |
|
146 |
CREATE_OBJECT RFs rfs |
|
147 |
CREATE_OBJECT CFileMan fileMan |
|
148 |
CREATE_OBJECT RFile file |
|
149 |
COMMAND rfs new |
|
150 |
COMMAND rfs Connect |
|
151 |
COMMAND file new |
|
152 |
COMMAND file Open PBASE-F32-RFS-PublicApi-1067-003-Open_command05 |
|
153 |
COMMAND fileMan NewL PBASE-F32-RFS-PublicApi-1067-003-NewL_command07 |
|
154 |
COMMAND fileMan Copy PBASE-F32-RFS-PublicApi-1067-003-Copy_command08 |
|
155 |
COMMAND fileMan ~ |
|
156 |
COMMAND file Close |
|
157 |
COMMAND file ~ |
|
158 |
COMMAND rfs Close |
|
159 |
COMMAND rfs ~ |
|
160 |
END_TEST_BLOCK |
|
161 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1067 |
|
162 |
||
163 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1011 |
|
164 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1011 |
|
165 |
//! @SYMAPI RFs |
|
166 |
//! @SYMAuthor Anton Grober |
|
167 |
//! @SYMCreationDate 22/08/2006 |
|
168 |
//! @SYMTestCaseDesc LockDrive(), UnlockDrive() and ClearPassword() tests. LockDrive() locks MMC card using a short password, UnlockDrive() unlocks using same password and ClearPassword() clears the password. |
|
169 |
//! Uses API elements: LockDrive(), UnlockDrive(), ClearPassword() |
|
170 |
//! @SYMTestActions 1. Call Connect(). |
|
171 |
//! 2. Call LockDrive() passing drive's with FAT filesystem number as first parameter passing "test"(TMediaPassword type) as second parameter. |
|
172 |
//! 3. Open/close card door. |
|
173 |
//! 4. Call UnlockDrive() passing drive's with FAT filesystem number as first parameter and "test"(TMediaPassword type) as second parameter. |
|
174 |
//! 5. Open/close card door. |
|
175 |
//! 6. Call ClearPassword() passing drive's with FAT filesystem number as first parameter and "test"(TMediaPassword type) as second parameter. |
|
176 |
//! 7. Open/close card door. |
|
177 |
//! 8. Call Close(). |
|
178 |
//! @SYMTestStatus Implemented |
|
179 |
//! @SYMTestPriority Critical |
|
180 |
//! @SYMTestExpectedResults Function LockDrive() returns KErrNone. Function UnlockDrive() returns KErrNone. Function ClearPassword() returns KErrNone. |
|
181 |
//! @SYMTestType CIT |
|
182 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-REM-manual.ini |
|
183 |
CREATE_OBJECT RFs RFs1 |
|
184 |
COMMAND RFs1 new |
|
185 |
COMMAND RFs1 Connect |
|
186 |
COMMAND RFs1 LockDrive PBASE-F32-RFS-PublicApi-1011-001-LockDrive_command03 |
|
187 |
COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-1011-001-NotifyChange_command05 |
|
188 |
COMMAND RFs1 prompt |
|
189 |
OUTSTANDING |
|
190 |
COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-1011-001-NotifyChange_command08 |
|
191 |
COMMAND RFs1 Drive PBASE-F32-RFS-PublicApi-1011-001-Drive_command07 |
|
192 |
OUTSTANDING |
|
193 |
COMMAND RFs1 Drive PBASE-F32-RFS-PublicApi-1011-001-Drive_command10 |
|
194 |
COMMAND RFs1 UnlockDrive PBASE-F32-RFS-PublicApi-1011-001-UnlockDrive_command11 |
|
195 |
COMMAND RFs1 ClearPassword PBASE-F32-RFS-PublicApi-1011-001-ClearPassword_command12 |
|
196 |
COMMAND RFs1 Close |
|
197 |
COMMAND RFs1 ~ |
|
198 |
END_TEST_BLOCK |
|
199 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1011 |
|
200 |
||
201 |
||
202 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1039 |
|
203 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1039 |
|
204 |
//! @SYMAPI RFs |
|
205 |
//! @SYMAuthor Anton Grober |
|
206 |
//! @SYMCreationDate 02/10/2006 |
|
207 |
//! @SYMTestCaseDesc LockDrive() function test. Passing invalid password as parameter. |
|
208 |
//! Uses API elements: LockDrive(). |
|
209 |
//! @SYMTestActions 1. Call Connect(). |
|
210 |
//! 2. Call LockDrive() passing some valid drive's number as drive number parameter and some password. |
|
211 |
//! 3. Open/close MMC card door. |
|
212 |
//! 4. Call LockDrive() passing same drive's number as drive number parameter and invalid password as old password. |
|
213 |
//! 5. Call UnlockDrive() with valid password and same drive to be able to clear password later. |
|
214 |
//! 6. Call ClearPassword() to clean up changes. |
|
215 |
//! 7. Call Close(). |
|
216 |
//! @SYMTestStatus Implemented |
|
217 |
//! @SYMTestPriority High |
|
218 |
//! @SYMTestExpectedResults Function LockDrive() returns KErrAccessDenied. |
|
219 |
//! @SYMTestType CIT |
|
220 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-REM-manual.ini |
|
221 |
CREATE_OBJECT RFs RFs1 |
|
222 |
COMMAND RFs1 new |
|
223 |
COMMAND RFs1 Connect |
|
224 |
COMMAND RFs1 LockDrive PBASE-F32-RFS-PublicApi-1039-001-LockDrive_command03 |
|
225 |
COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-1039-001-NotifyChange_command05 |
|
226 |
COMMAND RFs1 prompt |
|
227 |
OUTSTANDING |
|
228 |
COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-1039-001-NotifyChange_command07 |
|
229 |
OUTSTANDING |
|
230 |
COMMAND !Error=-21 RFs1 LockDrive PBASE-F32-RFS-PublicApi-1039-001-LockDrive_command09 |
|
231 |
COMMAND RFs1 UnlockDrive PBASE-F32-RFS-PublicApi-1039-001-UnlockDrive_command10 |
|
232 |
COMMAND RFs1 ClearPassword PBASE-F32-RFS-PublicApi-1039-001-ClearPassword_command11 |
|
233 |
COMMAND RFs1 Close |
|
234 |
COMMAND RFs1 ~ |
|
235 |
END_TEST_BLOCK |
|
236 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1039 |
|
237 |
||
238 |
||
239 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1054 |
|
240 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1054 |
|
241 |
//! @SYMAPI RFs |
|
242 |
//! @SYMAuthor Anton Grober |
|
243 |
//! @SYMCreationDate 4/01/2007 |
|
244 |
//! @SYMTestCaseDesc Volume() test on locked MMC-drive. |
|
245 |
//! Uses API elements: Volume(). |
|
246 |
//! @SYMTestActions 1. Call Connect(). |
|
247 |
//! 2. Call LockDrive() with MMCCardDrive as parameter and "test" as password. |
|
248 |
//! 3. Open/Close MMC-card door. |
|
249 |
//! 4. Call Volume() with MMCCardDrive as parameter. |
|
250 |
//! 5. Call UnlockDrive() with MMCCardDrive as parameter and "test" as password.. |
|
251 |
//! 6. Call ClearPassword() with MMCCardDrive as parameter and "test" as password.. |
|
252 |
//! 7. Call Close(). |
|
253 |
//! @SYMTestStatus Implemented |
|
254 |
//! @SYMTestPriority High |
|
255 |
//! @SYMTestExpectedResults Function Volume() returns KErrLocked. |
|
256 |
//! @SYMTestType CIT |
|
257 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-REM-manual.ini |
|
258 |
CREATE_OBJECT RFs RFs1 |
|
259 |
COMMAND RFs1 new |
|
260 |
COMMAND RFs1 Connect |
|
261 |
COMMAND RFs1 LockDrive PBASE-F32-RFS-PublicApi-1054-001-LockDrive_command03 |
|
262 |
COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-1054-001-NotifyChange_command05 |
|
263 |
COMMAND RFs1 prompt |
|
264 |
OUTSTANDING |
|
265 |
COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-1054-001-NotifyChange_command07 |
|
266 |
OUTSTANDING |
|
267 |
COMMAND !Error=-22 RFs1 Volume PBASE-F32-RFS-PublicApi-1054-001-Volume_command09 |
|
268 |
COMMAND RFs1 UnlockDrive PBASE-F32-RFS-PublicApi-1054-001-UnlockDrive_command10 |
|
269 |
COMMAND RFs1 ClearPassword PBASE-F32-RFS-PublicApi-1054-001-ClearPassword_command11 |
|
270 |
COMMAND RFs1 Close |
|
271 |
COMMAND RFs1 ~ |
|
272 |
END_TEST_BLOCK |
|
273 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1054 |
|
274 |
||
275 |
||
276 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1055 |
|
277 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1055 |
|
278 |
//! @SYMAPI RFs |
|
279 |
//! @SYMAuthor Anton Grober |
|
280 |
//! @SYMCreationDate 4/01/2007 |
|
281 |
//! @SYMTestCaseDesc ReserveDriveSpace() test on locked MMC-drive. |
|
282 |
//! Uses API elements: ReserveDriveSpace(), LockDrive(), UnlockDrive(), ClearPassword(). |
|
283 |
//! @SYMTestActions 1. Call Connect(). |
|
284 |
//! 2. Call LockDrive() with MMCardDrive as parameter and "test" as password. |
|
285 |
//! 3. Open/Close MMC-card door. |
|
286 |
//! 4. Call ReserveDriveSpace() with MMCardDrive as parameter and some space to reserve. |
|
287 |
//! 5. Call UnlockDrive() with MMCardDrive as parameter and "test" as password.. |
|
288 |
//! 6. Call ClearPassword() with MMCardDrive as parameter and "test" as password.. |
|
289 |
//! 7. Call Close(). |
|
290 |
//! @SYMTestStatus Implemented |
|
291 |
//! @SYMTestPriority High |
|
292 |
//! @SYMTestExpectedResults Function ReserveDriveSpace() return KErrLocked. |
|
293 |
//! @SYMTestType CIT |
|
294 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-REM-manual.ini |
|
295 |
CREATE_OBJECT RFs RFs1 |
|
296 |
COMMAND RFs1 new |
|
297 |
COMMAND RFs1 Connect |
|
298 |
COMMAND RFs1 LockDrive PBASE-F32-RFS-PublicApi-1055-001-LockDrive_command03 |
|
299 |
COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-1055-001-NotifyChange_command05 |
|
300 |
COMMAND RFs1 prompt |
|
301 |
OUTSTANDING |
|
302 |
COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-1055-001-NotifyChange_command07 |
|
303 |
OUTSTANDING |
|
304 |
COMMAND !Error=-22 RFs1 ReserveDriveSpace PBASE-F32-RFS-PublicApi-1055-001-ReserveDriveSpace_command09 |
|
305 |
COMMAND RFs1 UnlockDrive PBASE-F32-RFS-PublicApi-1055-001-UnlockDrive_command10 |
|
306 |
COMMAND RFs1 ClearPassword PBASE-F32-RFS-PublicApi-1055-001-ClearPassword_command11 |
|
307 |
COMMAND RFs1 Close |
|
308 |
COMMAND RFs1 ~ |
|
309 |
END_TEST_BLOCK |
|
310 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1055 |
|
311 |
||
312 |
||
313 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1057 |
|
314 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1057 |
|
315 |
//! @SYMAPI RFs |
|
316 |
//! @SYMScriptInfo This test case could DESTROY all your data on MMC card. |
|
317 |
//! @SYMCreationDate 22/08/2006 |
|
318 |
//! @SYMTestCaseDesc ErasePassword() test. Trying to ErasePassword() in unlockded state(locked and after being unlocked). |
|
319 |
//! Uses API elements: ErasePassword() |
|
320 |
//! @SYMTestActions 1. Call Connect(). |
|
321 |
//! 2. Call LockDrive() with MMC-card drive's number and 'test' password. |
|
322 |
//! 3. Open/Close MMC-card doors. |
|
323 |
//! 4. Call UnlockDrive() with MMC-card drive's number and 'test' password. |
|
324 |
//! 5. Call ErasePassword() passing MMC-card drive's number. |
|
325 |
//! 6. Call ClearPassword() passing MMC-card drive's number. |
|
326 |
//! 7. Call Close(). |
|
327 |
//! @SYMTestStatus Implemented |
|
328 |
//! @SYMTestPriority Critical |
|
329 |
//! @SYMTestExpectedResults Function ErasePassword() returns KErrAccessDenied as drive is not locked. |
|
330 |
//! @SYMTestType CIT |
|
331 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-REM-manual.ini |
|
332 |
CREATE_OBJECT RFs RFs1 |
|
333 |
COMMAND RFs1 new |
|
334 |
COMMAND RFs1 Connect |
|
335 |
COMMAND RFs1 LockDrive PBASE-F32-RFS-PublicApi-1057-001-LockDrive_command03 |
|
336 |
COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-1057-001-NotifyChange_command05 |
|
337 |
COMMAND RFs1 prompt |
|
338 |
OUTSTANDING |
|
339 |
COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-1057-001-NotifyChange_command07 |
|
340 |
OUTSTANDING |
|
341 |
COMMAND RFs1 UnlockDrive PBASE-F32-RFS-PublicApi-1057-001-UnlockDrive_command09 |
|
342 |
COMMAND !Error=-21 RFs1 ErasePassword PBASE-F32-RFS-PublicApi-1057-001-ErasePassword_command10 |
|
343 |
COMMAND RFs1 ClearPassword PBASE-F32-RFS-PublicApi-1057-001-ClearPassword_command11 |
|
344 |
COMMAND RFs1 Close |
|
345 |
COMMAND RFs1 ~ |
|
346 |
END_TEST_BLOCK |
|
347 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1057 |