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-Files-PublicApi-RAM |
|
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 perform operations on a RAM (not removeable RAM drive). |
|
21 |
||
22 |
LOAD_SUITE T_Sfsrv |
|
23 |
||
24 |
||
25 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2001 |
|
26 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2001 |
|
27 |
//! @SYMAPI RFs |
|
28 |
//! @SYMTestCaseDesc Functions SetSessionPath() and SessionPath() test. |
|
29 |
//! Uses API elements: SetSessionPath(), SessionPath(). |
|
30 |
//! @SYMTestActions 1. Call Connect() method. |
|
31 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
32 |
//! 3. Call SessionPath() and check that it returns "<DRIVE>:\base\T_Sfsrv\" where <DRIVE> is a test drive letter. |
|
33 |
//! 4. Call Close() method. |
|
34 |
//! @SYMTestStatus Implemented |
|
35 |
//! @SYMTestPriority Critical |
|
36 |
//! @SYMTestExpectedResults The path "<DRIVE>:\base\T_Sfsrv\" was successfully set and get where <DRIVE> is a test drive letter. |
|
37 |
//! @SYMTestType CIT |
|
38 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
39 |
CREATE_OBJECT RFs RFs1 |
|
40 |
COMMAND RFs1 new |
|
41 |
COMMAND RFs1 Connect |
|
42 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2001-001-SetSessionPath_command03 |
|
43 |
COMMAND RFs1 SessionPath PBASE-F32-RFS-PublicApi-2001-001-SessionPath_command04 |
|
44 |
COMMAND RFs1 Close |
|
45 |
COMMAND RFs1 ~ |
|
46 |
END_TEST_BLOCK |
|
47 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2001 |
|
48 |
||
49 |
||
50 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2002 |
|
51 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2002 |
|
52 |
//! @SYMAPI RFs |
|
53 |
//! @SYMTestCaseDesc Function RealName() test. |
|
54 |
//! Uses API elements: RealName(). |
|
55 |
//! @SYMTestActions 1. Call Connect() method. |
|
56 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
57 |
//! 3. Call RealName() and pass "test.txt" as parameter, |
|
58 |
//! and check that it returns "<DRIVE>:\base\T_Sfsrv\test.txt" where <DRIVE> is a test drive letter. |
|
59 |
//! 4. Call Close() method. |
|
60 |
//! @SYMTestStatus Implemented |
|
61 |
//! @SYMTestPriority Critical |
|
62 |
//! @SYMTestExpectedResults Function RealName() return "<DRIVE>:\base\T_Sfsrv\test.txt" successfully where <DRIVE> is a test drive letter. |
|
63 |
//! @SYMTestType CIT |
|
64 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
65 |
CREATE_OBJECT RFs RFs1 |
|
66 |
CREATE_OBJECT RFile RFile1 |
|
67 |
COMMAND RFs1 new |
|
68 |
COMMAND RFs1 Connect |
|
69 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2002-001-SetSessionPath_command03 |
|
70 |
COMMAND RFile1 new |
|
71 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2002-001-Create_command06 |
|
72 |
COMMAND RFile1 Close |
|
73 |
COMMAND RFile1 ~ |
|
74 |
COMMAND RFs1 RealName PBASE-F32-RFS-PublicApi-2002-001-RealName_command10 |
|
75 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2002-001-Delete_command11 |
|
76 |
COMMAND RFs1 Close |
|
77 |
COMMAND RFs1 ~ |
|
78 |
END_TEST_BLOCK |
|
79 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2002 |
|
80 |
||
81 |
||
82 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2003 |
|
83 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2003 |
|
84 |
//! @SYMAPI RFs |
|
85 |
//! @SYMTestCaseDesc Function Parse(const TDesC &aName, TParse &aParse) test. |
|
86 |
//! Uses API elements: Parse(). |
|
87 |
//! @SYMTestActions 1. Call Connect() method. |
|
88 |
//! 2. Create a file "test03.txt" in a "<DRIVE>:\base\T_Sfsrv\" directory where <DRIVE> is a test drive letter. |
|
89 |
//! 3. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
90 |
//! 4. Call Parse() and pass "test03.txt" as parameter, |
|
91 |
//! and check that it return "test03" as a name of file, ".txt" as a extension. |
|
92 |
//! 5. Remove the test03.txt file. |
|
93 |
//! 6. Call Close() method. |
|
94 |
//! @SYMTestStatus Implemented |
|
95 |
//! @SYMTestPriority Critical |
|
96 |
//! @SYMTestExpectedResults Function Parse() return KErrNone, "test03" and ".txt" returned successfully. |
|
97 |
//! @SYMTestType CIT |
|
98 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
99 |
CREATE_OBJECT RFs RFs1 |
|
100 |
CREATE_OBJECT RFile RFile1 |
|
101 |
COMMAND RFs1 new |
|
102 |
COMMAND RFs1 Connect |
|
103 |
COMMAND RFile1 new |
|
104 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2003-001-Create_command05 |
|
105 |
COMMAND RFile1 Close |
|
106 |
COMMAND RFile1 ~ |
|
107 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2003-001-SetSessionPath_command09 |
|
108 |
COMMAND RFs1 Parse PBASE-F32-RFS-PublicApi-2003-001-Parse_command10 |
|
109 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2003-001-Delete_command11 |
|
110 |
COMMAND RFs1 Close |
|
111 |
COMMAND RFs1 ~ |
|
112 |
END_TEST_BLOCK |
|
113 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2003 |
|
114 |
||
115 |
||
116 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2004 |
|
117 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2004 |
|
118 |
//! @SYMAPI RFs |
|
119 |
//! @SYMTestCaseDesc Function Parse(const TDesC &aName, const TDesC &aRelated, TParse &aParse) test. |
|
120 |
//! Uses API elements: Parse(). |
|
121 |
//! @SYMTestActions 1. Call Connect() method. |
|
122 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
123 |
//! 3. Call Parse() and pass "*&test.txt" as parameter, |
|
124 |
//! and check that it return "test" as a name of file, ".txt" as a extension and "*" as a related. |
|
125 |
//! 4. Call Close() method. |
|
126 |
//! @SYMTestStatus Implemented |
|
127 |
//! @SYMTestPriority Critical |
|
128 |
//! @SYMTestExpectedResults Function Parse() return KErrNone, "test",".txt" and "*" returned successfully. |
|
129 |
//! @SYMTestType CIT |
|
130 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
131 |
CREATE_OBJECT RFs RFs1 |
|
132 |
CREATE_OBJECT RFile RFile1 |
|
133 |
COMMAND RFs1 new |
|
134 |
COMMAND RFs1 Connect |
|
135 |
COMMAND RFile1 new |
|
136 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2004-001-Create_command05 |
|
137 |
COMMAND RFile1 Close |
|
138 |
COMMAND RFile1 ~ |
|
139 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2004-001-SetSessionPath_command09 |
|
140 |
COMMAND RFs1 Parse PBASE-F32-RFS-PublicApi-2004-001-Parse_command10 |
|
141 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2004-001-Delete_command11 |
|
142 |
COMMAND RFs1 Close |
|
143 |
COMMAND RFs1 ~ |
|
144 |
END_TEST_BLOCK |
|
145 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2004 |
|
146 |
||
147 |
||
148 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2005 |
|
149 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2005 |
|
150 |
//! @SYMAPI RFs |
|
151 |
//! @SYMTestCaseDesc Function MkDir() test. |
|
152 |
//! Uses API elements: MkDir(), GetDir(). |
|
153 |
//! @SYMTestActions 1. Call Connect() method. |
|
154 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
155 |
//! 3. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\TestDir\" as parameter. |
|
156 |
//! 4. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter, |
|
157 |
//! and check that list of directory contents has a "TestDir" of directory. |
|
158 |
//! 5. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\TestDir\" as parameter. |
|
159 |
//! 6. Call Close() method. |
|
160 |
//! @SYMTestStatus Implemented |
|
161 |
//! @SYMTestPriority Critical |
|
162 |
//! @SYMTestExpectedResults Function MkDir() return KErrNone, "<DRIVE>:\base\T_Sfsrv\TestDir\" directory was successfully created. |
|
163 |
//! @SYMTestType CIT |
|
164 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
165 |
CREATE_OBJECT RFs RFs1 |
|
166 |
COMMAND RFs1 new |
|
167 |
COMMAND RFs1 Connect |
|
168 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2005-001-SetSessionPath_command03 |
|
169 |
COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-2005-001-MkDir_command04 |
|
170 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2005-001-GetDir_command05 |
|
171 |
COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-2005-001-RmDir_command06 |
|
172 |
COMMAND RFs1 Close |
|
173 |
COMMAND RFs1 ~ |
|
174 |
END_TEST_BLOCK |
|
175 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2005 |
|
176 |
||
177 |
||
178 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2006 |
|
179 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2006 |
|
180 |
//! @SYMAPI RFs |
|
181 |
//! @SYMTestCaseDesc Function MkDirAll() test. |
|
182 |
//! Uses API elements: MkDirAll(), GetDir(). |
|
183 |
//! @SYMTestActions 1. Call Connect() method. |
|
184 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
185 |
//! 3. Call MkDirAll() and pass "<DRIVE>:\base\T_Sfsrv\TestDirAll\" as parameter. |
|
186 |
//! 4. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter, |
|
187 |
//! and check that list of directory contents has a "TestDirAll" of directory. |
|
188 |
//! 5. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\TestDirAll\" as parameter. |
|
189 |
//! 6. Call Close() method. |
|
190 |
//! @SYMTestStatus Implemented |
|
191 |
//! @SYMTestPriority Critical |
|
192 |
//! @SYMTestExpectedResults Function MkDirAll() return KErrNone, "<DRIVE>:\base\T_Sfsrv\TestDirAll\" directory was successfully created. |
|
193 |
//! @SYMTestType CIT |
|
194 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
195 |
CREATE_OBJECT RFs RFs1 |
|
196 |
COMMAND RFs1 new |
|
197 |
COMMAND RFs1 Connect |
|
198 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2006-001-SetSessionPath_command03 |
|
199 |
COMMAND RFs1 MkDirAll PBASE-F32-RFS-PublicApi-2006-001-MkDirAll_command04 |
|
200 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2006-001-GetDir_command05 |
|
201 |
COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-2006-001-RmDir_command06 |
|
202 |
COMMAND RFs1 Close |
|
203 |
COMMAND RFs1 ~ |
|
204 |
END_TEST_BLOCK |
|
205 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2006 |
|
206 |
||
207 |
||
208 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2007 |
|
209 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2007 |
|
210 |
//! @SYMAPI RFs |
|
211 |
//! @SYMTestCaseDesc Function RmDir() test. |
|
212 |
//! Uses API elements: RmDir(), GetDir(). |
|
213 |
//! @SYMTestActions 1. Call Connect() method. |
|
214 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
215 |
//! 3. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\TestDir\" as parameter. |
|
216 |
//! 4. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\TestDir\" as parameter. |
|
217 |
//! 5. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter, |
|
218 |
//! and check that list of directory contents hasn't a "TestDir" of directory. |
|
219 |
//! 6. Call Close() method. |
|
220 |
//! @SYMTestStatus Implemented |
|
221 |
//! @SYMTestPriority Critical |
|
222 |
//! @SYMTestExpectedResults Function RmDir() return KErrNone, "<DRIVE>:\base\T_Sfsrv\TestDir\" and "<DRIVE>:\base\T_Sfsrv\TestDirAll\" directories was successfully removed. |
|
223 |
//! @SYMTestType CIT |
|
224 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
225 |
CREATE_OBJECT RFs RFs1 |
|
226 |
COMMAND RFs1 new |
|
227 |
COMMAND RFs1 Connect |
|
228 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2007-001-SetSessionPath_command03 |
|
229 |
COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-2007-001-MkDir_command04 |
|
230 |
COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-2007-001-RmDir_command05 |
|
231 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2007-001-GetDir_command06 |
|
232 |
COMMAND RFs1 Close |
|
233 |
COMMAND RFs1 ~ |
|
234 |
END_TEST_BLOCK |
|
235 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2007 |
|
236 |
||
237 |
||
238 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2008 |
|
239 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2008 |
|
240 |
//! @SYMAPI RFs |
|
241 |
//! @SYMTestCaseDesc Function GetDir(const TDesC &aName, const TUidType &anEntryUid, TUint anEntrySortKey, CDir *&aFileList) test, |
|
242 |
//! with a filtered list of a directory's contents by UID type. |
|
243 |
//! Uses API elements: GetDir(). |
|
244 |
//! @SYMTestActions 1. Call Connect() method. |
|
245 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
246 |
//! 3. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter, |
|
247 |
//! and and setting up parameter "_uidtype" as "0" for including UID type in filtered list. |
|
248 |
//! 4. Call Close() method. |
|
249 |
//! @SYMTestStatus Implemented |
|
250 |
//! @SYMTestPriority Critical |
|
251 |
//! @SYMTestExpectedResults Filtered list of a directory's contents by UID type has been returned successfully. |
|
252 |
//! @SYMTestType CIT |
|
253 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
254 |
CREATE_OBJECT RFs RFs1 |
|
255 |
COMMAND RFs1 new |
|
256 |
COMMAND RFs1 Connect |
|
257 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2008-001-SetSessionPath_command03 |
|
258 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2008-001-GetDir_command04 |
|
259 |
COMMAND RFs1 Close |
|
260 |
COMMAND RFs1 ~ |
|
261 |
END_TEST_BLOCK |
|
262 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2008 |
|
263 |
||
264 |
||
265 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2009 |
|
266 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2009 |
|
267 |
//! @SYMAPI RFs |
|
268 |
//! @SYMTestCaseDesc Function GetDir(const TDesC &aName, TUint anEntryAttMask, TUint anEntrySortKey, CDir *&anEntryList, CDir *&aDirList) test, |
|
269 |
//! with a filtered list of the directory and file entries contained in a directory. |
|
270 |
//! Uses API elements: GetDir(). |
|
271 |
//! @SYMTestActions 1. Call Connect() method. |
|
272 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
273 |
//! 3. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter, |
|
274 |
//! and setting up parameter "_isdirlist" as TRUE for filtered list of directory entries only. |
|
275 |
//! 4. Call Close() method. |
|
276 |
//! @SYMTestStatus Implemented |
|
277 |
//! @SYMTestPriority Critical |
|
278 |
//! @SYMTestExpectedResults The list of a directory's and files has been returned successfully. |
|
279 |
//! @SYMTestType CIT |
|
280 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
281 |
CREATE_OBJECT RFs RFs1 |
|
282 |
COMMAND RFs1 new |
|
283 |
COMMAND RFs1 Connect |
|
284 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2009-001-SetSessionPath_command03 |
|
285 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2009-001-GetDir_command04 |
|
286 |
COMMAND RFs1 Close |
|
287 |
COMMAND RFs1 ~ |
|
288 |
END_TEST_BLOCK |
|
289 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2009 |
|
290 |
||
291 |
||
292 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2010 |
|
293 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2010 |
|
294 |
//! @SYMAPI RFs |
|
295 |
//! @SYMTestCaseDesc Function Replace() test. |
|
296 |
//! Uses API elements: Replace(), GetDir(). |
|
297 |
//! @SYMTestActions 1. Call Connect() method. |
|
298 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
299 |
//! 3. Call Replace() and pass "testing.txt" as parameter as old name and "replace.txt" as parameter as a new name of file. |
|
300 |
//! 4. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter, |
|
301 |
//! and check that list of directory contents has a "replace.txt" of file. |
|
302 |
//! 5. Call Close() method. |
|
303 |
//! @SYMTestStatus Implemented |
|
304 |
//! @SYMTestPriority Critical |
|
305 |
//! @SYMTestExpectedResults The file "testing.txt" replaced to "replace.txt" successfully. |
|
306 |
//! @SYMTestType CIT |
|
307 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
308 |
CREATE_OBJECT RFs RFs1 |
|
309 |
CREATE_OBJECT RFile RFile1 |
|
310 |
COMMAND RFs1 new |
|
311 |
COMMAND RFs1 Connect |
|
312 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2010-001-SetSessionPath_command03 |
|
313 |
COMMAND RFile1 new |
|
314 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2010-001-Create_command06 |
|
315 |
COMMAND RFile1 Close |
|
316 |
COMMAND RFile1 ~ |
|
317 |
COMMAND RFs1 Replace PBASE-F32-RFS-PublicApi-2010-001-Replace_command10 |
|
318 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2010-001-GetDir_command11 |
|
319 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2010-001-Delete_command12 |
|
320 |
COMMAND RFs1 Close |
|
321 |
COMMAND RFs1 ~ |
|
322 |
END_TEST_BLOCK |
|
323 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2010 |
|
324 |
||
325 |
||
326 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2011 |
|
327 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2011 |
|
328 |
//! @SYMAPI RFs |
|
329 |
//! @SYMTestCaseDesc Function Rename() test. |
|
330 |
//! Uses API elements: Rename(), GetDir(). |
|
331 |
//! @SYMTestActions 1. Call Connect() method. |
|
332 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
333 |
//! 3. Call Rename() and pass "testing.txt" as parameter as old name and "rename.txt" as parameter as a new name of file. |
|
334 |
//! 4. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter, |
|
335 |
//! and check that list of directory contents has a "rename.txt" of file. |
|
336 |
//! 5. Call Close() method. |
|
337 |
//! @SYMTestStatus Implemented |
|
338 |
//! @SYMTestPriority Critical |
|
339 |
//! @SYMTestExpectedResults The file "testing.txt" renamed to "rename.txt" successfully. |
|
340 |
//! @SYMTestType CIT |
|
341 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
342 |
CREATE_OBJECT RFs RFs1 |
|
343 |
CREATE_OBJECT RFile RFile1 |
|
344 |
COMMAND RFs1 new |
|
345 |
COMMAND RFs1 Connect |
|
346 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2011-001-SetSessionPath_command03 |
|
347 |
COMMAND RFile1 new |
|
348 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2011-001-Create_command06 |
|
349 |
COMMAND RFile1 Close |
|
350 |
COMMAND RFile1 ~ |
|
351 |
COMMAND RFs1 Rename PBASE-F32-RFS-PublicApi-2011-001-Rename_command10 |
|
352 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2011-001-GetDir_command11 |
|
353 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2011-001-Delete_command12 |
|
354 |
COMMAND RFs1 Close |
|
355 |
COMMAND RFs1 ~ |
|
356 |
END_TEST_BLOCK |
|
357 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2011 |
|
358 |
||
359 |
||
360 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2012 |
|
361 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2012 |
|
362 |
//! @SYMAPI RFs |
|
363 |
//! @SYMTestCaseDesc Function Delete() test. |
|
364 |
//! Uses API elements: Delete(), GetDir(). |
|
365 |
//! @SYMTestActions 1. Call Connect() method. |
|
366 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
367 |
//! 3. Call Delete() and pass "testing.txt" as parameter. |
|
368 |
//! 4. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter, |
|
369 |
//! and check that list of directory contents hasn't a "testing.txt" of file. |
|
370 |
//! 5. Call Close() method. |
|
371 |
//! @SYMTestStatus Implemented |
|
372 |
//! @SYMTestPriority Critical |
|
373 |
//! @SYMTestExpectedResults The file "testing.txt" was successfully removed. |
|
374 |
//! @SYMTestType CIT |
|
375 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
376 |
CREATE_OBJECT RFs RFs1 |
|
377 |
CREATE_OBJECT RFile RFile1 |
|
378 |
COMMAND RFs1 new |
|
379 |
COMMAND RFs1 Connect |
|
380 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2012-001-SetSessionPath_command03 |
|
381 |
COMMAND RFile1 new |
|
382 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2012-001-Create_command06 |
|
383 |
COMMAND RFile1 Close |
|
384 |
COMMAND RFile1 ~ |
|
385 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2012-001-Delete_command10 |
|
386 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2012-001-GetDir_command11 |
|
387 |
COMMAND RFs1 Close |
|
388 |
COMMAND RFs1 ~ |
|
389 |
END_TEST_BLOCK |
|
390 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2012 |
|
391 |
||
392 |
||
393 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2013 |
|
394 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2013 |
|
395 |
//! @SYMAPI RFs |
|
396 |
//! @SYMTestCaseDesc Functions Att() and SetAtt() test. |
|
397 |
//! Uses API elements: SetAtt(), Att(). |
|
398 |
//! @SYMTestActions 1. Call Connect() method. |
|
399 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
400 |
//! 3. Call SetAtt() and pass "KEntryAttReadOnly" of attribute as parameter for "test.txt" of file. |
|
401 |
//! 4. Call Att() and pass "test.txt" as parameter, |
|
402 |
//! and check that the "test.txt" file has a "KEntryAttReadOnly" of attribute. |
|
403 |
//! 5. Call SetAtt() to clear "KEntryAttReadOnly" attribute for the "test.txt" file. |
|
404 |
//! 6. Call Close() method. |
|
405 |
//! @SYMTestStatus Implemented |
|
406 |
//! @SYMTestPriority Critical |
|
407 |
//! @SYMTestExpectedResults The attribute "KEntryAttReadOnly" was successfully set and get. |
|
408 |
//! @SYMTestType CIT |
|
409 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
410 |
CREATE_OBJECT RFs RFs1 |
|
411 |
CREATE_OBJECT RFile RFile1 |
|
412 |
COMMAND RFs1 new |
|
413 |
COMMAND RFs1 Connect |
|
414 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2013-001-SetSessionPath_command03 |
|
415 |
COMMAND RFile1 new |
|
416 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2013-001-Create_command06 |
|
417 |
COMMAND RFile1 Close |
|
418 |
COMMAND RFile1 ~ |
|
419 |
COMMAND RFs1 SetAtt PBASE-F32-RFS-PublicApi-2013-001-SetAtt_command10 |
|
420 |
COMMAND RFs1 Att PBASE-F32-RFS-PublicApi-2013-001-Att_command11 |
|
421 |
COMMAND RFs1 SetAtt PBASE-F32-RFS-PublicApi-2013-001-SetAtt_command12 |
|
422 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2013-001-Delete_command13 |
|
423 |
COMMAND RFs1 Close |
|
424 |
COMMAND RFs1 ~ |
|
425 |
END_TEST_BLOCK |
|
426 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2013 |
|
427 |
||
428 |
||
429 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2014 |
|
430 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2014 |
|
431 |
//! @SYMAPI RFs |
|
432 |
//! @SYMTestCaseDesc Functions SetModified() and Modified() test. |
|
433 |
//! Uses API elements: SetModified(), Modified(). |
|
434 |
//! @SYMTestActions 1. Call Connect() method. |
|
435 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
436 |
//! 3. Call SetModified() and pass "20060101:" as parameter for "test.txt" of file. |
|
437 |
//! 4. Call Modified() and pass "test.txt" as parameter, |
|
438 |
//! and check that the "test.txt" file has a "20060101:" as last modification date. |
|
439 |
//! 5. Call Close() method. |
|
440 |
//! @SYMTestStatus Implemented |
|
441 |
//! @SYMTestPriority Critical |
|
442 |
//! @SYMTestExpectedResults The last modification date and time of a file was successfully set and get. |
|
443 |
//! @SYMTestType CIT |
|
444 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
445 |
CREATE_OBJECT RFs RFs1 |
|
446 |
CREATE_OBJECT RFile RFile1 |
|
447 |
COMMAND RFs1 new |
|
448 |
COMMAND RFs1 Connect |
|
449 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2014-001-SetSessionPath_command03 |
|
450 |
COMMAND RFile1 new |
|
451 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2014-001-Create_command06 |
|
452 |
COMMAND RFile1 Close |
|
453 |
COMMAND RFile1 ~ |
|
454 |
COMMAND RFs1 SetModified PBASE-F32-RFS-PublicApi-2014-001-SetModified_command10 |
|
455 |
COMMAND RFs1 Modified PBASE-F32-RFS-PublicApi-2014-001-Modified_command11 |
|
456 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2014-001-Delete_command12 |
|
457 |
COMMAND RFs1 Close |
|
458 |
COMMAND RFs1 ~ |
|
459 |
END_TEST_BLOCK |
|
460 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2014 |
|
461 |
||
462 |
||
463 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2015 |
|
464 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2015 |
|
465 |
//! @SYMAPI RFs |
|
466 |
//! @SYMTestCaseDesc Functions SetEntry() and Entry() test. |
|
467 |
//! Uses API elements: SetEntry(), Entry(). |
|
468 |
//! @SYMTestActions 1. Call Connect() method. |
|
469 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
470 |
//! 3. Call SetEntry() and pass "20060101:" and "KEntryAttReadOnly" as parameter for "test.txt" of file. |
|
471 |
//! 4. Call Entry() and pass "test.txt" as parameter, |
|
472 |
//! and check that the "test.txt" file has a "20060101:" as last modification date, |
|
473 |
//! and "KEntryAttReadOnly" as attribute. |
|
474 |
//! 5. Call SetEntry() to clear "KEntryAttReadOnly" attribute for the "test.txt" file. |
|
475 |
//! 6. Call Close() method. |
|
476 |
//! @SYMTestStatus Implemented |
|
477 |
//! @SYMTestPriority Critical |
|
478 |
//! @SYMTestExpectedResults The last modification date and attribute of file was successfully set and get. |
|
479 |
//! @SYMTestType CIT |
|
480 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
481 |
CREATE_OBJECT RFile RFile1 |
|
482 |
CREATE_OBJECT RFs RFs1 |
|
483 |
COMMAND RFs1 new |
|
484 |
COMMAND RFs1 Connect |
|
485 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2015-001-SetSessionPath_command03 |
|
486 |
COMMAND RFile1 new |
|
487 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2015-001-Create_command06 |
|
488 |
COMMAND RFile1 Close |
|
489 |
COMMAND RFile1 ~ |
|
490 |
COMMAND RFs1 SetEntry PBASE-F32-RFS-PublicApi-2015-001-SetEntry_command10 |
|
491 |
COMMAND RFs1 Entry PBASE-F32-RFS-PublicApi-2015-001-Entry_command11 |
|
492 |
COMMAND RFs1 SetEntry PBASE-F32-RFS-PublicApi-2015-001-SetEntry_command12 |
|
493 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2015-001-Delete_command13 |
|
494 |
COMMAND RFs1 Close |
|
495 |
COMMAND RFs1 ~ |
|
496 |
END_TEST_BLOCK |
|
497 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2015 |
|
498 |
||
499 |
||
500 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2016 |
|
501 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2016 |
|
502 |
//! @SYMAPI RFs |
|
503 |
//! @SYMTestCaseDesc Function ReadFileSection() test. |
|
504 |
//! Uses API elements: ReadFileSection(). |
|
505 |
//! @SYMTestActions 1. Call Connect() method. |
|
506 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
507 |
//! 3. Call ReadFileSection() and pass "test.txt" as parameter, offset = 0, length = 10, buffer with a length = 10. |
|
508 |
//! 4. Call Close() method. |
|
509 |
//! @SYMTestStatus Implemented |
|
510 |
//! @SYMTestPriority Critical |
|
511 |
//! @SYMTestExpectedResults The data from a file "test.txt" returned successfully and not NULL. |
|
512 |
//! @SYMTestType CIT |
|
513 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
514 |
CREATE_OBJECT RFs RFs1 |
|
515 |
CREATE_OBJECT RFile RFile1 |
|
516 |
COMMAND RFs1 new |
|
517 |
COMMAND RFs1 Connect |
|
518 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2016-001-SetSessionPath_command03 |
|
519 |
COMMAND RFile1 new |
|
520 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2016-001-Create_command06 |
|
521 |
COMMAND RFile1 Write PBASE-F32-RFS-PublicApi-2016-001-Write_command07 |
|
522 |
COMMAND RFile1 Close |
|
523 |
COMMAND RFile1 ~ |
|
524 |
COMMAND RFs1 ReadFileSection PBASE-F32-RFS-PublicApi-2016-001-ReadFileSection_command11 |
|
525 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2016-001-Delete_command12 |
|
526 |
COMMAND RFs1 Close |
|
527 |
COMMAND RFs1 ~ |
|
528 |
END_TEST_BLOCK |
|
529 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2016 |
|
530 |
||
531 |
||
532 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2017 |
|
533 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2017 |
|
534 |
//! @SYMAPI RFs |
|
535 |
//! @SYMTestCaseDesc Function IsFileOpen() test. |
|
536 |
//! Uses API elements: IsFileOpen(). |
|
537 |
//! @SYMTestActions 1. Call Connect() method. |
|
538 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
539 |
//! 3. Call IsFileOpen() and pass "test.txt" as parameter and that it is not open. |
|
540 |
//! 4. Call Close() method. |
|
541 |
//! @SYMTestStatus Implemented |
|
542 |
//! @SYMTestPriority Critical |
|
543 |
//! @SYMTestExpectedResults The file "test.txt" is closed. |
|
544 |
//! @SYMTestType CIT |
|
545 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
546 |
CREATE_OBJECT RFs RFs1 |
|
547 |
CREATE_OBJECT RFile RFile1 |
|
548 |
COMMAND RFs1 new |
|
549 |
COMMAND RFs1 Connect |
|
550 |
COMMAND RFile1 new |
|
551 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2017-001-Create_command05 |
|
552 |
COMMAND RFile1 Close |
|
553 |
COMMAND RFile1 ~ |
|
554 |
COMMAND RFs1 IsFileOpen PBASE-F32-RFS-PublicApi-2017-001-IsFileOpen_command09 |
|
555 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2017-001-Delete_command10 |
|
556 |
COMMAND RFs1 Close |
|
557 |
COMMAND RFs1 ~ |
|
558 |
END_TEST_BLOCK |
|
559 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2017 |
|
560 |
||
561 |
||
562 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2018 |
|
563 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2018 |
|
564 |
//! @SYMAPI RFs |
|
565 |
//! @SYMTestCaseDesc Function GetShortName() test. |
|
566 |
//! Uses API elements: GetShortName(). |
|
567 |
//! @SYMTestActions 1. Call Connect() method. |
|
568 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
569 |
//! 3. Call GetShortName() and pass "<DRIVE>:\base\T_Sfsrv\test.txt" as parameter, |
|
570 |
//! and check that it return "test.txt". |
|
571 |
//! 4. Call Close() method. |
|
572 |
//! @SYMTestStatus Implemented |
|
573 |
//! @SYMTestPriority Critical |
|
574 |
//! @SYMTestExpectedResults The short name "test.txt" return successfully. |
|
575 |
//! @SYMTestType CIT |
|
576 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
577 |
CREATE_OBJECT RFs RFs1 |
|
578 |
CREATE_OBJECT RFile RFile1 |
|
579 |
COMMAND RFs1 new |
|
580 |
COMMAND RFs1 Connect |
|
581 |
COMMAND RFile1 new |
|
582 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2018-001-Create_command05 |
|
583 |
COMMAND RFile1 Close |
|
584 |
COMMAND RFile1 ~ |
|
585 |
COMMAND RFs1 GetShortName PBASE-F32-RFS-PublicApi-2018-001-GetShortName_command09 |
|
586 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2018-001-Delete_command10 |
|
587 |
COMMAND RFs1 Close |
|
588 |
COMMAND RFs1 ~ |
|
589 |
END_TEST_BLOCK |
|
590 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2018 |
|
591 |
||
592 |
||
593 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2019 |
|
594 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2019 |
|
595 |
//! @SYMAPI RFs |
|
596 |
//! @SYMTestCaseDesc Function GetLongName() test. |
|
597 |
//! Uses API elements: GetLongName(). |
|
598 |
//! @SYMTestActions 1. Call Connect() method. |
|
599 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
600 |
//! 3. Call GetLongName() and pass "<DRIVE>:\base\T_Sfsrv\test.txt" as parameter, |
|
601 |
//! and check that it return "test.txt". |
|
602 |
//! 4. Call Close() method. |
|
603 |
//! @SYMTestStatus Implemented |
|
604 |
//! @SYMTestPriority Critical |
|
605 |
//! @SYMTestExpectedResults The long name "test.txt" return successfully. |
|
606 |
//! @SYMTestType CIT |
|
607 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
608 |
CREATE_OBJECT RFs RFs1 |
|
609 |
CREATE_OBJECT RFile RFile1 |
|
610 |
COMMAND RFs1 new |
|
611 |
COMMAND RFs1 Connect |
|
612 |
COMMAND RFile1 new |
|
613 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2019-001-Create_command05 |
|
614 |
COMMAND RFile1 Close |
|
615 |
COMMAND RFile1 ~ |
|
616 |
COMMAND RFs1 GetLongName PBASE-F32-RFS-PublicApi-2019-001-GetLongName_command09 |
|
617 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2019-001-Delete_command10 |
|
618 |
COMMAND RFs1 Close |
|
619 |
COMMAND RFs1 ~ |
|
620 |
END_TEST_BLOCK |
|
621 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2019 |
|
622 |
||
623 |
||
624 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2020 |
|
625 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2020 |
|
626 |
//! @SYMAPI RFs |
|
627 |
//! @SYMTestCaseDesc Function IsFileInRom() test. |
|
628 |
//! Uses API elements: IsFileInRom(). |
|
629 |
//! @SYMTestActions 1. Call Connect() method. |
|
630 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
631 |
//! 3. Call IsFileInRom() and pass "test.txt" as parameter and check that faile is not in ROM. |
|
632 |
//! 4. Call Close() method. |
|
633 |
//! @SYMTestStatus Implemented |
|
634 |
//! @SYMTestPriority Critical |
|
635 |
//! @SYMTestExpectedResults The file "test.txt" is not in ROM. |
|
636 |
//! @SYMTestType CIT |
|
637 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
638 |
CREATE_OBJECT RFs RFs1 |
|
639 |
CREATE_OBJECT RFile RFile1 |
|
640 |
COMMAND RFs1 new |
|
641 |
COMMAND RFs1 Connect |
|
642 |
COMMAND RFile1 new |
|
643 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2020-001-Create_command05 |
|
644 |
COMMAND RFile1 Close |
|
645 |
COMMAND RFile1 ~ |
|
646 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2020-001-SetSessionPath_command09 |
|
647 |
COMMAND RFs1 IsFileInRom PBASE-F32-RFS-PublicApi-2020-001-IsFileInRom_command10 |
|
648 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2020-001-Delete_command11 |
|
649 |
COMMAND RFs1 Close |
|
650 |
COMMAND RFs1 ~ |
|
651 |
END_TEST_BLOCK |
|
652 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2020 |
|
653 |
||
654 |
||
655 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2021 |
|
656 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2021 |
|
657 |
//! @SYMAPI RFs |
|
658 |
//! @SYMTestCaseDesc Function IsValidName(const TDesC &anEntryName) test. |
|
659 |
//! Uses API elements: IsValidName(). |
|
660 |
//! @SYMTestActions 1. Call Connect() method. |
|
661 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
662 |
//! 3. Call IsValidName() and pass "test.txt" as parameter and check that is valid name. |
|
663 |
//! 4. Call Close() method. |
|
664 |
//! @SYMTestStatus Implemented |
|
665 |
//! @SYMTestPriority Critical |
|
666 |
//! @SYMTestExpectedResults The filename "test.txt" is valid. |
|
667 |
//! @SYMTestType CIT |
|
668 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
669 |
CREATE_OBJECT RFs RFs1 |
|
670 |
COMMAND RFs1 new |
|
671 |
COMMAND RFs1 Connect |
|
672 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2021-001-SetSessionPath_command03 |
|
673 |
COMMAND RFs1 IsValidName PBASE-F32-RFS-PublicApi-2021-001-IsValidName_command04 |
|
674 |
COMMAND RFs1 Close |
|
675 |
COMMAND RFs1 ~ |
|
676 |
END_TEST_BLOCK |
|
677 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2021 |
|
678 |
||
679 |
||
680 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2022 |
|
681 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2022 |
|
682 |
//! @SYMAPI RFs |
|
683 |
//! @SYMTestCaseDesc Function IsValidName(const TDesC &aFileName, TText &aBadChar) test with a illegal character within a filename. |
|
684 |
//! Uses API elements: IsValidName(). |
|
685 |
//! @SYMTestActions 1. Call Connect() method. |
|
686 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
687 |
//! 3. Call IsValidName() and pass "*&^test.txt" as parameter and check that isn't valid name. |
|
688 |
//! 4. Call Close() method. |
|
689 |
//! @SYMTestStatus Implemented |
|
690 |
//! @SYMTestPriority Critical |
|
691 |
//! @SYMTestExpectedResults The filename isn't valid and illegal characters "*" returned properly. |
|
692 |
//! @SYMTestType CIT |
|
693 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
694 |
CREATE_OBJECT RFs RFs1 |
|
695 |
COMMAND RFs1 new |
|
696 |
COMMAND RFs1 Connect |
|
697 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2022-001-SetSessionPath_command03 |
|
698 |
COMMAND RFs1 IsValidName PBASE-F32-RFS-PublicApi-2022-001-IsValidName_command04 |
|
699 |
COMMAND RFs1 Close |
|
700 |
COMMAND RFs1 ~ |
|
701 |
END_TEST_BLOCK |
|
702 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2022 |
|
703 |
||
704 |
||
705 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2023 |
|
706 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2023 |
|
707 |
//! @SYMAPI RFs |
|
708 |
//! @SYMTestCaseDesc Function SetSessionToPrivate() test. |
|
709 |
//! Uses API elements: SetSessionToPrivate(). |
|
710 |
//! @SYMTestActions 1. Call Connect() method. |
|
711 |
//! 2. Call SetSessionToPrivate() and pass a drive as parameter. |
|
712 |
//! 3. Call SessionPath() method and check that it return "<DRIVE>:\Private\200041C1\" where <DRIVE> is a letter of the drive and |
|
713 |
//! "200041C1" must be the same number which is declared in mmp file as UID. |
|
714 |
//! 4. Call Close() method. |
|
715 |
//! @SYMTestStatus Implemented |
|
716 |
//! @SYMTestPriority Critical |
|
717 |
//! @SYMTestExpectedResults SessionPath() returns KErrNone and the correct private path |
|
718 |
//! @SYMTestType CIT |
|
719 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
720 |
CREATE_OBJECT RFs RFs1 |
|
721 |
COMMAND RFs1 new |
|
722 |
COMMAND RFs1 Connect |
|
723 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2023-001-SetSessionPath_command03 |
|
724 |
COMMAND RFs1 SetSessionToPrivate PBASE-F32-RFS-PublicApi-2023-001-SetSessionToPrivate_command04 |
|
725 |
COMMAND RFs1 SessionPath PBASE-F32-RFS-PublicApi-2023-001-SessionPath_command05 |
|
726 |
COMMAND RFs1 Close |
|
727 |
COMMAND RFs1 ~ |
|
728 |
END_TEST_BLOCK |
|
729 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2023 |
|
730 |
||
731 |
||
732 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2024 |
|
733 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2024 |
|
734 |
//! @SYMAPI RFs |
|
735 |
//! @SYMTestCaseDesc Function CreatePrivatePath() and PrivatePath() test. |
|
736 |
//! Uses API elements: CreatePrivatePath(), PrivatePath(). |
|
737 |
//! @SYMTestActions 1. Call Connect() method. |
|
738 |
//! 2. Call CreatePrivatePath() and pass a drive as parameter. |
|
739 |
//! 3. Call PrivatePath() and check that it returns "\Private\200041C1\" |
|
740 |
//! where "200041C1" must be the same number which is declared in mmp file as UID. |
|
741 |
//! 4. Call Close() method. |
|
742 |
//! @SYMTestStatus Implemented |
|
743 |
//! @SYMTestPriority Critical |
|
744 |
//! @SYMTestExpectedResults The private path for the drive driver created and returned successfully. |
|
745 |
//! @SYMTestType CIT |
|
746 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
747 |
CREATE_OBJECT RFs RFs1 |
|
748 |
COMMAND RFs1 new |
|
749 |
COMMAND RFs1 Connect |
|
750 |
COMMAND RFs1 CreatePrivatePath PBASE-F32-RFS-PublicApi-2024-001-CreatePrivatePath_command03 |
|
751 |
COMMAND RFs1 PrivatePath PBASE-F32-RFS-PublicApi-2024-001-PrivatePath_command04 |
|
752 |
COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-2024-001-RmDir_command05 |
|
753 |
COMMAND RFs1 Close |
|
754 |
COMMAND RFs1 ~ |
|
755 |
END_TEST_BLOCK |
|
756 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2024 |
|
757 |
||
758 |
||
759 |
/////////////////////////////// |
|
760 |
// |
|
761 |
// REALNAME |
|
762 |
// |
|
763 |
/////////////////////////////// |
|
764 |
||
765 |
||
766 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2026 |
|
767 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2026 |
|
768 |
//! @SYMAPI RFs |
|
769 |
//! @SYMCreationDate 5/10/2006 |
|
770 |
//! @SYMTestCaseDesc Functions RealName() test where file does not exist. |
|
771 |
//! Uses API elements: RealName(). |
|
772 |
//! @SYMTestActions 1. Call Connect() method. |
|
773 |
//! 2. Call RealName() and pass "<DRIVE>:\base\T_Sfsrv\none.txt" as parameter where <DRIVE> is a test drive letter. |
|
774 |
//! 3. Call Close() method. |
|
775 |
//! @SYMTestStatus Implemented |
|
776 |
//! @SYMTestPriority Critical |
|
777 |
//! @SYMTestExpectedResults Function RealName() return KErrNone. |
|
778 |
//! @SYMTestType CIT |
|
779 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
780 |
CREATE_OBJECT RFs RFs1 |
|
781 |
COMMAND RFs1 new |
|
782 |
COMMAND RFs1 Connect |
|
783 |
COMMAND RFs1 RealName PBASE-F32-RFS-PublicApi-2026-001-RealName_command03 |
|
784 |
COMMAND RFs1 Close |
|
785 |
COMMAND RFs1 ~ |
|
786 |
END_TEST_BLOCK |
|
787 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2026 |
|
788 |
||
789 |
||
790 |
||
791 |
/////////////////////////////// |
|
792 |
// |
|
793 |
// SETSESSIONPATH |
|
794 |
// |
|
795 |
/////////////////////////////// |
|
796 |
||
797 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2027 |
|
798 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2027 |
|
799 |
//! @SYMAPI RFs |
|
800 |
//! @SYMCreationDate 5/10/2006 |
|
801 |
//! @SYMTestCaseDesc Functions SetSessionPath() test where file does not exist. |
|
802 |
//! Uses API elements: SetSessionPath(). |
|
803 |
//! @SYMTestActions 1. Call Connect() method. |
|
804 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\NoneDir\" as parameter where <DRIVE> is a test drive letter. |
|
805 |
//! 3. Call Close() method. |
|
806 |
//! @SYMTestStatus Implemented |
|
807 |
//! @SYMTestPriority Critical |
|
808 |
//! @SYMTestExpectedResults Function SetSessionPath() return KErrNone. |
|
809 |
//! @SYMTestType CIT |
|
810 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
811 |
CREATE_OBJECT RFs RFs1 |
|
812 |
COMMAND RFs1 new |
|
813 |
COMMAND RFs1 Connect |
|
814 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2027-001-SetSessionPath_command03 |
|
815 |
COMMAND RFs1 Close |
|
816 |
COMMAND RFs1 ~ |
|
817 |
END_TEST_BLOCK |
|
818 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2027 |
|
819 |
||
820 |
||
821 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2028 |
|
822 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2028 |
|
823 |
//! @SYMAPI RFs |
|
824 |
//! @SYMCreationDate 5/10/2006 |
|
825 |
//! @SYMTestCaseDesc Functions SetSessionPath() negative test for session path is invalid. |
|
826 |
//! Uses API elements: SetSessionPath(). |
|
827 |
//! @SYMTestActions 1. Call Connect() method. |
|
828 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\<>:"/|\" as parameter where <DRIVE> is a test drive letter. |
|
829 |
//! 3. Call Close() method. |
|
830 |
//! @SYMTestStatus Implemented |
|
831 |
//! @SYMTestPriority High |
|
832 |
//! @SYMTestExpectedResults Function SetSessionPath() return KErrBadName. |
|
833 |
//! @SYMTestType CIT |
|
834 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
835 |
CREATE_OBJECT RFs RFs1 |
|
836 |
COMMAND RFs1 new |
|
837 |
COMMAND RFs1 Connect |
|
838 |
COMMAND !Error=-28 RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2028-001-SetSessionPath_command03 |
|
839 |
COMMAND RFs1 Close |
|
840 |
COMMAND RFs1 ~ |
|
841 |
END_TEST_BLOCK |
|
842 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2028 |
|
843 |
||
844 |
||
845 |
||
846 |
/////////////////////////////// |
|
847 |
// |
|
848 |
// PARSE |
|
849 |
// |
|
850 |
/////////////////////////////// |
|
851 |
||
852 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2029 |
|
853 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2029 |
|
854 |
//! @SYMAPI RFs |
|
855 |
//! @SYMCreationDate 5/10/2006 |
|
856 |
//! @SYMTestCaseDesc Function Parse(const TDesC &aName, TParse &aParse) test where name of parse is invalid. |
|
857 |
//! Uses API elements: Parse(). |
|
858 |
//! @SYMTestActions 1. Call Connect() method. |
|
859 |
//! 2. Call Parse() and pass "<DRIVE>:\<>:"/|.txt" as parameter where <DRIVE> is a test drive letter. |
|
860 |
//! 3. Call Close() method. |
|
861 |
//! @SYMTestStatus Implemented |
|
862 |
//! @SYMTestPriority Critical |
|
863 |
//! @SYMTestExpectedResults Function Parse() return KErrNone. |
|
864 |
//! @SYMTestType CIT |
|
865 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
866 |
CREATE_OBJECT RFs RFs1 |
|
867 |
COMMAND RFs1 new |
|
868 |
COMMAND RFs1 Connect |
|
869 |
COMMAND RFs1 Parse PBASE-F32-RFS-PublicApi-2029-001-Parse_command03 |
|
870 |
COMMAND RFs1 Close |
|
871 |
COMMAND RFs1 ~ |
|
872 |
END_TEST_BLOCK |
|
873 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2029 |
|
874 |
||
875 |
||
876 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2031 |
|
877 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2031 |
|
878 |
//! @SYMAPI RFs |
|
879 |
//! @SYMCreationDate 5/10/2006 |
|
880 |
//! @SYMTestCaseDesc Function Parse(const TDesC &aName, const TDesC &aRelated, TParse &aParse) test where name of parse is invalid. |
|
881 |
//! Uses API elements: Parse(). |
|
882 |
//! @SYMTestActions 1. Call Connect() method. |
|
883 |
//! 2. Call Parse() and pass "<DRIVE>:\<>:"/|.txt" as parameter where <DRIVE> is a test drive letter. |
|
884 |
//! 3. Call Close() method. |
|
885 |
//! @SYMTestStatus Implemented |
|
886 |
//! @SYMTestPriority Critical |
|
887 |
//! @SYMTestExpectedResults Function Parse() return KErrNone. |
|
888 |
//! @SYMTestType CIT |
|
889 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
890 |
CREATE_OBJECT RFs RFs1 |
|
891 |
COMMAND RFs1 new |
|
892 |
COMMAND RFs1 Connect |
|
893 |
COMMAND RFs1 Parse PBASE-F32-RFS-PublicApi-2031-001-Parse_command03 |
|
894 |
COMMAND RFs1 Close |
|
895 |
COMMAND RFs1 ~ |
|
896 |
END_TEST_BLOCK |
|
897 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2031 |
|
898 |
||
899 |
||
900 |
/////////////////////////////// |
|
901 |
// |
|
902 |
// MKDIR |
|
903 |
// |
|
904 |
/////////////////////////////// |
|
905 |
||
906 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2034 |
|
907 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2034 |
|
908 |
//! @SYMAPI RFs |
|
909 |
//! @SYMCreationDate 5/10/2006 |
|
910 |
//! @SYMTestCaseDesc Function MkDir() negative test where name of directory is invalide. |
|
911 |
//! Uses API elements: MkDir(). |
|
912 |
//! @SYMTestActions 1. Call Connect() method. |
|
913 |
//! 2. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\MkDir<>:"/|\" as parameter where <DRIVE> is a test drive letter. |
|
914 |
//! 4. Call Close() method. |
|
915 |
//! @SYMTestStatus Implemented |
|
916 |
//! @SYMTestPriority High |
|
917 |
//! @SYMTestExpectedResults Function MkDir() return KErrBadName. |
|
918 |
//! @SYMTestType CIT |
|
919 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
920 |
CREATE_OBJECT RFs RFs1 |
|
921 |
COMMAND RFs1 new |
|
922 |
COMMAND RFs1 Connect |
|
923 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2034-001-SetSessionPath_command03 |
|
924 |
COMMAND !Error=-28 RFs1 MkDir PBASE-F32-RFS-PublicApi-2034-001-MkDir_command04 |
|
925 |
COMMAND RFs1 Close |
|
926 |
COMMAND RFs1 ~ |
|
927 |
END_TEST_BLOCK |
|
928 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2034 |
|
929 |
||
930 |
||
931 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2035 |
|
932 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2035 |
|
933 |
//! @SYMAPI RFs |
|
934 |
//! @SYMCreationDate 5/10/2006 |
|
935 |
//! @SYMTestCaseDesc Function MkDir() negative test where directory is exist. |
|
936 |
//! Uses API elements: MkDir(). |
|
937 |
//! @SYMTestActions 1. Call Connect() method. |
|
938 |
//! 2. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\MkDirTwice\" as parameter where <DRIVE> is a test drive letter. |
|
939 |
//! 3. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\MkDirTwice\" as parameter. |
|
940 |
//! 4. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\MkDirTwice\" as parameter. |
|
941 |
//! 5. Call Close() method. |
|
942 |
//! @SYMTestStatus Implemented |
|
943 |
//! @SYMTestPriority High |
|
944 |
//! @SYMTestExpectedResults Function MkDir() return KErrAlreadyExists. |
|
945 |
//! @SYMTestType CIT |
|
946 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
947 |
CREATE_OBJECT RFs RFs1 |
|
948 |
COMMAND RFs1 new |
|
949 |
COMMAND RFs1 Connect |
|
950 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2035-001-SetSessionPath_command03 |
|
951 |
COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-2035-001-MkDir_command04 |
|
952 |
COMMAND !Error=-11 RFs1 MkDir PBASE-F32-RFS-PublicApi-2035-001-MkDir_command05 |
|
953 |
COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-2035-001-RmDir_command06 |
|
954 |
COMMAND RFs1 Close |
|
955 |
COMMAND RFs1 ~ |
|
956 |
END_TEST_BLOCK |
|
957 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2035 |
|
958 |
||
959 |
||
960 |
||
961 |
/////////////////////////////// |
|
962 |
// |
|
963 |
// MKDIRALL |
|
964 |
// |
|
965 |
/////////////////////////////// |
|
966 |
||
967 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2036 |
|
968 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2036 |
|
969 |
//! @SYMAPI RFs |
|
970 |
//! @SYMCreationDate 5/10/2006 |
|
971 |
//! @SYMTestCaseDesc Function MkDir() negative test where name of directory is invalide. |
|
972 |
//! Uses API elements: MkDirAll(). |
|
973 |
//! @SYMTestActions 1. Call Connect() method. |
|
974 |
//! 2. Call MkDirAll() and pass "<DRIVE>:\base\T_Sfsrv\MkDirAll<>:"/|\" as parameter where <DRIVE> is a test drive letter. |
|
975 |
//! 3. Call Close() method. |
|
976 |
//! @SYMTestStatus Implemented |
|
977 |
//! @SYMTestPriority High |
|
978 |
//! @SYMTestExpectedResults Function MkDirAll() return KErrBadName. |
|
979 |
//! @SYMTestType CIT |
|
980 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
981 |
CREATE_OBJECT RFs RFs1 |
|
982 |
COMMAND RFs1 new |
|
983 |
COMMAND RFs1 Connect |
|
984 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2036-001-SetSessionPath_command03 |
|
985 |
COMMAND !Error=-28 RFs1 MkDirAll PBASE-F32-RFS-PublicApi-2036-001-MkDirAll_command04 |
|
986 |
COMMAND RFs1 Close |
|
987 |
COMMAND RFs1 ~ |
|
988 |
END_TEST_BLOCK |
|
989 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2036 |
|
990 |
||
991 |
||
992 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2037 |
|
993 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2037 |
|
994 |
//! @SYMAPI RFs |
|
995 |
//! @SYMCreationDate 5/10/2006 |
|
996 |
//! @SYMTestCaseDesc Function MkDir() negative test where directory is exist. |
|
997 |
//! Uses API elements: MkDirAll(). |
|
998 |
//! @SYMTestActions 1. Call Connect() method. |
|
999 |
//! 2. Call MkDirAll() and pass "<DRIVE>:\base\T_Sfsrv\MkDirAllTwice\" as parameter where <DRIVE> is a test drive letter. |
|
1000 |
//! 3. Call MkDirAll() and pass "<DRIVE>:\base\T_Sfsrv\MkDirAllTwice\" as parameter. |
|
1001 |
//! 4. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\MkDirTwice\" as parameter. |
|
1002 |
//! 5. Call Close() method. |
|
1003 |
//! @SYMTestStatus Implemented |
|
1004 |
//! @SYMTestPriority High |
|
1005 |
//! @SYMTestExpectedResults Function MkDirAll() return KErrAlreadyExists. |
|
1006 |
//! @SYMTestType CIT |
|
1007 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1008 |
CREATE_OBJECT RFs RFs1 |
|
1009 |
COMMAND RFs1 new |
|
1010 |
COMMAND RFs1 Connect |
|
1011 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2037-001-SetSessionPath_command03 |
|
1012 |
COMMAND RFs1 MkDirAll PBASE-F32-RFS-PublicApi-2037-001-MkDirAll_command04 |
|
1013 |
COMMAND !Error=-11 RFs1 MkDirAll PBASE-F32-RFS-PublicApi-2037-001-MkDirAll_command05 |
|
1014 |
COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-2037-001-RmDir_command06 |
|
1015 |
COMMAND RFs1 Close |
|
1016 |
COMMAND RFs1 ~ |
|
1017 |
END_TEST_BLOCK |
|
1018 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2037 |
|
1019 |
||
1020 |
||
1021 |
||
1022 |
/////////////////////////////// |
|
1023 |
// |
|
1024 |
// RMDIR |
|
1025 |
// |
|
1026 |
/////////////////////////////// |
|
1027 |
||
1028 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2038 |
|
1029 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2038 |
|
1030 |
//! @SYMAPI RFs |
|
1031 |
//! @SYMCreationDate 5/10/2006 |
|
1032 |
//! @SYMTestCaseDesc Function RmDir() negative test where name of directory is invalid. |
|
1033 |
//! Uses API elements: RmDir(). |
|
1034 |
//! @SYMTestActions 1. Call Connect() method. |
|
1035 |
//! 2. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\RmDir<>:"/|\" as parameter where <DRIVE> is a test drive letter. |
|
1036 |
//! 3. Call Close() method. |
|
1037 |
//! @SYMTestStatus Implemented |
|
1038 |
//! @SYMTestPriority High |
|
1039 |
//! @SYMTestExpectedResults Function RmDir() return KErrBadName. |
|
1040 |
//! @SYMTestType CIT |
|
1041 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1042 |
CREATE_OBJECT RFs RFs1 |
|
1043 |
COMMAND RFs1 new |
|
1044 |
COMMAND RFs1 Connect |
|
1045 |
COMMAND !Error=-28 RFs1 RmDir PBASE-F32-RFS-PublicApi-2038-001-RmDir_command03 |
|
1046 |
COMMAND RFs1 Close |
|
1047 |
COMMAND RFs1 ~ |
|
1048 |
END_TEST_BLOCK |
|
1049 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2038 |
|
1050 |
||
1051 |
||
1052 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2039 |
|
1053 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2039 |
|
1054 |
//! @SYMAPI RFs |
|
1055 |
//! @SYMCreationDate 5/10/2006 |
|
1056 |
//! @SYMTestCaseDesc Function RmDir() negative test where directory does not exist. |
|
1057 |
//! Uses API elements: RmDir(). |
|
1058 |
//! @SYMTestActions 1. Call Connect() method. |
|
1059 |
//! 2. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\NoneDir\" as parameter where <DRIVE> is a test drive letter. |
|
1060 |
//! 3. Call Close() method. |
|
1061 |
//! @SYMTestStatus Implemented |
|
1062 |
//! @SYMTestPriority High |
|
1063 |
//! @SYMTestExpectedResults Function RmDir() return KErrNotFound. |
|
1064 |
//! @SYMTestType CIT |
|
1065 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1066 |
CREATE_OBJECT RFs RFs1 |
|
1067 |
COMMAND RFs1 new |
|
1068 |
COMMAND RFs1 Connect |
|
1069 |
COMMAND !Error=-1 RFs1 RmDir PBASE-F32-RFS-PublicApi-2039-001-RmDir_command03 |
|
1070 |
COMMAND RFs1 Close |
|
1071 |
COMMAND RFs1 ~ |
|
1072 |
END_TEST_BLOCK |
|
1073 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2039 |
|
1074 |
||
1075 |
||
1076 |
||
1077 |
/////////////////////////////// |
|
1078 |
// |
|
1079 |
// GETDIR |
|
1080 |
// TInt GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList) const; |
|
1081 |
// |
|
1082 |
/////////////////////////////// |
|
1083 |
||
1084 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2040 |
|
1085 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2040 |
|
1086 |
//! @SYMAPI RFs |
|
1087 |
//! @SYMCreationDate 5/10/2006 |
|
1088 |
//! @SYMTestCaseDesc Function GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList) negative test, |
|
1089 |
//! where name of directory is invalid. |
|
1090 |
//! Uses API elements: GetDir(). |
|
1091 |
//! @SYMTestActions 1. Call Connect() method. |
|
1092 |
//! 2. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\ErrDir<>:"/|\" as parameter where <DRIVE> is a test drive letter. |
|
1093 |
//! 3. Call Close() method. |
|
1094 |
//! @SYMTestStatus Implemented |
|
1095 |
//! @SYMTestPriority High |
|
1096 |
//! @SYMTestExpectedResults Function GetDir() return KErrBadName. |
|
1097 |
//! @SYMTestType CIT |
|
1098 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1099 |
CREATE_OBJECT RFs RFs1 |
|
1100 |
COMMAND RFs1 new |
|
1101 |
COMMAND RFs1 Connect |
|
1102 |
COMMAND !Error=-28 RFs1 GetDir PBASE-F32-RFS-PublicApi-2040-001-GetDir_command03 |
|
1103 |
COMMAND RFs1 Close |
|
1104 |
COMMAND RFs1 ~ |
|
1105 |
END_TEST_BLOCK |
|
1106 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2040 |
|
1107 |
||
1108 |
||
1109 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2041 |
|
1110 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2041 |
|
1111 |
//! @SYMAPI RFs |
|
1112 |
//! @SYMCreationDate 5/10/2006 |
|
1113 |
//! @SYMTestCaseDesc Function GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList) negative test, |
|
1114 |
//! where directory does not exist. |
|
1115 |
//! Uses API elements: GetDir(). |
|
1116 |
//! @SYMTestActions 1. Call Connect() method. |
|
1117 |
//! 2. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\NoneDir\" as parameter where <DRIVE> is a test drive letter. |
|
1118 |
//! 3. Call Close() method. |
|
1119 |
//! @SYMTestStatus Implemented |
|
1120 |
//! @SYMTestPriority High |
|
1121 |
//! @SYMTestExpectedResults Function GetDir() return KErrPathNotFound. |
|
1122 |
//! @SYMTestType CIT |
|
1123 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1124 |
CREATE_OBJECT RFs RFs1 |
|
1125 |
COMMAND RFs1 new |
|
1126 |
COMMAND RFs1 Connect |
|
1127 |
COMMAND !Error=-12 RFs1 GetDir PBASE-F32-RFS-PublicApi-2041-001-GetDir_command03 |
|
1128 |
COMMAND RFs1 Close |
|
1129 |
COMMAND RFs1 ~ |
|
1130 |
END_TEST_BLOCK |
|
1131 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2041 |
|
1132 |
||
1133 |
||
1134 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2042 |
|
1135 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2042 |
|
1136 |
//! @SYMAPI RFs |
|
1137 |
//! @SYMCreationDate 5/10/2006 |
|
1138 |
//! @SYMTestCaseDesc Function GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList) test, |
|
1139 |
//! where sort key flag is used for exclusive matching. |
|
1140 |
//! Uses API elements: GetDir(). |
|
1141 |
//! @SYMTestActions 1. Call Connect() method. |
|
1142 |
//! 2. Create files "test42a.txt" and "test42b.txt". |
|
1143 |
//! 3. Call SetAtt() and pass "test42a.txt" as name and "KEntryAttReadOnly" as attribute of file. |
|
1144 |
//! 4. Call Att() and pass "test42a.txt" as name and check that the attrtribute "KEntryAttReadOnly" is set. |
|
1145 |
//! 5. Call GetDir() and pass parameters "<DRIVE>:\base\T_Sfsrv\" as name and "KEntryAttMatchExclusive|KEntryAttReadOnly" as attribute bitmask where <DRIVE> is a test drive letter, |
|
1146 |
//! and check that the file "test42a.txt" is exist in list of entries. |
|
1147 |
//! 6. Call GetDir() and pass parameters "<DRIVE>:\base\T_Sfsrv\" as name and "KEntryAttMatchExclusive|KEntryAttReadOnly" as attribute bitmask where <DRIVE> is a test drive letter, |
|
1148 |
//! and check that the file "test42b.txt" is not exist in list of entries. |
|
1149 |
//! 7. Call SetAtt() and pass "test42a.txt" as name and "KEntryAttNormal" as attribute of file. |
|
1150 |
//! 8. Delete files "test42a.txt" and "test42b.txt". |
|
1151 |
//! 9. Call Close() method. |
|
1152 |
//! @SYMTestStatus Implemented |
|
1153 |
//! @SYMTestPriority Critical |
|
1154 |
//! @SYMTestExpectedResults Function GetDir() return KErrNone, the file "test42a.txt" is not exist in list of entries. |
|
1155 |
//! @SYMTestType CIT |
|
1156 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1157 |
CREATE_OBJECT RFs RFs1 |
|
1158 |
CREATE_OBJECT RFile RFile1 |
|
1159 |
COMMAND RFs1 new |
|
1160 |
COMMAND RFs1 Connect |
|
1161 |
COMMAND RFile1 new |
|
1162 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2042-001-Create_command05 |
|
1163 |
COMMAND RFile1 Close |
|
1164 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2042-001-Create_command07 |
|
1165 |
COMMAND RFile1 Close |
|
1166 |
COMMAND RFile1 ~ |
|
1167 |
COMMAND RFs1 SetAtt PBASE-F32-RFS-PublicApi-2042-001-SetAtt_command11 |
|
1168 |
COMMAND RFs1 Att PBASE-F32-RFS-PublicApi-2042-001-Att_command12 |
|
1169 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2042-001-GetDir_command13 |
|
1170 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2042-001-GetDir_command14 |
|
1171 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2042-001-Delete_command15 |
|
1172 |
COMMAND RFs1 SetAtt PBASE-F32-RFS-PublicApi-2042-001-SetAtt_command16 |
|
1173 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2042-001-Delete_command17 |
|
1174 |
COMMAND RFs1 Close |
|
1175 |
COMMAND RFs1 ~ |
|
1176 |
END_TEST_BLOCK |
|
1177 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2042 |
|
1178 |
||
1179 |
||
1180 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2043 |
|
1181 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2043 |
|
1182 |
//! @SYMAPI RFs |
|
1183 |
//! @SYMCreationDate 5/10/2006 |
|
1184 |
//! @SYMTestCaseDesc Function GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList) test, |
|
1185 |
//! where ordering is requested to be both ascending and descending at the same time. |
|
1186 |
//! Uses API elements: GetDir(). |
|
1187 |
//! @SYMTestActions 1. Call Connect() method. |
|
1188 |
//! 2. Call GetDir() and pass parameters "<DRIVE>:\base\T_Sfsrv\" as name and "EAscending|EDescending" as sort key where <DRIVE> is a test drive letter. |
|
1189 |
//! 3. Call Close() method. |
|
1190 |
//! @SYMTestStatus Implemented |
|
1191 |
//! @SYMTestPriority High |
|
1192 |
//! @SYMTestExpectedResults Function GetDir() return KErrNone. |
|
1193 |
//! @SYMTestType CIT |
|
1194 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1195 |
CREATE_OBJECT RFs RFs1 |
|
1196 |
CREATE_OBJECT RFile RFile1 |
|
1197 |
COMMAND RFs1 new |
|
1198 |
COMMAND RFs1 Connect |
|
1199 |
COMMAND RFile1 new |
|
1200 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2043-001-Create_command05 |
|
1201 |
COMMAND RFile1 Close |
|
1202 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2043-001-Create_command07 |
|
1203 |
COMMAND RFile1 Close |
|
1204 |
COMMAND RFile1 ~ |
|
1205 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2043-001-GetDir_command11 |
|
1206 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2043-001-Delete_command12 |
|
1207 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2043-001-Delete_command13 |
|
1208 |
COMMAND RFs1 Close |
|
1209 |
COMMAND RFs1 ~ |
|
1210 |
END_TEST_BLOCK |
|
1211 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2043 |
|
1212 |
||
1213 |
||
1214 |
||
1215 |
/////////////////////////////// |
|
1216 |
// |
|
1217 |
// GETDIR |
|
1218 |
// TInt GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList,CDir*& aDirList) const; |
|
1219 |
// |
|
1220 |
/////////////////////////////// |
|
1221 |
||
1222 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2044 |
|
1223 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2044 |
|
1224 |
//! @SYMAPI RFs |
|
1225 |
//! @SYMCreationDate 5/10/2006 |
|
1226 |
//! @SYMTestCaseDesc Function GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList,CDir*& aDirList) negative test, |
|
1227 |
//! where name of directory is invalide. |
|
1228 |
//! Uses API elements: GetDir(). |
|
1229 |
//! @SYMTestActions 1. Call Connect() method. |
|
1230 |
//! 2. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\ErrDir<>:"/|\" as parameter where <DRIVE> is a test drive letter. |
|
1231 |
//! 3. Call Close() method. |
|
1232 |
//! @SYMTestStatus Implemented |
|
1233 |
//! @SYMTestPriority High |
|
1234 |
//! @SYMTestExpectedResults Function GetDir() return KErrBadName. |
|
1235 |
//! @SYMTestType CIT |
|
1236 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1237 |
CREATE_OBJECT RFs RFs1 |
|
1238 |
COMMAND RFs1 new |
|
1239 |
COMMAND RFs1 Connect |
|
1240 |
COMMAND !Error=-28 RFs1 GetDir PBASE-F32-RFS-PublicApi-2044-001-GetDir_command03 |
|
1241 |
COMMAND RFs1 Close |
|
1242 |
COMMAND RFs1 ~ |
|
1243 |
END_TEST_BLOCK |
|
1244 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2044 |
|
1245 |
||
1246 |
||
1247 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2045 |
|
1248 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2045 |
|
1249 |
//! @SYMAPI RFs |
|
1250 |
//! @SYMCreationDate 5/10/2006 |
|
1251 |
//! @SYMTestCaseDesc Function GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList,CDir*& aDirList) negative test, |
|
1252 |
//! where directory does not exist. |
|
1253 |
//! Uses API elements: GetDir(). |
|
1254 |
//! @SYMTestActions 1. Call Connect() method. |
|
1255 |
//! 2. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\NoneDir\" as parameter where <DRIVE> is a test drive letter. |
|
1256 |
//! 3. Call Close() method. |
|
1257 |
//! @SYMTestStatus Implemented |
|
1258 |
//! @SYMTestPriority High |
|
1259 |
//! @SYMTestExpectedResults Function GetDir() return KErrPathNotFound. |
|
1260 |
//! @SYMTestType CIT |
|
1261 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1262 |
CREATE_OBJECT RFs RFs1 |
|
1263 |
COMMAND RFs1 new |
|
1264 |
COMMAND RFs1 Connect |
|
1265 |
COMMAND !Error=-12 RFs1 GetDir PBASE-F32-RFS-PublicApi-2045-001-GetDir_command03 |
|
1266 |
COMMAND RFs1 Close |
|
1267 |
COMMAND RFs1 ~ |
|
1268 |
END_TEST_BLOCK |
|
1269 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2045 |
|
1270 |
||
1271 |
||
1272 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2046 |
|
1273 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2046 |
|
1274 |
//! @SYMAPI RFs |
|
1275 |
//! @SYMCreationDate 5/10/2006 |
|
1276 |
//! @SYMTestCaseDesc Function GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList,CDir*& aDirList) test, |
|
1277 |
//! where sort key flag is used for exclusive matching. |
|
1278 |
//! Uses API elements: GetDir(). |
|
1279 |
//! @SYMTestActions 1. Call Connect() method. |
|
1280 |
//! 2. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\Test46a\" as name where <DRIVE> is a test drive letter. |
|
1281 |
//! 3. Create file "test46a.txt". |
|
1282 |
//! 4. Call GetDir() and pass parameters "<DRIVE>:\base\T_Sfsrv\" as name and "KEntryAttMatchExclusive|KEntryAttDir" as attribute bitmask where <DRIVE> is a test drive letter, |
|
1283 |
//! and check that the directories "Test46a" is exist in list of entries. |
|
1284 |
//! 5. Call GetDir() and pass parameters "<DRIVE>:\base\T_Sfsrv\" as name and "KEntryAttMatchExclusive|KEntryAttDir" as attribute bitmask where <DRIVE> is a test drive letter, |
|
1285 |
//! and check that the file "test46a.txt" is not exist in list of entries. |
|
1286 |
//! 6. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\Test46a\" as name where <DRIVE> is a test drive letter. |
|
1287 |
//! 7. Delete file "test46a.txt". |
|
1288 |
//! 8. Call Close() method. |
|
1289 |
//! @SYMTestStatus Implemented |
|
1290 |
//! @SYMTestPriority Critical |
|
1291 |
//! @SYMTestExpectedResults Function GetDir() return KErrNone, the directories "Test46a" is not exist in list of entries. |
|
1292 |
//! @SYMTestType CIT |
|
1293 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1294 |
CREATE_OBJECT RFile RFile1 |
|
1295 |
CREATE_OBJECT RFs RFs1 |
|
1296 |
COMMAND RFs1 new |
|
1297 |
COMMAND RFs1 Connect |
|
1298 |
COMMAND RFile1 new |
|
1299 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2046-001-Create_command05 |
|
1300 |
COMMAND RFile1 Close |
|
1301 |
COMMAND RFile1 ~ |
|
1302 |
COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-2046-001-MkDir_command09 |
|
1303 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2046-001-GetDir_command10 |
|
1304 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2046-001-GetDir_command11 |
|
1305 |
COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-2046-001-RmDir_command12 |
|
1306 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2046-001-Delete_command13 |
|
1307 |
COMMAND RFs1 Close |
|
1308 |
END_TEST_BLOCK |
|
1309 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2046 |
|
1310 |
||
1311 |
||
1312 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2047 |
|
1313 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2047 |
|
1314 |
//! @SYMAPI RFs |
|
1315 |
//! @SYMCreationDate 5/10/2006 |
|
1316 |
//! @SYMTestCaseDesc Function GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList,CDir*& aDirList) negative test, |
|
1317 |
//! where ordering is requested to be both ascending and descending at the same time. |
|
1318 |
//! Uses API elements: GetDir(). |
|
1319 |
//! @SYMTestActions 1. Call Connect() method. |
|
1320 |
//! 2. Call GetDir() and pass parameters "<DRIVE>:\base\T_Sfsrv\" as name and "EAscending|EDescending" as sort key where <DRIVE> is a test drive letter. |
|
1321 |
//! 3. Call Close() method. |
|
1322 |
//! @SYMTestStatus Implemented |
|
1323 |
//! @SYMTestPriority High |
|
1324 |
//! @SYMTestExpectedResults Function GetDir() return KErrNone. |
|
1325 |
//! @SYMTestType CIT |
|
1326 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1327 |
CREATE_OBJECT RFs RFs1 |
|
1328 |
CREATE_OBJECT RFile RFile1 |
|
1329 |
COMMAND RFs1 new |
|
1330 |
COMMAND RFs1 Connect |
|
1331 |
COMMAND RFile1 new |
|
1332 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2047-001-Create_command05 |
|
1333 |
COMMAND RFile1 Close |
|
1334 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2047-001-Create_command07 |
|
1335 |
COMMAND RFile1 Close |
|
1336 |
COMMAND RFile1 ~ |
|
1337 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2047-001-GetDir_command11 |
|
1338 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2047-001-Delete_command12 |
|
1339 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2047-001-Delete_command13 |
|
1340 |
COMMAND RFs1 Close |
|
1341 |
COMMAND RFs1 ~ |
|
1342 |
END_TEST_BLOCK |
|
1343 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2047 |
|
1344 |
||
1345 |
||
1346 |
||
1347 |
/////////////////////////////// |
|
1348 |
// |
|
1349 |
// GETDIR |
|
1350 |
// TInt GetDir(const TDesC& aName,const TUidType& anEntryUid,TUint anEntrySortKey,CDir*& aFileList) const; |
|
1351 |
// |
|
1352 |
/////////////////////////////// |
|
1353 |
||
1354 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2048 |
|
1355 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2048 |
|
1356 |
//! @SYMAPI RFs |
|
1357 |
//! @SYMCreationDate 5/10/2006 |
|
1358 |
//! @SYMTestCaseDesc Function GetDir(const TDesC& aName,const TUidType& anEntryUid,TUint anEntrySortKey,CDir*& aFileList) negative test, |
|
1359 |
//! where name of directory is invalid. |
|
1360 |
//! Uses API elements: GetDir(). |
|
1361 |
//! @SYMTestActions 1. Call Connect() method. |
|
1362 |
//! 2. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\ErrDir<>:"/|\" as parameter where <DRIVE> is a test drive letter. |
|
1363 |
//! 3. Call Close() method. |
|
1364 |
//! @SYMTestStatus Implemented |
|
1365 |
//! @SYMTestPriority High |
|
1366 |
//! @SYMTestExpectedResults Function GetDir() return KErrBadName. |
|
1367 |
//! @SYMTestType CIT |
|
1368 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1369 |
CREATE_OBJECT RFs RFs1 |
|
1370 |
COMMAND RFs1 new |
|
1371 |
COMMAND RFs1 Connect |
|
1372 |
COMMAND !Error=-28 RFs1 GetDir PBASE-F32-RFS-PublicApi-2048-001-GetDir_command03 |
|
1373 |
COMMAND RFs1 Close |
|
1374 |
COMMAND RFs1 ~ |
|
1375 |
END_TEST_BLOCK |
|
1376 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2048 |
|
1377 |
||
1378 |
||
1379 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2049 |
|
1380 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2049 |
|
1381 |
//! @SYMAPI RFs |
|
1382 |
//! @SYMCreationDate 5/10/2006 |
|
1383 |
//! @SYMTestCaseDesc Function GetDir(const TDesC& aName,const TUidType& anEntryUid,TUint anEntrySortKey,CDir*& aFileList) negative test, |
|
1384 |
//! where directory name does not exist. |
|
1385 |
//! Uses API elements: GetDir(). |
|
1386 |
//! @SYMTestActions 1. Call Connect() method. |
|
1387 |
//! 2. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\NoneDir\" as parameter where <DRIVE> is a test drive letter. |
|
1388 |
//! 3. Call Close() method. |
|
1389 |
//! @SYMTestStatus Implemented |
|
1390 |
//! @SYMTestPriority Critical |
|
1391 |
//! @SYMTestExpectedResults Function GetDir() return KErrPathNotFound. |
|
1392 |
//! @SYMTestType CIT |
|
1393 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1394 |
CREATE_OBJECT RFs RFs1 |
|
1395 |
COMMAND RFs1 new |
|
1396 |
COMMAND RFs1 Connect |
|
1397 |
COMMAND !Error=-12 RFs1 GetDir PBASE-F32-RFS-PublicApi-2049-001-GetDir_command03 |
|
1398 |
COMMAND RFs1 Close |
|
1399 |
COMMAND RFs1 ~ |
|
1400 |
END_TEST_BLOCK |
|
1401 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2049 |
|
1402 |
||
1403 |
||
1404 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2050 |
|
1405 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2050 |
|
1406 |
//! @SYMAPI RFs |
|
1407 |
//! @SYMCreationDate 5/10/2006 |
|
1408 |
//! @SYMTestCaseDesc Function GetDir(const TDesC& aName,const TUidType& anEntryUid,TUint anEntrySortKey,CDir*& aFileList) test, |
|
1409 |
//! for invalid entry UID type. |
|
1410 |
//! Uses API elements: GetDir(). |
|
1411 |
//! @SYMTestActions 1. Call Connect() method. |
|
1412 |
//! 2. Call GetDir() and pass parameters "<DRIVE>:\base\T_Sfsrv\" as name and "-12345" as UID type where <DRIVE> is a test drive letter. |
|
1413 |
//! 3. Call Close() method. |
|
1414 |
//! @SYMTestStatus Implemented |
|
1415 |
//! @SYMTestPriority Critical |
|
1416 |
//! @SYMTestExpectedResults Function GetDir() return KErrNone. |
|
1417 |
//! @SYMTestType CIT |
|
1418 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1419 |
CREATE_OBJECT RFs RFs1 |
|
1420 |
CREATE_OBJECT RFile RFile1 |
|
1421 |
COMMAND RFs1 new |
|
1422 |
COMMAND RFs1 Connect |
|
1423 |
COMMAND RFile1 new |
|
1424 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2050-001-Create_command05 |
|
1425 |
COMMAND RFile1 Close |
|
1426 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2050-001-Create_command07 |
|
1427 |
COMMAND RFile1 Close |
|
1428 |
COMMAND RFile1 ~ |
|
1429 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2050-001-GetDir_command11 |
|
1430 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2050-001-Delete_command12 |
|
1431 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2050-001-Delete_command13 |
|
1432 |
COMMAND RFs1 Close |
|
1433 |
COMMAND RFs1 ~ |
|
1434 |
END_TEST_BLOCK |
|
1435 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2050 |
|
1436 |
||
1437 |
||
1438 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2051 |
|
1439 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2051 |
|
1440 |
//! @SYMAPI RFs |
|
1441 |
//! @SYMCreationDate 5/10/2006 |
|
1442 |
//! @SYMTestCaseDesc Function GetDir(const TDesC& aName,const TUidType& anEntryUid,TUint anEntrySortKey,CDir*& aFileList) negative test, |
|
1443 |
//! where ordering is requested to be both ascending and descending at the same time. |
|
1444 |
//! Uses API elements: GetDir(). |
|
1445 |
//! @SYMTestActions 1. Call Connect() method. |
|
1446 |
//! 2. Call GetDir() and pass parameters "<DRIVE>:\base\T_Sfsrv\" as name and "EAscending|EDescending" as sort key where <DRIVE> is a test drive letter. |
|
1447 |
//! 3. Call Close() method. |
|
1448 |
//! @SYMTestStatus Implemented |
|
1449 |
//! @SYMTestPriority High |
|
1450 |
//! @SYMTestExpectedResults Function GetDir() return KErrNone. |
|
1451 |
//! @SYMTestType CIT |
|
1452 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1453 |
CREATE_OBJECT RFs RFs1 |
|
1454 |
CREATE_OBJECT RFile RFile1 |
|
1455 |
COMMAND RFs1 new |
|
1456 |
COMMAND RFs1 Connect |
|
1457 |
COMMAND RFile1 new |
|
1458 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2051-001-Create_command05 |
|
1459 |
COMMAND RFile1 Close |
|
1460 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2051-001-Create_command07 |
|
1461 |
COMMAND RFile1 Close |
|
1462 |
COMMAND RFile1 ~ |
|
1463 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2051-001-GetDir_command11 |
|
1464 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2051-001-Delete_command12 |
|
1465 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2051-001-Delete_command13 |
|
1466 |
COMMAND RFs1 Close |
|
1467 |
COMMAND RFs1 ~ |
|
1468 |
END_TEST_BLOCK |
|
1469 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2051 |
|
1470 |
||
1471 |
||
1472 |
||
1473 |
/////////////////////////////// |
|
1474 |
// |
|
1475 |
// DELETE |
|
1476 |
// |
|
1477 |
/////////////////////////////// |
|
1478 |
||
1479 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2052 |
|
1480 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2052 |
|
1481 |
//! @SYMAPI RFs |
|
1482 |
//! @SYMCreationDate 5/10/2006 |
|
1483 |
//! @SYMTestCaseDesc Function Delete() negative test where file does not exist. |
|
1484 |
//! Uses API elements: Delete(). |
|
1485 |
//! @SYMTestActions 1. Call Connect() method. |
|
1486 |
//! 2. Call Delete() and pass "<DRIVE>:\base\T_Sfsrv\nonefile.txt" as parameter where <DRIVE> is a test drive letter. |
|
1487 |
//! 3. Call Close() method. |
|
1488 |
//! @SYMTestStatus Implemented |
|
1489 |
//! @SYMTestPriority High |
|
1490 |
//! @SYMTestExpectedResults Function Delete() return KErrNotFound. |
|
1491 |
//! @SYMTestType CIT |
|
1492 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1493 |
CREATE_OBJECT RFs RFs1 |
|
1494 |
COMMAND RFs1 new |
|
1495 |
COMMAND RFs1 Connect |
|
1496 |
COMMAND !Error=-1 RFs1 Delete PBASE-F32-RFS-PublicApi-2052-001-Delete_command03 |
|
1497 |
COMMAND RFs1 Close |
|
1498 |
COMMAND RFs1 ~ |
|
1499 |
END_TEST_BLOCK |
|
1500 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2052 |
|
1501 |
||
1502 |
||
1503 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2053 |
|
1504 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2053 |
|
1505 |
//! @SYMAPI RFs |
|
1506 |
//! @SYMCreationDate 5/10/2006 |
|
1507 |
//! @SYMTestCaseDesc Function Delete() negative test where name of file is invalid. |
|
1508 |
//! Uses API elements: Delete(). |
|
1509 |
//! @SYMTestActions 1. Call Connect() method. |
|
1510 |
//! 2. Call Delete() and pass "<>:"/|.txt" as parameter. |
|
1511 |
//! 3. Call Close() method. |
|
1512 |
//! @SYMTestStatus Implemented |
|
1513 |
//! @SYMTestPriority High |
|
1514 |
//! @SYMTestExpectedResults Function Delete() return KErrBadName. |
|
1515 |
//! @SYMTestType CIT |
|
1516 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1517 |
CREATE_OBJECT RFs RFs1 |
|
1518 |
COMMAND RFs1 new |
|
1519 |
COMMAND RFs1 Connect |
|
1520 |
COMMAND !Error=-28 RFs1 Delete PBASE-F32-RFS-PublicApi-2053-001-Delete_command03 |
|
1521 |
COMMAND RFs1 Close |
|
1522 |
COMMAND RFs1 ~ |
|
1523 |
END_TEST_BLOCK |
|
1524 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2053 |
|
1525 |
||
1526 |
||
1527 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2054 |
|
1528 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2054 |
|
1529 |
//! @SYMAPI RFs |
|
1530 |
//! @SYMCreationDate 5/10/2006 |
|
1531 |
//! @SYMTestCaseDesc Function Delete() negative test for readonly file. |
|
1532 |
//! Uses API elements: Delete(). |
|
1533 |
//! @SYMTestActions 1. Call Connect() method. |
|
1534 |
//! 2. Call Delete() and pass "<DRIVE>:\base\T_Sfsrv\testing.txt" as parameter where <DRIVE> is a test drive letter. |
|
1535 |
//! 3. Call Close() method. |
|
1536 |
//! @SYMTestStatus Implemented |
|
1537 |
//! @SYMTestPriority High |
|
1538 |
//! @SYMTestExpectedResults Function Delete() return KErrAccessDenied. |
|
1539 |
//! @SYMTestType CIT |
|
1540 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1541 |
CREATE_OBJECT RFs RFs1 |
|
1542 |
CREATE_OBJECT RFile RFile1 |
|
1543 |
COMMAND RFs1 new |
|
1544 |
COMMAND RFs1 Connect |
|
1545 |
COMMAND RFile1 new |
|
1546 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2054-001-Create_command05 |
|
1547 |
COMMAND RFile1 Close |
|
1548 |
COMMAND RFile1 ~ |
|
1549 |
COMMAND RFs1 SetAtt PBASE-F32-RFS-PublicApi-2054-001-SetAtt_command09 |
|
1550 |
COMMAND !Error=-21 RFs1 Delete PBASE-F32-RFS-PublicApi-2054-001-Delete_command10 |
|
1551 |
COMMAND RFs1 SetAtt PBASE-F32-RFS-PublicApi-2054-001-SetAtt_command11 |
|
1552 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2054-001-Delete_command12 |
|
1553 |
COMMAND RFs1 Close |
|
1554 |
COMMAND RFs1 ~ |
|
1555 |
END_TEST_BLOCK |
|
1556 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2054 |
|
1557 |
||
1558 |
||
1559 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2055 |
|
1560 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2055 |
|
1561 |
//! @SYMAPI RFs |
|
1562 |
//! @SYMCreationDate 5/10/2006 |
|
1563 |
//! @SYMTestCaseDesc Function Delete() test for system file. |
|
1564 |
//! Uses API elements: Delete(). |
|
1565 |
//! @SYMTestActions 1. Call Connect() method. |
|
1566 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
1567 |
//! 3. Call SetAtt() and pass parameters "testing.txt" as name and "KEntryAttSystem" attribute of file. |
|
1568 |
//! 4. Call Delete() and pass parameter "testing.txt" as name of file. |
|
1569 |
//! 5. Call Close() method. |
|
1570 |
//! @SYMTestStatus Implemented |
|
1571 |
//! @SYMTestPriority Critical |
|
1572 |
//! @SYMTestExpectedResults Function Delete() return KErrNone. |
|
1573 |
//! @SYMTestType CIT |
|
1574 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1575 |
CREATE_OBJECT RFs RFs1 |
|
1576 |
CREATE_OBJECT RFile RFile1 |
|
1577 |
COMMAND RFs1 new |
|
1578 |
COMMAND RFs1 Connect |
|
1579 |
COMMAND RFile1 new |
|
1580 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2055-001-Create_command05 |
|
1581 |
COMMAND RFile1 Close |
|
1582 |
COMMAND RFile1 ~ |
|
1583 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2055-001-SetSessionPath_command09 |
|
1584 |
COMMAND RFs1 SetAtt PBASE-F32-RFS-PublicApi-2055-001-SetAtt_command10 |
|
1585 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2055-001-Delete_command11 |
|
1586 |
COMMAND RFs1 Close |
|
1587 |
COMMAND RFs1 ~ |
|
1588 |
END_TEST_BLOCK |
|
1589 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2055 |
|
1590 |
||
1591 |
||
1592 |
||
1593 |
/////////////////////////////// |
|
1594 |
// |
|
1595 |
// REPLASE |
|
1596 |
// |
|
1597 |
/////////////////////////////// |
|
1598 |
||
1599 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2056 |
|
1600 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2056 |
|
1601 |
//! @SYMAPI RFs |
|
1602 |
//! @SYMCreationDate 5/10/2006 |
|
1603 |
//! @SYMTestCaseDesc Function Replace() negative test where old file does not exist. |
|
1604 |
//! Uses API elements: Replace(). |
|
1605 |
//! @SYMTestActions 1. Call Connect() method. |
|
1606 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
1607 |
//! 3. Call Replace() and pass the parameters "none.txt" as old name and "replace.txt" as a new name of file. |
|
1608 |
//! 4. Call Close() method. |
|
1609 |
//! @SYMTestStatus Implemented |
|
1610 |
//! @SYMTestPriority High |
|
1611 |
//! @SYMTestExpectedResults Function Replace() return KErrNotFound. |
|
1612 |
//! @SYMTestType CIT |
|
1613 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1614 |
CREATE_OBJECT RFs RFs1 |
|
1615 |
COMMAND RFs1 new |
|
1616 |
COMMAND RFs1 Connect |
|
1617 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2056-001-SetSessionPath_command03 |
|
1618 |
COMMAND !Error=-1 RFs1 Replace PBASE-F32-RFS-PublicApi-2056-001-Replace_command04 |
|
1619 |
COMMAND RFs1 Close |
|
1620 |
COMMAND RFs1 ~ |
|
1621 |
END_TEST_BLOCK |
|
1622 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2056 |
|
1623 |
||
1624 |
||
1625 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2057 |
|
1626 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2057 |
|
1627 |
//! @SYMAPI RFs |
|
1628 |
//! @SYMCreationDate 5/10/2006 |
|
1629 |
//! @SYMTestCaseDesc Function Replace() negative test where old name of file is invalid. |
|
1630 |
//! Uses API elements: Replace(). |
|
1631 |
//! @SYMTestActions 1. Call Connect() method. |
|
1632 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
1633 |
//! 3. Call Replace() and pass the parameters "<>:"/|.txt" as old name and "replace.txt" as a new name of file. |
|
1634 |
//! 4. Call Close() method. |
|
1635 |
//! @SYMTestStatus Implemented |
|
1636 |
//! @SYMTestPriority High |
|
1637 |
//! @SYMTestExpectedResults Function Replace() return KErrBadName. |
|
1638 |
//! @SYMTestType CIT |
|
1639 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1640 |
CREATE_OBJECT RFs RFs1 |
|
1641 |
CREATE_OBJECT RFile RFile1 |
|
1642 |
COMMAND RFs1 new |
|
1643 |
COMMAND RFs1 Connect |
|
1644 |
COMMAND RFile1 new |
|
1645 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2057-001-Create_command05 |
|
1646 |
COMMAND RFile1 Close |
|
1647 |
COMMAND RFile1 ~ |
|
1648 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2057-001-SetSessionPath_command09 |
|
1649 |
COMMAND !Error=-28 RFs1 Replace PBASE-F32-RFS-PublicApi-2057-001-Replace_command10 |
|
1650 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2057-001-Delete_command11 |
|
1651 |
COMMAND RFs1 Close |
|
1652 |
COMMAND RFs1 ~ |
|
1653 |
END_TEST_BLOCK |
|
1654 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2057 |
|
1655 |
||
1656 |
||
1657 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2058 |
|
1658 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2058 |
|
1659 |
//! @SYMAPI RFs |
|
1660 |
//! @SYMCreationDate 5/10/2006 |
|
1661 |
//! @SYMTestCaseDesc Function Replace() negative test where new name of file is invalid. |
|
1662 |
//! Uses API elements: Replace(). |
|
1663 |
//! @SYMTestActions 1. Call Connect() method. |
|
1664 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
1665 |
//! 3. Call Replace() and pass the parameters "testing.txt" as old name and "<>:"/|.txt" as a new name of file. |
|
1666 |
//! 4. Call Close() method. |
|
1667 |
//! @SYMTestStatus Implemented |
|
1668 |
//! @SYMTestPriority High |
|
1669 |
//! @SYMTestExpectedResults Function Replace() return KErrBadName. |
|
1670 |
//! @SYMTestType CIT |
|
1671 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1672 |
CREATE_OBJECT RFs RFs1 |
|
1673 |
CREATE_OBJECT RFile RFile1 |
|
1674 |
COMMAND RFs1 new |
|
1675 |
COMMAND RFs1 Connect |
|
1676 |
COMMAND RFile1 new |
|
1677 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2058-001-Create_command05 |
|
1678 |
COMMAND RFile1 Close |
|
1679 |
COMMAND RFile1 ~ |
|
1680 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2058-001-SetSessionPath_command09 |
|
1681 |
COMMAND !Error=-28 RFs1 Replace PBASE-F32-RFS-PublicApi-2058-001-Replace_command10 |
|
1682 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2058-001-Delete_command11 |
|
1683 |
COMMAND RFs1 Close |
|
1684 |
COMMAND RFs1 ~ |
|
1685 |
END_TEST_BLOCK |
|
1686 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2058 |
|
1687 |
||
1688 |
||
1689 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2059 |
|
1690 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2059 |
|
1691 |
//! @SYMAPI RFs |
|
1692 |
//! @SYMCreationDate 5/10/2006 |
|
1693 |
//! @SYMTestCaseDesc Function Replace() test where new file exists and is a read-only file. |
|
1694 |
//! Uses API elements: Replace(). |
|
1695 |
//! @SYMTestActions 1. Call Connect() method. |
|
1696 |
//! 2. Create two files "T_Sfsrv59_old.txt" and "T_Sfsrv59_new.txt", making sure that the files are closed. |
|
1697 |
//! 3. Call SetAtt() to set "T_Sfsrv59_new.txt" file's KEntryAttReadOnly attribute. |
|
1698 |
//! 4. Call Replace() and pass the parameters "T_Sfsrv59_old.txt" as old name and "T_Sfsrv59_new.txt" as a new name of file. |
|
1699 |
//! 5. Call Delete() method on old file name. |
|
1700 |
//! 6. Call Close() method. |
|
1701 |
//! @SYMTestStatus Implemented |
|
1702 |
//! @SYMTestPriority High |
|
1703 |
//! @SYMTestExpectedResults Function Replace() returns KErrAccessDenied. |
|
1704 |
//! @SYMTestType CIT |
|
1705 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1706 |
CREATE_OBJECT RFs RFs1 |
|
1707 |
CREATE_OBJECT RFile RFile1 |
|
1708 |
COMMAND RFs1 new |
|
1709 |
COMMAND RFs1 Connect |
|
1710 |
COMMAND RFile1 new |
|
1711 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2059-001-Create_command05 |
|
1712 |
COMMAND RFile1 Close |
|
1713 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2059-001-Create_command07 |
|
1714 |
COMMAND RFile1 Close |
|
1715 |
COMMAND RFile1 ~ |
|
1716 |
COMMAND RFs1 SetAtt PBASE-F32-RFS-PublicApi-2059-001-SetAtt_command11 |
|
1717 |
COMMAND RFs1 Att PBASE-F32-RFS-PublicApi-2059-001-Att_command12 |
|
1718 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2059-001-SetSessionPath_command13 |
|
1719 |
COMMAND !Error=-21 RFs1 Replace PBASE-F32-RFS-PublicApi-2059-001-Replace_command14 |
|
1720 |
COMMAND RFs1 SetAtt PBASE-F32-RFS-PublicApi-2059-001-SetAtt_command15 |
|
1721 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2059-001-Delete_command16 |
|
1722 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2059-001-Delete_command17 |
|
1723 |
COMMAND RFs1 Close |
|
1724 |
COMMAND RFs1 ~ |
|
1725 |
END_TEST_BLOCK |
|
1726 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2059 |
|
1727 |
||
1728 |
||
1729 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2060 |
|
1730 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2060 |
|
1731 |
//! @SYMAPI RFs |
|
1732 |
//! @SYMCreationDate 5/10/2006 |
|
1733 |
//! @SYMTestCaseDesc Function Replace() negative test where new path of new file has a other drive. |
|
1734 |
//! Uses API elements: Replace(). |
|
1735 |
//! @SYMTestActions 1. Call Connect() method. |
|
1736 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\" as parameter where <DRIVE> is a MMC drive letter. |
|
1737 |
//! 3. Call Replace() and pass the parameters "T_Sfsrv60_old.txt" as old name and "\base\T_Sfsrv\T_Sfsrv60_new.txt" as a new name of file. |
|
1738 |
//! 4. Call Close() method. |
|
1739 |
//! @SYMTestStatus Implemented |
|
1740 |
//! @SYMTestPriority High |
|
1741 |
//! @SYMTestExpectedResults Function Replace() return KErrArgument. |
|
1742 |
//! @SYMTestType CIT |
|
1743 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1744 |
CREATE_OBJECT RFs RFs1 |
|
1745 |
CREATE_OBJECT RFile RFile1 |
|
1746 |
COMMAND RFs1 new |
|
1747 |
COMMAND RFs1 Connect |
|
1748 |
COMMAND RFile1 new |
|
1749 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2060-001-Create_command05 |
|
1750 |
COMMAND RFile1 Close |
|
1751 |
COMMAND RFile1 ~ |
|
1752 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2060-001-SetSessionPath_command09 |
|
1753 |
COMMAND !Error=-6 RFs1 Replace PBASE-F32-RFS-PublicApi-2060-001-Replace_command10 |
|
1754 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2060-001-Delete_command11 |
|
1755 |
COMMAND RFs1 Close |
|
1756 |
COMMAND RFs1 ~ |
|
1757 |
END_TEST_BLOCK |
|
1758 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2060 |
|
1759 |
||
1760 |
||
1761 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2061 |
|
1762 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2061 |
|
1763 |
//! @SYMAPI RFs |
|
1764 |
//! @SYMCreationDate 5/10/2006 |
|
1765 |
//! @SYMTestCaseDesc Function Rename() negative test where new path of new file has a other drive. |
|
1766 |
//! Uses API elements: Rename(). |
|
1767 |
//! @SYMTestActions 1. Call Connect() method. |
|
1768 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\" as parameter where <DRIVE> is a MMC drive letter. |
|
1769 |
//! 3. Call Rename() and pass the parameters "T_Sfsrv61_old.txt" as old name and "\base\T_Sfsrv\T_Sfsrv61_new.txt" as a new name of file. |
|
1770 |
//! 4. Call Close() method. |
|
1771 |
//! @SYMTestStatus Implemented |
|
1772 |
//! @SYMTestPriority High |
|
1773 |
//! @SYMTestExpectedResults Function Rename() return KErrArgument. |
|
1774 |
//! @SYMTestType CIT |
|
1775 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1776 |
CREATE_OBJECT RFs RFs1 |
|
1777 |
CREATE_OBJECT RFile RFile1 |
|
1778 |
COMMAND RFs1 new |
|
1779 |
COMMAND RFs1 Connect |
|
1780 |
COMMAND RFile1 new |
|
1781 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2061-001-Create_command05 |
|
1782 |
COMMAND RFile1 Close |
|
1783 |
COMMAND RFile1 ~ |
|
1784 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2061-001-SetSessionPath_command09 |
|
1785 |
COMMAND !Error=-6 RFs1 Rename PBASE-F32-RFS-PublicApi-2061-001-Rename_command10 |
|
1786 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2061-001-Delete_command11 |
|
1787 |
COMMAND RFs1 Close |
|
1788 |
COMMAND RFs1 ~ |
|
1789 |
END_TEST_BLOCK |
|
1790 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2061 |
|
1791 |
||
1792 |
||
1793 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2062 |
|
1794 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2062 |
|
1795 |
//! @SYMAPI RFs |
|
1796 |
//! @SYMCreationDate 5/10/2006 |
|
1797 |
//! @SYMTestCaseDesc Function Rename() negative test where new name of file is invalid. |
|
1798 |
//! Uses API elements: Replace(). |
|
1799 |
//! @SYMTestActions 1. Call Connect() method. |
|
1800 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
1801 |
//! 3. Call Rename() and pass the parameters "testing.txt" as old name and "<>:"/|.txt" as a new name of file. |
|
1802 |
//! 4. Call Close() method. |
|
1803 |
//! @SYMTestStatus Implemented |
|
1804 |
//! @SYMTestPriority High |
|
1805 |
//! @SYMTestExpectedResults Function Rename() return KErrBadName. |
|
1806 |
//! @SYMTestType CIT |
|
1807 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1808 |
CREATE_OBJECT RFs RFs1 |
|
1809 |
CREATE_OBJECT RFile RFile1 |
|
1810 |
COMMAND RFs1 new |
|
1811 |
COMMAND RFs1 Connect |
|
1812 |
COMMAND RFile1 new |
|
1813 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2062-001-Create_command05 |
|
1814 |
COMMAND RFile1 Close |
|
1815 |
COMMAND RFile1 ~ |
|
1816 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2062-001-SetSessionPath_command09 |
|
1817 |
COMMAND !Error=-28 RFs1 Rename PBASE-F32-RFS-PublicApi-2062-001-Rename_command10 |
|
1818 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2062-001-Delete_command11 |
|
1819 |
COMMAND RFs1 Close |
|
1820 |
COMMAND RFs1 ~ |
|
1821 |
END_TEST_BLOCK |
|
1822 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2062 |
|
1823 |
||
1824 |
||
1825 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2063 |
|
1826 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2063 |
|
1827 |
//! @SYMAPI RFs |
|
1828 |
//! @SYMCreationDate 5/10/2006 |
|
1829 |
//! @SYMTestCaseDesc Function Rename() negative test where old name of file is invalid. |
|
1830 |
//! Uses API elements: Replace(). |
|
1831 |
//! @SYMTestActions 1. Call Connect() method. |
|
1832 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
1833 |
//! 3. Call Rename() and pass the parameters "<>:"/|.txt" as old name and "rename.txt" as a new name of file. |
|
1834 |
//! 4. Call Close() method. |
|
1835 |
//! @SYMTestStatus Implemented |
|
1836 |
//! @SYMTestPriority High |
|
1837 |
//! @SYMTestExpectedResults Function Rename() return KErrBadName. |
|
1838 |
//! @SYMTestType CIT |
|
1839 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1840 |
CREATE_OBJECT RFs RFs1 |
|
1841 |
COMMAND RFs1 new |
|
1842 |
COMMAND RFs1 Connect |
|
1843 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2063-001-SetSessionPath_command03 |
|
1844 |
COMMAND !Error=-28 RFs1 Rename PBASE-F32-RFS-PublicApi-2063-001-Rename_command04 |
|
1845 |
COMMAND RFs1 Close |
|
1846 |
COMMAND RFs1 ~ |
|
1847 |
END_TEST_BLOCK |
|
1848 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2063 |
|
1849 |
||
1850 |
||
1851 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2064 |
|
1852 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2064 |
|
1853 |
//! @SYMAPI RFs |
|
1854 |
//! @SYMCreationDate 5/10/2006 |
|
1855 |
//! @SYMTestCaseDesc Function Rename() negative test where new file is exist and read only. |
|
1856 |
//! Uses API elements: Replace(). |
|
1857 |
//! @SYMTestActions 1. Call Connect() method. |
|
1858 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
1859 |
//! 3. Call Rename() and pass the parameters "testing.txt" as old name and "rename.txt" as a new name of file. |
|
1860 |
//! 4. Call Close() method. |
|
1861 |
//! @SYMTestStatus Implemented |
|
1862 |
//! @SYMTestPriority High |
|
1863 |
//! @SYMTestExpectedResults Function Rename() return KErrAlreadyExists. |
|
1864 |
//! @SYMTestType CIT |
|
1865 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1866 |
CREATE_OBJECT RFs RFs1 |
|
1867 |
CREATE_OBJECT RFile RFile1 |
|
1868 |
COMMAND RFs1 new |
|
1869 |
COMMAND RFs1 Connect |
|
1870 |
COMMAND RFile1 new |
|
1871 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2064-001-Create_command05 |
|
1872 |
COMMAND RFile1 Close |
|
1873 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2064-001-Create_command07 |
|
1874 |
COMMAND RFile1 Close |
|
1875 |
COMMAND RFile1 ~ |
|
1876 |
COMMAND RFs1 SetAtt PBASE-F32-RFS-PublicApi-2064-001-SetAtt_command11 |
|
1877 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2064-001-SetSessionPath_command12 |
|
1878 |
COMMAND !Error=-11 RFs1 Rename PBASE-F32-RFS-PublicApi-2064-001-Rename_command13 |
|
1879 |
COMMAND RFs1 SetAtt PBASE-F32-RFS-PublicApi-2064-001-SetAtt_command14 |
|
1880 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2064-001-Delete_command15 |
|
1881 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2064-001-Delete_command16 |
|
1882 |
COMMAND RFs1 Close |
|
1883 |
COMMAND RFs1 ~ |
|
1884 |
END_TEST_BLOCK |
|
1885 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2064 |
|
1886 |
||
1887 |
||
1888 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2065 |
|
1889 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2065 |
|
1890 |
//! @SYMAPI RFs |
|
1891 |
//! @SYMCreationDate 5/10/2006 |
|
1892 |
//! @SYMTestCaseDesc Function Rename() negative test where old file does not exist. |
|
1893 |
//! Uses API elements: Replace(). |
|
1894 |
//! @SYMTestActions 1. Call Connect() method. |
|
1895 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
1896 |
//! 3. Call Rename() and pass the parameters "none.txt" as old name and "rename.txt" as a new name of file. |
|
1897 |
//! 4. Call Close() method. |
|
1898 |
//! @SYMTestStatus Implemented |
|
1899 |
//! @SYMTestPriority High |
|
1900 |
//! @SYMTestExpectedResults Function Rename() return KErrNotFound. |
|
1901 |
//! @SYMTestType CIT |
|
1902 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1903 |
CREATE_OBJECT RFs RFs1 |
|
1904 |
COMMAND RFs1 new |
|
1905 |
COMMAND RFs1 Connect |
|
1906 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2065-001-SetSessionPath_command03 |
|
1907 |
COMMAND !Error=-1 RFs1 Rename PBASE-F32-RFS-PublicApi-2065-001-Rename_command04 |
|
1908 |
COMMAND RFs1 Close |
|
1909 |
COMMAND RFs1 ~ |
|
1910 |
END_TEST_BLOCK |
|
1911 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2065 |
|
1912 |
||
1913 |
||
1914 |
||
1915 |
/////////////////////////////// |
|
1916 |
// |
|
1917 |
// ATT |
|
1918 |
// |
|
1919 |
/////////////////////////////// |
|
1920 |
||
1921 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2066 |
|
1922 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2066 |
|
1923 |
//! @SYMAPI RFs |
|
1924 |
//! @SYMCreationDate 5/10/2006 |
|
1925 |
//! @SYMTestCaseDesc Functions Att() negative test where file does not exist. |
|
1926 |
//! Uses API elements: Att(). |
|
1927 |
//! @SYMTestActions 1. Call Connect() method. |
|
1928 |
//! 2. Call Att() and pass parameter "<DRIVE>:\base\T_Sfsrv\none.txt" as name of file where <DRIVE> is a test drive letter. |
|
1929 |
//! 3. Call Close() method. |
|
1930 |
//! @SYMTestStatus Implemented |
|
1931 |
//! @SYMTestPriority High |
|
1932 |
//! @SYMTestExpectedResults Function Att() return KErrNotFound. |
|
1933 |
//! @SYMTestType CIT |
|
1934 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1935 |
CREATE_OBJECT RFs RFs1 |
|
1936 |
COMMAND RFs1 new |
|
1937 |
COMMAND RFs1 Connect |
|
1938 |
COMMAND !Error=-1 RFs1 Att PBASE-F32-RFS-PublicApi-2066-001-Att_command03 |
|
1939 |
COMMAND RFs1 Close |
|
1940 |
COMMAND RFs1 ~ |
|
1941 |
END_TEST_BLOCK |
|
1942 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2066 |
|
1943 |
||
1944 |
||
1945 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2067 |
|
1946 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2067 |
|
1947 |
//! @SYMAPI RFs |
|
1948 |
//! @SYMCreationDate 5/10/2006 |
|
1949 |
//! @SYMTestCaseDesc Functions Att() negative test where name of file is invalid. |
|
1950 |
//! Uses API elements: Att(). |
|
1951 |
//! @SYMTestActions 1. Call Connect() method. |
|
1952 |
//! 2. Call Att() and pass parameter "<>:"/|.txt" as name of file. |
|
1953 |
//! 3. Call Close() method. |
|
1954 |
//! @SYMTestStatus Implemented |
|
1955 |
//! @SYMTestPriority High |
|
1956 |
//! @SYMTestExpectedResults Function Att() return KErrBadName. |
|
1957 |
//! @SYMTestType CIT |
|
1958 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1959 |
CREATE_OBJECT RFs RFs1 |
|
1960 |
COMMAND RFs1 new |
|
1961 |
COMMAND RFs1 Connect |
|
1962 |
COMMAND !Error=-28 RFs1 Att PBASE-F32-RFS-PublicApi-2067-001-Att_command03 |
|
1963 |
COMMAND RFs1 Close |
|
1964 |
COMMAND RFs1 ~ |
|
1965 |
END_TEST_BLOCK |
|
1966 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2067 |
|
1967 |
||
1968 |
||
1969 |
||
1970 |
/////////////////////////////// |
|
1971 |
// |
|
1972 |
// SETATT |
|
1973 |
// |
|
1974 |
/////////////////////////////// |
|
1975 |
||
1976 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2068 |
|
1977 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2068 |
|
1978 |
//! @SYMAPI RFs |
|
1979 |
//! @SYMCreationDate 5/10/2006 |
|
1980 |
//! @SYMTestCaseDesc Functions SetAtt() negative test where file does not exist. |
|
1981 |
//! Uses API elements: SetAtt(). |
|
1982 |
//! @SYMTestActions 1. Call Connect() method. |
|
1983 |
//! 2. Call SetAtt() and pass parameter "none.txt" as name of file. |
|
1984 |
//! 3. Call Close() method. |
|
1985 |
//! @SYMTestStatus Implemented |
|
1986 |
//! @SYMTestPriority High |
|
1987 |
//! @SYMTestExpectedResults Function SetAtt() return KErrNotFound. |
|
1988 |
//! @SYMTestType CIT |
|
1989 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
1990 |
CREATE_OBJECT RFs RFs1 |
|
1991 |
COMMAND RFs1 new |
|
1992 |
COMMAND RFs1 Connect |
|
1993 |
COMMAND !Error=-1 RFs1 SetAtt PBASE-F32-RFS-PublicApi-2068-001-SetAtt_command03 |
|
1994 |
COMMAND RFs1 Close |
|
1995 |
COMMAND RFs1 ~ |
|
1996 |
END_TEST_BLOCK |
|
1997 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2068 |
|
1998 |
||
1999 |
||
2000 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2069 |
|
2001 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2069 |
|
2002 |
//! @SYMAPI RFs |
|
2003 |
//! @SYMCreationDate 5/10/2006 |
|
2004 |
//! @SYMTestCaseDesc Functions Att() negative test where name of file is invalid. |
|
2005 |
//! Uses API elements: AttSetAtt). |
|
2006 |
//! @SYMTestActions 1. Call Connect() method. |
|
2007 |
//! 2. Call SetAtt() and pass parameter "<>:"/|.txt" as name of file. |
|
2008 |
//! 3. Call Close() method. |
|
2009 |
//! @SYMTestStatus Implemented |
|
2010 |
//! @SYMTestPriority High |
|
2011 |
//! @SYMTestExpectedResults Function SetAtt() return KErrBadName. |
|
2012 |
//! @SYMTestType CIT |
|
2013 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2014 |
CREATE_OBJECT RFs RFs1 |
|
2015 |
COMMAND RFs1 new |
|
2016 |
COMMAND RFs1 Connect |
|
2017 |
COMMAND !Error=-28 RFs1 SetAtt PBASE-F32-RFS-PublicApi-2069-001-SetAtt_command03 |
|
2018 |
COMMAND RFs1 Close |
|
2019 |
COMMAND RFs1 ~ |
|
2020 |
END_TEST_BLOCK |
|
2021 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2069 |
|
2022 |
||
2023 |
||
2024 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2070 |
|
2025 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2070 |
|
2026 |
//! @SYMAPI RFs |
|
2027 |
//! @SYMCreationDate 5/10/2006 |
|
2028 |
//! @SYMTestCaseDesc Functions SetAtt() test where the attribute to be set is too big number. |
|
2029 |
//! Uses API elements: SetAtt(). |
|
2030 |
//! @SYMTestActions 1. Call Connect() method. |
|
2031 |
//! 2. Call SetAtt() and pass parameters "testing.txt" as name and "99999999" as set attribute. |
|
2032 |
//! 3. Call Close() method. |
|
2033 |
//! @SYMTestStatus Implemented |
|
2034 |
//! @SYMTestPriority Critical |
|
2035 |
//! @SYMTestExpectedResults Function SetAtt() return KErrNone. |
|
2036 |
//! @SYMTestType CIT |
|
2037 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2038 |
CREATE_OBJECT RFs RFs1 |
|
2039 |
CREATE_OBJECT RFile RFile1 |
|
2040 |
COMMAND RFs1 new |
|
2041 |
COMMAND RFs1 Connect |
|
2042 |
COMMAND RFile1 new |
|
2043 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2070-001-Create_command05 |
|
2044 |
COMMAND RFile1 Close |
|
2045 |
COMMAND RFile1 ~ |
|
2046 |
COMMAND RFs1 SetAtt PBASE-F32-RFS-PublicApi-2070-001-SetAtt_command09 |
|
2047 |
COMMAND RFs1 SetAtt PBASE-F32-RFS-PublicApi-2070-001-SetAtt_command10 |
|
2048 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2070-001-Delete_command11 |
|
2049 |
COMMAND RFs1 Close |
|
2050 |
COMMAND RFs1 ~ |
|
2051 |
END_TEST_BLOCK |
|
2052 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2070 |
|
2053 |
||
2054 |
||
2055 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2071 |
|
2056 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2071 |
|
2057 |
//! @SYMAPI RFs |
|
2058 |
//! @SYMCreationDate 5/10/2006 |
|
2059 |
//! @SYMTestCaseDesc Functions SetAtt() test where the sets attribute "KEntryAttVolume" for RAM drive. |
|
2060 |
//! Uses API elements: SetAtt(), Att(). |
|
2061 |
//! @SYMTestActions 1. Call Connect() method. |
|
2062 |
//! 2. Call SetAtt() and pass parameters "<DRIVE>:\" as name and "KEntryAttVolume" as attribute to be set, where <DRIVE> is a test drive letter. |
|
2063 |
//! 3. Call Att() and check that attribute "KEntryAttVolume" is ignored. |
|
2064 |
//! 3. Call Close() method. |
|
2065 |
//! @SYMTestStatus Implemented |
|
2066 |
//! @SYMTestPriority High |
|
2067 |
//! @SYMTestExpectedResults Function SetAtt() and Att() return KErrBadName, as "<DRIVE>:\" is not a valid file name or directory |
|
2068 |
//! @SYMTestType CIT |
|
2069 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2070 |
CREATE_OBJECT RFs RFs1 |
|
2071 |
COMMAND RFs1 new |
|
2072 |
COMMAND RFs1 Connect |
|
2073 |
COMMAND !Error=-28 RFs1 SetAtt PBASE-F32-RFS-PublicApi-2071-001-SetAtt_command04 |
|
2074 |
COMMAND !Error=-28 RFs1 Att PBASE-F32-RFS-PublicApi-2071-001-Att_command05 |
|
2075 |
COMMAND RFs1 Close |
|
2076 |
COMMAND RFs1 ~ |
|
2077 |
END_TEST_BLOCK |
|
2078 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2071 |
|
2079 |
||
2080 |
||
2081 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2072 |
|
2082 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2072 |
|
2083 |
//! @SYMAPI RFs |
|
2084 |
//! @SYMCreationDate 5/10/2006 |
|
2085 |
//! @SYMTestCaseDesc Functions SetAtt() negative test where attribute appears in both bitmasks. |
|
2086 |
//! Uses API elements: SetAtt(). |
|
2087 |
//! @SYMTestActions 1. Call Connect() method. |
|
2088 |
//! 2. Call SetAtt() and pass parameters "testing.txt" as name and "KEntryAttReadOnly" as clear attribute. |
|
2089 |
//! and "KEntryAttReadOnly" as set attribute. |
|
2090 |
//! 3. Call Close() method. |
|
2091 |
//! @SYMTestStatus Implemented |
|
2092 |
//! @SYMTestPriority High |
|
2093 |
//! @SYMTestExpectedResults Function SetAtt() return FSCLIENT panic Code = 21. |
|
2094 |
//! @SYMTestType CIT |
|
2095 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2096 |
CREATE_OBJECT RFs RFs1 |
|
2097 |
CREATE_OBJECT RFile RFile1 |
|
2098 |
COMMAND RFs1 new |
|
2099 |
COMMAND RFs1 Connect |
|
2100 |
COMMAND RFile1 new |
|
2101 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2072-001-Create_command05 |
|
2102 |
COMMAND RFile1 Close |
|
2103 |
COMMAND RFile1 ~ |
|
2104 |
COMMAND !Error=-28 RFs1 SetAtt PBASE-F32-RFS-PublicApi-2072-001-SetAtt_command09 |
|
2105 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2072-001-Delete_command10 |
|
2106 |
COMMAND RFs1 Close |
|
2107 |
COMMAND RFs1 ~ |
|
2108 |
END_TEST_BLOCK !PanicCode=21 !PanicString="FSCLIENT panic" |
|
2109 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2110 |
CREATE_OBJECT RFs RFs1 |
|
2111 |
COMMAND RFs1 new |
|
2112 |
COMMAND RFs1 Connect |
|
2113 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2072-002-Delete_command03 |
|
2114 |
COMMAND RFs1 Close |
|
2115 |
COMMAND RFs1 ~ |
|
2116 |
END_TEST_BLOCK |
|
2117 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2072 |
|
2118 |
||
2119 |
||
2120 |
||
2121 |
/////////////////////////////// |
|
2122 |
// |
|
2123 |
// MODIFIED |
|
2124 |
// |
|
2125 |
/////////////////////////////// |
|
2126 |
||
2127 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2073 |
|
2128 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2073 |
|
2129 |
//! @SYMAPI RFs |
|
2130 |
//! @SYMCreationDate 5/10/2006 |
|
2131 |
//! @SYMTestCaseDesc Functions Modified() negative test where name of file is invalid. |
|
2132 |
//! Uses API elements: Modified(). |
|
2133 |
//! @SYMTestActions 1. Call Connect() method. |
|
2134 |
//! 2. Call Modified() and pass "<>:"/|.txt" as parameter. |
|
2135 |
//! 3. Call Close() method. |
|
2136 |
//! @SYMTestStatus Implemented |
|
2137 |
//! @SYMTestPriority High |
|
2138 |
//! @SYMTestExpectedResults Function Modified() return KErrBadName. |
|
2139 |
//! @SYMTestType CIT |
|
2140 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2141 |
CREATE_OBJECT RFs RFs1 |
|
2142 |
COMMAND RFs1 new |
|
2143 |
COMMAND RFs1 Connect |
|
2144 |
COMMAND !Error=-28 RFs1 Modified PBASE-F32-RFS-PublicApi-2073-001-Modified_command03 |
|
2145 |
COMMAND RFs1 Close |
|
2146 |
COMMAND RFs1 ~ |
|
2147 |
END_TEST_BLOCK |
|
2148 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2073 |
|
2149 |
||
2150 |
||
2151 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2074 |
|
2152 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2074 |
|
2153 |
//! @SYMAPI RFs |
|
2154 |
//! @SYMCreationDate 5/10/2006 |
|
2155 |
//! @SYMTestCaseDesc Functions Modified() negative test where file does not exist. |
|
2156 |
//! Uses API elements: Modified(). |
|
2157 |
//! @SYMTestActions 1. Call Connect() method. |
|
2158 |
//! 2. Call Modified() and pass "none.txt" as parameter. |
|
2159 |
//! 3. Call Close() method. |
|
2160 |
//! @SYMTestStatus Implemented |
|
2161 |
//! @SYMTestPriority High |
|
2162 |
//! @SYMTestExpectedResults Function Modified() return KErrNotFound. |
|
2163 |
//! @SYMTestType CIT |
|
2164 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2165 |
CREATE_OBJECT RFs RFs1 |
|
2166 |
COMMAND RFs1 new |
|
2167 |
COMMAND RFs1 Connect |
|
2168 |
COMMAND !Error=-1 RFs1 Modified PBASE-F32-RFS-PublicApi-2074-001-Modified_command03 |
|
2169 |
COMMAND RFs1 Close |
|
2170 |
COMMAND RFs1 ~ |
|
2171 |
END_TEST_BLOCK |
|
2172 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2074 |
|
2173 |
||
2174 |
||
2175 |
||
2176 |
/////////////////////////////// |
|
2177 |
// |
|
2178 |
// SETMODIFIED |
|
2179 |
// |
|
2180 |
/////////////////////////////// |
|
2181 |
||
2182 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2075 |
|
2183 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2075 |
|
2184 |
//! @SYMAPI RFs |
|
2185 |
//! @SYMCreationDate 5/10/2006 |
|
2186 |
//! @SYMTestCaseDesc Functions SetModified() negative test where file does not exist. |
|
2187 |
//! Uses API elements: SetModified(). |
|
2188 |
//! @SYMTestActions 1. Call Connect() method. |
|
2189 |
//! 2. Call SetModified() and pass parameters "20060101:" as time and "none.txt" as name of file. |
|
2190 |
//! 3. Call Close() method. |
|
2191 |
//! @SYMTestStatus Implemented |
|
2192 |
//! @SYMTestPriority High |
|
2193 |
//! @SYMTestExpectedResults Function SetModified() return KErrNotFound. |
|
2194 |
//! @SYMTestType CIT |
|
2195 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2196 |
CREATE_OBJECT RFs RFs1 |
|
2197 |
COMMAND RFs1 new |
|
2198 |
COMMAND RFs1 Connect |
|
2199 |
COMMAND !Error=-1 RFs1 SetModified PBASE-F32-RFS-PublicApi-2075-001-SetModified_command03 |
|
2200 |
COMMAND RFs1 Close |
|
2201 |
COMMAND RFs1 ~ |
|
2202 |
END_TEST_BLOCK |
|
2203 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2075 |
|
2204 |
||
2205 |
||
2206 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2076 |
|
2207 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2076 |
|
2208 |
//! @SYMAPI RFs |
|
2209 |
//! @SYMCreationDate 5/10/2006 |
|
2210 |
//! @SYMTestCaseDesc Functions SetModified() negative test where name of file is invalid. |
|
2211 |
//! Uses API elements: SetModified(). |
|
2212 |
//! @SYMTestActions 1. Call Connect() method. |
|
2213 |
//! 2. Call SetModified() and pass parameters "20060101:" as time and "<>:"/|.txt" as name of file. |
|
2214 |
//! 3. Call Close() method. |
|
2215 |
//! @SYMTestStatus Implemented |
|
2216 |
//! @SYMTestPriority High |
|
2217 |
//! @SYMTestExpectedResults Function SetModified() return KErrBadName. |
|
2218 |
//! @SYMTestType CIT |
|
2219 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2220 |
CREATE_OBJECT RFs RFs1 |
|
2221 |
COMMAND RFs1 new |
|
2222 |
COMMAND RFs1 Connect |
|
2223 |
COMMAND !Error=-28 RFs1 SetModified PBASE-F32-RFS-PublicApi-2076-001-SetModified_command03 |
|
2224 |
COMMAND RFs1 Close |
|
2225 |
COMMAND RFs1 ~ |
|
2226 |
END_TEST_BLOCK |
|
2227 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2076 |
|
2228 |
||
2229 |
||
2230 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2077 |
|
2231 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2077 |
|
2232 |
//! @SYMAPI RFs |
|
2233 |
//! @SYMCreationDate 5/10/2006 |
|
2234 |
//! @SYMTestCaseDesc Functions SetModified() test where time is 0. |
|
2235 |
//! Uses API elements: SetModified(). |
|
2236 |
//! @SYMTestActions 1. Call Connect() method. |
|
2237 |
//! 2. Call SetModified() and pass parameters 0-time and "test.txt" (that resides on a MMC drive) as name of file. |
|
2238 |
//! 3. Call Close() method. |
|
2239 |
//! @SYMTestStatus Implemented |
|
2240 |
//! @SYMTestPriority High |
|
2241 |
//! @SYMTestExpectedResults Function SetModified() return KErrNone. |
|
2242 |
//! @SYMTestType CIT |
|
2243 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2244 |
CREATE_OBJECT RFs RFs1 |
|
2245 |
CREATE_OBJECT RFile RFile1 |
|
2246 |
COMMAND RFs1 new |
|
2247 |
COMMAND RFs1 Connect |
|
2248 |
COMMAND RFile1 new |
|
2249 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2077-001-Create_command05 |
|
2250 |
COMMAND RFile1 Close |
|
2251 |
COMMAND RFile1 ~ |
|
2252 |
COMMAND RFs1 SetModified PBASE-F32-RFS-PublicApi-2077-001-SetModified_command09 |
|
2253 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2077-001-Delete_command10 |
|
2254 |
COMMAND RFs1 Close |
|
2255 |
COMMAND RFs1 ~ |
|
2256 |
END_TEST_BLOCK |
|
2257 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2077 |
|
2258 |
||
2259 |
||
2260 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2078 |
|
2261 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2078 |
|
2262 |
//! @SYMAPI RFs |
|
2263 |
//! @SYMCreationDate 5/10/2006 |
|
2264 |
//! @SYMTestCaseDesc Functions SetModified() negative test when the file is read only and open. |
|
2265 |
//! Uses API elements: SetModified(). |
|
2266 |
//! @SYMTestActions 1. Call Connect() method. |
|
2267 |
//! 2. Call Open(); |
|
2268 |
//! 3. Call SetModified() and pass parameters "20060101:" as time and "testing.txt" as name of file. |
|
2269 |
//! 4. Call Close() method. |
|
2270 |
//! @SYMTestStatus Implemented |
|
2271 |
//! @SYMTestPriority High |
|
2272 |
//! @SYMTestExpectedResults Function SetModified() return KErrInUse. |
|
2273 |
//! @SYMTestType CIT |
|
2274 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2275 |
CREATE_OBJECT RFs RFs1 |
|
2276 |
CREATE_OBJECT RFile RFile1 |
|
2277 |
COMMAND RFs1 new |
|
2278 |
COMMAND RFs1 Connect |
|
2279 |
COMMAND RFile1 new |
|
2280 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2078-001-Create_command05 |
|
2281 |
COMMAND RFile1 Close |
|
2282 |
COMMAND RFs1 SetAtt PBASE-F32-RFS-PublicApi-2078-001-SetAtt_command08 |
|
2283 |
COMMAND RFile1 Open PBASE-F32-RFS-PublicApi-2078-001-Open_command10 |
|
2284 |
COMMAND !Error=-14 RFs1 SetModified PBASE-F32-RFS-PublicApi-2078-001-SetModified_command12 |
|
2285 |
COMMAND RFile1 Close |
|
2286 |
COMMAND RFile1 ~ |
|
2287 |
COMMAND RFs1 SetAtt PBASE-F32-RFS-PublicApi-2078-001-SetAtt_command17 |
|
2288 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2078-001-Delete_command18 |
|
2289 |
COMMAND RFs1 Close |
|
2290 |
COMMAND RFs1 ~ |
|
2291 |
END_TEST_BLOCK |
|
2292 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2078 |
|
2293 |
||
2294 |
||
2295 |
||
2296 |
/////////////////////////////// |
|
2297 |
// |
|
2298 |
// ENTRY |
|
2299 |
// |
|
2300 |
/////////////////////////////// |
|
2301 |
||
2302 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2079 |
|
2303 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2079 |
|
2304 |
//! @SYMAPI RFs |
|
2305 |
//! @SYMCreationDate 5/10/2006 |
|
2306 |
//! @SYMTestCaseDesc Functions Entry() negative test where name of file is invalid. |
|
2307 |
//! Uses API elements: Entry(). |
|
2308 |
//! @SYMTestActions 1. Call Connect() method. |
|
2309 |
//! 2. Call Entry() and pass "<>:"/|.txt" as parameter. |
|
2310 |
//! 3. Call Close() method. |
|
2311 |
//! @SYMTestStatus Implemented |
|
2312 |
//! @SYMTestPriority High |
|
2313 |
//! @SYMTestExpectedResults Function Entry() return KErrBadName. |
|
2314 |
//! @SYMTestType CIT |
|
2315 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2316 |
CREATE_OBJECT RFs RFs1 |
|
2317 |
COMMAND RFs1 new |
|
2318 |
COMMAND RFs1 Connect |
|
2319 |
COMMAND !Error=-28 RFs1 Entry PBASE-F32-RFS-PublicApi-2079-001-Entry_command03 |
|
2320 |
COMMAND RFs1 Close |
|
2321 |
COMMAND RFs1 ~ |
|
2322 |
END_TEST_BLOCK |
|
2323 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2079 |
|
2324 |
||
2325 |
||
2326 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2080 |
|
2327 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2080 |
|
2328 |
//! @SYMAPI RFs |
|
2329 |
//! @SYMCreationDate 5/10/2006 |
|
2330 |
//! @SYMTestCaseDesc Functions Entry() negative test where file does not exist. |
|
2331 |
//! Uses API elements: Entry(). |
|
2332 |
//! @SYMTestActions 1. Call Connect() method. |
|
2333 |
//! 2. Call Entry() and pass "none.txt" as parameter. |
|
2334 |
//! 3. Call Close() method. |
|
2335 |
//! @SYMTestStatus Implemented |
|
2336 |
//! @SYMTestPriority High |
|
2337 |
//! @SYMTestExpectedResults Function Entry() return KErrNotFound. |
|
2338 |
//! @SYMTestType CIT |
|
2339 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2340 |
CREATE_OBJECT RFs RFs1 |
|
2341 |
COMMAND RFs1 new |
|
2342 |
COMMAND RFs1 Connect |
|
2343 |
COMMAND !Error=-1 RFs1 Entry PBASE-F32-RFS-PublicApi-2080-001-Entry_command03 |
|
2344 |
COMMAND RFs1 Close |
|
2345 |
COMMAND RFs1 ~ |
|
2346 |
END_TEST_BLOCK |
|
2347 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2080 |
|
2348 |
||
2349 |
||
2350 |
||
2351 |
/////////////////////////////// |
|
2352 |
// |
|
2353 |
// SETENTRY |
|
2354 |
// |
|
2355 |
/////////////////////////////// |
|
2356 |
||
2357 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2081 |
|
2358 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2081 |
|
2359 |
//! @SYMAPI RFs |
|
2360 |
//! @SYMCreationDate 5/10/2006 |
|
2361 |
//! @SYMTestCaseDesc Functions SetEntry() negative test where file does not exist. |
|
2362 |
//! Uses API elements: SetEntry(). |
|
2363 |
//! @SYMTestActions 1. Call Connect() method. |
|
2364 |
//! 2. Call SetEntry() and pass "none.txt" as parameter. |
|
2365 |
//! 3. Call Close() method. |
|
2366 |
//! @SYMTestStatus Implemented |
|
2367 |
//! @SYMTestPriority High |
|
2368 |
//! @SYMTestExpectedResults Function SetEntry() return KErrNotFound. |
|
2369 |
//! @SYMTestType CIT |
|
2370 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2371 |
CREATE_OBJECT RFs RFs1 |
|
2372 |
COMMAND RFs1 new |
|
2373 |
COMMAND RFs1 Connect |
|
2374 |
COMMAND !Error=-1 RFs1 SetEntry PBASE-F32-RFS-PublicApi-2081-001-SetEntry_command03 |
|
2375 |
COMMAND RFs1 Close |
|
2376 |
COMMAND RFs1 ~ |
|
2377 |
END_TEST_BLOCK |
|
2378 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2081 |
|
2379 |
||
2380 |
||
2381 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2082 |
|
2382 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2082 |
|
2383 |
//! @SYMAPI RFs |
|
2384 |
//! @SYMCreationDate 5/10/2006 |
|
2385 |
//! @SYMTestCaseDesc Functions SetEntry() negative test where name of file is invalid. |
|
2386 |
//! Uses API elements: SetEntry(). |
|
2387 |
//! @SYMTestActions 1. Call Connect() method. |
|
2388 |
//! 2. Call SetEntry() and pass "<>:"/|.txt" as parameter. |
|
2389 |
//! 3. Call Close() method. |
|
2390 |
//! @SYMTestStatus Implemented |
|
2391 |
//! @SYMTestPriority High |
|
2392 |
//! @SYMTestExpectedResults Function SetEntry() return KErrBadName. |
|
2393 |
//! @SYMTestType CIT |
|
2394 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2395 |
CREATE_OBJECT RFs RFs1 |
|
2396 |
COMMAND RFs1 new |
|
2397 |
COMMAND RFs1 Connect |
|
2398 |
COMMAND !Error=-28 RFs1 SetEntry PBASE-F32-RFS-PublicApi-2082-001-SetEntry_command03 |
|
2399 |
COMMAND RFs1 Close |
|
2400 |
COMMAND RFs1 ~ |
|
2401 |
END_TEST_BLOCK |
|
2402 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2082 |
|
2403 |
||
2404 |
||
2405 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2083 |
|
2406 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2083 |
|
2407 |
//! @SYMAPI RFs |
|
2408 |
//! @SYMCreationDate 5/10/2006 |
|
2409 |
//! @SYMTestCaseDesc Functions SetEntry() test where set attribute is a big number. |
|
2410 |
//! Uses API elements: SetEntry(). |
|
2411 |
//! @SYMTestActions 1. Call Connect() method. |
|
2412 |
//! 2. Call SetEntry() and pass parameters "test.txt" as name and "2147483647" (hex FFFFFFFF) as set attribute of file. |
|
2413 |
//! 3. Call Close() method. |
|
2414 |
//! @SYMTestStatus Implemented |
|
2415 |
//! @SYMTestPriority Critical |
|
2416 |
//! @SYMTestExpectedResults Function SetEntry() return KErrNone. |
|
2417 |
//! @SYMTestType CIT |
|
2418 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2419 |
CREATE_OBJECT RFs RFs1 |
|
2420 |
CREATE_OBJECT RFile RFile1 |
|
2421 |
COMMAND RFs1 new |
|
2422 |
COMMAND RFs1 Connect |
|
2423 |
COMMAND RFile1 new |
|
2424 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2083-001-Create_command05 |
|
2425 |
COMMAND RFile1 Close |
|
2426 |
COMMAND RFile1 ~ |
|
2427 |
COMMAND RFs1 SetEntry PBASE-F32-RFS-PublicApi-2083-001-SetEntry_command09 |
|
2428 |
COMMAND RFs1 SetEntry PBASE-F32-RFS-PublicApi-2083-001-SetEntry_command10 |
|
2429 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2083-001-Delete_command11 |
|
2430 |
COMMAND RFs1 Close |
|
2431 |
COMMAND RFs1 ~ |
|
2432 |
END_TEST_BLOCK |
|
2433 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2083 |
|
2434 |
||
2435 |
||
2436 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2084 |
|
2437 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2084 |
|
2438 |
//! @SYMAPI RFs |
|
2439 |
//! @SYMCreationDate 5/10/2006 |
|
2440 |
//! @SYMTestCaseDesc Functions SetEntry() negative test where an attribute is set and unset in the same time. |
|
2441 |
//! Uses API elements: SetEntry(). |
|
2442 |
//! @SYMTestActions 1. Call Connect() method. |
|
2443 |
//! 2. Call SetEntry() and pass parameters "test.txt" as name and KEntryAttReadOnly as both clear and set attribute. |
|
2444 |
//! 3. Call Close() method. |
|
2445 |
//! @SYMTestStatus Implemented |
|
2446 |
//! @SYMTestPriority High |
|
2447 |
//! @SYMTestExpectedResults Function SetEntry() return FSCLIENT panic Code = 21. |
|
2448 |
//! @SYMTestType CIT |
|
2449 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2450 |
CREATE_OBJECT RFs RFs1 |
|
2451 |
CREATE_OBJECT RFile RFile1 |
|
2452 |
COMMAND RFs1 new |
|
2453 |
COMMAND RFs1 Connect |
|
2454 |
COMMAND RFile1 new |
|
2455 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2084-001-Create_command05 |
|
2456 |
COMMAND RFile1 Close |
|
2457 |
COMMAND RFile1 ~ |
|
2458 |
COMMAND RFs1 SetEntry PBASE-F32-RFS-PublicApi-2084-001-SetEntry_command09 |
|
2459 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2084-001-Delete_command10 |
|
2460 |
COMMAND RFs1 Close |
|
2461 |
COMMAND RFs1 ~ |
|
2462 |
END_TEST_BLOCK !PanicCode=21 !PanicString="FSCLIENT panic" |
|
2463 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2464 |
CREATE_OBJECT RFs RFs1 |
|
2465 |
COMMAND RFs1 new |
|
2466 |
COMMAND RFs1 Connect |
|
2467 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2084-002-Delete_command03 |
|
2468 |
COMMAND RFs1 Close |
|
2469 |
COMMAND RFs1 ~ |
|
2470 |
END_TEST_BLOCK |
|
2471 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2084 |
|
2472 |
||
2473 |
||
2474 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2085 |
|
2475 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2085 |
|
2476 |
//! @SYMAPI RFs |
|
2477 |
//! @SYMCreationDate 5/10/2006 |
|
2478 |
//! @SYMTestCaseDesc Functions SetEntry() negative test where time is negative. |
|
2479 |
//! Uses API elements: SetEntry(). |
|
2480 |
//! @SYMTestActions 1. Call Connect() method. |
|
2481 |
//! 2. Call SetEntry() and pass parameters "test.txt" as name (that resides on a MMC drive) and "-12345" as time and read only. |
|
2482 |
//! 3. Call Delete() fails with error KErrAccessDenied |
|
2483 |
//! 4. Call SetEntry() and remove read only. |
|
2484 |
//! 5. Call Delete(). |
|
2485 |
//! 6. Call Close() method. |
|
2486 |
//! @SYMTestStatus Implemented |
|
2487 |
//! @SYMTestPriority Critical |
|
2488 |
//! @SYMTestExpectedResults First Delete() call returns KErrAccessDenied. |
|
2489 |
//! @SYMTestType CIT |
|
2490 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2491 |
CREATE_OBJECT RFs RFs1 |
|
2492 |
CREATE_OBJECT RFile RFile1 |
|
2493 |
COMMAND RFs1 new |
|
2494 |
COMMAND RFs1 Connect |
|
2495 |
COMMAND RFile1 new |
|
2496 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2085-001-Create_command05 |
|
2497 |
COMMAND RFile1 Close |
|
2498 |
COMMAND RFile1 ~ |
|
2499 |
COMMAND RFs1 SetEntry PBASE-F32-RFS-PublicApi-2085-001-SetEntry_command09 |
|
2500 |
COMMAND !Error=-21 RFs1 Delete PBASE-F32-RFS-PublicApi-2085-001-Delete_command10 |
|
2501 |
COMMAND RFs1 SetEntry PBASE-F32-RFS-PublicApi-2085-001-SetEntry_command11 |
|
2502 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2085-001-Delete_command12 |
|
2503 |
COMMAND RFs1 Close |
|
2504 |
COMMAND RFs1 ~ |
|
2505 |
END_TEST_BLOCK |
|
2506 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2085 |
|
2507 |
||
2508 |
||
2509 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2086 |
|
2510 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2086 |
|
2511 |
//! @SYMAPI RFs |
|
2512 |
//! @SYMCreationDate 5/10/2006 |
|
2513 |
//! @SYMTestCaseDesc Functions SetEntry() negative test where attribute appears in both bitmasks. |
|
2514 |
//! Uses API elements: SetEntry(). |
|
2515 |
//! @SYMTestActions 1. Call Connect() method. |
|
2516 |
//! 2. Call SetEntry() and pass parameters "test.txt" as name and "KEntryAttReadOnly" as set attribute |
|
2517 |
//! and "KEntryAttReadOnly" as clear attribute. |
|
2518 |
//! 3. Call Close() method. |
|
2519 |
//! @SYMTestStatus Implemented |
|
2520 |
//! @SYMTestPriority High |
|
2521 |
//! @SYMTestExpectedResults Function SetEntry() return FSCLIENT panic Code = 21. |
|
2522 |
//! @SYMTestType CIT |
|
2523 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2524 |
CREATE_OBJECT RFs RFs1 |
|
2525 |
CREATE_OBJECT RFile RFile1 |
|
2526 |
COMMAND RFs1 new |
|
2527 |
COMMAND RFs1 Connect |
|
2528 |
COMMAND RFile1 new |
|
2529 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2086-001-Create_command05 |
|
2530 |
COMMAND RFile1 Close |
|
2531 |
COMMAND RFile1 ~ |
|
2532 |
COMMAND RFs1 SetEntry PBASE-F32-RFS-PublicApi-2086-001-SetEntry_command09 |
|
2533 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2086-001-Delete_command10 |
|
2534 |
COMMAND RFs1 Close |
|
2535 |
COMMAND RFs1 ~ |
|
2536 |
END_TEST_BLOCK !PanicCode=21 !PanicString="FSCLIENT panic" |
|
2537 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2538 |
CREATE_OBJECT RFs RFs1 |
|
2539 |
COMMAND RFs1 new |
|
2540 |
COMMAND RFs1 Connect |
|
2541 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2086-002-Delete_command03 |
|
2542 |
COMMAND RFs1 Close |
|
2543 |
COMMAND RFs1 ~ |
|
2544 |
END_TEST_BLOCK |
|
2545 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2086 |
|
2546 |
||
2547 |
||
2548 |
||
2549 |
/////////////////////////////// |
|
2550 |
// |
|
2551 |
// READFILESECTION |
|
2552 |
// |
|
2553 |
/////////////////////////////// |
|
2554 |
||
2555 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2087 |
|
2556 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2087 |
|
2557 |
//! @SYMAPI RFs |
|
2558 |
//! @SYMCreationDate 5/10/2006 |
|
2559 |
//! @SYMTestCaseDesc Function ReadFileSection() negative test where name of file is invalid. |
|
2560 |
//! Uses API elements: ReadFileSection(). |
|
2561 |
//! @SYMTestActions 1. Call Connect() method. |
|
2562 |
//! 2. Call ReadFileSection() and pass parameter "<>:"/|.txt" as name of file. |
|
2563 |
//! 3. Call Close() method. |
|
2564 |
//! @SYMTestStatus Implemented |
|
2565 |
//! @SYMTestPriority Critical |
|
2566 |
//! @SYMTestExpectedResults Function ReadFileSection() return KErrBadName. |
|
2567 |
//! @SYMTestType CIT |
|
2568 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2569 |
CREATE_OBJECT RFs RFs1 |
|
2570 |
COMMAND RFs1 new |
|
2571 |
COMMAND RFs1 Connect |
|
2572 |
COMMAND !Error=-28 RFs1 ReadFileSection PBASE-F32-RFS-PublicApi-2087-001-ReadFileSection_command03 |
|
2573 |
COMMAND RFs1 Close |
|
2574 |
COMMAND RFs1 ~ |
|
2575 |
END_TEST_BLOCK |
|
2576 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2087 |
|
2577 |
||
2578 |
||
2579 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2088 |
|
2580 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2088 |
|
2581 |
//! @SYMAPI RFs |
|
2582 |
//! @SYMCreationDate 5/10/2006 |
|
2583 |
//! @SYMTestCaseDesc Function ReadFileSection() negative test where file does not exist. |
|
2584 |
//! Uses API elements: ReadFileSection(). |
|
2585 |
//! @SYMTestActions 1. Call Connect() method. |
|
2586 |
//! 2. Call ReadFileSection() and pass parameter "none.txt" as name of file. |
|
2587 |
//! 3. Call Close() method. |
|
2588 |
//! @SYMTestStatus Implemented |
|
2589 |
//! @SYMTestPriority High |
|
2590 |
//! @SYMTestExpectedResults Function ReadFileSection() return KErrNotFound. |
|
2591 |
//! @SYMTestType CIT |
|
2592 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2593 |
CREATE_OBJECT RFs RFs1 |
|
2594 |
COMMAND RFs1 new |
|
2595 |
COMMAND RFs1 Connect |
|
2596 |
COMMAND !Error=-1 RFs1 ReadFileSection PBASE-F32-RFS-PublicApi-2088-001-ReadFileSection_command03 |
|
2597 |
COMMAND RFs1 Close |
|
2598 |
COMMAND RFs1 ~ |
|
2599 |
END_TEST_BLOCK |
|
2600 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2088 |
|
2601 |
||
2602 |
||
2603 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2089 |
|
2604 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2089 |
|
2605 |
//! @SYMAPI RFs |
|
2606 |
//! @SYMCreationDate 5/10/2006 |
|
2607 |
//! @SYMTestCaseDesc Function ReadFileSection() negative test where the offset from the start is negative. |
|
2608 |
//! Uses API elements: ReadFileSection(). |
|
2609 |
//! @SYMTestActions 1. Call Connect() method. |
|
2610 |
//! 2. Call ReadFileSection() and pass parameters "test.txt" as name of file and "-12345" as offset. |
|
2611 |
//! 3. Call Close() method. |
|
2612 |
//! @SYMTestStatus Implemented |
|
2613 |
//! @SYMTestPriority High |
|
2614 |
//! @SYMTestExpectedResults Function ReadFileSection() return panic FSCLIENT: 19. |
|
2615 |
//! @SYMTestType CIT |
|
2616 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2617 |
CREATE_OBJECT RFs RFs1 |
|
2618 |
CREATE_OBJECT RFile RFile1 |
|
2619 |
COMMAND RFs1 new |
|
2620 |
COMMAND RFs1 Connect |
|
2621 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2089-001-SetSessionPath_command03 |
|
2622 |
COMMAND RFile1 new |
|
2623 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2089-001-Create_command06 |
|
2624 |
COMMAND RFile1 Write PBASE-F32-RFS-PublicApi-2089-001-Write_command07 |
|
2625 |
COMMAND RFile1 Close |
|
2626 |
COMMAND RFile1 ~ |
|
2627 |
COMMAND RFs1 ReadFileSection PBASE-F32-RFS-PublicApi-2089-001-ReadFileSection_command11 |
|
2628 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2089-001-Delete_command12 |
|
2629 |
COMMAND RFs1 Close |
|
2630 |
COMMAND RFs1 ~ |
|
2631 |
END_TEST_BLOCK !PanicCode=19 !PanicString="FSCLIENT panic" |
|
2632 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2633 |
CREATE_OBJECT RFs RFs1 |
|
2634 |
COMMAND RFs1 new |
|
2635 |
COMMAND RFs1 Connect |
|
2636 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2089-002-Delete_command03 |
|
2637 |
COMMAND RFs1 Close |
|
2638 |
COMMAND RFs1 ~ |
|
2639 |
END_TEST_BLOCK |
|
2640 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2089 |
|
2641 |
||
2642 |
||
2643 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2090 |
|
2644 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2090 |
|
2645 |
//! @SYMAPI RFs |
|
2646 |
//! @SYMCreationDate 5/10/2006 |
|
2647 |
//! @SYMTestCaseDesc Function ReadFileSection() negative test where the number of bytes to be read from the file greater than the maximum length of the target buffer. |
|
2648 |
//! Uses API elements: ReadFileSection(). |
|
2649 |
//! @SYMTestActions 1. Call Connect() method. |
|
2650 |
//! 2. Creating the buffer length equaling 10 bytes for the data to be read from the file. |
|
2651 |
//! 2. Call ReadFileSection() and pass parameters "test.txt" as name, |
|
2652 |
//! "20" as the number of bytes to be read from the file, |
|
2653 |
//! "10" as the buffer length for the data to be read from the file. |
|
2654 |
//! 3. Call Close() method. |
|
2655 |
//! @SYMTestStatus Implemented |
|
2656 |
//! @SYMTestPriority High |
|
2657 |
//! @SYMTestExpectedResults Function ReadFileSection() return FSCLIENT panic = 27. |
|
2658 |
//! @SYMTestType CIT |
|
2659 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2660 |
CREATE_OBJECT RFs RFs1 |
|
2661 |
CREATE_OBJECT RFile RFile1 |
|
2662 |
COMMAND RFs1 new |
|
2663 |
COMMAND RFs1 Connect |
|
2664 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2090-001-SetSessionPath_command03 |
|
2665 |
COMMAND RFile1 new |
|
2666 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2090-001-Create_command06 |
|
2667 |
COMMAND RFile1 Write PBASE-F32-RFS-PublicApi-2090-001-Write_command07 |
|
2668 |
COMMAND RFile1 Close |
|
2669 |
COMMAND RFile1 ~ |
|
2670 |
COMMAND RFs1 ReadFileSection PBASE-F32-RFS-PublicApi-2090-001-ReadFileSection_command11 |
|
2671 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2090-001-Delete_command12 |
|
2672 |
COMMAND RFs1 Close |
|
2673 |
COMMAND RFs1 ~ |
|
2674 |
END_TEST_BLOCK !PanicCode=27 !PanicString="FSCLIENT panic" |
|
2675 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2676 |
CREATE_OBJECT RFs RFs1 |
|
2677 |
COMMAND RFs1 new |
|
2678 |
COMMAND RFs1 Connect |
|
2679 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2090-002-Delete_command03 |
|
2680 |
COMMAND RFs1 Close |
|
2681 |
COMMAND RFs1 ~ |
|
2682 |
END_TEST_BLOCK |
|
2683 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2090 |
|
2684 |
||
2685 |
||
2686 |
||
2687 |
/////////////////////////////// |
|
2688 |
// |
|
2689 |
// ISFILEISOPEN |
|
2690 |
// |
|
2691 |
/////////////////////////////// |
|
2692 |
||
2693 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2091 |
|
2694 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2091 |
|
2695 |
//! @SYMAPI RFs |
|
2696 |
//! @SYMCreationDate 5/10/2006 |
|
2697 |
//! @SYMTestCaseDesc Function IsFileOpen() negative test where name of file is invalid. |
|
2698 |
//! Uses API elements: IsFileOpen(). |
|
2699 |
//! @SYMTestActions 1. Call Connect() method. |
|
2700 |
//! 2. Call IsFileOpen() and pass parameter "<>:"/|.txt" as name of file. |
|
2701 |
//! 3. Call Close() method. |
|
2702 |
//! @SYMTestStatus Implemented |
|
2703 |
//! @SYMTestPriority Critical |
|
2704 |
//! @SYMTestExpectedResults Function IsFileOpen() return KErrBadName. |
|
2705 |
//! @SYMTestType CIT |
|
2706 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2707 |
CREATE_OBJECT RFs RFs1 |
|
2708 |
COMMAND RFs1 new |
|
2709 |
COMMAND RFs1 Connect |
|
2710 |
COMMAND !Error=-28 RFs1 IsFileOpen PBASE-F32-RFS-PublicApi-2091-001-IsFileOpen_command03 |
|
2711 |
COMMAND RFs1 Close |
|
2712 |
COMMAND RFs1 ~ |
|
2713 |
END_TEST_BLOCK |
|
2714 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2091 |
|
2715 |
||
2716 |
||
2717 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2092 |
|
2718 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2092 |
|
2719 |
//! @SYMAPI RFs |
|
2720 |
//! @SYMCreationDate 5/10/2006 |
|
2721 |
//! @SYMTestCaseDesc Function IsFileOpen() negative test where file does not exist. |
|
2722 |
//! Uses API elements: IsFileOpen(). |
|
2723 |
//! @SYMTestActions 1. Call Connect() method. |
|
2724 |
//! 2. Call IsFileOpen() and pass parameter "<DRIVE>:\base\T_Sfsrv\none.txt" as name of file where <DRIVE> is a test drive letter. |
|
2725 |
//! 3. Call Close() method. |
|
2726 |
//! @SYMTestStatus Implemented |
|
2727 |
//! @SYMTestPriority High |
|
2728 |
//! @SYMTestExpectedResults Function IsFileOpen() return KErrNotFound. |
|
2729 |
//! @SYMTestType CIT |
|
2730 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2731 |
CREATE_OBJECT RFs RFs1 |
|
2732 |
COMMAND RFs1 new |
|
2733 |
COMMAND RFs1 Connect |
|
2734 |
COMMAND !Error=-1 RFs1 IsFileOpen PBASE-F32-RFS-PublicApi-2092-001-IsFileOpen_command03 |
|
2735 |
COMMAND RFs1 Close |
|
2736 |
COMMAND RFs1 ~ |
|
2737 |
END_TEST_BLOCK |
|
2738 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2092 |
|
2739 |
||
2740 |
||
2741 |
||
2742 |
/////////////////////////////// |
|
2743 |
// |
|
2744 |
// GETSHORTNAME |
|
2745 |
// |
|
2746 |
/////////////////////////////// |
|
2747 |
||
2748 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2093 |
|
2749 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2093 |
|
2750 |
//! @SYMAPI RFs |
|
2751 |
//! @SYMCreationDate 5/10/2006 |
|
2752 |
//! @SYMTestCaseDesc Function GetShortName() negative test where name of file is invalid. |
|
2753 |
//! Uses API elements: GetShortName(). |
|
2754 |
//! @SYMTestActions 1. Call Connect() method. |
|
2755 |
//! 2. Call GetShortName() and pass parameter "<DRIVE>:\base\T_Sfsrv\<>:"/|.txt" as name of file where <DRIVE> is a test drive letter. |
|
2756 |
//! 3. Call Close() method. |
|
2757 |
//! @SYMTestStatus Implemented |
|
2758 |
//! @SYMTestPriority High |
|
2759 |
//! @SYMTestExpectedResults Function IsFileOpen() return KErrBadName. |
|
2760 |
//! @SYMTestType CIT |
|
2761 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2762 |
CREATE_OBJECT RFs RFs1 |
|
2763 |
COMMAND RFs1 new |
|
2764 |
COMMAND RFs1 Connect |
|
2765 |
COMMAND !Error=-28 RFs1 GetShortName PBASE-F32-RFS-PublicApi-2093-001-GetShortName_command03 |
|
2766 |
COMMAND RFs1 Close |
|
2767 |
COMMAND RFs1 ~ |
|
2768 |
END_TEST_BLOCK |
|
2769 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2093 |
|
2770 |
||
2771 |
||
2772 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2094 |
|
2773 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2094 |
|
2774 |
//! @SYMAPI RFs |
|
2775 |
//! @SYMCreationDate 5/10/2006 |
|
2776 |
//! @SYMTestCaseDesc Function GetShortName() negative test where file does not exist. |
|
2777 |
//! Uses API elements: GetShortName(). |
|
2778 |
//! @SYMTestActions 1. Call Connect() method. |
|
2779 |
//! 2. Call GetShortName() and pass parameter "<DRIVE>:\base\T_Sfsrv\none.txt" as name of file where <DRIVE> is a test drive letter. |
|
2780 |
//! 3. Call Close() method. |
|
2781 |
//! @SYMTestStatus Implemented |
|
2782 |
//! @SYMTestPriority High |
|
2783 |
//! @SYMTestExpectedResults Function IsFileOpen() return KErrNotFound. |
|
2784 |
//! @SYMTestType CIT |
|
2785 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2786 |
CREATE_OBJECT RFs RFs1 |
|
2787 |
COMMAND RFs1 new |
|
2788 |
COMMAND RFs1 Connect |
|
2789 |
COMMAND !Error=-1 RFs1 GetShortName PBASE-F32-RFS-PublicApi-2094-001-GetShortName_command03 |
|
2790 |
COMMAND RFs1 Close |
|
2791 |
COMMAND RFs1 ~ |
|
2792 |
END_TEST_BLOCK |
|
2793 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2094 |
|
2794 |
||
2795 |
||
2796 |
||
2797 |
/////////////////////////////// |
|
2798 |
// |
|
2799 |
// GETLONGNAME |
|
2800 |
// |
|
2801 |
/////////////////////////////// |
|
2802 |
||
2803 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2095 |
|
2804 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2095 |
|
2805 |
//! @SYMAPI RFs |
|
2806 |
//! @SYMCreationDate 5/10/2006 |
|
2807 |
//! @SYMTestCaseDesc Function GetLongName() negative test where name of file is invalid. |
|
2808 |
//! Uses API elements: GetLongName(). |
|
2809 |
//! @SYMTestActions 1. Call Connect() method. |
|
2810 |
//! 2. Call GetLongName() and pass parameter "<DRIVE>:\base\T_Sfsrv\<>:"/|.txt" as name of file where <DRIVE> is a test drive letter. |
|
2811 |
//! 3. Call Close() method. |
|
2812 |
//! @SYMTestStatus Implemented |
|
2813 |
//! @SYMTestPriority High |
|
2814 |
//! @SYMTestExpectedResults Function GetLongName() return KErrBadName. |
|
2815 |
//! @SYMTestType CIT |
|
2816 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2817 |
CREATE_OBJECT RFs RFs1 |
|
2818 |
COMMAND RFs1 new |
|
2819 |
COMMAND RFs1 Connect |
|
2820 |
COMMAND !Error=-28 RFs1 GetLongName PBASE-F32-RFS-PublicApi-2095-001-GetLongName_command03 |
|
2821 |
COMMAND RFs1 Close |
|
2822 |
COMMAND RFs1 ~ |
|
2823 |
END_TEST_BLOCK |
|
2824 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2095 |
|
2825 |
||
2826 |
||
2827 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2096 |
|
2828 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2096 |
|
2829 |
//! @SYMAPI RFs |
|
2830 |
//! @SYMCreationDate 5/10/2006 |
|
2831 |
//! @SYMTestCaseDesc Function GetLongName() negative test where file does not exist. |
|
2832 |
//! Uses API elements: GetLongName(). |
|
2833 |
//! @SYMTestActions 1. Call Connect() method. |
|
2834 |
//! 2. Call GetLongName() and pass parameter "none.txt" as name of file. |
|
2835 |
//! 3. Call Close() method. |
|
2836 |
//! @SYMTestStatus Implemented |
|
2837 |
//! @SYMTestPriority High |
|
2838 |
//! @SYMTestExpectedResults Function GetLongName() return KErrNotFound. |
|
2839 |
//! @SYMTestType CIT |
|
2840 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2841 |
CREATE_OBJECT RFs RFs1 |
|
2842 |
COMMAND RFs1 new |
|
2843 |
COMMAND RFs1 Connect |
|
2844 |
COMMAND !Error=-1 RFs1 GetLongName PBASE-F32-RFS-PublicApi-2096-001-GetLongName_command03 |
|
2845 |
COMMAND RFs1 Close |
|
2846 |
COMMAND RFs1 ~ |
|
2847 |
END_TEST_BLOCK |
|
2848 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2096 |
|
2849 |
||
2850 |
||
2851 |
||
2852 |
/////////////////////////////// |
|
2853 |
// |
|
2854 |
// ISFILEINROM |
|
2855 |
// |
|
2856 |
/////////////////////////////// |
|
2857 |
||
2858 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2097 |
|
2859 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2097 |
|
2860 |
//! @SYMAPI RFs |
|
2861 |
//! @SYMCreationDate 5/10/2006 |
|
2862 |
//! @SYMTestCaseDesc Function IsFileInRom() test where name of file is invalid. |
|
2863 |
//! Uses API elements: IsFileInRom(). |
|
2864 |
//! @SYMTestActions 1. Call Connect() method. |
|
2865 |
//! 2. Call IsFileInRom() and pass parameter "<DRIVE>:\base\T_Sfsrv\<>:"/|.txt" as name of file and check that the result is FALSE where <DRIVE> is a test drive letter. |
|
2866 |
//! 3. Call Close() method. |
|
2867 |
//! @SYMTestStatus Implemented |
|
2868 |
//! @SYMTestPriority Critical |
|
2869 |
//! @SYMTestExpectedResults Function IsFileInRom() return FALSE. |
|
2870 |
//! @SYMTestType CIT |
|
2871 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2872 |
CREATE_OBJECT RFs RFs1 |
|
2873 |
COMMAND RFs1 new |
|
2874 |
COMMAND RFs1 Connect |
|
2875 |
COMMAND RFs1 IsFileInRom PBASE-F32-RFS-PublicApi-2097-001-IsFileInRom_command03 |
|
2876 |
COMMAND RFs1 Close |
|
2877 |
COMMAND RFs1 ~ |
|
2878 |
END_TEST_BLOCK |
|
2879 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2097 |
|
2880 |
||
2881 |
||
2882 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2098 |
|
2883 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2098 |
|
2884 |
//! @SYMAPI RFs |
|
2885 |
//! @SYMCreationDate 5/10/2006 |
|
2886 |
//! @SYMTestCaseDesc Function IsFileInRom() test where file does not exist. |
|
2887 |
//! Uses API elements: IsFileInRom(). |
|
2888 |
//! @SYMTestActions 1. Call Connect() method. |
|
2889 |
//! 2. Call IsFileInRom() and pass parameter "<DRIVE>:\base\T_Sfsrv\none.txt" as name of file and check that the result is FALSE where <DRIVE> is a test drive letter. |
|
2890 |
//! 3. Call Close() method. |
|
2891 |
//! @SYMTestStatus Implemented |
|
2892 |
//! @SYMTestPriority Critical |
|
2893 |
//! @SYMTestExpectedResults Function IsFileInRom() return FALSE. |
|
2894 |
//! @SYMTestType CIT |
|
2895 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2896 |
CREATE_OBJECT RFs RFs1 |
|
2897 |
COMMAND RFs1 new |
|
2898 |
COMMAND RFs1 Connect |
|
2899 |
COMMAND RFs1 IsFileInRom PBASE-F32-RFS-PublicApi-2098-001-IsFileInRom_command03 |
|
2900 |
COMMAND RFs1 Close |
|
2901 |
COMMAND RFs1 ~ |
|
2902 |
END_TEST_BLOCK |
|
2903 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2098 |
|
2904 |
||
2905 |
||
2906 |
||
2907 |
/////////////////////////////// |
|
2908 |
// |
|
2909 |
// ISVALIDNAME (const TDesC &anEntryName) |
|
2910 |
// |
|
2911 |
/////////////////////////////// |
|
2912 |
||
2913 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2099 |
|
2914 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2099 |
|
2915 |
//! @SYMAPI RFs |
|
2916 |
//! @SYMCreationDate 5/10/2006 |
|
2917 |
//! @SYMTestCaseDesc Function IsValidName(const TDesC &anEntryName) test where name has double backslashes. |
|
2918 |
//! Uses API elements: IsValidName(). |
|
2919 |
//! @SYMTestActions 1. Call Connect() method. |
|
2920 |
//! 2. Call IsValidName() and pass parameter "<DRIVE>:\\\\test.txt" as name of file and check that the result is FALSE where <DRIVE> is a test drive letter. |
|
2921 |
//! 3. Call Close() method. |
|
2922 |
//! @SYMTestStatus Implemented |
|
2923 |
//! @SYMTestPriority Critical |
|
2924 |
//! @SYMTestExpectedResults Function IsValidName() return FALSE. |
|
2925 |
//! @SYMTestType CIT |
|
2926 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2927 |
CREATE_OBJECT RFs RFs1 |
|
2928 |
COMMAND RFs1 new |
|
2929 |
COMMAND RFs1 Connect |
|
2930 |
COMMAND RFs1 IsValidName PBASE-F32-RFS-PublicApi-2099-001-IsValidName_command03 |
|
2931 |
COMMAND RFs1 Close |
|
2932 |
COMMAND RFs1 ~ |
|
2933 |
END_TEST_BLOCK |
|
2934 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2099 |
|
2935 |
||
2936 |
||
2937 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2102 |
|
2938 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2102 |
|
2939 |
//! @SYMAPI RFs |
|
2940 |
//! @SYMCreationDate 5/10/2006 |
|
2941 |
//! @SYMTestCaseDesc Function SetSessionToPrivate() test where drive is nonmounted. |
|
2942 |
//! Uses API elements: SetSessionToPrivate(). |
|
2943 |
//! @SYMTestActions 1. Call Connect() method. |
|
2944 |
//! 2. Call SetSessionToPrivate() and pass "<DRIVE>" as parameter where <DRIVE> is nonmounted drive letter. |
|
2945 |
//! 3. Call RFile:Create to create a file in private location |
|
2946 |
//! 4. Call Close() method. |
|
2947 |
//! @SYMTestStatus Implemented |
|
2948 |
//! @SYMTestPriority Critical |
|
2949 |
//! @SYMTestExpectedResults Function RFile:Create() return KErrNotReady. |
|
2950 |
//! @SYMTestType CIT |
|
2951 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2952 |
CREATE_OBJECT RFs rfs |
|
2953 |
CREATE_OBJECT RFile file |
|
2954 |
COMMAND rfs new |
|
2955 |
COMMAND rfs Connect |
|
2956 |
COMMAND rfs FileSystemName PBASE-F32-RFS-PublicApi-2102-001-FileSystemName_command03 |
|
2957 |
COMMAND rfs DismountFileSystem PBASE-F32-RFS-PublicApi-2102-001-DismountFileSystem_command04 |
|
2958 |
COMMAND rfs SetSessionToPrivate PBASE-F32-RFS-PublicApi-2102-001-SetSessionToPrivate_command05 |
|
2959 |
COMMAND file new |
|
2960 |
COMMAND !Error=-18 file Create PBASE-F32-RFS-PublicApi-2102-001-Create_command08 |
|
2961 |
COMMAND file Close |
|
2962 |
COMMAND file ~ |
|
2963 |
COMMAND rfs MountFileSystem PBASE-F32-RFS-PublicApi-2102-001-MountFileSystem_command12 |
|
2964 |
COMMAND rfs Close |
|
2965 |
COMMAND rfs ~ |
|
2966 |
END_TEST_BLOCK |
|
2967 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2102 |
|
2968 |
||
2969 |
||
2970 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2104 |
|
2971 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2104 |
|
2972 |
//! @SYMAPI RFs |
|
2973 |
//! @SYMCreationDate 5/10/2006 |
|
2974 |
//! @SYMTestCaseDesc Function CreatePrivatePath() negative test where drive is nonmounted. |
|
2975 |
//! Uses API elements: CreatePrivatePath(). |
|
2976 |
//! @SYMTestActions 1. Call Connect() method. |
|
2977 |
//! 2. Call CreatePrivatePath() and pass "<DRIVE>" as parameter where <DRIVE> is nonmounted drive letter. |
|
2978 |
//! 3. Call Close() method. |
|
2979 |
//! @SYMTestStatus Implemented |
|
2980 |
//! @SYMTestPriority High |
|
2981 |
//! @SYMTestExpectedResults Function CreatePrivatePath() return KErrNotReady. |
|
2982 |
//! @SYMTestType CIT |
|
2983 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
2984 |
CREATE_OBJECT RFs RFs1 |
|
2985 |
COMMAND RFs1 new |
|
2986 |
COMMAND RFs1 Connect |
|
2987 |
COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-2104-001-FileSystemName_command03 |
|
2988 |
COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-2104-001-DismountFileSystem_command04 |
|
2989 |
COMMAND !Error=-18 RFs1 CreatePrivatePath PBASE-F32-RFS-PublicApi-2104-001-CreatePrivatePath_command05 |
|
2990 |
COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-2104-001-MountFileSystem_command06 |
|
2991 |
COMMAND RFs1 Close |
|
2992 |
COMMAND RFs1 ~ |
|
2993 |
END_TEST_BLOCK |
|
2994 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2104 |
|
2995 |
||
2996 |
||
2997 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2105 |
|
2998 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2105 |
|
2999 |
//! @SYMAPI RFs |
|
3000 |
//! @SYMCreationDate 19/03/2007 |
|
3001 |
//! @SYMTestCaseDesc Functions SetAtt() test where the sets attribute "KEntryAttVolume" for a file. |
|
3002 |
//! Uses API elements: SetAtt(), Att(). |
|
3003 |
//! @SYMTestActions 1. Call Connect() method. |
|
3004 |
//! 2. Call SetAtt() and pass parameters "<DRIVE>:\test2105.txt" as name and "KEntryAttVolume" as attribute to be set, where <DRIVE> is a test drive letter. |
|
3005 |
//! 3. Call Att() check that "KEntryAttVolume" is not set. |
|
3006 |
//! 4. Call Delete() method. |
|
3007 |
//! 5. Call Close() method. |
|
3008 |
//! @SYMTestStatus Implemented |
|
3009 |
//! @SYMTestPriority High |
|
3010 |
//! @SYMTestExpectedResults Function SetAtt() return KErrNone, KEntryAttVolume cannot be used and is ignored. |
|
3011 |
//! @SYMTestType CIT |
|
3012 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
3013 |
CREATE_OBJECT RFs rfs |
|
3014 |
CREATE_OBJECT RFile file |
|
3015 |
COMMAND rfs new |
|
3016 |
COMMAND rfs Connect |
|
3017 |
COMMAND file new |
|
3018 |
COMMAND file Create PBASE-F32-RFS-PublicApi-2105-001-Create_command05 |
|
3019 |
COMMAND file Close |
|
3020 |
COMMAND file ~ |
|
3021 |
COMMAND rfs SetAtt PBASE-F32-RFS-PublicApi-2105-001-SetAtt_command09 |
|
3022 |
COMMAND rfs Att PBASE-F32-RFS-PublicApi-2105-001-Att_command10 |
|
3023 |
COMMAND rfs Delete PBASE-F32-RFS-PublicApi-2105-001-Delete_command11 |
|
3024 |
COMMAND rfs Close |
|
3025 |
COMMAND rfs ~ |
|
3026 |
END_TEST_BLOCK |
|
3027 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2105 |
|
3028 |
||
3029 |
/////////////////////////////// |
|
3030 |
// |
|
3031 |
// GETDIR |
|
3032 |
// TInt GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList) const; |
|
3033 |
// |
|
3034 |
/////////////////////////////// |
|
3035 |
||
3036 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2201 |
|
3037 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2201 |
|
3038 |
//! @SYMAPI RFs |
|
3039 |
//! @SYMCreationDate 5/10/2006 |
|
3040 |
//! @SYMTestCaseDesc Function GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList) negative test, |
|
3041 |
//! where name of directory include wildcard. |
|
3042 |
//! Uses API elements: GetDir(). |
|
3043 |
//! @SYMTestActions 1. Call Connect() method. |
|
3044 |
//! 2. Create a "<DRIVE>:\base\T_Sfsrv\testdir\" directory where <DRIVE> is a test drive letter. |
|
3045 |
//! 3. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\te*\" as parameter. |
|
3046 |
//! 4. Remove "<DRIVE>:\base\T_Sfsrv\testdir\" directory. |
|
3047 |
//! 5. Call Close() method. |
|
3048 |
//! @SYMTestStatus Implemented |
|
3049 |
//! @SYMTestPriority High |
|
3050 |
//! @SYMTestExpectedResults Function GetDir() return KErrBadName. |
|
3051 |
//! @SYMTestType CIT |
|
3052 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
3053 |
CREATE_OBJECT RFs RFs1 |
|
3054 |
COMMAND RFs1 new |
|
3055 |
COMMAND RFs1 Connect |
|
3056 |
COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-2201-001-MkDir_command03 |
|
3057 |
COMMAND !Error=-28 RFs1 GetDir PBASE-F32-RFS-PublicApi-2201-001-GetDir_command04 |
|
3058 |
COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-2201-001-RmDir_command05 |
|
3059 |
COMMAND RFs1 Close |
|
3060 |
COMMAND RFs1 ~ |
|
3061 |
END_TEST_BLOCK |
|
3062 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2201 |
|
3063 |
||
3064 |
||
3065 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2202 |
|
3066 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2202 |
|
3067 |
//! @SYMAPI RFs |
|
3068 |
//! @SYMCreationDate 5/10/2006 |
|
3069 |
//! @SYMTestCaseDesc Function GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList) test, |
|
3070 |
//! where name of files include wildcard. |
|
3071 |
//! Uses API elements: SetSessionPath(), GetDir(). |
|
3072 |
//! @SYMTestActions 1. Call Connect() method. |
|
3073 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
3074 |
//! 3. Create files "file1.txt" and "file2.txt" |
|
3075 |
//! 4. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\*.txt" as parameter where <DRIVE> is a test drive letter. |
|
3076 |
//! and check that list of directory contents has a "file1.txt" of file. |
|
3077 |
//! 5. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\*.txt" as parameter where <DRIVE> is a test drive letter. |
|
3078 |
//! and check that list of directory contents has a "file2.txt" of file. |
|
3079 |
//! 6. Delete files "file1.txt" and "file2.txt" |
|
3080 |
//! 7. Call Close() method. |
|
3081 |
//! @SYMTestStatus Implemented |
|
3082 |
//! @SYMTestPriority Critical |
|
3083 |
//! @SYMTestExpectedResults Function GetDir() return KErrNone. |
|
3084 |
//! @SYMTestType CIT |
|
3085 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
3086 |
CREATE_OBJECT RFs RFs1 |
|
3087 |
CREATE_OBJECT RFile RFile1 |
|
3088 |
COMMAND RFs1 new |
|
3089 |
COMMAND RFs1 Connect |
|
3090 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2202-001-SetSessionPath_command03 |
|
3091 |
COMMAND RFile1 new |
|
3092 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2202-001-Create_command06 |
|
3093 |
COMMAND RFile1 Close |
|
3094 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2202-001-Create_command08 |
|
3095 |
COMMAND RFile1 Close |
|
3096 |
COMMAND RFile1 ~ |
|
3097 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2202-001-GetDir_command12 |
|
3098 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2202-001-GetDir_command13 |
|
3099 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2202-001-Delete_command14 |
|
3100 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2202-001-Delete_command15 |
|
3101 |
COMMAND RFs1 Close |
|
3102 |
COMMAND RFs1 ~ |
|
3103 |
END_TEST_BLOCK |
|
3104 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2202 |
|
3105 |
||
3106 |
||
3107 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2203 |
|
3108 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2203 |
|
3109 |
//! @SYMAPI RFs |
|
3110 |
//! @SYMCreationDate 5/10/2006 |
|
3111 |
//! @SYMTestCaseDesc Function GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList) negative test, |
|
3112 |
//! where path includes nonmounted drive. |
|
3113 |
//! Uses API elements: GetDir(). |
|
3114 |
//! @SYMTestActions 1. Call Connect() method. |
|
3115 |
//! 2. Call GetDir() and pass "<DRIVE>:\" as parameter where <DRIVE> is nonmounted drive letter. |
|
3116 |
//! 3. Call Close() method. |
|
3117 |
//! @SYMTestStatus Implemented |
|
3118 |
//! @SYMTestPriority High |
|
3119 |
//! @SYMTestExpectedResults Function GetDir() return KErrNotReady. |
|
3120 |
//! @SYMTestType CIT |
|
3121 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
3122 |
CREATE_OBJECT RFs RFs1 |
|
3123 |
COMMAND RFs1 new |
|
3124 |
COMMAND RFs1 Connect |
|
3125 |
COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-2203-001-FileSystemName_command03 |
|
3126 |
COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-2203-001-DismountFileSystem_command04 |
|
3127 |
COMMAND !Error=-18 RFs1 GetDir PBASE-F32-RFS-PublicApi-2203-001-GetDir_command05 |
|
3128 |
COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-2203-001-MountFileSystem_command06 |
|
3129 |
COMMAND RFs1 Close |
|
3130 |
COMMAND RFs1 ~ |
|
3131 |
END_TEST_BLOCK |
|
3132 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2203 |
|
3133 |
||
3134 |
||
3135 |
/////////////////////////////// |
|
3136 |
// |
|
3137 |
// GETDIR |
|
3138 |
// TInt GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList,CDir*& aDirList) const; |
|
3139 |
// |
|
3140 |
/////////////////////////////// |
|
3141 |
||
3142 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2204 |
|
3143 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2204 |
|
3144 |
//! @SYMAPI RFs |
|
3145 |
//! @SYMCreationDate 5/10/2006 |
|
3146 |
//! @SYMTestCaseDesc Function GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList,CDir*& aDirList) negative test, |
|
3147 |
//! where name of directory include wildcard. |
|
3148 |
//! Uses API elements: GetDir(). |
|
3149 |
//! @SYMTestActions 1. Call Connect() method. |
|
3150 |
//! 2. Create a "<DRIVE>:\base\T_Sfsrv\testdir\" directory where <DRIVE> is a test drive letter. |
|
3151 |
//! 3. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\te*\" as parameter. |
|
3152 |
//! 4. Remove "<DRIVE>:\base\T_Sfsrv\testdir\" directory. |
|
3153 |
//! 5. Call Close() method. |
|
3154 |
//! @SYMTestStatus Implemented |
|
3155 |
//! @SYMTestPriority High |
|
3156 |
//! @SYMTestExpectedResults Function GetDir() return KErrBadName. |
|
3157 |
//! @SYMTestType CIT |
|
3158 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
3159 |
CREATE_OBJECT RFs RFs1 |
|
3160 |
COMMAND RFs1 new |
|
3161 |
COMMAND RFs1 Connect |
|
3162 |
COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-2204-001-MkDir_command03 |
|
3163 |
COMMAND !Error=-28 RFs1 GetDir PBASE-F32-RFS-PublicApi-2204-001-GetDir_command04 |
|
3164 |
COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-2204-001-RmDir_command05 |
|
3165 |
COMMAND RFs1 Close |
|
3166 |
COMMAND RFs1 ~ |
|
3167 |
END_TEST_BLOCK |
|
3168 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2204 |
|
3169 |
||
3170 |
||
3171 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2205 |
|
3172 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2205 |
|
3173 |
//! @SYMAPI RFs |
|
3174 |
//! @SYMCreationDate 5/10/2006 |
|
3175 |
//! @SYMTestCaseDesc Function GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList,CDir*& aDirList) test, |
|
3176 |
//! where name of files include wildcard. |
|
3177 |
//! Uses API elements: SetSessionPath(), GetDir(). |
|
3178 |
//! @SYMTestActions 1. Call Connect() method. |
|
3179 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
3180 |
//! 3. Create files "file1.txt" and "file2.txt" |
|
3181 |
//! 4. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\*.txt" as parameter where <DRIVE> is a test drive letter. |
|
3182 |
//! and check that list of directory contents has a "file1.txt" of file. |
|
3183 |
//! 5. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\*.txt" as parameter where <DRIVE> is a test drive letter. |
|
3184 |
//! and check that list of directory contents has a "file2.txt" of file. |
|
3185 |
//! 6. Delete files "file1.txt" and "file2.txt" |
|
3186 |
//! 7. Call Close() method. |
|
3187 |
//! @SYMTestStatus Implemented |
|
3188 |
//! @SYMTestPriority Critical |
|
3189 |
//! @SYMTestExpectedResults Function GetDir() return KErrNone. |
|
3190 |
//! @SYMTestType CIT |
|
3191 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
3192 |
CREATE_OBJECT RFs RFs1 |
|
3193 |
CREATE_OBJECT RFile RFile1 |
|
3194 |
COMMAND RFs1 new |
|
3195 |
COMMAND RFs1 Connect |
|
3196 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2205-001-SetSessionPath_command03 |
|
3197 |
COMMAND RFile1 new |
|
3198 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2205-001-Create_command06 |
|
3199 |
COMMAND RFile1 Close |
|
3200 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2205-001-Create_command08 |
|
3201 |
COMMAND RFile1 Close |
|
3202 |
COMMAND RFile1 ~ |
|
3203 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2205-001-GetDir_command12 |
|
3204 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2205-001-GetDir_command13 |
|
3205 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2205-001-Delete_command14 |
|
3206 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2205-001-Delete_command15 |
|
3207 |
COMMAND RFs1 Close |
|
3208 |
COMMAND RFs1 ~ |
|
3209 |
END_TEST_BLOCK |
|
3210 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2205 |
|
3211 |
||
3212 |
||
3213 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2206 |
|
3214 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2206 |
|
3215 |
//! @SYMAPI RFs |
|
3216 |
//! @SYMCreationDate 5/10/2006 |
|
3217 |
//! @SYMTestCaseDesc Function GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList,CDir*& aDirList) negative test, |
|
3218 |
//! where path includes nonmounted drive. |
|
3219 |
//! Uses API elements: GetDir(). |
|
3220 |
//! @SYMTestActions 1. Call Connect() method. |
|
3221 |
//! 2. Call GetDir() and pass "<DRIVE>:\" as parameter where <DRIVE> is nonmounted drive letter. |
|
3222 |
//! 3. Call Close() method. |
|
3223 |
//! @SYMTestStatus Implemented |
|
3224 |
//! @SYMTestPriority High |
|
3225 |
//! @SYMTestExpectedResults Function GetDir() return KErrNotReady. |
|
3226 |
//! @SYMTestType CIT |
|
3227 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
3228 |
CREATE_OBJECT RFs RFs1 |
|
3229 |
COMMAND RFs1 new |
|
3230 |
COMMAND RFs1 Connect |
|
3231 |
COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-2206-001-FileSystemName_command03 |
|
3232 |
COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-2206-001-DismountFileSystem_command04 |
|
3233 |
COMMAND !Error=-18 RFs1 GetDir PBASE-F32-RFS-PublicApi-2206-001-GetDir_command05 |
|
3234 |
COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-2206-001-MountFileSystem_command06 |
|
3235 |
COMMAND RFs1 Close |
|
3236 |
COMMAND RFs1 ~ |
|
3237 |
END_TEST_BLOCK |
|
3238 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2206 |
|
3239 |
||
3240 |
||
3241 |
/////////////////////////////// |
|
3242 |
// |
|
3243 |
// GETDIR |
|
3244 |
// TInt GetDir(const TDesC& aName,const TUidType& anEntryUid,TUint anEntrySortKey,CDir*& aFileList) const; |
|
3245 |
// |
|
3246 |
/////////////////////////////// |
|
3247 |
||
3248 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2207 |
|
3249 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2207 |
|
3250 |
//! @SYMAPI RFs |
|
3251 |
//! @SYMCreationDate 5/10/2006 |
|
3252 |
//! @SYMTestCaseDesc Function GetDir(const TDesC& aName,const TUidType& anEntryUid,TUint anEntrySortKey,CDir*& aFileList) negative test, |
|
3253 |
//! where name of directory include wildcard. |
|
3254 |
//! Uses API elements: GetDir(). |
|
3255 |
//! @SYMTestActions 1. Call Connect() method. |
|
3256 |
//! 2. Create a "<DRIVE>:\base\T_Sfsrv\testdir\" directory where <DRIVE> is a test drive letter. |
|
3257 |
//! 3. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\te*\" as parameter. |
|
3258 |
//! 4. Remove "<DRIVE>:\base\T_Sfsrv\testdir\" directory. |
|
3259 |
//! 5. Call Close() method. |
|
3260 |
//! @SYMTestStatus Implemented |
|
3261 |
//! @SYMTestPriority High |
|
3262 |
//! @SYMTestExpectedResults Function GetDir() return KErrBadName. |
|
3263 |
//! @SYMTestType CIT |
|
3264 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
3265 |
CREATE_OBJECT RFs RFs1 |
|
3266 |
COMMAND RFs1 new |
|
3267 |
COMMAND RFs1 Connect |
|
3268 |
COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-2207-001-MkDir_command03 |
|
3269 |
COMMAND !Error=-28 RFs1 GetDir PBASE-F32-RFS-PublicApi-2207-001-GetDir_command04 |
|
3270 |
COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-2207-001-RmDir_command05 |
|
3271 |
COMMAND RFs1 Close |
|
3272 |
COMMAND RFs1 ~ |
|
3273 |
END_TEST_BLOCK |
|
3274 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2207 |
|
3275 |
||
3276 |
||
3277 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2208 |
|
3278 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2208 |
|
3279 |
//! @SYMAPI RFs |
|
3280 |
//! @SYMCreationDate 5/10/2006 |
|
3281 |
//! @SYMTestCaseDesc Function GetDir(const TDesC& aName,const TUidType& anEntryUid,TUint anEntrySortKey,CDir*& aFileList) test, |
|
3282 |
//! where name of files include wildcard. |
|
3283 |
//! Uses API elements: SetSessionPath(), GetDir(). |
|
3284 |
//! @SYMTestActions 1. Call Connect() method. |
|
3285 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
3286 |
//! 3. Create files "file1.txt" and "file2.txt" |
|
3287 |
//! 4. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\*.txt" as parameter where <DRIVE> is a test drive letter. |
|
3288 |
//! and check that list of directory contents has a "file1.txt" of file. |
|
3289 |
//! 5. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\*.txt" as parameter where <DRIVE> is a test drive letter. |
|
3290 |
//! and check that list of directory contents has a "file2.txt" of file. |
|
3291 |
//! 6. Delete files "file1.txt" and "file2.txt" |
|
3292 |
//! 7. Call Close() method. |
|
3293 |
//! @SYMTestStatus Implemented |
|
3294 |
//! @SYMTestPriority Critical |
|
3295 |
//! @SYMTestExpectedResults Function GetDir() return KErrNone. |
|
3296 |
//! @SYMTestType CIT |
|
3297 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
3298 |
CREATE_OBJECT RFs RFs1 |
|
3299 |
CREATE_OBJECT RFile RFile1 |
|
3300 |
COMMAND RFs1 new |
|
3301 |
COMMAND RFs1 Connect |
|
3302 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2208-001-SetSessionPath_command03 |
|
3303 |
COMMAND RFile1 new |
|
3304 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2208-001-Create_command06 |
|
3305 |
COMMAND RFile1 Close |
|
3306 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2208-001-Create_command08 |
|
3307 |
COMMAND RFile1 Close |
|
3308 |
COMMAND RFile1 ~ |
|
3309 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2208-001-GetDir_command12 |
|
3310 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2208-001-GetDir_command13 |
|
3311 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2208-001-Delete_command14 |
|
3312 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2208-001-Delete_command15 |
|
3313 |
COMMAND RFs1 Close |
|
3314 |
COMMAND RFs1 ~ |
|
3315 |
END_TEST_BLOCK |
|
3316 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2208 |
|
3317 |
||
3318 |
||
3319 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2209 |
|
3320 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2209 |
|
3321 |
//! @SYMAPI RFs |
|
3322 |
//! @SYMCreationDate 5/10/2006 |
|
3323 |
//! @SYMTestCaseDesc Function GetDir(const TDesC& aName,const TUidType& anEntryUid,TUint anEntrySortKey,CDir*& aFileList) negative test, |
|
3324 |
//! where path includes nonmounted drive. |
|
3325 |
//! Uses API elements: GetDir(). |
|
3326 |
//! @SYMTestActions 1. Call Connect() method. |
|
3327 |
//! 2. Call GetDir() and pass "<DRIVE>:\" as parameter where <DRIVE> is nonmounted drive letter. |
|
3328 |
//! 3. Call Close() method. |
|
3329 |
//! @SYMTestStatus Implemented |
|
3330 |
//! @SYMTestPriority High |
|
3331 |
//! @SYMTestExpectedResults Function GetDir() return KErrNotReady. |
|
3332 |
//! @SYMTestType CIT |
|
3333 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
3334 |
CREATE_OBJECT RFs RFs1 |
|
3335 |
COMMAND RFs1 new |
|
3336 |
COMMAND RFs1 Connect |
|
3337 |
COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-2209-001-FileSystemName_command03 |
|
3338 |
COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-2209-001-DismountFileSystem_command04 |
|
3339 |
COMMAND !Error=-18 RFs1 GetDir PBASE-F32-RFS-PublicApi-2209-001-GetDir_command05 |
|
3340 |
COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-2209-001-MountFileSystem_command06 |
|
3341 |
COMMAND RFs1 Close |
|
3342 |
COMMAND RFs1 ~ |
|
3343 |
END_TEST_BLOCK |
|
3344 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2209 |
|
3345 |
||
3346 |
||
3347 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2210 |
|
3348 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2210 |
|
3349 |
//! @SYMAPI RFs |
|
3350 |
//! @SYMCreationDate 5/10/2006 |
|
3351 |
//! @SYMTestCaseDesc Function Rename() negative test where new name of file includes wildcard. |
|
3352 |
//! Uses API elements: SetSessionPath(), Rename(). |
|
3353 |
//! @SYMTestActions 1. Call Connect() method. |
|
3354 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
3355 |
//! 3. Create file "test_old.txt". |
|
3356 |
//! 4. Call Rename() and pass the parameters "test_old.txt" as old name and "test*.txt" as a new name of file. |
|
3357 |
//! 5. Delete file "test_old.txt". |
|
3358 |
//! 6. Call Close() method. |
|
3359 |
//! @SYMTestStatus Implemented |
|
3360 |
//! @SYMTestPriority High |
|
3361 |
//! @SYMTestExpectedResults Function Rename() return KErrBadName. |
|
3362 |
//! @SYMTestType CIT |
|
3363 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
3364 |
CREATE_OBJECT RFs RFs1 |
|
3365 |
CREATE_OBJECT RFile RFile1 |
|
3366 |
COMMAND RFs1 new |
|
3367 |
COMMAND RFs1 Connect |
|
3368 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2210-001-SetSessionPath_command03 |
|
3369 |
COMMAND RFile1 new |
|
3370 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2210-001-Create_command06 |
|
3371 |
COMMAND RFile1 Close |
|
3372 |
COMMAND RFile1 ~ |
|
3373 |
COMMAND !Error=-28 RFs1 Rename PBASE-F32-RFS-PublicApi-2210-001-Rename_command10 |
|
3374 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2210-001-Delete_command11 |
|
3375 |
COMMAND RFs1 Close |
|
3376 |
COMMAND RFs1 ~ |
|
3377 |
END_TEST_BLOCK |
|
3378 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2210 |
|
3379 |
||
3380 |
||
3381 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2211 |
|
3382 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2211 |
|
3383 |
//! @SYMAPI RFs |
|
3384 |
//! @SYMTestCaseDesc Function Rename() test of renaming the directories. |
|
3385 |
//! Uses API elements: SetSessionPath(), Rename(), GetDir(), RmDir(). |
|
3386 |
//! @SYMTestActions 1. Call Connect() method. |
|
3387 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
3388 |
//! 3. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\DirOld\" as parameter where <DRIVE> is a test drive letter. |
|
3389 |
//! 4. Call Rename() and pass the parameters "DirOld" as old name and "DirNew" as a new name of directory. |
|
3390 |
//! 5. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter, |
|
3391 |
//! and check that list of directory contents has a "DirNew" of directory. |
|
3392 |
//! 6. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\DirNew\" as parameter where <DRIVE> is a test drive letter. |
|
3393 |
//! 7. Call Close() method. |
|
3394 |
//! @SYMTestStatus Implemented |
|
3395 |
//! @SYMTestPriority Critical |
|
3396 |
//! @SYMTestExpectedResults Function Rename() returns KErrNone, the directory "DirOld" renamed to "DirNew" successfully. |
|
3397 |
//! @SYMTestType CIT |
|
3398 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
3399 |
CREATE_OBJECT RFs RFs1 |
|
3400 |
COMMAND RFs1 new |
|
3401 |
COMMAND RFs1 Connect |
|
3402 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2211-001-SetSessionPath_command03 |
|
3403 |
COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-2211-001-MkDir_command04 |
|
3404 |
COMMAND RFs1 Rename PBASE-F32-RFS-PublicApi-2211-001-Rename_command05 |
|
3405 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2211-001-GetDir_command06 |
|
3406 |
COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-2211-001-RmDir_command07 |
|
3407 |
COMMAND RFs1 Close |
|
3408 |
COMMAND RFs1 ~ |
|
3409 |
END_TEST_BLOCK |
|
3410 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2211 |
|
3411 |
||
3412 |
||
3413 |
/////////////////////////////// |
|
3414 |
// REPLACE |
|
3415 |
/////////////////////////////// |
|
3416 |
||
3417 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2212 |
|
3418 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2212 |
|
3419 |
//! @SYMAPI RFs |
|
3420 |
//! @SYMCreationDate 5/10/2006 |
|
3421 |
//! @SYMTestCaseDesc Function Replace() negative test where new name of file includes wildcard. |
|
3422 |
//! Uses API elements: SetSessionPath(), Replace(). |
|
3423 |
//! @SYMTestActions 1. Call Connect() method. |
|
3424 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
3425 |
//! 3. Create file "test_old.txt". |
|
3426 |
//! 4. Call Replace() and pass the parameters "test_old.txt" as old name and "*.txt" as a new name of file. |
|
3427 |
//! 5. Delete files "test_old.txt". |
|
3428 |
//! 6. Call Close() method. |
|
3429 |
//! @SYMTestStatus Implemented |
|
3430 |
//! @SYMTestPriority High |
|
3431 |
//! @SYMTestExpectedResults Function Replace() return KErrBadName. |
|
3432 |
//! @SYMTestType CIT |
|
3433 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
3434 |
CREATE_OBJECT RFs RFs1 |
|
3435 |
CREATE_OBJECT RFile RFile1 |
|
3436 |
COMMAND RFs1 new |
|
3437 |
COMMAND RFs1 Connect |
|
3438 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2212-001-SetSessionPath_command03 |
|
3439 |
COMMAND RFile1 new |
|
3440 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2212-001-Create_command06 |
|
3441 |
COMMAND RFile1 Close |
|
3442 |
COMMAND RFile1 ~ |
|
3443 |
COMMAND !Error=-28 RFs1 Replace PBASE-F32-RFS-PublicApi-2212-001-Replace_command10 |
|
3444 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2212-001-Delete_command11 |
|
3445 |
COMMAND RFs1 Close |
|
3446 |
COMMAND RFs1 ~ |
|
3447 |
END_TEST_BLOCK |
|
3448 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2212 |
|
3449 |
||
3450 |
||
3451 |
/////////////////////////////// |
|
3452 |
// MKDIR |
|
3453 |
/////////////////////////////// |
|
3454 |
||
3455 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2213 |
|
3456 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2213 |
|
3457 |
//! @SYMAPI RFs |
|
3458 |
//! @SYMTestCaseDesc Function MkDir() negative test that would create a directory in a directory that doesn't exist. |
|
3459 |
//! Uses API elements: MkDir(), GetDir(). |
|
3460 |
//! @SYMTestActions 1. Call Connect() method. |
|
3461 |
//! 2. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\DoesntExist\NewDir\" as parameter. |
|
3462 |
//! 3. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter, |
|
3463 |
//! and check that list of directory contents hasn't a "DoesntExist" of directory. |
|
3464 |
//! 4. Call Close() method. |
|
3465 |
//! @SYMTestStatus Implemented |
|
3466 |
//! @SYMTestPriority High |
|
3467 |
//! @SYMTestExpectedResults Function MkDir() return KErrPathNotFound. |
|
3468 |
//! @SYMTestType CIT |
|
3469 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
3470 |
CREATE_OBJECT RFs RFs1 |
|
3471 |
COMMAND RFs1 new |
|
3472 |
COMMAND RFs1 Connect |
|
3473 |
COMMAND !Error=-12 RFs1 MkDir PBASE-F32-RFS-PublicApi-2213-001-MkDir_command03 |
|
3474 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2213-001-GetDir_command04 |
|
3475 |
COMMAND RFs1 Close |
|
3476 |
COMMAND RFs1 ~ |
|
3477 |
END_TEST_BLOCK |
|
3478 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2213 |
|
3479 |
||
3480 |
||
3481 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2214 |
|
3482 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2214 |
|
3483 |
//! @SYMAPI RFs |
|
3484 |
//! @SYMTestCaseDesc Function MkDir() test where the path doesn't end with "\". |
|
3485 |
//! Uses API elements: MkDir(), GetDir(), RmDir(). |
|
3486 |
//! @SYMTestActions 1. Call Connect() method. |
|
3487 |
//! 2. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\DoesntExist\NewDir" as parameter. |
|
3488 |
//! 3. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter, |
|
3489 |
//! and check that list of directory contents has a "DoesntExist" of directory. |
|
3490 |
//! 4. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\DoesntExist\" as parameter, |
|
3491 |
//! and check that list of directory contents hasn't a "NewDir" of directory. |
|
3492 |
//! 5. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\DoesntExistAll\DoesntExist\" as parameter. |
|
3493 |
//! 6. Call Close() method. |
|
3494 |
//! @SYMTestStatus Implemented |
|
3495 |
//! @SYMTestPriority Critical |
|
3496 |
//! @SYMTestExpectedResults Function MkDir() return KErrNone, directories "DoesntExist" is created, "NewDir" not created.. |
|
3497 |
//! @SYMTestType CIT |
|
3498 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
3499 |
CREATE_OBJECT RFs RFs1 |
|
3500 |
COMMAND RFs1 new |
|
3501 |
COMMAND RFs1 Connect |
|
3502 |
COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-2214-001-MkDir_command03 |
|
3503 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2214-001-GetDir_command04 |
|
3504 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2214-001-GetDir_command05 |
|
3505 |
COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-2214-001-RmDir_command06 |
|
3506 |
COMMAND RFs1 Close |
|
3507 |
COMMAND RFs1 ~ |
|
3508 |
END_TEST_BLOCK |
|
3509 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2214 |
|
3510 |
||
3511 |
||
3512 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2215 |
|
3513 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2215 |
|
3514 |
//! @SYMAPI RFs |
|
3515 |
//! @SYMTestCaseDesc Function MkDir() negative test where the path doesn't exist and not ended with "\". |
|
3516 |
//! Uses API elements: MkDir(), GetDir(). |
|
3517 |
//! @SYMTestActions 1. Call Connect() method. |
|
3518 |
//! 2. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\DoesntExist\NewDir1\NewDir2" as parameter. |
|
3519 |
//! 3. Call Close() method. |
|
3520 |
//! @SYMTestStatus Implemented |
|
3521 |
//! @SYMTestPriority High |
|
3522 |
//! @SYMTestExpectedResults Function MkDir() return KErrPathNotFound. |
|
3523 |
//! @SYMTestType CIT |
|
3524 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
3525 |
CREATE_OBJECT RFs RFs1 |
|
3526 |
COMMAND RFs1 new |
|
3527 |
COMMAND RFs1 Connect |
|
3528 |
COMMAND !Error=-12 RFs1 MkDir PBASE-F32-RFS-PublicApi-2215-001-MkDir_command03 |
|
3529 |
COMMAND RFs1 Close |
|
3530 |
COMMAND RFs1 ~ |
|
3531 |
END_TEST_BLOCK |
|
3532 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2215 |
|
3533 |
||
3534 |
||
3535 |
/////////////////////////////// |
|
3536 |
// MKDIRALL |
|
3537 |
/////////////////////////////// |
|
3538 |
||
3539 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2216 |
|
3540 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2216 |
|
3541 |
//! @SYMAPI RFs |
|
3542 |
//! @SYMCreationDate 5/10/2006 |
|
3543 |
//! @SYMTestCaseDesc Function MkDirAll() that would create a directory in a directory that doesn't exist. |
|
3544 |
//! Uses API elements: MkDirAll(), GetDir(), RmDir(). |
|
3545 |
//! @SYMTestActions 1. Call Connect() method. |
|
3546 |
//! 2. Call MkDirAll() and pass "<DRIVE>:\base\T_Sfsrv\DoesntExistAll\NewDirAll\" as parameter where <DRIVE> is a test drive letter. |
|
3547 |
//! 3. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter, |
|
3548 |
//! check that list of directory contents has a "DoesntExistAll" of directory. |
|
3549 |
//! 4. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\DoesntExistAll\" as parameter, |
|
3550 |
//! check that list of directory contents has a "NewDirAll" of directory. |
|
3551 |
//! 5. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\DoesntExistAll\NewDirAll\" as parameter. |
|
3552 |
//! 6. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\DoesntExistAll\" as parameter. |
|
3553 |
//! 7. Call Close() method. |
|
3554 |
//! @SYMTestStatus Implemented |
|
3555 |
//! @SYMTestPriority Critical |
|
3556 |
//! @SYMTestExpectedResults Function MkDirAll() return KErrNone, directories "DoesntExistAll" and "NewDirAll" is created. |
|
3557 |
//! @SYMTestType CIT |
|
3558 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
3559 |
CREATE_OBJECT RFs RFs1 |
|
3560 |
COMMAND RFs1 new |
|
3561 |
COMMAND RFs1 Connect |
|
3562 |
COMMAND RFs1 MkDirAll PBASE-F32-RFS-PublicApi-2216-001-MkDirAll_command03 |
|
3563 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2216-001-GetDir_command04 |
|
3564 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2216-001-GetDir_command05 |
|
3565 |
COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-2216-001-RmDir_command06 |
|
3566 |
COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-2216-001-RmDir_command07 |
|
3567 |
COMMAND RFs1 Close |
|
3568 |
COMMAND RFs1 ~ |
|
3569 |
END_TEST_BLOCK |
|
3570 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2216 |
|
3571 |
||
3572 |
||
3573 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2217 |
|
3574 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2217 |
|
3575 |
//! @SYMAPI RFs |
|
3576 |
//! @SYMTestCaseDesc Function MkDirAll() test where the path doesn't end with "\". |
|
3577 |
//! Uses API elements: MkDirAll(), GetDir(), RmDir(). |
|
3578 |
//! @SYMTestActions 1. Call Connect() method. |
|
3579 |
//! 2. Call MkDirAll() and pass "<DRIVE>:\base\T_Sfsrv\DoesntExistAll\NewDirAll" as parameter where <DRIVE> is a test drive letter. |
|
3580 |
//! 3. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter, |
|
3581 |
//! check that list of directory contents has a "DoesntExistAll" of directory. |
|
3582 |
//! 4. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\DoesntExistAll\" as parameter, |
|
3583 |
//! check that list of directory contents hasn't a "NewDirAll" of directory. |
|
3584 |
//! 5. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\DoesntExistAll\" as parameter. |
|
3585 |
//! 6. Call Close() method |
|
3586 |
//! @SYMTestStatus Implemented |
|
3587 |
//! @SYMTestPriority Critical |
|
3588 |
//! @SYMTestExpectedResults Function MkDirAll() return KErrNone, directories "DoesntExistAll" is created, "NewDirAll" not created. |
|
3589 |
//! @SYMTestType CIT |
|
3590 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
3591 |
CREATE_OBJECT RFs RFs1 |
|
3592 |
COMMAND RFs1 new |
|
3593 |
COMMAND RFs1 Connect |
|
3594 |
COMMAND RFs1 MkDirAll PBASE-F32-RFS-PublicApi-2217-001-MkDirAll_command03 |
|
3595 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2217-001-GetDir_command04 |
|
3596 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2217-001-GetDir_command05 |
|
3597 |
COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-2217-001-RmDir_command06 |
|
3598 |
COMMAND RFs1 Close |
|
3599 |
COMMAND RFs1 ~ |
|
3600 |
END_TEST_BLOCK |
|
3601 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2217 |
|
3602 |
||
3603 |
||
3604 |
/////////////////////////////// |
|
3605 |
// DELETE |
|
3606 |
/////////////////////////////// |
|
3607 |
||
3608 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2218 |
|
3609 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2218 |
|
3610 |
//! @SYMAPI RFs |
|
3611 |
//! @SYMCreationDate 5/10/2006 |
|
3612 |
//! @SYMTestCaseDesc Function Delete() negative test where name of file includes "?" of wildcard. |
|
3613 |
//! Uses API elements: Delete(). |
|
3614 |
//! @SYMTestActions 1. Call Connect() method. |
|
3615 |
//! 2. Call Delete() and pass "delete?.txt" as parameter. |
|
3616 |
//! 3. Call Close() method. |
|
3617 |
//! @SYMTestStatus Implemented |
|
3618 |
//! @SYMTestPriority High |
|
3619 |
//! @SYMTestExpectedResults Function Delete() return KErrBadName. |
|
3620 |
//! @SYMTestType CIT |
|
3621 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
3622 |
CREATE_OBJECT RFs RFs1 |
|
3623 |
COMMAND RFs1 new |
|
3624 |
COMMAND RFs1 Connect |
|
3625 |
COMMAND !Error=-28 RFs1 Delete PBASE-F32-RFS-PublicApi-2218-001-Delete_command03 |
|
3626 |
COMMAND RFs1 Close |
|
3627 |
COMMAND RFs1 ~ |
|
3628 |
END_TEST_BLOCK |
|
3629 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2218 |
|
3630 |
||
3631 |
||
3632 |
/////////////////////////////// |
|
3633 |
// RMDIR |
|
3634 |
/////////////////////////////// |
|
3635 |
||
3636 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2219 |
|
3637 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2219 |
|
3638 |
//! @SYMAPI RFs |
|
3639 |
//! @SYMCreationDate 5/10/2006 |
|
3640 |
//! @SYMTestCaseDesc Function RmDir() negative test removing non empty directory. |
|
3641 |
//! Uses API elements: RmDir(), RmDir(). |
|
3642 |
//! @SYMTestActions 1. Call Connect() method. |
|
3643 |
//! 2. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\RmDir\" as parameter. |
|
3644 |
//! 3. Call Create() and pass "<DRIVE>:\base\T_Sfsrv\RmDir\file1.txt" as parameter where <DRIVE> is a test drive letter. |
|
3645 |
//! 4. Call Create() and pass "<DRIVE>:\base\T_Sfsrv\RmDir\file2.txt" as parameter where <DRIVE> is a test drive letter. |
|
3646 |
//! 5. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\RmDir\" as parameter where <DRIVE> is a test drive letter. |
|
3647 |
//! 6. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter, |
|
3648 |
//! check that list of directory contents has a "RmDir" of directory. |
|
3649 |
//! 7. Delete files "file1.txt" and "file2.txt". |
|
3650 |
//! 8. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\RmDir\" as parameter. |
|
3651 |
//! 9. Call Close() method. |
|
3652 |
//! @SYMTestStatus Implemented |
|
3653 |
//! @SYMTestPriority High |
|
3654 |
//! @SYMTestExpectedResults Function RmDir() return KErrInUse. |
|
3655 |
//! @SYMTestType CIT |
|
3656 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
3657 |
CREATE_OBJECT RFs RFs1 |
|
3658 |
CREATE_OBJECT RFile RFile1 |
|
3659 |
COMMAND RFs1 new |
|
3660 |
COMMAND RFs1 Connect |
|
3661 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2219-001-SetSessionPath_command03 |
|
3662 |
COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-2219-001-MkDir_command04 |
|
3663 |
COMMAND RFile1 new |
|
3664 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2219-001-Create_command07 |
|
3665 |
COMMAND RFile1 Close |
|
3666 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2219-001-Create_command09 |
|
3667 |
COMMAND RFile1 Close |
|
3668 |
COMMAND RFile1 ~ |
|
3669 |
COMMAND !Error=-14 RFs1 RmDir PBASE-F32-RFS-PublicApi-2219-001-RmDir_command13 |
|
3670 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2219-001-GetDir_command14 |
|
3671 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2219-001-Delete_command15 |
|
3672 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2219-001-Delete_command16 |
|
3673 |
COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-2219-001-RmDir_command17 |
|
3674 |
COMMAND RFs1 Close |
|
3675 |
COMMAND RFs1 ~ |
|
3676 |
END_TEST_BLOCK |
|
3677 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2219 |
|
3678 |
||
3679 |
||
3680 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2220 |
|
3681 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2220 |
|
3682 |
//! @SYMAPI RFs |
|
3683 |
//! @SYMCreationDate 5/10/2006 |
|
3684 |
//! @SYMTestCaseDesc Function RmDir() test removing directory where path doesn't end with a backslash. |
|
3685 |
//! Uses API elements: MkDir(), GetDir(), RmDir(). |
|
3686 |
//! @SYMTestActions 1. Call Connect() method. |
|
3687 |
//! 2. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\RmDir\" as parameter. |
|
3688 |
//! 3. Call RmDir) and pass "<DRIVE>:\base\T_Sfsrv\RmDir\None" as parameter where <DRIVE> is a test drive letter. |
|
3689 |
//! 4. Call GetDir() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter, |
|
3690 |
//! check that list of directory contents hasn't a "RmDir" of directory. |
|
3691 |
//! 5. Call Close() method. |
|
3692 |
//! @SYMTestStatus Implemented |
|
3693 |
//! @SYMTestPriority Critical |
|
3694 |
//! @SYMTestExpectedResults Function RmDir() return KErrNone, directory "RmDir" is removed. |
|
3695 |
//! @SYMTestType CIT |
|
3696 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
3697 |
CREATE_OBJECT RFs RFs1 |
|
3698 |
COMMAND RFs1 new |
|
3699 |
COMMAND RFs1 Connect |
|
3700 |
COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-2220-001-MkDir_command03 |
|
3701 |
COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-2220-001-RmDir_command04 |
|
3702 |
COMMAND RFs1 GetDir PBASE-F32-RFS-PublicApi-2220-001-GetDir_command05 |
|
3703 |
COMMAND RFs1 Close |
|
3704 |
COMMAND RFs1 ~ |
|
3705 |
END_TEST_BLOCK |
|
3706 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2220 |
|
3707 |
||
3708 |
||
3709 |
/////////////////////////////// |
|
3710 |
// GETSHORTNAME |
|
3711 |
/////////////////////////////// |
|
3712 |
||
3713 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2221 |
|
3714 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2221 |
|
3715 |
//! @SYMAPI RFs |
|
3716 |
//! @SYMTestCaseDesc Function GetShortName() test. |
|
3717 |
//! Uses API elements: SetSessionPath(), GetShortName(). |
|
3718 |
//! @SYMTestActions 1. Call Connect() method. |
|
3719 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
3720 |
//! 3. Create file "TestLongNameFile.txt". |
|
3721 |
//! 4. Call GetShortName() and pass "TestLongNameFile.txt" as parameter of long name of file, |
|
3722 |
//! and check that it return "TESTLO~1.TXT". |
|
3723 |
//! 5. Delete file "TestLongNameFile.txt". |
|
3724 |
//! 6. Call Close() method. |
|
3725 |
//! @SYMTestStatus Implemented |
|
3726 |
//! @SYMTestPriority Critical |
|
3727 |
//! @SYMTestExpectedResults Function GetShortName() return KErNone, the short name "TESTLO~1.TXT" return successfully. |
|
3728 |
//! @SYMTestType CIT |
|
3729 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
3730 |
CREATE_OBJECT RFs RFs1 |
|
3731 |
CREATE_OBJECT RFile RFile1 |
|
3732 |
COMMAND RFs1 new |
|
3733 |
COMMAND RFs1 Connect |
|
3734 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2221-001-SetSessionPath_command03 |
|
3735 |
COMMAND RFile1 new |
|
3736 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2221-001-Create_command06 |
|
3737 |
COMMAND RFile1 Close |
|
3738 |
COMMAND RFile1 ~ |
|
3739 |
COMMAND RFs1 GetShortName PBASE-F32-RFS-PublicApi-2221-001-GetShortName_command10 |
|
3740 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2221-001-Delete_command11 |
|
3741 |
COMMAND RFs1 Close |
|
3742 |
COMMAND RFs1 ~ |
|
3743 |
END_TEST_BLOCK |
|
3744 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2221 |
|
3745 |
||
3746 |
||
3747 |
/////////////////////////////// |
|
3748 |
// GETLONGNAME |
|
3749 |
/////////////////////////////// |
|
3750 |
||
3751 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2222 |
|
3752 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2222 |
|
3753 |
//! @SYMAPI RFs |
|
3754 |
//! @SYMTestCaseDesc Function GetLongName() test. |
|
3755 |
//! Uses API elements: SetSessionPath(), GetLongName(). |
|
3756 |
//! @SYMTestActions 1. Call Connect() method. |
|
3757 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
3758 |
//! 3. Create file "TestLongNameFile.txt". |
|
3759 |
//! 4. Call GetLongName() and pass "TESTLO~1.TXT" as parameter of short name of file, |
|
3760 |
//! and check that it return "TestLongNameFile.txt". |
|
3761 |
//! 5. Delete file "TestLongNameFile.txt". |
|
3762 |
//! 6. Call Close() method. |
|
3763 |
//! @SYMTestStatus Implemented |
|
3764 |
//! @SYMTestPriority Critical |
|
3765 |
//! @SYMTestExpectedResults Function GetLongName() return KErNone, the long name "TestLongNameFile.txt" return successfully. |
|
3766 |
//! @SYMTestType CIT |
|
3767 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
3768 |
CREATE_OBJECT RFs RFs1 |
|
3769 |
CREATE_OBJECT RFile RFile1 |
|
3770 |
COMMAND RFs1 new |
|
3771 |
COMMAND RFs1 Connect |
|
3772 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2222-001-SetSessionPath_command03 |
|
3773 |
COMMAND RFile1 new |
|
3774 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2222-001-Create_command06 |
|
3775 |
COMMAND RFile1 Close |
|
3776 |
COMMAND RFile1 ~ |
|
3777 |
COMMAND RFs1 GetLongName PBASE-F32-RFS-PublicApi-2222-001-GetLongName_command10 |
|
3778 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2222-001-Delete_command11 |
|
3779 |
COMMAND RFs1 Close |
|
3780 |
COMMAND RFs1 ~ |
|
3781 |
END_TEST_BLOCK |
|
3782 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2222 |
|
3783 |
||
3784 |
||
3785 |
/////////////////////////////// |
|
3786 |
// ISFILEOPEN |
|
3787 |
/////////////////////////////// |
|
3788 |
||
3789 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2223 |
|
3790 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2223 |
|
3791 |
//! @SYMAPI RFs |
|
3792 |
//! @SYMTestCaseDesc Function IsFileOpen() test. |
|
3793 |
//! Uses API elements: SetSessionPath(), IsFileOpen(). |
|
3794 |
//! @SYMTestActions 1. Call Connect() method. |
|
3795 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
3796 |
//! 3. Call RFile's Open() and pass "test.txt" as parameter of file name. |
|
3797 |
//! 4. Call IsFileOpen() and pass "test.txt" as parameter and check that it is open. |
|
3798 |
//! 5. Call Close() method. |
|
3799 |
//! @SYMTestStatus Implemented |
|
3800 |
//! @SYMTestPriority Critical |
|
3801 |
//! @SYMTestExpectedResults Function IsFileOpen() return KErNone, file "test.txt" is open. |
|
3802 |
//! @SYMTestType CIT |
|
3803 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
3804 |
CREATE_OBJECT RFs RFs1 |
|
3805 |
CREATE_OBJECT RFile RFile1 |
|
3806 |
COMMAND RFs1 new |
|
3807 |
COMMAND RFs1 Connect |
|
3808 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2223-001-SetSessionPath_command03 |
|
3809 |
COMMAND RFile1 new |
|
3810 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2223-001-Create_command06 |
|
3811 |
COMMAND RFs1 IsFileOpen PBASE-F32-RFS-PublicApi-2223-001-IsFileOpen_command08 |
|
3812 |
COMMAND RFile1 Close |
|
3813 |
COMMAND RFile1 ~ |
|
3814 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2223-001-Delete_command13 |
|
3815 |
COMMAND RFs1 Close |
|
3816 |
COMMAND RFs1 ~ |
|
3817 |
END_TEST_BLOCK |
|
3818 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2223 |
|
3819 |
||
3820 |
||
3821 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2224 |
|
3822 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2224 |
|
3823 |
//! @SYMAPI RFs |
|
3824 |
//! @SYMTestCaseDesc Functions SetSessionPath() test where path is an empty string and function SessionPath() test |
|
3825 |
//! where check that the current path is system default path. |
|
3826 |
//! Uses API elements: SetSessionPath(), SessionPath(). |
|
3827 |
//! @SYMTestActions 1. Call Connect() method. |
|
3828 |
//! 2. Call SetSessionPath() and some valid directory path on the C-drive. |
|
3829 |
//! 3. Call SetSessionPath() and pass empty string as parameter of path. |
|
3830 |
//! 4. Call SessionPath() and check that it is the same as was set by the first SetSessionPath() call. |
|
3831 |
//! 5. Call Close() method. |
|
3832 |
//! @SYMTestStatus Implemented |
|
3833 |
//! @SYMTestPriority Critical |
|
3834 |
//! @SYMTestExpectedResults Function SetSessionPath return KErrNone and doesn't change session path. |
|
3835 |
//! @SYMTestType CIT |
|
3836 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
3837 |
CREATE_OBJECT RFs RFs1 |
|
3838 |
COMMAND RFs1 new |
|
3839 |
COMMAND RFs1 Connect |
|
3840 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2224-001-SetSessionPath_command03 |
|
3841 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2224-001-SetSessionPath_command04 |
|
3842 |
COMMAND RFs1 SessionPath PBASE-F32-RFS-PublicApi-2224-001-SessionPath_command05 |
|
3843 |
COMMAND RFs1 Close |
|
3844 |
COMMAND RFs1 ~ |
|
3845 |
END_TEST_BLOCK |
|
3846 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2224 |
|
3847 |
||
3848 |
||
3849 |
/////////////////////////////// |
|
3850 |
// SETATT & ATT |
|
3851 |
/////////////////////////////// |
|
3852 |
||
3853 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2225 |
|
3854 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2225 |
|
3855 |
//! @SYMAPI RFs |
|
3856 |
//! @SYMTestCaseDesc Functions SetAtt() and Att() test for directory. |
|
3857 |
//! Uses API elements: SetSessionPath(), SetAtt() and Att(), MkDir(), RmDir(). |
|
3858 |
//! @SYMTestActions 1. Call Connect() method. |
|
3859 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
3860 |
//! 3. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\TestDir\" as parameter. |
|
3861 |
//! 4. Call SetAtt() and pass "TestDir" as name of directory. |
|
3862 |
//! 5. Call Att() and pass "TestDir" as name of directory and check that flag of directory is set. |
|
3863 |
//! 6. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\TestDir\" as parameter. |
|
3864 |
//! 7. Call Close() method. |
|
3865 |
//! @SYMTestStatus Implemented |
|
3866 |
//! @SYMTestPriority Critical |
|
3867 |
//! @SYMTestExpectedResults Function SetAtt() and Att() return KErrNone, flag of directory is set. |
|
3868 |
//! @SYMTestType CIT |
|
3869 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
3870 |
CREATE_OBJECT RFs RFs1 |
|
3871 |
COMMAND RFs1 new |
|
3872 |
COMMAND RFs1 Connect |
|
3873 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2225-001-SetSessionPath_command03 |
|
3874 |
COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-2225-001-MkDir_command04 |
|
3875 |
COMMAND RFs1 SetAtt PBASE-F32-RFS-PublicApi-2225-001-SetAtt_command05 |
|
3876 |
COMMAND RFs1 Att PBASE-F32-RFS-PublicApi-2225-001-Att_command06 |
|
3877 |
COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-2225-001-RmDir_command07 |
|
3878 |
COMMAND RFs1 Close |
|
3879 |
COMMAND RFs1 ~ |
|
3880 |
END_TEST_BLOCK |
|
3881 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2225 |
|
3882 |
||
3883 |
||
3884 |
/////////////////////////////// |
|
3885 |
// SETENTRY & ENTRY |
|
3886 |
/////////////////////////////// |
|
3887 |
||
3888 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2226 |
|
3889 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2226 |
|
3890 |
//! @SYMAPI RFs |
|
3891 |
//! @SYMTestCaseDesc Functions SetEntry() and Entry() test for directory. |
|
3892 |
//! Uses API elements: SetSessionPath(), SetEntry(), Entry(), Modified(), MkDir(), RmDir(). |
|
3893 |
//! @SYMTestActions 1. Call Connect() method. |
|
3894 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
3895 |
//! 3. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\TetsDir\" as parameter. |
|
3896 |
//! 4. Call SetEntry() and pass "TestDir" as name of directory, "20090101" as time of modified. |
|
3897 |
//! 5. Call Entry() and pass "TestDir" as name of directory and check that flag of directory is set. |
|
3898 |
//! 6. Call Modified() and pass "TestDir" as name of directory and check that time of modified is set to "20090101". |
|
3899 |
//! 7. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\TestDir\" as parameter. |
|
3900 |
//! 8. Call Close() method. |
|
3901 |
//! @SYMTestStatus Implemented |
|
3902 |
//! @SYMTestPriority Critical |
|
3903 |
//! @SYMTestExpectedResults Function SetEntry() and Entry() return KErrNone, time of modified is set to "20090101". |
|
3904 |
//! @SYMTestType CIT |
|
3905 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
3906 |
CREATE_OBJECT RFs RFs1 |
|
3907 |
COMMAND RFs1 new |
|
3908 |
COMMAND RFs1 Connect |
|
3909 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2226-001-SetSessionPath_command03 |
|
3910 |
COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-2226-001-MkDir_command04 |
|
3911 |
COMMAND RFs1 SetEntry PBASE-F32-RFS-PublicApi-2226-001-SetEntry_command05 |
|
3912 |
COMMAND RFs1 Entry PBASE-F32-RFS-PublicApi-2226-001-Entry_command06 |
|
3913 |
COMMAND RFs1 Modified PBASE-F32-RFS-PublicApi-2226-001-Modified_command07 |
|
3914 |
COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-2226-001-RmDir_command08 |
|
3915 |
COMMAND RFs1 Close |
|
3916 |
COMMAND RFs1 ~ |
|
3917 |
END_TEST_BLOCK |
|
3918 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2226 |
|
3919 |
||
3920 |
||
3921 |
/////////////////////////////// |
|
3922 |
// SETMODIFIED & MODIFIED |
|
3923 |
/////////////////////////////// |
|
3924 |
||
3925 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2227 |
|
3926 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2227 |
|
3927 |
//! @SYMAPI RFs |
|
3928 |
//! @SYMTestCaseDesc Functions SetModified() and Modified() test for directory and uses SetModified() to set a future time for the directory. |
|
3929 |
//! Uses API elements: SetSessionPath(), SetEntry(), Entry(), Modified(), MkDir(), RmDir(). |
|
3930 |
//! @SYMTestActions 1. Call Connect() method. |
|
3931 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
3932 |
//! 3. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\TestDir\" as parameter. |
|
3933 |
//! 4. Call SetModified() and pass "TestDir" as name of directory, "20990101" as time of modified. |
|
3934 |
//! 5. Call Modified() and pass "TestDir" as name of directory and check that time of modified is set to "20990101". |
|
3935 |
//! 6. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\TestDir\" as parameter. |
|
3936 |
//! 7. Call Close() method. |
|
3937 |
//! @SYMTestStatus Implemented |
|
3938 |
//! @SYMTestPriority Critical |
|
3939 |
//! @SYMTestExpectedResults Function SetModified() and Modified() return KErrNone, time of modified is set to "20990101". |
|
3940 |
//! @SYMTestType CIT |
|
3941 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
3942 |
CREATE_OBJECT RFs RFs1 |
|
3943 |
COMMAND RFs1 new |
|
3944 |
COMMAND RFs1 Connect |
|
3945 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2227-001-SetSessionPath_command03 |
|
3946 |
COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-2227-001-MkDir_command04 |
|
3947 |
COMMAND RFs1 SetModified PBASE-F32-RFS-PublicApi-2227-001-SetModified_command05 |
|
3948 |
COMMAND RFs1 Modified PBASE-F32-RFS-PublicApi-2227-001-Modified_command06 |
|
3949 |
COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-2227-001-RmDir_command07 |
|
3950 |
COMMAND RFs1 Close |
|
3951 |
COMMAND RFs1 ~ |
|
3952 |
END_TEST_BLOCK |
|
3953 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2227 |
|
3954 |
||
3955 |
||
3956 |
/////////////////////////////// |
|
3957 |
// READFILESECTION |
|
3958 |
/////////////////////////////// |
|
3959 |
||
3960 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2229 |
|
3961 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2229 |
|
3962 |
//! @SYMAPI RFs |
|
3963 |
//! @SYMTestCaseDesc Functions ReadFileSection() test where offset, in bytes, from the start has some positive number. |
|
3964 |
//! Uses API elements: SetSessionPath(), ReadFileSection(). |
|
3965 |
//! @SYMTestActions 1. Call Connect() method. |
|
3966 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
3967 |
//! 3. Call Create() passing "EFileShareAny" as file mode and "test2229.txt" as name of file. |
|
3968 |
//! 4. Call Write() passing some data to write as argument. |
|
3969 |
//! 5. Call Close() to close created file. |
|
3970 |
//! 6. Call ReadFileSection() and pass "test2229.txt" as parameter as name of file and |
|
3971 |
//! "10" as offset, in bytes, from the start. |
|
3972 |
//! 7. Call Delete() passing parameter "test2229.txt" as name of file. |
|
3973 |
//! 8. Call Close() method. |
|
3974 |
//! @SYMTestStatus Implemented |
|
3975 |
//! @SYMTestPriority Critical |
|
3976 |
//! @SYMTestExpectedResults Function SetSessionPath() return KErrNone. |
|
3977 |
//! @SYMTestType CIT |
|
3978 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
3979 |
CREATE_OBJECT RFs RFs1 |
|
3980 |
CREATE_OBJECT RFile RFile1 |
|
3981 |
COMMAND RFs1 new |
|
3982 |
COMMAND RFs1 Connect |
|
3983 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2229-001-SetSessionPath_command03 |
|
3984 |
COMMAND RFile1 new |
|
3985 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2229-001-Create_command06 |
|
3986 |
COMMAND RFile1 Write PBASE-F32-RFS-PublicApi-2229-001-Write_command07 |
|
3987 |
COMMAND RFile1 Close |
|
3988 |
COMMAND RFile1 ~ |
|
3989 |
COMMAND RFs1 ReadFileSection PBASE-F32-RFS-PublicApi-2229-001-ReadFileSection_command11 |
|
3990 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2229-001-Delete_command12 |
|
3991 |
COMMAND RFs1 Close |
|
3992 |
COMMAND RFs1 ~ |
|
3993 |
END_TEST_BLOCK |
|
3994 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2229 |
|
3995 |
||
3996 |
||
3997 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2230 |
|
3998 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2230 |
|
3999 |
//! @SYMAPI RFs |
|
4000 |
//! @SYMTestCaseDesc Functions ReadFileSection() test where number of bytes to be read is greater than file size. |
|
4001 |
//! Uses API elements: SetSessionPath(), ReadFileSection(). |
|
4002 |
//! @SYMTestActions 1. Call Connect() method. |
|
4003 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
4004 |
//! 3. Call Create() passing "EFileShareAny" as file mode and "test2230.txt" as name of file. |
|
4005 |
//! 4. Call Write() passing some data to write as argument. |
|
4006 |
//! 5. Call Close() to close created file. |
|
4007 |
//! 6. Call ReadFileSection() and pass "test2230.txt" as parameter as name of file and |
|
4008 |
//! "5555" number of bytes to be read. |
|
4009 |
//! 7. Call Delete() passing parameter "test2230.txt" as name of file. |
|
4010 |
//! 8. Call Close() method. |
|
4011 |
//! @SYMTestStatus Implemented |
|
4012 |
//! @SYMTestPriority High |
|
4013 |
//! @SYMTestExpectedResults Function SetSessionPath() return KErrNone. |
|
4014 |
//! @SYMTestType CIT |
|
4015 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
4016 |
CREATE_OBJECT RFs RFs1 |
|
4017 |
CREATE_OBJECT RFile RFile1 |
|
4018 |
COMMAND RFs1 new |
|
4019 |
COMMAND RFs1 Connect |
|
4020 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2230-001-SetSessionPath_command03 |
|
4021 |
COMMAND RFile1 new |
|
4022 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2230-001-Create_command06 |
|
4023 |
COMMAND RFile1 Write PBASE-F32-RFS-PublicApi-2230-001-Write_command07 |
|
4024 |
COMMAND RFile1 Close |
|
4025 |
COMMAND RFile1 ~ |
|
4026 |
COMMAND RFs1 ReadFileSection PBASE-F32-RFS-PublicApi-2230-001-ReadFileSection_command11 |
|
4027 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2230-001-Delete_command12 |
|
4028 |
COMMAND RFs1 Close |
|
4029 |
COMMAND RFs1 ~ |
|
4030 |
END_TEST_BLOCK |
|
4031 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2230 |
|
4032 |
||
4033 |
||
4034 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2231 |
|
4035 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2231 |
|
4036 |
//! @SYMAPI RFs |
|
4037 |
//! @SYMTestCaseDesc Functions ReadFileSection() negative test where passed the name of directory instead of name of file. |
|
4038 |
//! Uses API elements: ReadFileSection(). |
|
4039 |
//! @SYMTestActions 1. Call Connect() method. |
|
4040 |
//! 2. Call ReadFileSection() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter as name of file. |
|
4041 |
//! 3. Call Close() method. |
|
4042 |
//! @SYMTestStatus Implemented |
|
4043 |
//! @SYMTestPriority High |
|
4044 |
//! @SYMTestExpectedResults Function SetSessionPath() return KErrBadName. |
|
4045 |
//! @SYMTestType CIT |
|
4046 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
4047 |
CREATE_OBJECT RFs RFs1 |
|
4048 |
COMMAND RFs1 new |
|
4049 |
COMMAND RFs1 Connect |
|
4050 |
COMMAND !Error=-28 RFs1 ReadFileSection PBASE-F32-RFS-PublicApi-2231-001-ReadFileSection_command03 |
|
4051 |
COMMAND RFs1 Close |
|
4052 |
COMMAND RFs1 ~ |
|
4053 |
END_TEST_BLOCK |
|
4054 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2231 |
|
4055 |
||
4056 |
||
4057 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2232 |
|
4058 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2232 |
|
4059 |
//! @SYMAPI RFs |
|
4060 |
//! @SYMTestCaseDesc Function ReadFileSection() test with 0 as a length argument. |
|
4061 |
//! Uses API elements: ReadFileSection(). |
|
4062 |
//! @SYMTestActions 1. Call Connect() method. |
|
4063 |
//! 2. Call ReadFileSection() and pass "<DRIVE>:\base\T_Sfsrv\test.txt" as parameter, offset = 0, length = 0, buffer with a length = 10. |
|
4064 |
//! 3. Call Close() method. |
|
4065 |
//! @SYMTestStatus Implemented |
|
4066 |
//! @SYMTestPriority Critical |
|
4067 |
//! @SYMTestExpectedResults ReadFileSection() returns KErrNone. |
|
4068 |
//! @SYMTestType CIT |
|
4069 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
4070 |
CREATE_OBJECT RFs RFs1 |
|
4071 |
CREATE_OBJECT RFile RFile1 |
|
4072 |
COMMAND RFs1 new |
|
4073 |
COMMAND RFs1 Connect |
|
4074 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2232-001-SetSessionPath_command03 |
|
4075 |
COMMAND RFile1 new |
|
4076 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2232-001-Create_command06 |
|
4077 |
COMMAND RFile1 Write PBASE-F32-RFS-PublicApi-2232-001-Write_command07 |
|
4078 |
COMMAND RFile1 Close |
|
4079 |
COMMAND RFile1 ~ |
|
4080 |
COMMAND RFs1 ReadFileSection PBASE-F32-RFS-PublicApi-2232-001-ReadFileSection_command11 |
|
4081 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2232-001-Delete_command12 |
|
4082 |
COMMAND RFs1 Close |
|
4083 |
COMMAND RFs1 ~ |
|
4084 |
END_TEST_BLOCK |
|
4085 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2232 |
|
4086 |
||
4087 |
||
4088 |
/////////////////////////////// |
|
4089 |
// DELETE |
|
4090 |
/////////////////////////////// |
|
4091 |
||
4092 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2233 |
|
4093 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2233 |
|
4094 |
//! @SYMAPI RFs |
|
4095 |
//! @SYMCreationDate 5/10/2006 |
|
4096 |
//! @SYMTestCaseDesc Function Delete() negative test where name of file includes "*" of wildcard. |
|
4097 |
//! Uses API elements: Delete(). |
|
4098 |
//! @SYMTestActions 1. Call Connect() method. |
|
4099 |
//! 2. Call Delete() and pass "delete*.txt" as parameter. |
|
4100 |
//! 3. Call Close() method. |
|
4101 |
//! @SYMTestStatus Implemented |
|
4102 |
//! @SYMTestPriority High |
|
4103 |
//! @SYMTestExpectedResults Function Delete() return KErrBadName. |
|
4104 |
//! @SYMTestType CIT |
|
4105 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
4106 |
CREATE_OBJECT RFs RFs1 |
|
4107 |
COMMAND RFs1 new |
|
4108 |
COMMAND RFs1 Connect |
|
4109 |
COMMAND !Error=-28 RFs1 Delete PBASE-F32-RFS-PublicApi-2233-001-Delete_command03 |
|
4110 |
COMMAND RFs1 Close |
|
4111 |
COMMAND RFs1 ~ |
|
4112 |
END_TEST_BLOCK |
|
4113 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2233 |
|
4114 |
||
4115 |
||
4116 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2234 |
|
4117 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2234 |
|
4118 |
//! @SYMAPI RFs |
|
4119 |
//! @SYMCreationDate 5/10/2006 |
|
4120 |
//! @SYMTestCaseDesc Function Delete() negative test where name of file includes "*" and "?" of wildcards. |
|
4121 |
//! Uses API elements: Delete(). |
|
4122 |
//! @SYMTestActions 1. Call Connect() method. |
|
4123 |
//! 2. Call Delete() and pass "delete*?.txt" as parameter. |
|
4124 |
//! 3. Call Close() method. |
|
4125 |
//! @SYMTestStatus Implemented |
|
4126 |
//! @SYMTestPriority High |
|
4127 |
//! @SYMTestExpectedResults Function Delete() return KErrBadName. |
|
4128 |
//! @SYMTestType CIT |
|
4129 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
4130 |
CREATE_OBJECT RFs RFs1 |
|
4131 |
COMMAND RFs1 new |
|
4132 |
COMMAND RFs1 Connect |
|
4133 |
COMMAND !Error=-28 RFs1 Delete PBASE-F32-RFS-PublicApi-2234-001-Delete_command03 |
|
4134 |
COMMAND RFs1 Close |
|
4135 |
COMMAND RFs1 ~ |
|
4136 |
END_TEST_BLOCK |
|
4137 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2234 |
|
4138 |
||
4139 |
||
4140 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2228 |
|
4141 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2228 |
|
4142 |
//! @SYMAPI RFs |
|
4143 |
//! @SYMTestCaseDesc Functions ReadFileSection() negative test where the number of bytes to be read is negative. |
|
4144 |
//! Uses API elements: SetSessionPath(), ReadFileSection(). |
|
4145 |
//! @SYMTestActions 1. Call Connect() method. |
|
4146 |
//! 2. Call SetSessionPath() and pass "<DRIVE>:\base\T_Sfsrv\" as parameter where <DRIVE> is a test drive letter. |
|
4147 |
//! 3. Call Create() passing "EFileShareAny" as file mode and "test2228.txt" as name of file. |
|
4148 |
//! 4. Call Write() passing some data to write as argument. |
|
4149 |
//! 5. Call Close() to close created file. |
|
4150 |
//! 6. Call ReadFileSection() and pass "test2228.txt" as parameter as name of file and |
|
4151 |
//! "-1" as number of bytes to be read. |
|
4152 |
//! 7. Call Delete() passing parameter "test2228.txt" as name of file. |
|
4153 |
//! 8. Call Close() method. |
|
4154 |
//! @SYMTestStatus Implemented |
|
4155 |
//! @SYMTestPriority High |
|
4156 |
//! @SYMTestExpectedResults Function ReadFileSection() return KErrArgument. |
|
4157 |
//! @SYMTestType CIT |
|
4158 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-RAM.ini |
|
4159 |
CREATE_OBJECT RFs RFs1 |
|
4160 |
CREATE_OBJECT RFile RFile1 |
|
4161 |
COMMAND RFs1 new |
|
4162 |
COMMAND RFs1 Connect |
|
4163 |
COMMAND RFs1 SetSessionPath PBASE-F32-RFS-PublicApi-2228-001-SetSessionPath_command03 |
|
4164 |
COMMAND RFile1 new |
|
4165 |
COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-2228-001-Create_command06 |
|
4166 |
COMMAND RFile1 Write PBASE-F32-RFS-PublicApi-2228-001-Write_command07 |
|
4167 |
COMMAND RFile1 Close |
|
4168 |
COMMAND RFile1 ~ |
|
4169 |
COMMAND !Error=-6 RFs1 ReadFileSection PBASE-F32-RFS-PublicApi-2228-001-ReadFileSection_command11 |
|
4170 |
COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-2228-001-Delete_command12 |
|
4171 |
COMMAND RFs1 Close |
|
4172 |
COMMAND RFs1 ~ |
|
4173 |
END_TEST_BLOCK |
|
4174 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2228 |