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 |
|
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 that perform operations on a removeable RAM drive. |
|
21 |
||
22 |
LOAD_SUITE T_Sfsrv |
|
23 |
||
24 |
||
25 |
||
26 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1005 |
|
27 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1005 |
|
28 |
//! @SYMAPI RFs |
|
29 |
//! @SYMAuthor Anton Grober |
|
30 |
//! @SYMCreationDate 22/08/2006 |
|
31 |
//! @SYMTestCaseDesc GetMediaSerialNumber() passing exisiting drive index as parameter. |
|
32 |
//! Uses API elements: GetMediaSerialNumber() |
|
33 |
//! @SYMTestActions 1. Call Connect(). |
|
34 |
//! 2. Call GetMediaSerialNumber() passing TMediaSerialNumber as first parameter path and some drive which support serial number feature as second parameter . |
|
35 |
//! 3. Call Close(). |
|
36 |
//! @SYMTestStatus Implemented |
|
37 |
//! @SYMTestPriority Critical |
|
38 |
//! @SYMTestExpectedResults Function GetMediaSerialNumber() returns KErrNone. |
|
39 |
//! @SYMTestType CIT |
|
40 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-REM.ini |
|
41 |
CREATE_OBJECT RFs RFs1 |
|
42 |
COMMAND RFs1 new |
|
43 |
COMMAND RFs1 Connect |
|
44 |
COMMAND RFs1 GetMediaSerialNumber PBASE-F32-RFS-PublicApi-1005-001-GetMediaSerialNumber_command03 |
|
45 |
COMMAND RFs1 Close |
|
46 |
COMMAND RFs1 ~ |
|
47 |
END_TEST_BLOCK |
|
48 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1005 |
|
49 |
||
50 |
||
51 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1068 |
|
52 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1068 |
|
53 |
//! @SYMAPI RFs |
|
54 |
//! @SYMCreationDate 22/08/2006 |
|
55 |
//! @SYMTestCaseDesc ErasePassword() test. Tring to call ErasePassword() in non-locked state(no password and not locked). |
|
56 |
//! Uses API elements: ErasePassword() |
|
57 |
//! @SYMTestActions 1. Call Connect(). |
|
58 |
//! 2. Call ErasePassword() passing MMC-card drive's number. |
|
59 |
//! 3. Call Close(). |
|
60 |
//! @SYMTestStatus Implemented |
|
61 |
//! @SYMTestPriority High |
|
62 |
//! @SYMTestExpectedResults Function ErasePassword() returns KErrAccessDenied as drive is not locked. |
|
63 |
//! @SYMTestType CIT |
|
64 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-REM.ini |
|
65 |
CREATE_OBJECT RFs RFs1 |
|
66 |
COMMAND RFs1 new |
|
67 |
COMMAND RFs1 Connect |
|
68 |
COMMAND !Error=-21 RFs1 ErasePassword PBASE-F32-RFS-PublicApi-1068-001-ErasePassword_command03 |
|
69 |
COMMAND RFs1 Close |
|
70 |
COMMAND RFs1 ~ |
|
71 |
END_TEST_BLOCK |
|
72 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-REM.ini |
|
73 |
CREATE_OBJECT RFormat format |
|
74 |
CREATE_OBJECT RFs rfs |
|
75 |
COMMAND rfs new |
|
76 |
COMMAND rfs Connect |
|
77 |
COMMAND format new |
|
78 |
COMMAND format Open PBASE-F32-RFS-PublicApi-1068-002-Open_command05 |
|
79 |
COMMAND format Next |
|
80 |
COMMAND format Close |
|
81 |
COMMAND format ~ |
|
82 |
COMMAND rfs Close |
|
83 |
COMMAND rfs ~ |
|
84 |
END_TEST_BLOCK |
|
85 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-REM.ini |
|
86 |
CREATE_OBJECT RFs rfs |
|
87 |
CREATE_OBJECT CFileMan fileMan |
|
88 |
CREATE_OBJECT RFile file |
|
89 |
COMMAND rfs new |
|
90 |
COMMAND rfs Connect |
|
91 |
COMMAND file new |
|
92 |
COMMAND file Open PBASE-F32-RFS-PublicApi-1068-003-Open_command05 |
|
93 |
COMMAND fileMan NewL PBASE-F32-RFS-PublicApi-1068-003-NewL_command07 |
|
94 |
COMMAND fileMan Copy PBASE-F32-RFS-PublicApi-1068-003-Copy_command08 |
|
95 |
COMMAND fileMan ~ |
|
96 |
COMMAND file Close |
|
97 |
COMMAND file ~ |
|
98 |
COMMAND rfs Close |
|
99 |
COMMAND rfs ~ |
|
100 |
END_TEST_BLOCK |
|
101 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1068 |
|
102 |
||
103 |
||
104 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1076 |
|
105 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1076 |
|
106 |
//! @SYMAPI RFs |
|
107 |
//! @SYMCreationDate 22/08/2006 |
|
108 |
//! @SYMTestCaseDesc UnlockDrive() test. Passing non-locked drive's number as parameter. |
|
109 |
//! Uses API elements: UnlockDrive(). |
|
110 |
//! @SYMTestActions 1. Call Connect(). |
|
111 |
//! 2. Call UnlockDrive() passing MMC drive's number and 'test' as password. |
|
112 |
//! 3. Call Close(). |
|
113 |
//! @SYMTestStatus Implemented |
|
114 |
//! @SYMTestPriority High |
|
115 |
//! @SYMTestExpectedResults Function UnlockDrive() returns KErrAlreadyExists. |
|
116 |
//! @SYMTestType CIT |
|
117 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-REM.ini |
|
118 |
CREATE_OBJECT RFs RFs1 |
|
119 |
COMMAND RFs1 new |
|
120 |
COMMAND RFs1 Connect |
|
121 |
COMMAND !Error=-11 RFs1 UnlockDrive PBASE-F32-RFS-PublicApi-1076-001-UnlockDrive_command03 |
|
122 |
COMMAND RFs1 Close |
|
123 |
COMMAND RFs1 ~ |
|
124 |
END_TEST_BLOCK |
|
125 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1076 |
|
126 |
||
127 |
||
128 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1100 |
|
129 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1100 |
|
130 |
//! @SYMAPI RFs |
|
131 |
//! @SYMCreationDate 26/03/2007 |
|
132 |
//! @SYMTestCaseDesc FinaliseDrives() test. |
|
133 |
//! Uses API elements: FinaliseDrives(). |
|
134 |
//! @SYMTestActions 1. Call Connect(). |
|
135 |
//! 2. Call FinaliseDrives(). |
|
136 |
//! 3. Call Close(). |
|
137 |
//! @SYMTestStatus Implemented |
|
138 |
//! @SYMTestPriority High |
|
139 |
//! @SYMTestExpectedResults Function FinaliseDrives() returns KErrNone. |
|
140 |
//! @SYMTestType CIT |
|
141 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-REM.ini |
|
142 |
CREATE_OBJECT RFs RFs1 |
|
143 |
COMMAND RFs1 new |
|
144 |
COMMAND RFs1 Connect |
|
145 |
COMMAND RFs1 FinaliseDrives |
|
146 |
COMMAND RFs1 Close |
|
147 |
COMMAND RFs1 ~ |
|
148 |
END_TEST_BLOCK |
|
149 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1100 |
|
150 |
||
151 |
START_TESTCASE PBASE-F32-RFS-PublicApi-1073 |
|
152 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-1073 |
|
153 |
//! @SYMAPI RFs |
|
154 |
//! @SYMCreationDate 22/08/2006 |
|
155 |
//! @SYMTestCaseDesc ClearPassword() test. Testing in non-locked state. |
|
156 |
//! Uses API elements: ClearPassword() |
|
157 |
//! @SYMTestActions 1. Call Connect(). |
|
158 |
//! 2. Call ClearPassword() passing MMC-card drive's number and 'test' as password. |
|
159 |
//! 3. Call Close(). |
|
160 |
//! @SYMTestStatus Implemented |
|
161 |
//! @SYMTestPriority High |
|
162 |
//! @SYMTestExpectedResults Function ClearPassword() returns KErrAccessDenied(-21). |
|
163 |
//! @SYMTestType CIT |
|
164 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Drives-PublicApi-REM.ini |
|
165 |
CREATE_OBJECT RFs RFs1 |
|
166 |
COMMAND RFs1 new |
|
167 |
COMMAND RFs1 Connect |
|
168 |
COMMAND !Error=-21 RFs1 ClearPassword PBASE-F32-RFS-PublicApi-1073-001-ClearPassword_command03 |
|
169 |
COMMAND RFs1 Close |
|
170 |
COMMAND RFs1 ~ |
|
171 |
END_TEST_BLOCK |
|
172 |
END_TESTCASE PBASE-F32-RFS-PublicApi-1073 |
|
173 |
||
174 |