|
1 // |
|
2 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 // All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of the License "Eclipse Public License v1.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 // |
|
14 // Description: |
|
15 // |
|
16 // |
|
17 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
18 // All rights reserved. |
|
19 // This component and the accompanying materials are made available |
|
20 // under the terms of the License "Symbian Foundation License v1.0" |
|
21 // which accompanies this distribution, and is available |
|
22 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
23 // |
|
24 // Initial Contributors: |
|
25 // Nokia Corporation - initial contribution. |
|
26 // |
|
27 // Contributors: |
|
28 // |
|
29 // Description: |
|
30 // |
|
31 |
|
32 LOAD_SUITE tcaf |
|
33 LOAD_SUITE RTAUtils |
|
34 |
|
35 RUN_UTILS Delete c:\tcaf\testdata\sample.content |
|
36 |
|
37 START_TESTCASE SEC-CAF-MAN-0001 |
|
38 //! @file |
|
39 //! @SYMTestCaseID SEC-CAF-MAN-0001 |
|
40 //! @SYMTestCaseDesc Create a sample Drm archive |
|
41 //! (TCAF_CreateArchive) |
|
42 //! @SYMPREQ REQ3678 |
|
43 //! @SYMTestStatus Implemented |
|
44 //! @SYMTestPriority Normal |
|
45 //! @SYMTestActions Constructs a DRM archive from the content and rights xml files provided |
|
46 //! @SYMTestExpectedResults A .contentrights file is produced |
|
47 //! @SYMTestType UT |
|
48 RUN_TEST_STEP 100 RTAUtils CreateDrmArchive c:\tcaf\managerstep.ini CreateDrmArchive |
|
49 END_TESTCASE SEC-CAF-MAN-0001 |
|
50 |
|
51 START_TESTCASE SEC-CAF-MAN-0002 |
|
52 //! @file |
|
53 //! @SYMTestCaseID SEC-CAF-MAN-0002 |
|
54 //! @SYMTestCaseDesc Plaintext Copy File not found |
|
55 //! (PlainText_CopyFile_Not_Found) |
|
56 //! @SYMREQ REQ3691 |
|
57 //! @SYMTestStatus Implemented |
|
58 //! @SYMTestPriority Critical |
|
59 //! @SYMTestActions Attempt to copy an file that does not exist, should return expected error code |
|
60 //! @SYMTestExpectedResults returns expected error code |
|
61 //! @SYMTestType CIT |
|
62 RUN_TEST_STEP 100 tcaf CAFCopyFileStep c:\tcaf\managerstep.ini PlainTextCopyFileNotFound |
|
63 END_TESTCASE SEC-CAF-MAN-0002 |
|
64 |
|
65 START_TESTCASE SEC-CAF-MAN-0003 |
|
66 //! @file |
|
67 //! @SYMTestCaseID SEC-CAF-MAN-0003 |
|
68 //! @SYMTestCaseDesc Plaintext Copy File |
|
69 //! (PlainText_CopyFile) |
|
70 //! @SYMREQ REQ3691 |
|
71 //! @SYMTestStatus Implemented |
|
72 //! @SYMTestPriority Critical |
|
73 //! @SYMTestActions Attempt to copy an unprotected file |
|
74 //! @SYMTestExpectedResults File copied sucessfully |
|
75 //! @SYMTestType CIT |
|
76 RUN_TEST_STEP 100 tcaf CAFCopyFileStep c:\tcaf\managerstep.ini PlainTextCopyFileOk |
|
77 END_TESTCASE SEC-CAF-MAN-0003 |
|
78 |
|
79 START_TESTCASE SEC-CAF-MAN-0004 |
|
80 //! @file |
|
81 //! @SYMTestCaseID SEC-CAF-MAN-0004 |
|
82 //! @SYMTestCaseDesc Rename a file in the same directory using CAF |
|
83 //! (PlainText_RenameFile_Ok) |
|
84 //! @SYMREQ REQ3691 |
|
85 //! @SYMTestStatus Implemented |
|
86 //! @SYMTestPriority Critical |
|
87 //! @SYMTestActions Use CAF to try and rename a file |
|
88 //! @SYMTestExpectedResults Rename should return KErrNone |
|
89 //! @SYMTestType CIT |
|
90 RUN_TEST_STEP 100 tcaf CAFRenameFileStep c:\tcaf\managerstep.ini PlainTextRenameFileOk |
|
91 END_TESTCASE SEC-CAF-MAN-0004 |
|
92 |
|
93 START_TESTCASE SEC-CAF-MAN-0005 |
|
94 //! @file |
|
95 //! @SYMTestCaseID SEC-CAF-MAN-0005 |
|
96 //! @SYMTestCaseDesc Rename a non existant file using caf |
|
97 //! (PlainText_RenameFile_Fail) |
|
98 //! @SYMREQ REQ3691 |
|
99 //! @SYMTestStatus Implemented |
|
100 //! @SYMTestPriority Critical |
|
101 //! @SYMTestActions Use CAF to try and rename a file that does not exist |
|
102 //! @SYMTestExpectedResults Rename should return KErrNotFound |
|
103 //! @SYMTestType CIT |
|
104 RUN_TEST_STEP 100 tcaf CAFRenameFileStep c:\tcaf\managerstep.ini PlainTextRenameFileNotFound |
|
105 END_TESTCASE SEC-CAF-MAN-0005 |
|
106 |
|
107 START_TESTCASE SEC-CAF-MAN-0006 |
|
108 //! @file |
|
109 //! @SYMTestCaseID SEC-CAF-MAN-0006 |
|
110 //! @SYMTestCaseDesc Move file across different drives using CAF |
|
111 //! (PlainText_DifferentDrivesSameNameRenameFile_Ok) |
|
112 //! @SYMREQ REQ3691, INC106214 |
|
113 //! @SYMTestStatus Implemented |
|
114 //! @SYMTestPriority Critical |
|
115 //! @SYMTestActions Use CAF to try and move a file to a different drive |
|
116 //! @SYMTestExpectedResults Rename should return KErrNone |
|
117 //! @SYMTestType CIT |
|
118 RUN_TEST_STEP 100 tcaf CAFRenameFileStep c:\tcaf\managerstep.ini DifferentDrivesSameNameRenameFileOk |
|
119 END_TESTCASE SEC-CAF-MAN-0006 |
|
120 |
|
121 START_TESTCASE SEC-CAF-MAN-0007 |
|
122 //! @file |
|
123 //! @SYMTestCaseID SEC-CAF-MAN-0007 |
|
124 //! @SYMTestCaseDesc Move file across different drives using CAF |
|
125 //! (PlainText_DifferentDrivesDifferentNameRenameFile_Ok) |
|
126 //! @SYMREQ REQ3691, INC106214 |
|
127 //! @SYMTestStatus Implemented |
|
128 //! @SYMTestPriority Critical |
|
129 //! @SYMTestActions Use CAF to try and move a file to a different drive while changing the file name |
|
130 //! @SYMTestExpectedResults Rename should return KErrNone |
|
131 //! @SYMTestType CIT |
|
132 RUN_TEST_STEP 100 tcaf CAFRenameFileStep c:\tcaf\managerstep.ini DifferentDrivesDifferentNameRenameFileOk |
|
133 END_TESTCASE SEC-CAF-MAN-0007 |
|
134 |
|
135 START_TESTCASE SEC-CAF-MAN-0008 |
|
136 //! @file |
|
137 //! @SYMTestCaseID SEC-CAF-MAN-0008 |
|
138 //! @SYMTestCaseDesc Delete a plain text file using CAF |
|
139 //! (PlainText_Delete_Ok) |
|
140 //! @SYMREQ REQ3691 |
|
141 //! @SYMTestStatus Implemented |
|
142 //! @SYMTestPriority Critical |
|
143 //! @SYMTestActions Use CAF to delete the file that was copied in the previous test |
|
144 //! @SYMTestExpectedResults Delete should return KErrNone when the file is deleted |
|
145 //! @SYMTestType CIT |
|
146 RUN_TEST_STEP 100 tcaf CAFDeleteStep c:\tcaf\managerstep.ini PlainTextDeleteOk |
|
147 END_TESTCASE SEC-CAF-MAN-0008 |
|
148 |
|
149 START_TESTCASE SEC-CAF-MAN-0009 |
|
150 //! @file |
|
151 //! @SYMTestCaseID SEC-CAF-MAN-0009 |
|
152 //! @SYMTestCaseDesc Delete a non existant file using caf |
|
153 //! (PlainText_Delete_Fail) |
|
154 //! @SYMREQ REQ3691 |
|
155 //! @SYMTestStatus Implemented |
|
156 //! @SYMTestPriority Critical |
|
157 //! @SYMTestActions Use CAF to try and delete a file that does not exist |
|
158 //! @SYMTestExpectedResults Delete should return KErrNotFound |
|
159 //! @SYMTestType CIT |
|
160 RUN_TEST_STEP 100 tcaf CAFDeleteStep c:\tcaf\managerstep.ini PlainTextDeleteFail |
|
161 END_TESTCASE SEC-CAF-MAN-0009 |
|
162 |
|
163 START_TESTCASE SEC-CAF-MAN-0010 |
|
164 //! @file |
|
165 //! @SYMTestCaseID SEC-CAF-MAN-0010 |
|
166 //! @SYMTestCaseDesc Tries to creates several nested directories |
|
167 //! (public_Mkdir_fail) |
|
168 //! @SYMREQ REQ3691 |
|
169 //! @SYMTestStatus Implemented |
|
170 //! @SYMTestPriority Critical |
|
171 //! @SYMTestActions Use CAF to create a nested directory in the file system, fails |
|
172 //! @SYMTestExpectedResults MkDir should return kErrPathNotFound |
|
173 //! @SYMTestType CIT |
|
174 RUN_TEST_STEP 100 tcaf CAFMkDirStep c:\tcaf\managerstep.ini MkDirPublicDirFail |
|
175 END_TESTCASE SEC-CAF-MAN-0010 |
|
176 |
|
177 START_TESTCASE SEC-CAF-MAN-0011 |
|
178 |
|
179 //! @file |
|
180 //! @SYMTestCaseID SEC-CAF-MAN-0011 |
|
181 //! @SYMTestCaseDesc Creates a directory in a public part of the file system |
|
182 //! (public_Mkdir_Ok) |
|
183 //! @SYMREQ REQ3691 |
|
184 //! @SYMTestStatus Implemented |
|
185 //! @SYMTestPriority Critical |
|
186 //! @SYMTestActions Use CAF to create a directory in the file system |
|
187 //! @SYMTestExpectedResults MkDir should return kErrNone |
|
188 //! @SYMTestType CIT |
|
189 RUN_TEST_STEP 100 tcaf CAFMkDirStep c:\tcaf\managerstep.ini MkDirPublicDirOk |
|
190 END_TESTCASE SEC-CAF-MAN-0011 |
|
191 |
|
192 START_TESTCASE SEC-CAF-MAN-0012 |
|
193 //! @file |
|
194 //! @SYMTestCaseID SEC-CAF-MAN-0012 |
|
195 //! @SYMTestCaseDesc Creates a directory in a public part of the file system |
|
196 //! (public_Rmdir) |
|
197 //! @SYMREQ REQ3691 |
|
198 //! @SYMTestStatus Implemented |
|
199 //! @SYMTestPriority Critical |
|
200 //! @SYMTestActions Use CAF to create a directory in the file system |
|
201 //! @SYMTestExpectedResults MkDir should return kErrNone |
|
202 //! @SYMTestType CIT |
|
203 RUN_TEST_STEP 100 tcaf CAFRmDirStep c:\tcaf\managerstep.ini RmDirPublicDirOk |
|
204 END_TESTCASE SEC-CAF-MAN-0012 |
|
205 |
|
206 START_TESTCASE SEC-CAF-MAN-0013 |
|
207 //! @file |
|
208 //! @SYMTestCaseID SEC-CAF-MAN-0013 |
|
209 //! @SYMTestCaseDesc Remove a directory that does not exist |
|
210 //! (public_Rmdir_fail) |
|
211 //! @SYMREQ REQ3691 |
|
212 //! @SYMTestStatus Implemented |
|
213 //! @SYMTestPriority Critical |
|
214 //! @SYMTestActions Use CAF to remove a directory that does not exist in the file system |
|
215 //! @SYMTestExpectedResults RmDir should return KErrNotFound |
|
216 //! @SYMTestType CIT |
|
217 RUN_TEST_STEP 100 tcaf CAFRmDirStep c:\tcaf\managerstep.ini RmDirPublicDirFail |
|
218 END_TESTCASE SEC-CAF-MAN-0013 |
|
219 |
|
220 START_TESTCASE SEC-CAF-MAN-0014 |
|
221 //! @file |
|
222 //! @SYMTestCaseID SEC-CAF-MAN-0014 |
|
223 //! @SYMTestCaseDesc Creates a directory in a public part of the file system |
|
224 //! (public_MkDirAll_ok) |
|
225 //! @SYMREQ REQ3691 |
|
226 //! @SYMTestStatus Implemented |
|
227 //! @SYMTestPriority Critical |
|
228 //! @SYMTestActions Use CAF to create a directory in the file system |
|
229 //! @SYMTestExpectedResults MkDir should return kErrNone |
|
230 //! @SYMTestType CIT |
|
231 RUN_TEST_STEP 100 tcaf CAFMkDirAllStep c:\tcaf\managerstep.ini MkDirAllPublicDirOk |
|
232 END_TESTCASE SEC-CAF-MAN-0014 |
|
233 |
|
234 START_TESTCASE SEC-CAF-MAN-0015 |
|
235 //! @file |
|
236 //! @SYMTestCaseID SEC-CAF-MAN-0015 |
|
237 //! @SYMTestCaseDesc Create directory fails |
|
238 //! (public_MkDirAll_fail) |
|
239 //! @SYMREQ REQ3691 |
|
240 //! @SYMTestStatus Implemented |
|
241 //! @SYMTestPriority Critical |
|
242 //! @SYMTestActions Use CAF to create a directory on the read only Z:\ drive |
|
243 //! @SYMTestExpectedResults MkDir should return kErrAccessDenied |
|
244 //! @SYMTestType CIT |
|
245 RUN_TEST_STEP 100 tcaf CAFMkDirAllStep c:\tcaf\managerstep.ini MkDirAllPublicDirFail |
|
246 END_TESTCASE SEC-CAF-MAN-0015 |
|
247 |
|
248 START_TESTCASE SEC-CAF-MAN-0016 |
|
249 //! @file |
|
250 //! @SYMTestCaseID SEC-CAF-MAN-0016 |
|
251 //! @SYMTestCaseDesc List a directory |
|
252 //! (public_GetDir1_ok) |
|
253 //! @SYMREQ REQ3691 |
|
254 //! @SYMTestStatus Implemented |
|
255 //! @SYMTestPriority Critical |
|
256 //! @SYMTestActions Use CAF to list a directory |
|
257 //! @SYMTestExpectedResults GetDir should return KErrNone |
|
258 //! @SYMTestType CIT |
|
259 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirAPI1StepOk |
|
260 END_TESTCASE SEC-CAF-MAN-0016 |
|
261 |
|
262 START_TESTCASE SEC-CAF-MAN-0017 |
|
263 //! @file |
|
264 //! @SYMTestCaseID SEC-CAF-MAN-0017 |
|
265 //! @SYMTestCaseDesc List a directory |
|
266 //! (public_GetDir2_ok) |
|
267 //! @SYMREQ REQ3691 |
|
268 //! @SYMTestStatus Implemented |
|
269 //! @SYMTestPriority Critical |
|
270 //! @SYMTestActions Use CAF to list a directory |
|
271 //! @SYMTestExpectedResults GetDir should return KErrNone |
|
272 //! @SYMTestType CIT |
|
273 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirAPI2StepOk |
|
274 END_TESTCASE SEC-CAF-MAN-0017 |
|
275 |
|
276 START_TESTCASE SEC-CAF-MAN-0018 |
|
277 //! @file |
|
278 //! @SYMTestCaseID SEC-CAF-MAN-0018 |
|
279 //! @SYMTestCaseDesc List a directory |
|
280 //! (public_GetDir3_ok) |
|
281 //! @SYMREQ REQ3691 |
|
282 //! @SYMTestStatus Implemented |
|
283 //! @SYMTestPriority Critical |
|
284 //! @SYMTestActions Use CAF to list a directory |
|
285 //! @SYMTestExpectedResults GetDir should return KErrNone |
|
286 //! @SYMTestType CIT |
|
287 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirAPI3StepOk |
|
288 END_TESTCASE SEC-CAF-MAN-0018 |
|
289 |
|
290 START_TESTCASE SEC-CAF-MAN-0019 |
|
291 //! @file |
|
292 //! @SYMTestCaseID SEC-CAF-MAN-0019 |
|
293 //! @SYMTestCaseDesc List a directory |
|
294 //! (public_GetDir_fail) |
|
295 //! @SYMREQ REQ3691 |
|
296 //! @SYMTestStatus Implemented |
|
297 //! @SYMTestPriority Critical |
|
298 //! @SYMTestActions Use CAF to list a directory |
|
299 //! @SYMTestExpectedResults GetDir should return KErrPathNotFound |
|
300 //! @SYMTestType CIT |
|
301 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirStepFail |
|
302 END_TESTCASE SEC-CAF-MAN-0019 |
|
303 |
|
304 START_TESTCASE SEC-CAF-MAN-0020 |
|
305 //! @file |
|
306 //! @SYMTestCaseID SEC-CAF-MAN-0020 |
|
307 //! @SYMTestCaseDesc List a directory |
|
308 //! (public_GetDir_Private1) |
|
309 //! @SYMREQ REQ3691 |
|
310 //! @SYMTestStatus Implemented |
|
311 //! @SYMTestPriority Critical |
|
312 //! @SYMTestActions Use CAF to list a C:\private\ |
|
313 //! @SYMTestExpectedResults GetDir should return KErrNone |
|
314 //! @SYMTestType CIT |
|
315 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirAPI1StepPrivate |
|
316 END_TESTCASE SEC-CAF-MAN-0020 |
|
317 |
|
318 START_TESTCASE SEC-CAF-MAN-0021 |
|
319 //! @file |
|
320 //! @SYMTestCaseID SEC-CAF-MAN-0021 |
|
321 //! @SYMTestCaseDesc List a directory |
|
322 //! (public_GetDir_Private2) |
|
323 //! @SYMREQ REQ3691 |
|
324 //! @SYMTestStatus Implemented |
|
325 //! @SYMTestPriority Critical |
|
326 //! @SYMTestActions Use CAF to list a C:\private\ |
|
327 //! @SYMTestExpectedResults GetDir should return KErrNone |
|
328 //! @SYMTestType CIT |
|
329 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirAPI2StepPrivate |
|
330 END_TESTCASE SEC-CAF-MAN-0021 |
|
331 |
|
332 START_TESTCASE SEC-CAF-MAN-0022 |
|
333 //! @file |
|
334 //! @SYMTestCaseID SEC-CAF-MAN-0022 |
|
335 //! @SYMTestCaseDesc List a directory |
|
336 //! (public_GetDir_Private3) |
|
337 //! @SYMREQ REQ3691 |
|
338 //! @SYMTestStatus Implemented |
|
339 //! @SYMTestPriority Critical |
|
340 //! @SYMTestActions Use CAF to list a C:\private\ |
|
341 //! @SYMTestExpectedResults GetDir should return KErrNone |
|
342 //! @SYMTestType CIT |
|
343 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirAPI3StepPrivate |
|
344 END_TESTCASE SEC-CAF-MAN-0022 |
|
345 |
|
346 START_TESTCASE SEC-CAF-MAN-0023 |
|
347 //! @file |
|
348 //! @SYMTestCaseID SEC-CAF-MAN-0023 |
|
349 //! @SYMTestCaseDesc Copy File to private dir |
|
350 //! (private_CopyFile_Ok) |
|
351 //! @SYMREQ REQ3691 |
|
352 //! @SYMTestStatus Implemented |
|
353 //! @SYMTestPriority Critical |
|
354 //! @SYMTestActions Attempt to copy an file to the reference test agent private dir |
|
355 //! @SYMTestExpectedResults copy succeeds |
|
356 //! @SYMTestType CIT |
|
357 RUN_TEST_STEP 100 tcaf CAFCopyFileStep c:\tcaf\managerstep.ini PrivateCopyFileOk |
|
358 END_TESTCASE SEC-CAF-MAN-0023 |
|
359 |
|
360 START_TESTCASE SEC-CAF-MAN-0024 |
|
361 //! @file |
|
362 //! @SYMTestCaseID SEC-CAF-MAN-0024 |
|
363 //! @SYMTestCaseDesc Creates a directory in the private directory of the reference test agent |
|
364 //! (private_Mkdir_Ok) |
|
365 //! @SYMREQ REQ3691 |
|
366 //! @SYMTestStatus Implemented |
|
367 //! @SYMTestPriority Critical |
|
368 //! @SYMTestActions Use CAF to create a directory in agents private directory |
|
369 //! @SYMTestExpectedResults MkDir should return kErrNone |
|
370 //! @SYMTestType CIT |
|
371 RUN_TEST_STEP 100 tcaf CAFMkDirStep c:\tcaf\managerstep.ini MkDirPrivateDirOk |
|
372 END_TESTCASE SEC-CAF-MAN-0024 |
|
373 |
|
374 START_TESTCASE SEC-CAF-MAN-0025 |
|
375 //! @file |
|
376 //! @SYMTestCaseID SEC-CAF-MAN-0025 |
|
377 //! @SYMTestCaseDesc List a directory |
|
378 //! (public_GetDir_Private1) |
|
379 //! @SYMREQ REQ3691 |
|
380 //! @SYMTestStatus Implemented |
|
381 //! @SYMTestPriority Critical |
|
382 //! @SYMTestActions Use CAF to list a C:\private\Reference Test Agent\ |
|
383 //! @SYMTestExpectedResults GetDir should return KErrNone |
|
384 //! @SYMTestType CIT |
|
385 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirAPI1StepPrivateServer |
|
386 END_TESTCASE SEC-CAF-MAN-0025 |
|
387 |
|
388 START_TESTCASE SEC-CAF-MAN-0026 |
|
389 //! @file |
|
390 //! @SYMTestCaseID SEC-CAF-MAN-0026 |
|
391 //! @SYMTestCaseDesc List a directory |
|
392 //! (public_GetDir_Private2) |
|
393 //! @SYMREQ REQ3691 |
|
394 //! @SYMTestStatus Implemented |
|
395 //! @SYMTestPriority Critical |
|
396 //! @SYMTestActions Use CAF to list a C:\private\Reference Test Agent\ |
|
397 //! @SYMTestExpectedResults GetDir should return KErrNone |
|
398 //! @SYMTestType CIT |
|
399 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirAPI2StepPrivateServer |
|
400 END_TESTCASE SEC-CAF-MAN-0026 |
|
401 |
|
402 START_TESTCASE SEC-CAF-MAN-0027 |
|
403 //! @file |
|
404 //! @SYMTestCaseID SEC-CAF-MAN-0027 |
|
405 //! @SYMTestCaseDesc List a directory |
|
406 //! (public_GetDir_Private3) |
|
407 //! @SYMREQ REQ3691 |
|
408 //! @SYMTestStatus Implemented |
|
409 //! @SYMTestPriority Critical |
|
410 //! @SYMTestActions Use CAF to list a C:\private\Reference Test Agent\ |
|
411 //! @SYMTestExpectedResults GetDir should return KErrNone |
|
412 //! @SYMTestType CIT |
|
413 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirAPI3StepPrivateServer |
|
414 END_TESTCASE SEC-CAF-MAN-0027 |
|
415 |
|
416 START_TESTCASE SEC-CAF-MAN-0028 |
|
417 //! @file |
|
418 //! @SYMTestCaseID SEC-CAF-MAN-0028 |
|
419 //! @SYMTestCaseDesc Delete a file in the reference test agents private directory |
|
420 //! (Private_Delete_Ok) |
|
421 //! @SYMREQ REQ3691 |
|
422 //! @SYMTestStatus Implemented |
|
423 //! @SYMTestPriority Critical |
|
424 //! @SYMTestActions Use CAF to delete the file in the private directory of the reference test agent |
|
425 //! @SYMTestExpectedResults Delete should return KErrNone when the file is deleted |
|
426 //! @SYMTestType CIT |
|
427 RUN_TEST_STEP 100 tcaf CAFDeleteStep c:\tcaf\managerstep.ini PrivateDeleteFileOk |
|
428 END_TESTCASE SEC-CAF-MAN-0028 |
|
429 |
|
430 START_TESTCASE SEC-CAF-MAN-0029 |
|
431 //! @file |
|
432 //! @SYMTestCaseID SEC-CAF-MAN-0029 |
|
433 //! @SYMTestCaseDesc Remove a directory within the agents private directory |
|
434 //! (private_Rmdir) |
|
435 //! @SYMREQ REQ3691 |
|
436 //! @SYMTestStatus Implemented |
|
437 //! @SYMTestPriority Critical |
|
438 //! @SYMTestActions Use CAF to remove a directory in the agents private directory |
|
439 //! @SYMTestExpectedResults MkDir should return kErrNone |
|
440 //! @SYMTestType CIT |
|
441 RUN_TEST_STEP 100 tcaf CAFRmDirStep c:\tcaf\managerstep.ini RmDirPrivateDirOk |
|
442 END_TESTCASE SEC-CAF-MAN-0029 |
|
443 |
|
444 START_TESTCASE SEC-CAF-MAN-0030 |
|
445 //! @file |
|
446 //! @SYMTestCaseID SEC-CAF-MAN-0030 |
|
447 //! @SYMTestCaseDesc Request a status notification on a file |
|
448 //! (Manager_NotifyStatusChange) |
|
449 //! @SYMREQ REQ3680 |
|
450 //! @SYMTestStatus Implemented |
|
451 //! @SYMTestPriority Normal |
|
452 //! @SYMTestActions Request a notification on an unprotected file |
|
453 //! @SYMTestExpectedResults Should return KErrCANotSupported |
|
454 //! @SYMTestType CIT |
|
455 RUN_TEST_STEP 100 tcaf CAFManagerNotifyStep c:\tcaf\managerstep.ini NotifyStatusChange |
|
456 END_TESTCASE SEC-CAF-MAN-0030 |
|
457 |
|
458 START_TESTCASE SEC-CAF-MAN-0031 |
|
459 //! @file |
|
460 //! @SYMTestCaseID SEC-CAF-MAN-0031 |
|
461 //! @SYMTestCaseDesc Set a property within all agents |
|
462 //! (Manager_SetProperty) |
|
463 //! @SYMPREQ PREQ780 |
|
464 //! @SYMTestStatus Implemented |
|
465 //! @SYMTestPriority Normal |
|
466 //! @SYMTestActions Set a property within all agents |
|
467 //! @SYMTestExpectedResults Should return KErrCANotSupported |
|
468 //! @SYMTestType CIT |
|
469 RUN_TEST_STEP 100 tcaf CAFManagerSetPropertyStep c:\tcaf\managerstep.ini SetProperty |
|
470 END_TESTCASE SEC-CAF-MAN-0031 |
|
471 |
|
472 START_TESTCASE SEC-CAF-MAN-0032 |
|
473 //! @file |
|
474 //! @SYMTestCaseID SEC-CAF-MAN-0032 |
|
475 //! @SYMTestCaseDesc Display information about an unprotected file |
|
476 //! (Manager_DisplayInfo) |
|
477 //! @SYMPREQ PREQ780 |
|
478 //! @SYMTestStatus Implemented |
|
479 //! @SYMTestPriority Normal |
|
480 //! @SYMTestActions Ask the agent to display information about the file |
|
481 //! @SYMTestExpectedResults Should return KErrCANotSupported |
|
482 //! @SYMTestType CIT |
|
483 RUN_TEST_STEP 100 tcaf CAFManagerDisplayInfoStep c:\tcaf\managerstep.ini DisplayInfo |
|
484 END_TESTCASE SEC-CAF-MAN-0032 |
|
485 |
|
486 START_TESTCASE SEC-CAF-MAN-0033 |
|
487 //! @file |
|
488 //! @SYMTestCaseID SEC-CAF-MAN-0033 |
|
489 //! @SYMTestCaseDesc List all the agents not including the F32 Agent |
|
490 //! (Manager_List_Agents) |
|
491 //! @SYMPREQ PREQ780 |
|
492 //! @SYMTestStatus Implemented |
|
493 //! @SYMTestPriority Normal |
|
494 //! @SYMTestActions List all agents |
|
495 //! @SYMTestExpectedResults Should return KErrNone |
|
496 //! @SYMTestType CIT |
|
497 RUN_TEST_STEP 100 tcaf CAFManagerListAgentsStep c:\tcaf\managerstep.ini ListAgents |
|
498 END_TESTCASE SEC-CAF-MAN-0033 |
|
499 |
|
500 START_TESTCASE SEC-CAF-MAN-0034 |
|
501 //! @file |
|
502 //! @SYMTestCaseID SEC-CAF-MAN-0034 |
|
503 //! @SYMTestCaseDesc Execute an agent specific command |
|
504 //! (Manager_Agent_Specific) |
|
505 //! @SYMPREQ PREQ780 |
|
506 //! @SYMTestStatus Implemented |
|
507 //! @SYMTestPriority Normal |
|
508 //! @SYMTestActions Execute an agent specific command |
|
509 //! @SYMTestExpectedResults Should return KErrNone |
|
510 //! @SYMTestType CIT |
|
511 RUN_TEST_STEP 100 tcaf CAFManagerAgentSpecificStep c:\tcaf\managerstep.ini AgentSpecific |
|
512 END_TESTCASE SEC-CAF-MAN-0034 |
|
513 |
|
514 START_TESTCASE SEC-CAF-MAN-0035 |
|
515 //! @file |
|
516 //! @SYMTestCaseID SEC-CAF-MAN-0035 |
|
517 //! @SYMTestCaseDesc Execute an agent specific command |
|
518 //! (Manager_Display_Management_Info) |
|
519 //! @SYMPREQ PREQ780 |
|
520 //! @SYMTestStatus Implemented |
|
521 //! @SYMTestPriority Normal |
|
522 //! @SYMTestActions Execute an agent specific command |
|
523 //! @SYMTestExpectedResults Should return KErrCANotSupported |
|
524 //! @SYMTestType CIT |
|
525 RUN_TEST_STEP 100 tcaf CAFManagerDisplayConfigStep c:\tcaf\managerstep.ini DisplayManagement |
|
526 END_TESTCASE SEC-CAF-MAN-0035 |
|
527 |
|
528 START_TESTCASE SEC-CAF-MAN-0036 |
|
529 //! @file |
|
530 //! @SYMTestCaseID SEC-CAF-MAN-0036 |
|
531 //! @SYMTestCaseDesc Get an attribute for a file |
|
532 //! (Manager_Attribute) |
|
533 //! @SYMREQ REQ3679 |
|
534 //! @SYMTestStatus Implemented |
|
535 //! @SYMTestPriority Normal |
|
536 //! @SYMTestActions Get a single attribute for a file |
|
537 //! @SYMTestExpectedResults Should return KErrNone |
|
538 //! @SYMTestType CIT |
|
539 RUN_TEST_STEP 100 tcaf CAFManagerAttributeStep c:\tcaf\attributes.ini Attribute |
|
540 END_TESTCASE SEC-CAF-MAN-0036 |
|
541 |
|
542 START_TESTCASE SEC-CAF-MAN-0037 |
|
543 //! @file |
|
544 //! @SYMTestCaseID SEC-CAF-MAN-0037 |
|
545 //! @SYMTestCaseDesc Get a set of attributes for a file |
|
546 //! (Manager_AttributeSet) |
|
547 //! @SYMREQ REQ3679 |
|
548 //! @SYMTestStatus Implemented |
|
549 //! @SYMTestPriority Normal |
|
550 //! @SYMTestActions Get a set of attributes for a file |
|
551 //! @SYMTestExpectedResults Should return KErrNone |
|
552 //! @SYMTestType CIT |
|
553 RUN_TEST_STEP 100 tcaf CAFManagerAttributeSetStep c:\tcaf\attributes.ini AttributeSet |
|
554 END_TESTCASE SEC-CAF-MAN-0037 |
|
555 |
|
556 START_TESTCASE SEC-CAF-MAN-0038 |
|
557 //! @file |
|
558 //! @SYMTestCaseID SEC-CAF-MAN-0038 |
|
559 //! @SYMTestCaseDesc Get a string attribute for a file |
|
560 //! (Manager_String_Attribute) |
|
561 //! @SYMREQ REQ3679 |
|
562 //! @SYMTestStatus Implemented |
|
563 //! @SYMTestPriority Normal |
|
564 //! @SYMTestActions Get a single string attribute for a file |
|
565 //! @SYMTestExpectedResults Should return KErrNone |
|
566 //! @SYMTestType CIT |
|
567 RUN_TEST_STEP 100 tcaf CAFManagerStringAttributeStep c:\tcaf\attributes.ini StringAttribute |
|
568 END_TESTCASE SEC-CAF-MAN-0038 |
|
569 |
|
570 START_TESTCASE SEC-CAF-MAN-3457 |
|
571 //! @file |
|
572 //! @SYMTestCaseID SEC-CAF-MAN-3457 |
|
573 //! @SYMTestCaseDesc Get a string attribute for a manager object within a valid gif file |
|
574 //! @SYMDEF PDEF104571 |
|
575 //! @SYMTestStatus Implemented |
|
576 //! @SYMTestPriority Normal |
|
577 //! @SYMTestActions Get a single string attribute for a manager object within a valid gif file |
|
578 //! @SYMTestExpectedResults A string attribute should successfully be returned |
|
579 //! @SYMTestType CT |
|
580 RUN_TEST_STEP 100 tcaf CAFManagerStringAttributeStep c:\tcaf\attributes.ini StringAttributeGoodGif |
|
581 END_TESTCASE SEC-CAF-MAN-3457 |
|
582 |
|
583 START_TESTCASE SEC-CAF-MAN-3458 |
|
584 //! @file |
|
585 //! @SYMTestCaseID SEC-CAF-MAN-3458 |
|
586 //! @SYMTestCaseDesc Failure to return a string attribute for a manager object within an invalid gif file |
|
587 //! @SYMDEF PDEF104571 |
|
588 //! @SYMTestStatus Implemented |
|
589 //! @SYMTestPriority Normal |
|
590 //! @SYMTestActions Attempt to get a single string attribute for a manager object within an invalid gif file |
|
591 //! @SYMTestExpectedResults An error should be returned |
|
592 //! @SYMTestType CT |
|
593 RUN_TEST_STEP 100 tcaf CAFManagerStringAttributeStep c:\tcaf\attributes.ini StringAttributeErrorGif |
|
594 END_TESTCASE SEC-CAF-MAN-3458 |
|
595 |
|
596 START_TESTCASE SEC-CAF-MAN-0039 |
|
597 //! @file |
|
598 //! @SYMTestCaseID SEC-CAF-MAN-0039 |
|
599 //! @SYMTestCaseDesc Get a set of string attributes for a file |
|
600 //! (Manager_String_AttributeSet) |
|
601 //! @SYMREQ REQ3679 |
|
602 //! @SYMTestStatus Implemented |
|
603 //! @SYMTestPriority Normal |
|
604 //! @SYMTestActions Get a set of string attributes for a file |
|
605 //! @SYMTestExpectedResults Should return KErrNone |
|
606 //! @SYMTestType CIT |
|
607 RUN_TEST_STEP 100 tcaf CAFManagerStringAttributeSetStep c:\tcaf\attributes.ini StringAttributeSet |
|
608 END_TESTCASE SEC-CAF-MAN-0039 |
|
609 |
|
610 START_TESTCASE SEC-CAF-MAN-3459 |
|
611 //! @file |
|
612 //! @SYMTestCaseID SEC-CAF-MAN-3459 |
|
613 //! @SYMTestCaseDesc Get a set of string attributes for a manager object within a valid gif file |
|
614 //! @SYMDEF PDEF104571 |
|
615 //! @SYMTestStatus Implemented |
|
616 //! @SYMTestPriority Normal |
|
617 //! @SYMTestActions Get a set of string attributes for a manager object within a valid gif file |
|
618 //! @SYMTestExpectedResults A set of string attributes should successfully be returned |
|
619 //! @SYMTestType CT |
|
620 RUN_TEST_STEP 100 tcaf CAFManagerStringAttributeSetStep c:\tcaf\attributes.ini StringAttributeSetGoodGif |
|
621 END_TESTCASE SEC-CAF-MAN-3459 |
|
622 |
|
623 START_TESTCASE SEC-CAF-MAN-3460 |
|
624 //! @file |
|
625 //! @SYMTestCaseID SEC-CAF-MAN-3460 |
|
626 //! @SYMTestCaseDesc Get a set of string attributes for a manager object within an invalid gif file |
|
627 //! @SYMDEF PDEF104571 |
|
628 //! @SYMTestStatus Implemented |
|
629 //! @SYMTestPriority Normal |
|
630 //! @SYMTestActions Get a set of string attributes for a manager object within an invalid gif file |
|
631 //! @SYMTestExpectedResults An error should be returned for the invalid gif file within the set |
|
632 //! @SYMTestType CT |
|
633 RUN_TEST_STEP 100 tcaf CAFManagerStringAttributeSetStep c:\tcaf\attributes.ini StringAttributeSetErrorGif |
|
634 END_TESTCASE SEC-CAF-MAN-3460 |
|
635 |
|
636 |
|
637 //--------------------------------------------------------------------------------------------------------------------------------- |
|
638 //! @file |
|
639 //! @SYMTestCaseID SEC-CAF-MAN-0040 |
|
640 //! @SYMTestCaseDesc Query standardised information about a content object using a file handle. |
|
641 //! (FileHandle-DRM-Content) |
|
642 //! @SYMREQ REQ8758 |
|
643 //! @SYMTestStatus Implemented |
|
644 //! @SYMTestPriority Normal |
|
645 //! @SYMTestActions 1. Get a content's attribute from a file specified by file handle |
|
646 //! 2. Get content’s set of attributes from a file specified by file handle. |
|
647 //! 3. Get content’s text string attribute from a file specified by file handle. |
|
648 //! 4. Get content’s set of string attributes from a file specified by file handle. |
|
649 //! 5. View information associated with a single content object in a file specified by file handle. |
|
650 //! @SYMTestExpectedResults 1.Should return KErrNone. Attribute’s value should match the expected value. |
|
651 //! 2.Should return KErrNone. Value of all the attributes queried must match the expected value. |
|
652 //! 3.Should return KErrNone. The text string attribute value should match the expected value. |
|
653 //! 4.Should return KErrNone. Value of all the text string attributes queried must match the expected value. |
|
654 //! 5.Should return KErrCANotSupported |
|
655 //! @SYMTestType CIT |
|
656 |
|
657 START_TESTCASE SEC-CAF-MAN-0040 |
|
658 RUN_TEST_STEP 100 tcaf CAFManagerAttributeByFileHandleStep c:\tcaf\attributes.ini AttributeByFileHandle_DRM_Content |
|
659 RUN_TEST_STEP 100 tcaf CAFManagerAttributeSetByFileHandleStep c:\tcaf\attributes.ini AttributeSetByFileHandle_DRM_Content |
|
660 RUN_TEST_STEP 100 tcaf CAFManagerStringAttributeByFileHandleStep c:\tcaf\attributes.ini StringAttributeByFileHandle_DRM_Content |
|
661 RUN_TEST_STEP 100 tcaf CAFManagerStringAttributeSetByFileHandleStep c:\tcaf\attributes.ini StringAttributeSetByFileHandle_DRM_Content |
|
662 RUN_TEST_STEP 100 tcaf CAFManagerDisplayInfoByFileHandleStep c:\tcaf\managerstep.ini DisplayInfoByFileHandle_DRM_Content |
|
663 END_TESTCASE SEC-CAF-MAN-0040 |
|
664 |
|
665 //! @file |
|
666 //! @SYMTestCaseID SEC-CAF-MAN-0041 |
|
667 //! @SYMTestCaseDesc Query standardised information about a content object using a file handle. |
|
668 //! (FileHandle-PlainText) |
|
669 //! @SYMREQ REQ8758 |
|
670 //! @SYMTestStatus Implemented |
|
671 //! @SYMTestPriority Normal |
|
672 //! @SYMTestActions 1. Get a content's attribute from a file specified by file handle |
|
673 //! 2. Get content’s set of attributes from a file specified by file handle. |
|
674 //! 3. Get content’s text string attribute from a file specified by file handle. |
|
675 //! 4. Get content’s set of string attributes from a file specified by file handle. |
|
676 //! 5. View information associated with a single content object in a file specified by file handle. |
|
677 //! @SYMTestExpectedResults 1.Should return KErrNone. Attribute’s value should match the expected value. |
|
678 //! 2.Should return KErrNone. Value of all the attributes queried must match the expected value. |
|
679 //! 3.Should return KErrNone. The text string attribute value should match the expected value. |
|
680 //! 4.Should return KErrNone. Value of all the text string attributes queried must match the expected value. |
|
681 //! 5.Should return KErrCANotSupported |
|
682 //! @SYMTestType CIT |
|
683 |
|
684 START_TESTCASE SEC-CAF-MAN-0041 |
|
685 RUN_TEST_STEP 100 tcaf CAFManagerAttributeByFileHandleStep c:\tcaf\attributes.ini Attribute |
|
686 RUN_TEST_STEP 100 tcaf CAFManagerAttributeSetByFileHandleStep c:\tcaf\attributes.ini AttributeSet |
|
687 RUN_TEST_STEP 100 tcaf CAFManagerStringAttributeByFileHandleStep c:\tcaf\attributes.ini StringAttribute |
|
688 RUN_TEST_STEP 100 tcaf CAFManagerStringAttributeSetByFileHandleStep c:\tcaf\attributes.ini StringAttributeSet_PlainText |
|
689 RUN_TEST_STEP 100 tcaf CAFManagerDisplayInfoByFileHandleStep c:\tcaf\managerstep.ini DisplayInfo |
|
690 END_TESTCASE SEC-CAF-MAN-0041 |
|
691 //--------------------------------------------------------------------------------------------------------------------------------- |
|
692 |