sl@0
|
1 |
//
|
sl@0
|
2 |
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
// All rights reserved.
|
sl@0
|
4 |
// This component and the accompanying materials are made available
|
sl@0
|
5 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
6 |
// which accompanies this distribution, and is available
|
sl@0
|
7 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
//
|
sl@0
|
9 |
// Initial Contributors:
|
sl@0
|
10 |
// Nokia Corporation - initial contribution.
|
sl@0
|
11 |
//
|
sl@0
|
12 |
// Contributors:
|
sl@0
|
13 |
//
|
sl@0
|
14 |
// Description:
|
sl@0
|
15 |
//
|
sl@0
|
16 |
//! @file
|
sl@0
|
17 |
//! @SYMTestSuiteName pbase-f32-sfsrv-publicapi-ram
|
sl@0
|
18 |
//! @SYMScriptTestEnvironment This test script requires a basic ROM.
|
sl@0
|
19 |
//! @SYMScriptAuthor Jaanus Randveer, Runno Sgirka
|
sl@0
|
20 |
//! @SYMScriptCreationDate 31/08/2007
|
sl@0
|
21 |
//! @SYMScriptDescription The test script contains API tests for the following functions of RDir class:
|
sl@0
|
22 |
//! TInt Open(RFs &aFs, const TDesC &aMatchName, const TUidType &aUidType)
|
sl@0
|
23 |
//! TInt Open(RFs &aFs, const TDesC &aMatchName, TUint anAttMask)
|
sl@0
|
24 |
//! void Close()
|
sl@0
|
25 |
//! TInt Read(TEntryArray &anArray)
|
sl@0
|
26 |
//! void Read(TEntryArray &anArray, TRequestStatus &aStatus)
|
sl@0
|
27 |
//! TInt Read(TEntry &anEntry)
|
sl@0
|
28 |
//! void Read(TPckg< TEntry > &anEntry, TRequestStatus &aStatus)
|
sl@0
|
29 |
|
sl@0
|
30 |
|
sl@0
|
31 |
LOAD_SUITE T_SfSrv
|
sl@0
|
32 |
DELAY 5000
|
sl@0
|
33 |
|
sl@0
|
34 |
|
sl@0
|
35 |
START_TESTCASE PBASE-F32-RDir-CopyFiles
|
sl@0
|
36 |
//! @SYMTestCaseID PBASE-F32-RDir-CopyFiles
|
sl@0
|
37 |
//! @SYMAPI CFileMan
|
sl@0
|
38 |
//! @SYMTestCaseDesc SetupTestCase to test RDir Apis
|
sl@0
|
39 |
//! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
|
sl@0
|
40 |
//! 2. Use CFileMan to copy the files on to relavent directories.
|
sl@0
|
41 |
//! @SYMTestStatus Implemented
|
sl@0
|
42 |
//! @SYMTestPriority Critical
|
sl@0
|
43 |
//! @SYMTestExpectedResults The CFileMan::Copy() copies the testdata files properly on to specific directories.
|
sl@0
|
44 |
//! @SYMTestType CIT
|
sl@0
|
45 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-RDir-PublicApi.ini
|
sl@0
|
46 |
CREATE_OBJECT RFs RFs1
|
sl@0
|
47 |
CREATE_OBJECT CFileMan CFileMan1
|
sl@0
|
48 |
COMMAND RFs1 new
|
sl@0
|
49 |
COMMAND RFs1 Connect
|
sl@0
|
50 |
COMMAND CFileMan1 NewL PBASE-F32-RDir-PublicApi-NewL
|
sl@0
|
51 |
COMMAND RFs1 MkDirAll PBASE-F32-RDir-PublicApi-001-RamDiskPath
|
sl@0
|
52 |
COMMAND CFileMan1 Copy PBASE-F32-RDir-PublicApi-001-Copy_Any
|
sl@0
|
53 |
COMMAND CFileMan1 Copy PBASE-F32-RDir-PublicApi-001-Copy_Bigline
|
sl@0
|
54 |
COMMAND CFileMan1 Copy PBASE-F32-RDir-PublicApi-001-Copy_FtEof
|
sl@0
|
55 |
COMMAND CFileMan1 Copy PBASE-F32-RDir-PublicApi-001-Copy_FtRead
|
sl@0
|
56 |
COMMAND CFileMan1 Copy PBASE-F32-RDir-PublicApi-001-Copy_MLine
|
sl@0
|
57 |
COMMAND CFileMan1 Copy PBASE-F32-RDir-PublicApi-001-Copy_NewFile
|
sl@0
|
58 |
COMMAND CFileMan1 Copy PBASE-F32-RDir-PublicApi-001-Copy_Oneliner
|
sl@0
|
59 |
COMMAND CFileMan1 Copy PBASE-F32-RDir-PublicApi-001-Copy_Test1
|
sl@0
|
60 |
COMMAND CFileMan1 Copy PBASE-F32-RDir-PublicApi-001-Copy_Test2
|
sl@0
|
61 |
COMMAND CFileMan1 Copy PBASE-F32-RDir-PublicApi-001-Copy_Test3
|
sl@0
|
62 |
COMMAND CFileMan1 Copy PBASE-F32-RDir-PublicApi-001-Copy_Test
|
sl@0
|
63 |
COMMAND CFileMan1 ~
|
sl@0
|
64 |
COMMAND RFs1 ~
|
sl@0
|
65 |
END_TEST_BLOCK
|
sl@0
|
66 |
END_TESTCASE PBASE-F32-RDir-CopyFiles
|
sl@0
|
67 |
|
sl@0
|
68 |
|
sl@0
|
69 |
|
sl@0
|
70 |
|
sl@0
|
71 |
|
sl@0
|
72 |
START_TESTCASE PBASE-F32-RDir-PublicApi-5001
|
sl@0
|
73 |
//! @SYMTestCaseID PBASE-F32-RDir-PublicApi-5001
|
sl@0
|
74 |
//! @SYMAPI RDir
|
sl@0
|
75 |
//! @SYMTestCaseDesc Function Open(RFs &aFs, const TDesC &aMatchName, const TUidType &aUidType) and
|
sl@0
|
76 |
//! function Close() test, that opens a directory using the NULL UIDs.
|
sl@0
|
77 |
//! Uses API elements: Open(), Close().
|
sl@0
|
78 |
//! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
|
sl@0
|
79 |
//! 2.Call RDir::Open(RFs &aFs, const TDesC &aMatchName, const TUidType &aUidType),
|
sl@0
|
80 |
//! and RFs session as first parameter, and <DRIVE>:\base\t_sfsrv\ as second parameter,
|
sl@0
|
81 |
//! and empty TUidType as third parameter.
|
sl@0
|
82 |
//! 3.Call RDir::Close().
|
sl@0
|
83 |
//! @SYMTestStatus Implemented
|
sl@0
|
84 |
//! @SYMTestPriority Critical
|
sl@0
|
85 |
//! @SYMTestExpectedResults The Open() method call is completed returning KErrNone.
|
sl@0
|
86 |
//! @SYMTestType CIT
|
sl@0
|
87 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-RDir-PublicApi.ini
|
sl@0
|
88 |
CREATE_OBJECT RFs RFs1
|
sl@0
|
89 |
CREATE_OBJECT RDir RDir1
|
sl@0
|
90 |
COMMAND RFs1 new
|
sl@0
|
91 |
COMMAND RFs1 Connect
|
sl@0
|
92 |
COMMAND RDir1 new
|
sl@0
|
93 |
COMMAND RDir1 Open PBASE-F32-RDir-PublicApi-5001-001-Open_command005
|
sl@0
|
94 |
COMMAND RDir1 Close
|
sl@0
|
95 |
COMMAND RDir1 ~
|
sl@0
|
96 |
COMMAND RFs1 ~
|
sl@0
|
97 |
END_TEST_BLOCK
|
sl@0
|
98 |
END_TESTCASE PBASE-F32-RDir-PublicApi-5001
|
sl@0
|
99 |
|
sl@0
|
100 |
|
sl@0
|
101 |
START_TESTCASE PBASE-F32-RDir-PublicApi-5002
|
sl@0
|
102 |
//! @SYMTestCaseID PBASE-F32-RDir-PublicApi-5002
|
sl@0
|
103 |
//! @SYMAPI RDir
|
sl@0
|
104 |
//! @SYMTestCaseDesc Function Open(RFs &aFs, const TDesC &aMatchName, TUint anAttMask) test, that opens a directory using
|
sl@0
|
105 |
//! an attribute bitmask to filter the directory entry types.
|
sl@0
|
106 |
//! Uses API elements: Open(), Close().
|
sl@0
|
107 |
//! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
|
sl@0
|
108 |
//! 2.Call RDir::Open(RFs &aFs, const TDesC &aMatchName, TUint anAttMask),
|
sl@0
|
109 |
//! and RFs session as first parameter, and <DRIVE>:\base\t_sfsrv\ as second parameter,
|
sl@0
|
110 |
//! and KEntryAttNormal as third parameter.
|
sl@0
|
111 |
//! 3.Call RDir::Close().
|
sl@0
|
112 |
//! @SYMTestStatus Implemented
|
sl@0
|
113 |
//! @SYMTestPriority Critical
|
sl@0
|
114 |
//! @SYMTestExpectedResults The Open() method call is completed returning KErrNone.
|
sl@0
|
115 |
//! @SYMTestType CIT
|
sl@0
|
116 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-RDir-PublicApi.ini
|
sl@0
|
117 |
CREATE_OBJECT RFs RFs1
|
sl@0
|
118 |
CREATE_OBJECT RDir RDir1
|
sl@0
|
119 |
COMMAND RFs1 new
|
sl@0
|
120 |
COMMAND RFs1 Connect
|
sl@0
|
121 |
COMMAND RDir1 new
|
sl@0
|
122 |
COMMAND RDir1 Open PBASE-F32-RDir-PublicApi-5002-001-Open_command005
|
sl@0
|
123 |
COMMAND RDir1 Close
|
sl@0
|
124 |
COMMAND RDir1 ~
|
sl@0
|
125 |
COMMAND RFs1 ~
|
sl@0
|
126 |
END_TEST_BLOCK
|
sl@0
|
127 |
END_TESTCASE PBASE-F32-RDir-PublicApi-5002
|
sl@0
|
128 |
|
sl@0
|
129 |
|
sl@0
|
130 |
START_TESTCASE PBASE-F32-RDir-PublicApi-5003
|
sl@0
|
131 |
//! @SYMTestCaseID PBASE-F32-RDir-PublicApi-5003
|
sl@0
|
132 |
//! @SYMAPI RDir
|
sl@0
|
133 |
//! @SYMTestCaseDesc Function Read(TEntryArray &anArray) test, that reads all filtered directory entries into the
|
sl@0
|
134 |
//! specified array synchronously.
|
sl@0
|
135 |
//! Uses API elements: Open(), Read(), Close().
|
sl@0
|
136 |
//! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
|
sl@0
|
137 |
//! 2.Call RDir::Open(RFs &aFs, const TDesC &aMatchName, TUint anAttMask),
|
sl@0
|
138 |
//! and RFs session as first parameter, and <DRIVE>:\base\t_sfsrv\ (containing 14 files: 1mb,
|
sl@0
|
139 |
//! any.txt, big_line.txt, filetext_eof.txt, filetext_read.txt, multiline.txt, new_file.txt,
|
sl@0
|
140 |
//! oneliner_tmp.txt, test_rom.txt, test.txt, Test1.txt, Test2.txt,
|
sl@0
|
141 |
//! Test3.txt, USBLOAD.ZIP) as second parameter, and KEntryAttNormal
|
sl@0
|
142 |
//! as third parameter.
|
sl@0
|
143 |
//! 3.Call RDir::Read(TEntryArray &anArray) to read all filtered directory entries into the
|
sl@0
|
144 |
//! specified array synchronously.
|
sl@0
|
145 |
//! 4.Call RDir::Close().
|
sl@0
|
146 |
//! @SYMTestStatus Implemented
|
sl@0
|
147 |
//! @SYMTestPriority Critical
|
sl@0
|
148 |
//! @SYMTestExpectedResults The Read() method call is completed returning KErrEof.
|
sl@0
|
149 |
//! @SYMTestType CIT
|
sl@0
|
150 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-RDir-PublicApi.ini
|
sl@0
|
151 |
CREATE_OBJECT RFs RFs1
|
sl@0
|
152 |
CREATE_OBJECT RDir RDir1
|
sl@0
|
153 |
CREATE_OBJECT TEntryArray TEntryArray1
|
sl@0
|
154 |
CREATE_OBJECT TEntry TEntry1
|
sl@0
|
155 |
COMMAND RFs1 new
|
sl@0
|
156 |
COMMAND RFs1 Connect
|
sl@0
|
157 |
COMMAND TEntryArray1 new
|
sl@0
|
158 |
COMMAND RDir1 new
|
sl@0
|
159 |
COMMAND RDir1 Open PBASE-F32-RDir-PublicApi-5003-001-Open_command005
|
sl@0
|
160 |
COMMAND !Error=-25 RDir1 Read PBASE-F32-RDir-PublicApi-5003-001-Read_command006
|
sl@0
|
161 |
COMMAND RDir1 Close
|
sl@0
|
162 |
COMMAND TEntry1 ~
|
sl@0
|
163 |
COMMAND TEntryArray1 ~
|
sl@0
|
164 |
COMMAND RDir1 ~
|
sl@0
|
165 |
COMMAND RFs1 ~
|
sl@0
|
166 |
END_TEST_BLOCK
|
sl@0
|
167 |
END_TESTCASE PBASE-F32-RDir-PublicApi-5003
|
sl@0
|
168 |
|
sl@0
|
169 |
|
sl@0
|
170 |
START_TESTCASE PBASE-F32-RDir-PublicApi-5004
|
sl@0
|
171 |
//! @SYMTestCaseID PBASE-F32-RDir-PublicApi-5004
|
sl@0
|
172 |
//! @SYMAPI RDir
|
sl@0
|
173 |
//! @SYMTestCaseDesc Function Read(TEntryArray &anArray, TRequestStatus &aStatus) test, that reads all filtered directory
|
sl@0
|
174 |
//! entries into the specified array asynchronously.
|
sl@0
|
175 |
//! Uses API elements: Open(), Read(), Close().
|
sl@0
|
176 |
//! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
|
sl@0
|
177 |
//! 2.Call RDir::Open(RFs &aFs, const TDesC &aMatchName, TUint anAttMask),
|
sl@0
|
178 |
//! and RFs session as first parameter, and <DRIVE>:\base\t_sfsrv\ (containing 14 files: 1mb,
|
sl@0
|
179 |
//! any.txt, big_line.txt, filetext_eof.txt, filetext_read.txt, multiline.txt, new_file.txt,
|
sl@0
|
180 |
//! oneliner_tmp.txt, test_rom.txt, test.txt, Test1.txt, Test2.txt,
|
sl@0
|
181 |
//! Test3.txt, USBLOAD.ZIP) as second parameter, and KEntryAttNormal
|
sl@0
|
182 |
//! as third parameter.
|
sl@0
|
183 |
//! 3.Call RDir::Read(TEntryArray &anArray, TRequestStatus &aStatus) to read all filtered directory
|
sl@0
|
184 |
//! entries into the specified array asynchronously.
|
sl@0
|
185 |
//! 4.Call RDir::Close().
|
sl@0
|
186 |
//! @SYMTestStatus Implemented
|
sl@0
|
187 |
//! @SYMTestPriority Critical
|
sl@0
|
188 |
//! @SYMTestExpectedResults The Read() method call is completed returning KErrEof.
|
sl@0
|
189 |
//! @SYMTestType CIT
|
sl@0
|
190 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-RDir-PublicApi.ini
|
sl@0
|
191 |
CREATE_OBJECT RFs RFs1
|
sl@0
|
192 |
CREATE_OBJECT RDir RDir1
|
sl@0
|
193 |
CREATE_OBJECT TEntryArray TEntryArray1
|
sl@0
|
194 |
CREATE_OBJECT TEntry TEntry1
|
sl@0
|
195 |
COMMAND RFs1 new
|
sl@0
|
196 |
COMMAND RFs1 Connect
|
sl@0
|
197 |
COMMAND TEntryArray1 new
|
sl@0
|
198 |
COMMAND RDir1 new
|
sl@0
|
199 |
COMMAND RDir1 Open PBASE-F32-RDir-PublicApi-5004-001-Open_command005
|
sl@0
|
200 |
COMMAND !AsyncError=-25 RDir1 Read PBASE-F32-RDir-PublicApi-5004-001-Read_command006
|
sl@0
|
201 |
OUTSTANDING
|
sl@0
|
202 |
COMMAND RDir1 Close
|
sl@0
|
203 |
COMMAND TEntry1 ~
|
sl@0
|
204 |
COMMAND TEntryArray1 ~
|
sl@0
|
205 |
COMMAND RDir1 ~
|
sl@0
|
206 |
COMMAND RFs1 ~
|
sl@0
|
207 |
END_TEST_BLOCK
|
sl@0
|
208 |
END_TESTCASE PBASE-F32-RDir-PublicApi-5004
|
sl@0
|
209 |
|
sl@0
|
210 |
|
sl@0
|
211 |
|
sl@0
|
212 |
START_TESTCASE PBASE-F32-RDir-PublicApi-5007
|
sl@0
|
213 |
//! @SYMTestCaseID PBASE-F32-RDir-PublicApi-5007
|
sl@0
|
214 |
//! @SYMAPI RDir
|
sl@0
|
215 |
//! @SYMTestCaseDesc Function Read(TEntry &anEntry) test, that calls multiple iterations of Read() and checks the values returned.
|
sl@0
|
216 |
//! Uses API elements: Open(), Read(), Close().
|
sl@0
|
217 |
//! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
|
sl@0
|
218 |
//! 2.Call RDir::Open(RFs &aFs, const TDesC &aMatchName, TUint anAttMask),
|
sl@0
|
219 |
//! and RFs session as first parameter, and <DRIVE>:\base\t_sfsrv\ (containing 14 files: 1mb,
|
sl@0
|
220 |
//! any.txt, big_line.txt, filetext_eof.txt, filetext_read.txt, multiline.txt, new_file.txt,
|
sl@0
|
221 |
//! oneliner_tmp.txt, test_rom.txt, test.txt, Test1.txt, Test2.txt,
|
sl@0
|
222 |
//! Test3.txt, USBLOAD.ZIP) as second parameter, and KEntryAttNormal
|
sl@0
|
223 |
//! as third parameter.
|
sl@0
|
224 |
//! 3.Call multiple RDir::Read(TEntry &anEntry) methods to read the contents of the entire directory.
|
sl@0
|
225 |
//! 4.Call RDir::Close().
|
sl@0
|
226 |
//! @SYMTestStatus Implemented
|
sl@0
|
227 |
//! @SYMTestPriority Critical
|
sl@0
|
228 |
//! @SYMTestExpectedResults The first six Read() method calls are completed returning KErrNone, the last returns error -25 (KErrEof) as there
|
sl@0
|
229 |
//! are no more entries. All verifications with expected values pass.
|
sl@0
|
230 |
//! @SYMTestType CIT
|
sl@0
|
231 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-RDir-PublicApi.ini
|
sl@0
|
232 |
CREATE_OBJECT RFs RFs1
|
sl@0
|
233 |
CREATE_OBJECT RDir RDir1
|
sl@0
|
234 |
CREATE_OBJECT TEntry TEntry1
|
sl@0
|
235 |
COMMAND RFs1 new
|
sl@0
|
236 |
COMMAND RFs1 Connect
|
sl@0
|
237 |
COMMAND RDir1 new
|
sl@0
|
238 |
COMMAND RDir1 Open PBASE-F32-RDir-PublicApi-5007-001-Open_command005
|
sl@0
|
239 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-5007-001-Read_command006
|
sl@0
|
240 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_sync
|
sl@0
|
241 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_sync
|
sl@0
|
242 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_sync
|
sl@0
|
243 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_sync
|
sl@0
|
244 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_sync
|
sl@0
|
245 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_sync
|
sl@0
|
246 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_sync
|
sl@0
|
247 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_sync
|
sl@0
|
248 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_sync
|
sl@0
|
249 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_sync
|
sl@0
|
250 |
COMMAND !Error=-25 RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_sync
|
sl@0
|
251 |
COMMAND RDir1 Close
|
sl@0
|
252 |
COMMAND TEntry1 ~
|
sl@0
|
253 |
COMMAND RDir1 ~
|
sl@0
|
254 |
COMMAND RFs1 ~
|
sl@0
|
255 |
END_TEST_BLOCK
|
sl@0
|
256 |
END_TESTCASE PBASE-F32-RDir-PublicApi-5007
|
sl@0
|
257 |
|
sl@0
|
258 |
|
sl@0
|
259 |
START_TESTCASE PBASE-F32-RDir-PublicApi-5008
|
sl@0
|
260 |
//! @SYMTestCaseID PBASE-F32-RDir-PublicApi-5008
|
sl@0
|
261 |
//! @SYMAPI RDir
|
sl@0
|
262 |
//! @SYMTestCaseDesc Function Read(TPckg<TEntry> &anEntry, TRequestStatus &aStatus) test, that calls multiple iterations of Read() and
|
sl@0
|
263 |
//! checks the values returned.
|
sl@0
|
264 |
//! Uses API elements: Open(), Read(), Close().
|
sl@0
|
265 |
//! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
|
sl@0
|
266 |
//! 2.Call RDir::Open(RFs &aFs, const TDesC &aMatchName, TUint anAttMask),
|
sl@0
|
267 |
//! and RFs session as first parameter, and <DRIVE>:\base\t_sfsrv\ (containing 14 files: 1mb,
|
sl@0
|
268 |
//! any.txt, big_line.txt, filetext_eof.txt, filetext_read.txt, multiline.txt, new_file.txt,
|
sl@0
|
269 |
//! oneliner_tmp.txt, test_rom.txt, test.txt, Test1.txt, Test2.txt,
|
sl@0
|
270 |
//! Test3.txt, USBLOAD.ZIP) as second parameter, and KEntryAttNormal
|
sl@0
|
271 |
//! as third parameter.
|
sl@0
|
272 |
//! 3.Call multiple RDir::Read(TPckg<TEntry> &anEntry, TRequestStatus &aStatus) methods to read the contents of the
|
sl@0
|
273 |
//! entire directory asynchronously.
|
sl@0
|
274 |
//! 4.Call RDir::Close().
|
sl@0
|
275 |
//! @SYMTestStatus Implemented
|
sl@0
|
276 |
//! @SYMTestPriority Critical
|
sl@0
|
277 |
//! @SYMTestExpectedResults The first six Read() method calls are completed returning KErrNone, the last returns error -25 (KErrEof) as there
|
sl@0
|
278 |
//! are no more entries. All verifications with expected values pass.
|
sl@0
|
279 |
//! @SYMTestType CIT
|
sl@0
|
280 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-RDir-PublicApi.ini
|
sl@0
|
281 |
CREATE_OBJECT RFs RFs1
|
sl@0
|
282 |
CREATE_OBJECT RDir RDir1
|
sl@0
|
283 |
CREATE_OBJECT TEntry TEntry1
|
sl@0
|
284 |
COMMAND RFs1 new
|
sl@0
|
285 |
COMMAND RFs1 Connect
|
sl@0
|
286 |
COMMAND RDir1 new
|
sl@0
|
287 |
COMMAND RDir1 Open PBASE-F32-RDir-PublicApi-5008-001-Open_command005
|
sl@0
|
288 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-5008-001-Read_command006
|
sl@0
|
289 |
OUTSTANDING
|
sl@0
|
290 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_async
|
sl@0
|
291 |
OUTSTANDING
|
sl@0
|
292 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_async
|
sl@0
|
293 |
OUTSTANDING
|
sl@0
|
294 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_async
|
sl@0
|
295 |
OUTSTANDING
|
sl@0
|
296 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_async
|
sl@0
|
297 |
OUTSTANDING
|
sl@0
|
298 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_async
|
sl@0
|
299 |
OUTSTANDING
|
sl@0
|
300 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_async
|
sl@0
|
301 |
OUTSTANDING
|
sl@0
|
302 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_async
|
sl@0
|
303 |
OUTSTANDING
|
sl@0
|
304 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_async
|
sl@0
|
305 |
OUTSTANDING
|
sl@0
|
306 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_async
|
sl@0
|
307 |
OUTSTANDING
|
sl@0
|
308 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_async
|
sl@0
|
309 |
OUTSTANDING
|
sl@0
|
310 |
COMMAND !AsyncError=-25 RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_async
|
sl@0
|
311 |
OUTSTANDING
|
sl@0
|
312 |
COMMAND RDir1 Close
|
sl@0
|
313 |
COMMAND TEntry1 ~
|
sl@0
|
314 |
COMMAND RDir1 ~
|
sl@0
|
315 |
COMMAND RFs1 ~
|
sl@0
|
316 |
END_TEST_BLOCK
|
sl@0
|
317 |
END_TESTCASE PBASE-F32-RDir-PublicApi-5008
|
sl@0
|
318 |
|
sl@0
|
319 |
|
sl@0
|
320 |
START_TESTCASE PBASE-F32-RDir-PublicApi-5009
|
sl@0
|
321 |
//! @SYMTestCaseID PBASE-F32-RDir-PublicApi-5009
|
sl@0
|
322 |
//! @SYMAPI RDir
|
sl@0
|
323 |
//! @SYMTestCaseDesc Function Open(RFs &aFs, const TDesC &aMatchName, TUint anAttMask) test, that checks that Open() makes it
|
sl@0
|
324 |
//! possible to filter entries by attributes.
|
sl@0
|
325 |
//! Uses API elements: Open(), Read(), Close().
|
sl@0
|
326 |
//! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
|
sl@0
|
327 |
//! 2.Call RFs::setAtt, to set some attributes of the files in <DRIVE>:\base\t_sfsrv\.
|
sl@0
|
328 |
//! 3.Call RDir::Open(RFs &aFs, const TDesC &aMatchName, TUint anAttMask),
|
sl@0
|
329 |
//! and RFs session as first parameter, and <DRIVE>:\base\t_sfsrv\ (containing 14 files: 1mb,
|
sl@0
|
330 |
//! any.txt, big_line.txt, filetext_eof.txt, filetext_read.txt, multiline.txt, new_file.txt,
|
sl@0
|
331 |
//! oneliner_tmp.txt, test_rom.txt, test.txt, Test1.txt, Test2.txt,
|
sl@0
|
332 |
//! Test3.txt, USBLOAD.ZIP) as second parameter, and
|
sl@0
|
333 |
//! KEntryAttReadOnly|KEntryAttMatchExclusive as third parameter.
|
sl@0
|
334 |
//! 4.Call multiple RDir::Read(TEntry &anEntry) methods to read the contents of the entire directory.
|
sl@0
|
335 |
//! 5.Set previously set attributes back to normal.
|
sl@0
|
336 |
//! 6.Call RDir::Close().
|
sl@0
|
337 |
//! @SYMTestStatus Implemented
|
sl@0
|
338 |
//! @SYMTestPriority Critical
|
sl@0
|
339 |
//! @SYMTestExpectedResults The first two Read() method calls are completed returning KErrNone, the last returns error -25 (KErrEof) as there
|
sl@0
|
340 |
//! are no more entries (only two read-only files - Test2.txt and USBLOAD.ZIP). All verifications with expected values
|
sl@0
|
341 |
//! pass.
|
sl@0
|
342 |
//! @SYMTestType CIT
|
sl@0
|
343 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-RDir-PublicApi.ini
|
sl@0
|
344 |
CREATE_OBJECT RFs RFs1
|
sl@0
|
345 |
CREATE_OBJECT RDir RDir1
|
sl@0
|
346 |
CREATE_OBJECT TEntry TEntry1
|
sl@0
|
347 |
COMMAND RFs1 new
|
sl@0
|
348 |
COMMAND RFs1 Connect
|
sl@0
|
349 |
COMMAND RFs1 SetAtt PBASE-F32-RDir-PublicApi-5009-001-SetAtt_command005
|
sl@0
|
350 |
COMMAND RFs1 SetAtt PBASE-F32-RDir-PublicApi-5009-001-SetAtt_command006
|
sl@0
|
351 |
COMMAND RFs1 SetAtt PBASE-F32-RDir-PublicApi-5009-001-SetAtt_command008
|
sl@0
|
352 |
COMMAND RFs1 SetAtt PBASE-F32-RDir-PublicApi-5009-001-SetAtt_command009
|
sl@0
|
353 |
COMMAND RFs1 SetAtt PBASE-F32-RDir-PublicApi-5009-001-SetAtt_command010
|
sl@0
|
354 |
COMMAND RFs1 SetAtt PBASE-F32-RDir-PublicApi-5009-001-SetAtt_command011
|
sl@0
|
355 |
COMMAND RFs1 SetAtt PBASE-F32-RDir-PublicApi-5009-001-SetAtt_command012
|
sl@0
|
356 |
COMMAND RFs1 SetAtt PBASE-F32-RDir-PublicApi-5009-001-SetAtt_command013
|
sl@0
|
357 |
COMMAND RFs1 SetAtt PBASE-F32-RDir-PublicApi-5009-001-SetAtt_command014
|
sl@0
|
358 |
COMMAND RFs1 SetAtt PBASE-F32-RDir-PublicApi-5009-001-SetAtt_command016
|
sl@0
|
359 |
COMMAND RFs1 SetAtt PBASE-F32-RDir-PublicApi-5009-001-SetAtt_command020
|
sl@0
|
360 |
COMMAND RFs1 SetAtt PBASE-F32-RDir-PublicApi-5009-001-SetAtt_command021
|
sl@0
|
361 |
COMMAND RFs1 SetAtt PBASE-F32-RDir-PublicApi-5009-001-SetAtt_command015
|
sl@0
|
362 |
COMMAND RDir1 new
|
sl@0
|
363 |
COMMAND RDir1 Open PBASE-F32-RDir-PublicApi-5009-001-Open_command013
|
sl@0
|
364 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-5009-001-Read_command014
|
sl@0
|
365 |
COMMAND TEntry1 = PBASE-F32-RDir-PublicApi-global-001-assign_Test1
|
sl@0
|
366 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-5009-001-Read_command015
|
sl@0
|
367 |
COMMAND TEntry1 = PBASE-F32-RDir-PublicApi-global-001-assign_Test3
|
sl@0
|
368 |
COMMAND !Error=-25 RDir1 Read PBASE-F32-RDir-PublicApi-5009-001-Read_command016
|
sl@0
|
369 |
COMMAND TEntry1 = PBASE-F32-RDir-PublicApi-global-001-assign_EOF
|
sl@0
|
370 |
COMMAND RFs1 SetAtt PBASE-F32-RDir-PublicApi-5009-001-SetAtt_command017
|
sl@0
|
371 |
COMMAND RFs1 SetAtt PBASE-F32-RDir-PublicApi-5009-001-SetAtt_command019
|
sl@0
|
372 |
COMMAND RDir1 Close
|
sl@0
|
373 |
COMMAND TEntry1 ~
|
sl@0
|
374 |
COMMAND RDir1 ~
|
sl@0
|
375 |
COMMAND RFs1 ~
|
sl@0
|
376 |
END_TEST_BLOCK
|
sl@0
|
377 |
END_TESTCASE PBASE-F32-RDir-PublicApi-5009
|
sl@0
|
378 |
|
sl@0
|
379 |
|
sl@0
|
380 |
START_TESTCASE PBASE-F32-RDir-PublicApi-5010
|
sl@0
|
381 |
//! @SYMTestCaseID PBASE-F32-RDir-PublicApi-5010
|
sl@0
|
382 |
//! @SYMAPI RDir
|
sl@0
|
383 |
//! @SYMTestCaseDesc Function Open(RFs &aFs, const TDesC &aMatchName, const TUidType &aUidType) test, that checks that Open() works fine
|
sl@0
|
384 |
//! with * wildcard.
|
sl@0
|
385 |
//! Uses API elements: Open(), Read(), Close().
|
sl@0
|
386 |
//! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
|
sl@0
|
387 |
//! 2.Call RDir::Open(RFs &aFs, const TDesC &aMatchName, const TUidType &aUidType),
|
sl@0
|
388 |
//! and RFs session as first parameter, and <DRIVE>:\base\t_sfsrv\ (containing 14 files: 1mb,
|
sl@0
|
389 |
//! any.txt, big_line.txt, filetext_eof.txt, filetext_read.txt, multiline.txt, new_file.txt,
|
sl@0
|
390 |
//! oneliner_tmp.txt, test_rom.txt, test.txt, Test1.txt, Test2.txt,
|
sl@0
|
391 |
//! Test3.txt, USBLOAD.ZIP) as second parameter, and empty TUidType as
|
sl@0
|
392 |
//! third parameter.
|
sl@0
|
393 |
//! 3.Call RDir::Read(TEntry &anEntry) to read a single directory entry synchronously.
|
sl@0
|
394 |
//! 4.Call RDir::Close().
|
sl@0
|
395 |
//! @SYMTestStatus Implemented
|
sl@0
|
396 |
//! @SYMTestPriority Critical
|
sl@0
|
397 |
//! @SYMTestExpectedResults The Open() method call is completed returning KErrNone. The last Read() method call returns KErrEof as there are
|
sl@0
|
398 |
//! only 5 *.txt files (test.txt, Test1.txt, Test2.txt, Test3.txt, test_rom.txt). All other verifications pass.
|
sl@0
|
399 |
//! @SYMTestType CIT
|
sl@0
|
400 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-RDir-PublicApi.ini
|
sl@0
|
401 |
CREATE_OBJECT RFs RFs1
|
sl@0
|
402 |
CREATE_OBJECT RDir RDir1
|
sl@0
|
403 |
CREATE_OBJECT TEntry TEntry1
|
sl@0
|
404 |
COMMAND RFs1 new
|
sl@0
|
405 |
COMMAND RFs1 Connect
|
sl@0
|
406 |
COMMAND RDir1 new
|
sl@0
|
407 |
COMMAND RDir1 Open PBASE-F32-RDir-PublicApi-5010-001-Open_command005
|
sl@0
|
408 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-5010-001-Read_command007
|
sl@0
|
409 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_sync
|
sl@0
|
410 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_sync
|
sl@0
|
411 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_sync
|
sl@0
|
412 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_sync
|
sl@0
|
413 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_sync
|
sl@0
|
414 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_sync
|
sl@0
|
415 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_sync
|
sl@0
|
416 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_sync
|
sl@0
|
417 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_sync
|
sl@0
|
418 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_sync
|
sl@0
|
419 |
COMMAND !Error=-25 RDir1 Read PBASE-F32-RDir-PublicApi-global-001-Read_compare_sync
|
sl@0
|
420 |
COMMAND RDir1 Close
|
sl@0
|
421 |
COMMAND TEntry1 ~
|
sl@0
|
422 |
COMMAND RDir1 ~
|
sl@0
|
423 |
COMMAND RFs1 ~
|
sl@0
|
424 |
END_TEST_BLOCK
|
sl@0
|
425 |
END_TESTCASE PBASE-F32-RDir-PublicApi-5010
|
sl@0
|
426 |
|
sl@0
|
427 |
|
sl@0
|
428 |
START_TESTCASE PBASE-F32-RDir-PublicApi-5011
|
sl@0
|
429 |
//! @SYMTestCaseID PBASE-F32-RDir-PublicApi-5011
|
sl@0
|
430 |
//! @SYMAPI RDir
|
sl@0
|
431 |
//! @SYMTestCaseDesc Function Open(RFs &aFs, const TDesC &aMatchName, TUint anAttMask) test, that checks that Open() works fine
|
sl@0
|
432 |
//! with ? wildcard.
|
sl@0
|
433 |
//! Uses API elements: Open(), Read(), Close().
|
sl@0
|
434 |
//! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
|
sl@0
|
435 |
//! 2.Call RDir::Open(RFs &aFs, const TDesC &aMatchName, TUint anAttMask),
|
sl@0
|
436 |
//! and RFs session as first parameter, and <DRIVE>:\base\t_sfsrv\ (containing 14 files: 1mb,
|
sl@0
|
437 |
//! any.txt, big_line.txt, filetext_eof.txt, filetext_read.txt, multiline.txt, new_file.txt,
|
sl@0
|
438 |
//! oneliner_tmp.txt, test_rom.txt, test.txt, Test1.txt, Test2.txt,
|
sl@0
|
439 |
//! Test3.txt, USBLOAD.ZIP) as second parameter, and
|
sl@0
|
440 |
//! KEntryAttNormal as third parameter.
|
sl@0
|
441 |
//! 3.Call RDir::Read(TEntry &anEntry) to read a single directory entry synchronously.
|
sl@0
|
442 |
//! 4.Call RDir::Close().
|
sl@0
|
443 |
//! @SYMTestStatus Implemented
|
sl@0
|
444 |
//! @SYMTestPriority Critical
|
sl@0
|
445 |
//! @SYMTestExpectedResults The Open() method call is completed returning KErrNone. The last Read() method call returns KErrEof as there are
|
sl@0
|
446 |
//! only 3 Test?.txt files (Test1.txt, Test2.txt, Test3.txt). All other verifications pass.
|
sl@0
|
447 |
//! @SYMTestType CIT
|
sl@0
|
448 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-RDir-PublicApi.ini
|
sl@0
|
449 |
CREATE_OBJECT RFs RFs1
|
sl@0
|
450 |
CREATE_OBJECT RDir RDir1
|
sl@0
|
451 |
CREATE_OBJECT TEntry TEntry1
|
sl@0
|
452 |
COMMAND RFs1 new
|
sl@0
|
453 |
COMMAND RFs1 Connect
|
sl@0
|
454 |
COMMAND RDir1 new
|
sl@0
|
455 |
COMMAND RDir1 Open PBASE-F32-RDir-PublicApi-5011-001-Open_command005
|
sl@0
|
456 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-5011-001-Read_command006
|
sl@0
|
457 |
COMMAND TEntry1 = PBASE-F32-RDir-PublicApi-global-001-assign_Test1
|
sl@0
|
458 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-5011-001-Read_command006
|
sl@0
|
459 |
COMMAND TEntry1 = PBASE-F32-RDir-PublicApi-global-001-assign_Test2
|
sl@0
|
460 |
COMMAND RDir1 Read PBASE-F32-RDir-PublicApi-5011-001-Read_command008
|
sl@0
|
461 |
COMMAND TEntry1 = PBASE-F32-RDir-PublicApi-global-001-assign_Test3
|
sl@0
|
462 |
COMMAND !Error=-25 RDir1 Read PBASE-F32-RDir-PublicApi-5011-001-Read_command009
|
sl@0
|
463 |
COMMAND TEntry1 = PBASE-F32-RDir-PublicApi-global-001-assign_EOF
|
sl@0
|
464 |
COMMAND RDir1 Close
|
sl@0
|
465 |
COMMAND TEntry1 ~
|
sl@0
|
466 |
COMMAND RDir1 ~
|
sl@0
|
467 |
COMMAND RFs1 ~
|
sl@0
|
468 |
END_TEST_BLOCK
|
sl@0
|
469 |
END_TESTCASE PBASE-F32-RDir-PublicApi-5011
|
sl@0
|
470 |
|
sl@0
|
471 |
|
sl@0
|
472 |
//////////////////////////////////////////////////////////////////////
|
sl@0
|
473 |
//////////////////////////////////////////////////////////////////////
|
sl@0
|
474 |
////// //////
|
sl@0
|
475 |
////// /////////////////////////////////// //////
|
sl@0
|
476 |
////// /// /// //////
|
sl@0
|
477 |
////// /// NEGATIVE TESTS /// //////
|
sl@0
|
478 |
////// /// /// //////
|
sl@0
|
479 |
////// /////////////////////////////////// //////
|
sl@0
|
480 |
////// //////
|
sl@0
|
481 |
//////////////////////////////////////////////////////////////////////
|
sl@0
|
482 |
//////////////////////////////////////////////////////////////////////
|
sl@0
|
483 |
|
sl@0
|
484 |
|
sl@0
|
485 |
////////////////////////////////////////////////////////////////////
|
sl@0
|
486 |
//
|
sl@0
|
487 |
//OPEN
|
sl@0
|
488 |
//Open(RFs &aFs, const TDesC &aMatchName, const TUidType &aUidType)
|
sl@0
|
489 |
//
|
sl@0
|
490 |
////////////////////////////////////////////////////////////////////
|
sl@0
|
491 |
|
sl@0
|
492 |
START_TESTCASE PBASE-F32-RDir-PublicApi-5101
|
sl@0
|
493 |
//! @SYMTestCaseID PBASE-F32-RDir-PublicApi-5101
|
sl@0
|
494 |
//! @SYMAPI RDir
|
sl@0
|
495 |
//! @SYMTestCaseDesc Function Open(RFs &aFs, const TDesC &aMatchName, const TUidType &aUidType) negative test, that tries to open
|
sl@0
|
496 |
//! a directory which not exist and using the NULL UIDs.
|
sl@0
|
497 |
//! Uses API elements: Open(), Close().
|
sl@0
|
498 |
//! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
|
sl@0
|
499 |
//! 2.Call RDir::Open(RFs &aFs, const TDesC &aMatchName, const TUidType &aUidType),
|
sl@0
|
500 |
//! and RFs session as first parameter, and <DRIVE>:\base\t_sfsrv\NotExist\ as second parameter,
|
sl@0
|
501 |
//! and empty TUidType as third parameter.
|
sl@0
|
502 |
//! 3.Call RDir::Close().
|
sl@0
|
503 |
//! @SYMTestStatus Implemented
|
sl@0
|
504 |
//! @SYMTestPriority Critical
|
sl@0
|
505 |
//! @SYMTestExpectedResults The Open() method call returns error -12 (KErrPathNotFound).
|
sl@0
|
506 |
//! @SYMTestType CIT
|
sl@0
|
507 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-RDir-PublicApi.ini
|
sl@0
|
508 |
CREATE_OBJECT RFs RFs1
|
sl@0
|
509 |
CREATE_OBJECT RDir RDir1
|
sl@0
|
510 |
COMMAND RFs1 new
|
sl@0
|
511 |
COMMAND RFs1 Connect
|
sl@0
|
512 |
COMMAND RDir1 new
|
sl@0
|
513 |
COMMAND !Error=-12 RDir1 Open PBASE-F32-RDir-PublicApi-5101-001-Open_command005
|
sl@0
|
514 |
COMMAND RDir1 Close
|
sl@0
|
515 |
COMMAND RDir1 ~
|
sl@0
|
516 |
COMMAND RFs1 ~
|
sl@0
|
517 |
END_TEST_BLOCK
|
sl@0
|
518 |
END_TESTCASE PBASE-F32-RDir-PublicApi-5101
|
sl@0
|
519 |
|
sl@0
|
520 |
|
sl@0
|
521 |
START_TESTCASE PBASE-F32-RDir-PublicApi-5102
|
sl@0
|
522 |
//! @SYMTestCaseID PBASE-F32-RDir-PublicApi-5102
|
sl@0
|
523 |
//! @SYMAPI RDir
|
sl@0
|
524 |
//! @SYMTestCaseDesc Function Open(RFs &aFs, const TDesC &aMatchName, const TUidType &aUidType) negative test, that tries to open
|
sl@0
|
525 |
//! a directory using the NULL UIDs when directory path is not correct.
|
sl@0
|
526 |
//! Uses API elements: Open(), Close().
|
sl@0
|
527 |
//! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
|
sl@0
|
528 |
//! 2.Call RDir::Open(RFs &aFs, const TDesC &aMatchName, const TUidType &aUidType),
|
sl@0
|
529 |
//! and RFs session as first parameter, and <DRIVE>:\base\t_sfsrv\\\\as second parameter,
|
sl@0
|
530 |
//! and empty TUidType as third parameter.
|
sl@0
|
531 |
//! 3.Call RDir::Close().
|
sl@0
|
532 |
//! @SYMTestStatus Implemented
|
sl@0
|
533 |
//! @SYMTestPriority Critical
|
sl@0
|
534 |
//! @SYMTestExpectedResults The Open() method call returns error -28 (KErrBadName).
|
sl@0
|
535 |
//! @SYMTestType CIT
|
sl@0
|
536 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-RDir-PublicApi.ini
|
sl@0
|
537 |
CREATE_OBJECT RFs RFs1
|
sl@0
|
538 |
CREATE_OBJECT RDir RDir1
|
sl@0
|
539 |
COMMAND RFs1 new
|
sl@0
|
540 |
COMMAND RFs1 Connect
|
sl@0
|
541 |
COMMAND RDir1 new
|
sl@0
|
542 |
COMMAND !Error=-28 RDir1 Open PBASE-F32-RDir-PublicApi-5102-001-Open_command005
|
sl@0
|
543 |
COMMAND RDir1 Close
|
sl@0
|
544 |
COMMAND RDir1 ~
|
sl@0
|
545 |
COMMAND RFs1 ~
|
sl@0
|
546 |
END_TEST_BLOCK
|
sl@0
|
547 |
END_TESTCASE PBASE-F32-RDir-PublicApi-5102
|
sl@0
|
548 |
|
sl@0
|
549 |
|
sl@0
|
550 |
//////////////////////////////////////////////////////////
|
sl@0
|
551 |
//
|
sl@0
|
552 |
//OPEN
|
sl@0
|
553 |
//Open(RFs &aFs, const TDesC &aMatchName, TUint anAttMask)
|
sl@0
|
554 |
//
|
sl@0
|
555 |
//////////////////////////////////////////////////////////
|
sl@0
|
556 |
|
sl@0
|
557 |
START_TESTCASE PBASE-F32-RDir-PublicApi-5103
|
sl@0
|
558 |
//! @SYMTestCaseID PBASE-F32-RDir-PublicApi-5103
|
sl@0
|
559 |
//! @SYMAPI RDir
|
sl@0
|
560 |
//! @SYMTestCaseDesc Function Open(RFs &aFs, const TDesC &aMatchName, TUint anAttMask) test, that tries to open a directory
|
sl@0
|
561 |
//! when directory path is not correct.
|
sl@0
|
562 |
//! Uses API elements: Open(), Close().
|
sl@0
|
563 |
//! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
|
sl@0
|
564 |
//! 2.Call RDir::Open(RFs &aFs, const TDesC &aMatchName, TUint anAttMask),
|
sl@0
|
565 |
//! and empty RFs session as first parameter, and <DRIVE>:\base\t_sfsrv\\\\ as second parameter,
|
sl@0
|
566 |
//! and KEntryAttNormal as third parameter.
|
sl@0
|
567 |
//! 3.Call RDir::Close().
|
sl@0
|
568 |
//! @SYMTestStatus Implemented
|
sl@0
|
569 |
//! @SYMTestPriority Critical
|
sl@0
|
570 |
//! @SYMTestExpectedResults The Open() method call returns error -28 (KErrBadName).
|
sl@0
|
571 |
//! @SYMTestType CIT
|
sl@0
|
572 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-RDir-PublicApi.ini
|
sl@0
|
573 |
CREATE_OBJECT RFs RFs1
|
sl@0
|
574 |
CREATE_OBJECT RDir RDir1
|
sl@0
|
575 |
COMMAND RFs1 new
|
sl@0
|
576 |
COMMAND RFs1 Connect
|
sl@0
|
577 |
COMMAND RDir1 new
|
sl@0
|
578 |
COMMAND !Error=-28 RDir1 Open PBASE-F32-RDir-PublicApi-5103-001-Open_command005
|
sl@0
|
579 |
COMMAND RDir1 Close
|
sl@0
|
580 |
COMMAND RDir1 ~
|
sl@0
|
581 |
COMMAND RFs1 ~
|
sl@0
|
582 |
END_TEST_BLOCK
|
sl@0
|
583 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-RDir-PublicApi.ini
|
sl@0
|
584 |
CREATE_OBJECT RFs RFs1
|
sl@0
|
585 |
CREATE_OBJECT CFileMan CFileMan1
|
sl@0
|
586 |
COMMAND RFs1 new
|
sl@0
|
587 |
COMMAND RFs1 Connect
|
sl@0
|
588 |
COMMAND CFileMan1 NewL PBASE-F32-RDir-PublicApi-NewL
|
sl@0
|
589 |
COMMAND CFileMan1 Delete PBASE-F32-RDir-PublicApi-001-Delete
|
sl@0
|
590 |
COMMAND RFs1 RmDir PBASE-F32-RDir-PublicApi-001-RmDir
|
sl@0
|
591 |
COMMAND CFileMan1 ~
|
sl@0
|
592 |
COMMAND RFs1 ~
|
sl@0
|
593 |
END_TEST_BLOCK
|
sl@0
|
594 |
|
sl@0
|
595 |
END_TESTCASE PBASE-F32-RDir-PublicApi-5103
|