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 //! @SYMTestCaseID SEC-CAF-CONT-0001
22 //! @SYMTestCaseDesc Get an attribute for a content object within a file
25 //! @SYMTestStatus Implemented
26 //! @SYMTestPriority Normal
27 //! @SYMTestActions Get a single attribute for a content object within a file
28 //! @SYMTestExpectedResults Should return KErrNone
30 START_TESTCASE SEC-CAF-CONT-0001
31 RUN_TEST_STEP 100 tcaf CAFContentAttributeStep c:\tcaf\attributes.ini Attribute
32 END_TESTCASE SEC-CAF-CONT-0001
35 //! @SYMTestCaseID SEC-CAF-CONT-0002
36 //! @SYMTestCaseDesc Get a set of attributes for a content object within a file
39 //! @SYMTestStatus Implemented
40 //! @SYMTestPriority Normal
41 //! @SYMTestActions Get a set of attributes for a content object within a file
42 //! @SYMTestExpectedResults Should return KErrNone
44 START_TESTCASE SEC-CAF-CONT-0002
45 RUN_TEST_STEP 100 tcaf CAFContentAttributeSetStep c:\tcaf\attributes.ini AttributeSet
46 END_TESTCASE SEC-CAF-CONT-0002
49 //! @SYMTestCaseID SEC-CAF-CONT-0003
50 //! @SYMTestCaseDesc Get a string attribute for a content object within a file
51 //! (String_Attribute)
53 //! @SYMTestStatus Implemented
54 //! @SYMTestPriority Normal
55 //! @SYMTestActions Get a single string attribute for a content object within a file
56 //! @SYMTestExpectedResults Should return KErrNone
58 START_TESTCASE SEC-CAF-CONT-0003
59 RUN_TEST_STEP 100 tcaf CAFContentStringAttributeStep c:\tcaf\attributes.ini StringAttribute
60 END_TESTCASE SEC-CAF-CONT-0003
63 //! @SYMTestCaseID SEC-CAF-CONT-3447
64 //! @SYMTestCaseDesc Get a string attribute for a content object within a valid gif file
65 //! @SYMDEF PDEF104571
66 //! @SYMTestStatus Implemented
67 //! @SYMTestPriority Normal
68 //! @SYMTestActions Get a single string attribute for a content object within a valid gif file
69 //! @SYMTestExpectedResults A string attribute should successfully be returned
71 START_TESTCASE SEC-CAF-CONT-3447
72 RUN_TEST_STEP 100 tcaf CAFContentStringAttributeStep c:\tcaf\attributes.ini StringAttributeGoodGif
73 END_TESTCASE SEC-CAF-CONT-3447
76 //! @SYMTestCaseID SEC-CAF-CONT-3448
77 //! @SYMTestCaseDesc Failure to return a string attribute for a content object within
78 //! an invalid gif file
79 //! @SYMDEF PDEF104571
80 //! @SYMTestStatus Implemented
81 //! @SYMTestPriority Normal
82 //! @SYMTestActions Attempt to get a single string attribute for a content object within an invalid gif file
83 //! @SYMTestExpectedResults An error should be returned
85 START_TESTCASE SEC-CAF-CONT-3448
86 RUN_TEST_STEP 100 tcaf CAFContentStringAttributeStep c:\tcaf\attributes.ini StringAttributeErrorGif
87 END_TESTCASE SEC-CAF-CONT-3448
90 //! @SYMTestCaseID SEC-CAF-CONT-0004
91 //! @SYMTestCaseDesc Get a set of string attributes for a content object within a file
92 //! (String_AttributeSet)
94 //! @SYMTestStatus Implemented
95 //! @SYMTestPriority Normal
96 //! @SYMTestActions Get a set of string attributes for a content object within a file
97 //! @SYMTestExpectedResults Should return KErrNone
99 START_TESTCASE SEC-CAF-CONT-0004
100 RUN_TEST_STEP 100 tcaf CAFContentStringAttributeSetStep c:\tcaf\attributes.ini StringAttributeSet
101 END_TESTCASE SEC-CAF-CONT-0004
104 //! @SYMTestCaseID SEC-CAF-CONT-3449
105 //! @SYMTestCaseDesc Get a set of string attributes for a content object within a valid gif file
106 //! @SYMDEF PDEF104571
107 //! @SYMTestStatus Implemented
108 //! @SYMTestPriority Normal
109 //! @SYMTestActions Get a set of string attributes for a content object within a valid gif file
110 //! @SYMTestExpectedResults A set of string attributes should successfully be returned
112 START_TESTCASE SEC-CAF-CONT-3449
113 RUN_TEST_STEP 100 tcaf CAFContentStringAttributeSetStep c:\tcaf\attributes.ini StringAttributeSetGoodGif
114 END_TESTCASE SEC-CAF-CONT-3449
117 //! @SYMTestCaseID SEC-CAF-CONT-3450
118 //! @SYMTestCaseDesc Get a set of string attributes for a content object within an invalid gif file
119 //! @SYMDEF PDEF104571
120 //! @SYMTestStatus Implemented
121 //! @SYMTestPriority Normal
122 //! @SYMTestActions Get a set of string attributes for a content object within an invalid gif file
123 //! @SYMTestExpectedResults An error should be returned for the invalid gif file within the set
125 START_TESTCASE SEC-CAF-CONT-3450
126 RUN_TEST_STEP 100 tcaf CAFContentStringAttributeSetStep c:\tcaf\attributes.ini StringAttributeSetErrorGif
127 END_TESTCASE SEC-CAF-CONT-3450
130 //! @SYMTestCaseID SEC-CAF-CONT-0005
131 //! @SYMTestCaseDesc Check attributes of a DRM file
134 //! @SYMTestStatus Implemented
135 //! @SYMTestPriority Critical
136 //! @SYMTestActions Check CAF attributes are the values expected
137 //! @SYMTestExpectedResults Attributes should match expected values in INI file
139 START_TESTCASE SEC-CAF-CONT-0005
140 RUN_TEST_STEP 100 tcaf CAFAttributesStep c:\tcaf\attributes.ini CAF1Attributes
141 END_TESTCASE SEC-CAF-CONT-0005
144 //! @SYMTestCaseID SEC-CAF-CONT-0006
145 //! @SYMTestCaseDesc Check for notification of a status change
146 //! (NotifyStatusChange)
148 //! @SYMTestStatus Implemented
149 //! @SYMTestPriority Critical
150 //! @SYMTestActions Check status returned matches expected value
151 //! @SYMTestExpectedResults Status changes should match expected result
153 START_TESTCASE SEC-CAF-CONT-0006
154 RUN_TEST_STEP 100 tcaf CAFContentNotifyStep c:\tcaf\ContentStep.ini NotifyStatusChange
155 END_TESTCASE SEC-CAF-CONT-0006
158 //! @SYMTestCaseID SEC-CAF-CONT-0007
159 //! @SYMTestCaseDesc Set a property within the test agent
160 //! (SetProperty_TestAgent)
162 //! @SYMTestStatus Implemented
163 //! @SYMTestPriority Critical
164 //! @SYMTestActions Check error returned matches expected value
165 //! @SYMTestExpectedResults The property should be set correctly
167 START_TESTCASE SEC-CAF-CONT-0007
168 RUN_TEST_STEP 100 tcaf CAFContentSetPropertyStep c:\tcaf\ContentStep.ini SetPropertyDrm
169 END_TESTCASE SEC-CAF-CONT-0007
172 //! @SYMTestCaseID SEC-CAF-CONT-0008
173 //! @SYMTestCaseDesc Set a property within the agent
174 //! (SetProperty_F32Agent)
176 //! @SYMTestStatus Implemented
177 //! @SYMTestPriority Critical
178 //! @SYMTestActions Check error returned matches expected value
179 //! @SYMTestExpectedResults The property should be set correctly
181 START_TESTCASE SEC-CAF-CONT-0008
182 RUN_TEST_STEP 100 tcaf CAFContentSetPropertyStep c:\tcaf\ContentStep.ini SetPropertyPlainText
183 END_TESTCASE SEC-CAF-CONT-0008
186 //! @SYMTestCaseID SEC-CAF-CONT-0009
187 //! @SYMTestCaseDesc Ask the agent to display information related to a content object
190 //! @SYMTestStatus Implemented
191 //! @SYMTestPriority Critical
192 //! @SYMTestActions Agent should display information or return an error if it doesn't support that API
193 //! @SYMTestExpectedResults Agent should return an error since information display is not supported
195 START_TESTCASE SEC-CAF-CONT-0009
196 RUN_TEST_STEP 100 tcaf CAFContentDisplayInfoStep c:\tcaf\ContentStep.ini DisplayInfo
197 END_TESTCASE SEC-CAF-CONT-0009
200 //! @SYMTestCaseID SEC-CAF-CONT-0010
201 //! @SYMTestCaseDesc Attempt to perform an extended function on a particular CAF agent
202 //! (AgentSpecific_Ok)
204 //! @SYMTestStatus Implemented
205 //! @SYMTestPriority Critical
206 //! @SYMTestActions Check error returned matches expected value
207 //! @SYMTestExpectedResults Error returned matches expected value
209 START_TESTCASE SEC-CAF-CONT-0010
210 RUN_TEST_STEP 100 tcaf CAFContentAgentSpecificStep c:\tcaf\ContentStep.ini AgentSpecificDrm
211 END_TESTCASE SEC-CAF-CONT-0010
214 //! @SYMTestCaseID SEC-CAF-CONT-0011
215 //! @SYMTestCaseDesc Attempt to perform an extended function on the F32 Agent
216 //! (AgentSpecific_Fails)
218 //! @SYMTestStatus Implemented
219 //! @SYMTestPriority Critical
220 //! @SYMTestActions Check error returned matches expected value
221 //! @SYMTestExpectedResults Error returned matches expected value
223 START_TESTCASE SEC-CAF-CONT-0011
224 RUN_TEST_STEP 100 tcaf CAFContentAgentSpecificStep c:\tcaf\ContentStep.ini AgentSpecificPlainText
225 END_TESTCASE SEC-CAF-CONT-0011
228 //! @SYMTestCaseID SEC-CAF-CONT-0012
229 //! @SYMTestCaseDesc Request rights for a given content object
232 //! @SYMTestStatus Implemented
233 //! @SYMTestPriority Critical
234 //! @SYMTestActions Check status returned matches expected value
235 //! @SYMTestExpectedResults Status changes should match expected result
237 START_TESTCASE SEC-CAF-CONT-0012
238 RUN_TEST_STEP 100 tcaf CAFContentRequestRightsStep c:\tcaf\ContentStep.ini RequestRights
239 END_TESTCASE SEC-CAF-CONT-0012
242 //! @SYMTestCaseID SEC-CAF-CONT-0013
243 //! @SYMTestCaseDesc Find the embedded objects within a container in the file
244 //! (EmbeddedObjects)
246 //! @SYMTestStatus Implemented
247 //! @SYMTestPriority Critical
248 //! @SYMTestActions List the embedded content objects within the file
249 //! @SYMTestExpectedResults Number of embedded objects found matches expected number
251 START_TESTCASE SEC-CAF-CONT-0013
252 RUN_TEST_STEP 100 tcaf CAFContentEmbeddedObjectsStep c:\tcaf\ContentStep.ini EmbeddedObjects
253 END_TESTCASE SEC-CAF-CONT-0013
256 //! @SYMTestCaseID SEC-CAF-CONT-3451
257 //! @SYMTestCaseDesc Find the embedded objects within a valid gif file
258 //! @SYMDEF PDEF104571
259 //! @SYMTestStatus Implemented
260 //! @SYMTestPriority Critical
261 //! @SYMTestActions List the embedded content objects within a valid gif file.
262 //! @SYMTestExpectedResults Returned error code matches that expected.
263 //! Number of embedded objects found matches the expected number.
265 START_TESTCASE SEC-CAF-CONT-3451
266 RUN_TEST_STEP 100 tcaf CAFContentEmbeddedObjectsStep c:\tcaf\ContentStep.ini EmbeddedObjectsGoodGif
267 END_TESTCASE SEC-CAF-CONT-3451
270 //! @SYMTestCaseID SEC-CAF-CONT-3452
271 //! @SYMTestCaseDesc Find the embedded objects within an invalid gif file
272 //! @SYMDEF PDEF104571
273 //! @SYMTestStatus Implemented
274 //! @SYMTestPriority Critical
275 //! @SYMTestActions List the embedded content objects within an invalid gif file.
276 //! @SYMTestExpectedResults Returned error code matches that expected.
277 //! Number of embedded objects found matches the expected number.
279 START_TESTCASE SEC-CAF-CONT-3452
280 RUN_TEST_STEP 100 tcaf CAFContentEmbeddedObjectsStep c:\tcaf\ContentStep.ini EmbeddedObjectsErrorGif
281 END_TESTCASE SEC-CAF-CONT-3452
284 //! @SYMTestCaseID SEC-CAF-CONT-0014
285 //! @SYMTestCaseDesc List all embedded objects of a particular type
286 //! (EmbeddedObjectType)
288 //! @SYMTestStatus Implemented
289 //! @SYMTestPriority Critical
290 //! @SYMTestActions List the embedded objects within a container that are of a certain type (content, containers etc)
291 //! @SYMTestExpectedResults Number of embedded objects found matches the expected number
293 START_TESTCASE SEC-CAF-CONT-0014
294 RUN_TEST_STEP 100 tcaf CAFContentEmbeddedObjectTypeStep c:\tcaf\ContentStep.ini EmbeddedObjectType
295 END_TESTCASE SEC-CAF-CONT-0014
298 //! @SYMTestCaseID SEC-CAF-CONT-3453
299 //! @SYMTestCaseDesc List all embedded objects of a particular type for a valid gif file
300 //! @SYMDEF PDEF104571
301 //! @SYMTestStatus Implemented
302 //! @SYMTestPriority Critical
303 //! @SYMTestActions List the embedded objects within a container that are of a certain type (content, containers etc)
304 //! for a valid gif file.
305 //! @SYMTestExpectedResults Returned error code matches that expected.
306 //! Number of embedded objects found matches the expected number.
308 START_TESTCASE SEC-CAF-CONT-3453
309 RUN_TEST_STEP 100 tcaf CAFContentEmbeddedObjectTypeStep c:\tcaf\ContentStep.ini EmbeddedObjectTypeGoodGif
310 END_TESTCASE SEC-CAF-CONT-3453
313 //! @SYMTestCaseID SEC-CAF-CONT-3454
314 //! @SYMTestCaseDesc List all embedded objects of a particular type for an invalid gif file
315 //! @SYMDEF PDEF104571
316 //! @SYMTestStatus Implemented
317 //! @SYMTestPriority Critical
318 //! @SYMTestActions List the embedded objects within a container that are of a certain type (content, containers etc)
319 //! for an invalid gif file.
320 //! @SYMTestExpectedResults Returned error code matches that expected.
321 //! Number of embedded objects found matches the expected number.
323 START_TESTCASE SEC-CAF-CONT-3454
324 RUN_TEST_STEP 100 tcaf CAFContentEmbeddedObjectTypeStep c:\tcaf\ContentStep.ini EmbeddedObjectTypeErrorGif
325 END_TESTCASE SEC-CAF-CONT-3454
328 //! @SYMTestCaseID SEC-CAF-CONT-0015
329 //! @SYMTestCaseDesc Search for content objects of a particular type within the file
330 //! (Search_TestAgent)
332 //! @SYMTestStatus Implemented
333 //! @SYMTestPriority Critical
334 //! @SYMTestActions Search for content objects of a particular type within the file
335 //! @SYMTestExpectedResults Number of content objects found matches expected number
337 START_TESTCASE SEC-CAF-CONT-0015
338 RUN_TEST_STEP 100 tcaf CAFContentSearchStep c:\tcaf\ContentStep.ini SearchTestAgent
339 END_TESTCASE SEC-CAF-CONT-0015
342 //! @SYMTestCaseID SEC-CAF-CONT-0016
343 //! @SYMTestCaseDesc Search for content objects of a particular type within the file
344 //! (Search_F32Agent)
346 //! @SYMTestStatus Implemented
347 //! @SYMTestPriority Critical
348 //! @SYMTestActions Search for content objects of a particular type within the file
349 //! @SYMTestExpectedResults Number of content objects found matches expected number
351 START_TESTCASE SEC-CAF-CONT-0016
352 RUN_TEST_STEP 100 tcaf CAFContentSearchStep c:\tcaf\ContentStep.ini SearchF32Agent
353 END_TESTCASE SEC-CAF-CONT-0016
356 //! @SYMTestCaseID SEC-CAF-CONT-3455
357 //! @SYMTestCaseDesc Search for content objects of a particular type within a valid gif file
358 //! @SYMDEF PDEF104571
359 //! @SYMTestStatus Implemented
360 //! @SYMTestPriority Critical
361 //! @SYMTestActions Search for content objects of a particular type within the file
362 //! @SYMTestExpectedResults Number of content objects found matches expected number
364 START_TESTCASE SEC-CAF-CONT-3455
365 RUN_TEST_STEP 100 tcaf CAFContentSearchStep c:\tcaf\ContentStep.ini SearchF32AgentGoodGif
366 END_TESTCASE SEC-CAF-CONT-3455
369 //! @SYMTestCaseID SEC-CAF-CONT-3456
370 //! @SYMTestCaseDesc Search for content objects of a particular type within an invalid gif file
371 //! @SYMDEF PDEF104571
372 //! @SYMTestStatus Implemented
373 //! @SYMTestPriority Critical
374 //! @SYMTestActions Search for content objects of a particular type within the file
375 //! @SYMTestExpectedResults Number of content objects found matches expected number
377 START_TESTCASE SEC-CAF-CONT-3456
378 RUN_TEST_STEP 100 tcaf CAFContentSearchStep c:\tcaf\ContentStep.ini SearchF32AgentErrorGif
379 END_TESTCASE SEC-CAF-CONT-3456
382 //! @SYMTestCaseID SEC-CAF-CONT-0017
383 //! @SYMTestCaseDesc Open a container within a file
386 //! @SYMTestStatus Implemented
387 //! @SYMTestPriority Critical
388 //! @SYMTestActions Open a container within a file
389 //! @SYMTestExpectedResults The container is opened successfully
391 START_TESTCASE SEC-CAF-CONT-0017
392 RUN_TEST_STEP 100 tcaf CAFContentContainerStep c:\tcaf\ContentStep.ini ContainerDrm
393 END_TESTCASE SEC-CAF-CONT-0017
396 //! @SYMTestCaseID SEC-CAF-CONT-0018
397 //! @SYMTestCaseDesc Attempt to open and close a container that does not exist
398 //! (Container_NotFound)
400 //! @SYMTestStatus Implemented
401 //! @SYMTestPriority Critical
402 //! @SYMTestActions Open a container that does not exist
403 //! @SYMTestExpectedResults Returns with KErrNotFound
405 START_TESTCASE SEC-CAF-CONT-0018
406 RUN_TEST_STEP 100 tcaf CAFContentContainerStep c:\tcaf\ContentStep.ini ContainerPlainText
407 END_TESTCASE SEC-CAF-CONT-0018