os/security/contentmgmt/referencedrmagent/tcaf/scripts/ContentStep.script
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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 
    18 LOAD_SUITE tcaf
    19 
    20 //! @file
    21 //! @SYMTestCaseID 		SEC-CAF-CONT-0001
    22 //! @SYMTestCaseDesc 		Get an attribute for a content object within a file
    23 //! 				(Attribute)
    24 //! @SYMREQ			REQ3679
    25 //! @SYMTestStatus		Implemented
    26 //! @SYMTestPriority		Normal
    27 //! @SYMTestActions		Get a single attribute for a content object within a file
    28 //! @SYMTestExpectedResults	Should return KErrNone
    29 //! @SYMTestType		CIT
    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
    33 
    34 //! @file
    35 //! @SYMTestCaseID 		SEC-CAF-CONT-0002
    36 //! @SYMTestCaseDesc 		Get a set of attributes for a content object within a file
    37 //! 				(AttributeSet)
    38 //! @SYMREQ			REQ3679
    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
    43 //! @SYMTestType		CIT
    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
    47 
    48 //! @file
    49 //! @SYMTestCaseID 		SEC-CAF-CONT-0003
    50 //! @SYMTestCaseDesc 		Get a string attribute for a content object within a file
    51 //! 				(String_Attribute)
    52 //! @SYMREQ			REQ3679
    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
    57 //! @SYMTestType		CIT
    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
    61 
    62 //! @file
    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
    70 //! @SYMTestType		CT
    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
    74 
    75 //! @file
    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
    84 //! @SYMTestType		CT
    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
    88 
    89 //! @file
    90 //! @SYMTestCaseID 		SEC-CAF-CONT-0004
    91 //! @SYMTestCaseDesc 		Get a set of string attributes for a content object within a file
    92 //! 				(String_AttributeSet)
    93 //! @SYMREQ			REQ3679
    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
    98 //! @SYMTestType		CIT
    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
   102 
   103 //! @file
   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
   111 //! @SYMTestType		CT
   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
   115 
   116 //! @file
   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
   124 //! @SYMTestType		CT
   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
   128 
   129 //! @file
   130 //! @SYMTestCaseID 		SEC-CAF-CONT-0005
   131 //! @SYMTestCaseDesc 		Check attributes of a DRM file
   132 //! 				(DRM_Attributes)
   133 //! @SYMREQ			REQ3679
   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
   138 //! @SYMTestType		CIT
   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
   142 
   143 //! @file
   144 //! @SYMTestCaseID 		SEC-CAF-CONT-0006
   145 //! @SYMTestCaseDesc 		Check for notification of a status change
   146 //! 				(NotifyStatusChange)
   147 //! @SYMPREQ			PREQ783
   148 //! @SYMTestStatus		Implemented
   149 //! @SYMTestPriority		Critical
   150 //! @SYMTestActions		Check status returned matches expected value
   151 //! @SYMTestExpectedResults	Status changes should match expected result
   152 //! @SYMTestType		CIT
   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
   156 
   157 //! @file
   158 //! @SYMTestCaseID 		SEC-CAF-CONT-0007
   159 //! @SYMTestCaseDesc 		Set a property within the test agent
   160 //! 				(SetProperty_TestAgent)
   161 //! @SYMPREQ			PREQ780
   162 //! @SYMTestStatus		Implemented
   163 //! @SYMTestPriority		Critical
   164 //! @SYMTestActions		Check error returned matches expected value
   165 //! @SYMTestExpectedResults	The property should be set correctly
   166 //! @SYMTestType		CIT
   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
   170 
   171 //! @file
   172 //! @SYMTestCaseID 		SEC-CAF-CONT-0008
   173 //! @SYMTestCaseDesc 		Set a property within the agent
   174 //! 				(SetProperty_F32Agent)
   175 //! @SYMPREQ			PREQ780
   176 //! @SYMTestStatus		Implemented
   177 //! @SYMTestPriority		Critical
   178 //! @SYMTestActions		Check error returned matches expected value
   179 //! @SYMTestExpectedResults	The property should be set correctly
   180 //! @SYMTestType		CIT
   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
   184 
   185 //! @file
   186 //! @SYMTestCaseID 		SEC-CAF-CONT-0009
   187 //! @SYMTestCaseDesc 		Ask the agent to display information related to a content object
   188 //! 				(DisplayInfo)
   189 //! @SYMREQ			REQ3692
   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
   194 //! @SYMTestType		CIT
   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
   198 
   199 //! @file
   200 //! @SYMTestCaseID 		SEC-CAF-CONT-0010
   201 //! @SYMTestCaseDesc 		Attempt to perform an extended function on a particular CAF agent
   202 //! 				(AgentSpecific_Ok)
   203 //! @SYMPREQ			PREQ780
   204 //! @SYMTestStatus		Implemented
   205 //! @SYMTestPriority		Critical
   206 //! @SYMTestActions		Check error returned matches expected value
   207 //! @SYMTestExpectedResults	Error returned matches expected value
   208 //! @SYMTestType		CIT
   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
   212 
   213 //! @file
   214 //! @SYMTestCaseID 		SEC-CAF-CONT-0011
   215 //! @SYMTestCaseDesc 		Attempt to perform an extended function on the F32 Agent
   216 //! 				(AgentSpecific_Fails)
   217 //! @SYMPREQ			PREQ780
   218 //! @SYMTestStatus		Implemented
   219 //! @SYMTestPriority		Critical
   220 //! @SYMTestActions		Check error returned matches expected value
   221 //! @SYMTestExpectedResults	Error returned matches expected value
   222 //! @SYMTestType		CIT
   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
   226 
   227 //! @file
   228 //! @SYMTestCaseID 		SEC-CAF-CONT-0012
   229 //! @SYMTestCaseDesc 		Request rights for a given content object
   230 //! 				(RequestRights)
   231 //! @SYMPREQ			PREQ783
   232 //! @SYMTestStatus		Implemented
   233 //! @SYMTestPriority		Critical
   234 //! @SYMTestActions		Check status returned matches expected value
   235 //! @SYMTestExpectedResults	Status changes should match expected result
   236 //! @SYMTestType		CIT
   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
   240 
   241 //! @file
   242 //! @SYMTestCaseID 		SEC-CAF-CONT-0013
   243 //! @SYMTestCaseDesc 		Find the embedded objects within a container in the file
   244 //! 				(EmbeddedObjects)
   245 //! @SYMREQ			REQ3679
   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
   250 //! @SYMTestType		CIT
   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
   254 
   255 //! @file
   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.
   264 //! @SYMTestType		CT
   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
   268 
   269 //! @file
   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.
   278 //! @SYMTestType		CT
   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
   282 
   283 //! @file
   284 //! @SYMTestCaseID 		SEC-CAF-CONT-0014
   285 //! @SYMTestCaseDesc 		List all embedded objects of a particular type
   286 //! 				(EmbeddedObjectType)
   287 //! @SYMREQ			REQ3679
   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
   292 //! @SYMTestType		CIT
   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
   296 
   297 //! @file
   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.
   307 //! @SYMTestType		CT
   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
   311 
   312 //! @file
   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.
   322 //! @SYMTestType		CT
   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
   326 
   327 //! @file
   328 //! @SYMTestCaseID 		SEC-CAF-CONT-0015
   329 //! @SYMTestCaseDesc 		Search for content objects of a particular type within the file
   330 //! 				(Search_TestAgent)
   331 //! @SYMREQ			REQ3679
   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
   336 //! @SYMTestType		CIT
   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
   340 
   341 //! @file
   342 //! @SYMTestCaseID 		SEC-CAF-CONT-0016
   343 //! @SYMTestCaseDesc 		Search for content objects of a particular type within the file
   344 //! 				(Search_F32Agent)
   345 //! @SYMREQ			REQ3679
   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
   350 //! @SYMTestType		CIT
   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
   354 
   355 //! @file
   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
   363 //! @SYMTestType		CT
   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
   367 
   368 //! @file
   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
   376 //! @SYMTestType		CT
   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
   380 
   381 //! @file
   382 //! @SYMTestCaseID 		SEC-CAF-CONT-0017
   383 //! @SYMTestCaseDesc 		Open a container within a file
   384 //! 				(Container_Ok)
   385 //! @SYMREQ			REQ3679
   386 //! @SYMTestStatus		Implemented
   387 //! @SYMTestPriority		Critical
   388 //! @SYMTestActions		Open a container within a file
   389 //! @SYMTestExpectedResults	The container is opened successfully
   390 //! @SYMTestType		CIT
   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
   394 
   395 //! @file
   396 //! @SYMTestCaseID 		SEC-CAF-CONT-0018
   397 //! @SYMTestCaseDesc 		Attempt to open and close a container that does not exist
   398 //! 				(Container_NotFound)
   399 //! @SYMREQ			REQ3679
   400 //! @SYMTestStatus		Implemented
   401 //! @SYMTestPriority		Critical
   402 //! @SYMTestActions		Open a container that does not exist
   403 //! @SYMTestExpectedResults	Returns with KErrNotFound
   404 //! @SYMTestType		CIT
   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
   408 
   409 
   410 
   411