author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Thu, 07 Jan 2010 13:38:45 +0200 | |
changeset 6 | 0173bcd7697c |
parent 2 | 4122176ea935 |
permissions | -rw-r--r-- |
0 | 1 |
// |
2 |
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 |
// All rights reserved. |
|
4 |
// This component and the accompanying materials are made available |
|
2
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
5 |
// under the terms of "Eclipse Public License v1.0" |
0 | 6 |
// which accompanies this distribution, and is available |
7 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 |
// |
|
9 |
// Initial Contributors: |
|
10 |
// Nokia Corporation - initial contribution. |
|
11 |
// |
|
12 |
// Contributors: |
|
13 |
// |
|
2
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
14 |
// Description: |
0 | 15 |
// |
16 |
//! @file |
|
17 |
//! @SYMTestSuiteName pbase-f32-sfsrv-publicapi-ram |
|
18 |
//! @SYMScriptTestEnvironment This test script requires a basic ROM. |
|
19 |
//! @SYMScriptAuthor Dmitri Trofimov, Sergei Tveritin, Jaanus Randveer |
|
20 |
//! @SYMCreationDate 12/10/2007 |
|
21 |
//! @SYMScriptDescription The test script contains API tests for the following functions of TEntry class: |
|
22 |
//! TEntry(); |
|
23 |
//! TEntry(const TEntry &aEntry); |
|
24 |
//! TEntry &operator=(const TEntry &aEntry); |
|
25 |
//! const TUid &operator[](TInt anIndex) const; |
|
26 |
//! TBool IsUidPresent(TUid aUid) const; |
|
27 |
//! TBool IsTypeValid() const; |
|
28 |
//! TUid MostDerivedUid() const; |
|
29 |
//! TBool IsReadOnly() const; |
|
30 |
//! TBool IsHidden() const; |
|
31 |
//! TBool IsSystem() const; |
|
32 |
//! TBool IsDir() const; |
|
33 |
//! TBool IsArchive() const; |
|
34 |
||
35 |
||
36 |
LOAD_SUITE T_SfSrv |
|
37 |
//DELAY 5000 |
|
38 |
||
39 |
||
40 |
START_TESTCASE PBASE-F32-Entry-PublicApi-0001 |
|
41 |
//! @SYMTestCaseID PBASE-F32-Entry-PublicApi-0001 |
|
42 |
//! @SYMAPI TEntry |
|
43 |
//! |
|
44 |
//! @SYMTestCaseDesc TEntry() test. Tests for successful object creation. |
|
45 |
//! Uses API elements: TEntry() |
|
46 |
//! @SYMTestActions 1. Create a TEntry object |
|
47 |
//! |
|
48 |
//! @SYMTestStatus Implemented |
|
49 |
//! @SYMTestPriority Critical |
|
50 |
//! @SYMTestExpectedResults Function does not leave nor panic |
|
51 |
//! @SYMTestType CIT |
|
52 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
53 |
CREATE_OBJECT TEntry TEntry1 |
|
54 |
COMMAND TEntry1 new |
|
55 |
COMMAND TEntry1 ~ |
|
56 |
END_TEST_BLOCK |
|
57 |
END_TESTCASE PBASE-F32-Entry-PublicApi-0001 |
|
58 |
||
59 |
||
60 |
START_TESTCASE PBASE-F32-Entry-PublicApi-0002 |
|
61 |
//! @SYMTestCaseID PBASE-F32-Entry-PublicApi-0002 |
|
62 |
//! @SYMAPI TEntry |
|
63 |
//! @SYMTestCaseDesc operator=() test. Tests for successful assignment of one TEntry object to another TEntry object. |
|
64 |
//! Uses API elements: TEntry(), operator=(), RFs::Entry() |
|
65 |
//! @SYMTestActions 1. Create a TEntry object. |
|
66 |
//! 2. Call RFs's command Entry() and pass "<RAM_DRIVE>:\<RELATIVE_PATH>\Entry\Test1.txt" as name of file. |
|
67 |
//! 3. Create second TEntry object. |
|
68 |
//! 4. Call assignment operator "=" and pass second TEntry object, first TEntry object to be copied to this second TEntry object. |
|
69 |
//! 5. Check that firstTEntr and second TEntry has the same name "\base\PBASE-F32-Entry-PublicApi.ini". |
|
70 |
//! |
|
71 |
//! @SYMTestStatus Implemented |
|
72 |
//! @SYMTestPriority Critical |
|
73 |
//! @SYMTestExpectedResults Second TEntry object contains same data as the first TEntry. |
|
74 |
//! @SYMTestType CIT |
|
75 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
76 |
CREATE_OBJECT RFs RFs1 |
|
77 |
CREATE_OBJECT CFileMan CFileMan1 |
|
78 |
COMMAND RFs1 new |
|
79 |
COMMAND RFs1 Connect |
|
80 |
COMMAND RFs1 MkDirAll PBASE-F32-Entry-PublicApi-0002-001-MkDirAll_command004 |
|
81 |
COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0002-001-NewL_command005 |
|
82 |
COMMAND CFileMan1 Copy PBASE-F32-Entry-PublicApi-0002-001-Copy_command006 |
|
83 |
COMMAND CFileMan1 ~ |
|
84 |
COMMAND RFs1 ~ |
|
85 |
END_TEST_BLOCK |
|
86 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
87 |
CREATE_OBJECT RFs RFs1 |
|
88 |
CREATE_OBJECT TEntry TEntry1 |
|
89 |
CREATE_OBJECT TEntry TEntry2 |
|
90 |
COMMAND RFs1 new |
|
91 |
COMMAND RFs1 Connect |
|
92 |
COMMAND TEntry1 new |
|
93 |
COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0002-002-Entry_command007 |
|
94 |
COMMAND TEntry2 new |
|
95 |
COMMAND TEntry2 = PBASE-F32-Entry-PublicApi-0002-002-=_command009 |
|
96 |
COMMAND TEntry2 ~ |
|
97 |
COMMAND TEntry1 ~ |
|
98 |
COMMAND RFs1 ~ |
|
99 |
END_TEST_BLOCK |
|
100 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
101 |
CREATE_OBJECT RFs RFs1 |
|
102 |
CREATE_OBJECT CFileMan CFileMan1 |
|
103 |
COMMAND RFs1 new |
|
104 |
COMMAND RFs1 Connect |
|
105 |
COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0002-003-NewL_command004 |
|
106 |
COMMAND CFileMan1 Delete PBASE-F32-Entry-PublicApi-0002-003-Delete_command005 |
|
107 |
COMMAND RFs1 RmDir PBASE-F32-Entry-PublicApi-0002-003-RmDir_command006 |
|
108 |
COMMAND CFileMan1 ~ |
|
109 |
COMMAND RFs1 ~ |
|
110 |
END_TEST_BLOCK |
|
111 |
END_TESTCASE PBASE-F32-Entry-PublicApi-0002 |
|
112 |
||
113 |
||
114 |
START_TESTCASE PBASE-F32-Entry-PublicApi-0003 |
|
115 |
//! @SYMTestCaseID PBASE-F32-Entry-PublicApi-0003 |
|
116 |
//! @SYMAPI TEntry |
|
117 |
//! @SYMTestCaseDesc TEntry() passing another TEntry object as a reference. Tests for successful creation of TEntry object and initilization with another TEntry objet's data. |
|
118 |
//! Uses API elements: TEntry() |
|
119 |
//! @SYMTestActions 1. Create a TEntry object |
|
120 |
//! 2. Call RFs's command Entry() and pass "<RAM_DRIVE>:\<RELATIVE_PATH>\Entry\Test1.txt" as name of file. |
|
121 |
//! 3. Create the second TEntry object passing the the first TEntry as a parameter |
|
122 |
//! 4. Compare data members of the first and the second TEntry objects. |
|
123 |
//! |
|
124 |
//! @SYMTestStatus Implemented |
|
125 |
//! @SYMTestPriority Critical |
|
126 |
//! @SYMTestExpectedResults New TEntry object contains same data as the other one. |
|
127 |
//! @SYMTestType CIT |
|
128 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
129 |
CREATE_OBJECT RFs RFs1 |
|
130 |
CREATE_OBJECT CFileMan CFileMan1 |
|
131 |
COMMAND RFs1 new |
|
132 |
COMMAND RFs1 Connect |
|
133 |
COMMAND RFs1 MkDirAll PBASE-F32-Entry-PublicApi-0003-001-MkDirAll_command004 |
|
134 |
COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0003-001-NewL_command005 |
|
135 |
COMMAND CFileMan1 Copy PBASE-F32-Entry-PublicApi-0003-001-Copy_command006 |
|
136 |
COMMAND CFileMan1 ~ |
|
137 |
COMMAND RFs1 ~ |
|
138 |
END_TEST_BLOCK |
|
139 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
140 |
CREATE_OBJECT RFs RFs1 |
|
141 |
CREATE_OBJECT TEntry TEntry1 |
|
142 |
CREATE_OBJECT TEntry TEntry2 |
|
143 |
COMMAND RFs1 new |
|
144 |
COMMAND RFs1 Connect |
|
145 |
COMMAND TEntry1 new |
|
146 |
COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0003-002-Entry_command007 |
|
147 |
COMMAND TEntry2 new PBASE-F32-Entry-PublicApi-0003-002-new_command008 |
|
148 |
COMMAND TEntry2 IsReadOnly PBASE-F32-Entry-PublicApi-0003-002-IsReadOnly_command009 |
|
149 |
COMMAND TEntry2 IsHidden PBASE-F32-Entry-PublicApi-0003-002-IsHidden_command010 |
|
150 |
COMMAND TEntry2 IsDir PBASE-F32-Entry-PublicApi-0003-002-IsDir_command011 |
|
151 |
COMMAND TEntry2 ~ |
|
152 |
COMMAND TEntry1 ~ |
|
153 |
COMMAND RFs1 ~ |
|
154 |
END_TEST_BLOCK |
|
155 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
156 |
CREATE_OBJECT RFs RFs1 |
|
157 |
CREATE_OBJECT CFileMan CFileMan1 |
|
158 |
COMMAND RFs1 new |
|
159 |
COMMAND RFs1 Connect |
|
160 |
COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0003-003-NewL_command004 |
|
161 |
COMMAND CFileMan1 Delete PBASE-F32-Entry-PublicApi-0003-003-Delete_command005 |
|
162 |
COMMAND RFs1 RmDir PBASE-F32-Entry-PublicApi-0003-003-RmDir_command006 |
|
163 |
COMMAND CFileMan1 ~ |
|
164 |
COMMAND RFs1 ~ |
|
165 |
END_TEST_BLOCK |
|
166 |
END_TESTCASE PBASE-F32-Entry-PublicApi-0003 |
|
167 |
||
168 |
||
169 |
//! START_TESTCASE PBASE-F32-Entry-PublicApi-0004 |
|
170 |
//! @SYMTestCaseID PBASE-F32-Entry-PublicApi-0004 |
|
171 |
//! @SYMAPI TEntry |
|
172 |
//! @SYMCreationDate 13/08/2006 |
|
173 |
//! @SYMTestCaseDesc operator[] negative test where passing unsupported index of UID as a parameter. This tests for panic when unsupported UID |
|
174 |
//! index value is provided. |
|
175 |
//! Uses API elements: operator[] |
|
176 |
//! @SYMTestActions 1. Create a TEntry object |
|
177 |
//! 2. Try get "four UID" |
|
178 |
//! |
|
179 |
//! @SYMTestStatus Implemented |
|
180 |
//! @SYMTestPriority Critical |
|
181 |
//! @SYMTestExpectedResults Panic USER - 37. |
|
182 |
//! @SYMTestType CIT |
|
183 |
//! START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
184 |
//! CREATE_OBJECT TEntry TEntry1 |
|
185 |
//! COMMAND TEntry1 new |
|
186 |
//! COMMAND TEntry1 [] PBASE-F32-Entry-PublicApi-0004-001-index_command003 |
|
187 |
//! COMMAND TEntry1 ~ |
|
188 |
//! END_TEST_BLOCK !PanicCode=37 !PanicString=USER |
|
189 |
//! END_TESTCASE PBASE-F32-Entry-PublicApi-0004 |
|
190 |
||
191 |
||
192 |
START_TESTCASE PBASE-F32-Entry-PublicApi-0005 |
|
193 |
//! @SYMTestCaseID PBASE-F32-Entry-PublicApi-0005 |
|
194 |
//! @SYMAPI TEntry |
|
195 |
//! @SYMTestCaseDesc IsUidPresent() test. This tests the function for finding a match in "first UID". |
|
196 |
//! Uses API elements: IsUidPresent() |
|
197 |
//! @SYMTestActions 1. Create a TEntry object |
|
198 |
//! 2. Call IsUidPresent() and and check that the function return "FALSE". |
|
199 |
//! 3. Call RFs's command Entry() and pass "<RAM_DRIVE>:\<RELATIVE_PATH>\Entry\Test3.txt" as name of file. |
|
200 |
//! 4. Call IsUidPresent() and check that the function return "FALSE". |
|
201 |
//! |
|
202 |
//! @SYMTestStatus Implemented |
|
203 |
//! @SYMTestPriority Critical |
|
204 |
//! @SYMTestExpectedResults IsUidPresent() returns ETrue |
|
205 |
//! @SYMTestType CIT |
|
206 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
207 |
CREATE_OBJECT RFs RFs1 |
|
208 |
CREATE_OBJECT CFileMan CFileMan1 |
|
209 |
COMMAND RFs1 new |
|
210 |
COMMAND RFs1 Connect |
|
211 |
COMMAND RFs1 MkDirAll PBASE-F32-Entry-PublicApi-0005-001-MkDirAll_command004 |
|
212 |
COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0005-001-NewL_command005 |
|
213 |
COMMAND CFileMan1 Copy PBASE-F32-Entry-PublicApi-0005-001-Copy_command006 |
|
214 |
COMMAND CFileMan1 ~ |
|
215 |
COMMAND RFs1 ~ |
|
216 |
END_TEST_BLOCK |
|
217 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
218 |
CREATE_OBJECT RFs RFs1 |
|
219 |
CREATE_OBJECT TEntry TEntry1 |
|
220 |
COMMAND RFs1 new |
|
221 |
COMMAND RFs1 Connect |
|
222 |
COMMAND TEntry1 new |
|
223 |
COMMAND TEntry1 IsUidPresent PBASE-F32-Entry-PublicApi-0005-002-IsUidPresent_command006 |
|
224 |
COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0005-002-Entry_command007 |
|
225 |
COMMAND TEntry1 IsUidPresent PBASE-F32-Entry-PublicApi-0005-002-IsUidPresent_command008 |
|
226 |
COMMAND TEntry1 ~ |
|
227 |
COMMAND RFs1 ~ |
|
228 |
END_TEST_BLOCK |
|
229 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
230 |
CREATE_OBJECT RFs RFs1 |
|
231 |
CREATE_OBJECT CFileMan CFileMan1 |
|
232 |
COMMAND RFs1 new |
|
233 |
COMMAND RFs1 Connect |
|
234 |
COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0005-003-NewL_command004 |
|
235 |
COMMAND CFileMan1 Delete PBASE-F32-Entry-PublicApi-0005-003-Delete_command005 |
|
236 |
COMMAND RFs1 RmDir PBASE-F32-Entry-PublicApi-0005-003-RmDir_command006 |
|
237 |
COMMAND CFileMan1 ~ |
|
238 |
COMMAND RFs1 ~ |
|
239 |
END_TEST_BLOCK |
|
240 |
END_TESTCASE PBASE-F32-Entry-PublicApi-0005 |
|
241 |
||
242 |
||
243 |
START_TESTCASE PBASE-F32-Entry-PublicApi-0006 |
|
244 |
//! @SYMTestCaseID PBASE-F32-Entry-PublicApi-0006 |
|
245 |
//! @SYMAPI TEntry |
|
246 |
//! @SYMTestCaseDesc IsTypeValid() test. This tests if the function can correctly identify the absence of valid UID. |
|
247 |
//! Uses API elements: IsTypeValid() |
|
248 |
//! @SYMTestActions 1. Create TEntry object |
|
249 |
//! 2. Call IsTypeValid() and and check that the function return "FALSE". |
|
250 |
//! 3. Call RFs's command Entry() and pass "<RAM_DRIVE>:\<RELATIVE_PATH>\Entry\Test3.txt" as name of file. |
|
251 |
//! 4. Call IsTypeValid() and check that the function return "FALSE". |
|
252 |
//! |
|
253 |
//! @SYMTestStatus Implemented |
|
254 |
//! @SYMTestPriority Critical |
|
255 |
//! @SYMTestExpectedResults IsTypeValid() returns EFalse |
|
256 |
//! @SYMTestType CIT |
|
257 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
258 |
CREATE_OBJECT RFs RFs1 |
|
259 |
CREATE_OBJECT CFileMan CFileMan1 |
|
260 |
COMMAND RFs1 new |
|
261 |
COMMAND RFs1 Connect |
|
262 |
COMMAND RFs1 MkDirAll PBASE-F32-Entry-PublicApi-0006-001-MkDirAll_command004 |
|
263 |
COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0006-001-NewL_command005 |
|
264 |
COMMAND CFileMan1 Copy PBASE-F32-Entry-PublicApi-0006-001-Copy_command006 |
|
265 |
COMMAND CFileMan1 ~ |
|
266 |
COMMAND RFs1 ~ |
|
267 |
END_TEST_BLOCK |
|
268 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
269 |
CREATE_OBJECT RFs RFs1 |
|
270 |
CREATE_OBJECT TEntry TEntry1 |
|
271 |
COMMAND RFs1 new |
|
272 |
COMMAND RFs1 Connect |
|
273 |
COMMAND TEntry1 new |
|
274 |
COMMAND TEntry1 IsTypeValid PBASE-F32-Entry-PublicApi-0006-002-IsTypeValid_command006 |
|
275 |
COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0006-002-Entry_command007 |
|
276 |
COMMAND TEntry1 IsTypeValid PBASE-F32-Entry-PublicApi-0006-002-IsTypeValid_command008 |
|
277 |
COMMAND TEntry1 ~ |
|
278 |
COMMAND RFs1 ~ |
|
279 |
END_TEST_BLOCK |
|
280 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
281 |
CREATE_OBJECT RFs RFs1 |
|
282 |
CREATE_OBJECT CFileMan CFileMan1 |
|
283 |
COMMAND RFs1 new |
|
284 |
COMMAND RFs1 Connect |
|
285 |
COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0006-003-NewL_command004 |
|
286 |
COMMAND CFileMan1 Delete PBASE-F32-Entry-PublicApi-0006-003-Delete_command005 |
|
287 |
COMMAND RFs1 RmDir PBASE-F32-Entry-PublicApi-0006-003-RmDir_command006 |
|
288 |
COMMAND CFileMan1 ~ |
|
289 |
COMMAND RFs1 ~ |
|
290 |
END_TEST_BLOCK |
|
291 |
END_TESTCASE PBASE-F32-Entry-PublicApi-0006 |
|
292 |
||
293 |
||
294 |
START_TESTCASE PBASE-F32-Entry-PublicApi-0007 |
|
295 |
//! @SYMTestCaseID PBASE-F32-Entry-PublicApi-0007 |
|
296 |
//! @SYMAPI TEntry |
|
297 |
//! @SYMTestCaseDesc MostDerivedUid(). This tests if the function is able to correctly find the most derived UID when it is "first UID". |
|
298 |
//! Uses API elements: MostDerivedUid() |
|
299 |
//! @SYMTestActions 1. Create TEntry object |
|
300 |
//! 2. Call RFs's command Entry() and pass "<RAM_DRIVE>:\<RELATIVE_PATH>\Entry\Test3.txt" as name of file. |
|
301 |
//! 3. Call MostDerivedUid(). |
|
302 |
//! |
|
303 |
//! @SYMTestStatus Implemented |
|
304 |
//! @SYMTestPriority Critical |
|
305 |
//! @SYMTestExpectedResults Function returns no panic. |
|
306 |
//! @SYMTestType CIT |
|
307 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
308 |
CREATE_OBJECT RFs RFs1 |
|
309 |
CREATE_OBJECT CFileMan CFileMan1 |
|
310 |
COMMAND RFs1 new |
|
311 |
COMMAND RFs1 Connect |
|
312 |
COMMAND RFs1 MkDirAll PBASE-F32-Entry-PublicApi-0007-001-MkDirAll_command004 |
|
313 |
COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0007-001-NewL_command005 |
|
314 |
COMMAND CFileMan1 Copy PBASE-F32-Entry-PublicApi-0007-001-Copy_command006 |
|
315 |
COMMAND CFileMan1 ~ |
|
316 |
COMMAND RFs1 ~ |
|
317 |
END_TEST_BLOCK |
|
318 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
319 |
CREATE_OBJECT RFs RFs1 |
|
320 |
CREATE_OBJECT TEntry TEntry1 |
|
321 |
COMMAND RFs1 new |
|
322 |
COMMAND RFs1 Connect |
|
323 |
COMMAND TEntry1 new |
|
324 |
COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0007-002-Entry_command006 |
|
325 |
COMMAND TEntry1 MostDerivedUid |
|
326 |
COMMAND TEntry1 ~ |
|
327 |
COMMAND RFs1 ~ |
|
328 |
END_TEST_BLOCK |
|
329 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
330 |
CREATE_OBJECT RFs RFs1 |
|
331 |
CREATE_OBJECT CFileMan CFileMan1 |
|
332 |
COMMAND RFs1 new |
|
333 |
COMMAND RFs1 Connect |
|
334 |
COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0007-003-NewL_command004 |
|
335 |
COMMAND CFileMan1 Delete PBASE-F32-Entry-PublicApi-0007-003-Delete_command005 |
|
336 |
COMMAND RFs1 RmDir PBASE-F32-Entry-PublicApi-0007-003-RmDir_command006 |
|
337 |
COMMAND CFileMan1 ~ |
|
338 |
COMMAND RFs1 ~ |
|
339 |
END_TEST_BLOCK |
|
340 |
END_TESTCASE PBASE-F32-Entry-PublicApi-0007 |
|
341 |
||
342 |
||
343 |
START_TESTCASE PBASE-F32-Entry-PublicApi-0008 |
|
344 |
//! @SYMTestCaseID PBASE-F32-Entry-PublicApi-0008 |
|
345 |
//! @SYMAPI TEntry |
|
346 |
//! @SYMTestCaseDesc IsReadOnly() test. Test if the function is able to correctly identify the presence of ReadOnly attribute. |
|
347 |
//! Uses API elements: IsReadOnly(), RFs:SetAtt() |
|
348 |
//! @SYMTestActions 1. Create RFs object |
|
349 |
//! 2. Create TEntry object |
|
350 |
//! 3. Call RFs::SetAtt() and pass KEntryAttReadOnly as attribute and "Test1.txt" as name of entry. |
|
351 |
//! 4. Call RFs::Entry() to obtain data for TEntry object where name is "Test1.txt". |
|
352 |
//! 5. Call IsReadOnly(), and check that the attribute is set. |
|
353 |
//! 6. Call RFs::SetAtt() and pass KEntryAttReadOnly as attribute for clear and "Test1.txt" as name of entry. |
|
354 |
//! 7. Call RFs::Entry() to obtain data for TEntry object where name is "Test1.txt". |
|
355 |
//! 8. Call IsReadOnly(), and check that the attribute is not set. |
|
356 |
//! |
|
357 |
//! @SYMTestStatus Implemented |
|
358 |
//! @SYMTestPriority Critical |
|
359 |
//! @SYMTestExpectedResults IsReadonly() returns expected result successfuly. |
|
360 |
//! @SYMTestType CIT |
|
361 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
362 |
CREATE_OBJECT RFs RFs1 |
|
363 |
CREATE_OBJECT CFileMan CFileMan1 |
|
364 |
COMMAND RFs1 new |
|
365 |
COMMAND RFs1 Connect |
|
366 |
COMMAND RFs1 MkDirAll PBASE-F32-Entry-PublicApi-0008-001-MkDirAll_command004 |
|
367 |
COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0008-001-NewL_command005 |
|
368 |
COMMAND CFileMan1 Copy PBASE-F32-Entry-PublicApi-0008-001-Copy_command006 |
|
369 |
COMMAND CFileMan1 ~ |
|
370 |
COMMAND RFs1 ~ |
|
371 |
END_TEST_BLOCK |
|
372 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
373 |
CREATE_OBJECT RFs RFs1 |
|
374 |
CREATE_OBJECT TEntry TEntry1 |
|
375 |
COMMAND RFs1 new |
|
376 |
COMMAND RFs1 Connect |
|
377 |
COMMAND RFs1 SetAtt PBASE-F32-Entry-PublicApi-0008-002-SetAtt_command005 |
|
378 |
COMMAND TEntry1 new |
|
379 |
COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0008-002-Entry_command007 |
|
380 |
COMMAND TEntry1 IsReadOnly PBASE-F32-Entry-PublicApi-0008-002-IsReadOnly_command008 |
|
381 |
COMMAND RFs1 SetAtt PBASE-F32-Entry-PublicApi-0008-002-SetAtt_command009 |
|
382 |
COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0008-002-Entry_command010 |
|
383 |
COMMAND TEntry1 IsReadOnly PBASE-F32-Entry-PublicApi-0008-002-IsReadOnly_command011 |
|
384 |
COMMAND TEntry1 ~ |
|
385 |
COMMAND RFs1 ~ |
|
386 |
END_TEST_BLOCK |
|
387 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
388 |
CREATE_OBJECT RFs RFs1 |
|
389 |
CREATE_OBJECT CFileMan CFileMan1 |
|
390 |
COMMAND RFs1 new |
|
391 |
COMMAND RFs1 Connect |
|
392 |
COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0008-003-NewL_command004 |
|
393 |
COMMAND CFileMan1 Delete PBASE-F32-Entry-PublicApi-0008-003-Delete_command005 |
|
394 |
COMMAND RFs1 RmDir PBASE-F32-Entry-PublicApi-0008-003-RmDir_command006 |
|
395 |
COMMAND CFileMan1 ~ |
|
396 |
COMMAND RFs1 ~ |
|
397 |
END_TEST_BLOCK |
|
398 |
END_TESTCASE PBASE-F32-Entry-PublicApi-0008 |
|
399 |
||
400 |
||
401 |
START_TESTCASE PBASE-F32-Entry-PublicApi-0009 |
|
402 |
//! @SYMTestCaseID PBASE-F32-Entry-PublicApi-0009 |
|
403 |
//! @SYMAPI TEntry |
|
404 |
//! @SYMTestCaseDesc IsHidden() test. This tests if the function is able to identify the presence of Hidden attribute. |
|
405 |
//! Uses API elements: IsHidden(), RFs:SetAtt() |
|
406 |
//! @SYMTestActions 1. Create RFs object |
|
407 |
//! 2. Create TEntry object |
|
408 |
//! 3. Call RFs::SetAtt() and pass KEntryAttHidden as attribute and "Test1.txt" as name of entry. |
|
409 |
//! 4. Call RFs::Entry() to obtain data for TEntry object where name is "Test1.txt". |
|
410 |
//! 5. Call IsHidden(), and check that the attribute is set. |
|
411 |
//! 6. Call RFs::SetAtt() and pass KEntryAttHidden as attribute for clear and "Test1.txt" as name of entry. |
|
412 |
//! 7. Call RFs::Entry() to obtain data for TEntry object where name is "Test1.txt". |
|
413 |
//! 8. Call IsHidden(), and check that the attribute is not set. |
|
414 |
//! |
|
415 |
//! |
|
416 |
//! @SYMTestStatus Implemented |
|
417 |
//! @SYMTestPriority Critical |
|
418 |
//! @SYMTestExpectedResults IsHidden() returns expected result successfuly. |
|
419 |
//! @SYMTestType CIT |
|
420 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
421 |
CREATE_OBJECT RFs RFs1 |
|
422 |
CREATE_OBJECT CFileMan CFileMan1 |
|
423 |
COMMAND RFs1 new |
|
424 |
COMMAND RFs1 Connect |
|
425 |
COMMAND RFs1 MkDirAll PBASE-F32-Entry-PublicApi-0009-001-MkDirAll_command004 |
|
426 |
COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0009-001-NewL_command005 |
|
427 |
COMMAND CFileMan1 Copy PBASE-F32-Entry-PublicApi-0009-001-Copy_command006 |
|
428 |
COMMAND CFileMan1 ~ |
|
429 |
COMMAND RFs1 ~ |
|
430 |
END_TEST_BLOCK |
|
431 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
432 |
CREATE_OBJECT RFs RFs1 |
|
433 |
CREATE_OBJECT TEntry TEntry1 |
|
434 |
COMMAND RFs1 new |
|
435 |
COMMAND RFs1 Connect |
|
436 |
COMMAND RFs1 SetAtt PBASE-F32-Entry-PublicApi-0009-002-SetAtt_command005 |
|
437 |
COMMAND TEntry1 new |
|
438 |
COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0009-002-Entry_command007 |
|
439 |
COMMAND TEntry1 IsHidden PBASE-F32-Entry-PublicApi-0009-002-IsHidden_command008 |
|
440 |
COMMAND RFs1 SetAtt PBASE-F32-Entry-PublicApi-0009-002-SetAtt_command009 |
|
441 |
COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0009-002-Entry_command010 |
|
442 |
COMMAND TEntry1 IsHidden PBASE-F32-Entry-PublicApi-0009-002-IsHidden_command011 |
|
443 |
COMMAND TEntry1 ~ |
|
444 |
COMMAND RFs1 ~ |
|
445 |
END_TEST_BLOCK |
|
446 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
447 |
CREATE_OBJECT RFs RFs1 |
|
448 |
CREATE_OBJECT CFileMan CFileMan1 |
|
449 |
COMMAND RFs1 new |
|
450 |
COMMAND RFs1 Connect |
|
451 |
COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0009-003-NewL_command004 |
|
452 |
COMMAND CFileMan1 Delete PBASE-F32-Entry-PublicApi-0009-003-Delete_command005 |
|
453 |
COMMAND RFs1 RmDir PBASE-F32-Entry-PublicApi-0009-003-RmDir_command006 |
|
454 |
COMMAND CFileMan1 ~ |
|
455 |
COMMAND RFs1 ~ |
|
456 |
END_TEST_BLOCK |
|
457 |
END_TESTCASE PBASE-F32-Entry-PublicApi-0009 |
|
458 |
||
459 |
||
460 |
START_TESTCASE PBASE-F32-Entry-PublicApi-0010 |
|
461 |
//! @SYMTestCaseID PBASE-F32-Entry-PublicApi-0010 |
|
462 |
//! @SYMAPI TEntry |
|
463 |
//! @SYMTestCaseDesc IsSystem() test. This tests if the function is able to identify the presence of System attribute. |
|
464 |
//! Uses API elements: IsSystem(), RFs:SetAtt() |
|
465 |
//! @SYMTestActions 1. Create RFs object |
|
466 |
//! 2. Create TEntry object |
|
467 |
//! 3. Call RFs::SetAtt() and pass KEntryAttSystem as attribute and "Test1.txt" as name of entry. |
|
468 |
//! 4. Call RFs::Entry() to obtain data for TEntry object where name is "Test1.txt". |
|
469 |
//! 5. Call IsSystem(), and check that the attribute is set. |
|
470 |
//! 6. Call RFs::SetAtt() and pass KEntryAttSystem as attribute for clear and "Test1.txt" as name of entry. |
|
471 |
//! 7. Call RFs::Entry() to obtain data for TEntry object where name is "Test1.txt". |
|
472 |
//! 8. Call IsSystem(), and check that the attribute is not set. |
|
473 |
//! |
|
474 |
//! @SYMTestStatus Implemented |
|
475 |
//! @SYMTestPriority Critical |
|
476 |
//! @SYMTestExpectedResults IsSystem() returns expected result successfuly. |
|
477 |
//! @SYMTestType CIT |
|
478 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
479 |
CREATE_OBJECT RFs RFs1 |
|
480 |
CREATE_OBJECT CFileMan CFileMan1 |
|
481 |
COMMAND RFs1 new |
|
482 |
COMMAND RFs1 Connect |
|
483 |
COMMAND RFs1 MkDirAll PBASE-F32-Entry-PublicApi-0010-001-MkDirAll_command004 |
|
484 |
COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0010-001-NewL_command005 |
|
485 |
COMMAND CFileMan1 Copy PBASE-F32-Entry-PublicApi-0010-001-Copy_command006 |
|
486 |
COMMAND CFileMan1 ~ |
|
487 |
COMMAND RFs1 ~ |
|
488 |
END_TEST_BLOCK |
|
489 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
490 |
CREATE_OBJECT RFs RFs1 |
|
491 |
CREATE_OBJECT TEntry TEntry1 |
|
492 |
COMMAND RFs1 new |
|
493 |
COMMAND RFs1 Connect |
|
494 |
COMMAND RFs1 SetAtt PBASE-F32-Entry-PublicApi-0010-002-SetAtt_command005 |
|
495 |
COMMAND TEntry1 new |
|
496 |
COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0010-002-Entry_command007 |
|
497 |
COMMAND TEntry1 IsSystem PBASE-F32-Entry-PublicApi-0010-002-IsSystem_command008 |
|
498 |
COMMAND RFs1 SetAtt PBASE-F32-Entry-PublicApi-0010-002-SetAtt_command009 |
|
499 |
COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0010-002-Entry_command010 |
|
500 |
COMMAND TEntry1 IsSystem PBASE-F32-Entry-PublicApi-0010-002-IsSystem_command011 |
|
501 |
COMMAND TEntry1 ~ |
|
502 |
COMMAND RFs1 ~ |
|
503 |
END_TEST_BLOCK |
|
504 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
505 |
CREATE_OBJECT RFs RFs1 |
|
506 |
CREATE_OBJECT CFileMan CFileMan1 |
|
507 |
COMMAND RFs1 new |
|
508 |
COMMAND RFs1 Connect |
|
509 |
COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0010-003-NewL_command004 |
|
510 |
COMMAND CFileMan1 Delete PBASE-F32-Entry-PublicApi-0010-003-Delete_command005 |
|
511 |
COMMAND RFs1 RmDir PBASE-F32-Entry-PublicApi-0010-003-RmDir_command006 |
|
512 |
COMMAND CFileMan1 ~ |
|
513 |
COMMAND RFs1 ~ |
|
514 |
END_TEST_BLOCK |
|
515 |
END_TESTCASE PBASE-F32-Entry-PublicApi-0010 |
|
516 |
||
517 |
||
518 |
START_TESTCASE PBASE-F32-Entry-PublicApi-0011 |
|
519 |
//! @SYMTestCaseID PBASE-F32-Entry-PublicApi-0011 |
|
520 |
//! @SYMAPI TEntry |
|
521 |
//! @SYMTestCaseDesc IsArchive() test. This tests if the function is able to identify the presence of Archive attribute. |
|
522 |
//! Uses API elements: IsArchive(), RFs:SetAtt() |
|
523 |
//! @SYMTestActions 1. Create RFs object |
|
524 |
//! 2. Create TEntry object |
|
525 |
//! 3. Call RFs::SetAtt() and pass KEntryAttArchive as attribute and "Test1.txt" as name of entry. |
|
526 |
//! 4. Call RFs::Entry() to obtain data for TEntry object where name is "Test1.txt". |
|
527 |
//! 5. Call IsArchive(), and check that the attribute is set. |
|
528 |
//! 6. Call RFs::SetAtt() and pass KEntryAttArchive as attribute for clear and "test.txt" as name of entry. |
|
529 |
//! 7. Call RFs::Entry() to obtain data for TEntry object where name is "Test1.txt". |
|
530 |
//! 8. Call IsArchive(), and check that the attribute is not set. |
|
531 |
//! |
|
532 |
//! @SYMTestStatus Implemented |
|
533 |
//! @SYMTestPriority Critical |
|
534 |
//! @SYMTestExpectedResults IsArchive() returns ETrue. |
|
535 |
//! @SYMTestType CIT |
|
536 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
537 |
CREATE_OBJECT RFs RFs1 |
|
538 |
CREATE_OBJECT CFileMan CFileMan1 |
|
539 |
COMMAND RFs1 new |
|
540 |
COMMAND RFs1 Connect |
|
541 |
COMMAND RFs1 MkDirAll PBASE-F32-Entry-PublicApi-0011-001-MkDirAll_command004 |
|
542 |
COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0011-001-NewL_command005 |
|
543 |
COMMAND CFileMan1 Copy PBASE-F32-Entry-PublicApi-0011-001-Copy_command006 |
|
544 |
COMMAND CFileMan1 ~ |
|
545 |
COMMAND RFs1 ~ |
|
546 |
END_TEST_BLOCK |
|
547 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
548 |
CREATE_OBJECT RFs RFs1 |
|
549 |
CREATE_OBJECT TEntry TEntry1 |
|
550 |
COMMAND RFs1 new |
|
551 |
COMMAND RFs1 Connect |
|
552 |
COMMAND RFs1 SetAtt PBASE-F32-Entry-PublicApi-0011-002-SetAtt_command005 |
|
553 |
COMMAND TEntry1 new |
|
554 |
COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0011-002-Entry_command007 |
|
555 |
COMMAND TEntry1 IsArchive PBASE-F32-Entry-PublicApi-0011-002-IsArchive_command008 |
|
556 |
COMMAND RFs1 SetAtt PBASE-F32-Entry-PublicApi-0011-002-SetAtt_command009 |
|
557 |
COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0011-002-Entry_command010 |
|
558 |
COMMAND TEntry1 IsArchive PBASE-F32-Entry-PublicApi-0011-002-IsArchive_command011 |
|
559 |
COMMAND TEntry1 ~ |
|
560 |
COMMAND RFs1 ~ |
|
561 |
END_TEST_BLOCK |
|
562 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
563 |
CREATE_OBJECT RFs RFs1 |
|
564 |
CREATE_OBJECT CFileMan CFileMan1 |
|
565 |
COMMAND RFs1 new |
|
566 |
COMMAND RFs1 Connect |
|
567 |
COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0011-003-NewL_command004 |
|
568 |
COMMAND CFileMan1 Delete PBASE-F32-Entry-PublicApi-0011-003-Delete_command005 |
|
569 |
COMMAND RFs1 RmDir PBASE-F32-Entry-PublicApi-0011-003-RmDir_command006 |
|
570 |
COMMAND CFileMan1 ~ |
|
571 |
COMMAND RFs1 ~ |
|
572 |
END_TEST_BLOCK |
|
573 |
END_TESTCASE PBASE-F32-Entry-PublicApi-0011 |
|
574 |
||
575 |
||
576 |
||
577 |
START_TESTCASE PBASE-F32-Entry-PublicApi-0012 |
|
578 |
//! @SYMTestCaseID PBASE-F32-Entry-PublicApi-0012 |
|
579 |
//! @SYMAPI TEntry |
|
580 |
//! @SYMTestCaseDesc IsDir() test. This tests if the function is able to indentify the presence of Dir attribute. |
|
581 |
//! Uses API elements: IsDir(), RFs:SetAtt() |
|
582 |
//! @SYMTestActions 1. Create RFs object |
|
583 |
//! 2. Create TEntry object |
|
584 |
//! 3. Call RFs::MkDirAll() and pass "test\" as name of directory. |
|
585 |
//! 4. Call RFs::Entry() to obtain data for TEntry object where name is "test". |
|
586 |
//! 5. Call IsDir(), and check that the attribute is set. |
|
587 |
//! 6. Call RFs::Entry() to obtain data for TEntry object where name is "Test1.txt". |
|
588 |
//! 7. Call IsDir(), and check that the attribute is not set. |
|
589 |
//! |
|
590 |
//! @SYMTestStatus Implemented |
|
591 |
//! @SYMTestPriority Critical |
|
592 |
//! @SYMTestExpectedResults IsDir() returns ETrue. |
|
593 |
//! @SYMTestType CIT |
|
594 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
595 |
CREATE_OBJECT RFs RFs1 |
|
596 |
CREATE_OBJECT CFileMan CFileMan1 |
|
597 |
COMMAND RFs1 new |
|
598 |
COMMAND RFs1 Connect |
|
599 |
COMMAND RFs1 MkDirAll PBASE-F32-Entry-PublicApi-0012-001-MkDirAll_command004 |
|
600 |
COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0012-001-NewL_command005 |
|
601 |
COMMAND CFileMan1 Copy PBASE-F32-Entry-PublicApi-0012-001-Copy_command006 |
|
602 |
COMMAND CFileMan1 ~ |
|
603 |
COMMAND RFs1 ~ |
|
604 |
END_TEST_BLOCK |
|
605 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
606 |
CREATE_OBJECT RFs RFs1 |
|
607 |
CREATE_OBJECT TEntry TEntry1 |
|
608 |
COMMAND RFs1 new |
|
609 |
COMMAND RFs1 Connect |
|
610 |
COMMAND RFs1 MkDirAll PBASE-F32-Entry-PublicApi-0012-002-MkDirAll_command005 |
|
611 |
COMMAND TEntry1 new |
|
612 |
COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0012-002-Entry_command007 |
|
613 |
COMMAND TEntry1 IsDir PBASE-F32-Entry-PublicApi-0012-002-IsDir_command008 |
|
614 |
COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0012-002-Entry_command009 |
|
615 |
COMMAND TEntry1 IsDir PBASE-F32-Entry-PublicApi-0012-002-IsDir_command010 |
|
616 |
COMMAND TEntry1 ~ |
|
617 |
COMMAND RFs1 RmDir PBASE-F32-Entry-PublicApi-0012-002-RmDir_command012 |
|
618 |
COMMAND RFs1 ~ |
|
619 |
END_TEST_BLOCK |
|
620 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
621 |
CREATE_OBJECT RFs RFs1 |
|
622 |
CREATE_OBJECT CFileMan CFileMan1 |
|
623 |
COMMAND RFs1 new |
|
624 |
COMMAND RFs1 Connect |
|
625 |
COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0012-003-NewL_command004 |
|
626 |
COMMAND CFileMan1 Delete PBASE-F32-Entry-PublicApi-0012-003-Delete_command005 |
|
627 |
COMMAND RFs1 RmDir PBASE-F32-Entry-PublicApi-0012-003-RmDir_command006 |
|
628 |
COMMAND CFileMan1 ~ |
|
629 |
COMMAND RFs1 ~ |
|
630 |
END_TEST_BLOCK |
|
631 |
END_TESTCASE PBASE-F32-Entry-PublicApi-0012 |
|
632 |
||
633 |
||
634 |
||
635 |
START_TESTCASE PBASE-F32-Entry-PublicApi-0013 |
|
636 |
//! @SYMTestCaseID PBASE-F32-Entry-PublicApi-0013 |
|
637 |
//! @SYMAPI TEntry |
|
638 |
//! @SYMTestCaseDesc operator[] test where getting one index of UID. |
|
639 |
//! Uses API elements: operator[] |
|
640 |
//! @SYMTestActions 1. Create a TEntry object |
|
641 |
//! 2. Call RFs's command Entry() and pass "<RAM_DRIVE>:\<RELATIVE_PATH>\Entry\Test3.txt" as name of file. |
|
642 |
//! 3. Call operator[] and pass "UID1" as parameter. |
|
643 |
//! |
|
644 |
//! @SYMTestStatus Implemented |
|
645 |
//! @SYMTestPriority Critical |
|
646 |
//! @SYMTestExpectedResults operator[] returns no panic. |
|
647 |
//! @SYMTestType CIT |
|
648 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
649 |
CREATE_OBJECT RFs RFs1 |
|
650 |
CREATE_OBJECT CFileMan CFileMan1 |
|
651 |
COMMAND RFs1 new |
|
652 |
COMMAND RFs1 Connect |
|
653 |
COMMAND RFs1 MkDirAll PBASE-F32-Entry-PublicApi-0013-001-MkDirAll_command004 |
|
654 |
COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0013-001-NewL_command005 |
|
655 |
COMMAND CFileMan1 Copy PBASE-F32-Entry-PublicApi-0013-001-Copy_command006 |
|
656 |
COMMAND CFileMan1 ~ |
|
657 |
COMMAND RFs1 ~ |
|
658 |
END_TEST_BLOCK |
|
659 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
660 |
CREATE_OBJECT RFs RFs1 |
|
661 |
CREATE_OBJECT TEntry TEntry1 |
|
662 |
COMMAND RFs1 new |
|
663 |
COMMAND TEntry1 new |
|
664 |
COMMAND RFs1 Connect |
|
665 |
COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0013-002-Entry_command006 |
|
666 |
COMMAND TEntry1 [] PBASE-F32-Entry-PublicApi-0013-002-index_command007 |
|
667 |
COMMAND TEntry1 ~ |
|
668 |
END_TEST_BLOCK |
|
669 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini |
|
670 |
CREATE_OBJECT RFs RFs1 |
|
671 |
CREATE_OBJECT CFileMan CFileMan1 |
|
672 |
COMMAND RFs1 new |
|
673 |
COMMAND RFs1 Connect |
|
674 |
COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0013-003-NewL_command004 |
|
675 |
COMMAND CFileMan1 Delete PBASE-F32-Entry-PublicApi-0013-003-Delete_command005 |
|
676 |
COMMAND RFs1 RmDir PBASE-F32-Entry-PublicApi-0013-003-RmDir_command006 |
|
677 |
COMMAND CFileMan1 ~ |
|
678 |
COMMAND RFs1 ~ |
|
679 |
END_TEST_BLOCK |
|
680 |
END_TESTCASE PBASE-F32-Entry-PublicApi-0013 |