First public contribution.
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".
9 // Initial Contributors:
10 // Nokia Corporation - initial contribution.
21 // Required for managerstep.script test cases
22 RUN_UTILS MkDir C:\private\
23 RUN_UTILS MkDir C:\private\Reference Test Agent\
26 RUN_UTILS Delete c:\tcaf\testdata\sample.content
28 START_TESTCASE SEC-CAF-MAN-0001
30 //! @SYMTestCaseID SEC-CAF-MAN-0001
31 //! @SYMTestCaseDesc Create a sample Drm archive
32 //! (TCAF_CreateArchive)
34 //! @SYMTestStatus Implemented
35 //! @SYMTestPriority Normal
36 //! @SYMTestActions Constructs a DRM archive from the content and rights xml files provided
37 //! @SYMTestExpectedResults A .contentrights file is produced
39 RUN_TEST_STEP 100 RTAUtils CreateDrmArchive c:\tcaf\managerstep.ini CreateDrmArchive
40 END_TESTCASE SEC-CAF-MAN-0001
42 START_TESTCASE SEC-CAF-MAN-0002
44 //! @SYMTestCaseID SEC-CAF-MAN-0002
45 //! @SYMTestCaseDesc Plaintext Copy File not found
46 //! (PlainText_CopyFile_Not_Found)
48 //! @SYMTestStatus Implemented
49 //! @SYMTestPriority Critical
50 //! @SYMTestActions Attempt to copy an file that does not exist, should return expected error code
51 //! @SYMTestExpectedResults returns expected error code
53 RUN_TEST_STEP 100 tcaf CAFCopyFileStep c:\tcaf\managerstep.ini PlainTextCopyFileNotFound
54 END_TESTCASE SEC-CAF-MAN-0002
56 START_TESTCASE SEC-CAF-MAN-0003
58 //! @SYMTestCaseID SEC-CAF-MAN-0003
59 //! @SYMTestCaseDesc Plaintext Copy File
60 //! (PlainText_CopyFile)
62 //! @SYMTestStatus Implemented
63 //! @SYMTestPriority Critical
64 //! @SYMTestActions Attempt to copy an unprotected file
65 //! @SYMTestExpectedResults File copied sucessfully
67 RUN_TEST_STEP 100 tcaf CAFCopyFileStep c:\tcaf\managerstep.ini PlainTextCopyFileOk
68 END_TESTCASE SEC-CAF-MAN-0003
70 START_TESTCASE SEC-CAF-MAN-0004
72 //! @SYMTestCaseID SEC-CAF-MAN-0004
73 //! @SYMTestCaseDesc Rename a file in the same directory using CAF
74 //! (PlainText_RenameFile_Ok)
76 //! @SYMTestStatus Implemented
77 //! @SYMTestPriority Critical
78 //! @SYMTestActions Use CAF to try and rename a file
79 //! @SYMTestExpectedResults Rename should return KErrNone
81 RUN_TEST_STEP 100 tcaf CAFRenameFileStep c:\tcaf\managerstep.ini PlainTextRenameFileOk
82 END_TESTCASE SEC-CAF-MAN-0004
84 START_TESTCASE SEC-CAF-MAN-0005
86 //! @SYMTestCaseID SEC-CAF-MAN-0005
87 //! @SYMTestCaseDesc Rename a non existant file using caf
88 //! (PlainText_RenameFile_Fail)
90 //! @SYMTestStatus Implemented
91 //! @SYMTestPriority Critical
92 //! @SYMTestActions Use CAF to try and rename a file that does not exist
93 //! @SYMTestExpectedResults Rename should return KErrNotFound
95 RUN_TEST_STEP 100 tcaf CAFRenameFileStep c:\tcaf\managerstep.ini PlainTextRenameFileNotFound
96 END_TESTCASE SEC-CAF-MAN-0005
98 START_TESTCASE SEC-CAF-MAN-0006
100 //! @SYMTestCaseID SEC-CAF-MAN-0006
101 //! @SYMTestCaseDesc Move file across different drives using CAF
102 //! (PlainText_DifferentDrivesSameNameRenameFile_Ok)
103 //! @SYMREQ REQ3691, INC106214
104 //! @SYMTestStatus Implemented
105 //! @SYMTestPriority Critical
106 //! @SYMTestActions Use CAF to try and move a file to a different drive
107 //! @SYMTestExpectedResults Rename should return KErrNone
109 RUN_TEST_STEP 100 tcaf CAFRenameFileStep c:\tcaf\managerstep.ini DifferentDrivesSameNameRenameFileOk
110 END_TESTCASE SEC-CAF-MAN-0006
112 START_TESTCASE SEC-CAF-MAN-0007
114 //! @SYMTestCaseID SEC-CAF-MAN-0007
115 //! @SYMTestCaseDesc Move file across different drives using CAF
116 //! (PlainText_DifferentDrivesDifferentNameRenameFile_Ok)
117 //! @SYMREQ REQ3691, INC106214
118 //! @SYMTestStatus Implemented
119 //! @SYMTestPriority Critical
120 //! @SYMTestActions Use CAF to try and move a file to a different drive while changing the file name
121 //! @SYMTestExpectedResults Rename should return KErrNone
123 RUN_TEST_STEP 100 tcaf CAFRenameFileStep c:\tcaf\managerstep.ini DifferentDrivesDifferentNameRenameFileOk
124 END_TESTCASE SEC-CAF-MAN-0007
126 START_TESTCASE SEC-CAF-MAN-0008
128 //! @SYMTestCaseID SEC-CAF-MAN-0008
129 //! @SYMTestCaseDesc Delete a plain text file using CAF
130 //! (PlainText_Delete_Ok)
132 //! @SYMTestStatus Implemented
133 //! @SYMTestPriority Critical
134 //! @SYMTestActions Use CAF to delete the file that was copied in the previous test
135 //! @SYMTestExpectedResults Delete should return KErrNone when the file is deleted
137 RUN_TEST_STEP 100 tcaf CAFDeleteStep c:\tcaf\managerstep.ini PlainTextDeleteOk
138 END_TESTCASE SEC-CAF-MAN-0008
140 START_TESTCASE SEC-CAF-MAN-0009
142 //! @SYMTestCaseID SEC-CAF-MAN-0009
143 //! @SYMTestCaseDesc Delete a non existant file using caf
144 //! (PlainText_Delete_Fail)
146 //! @SYMTestStatus Implemented
147 //! @SYMTestPriority Critical
148 //! @SYMTestActions Use CAF to try and delete a file that does not exist
149 //! @SYMTestExpectedResults Delete should return KErrNotFound
151 RUN_TEST_STEP 100 tcaf CAFDeleteStep c:\tcaf\managerstep.ini PlainTextDeleteFail
152 END_TESTCASE SEC-CAF-MAN-0009
154 START_TESTCASE SEC-CAF-MAN-0010
156 //! @SYMTestCaseID SEC-CAF-MAN-0010
157 //! @SYMTestCaseDesc Tries to creates several nested directories
158 //! (public_Mkdir_fail)
160 //! @SYMTestStatus Implemented
161 //! @SYMTestPriority Critical
162 //! @SYMTestActions Use CAF to create a nested directory in the file system, fails
163 //! @SYMTestExpectedResults MkDir should return kErrPathNotFound
165 RUN_TEST_STEP 100 tcaf CAFMkDirStep c:\tcaf\managerstep.ini MkDirPublicDirFail
166 END_TESTCASE SEC-CAF-MAN-0010
168 START_TESTCASE SEC-CAF-MAN-0011
171 //! @SYMTestCaseID SEC-CAF-MAN-0011
172 //! @SYMTestCaseDesc Creates a directory in a public part of the file system
173 //! (public_Mkdir_Ok)
175 //! @SYMTestStatus Implemented
176 //! @SYMTestPriority Critical
177 //! @SYMTestActions Use CAF to create a directory in the file system
178 //! @SYMTestExpectedResults MkDir should return kErrNone
180 RUN_TEST_STEP 100 tcaf CAFMkDirStep c:\tcaf\managerstep.ini MkDirPublicDirOk
181 END_TESTCASE SEC-CAF-MAN-0011
183 START_TESTCASE SEC-CAF-MAN-0012
185 //! @SYMTestCaseID SEC-CAF-MAN-0012
186 //! @SYMTestCaseDesc Creates a directory in a public part of the file system
189 //! @SYMTestStatus Implemented
190 //! @SYMTestPriority Critical
191 //! @SYMTestActions Use CAF to create a directory in the file system
192 //! @SYMTestExpectedResults MkDir should return kErrNone
194 RUN_TEST_STEP 100 tcaf CAFRmDirStep c:\tcaf\managerstep.ini RmDirPublicDirOk
195 END_TESTCASE SEC-CAF-MAN-0012
197 START_TESTCASE SEC-CAF-MAN-0013
199 //! @SYMTestCaseID SEC-CAF-MAN-0013
200 //! @SYMTestCaseDesc Remove a directory that does not exist
201 //! (public_Rmdir_fail)
203 //! @SYMTestStatus Implemented
204 //! @SYMTestPriority Critical
205 //! @SYMTestActions Use CAF to remove a directory that does not exist in the file system
206 //! @SYMTestExpectedResults RmDir should return KErrNotFound
208 RUN_TEST_STEP 100 tcaf CAFRmDirStep c:\tcaf\managerstep.ini RmDirPublicDirFail
209 END_TESTCASE SEC-CAF-MAN-0013
211 START_TESTCASE SEC-CAF-MAN-0014
213 //! @SYMTestCaseID SEC-CAF-MAN-0014
214 //! @SYMTestCaseDesc Creates a directory in a public part of the file system
215 //! (public_MkDirAll_ok)
217 //! @SYMTestStatus Implemented
218 //! @SYMTestPriority Critical
219 //! @SYMTestActions Use CAF to create a directory in the file system
220 //! @SYMTestExpectedResults MkDir should return kErrNone
222 RUN_TEST_STEP 100 tcaf CAFMkDirAllStep c:\tcaf\managerstep.ini MkDirAllPublicDirOk
223 END_TESTCASE SEC-CAF-MAN-0014
225 START_TESTCASE SEC-CAF-MAN-0015
227 //! @SYMTestCaseID SEC-CAF-MAN-0015
228 //! @SYMTestCaseDesc Create directory fails
229 //! (public_MkDirAll_fail)
231 //! @SYMTestStatus Implemented
232 //! @SYMTestPriority Critical
233 //! @SYMTestActions Use CAF to create a directory on the read only Z:\ drive
234 //! @SYMTestExpectedResults MkDir should return kErrAccessDenied
236 RUN_TEST_STEP 100 tcaf CAFMkDirAllStep c:\tcaf\managerstep.ini MkDirAllPublicDirFail
237 END_TESTCASE SEC-CAF-MAN-0015
239 START_TESTCASE SEC-CAF-MAN-0016
241 //! @SYMTestCaseID SEC-CAF-MAN-0016
242 //! @SYMTestCaseDesc List a directory
243 //! (public_GetDir1_ok)
245 //! @SYMTestStatus Implemented
246 //! @SYMTestPriority Critical
247 //! @SYMTestActions Use CAF to list a directory
248 //! @SYMTestExpectedResults GetDir should return KErrNone
250 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirAPI1StepOk
251 END_TESTCASE SEC-CAF-MAN-0016
253 START_TESTCASE SEC-CAF-MAN-0017
255 //! @SYMTestCaseID SEC-CAF-MAN-0017
256 //! @SYMTestCaseDesc List a directory
257 //! (public_GetDir2_ok)
259 //! @SYMTestStatus Implemented
260 //! @SYMTestPriority Critical
261 //! @SYMTestActions Use CAF to list a directory
262 //! @SYMTestExpectedResults GetDir should return KErrNone
264 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirAPI2StepOk
265 END_TESTCASE SEC-CAF-MAN-0017
267 START_TESTCASE SEC-CAF-MAN-0018
269 //! @SYMTestCaseID SEC-CAF-MAN-0018
270 //! @SYMTestCaseDesc List a directory
271 //! (public_GetDir3_ok)
273 //! @SYMTestStatus Implemented
274 //! @SYMTestPriority Critical
275 //! @SYMTestActions Use CAF to list a directory
276 //! @SYMTestExpectedResults GetDir should return KErrNone
278 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirAPI3StepOk
279 END_TESTCASE SEC-CAF-MAN-0018
281 START_TESTCASE SEC-CAF-MAN-0019
283 //! @SYMTestCaseID SEC-CAF-MAN-0019
284 //! @SYMTestCaseDesc List a directory
285 //! (public_GetDir_fail)
287 //! @SYMTestStatus Implemented
288 //! @SYMTestPriority Critical
289 //! @SYMTestActions Use CAF to list a directory
290 //! @SYMTestExpectedResults GetDir should return KErrPathNotFound
292 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirStepFail
293 END_TESTCASE SEC-CAF-MAN-0019
295 START_TESTCASE SEC-CAF-MAN-0020
297 //! @SYMTestCaseID SEC-CAF-MAN-0020
298 //! @SYMTestCaseDesc List a directory
299 //! (public_GetDir_Private1)
301 //! @SYMTestStatus Implemented
302 //! @SYMTestPriority Critical
303 //! @SYMTestActions Use CAF to list a C:\private\
304 //! @SYMTestExpectedResults GetDir should return KErrNone
306 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirAPI1StepPrivate
307 END_TESTCASE SEC-CAF-MAN-0020
309 START_TESTCASE SEC-CAF-MAN-0021
311 //! @SYMTestCaseID SEC-CAF-MAN-0021
312 //! @SYMTestCaseDesc List a directory
313 //! (public_GetDir_Private2)
315 //! @SYMTestStatus Implemented
316 //! @SYMTestPriority Critical
317 //! @SYMTestActions Use CAF to list a C:\private\
318 //! @SYMTestExpectedResults GetDir should return KErrNone
320 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirAPI2StepPrivate
321 END_TESTCASE SEC-CAF-MAN-0021
323 START_TESTCASE SEC-CAF-MAN-0022
325 //! @SYMTestCaseID SEC-CAF-MAN-0022
326 //! @SYMTestCaseDesc List a directory
327 //! (public_GetDir_Private3)
329 //! @SYMTestStatus Implemented
330 //! @SYMTestPriority Critical
331 //! @SYMTestActions Use CAF to list a C:\private\
332 //! @SYMTestExpectedResults GetDir should return KErrNone
334 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirAPI3StepPrivate
335 END_TESTCASE SEC-CAF-MAN-0022
337 START_TESTCASE SEC-CAF-MAN-0023
339 //! @SYMTestCaseID SEC-CAF-MAN-0023
340 //! @SYMTestCaseDesc Copy File to private dir
341 //! (private_CopyFile_Ok)
343 //! @SYMTestStatus Implemented
344 //! @SYMTestPriority Critical
345 //! @SYMTestActions Attempt to copy an file to the reference test agent private dir
346 //! @SYMTestExpectedResults copy succeeds
348 RUN_TEST_STEP 100 tcaf CAFCopyFileStep c:\tcaf\managerstep.ini PrivateCopyFileOk
349 END_TESTCASE SEC-CAF-MAN-0023
351 START_TESTCASE SEC-CAF-MAN-0024
353 //! @SYMTestCaseID SEC-CAF-MAN-0024
354 //! @SYMTestCaseDesc Creates a directory in the private directory of the reference test agent
355 //! (private_Mkdir_Ok)
357 //! @SYMTestStatus Implemented
358 //! @SYMTestPriority Critical
359 //! @SYMTestActions Use CAF to create a directory in agents private directory
360 //! @SYMTestExpectedResults MkDir should return kErrNone
362 RUN_TEST_STEP 100 tcaf CAFMkDirStep c:\tcaf\managerstep.ini MkDirPrivateDirOk
363 END_TESTCASE SEC-CAF-MAN-0024
365 START_TESTCASE SEC-CAF-MAN-0025
367 //! @SYMTestCaseID SEC-CAF-MAN-0025
368 //! @SYMTestCaseDesc List a directory
369 //! (public_GetDir_Private1)
371 //! @SYMTestStatus Implemented
372 //! @SYMTestPriority Critical
373 //! @SYMTestActions Use CAF to list a C:\private\Reference Test Agent\
374 //! @SYMTestExpectedResults GetDir should return KErrNone
376 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirAPI1StepPrivateServer
377 END_TESTCASE SEC-CAF-MAN-0025
379 START_TESTCASE SEC-CAF-MAN-0026
381 //! @SYMTestCaseID SEC-CAF-MAN-0026
382 //! @SYMTestCaseDesc List a directory
383 //! (public_GetDir_Private2)
385 //! @SYMTestStatus Implemented
386 //! @SYMTestPriority Critical
387 //! @SYMTestActions Use CAF to list a C:\private\Reference Test Agent\
388 //! @SYMTestExpectedResults GetDir should return KErrNone
390 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirAPI2StepPrivateServer
391 END_TESTCASE SEC-CAF-MAN-0026
393 START_TESTCASE SEC-CAF-MAN-0027
395 //! @SYMTestCaseID SEC-CAF-MAN-0027
396 //! @SYMTestCaseDesc List a directory
397 //! (public_GetDir_Private3)
399 //! @SYMTestStatus Implemented
400 //! @SYMTestPriority Critical
401 //! @SYMTestActions Use CAF to list a C:\private\Reference Test Agent\
402 //! @SYMTestExpectedResults GetDir should return KErrNone
404 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirAPI3StepPrivateServer
405 END_TESTCASE SEC-CAF-MAN-0027
407 START_TESTCASE SEC-CAF-MAN-0028
409 //! @SYMTestCaseID SEC-CAF-MAN-0028
410 //! @SYMTestCaseDesc Delete a file in the reference test agents private directory
411 //! (Private_Delete_Ok)
413 //! @SYMTestStatus Implemented
414 //! @SYMTestPriority Critical
415 //! @SYMTestActions Use CAF to delete the file in the private directory of the reference test agent
416 //! @SYMTestExpectedResults Delete should return KErrNone when the file is deleted
418 RUN_TEST_STEP 100 tcaf CAFDeleteStep c:\tcaf\managerstep.ini PrivateDeleteFileOk
419 END_TESTCASE SEC-CAF-MAN-0028
421 START_TESTCASE SEC-CAF-MAN-0029
423 //! @SYMTestCaseID SEC-CAF-MAN-0029
424 //! @SYMTestCaseDesc Remove a directory within the agents private directory
427 //! @SYMTestStatus Implemented
428 //! @SYMTestPriority Critical
429 //! @SYMTestActions Use CAF to remove a directory in the agents private directory
430 //! @SYMTestExpectedResults MkDir should return kErrNone
432 RUN_TEST_STEP 100 tcaf CAFRmDirStep c:\tcaf\managerstep.ini RmDirPrivateDirOk
433 END_TESTCASE SEC-CAF-MAN-0029
435 START_TESTCASE SEC-CAF-MAN-0030
437 //! @SYMTestCaseID SEC-CAF-MAN-0030
438 //! @SYMTestCaseDesc Request a status notification on a file
439 //! (Manager_NotifyStatusChange)
441 //! @SYMTestStatus Implemented
442 //! @SYMTestPriority Normal
443 //! @SYMTestActions Request a notification on an unprotected file
444 //! @SYMTestExpectedResults Should return KErrCANotSupported
446 RUN_TEST_STEP 100 tcaf CAFManagerNotifyStep c:\tcaf\managerstep.ini NotifyStatusChange
447 END_TESTCASE SEC-CAF-MAN-0030
449 START_TESTCASE SEC-CAF-MAN-0031
451 //! @SYMTestCaseID SEC-CAF-MAN-0031
452 //! @SYMTestCaseDesc Set a property within all agents
453 //! (Manager_SetProperty)
455 //! @SYMTestStatus Implemented
456 //! @SYMTestPriority Normal
457 //! @SYMTestActions Set a property within all agents
458 //! @SYMTestExpectedResults Should return KErrCANotSupported
460 RUN_TEST_STEP 100 tcaf CAFManagerSetPropertyStep c:\tcaf\managerstep.ini SetProperty
461 END_TESTCASE SEC-CAF-MAN-0031
463 START_TESTCASE SEC-CAF-MAN-0032
465 //! @SYMTestCaseID SEC-CAF-MAN-0032
466 //! @SYMTestCaseDesc Display information about an unprotected file
467 //! (Manager_DisplayInfo)
469 //! @SYMTestStatus Implemented
470 //! @SYMTestPriority Normal
471 //! @SYMTestActions Ask the agent to display information about the file
472 //! @SYMTestExpectedResults Should return KErrCANotSupported
474 RUN_TEST_STEP 100 tcaf CAFManagerDisplayInfoStep c:\tcaf\managerstep.ini DisplayInfo
475 END_TESTCASE SEC-CAF-MAN-0032
477 START_TESTCASE SEC-CAF-MAN-0033
479 //! @SYMTestCaseID SEC-CAF-MAN-0033
480 //! @SYMTestCaseDesc List all the agents not including the F32 Agent
481 //! (Manager_List_Agents)
483 //! @SYMTestStatus Implemented
484 //! @SYMTestPriority Normal
485 //! @SYMTestActions List all agents
486 //! @SYMTestExpectedResults Should return KErrNone
488 RUN_TEST_STEP 100 tcaf CAFManagerListAgentsStep c:\tcaf\managerstep.ini ListAgents
489 END_TESTCASE SEC-CAF-MAN-0033
491 START_TESTCASE SEC-CAF-MAN-0034
493 //! @SYMTestCaseID SEC-CAF-MAN-0034
494 //! @SYMTestCaseDesc Execute an agent specific command
495 //! (Manager_Agent_Specific)
497 //! @SYMTestStatus Implemented
498 //! @SYMTestPriority Normal
499 //! @SYMTestActions Execute an agent specific command
500 //! @SYMTestExpectedResults Should return KErrNone
502 RUN_TEST_STEP 100 tcaf CAFManagerAgentSpecificStep c:\tcaf\managerstep.ini AgentSpecific
503 END_TESTCASE SEC-CAF-MAN-0034
505 START_TESTCASE SEC-CAF-MAN-0035
507 //! @SYMTestCaseID SEC-CAF-MAN-0035
508 //! @SYMTestCaseDesc Execute an agent specific command
509 //! (Manager_Display_Management_Info)
511 //! @SYMTestStatus Implemented
512 //! @SYMTestPriority Normal
513 //! @SYMTestActions Execute an agent specific command
514 //! @SYMTestExpectedResults Should return KErrCANotSupported
516 RUN_TEST_STEP 100 tcaf CAFManagerDisplayConfigStep c:\tcaf\managerstep.ini DisplayManagement
517 END_TESTCASE SEC-CAF-MAN-0035
519 START_TESTCASE SEC-CAF-MAN-0036
521 //! @SYMTestCaseID SEC-CAF-MAN-0036
522 //! @SYMTestCaseDesc Get an attribute for a file
523 //! (Manager_Attribute)
525 //! @SYMTestStatus Implemented
526 //! @SYMTestPriority Normal
527 //! @SYMTestActions Get a single attribute for a file
528 //! @SYMTestExpectedResults Should return KErrNone
530 RUN_TEST_STEP 100 tcaf CAFManagerAttributeStep c:\tcaf\attributes.ini Attribute
531 END_TESTCASE SEC-CAF-MAN-0036
533 START_TESTCASE SEC-CAF-MAN-0037
535 //! @SYMTestCaseID SEC-CAF-MAN-0037
536 //! @SYMTestCaseDesc Get a set of attributes for a file
537 //! (Manager_AttributeSet)
539 //! @SYMTestStatus Implemented
540 //! @SYMTestPriority Normal
541 //! @SYMTestActions Get a set of attributes for a file
542 //! @SYMTestExpectedResults Should return KErrNone
544 RUN_TEST_STEP 100 tcaf CAFManagerAttributeSetStep c:\tcaf\attributes.ini AttributeSet
545 END_TESTCASE SEC-CAF-MAN-0037
547 START_TESTCASE SEC-CAF-MAN-0038
549 //! @SYMTestCaseID SEC-CAF-MAN-0038
550 //! @SYMTestCaseDesc Get a string attribute for a file
551 //! (Manager_String_Attribute)
553 //! @SYMTestStatus Implemented
554 //! @SYMTestPriority Normal
555 //! @SYMTestActions Get a single string attribute for a file
556 //! @SYMTestExpectedResults Should return KErrNone
558 RUN_TEST_STEP 100 tcaf CAFManagerStringAttributeStep c:\tcaf\attributes.ini StringAttribute
559 END_TESTCASE SEC-CAF-MAN-0038
561 START_TESTCASE SEC-CAF-MAN-3457
563 //! @SYMTestCaseID SEC-CAF-MAN-3457
564 //! @SYMTestCaseDesc Get a string attribute for a manager object within a valid gif file
565 //! @SYMDEF PDEF104571
566 //! @SYMTestStatus Implemented
567 //! @SYMTestPriority Normal
568 //! @SYMTestActions Get a single string attribute for a manager object within a valid gif file
569 //! @SYMTestExpectedResults A string attribute should successfully be returned
571 RUN_TEST_STEP 100 tcaf CAFManagerStringAttributeStep c:\tcaf\attributes.ini StringAttributeGoodGif
572 END_TESTCASE SEC-CAF-MAN-3457
574 START_TESTCASE SEC-CAF-MAN-3458
576 //! @SYMTestCaseID SEC-CAF-MAN-3458
577 //! @SYMTestCaseDesc Failure to return a string attribute for a manager object within an invalid gif file
578 //! @SYMDEF PDEF104571
579 //! @SYMTestStatus Implemented
580 //! @SYMTestPriority Normal
581 //! @SYMTestActions Attempt to get a single string attribute for a manager object within an invalid gif file
582 //! @SYMTestExpectedResults An error should be returned
584 RUN_TEST_STEP 100 tcaf CAFManagerStringAttributeStep c:\tcaf\attributes.ini StringAttributeErrorGif
585 END_TESTCASE SEC-CAF-MAN-3458
587 START_TESTCASE SEC-CAF-MAN-0039
589 //! @SYMTestCaseID SEC-CAF-MAN-0039
590 //! @SYMTestCaseDesc Get a set of string attributes for a file
591 //! (Manager_String_AttributeSet)
593 //! @SYMTestStatus Implemented
594 //! @SYMTestPriority Normal
595 //! @SYMTestActions Get a set of string attributes for a file
596 //! @SYMTestExpectedResults Should return KErrNone
598 RUN_TEST_STEP 100 tcaf CAFManagerStringAttributeSetStep c:\tcaf\attributes.ini StringAttributeSet
599 END_TESTCASE SEC-CAF-MAN-0039
601 START_TESTCASE SEC-CAF-MAN-3459
603 //! @SYMTestCaseID SEC-CAF-MAN-3459
604 //! @SYMTestCaseDesc Get a set of string attributes for a manager object within a valid gif file
605 //! @SYMDEF PDEF104571
606 //! @SYMTestStatus Implemented
607 //! @SYMTestPriority Normal
608 //! @SYMTestActions Get a set of string attributes for a manager object within a valid gif file
609 //! @SYMTestExpectedResults A set of string attributes should successfully be returned
611 RUN_TEST_STEP 100 tcaf CAFManagerStringAttributeSetStep c:\tcaf\attributes.ini StringAttributeSetGoodGif
612 END_TESTCASE SEC-CAF-MAN-3459
614 START_TESTCASE SEC-CAF-MAN-3460
616 //! @SYMTestCaseID SEC-CAF-MAN-3460
617 //! @SYMTestCaseDesc Get a set of string attributes for a manager object within an invalid gif file
618 //! @SYMDEF PDEF104571
619 //! @SYMTestStatus Implemented
620 //! @SYMTestPriority Normal
621 //! @SYMTestActions Get a set of string attributes for a manager object within an invalid gif file
622 //! @SYMTestExpectedResults An error should be returned for the invalid gif file within the set
624 RUN_TEST_STEP 100 tcaf CAFManagerStringAttributeSetStep c:\tcaf\attributes.ini StringAttributeSetErrorGif
625 END_TESTCASE SEC-CAF-MAN-3460
628 //---------------------------------------------------------------------------------------------------------------------------------
630 //! @SYMTestCaseID SEC-CAF-MAN-0040
631 //! @SYMTestCaseDesc Query standardised information about a content object using a file handle.
632 //! (FileHandle-DRM-Content)
634 //! @SYMTestStatus Implemented
635 //! @SYMTestPriority Normal
636 //! @SYMTestActions 1. Get a content's attribute from a file specified by file handle
637 //! 2. Get content’s set of attributes from a file specified by file handle.
638 //! 3. Get content’s text string attribute from a file specified by file handle.
639 //! 4. Get content’s set of string attributes from a file specified by file handle.
640 //! 5. View information associated with a single content object in a file specified by file handle.
641 //! @SYMTestExpectedResults 1.Should return KErrNone. Attribute’s value should match the expected value.
642 //! 2.Should return KErrNone. Value of all the attributes queried must match the expected value.
643 //! 3.Should return KErrNone. The text string attribute value should match the expected value.
644 //! 4.Should return KErrNone. Value of all the text string attributes queried must match the expected value.
645 //! 5.Should return KErrCANotSupported
648 START_TESTCASE SEC-CAF-MAN-0040
649 RUN_TEST_STEP 100 tcaf CAFManagerAttributeByFileHandleStep c:\tcaf\attributes.ini AttributeByFileHandle_DRM_Content
650 RUN_TEST_STEP 100 tcaf CAFManagerAttributeSetByFileHandleStep c:\tcaf\attributes.ini AttributeSetByFileHandle_DRM_Content
651 RUN_TEST_STEP 100 tcaf CAFManagerStringAttributeByFileHandleStep c:\tcaf\attributes.ini StringAttributeByFileHandle_DRM_Content
652 RUN_TEST_STEP 100 tcaf CAFManagerStringAttributeSetByFileHandleStep c:\tcaf\attributes.ini StringAttributeSetByFileHandle_DRM_Content
653 RUN_TEST_STEP 100 tcaf CAFManagerDisplayInfoByFileHandleStep c:\tcaf\managerstep.ini DisplayInfoByFileHandle_DRM_Content
654 END_TESTCASE SEC-CAF-MAN-0040
657 //! @SYMTestCaseID SEC-CAF-MAN-0041
658 //! @SYMTestCaseDesc Query standardised information about a content object using a file handle.
659 //! (FileHandle-PlainText)
661 //! @SYMTestStatus Implemented
662 //! @SYMTestPriority Normal
663 //! @SYMTestActions 1. Get a content's attribute from a file specified by file handle
664 //! 2. Get content’s set of attributes from a file specified by file handle.
665 //! 3. Get content’s text string attribute from a file specified by file handle.
666 //! 4. Get content’s set of string attributes from a file specified by file handle.
667 //! 5. View information associated with a single content object in a file specified by file handle.
668 //! @SYMTestExpectedResults 1.Should return KErrNone. Attribute’s value should match the expected value.
669 //! 2.Should return KErrNone. Value of all the attributes queried must match the expected value.
670 //! 3.Should return KErrNone. The text string attribute value should match the expected value.
671 //! 4.Should return KErrNone. Value of all the text string attributes queried must match the expected value.
672 //! 5.Should return KErrCANotSupported
675 START_TESTCASE SEC-CAF-MAN-0041
676 RUN_TEST_STEP 100 tcaf CAFManagerAttributeByFileHandleStep c:\tcaf\attributes.ini Attribute
677 RUN_TEST_STEP 100 tcaf CAFManagerAttributeSetByFileHandleStep c:\tcaf\attributes.ini AttributeSet
678 RUN_TEST_STEP 100 tcaf CAFManagerStringAttributeByFileHandleStep c:\tcaf\attributes.ini StringAttribute
679 RUN_TEST_STEP 100 tcaf CAFManagerStringAttributeSetByFileHandleStep c:\tcaf\attributes.ini StringAttributeSet_PlainText
680 RUN_TEST_STEP 100 tcaf CAFManagerDisplayInfoByFileHandleStep c:\tcaf\managerstep.ini DisplayInfo
681 END_TESTCASE SEC-CAF-MAN-0041
682 //---------------------------------------------------------------------------------------------------------------------------------