os/security/contentmgmt/referencedrmagent/tcaf/scripts/managerstep.script
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 RTAUtils
    19 LOAD_SUITE tcaf
    20 
    21 // Required for managerstep.script test cases
    22 RUN_UTILS MkDir C:\private\
    23 RUN_UTILS MkDir C:\private\Reference Test Agent\
    24 
    25 
    26 RUN_UTILS Delete c:\tcaf\testdata\sample.content
    27 
    28 START_TESTCASE 			SEC-CAF-MAN-0001
    29 //! @file
    30 //! @SYMTestCaseID 		SEC-CAF-MAN-0001
    31 //! @SYMTestCaseDesc 		Create a sample Drm archive
    32 //!				(TCAF_CreateArchive)
    33 //! @SYMPREQ			REQ3678
    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
    38 //! @SYMTestType		UT
    39 RUN_TEST_STEP 100 RTAUtils CreateDrmArchive c:\tcaf\managerstep.ini CreateDrmArchive
    40 END_TESTCASE 			SEC-CAF-MAN-0001
    41 
    42 START_TESTCASE 			SEC-CAF-MAN-0002
    43 //! @file
    44 //! @SYMTestCaseID 		SEC-CAF-MAN-0002
    45 //! @SYMTestCaseDesc 		Plaintext Copy File not found
    46 //!				(PlainText_CopyFile_Not_Found)
    47 //! @SYMREQ			REQ3691
    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
    52 //! @SYMTestType		CIT
    53 RUN_TEST_STEP 100 tcaf CAFCopyFileStep c:\tcaf\managerstep.ini PlainTextCopyFileNotFound
    54 END_TESTCASE 			SEC-CAF-MAN-0002
    55 
    56 START_TESTCASE 			SEC-CAF-MAN-0003
    57 //! @file
    58 //! @SYMTestCaseID 		SEC-CAF-MAN-0003
    59 //! @SYMTestCaseDesc 		Plaintext Copy File
    60 //!				(PlainText_CopyFile)
    61 //! @SYMREQ			REQ3691
    62 //! @SYMTestStatus		Implemented
    63 //! @SYMTestPriority		Critical
    64 //! @SYMTestActions		Attempt to copy an unprotected file
    65 //! @SYMTestExpectedResults	File copied sucessfully
    66 //! @SYMTestType		CIT
    67 RUN_TEST_STEP 100 tcaf CAFCopyFileStep c:\tcaf\managerstep.ini PlainTextCopyFileOk
    68 END_TESTCASE 			SEC-CAF-MAN-0003
    69 
    70 START_TESTCASE 			SEC-CAF-MAN-0004
    71 //! @file
    72 //! @SYMTestCaseID 		SEC-CAF-MAN-0004
    73 //! @SYMTestCaseDesc 		Rename a file in the same directory using CAF
    74 //!				(PlainText_RenameFile_Ok)
    75 //! @SYMREQ			REQ3691
    76 //! @SYMTestStatus		Implemented
    77 //! @SYMTestPriority		Critical
    78 //! @SYMTestActions		Use CAF to try and rename a file
    79 //! @SYMTestExpectedResults	Rename should return KErrNone
    80 //! @SYMTestType		CIT
    81 RUN_TEST_STEP 100 tcaf CAFRenameFileStep c:\tcaf\managerstep.ini PlainTextRenameFileOk
    82 END_TESTCASE 			SEC-CAF-MAN-0004
    83 
    84 START_TESTCASE 			SEC-CAF-MAN-0005
    85 //! @file
    86 //! @SYMTestCaseID 		SEC-CAF-MAN-0005
    87 //! @SYMTestCaseDesc 		Rename a non existant file using caf
    88 //!				(PlainText_RenameFile_Fail)
    89 //! @SYMREQ			REQ3691
    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
    94 //! @SYMTestType		CIT
    95 RUN_TEST_STEP 100 tcaf CAFRenameFileStep c:\tcaf\managerstep.ini PlainTextRenameFileNotFound
    96 END_TESTCASE 			SEC-CAF-MAN-0005
    97 
    98 START_TESTCASE 			SEC-CAF-MAN-0006
    99 //! @file
   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
   108 //! @SYMTestType		CIT
   109 RUN_TEST_STEP 100 tcaf CAFRenameFileStep c:\tcaf\managerstep.ini DifferentDrivesSameNameRenameFileOk
   110 END_TESTCASE 			SEC-CAF-MAN-0006
   111 
   112 START_TESTCASE 			SEC-CAF-MAN-0007
   113 //! @file
   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
   122 //! @SYMTestType		CIT
   123 RUN_TEST_STEP 100 tcaf CAFRenameFileStep c:\tcaf\managerstep.ini DifferentDrivesDifferentNameRenameFileOk
   124 END_TESTCASE 			SEC-CAF-MAN-0007
   125 
   126 START_TESTCASE 			SEC-CAF-MAN-0008
   127 //! @file
   128 //! @SYMTestCaseID 		SEC-CAF-MAN-0008
   129 //! @SYMTestCaseDesc 		Delete a plain text file using CAF
   130 //!				(PlainText_Delete_Ok)
   131 //! @SYMREQ			REQ3691
   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
   136 //! @SYMTestType		CIT
   137 RUN_TEST_STEP 100 tcaf CAFDeleteStep c:\tcaf\managerstep.ini PlainTextDeleteOk
   138 END_TESTCASE 			SEC-CAF-MAN-0008
   139 
   140 START_TESTCASE 			SEC-CAF-MAN-0009
   141 //! @file
   142 //! @SYMTestCaseID 		SEC-CAF-MAN-0009
   143 //! @SYMTestCaseDesc 		Delete a non existant file using caf
   144 //!				(PlainText_Delete_Fail)
   145 //! @SYMREQ			REQ3691
   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
   150 //! @SYMTestType		CIT
   151 RUN_TEST_STEP 100 tcaf CAFDeleteStep c:\tcaf\managerstep.ini PlainTextDeleteFail
   152 END_TESTCASE 			SEC-CAF-MAN-0009
   153 
   154 START_TESTCASE 			SEC-CAF-MAN-0010
   155 //! @file
   156 //! @SYMTestCaseID 		SEC-CAF-MAN-0010
   157 //! @SYMTestCaseDesc 		Tries to creates several nested directories
   158 //!				(public_Mkdir_fail)
   159 //! @SYMREQ			REQ3691
   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
   164 //! @SYMTestType		CIT
   165 RUN_TEST_STEP 100 tcaf CAFMkDirStep c:\tcaf\managerstep.ini MkDirPublicDirFail
   166 END_TESTCASE 			SEC-CAF-MAN-0010
   167 
   168 START_TESTCASE 			SEC-CAF-MAN-0011
   169 
   170 //! @file
   171 //! @SYMTestCaseID 		SEC-CAF-MAN-0011
   172 //! @SYMTestCaseDesc 		Creates a directory in a public part of the file system
   173 //!				(public_Mkdir_Ok)
   174 //! @SYMREQ			REQ3691
   175 //! @SYMTestStatus		Implemented
   176 //! @SYMTestPriority		Critical
   177 //! @SYMTestActions		Use CAF to create a directory in the file system
   178 //! @SYMTestExpectedResults	MkDir should return kErrNone
   179 //! @SYMTestType		CIT
   180 RUN_TEST_STEP 100 tcaf CAFMkDirStep c:\tcaf\managerstep.ini MkDirPublicDirOk
   181 END_TESTCASE 			SEC-CAF-MAN-0011
   182 
   183 START_TESTCASE 			SEC-CAF-MAN-0012
   184 //! @file
   185 //! @SYMTestCaseID 		SEC-CAF-MAN-0012
   186 //! @SYMTestCaseDesc 		Creates a directory in a public part of the file system
   187 //!				(public_Rmdir)
   188 //! @SYMREQ			REQ3691
   189 //! @SYMTestStatus		Implemented
   190 //! @SYMTestPriority		Critical
   191 //! @SYMTestActions		Use CAF to create a directory in the file system
   192 //! @SYMTestExpectedResults	MkDir should return kErrNone
   193 //! @SYMTestType		CIT
   194 RUN_TEST_STEP 100 tcaf CAFRmDirStep c:\tcaf\managerstep.ini RmDirPublicDirOk
   195 END_TESTCASE 			SEC-CAF-MAN-0012
   196 
   197 START_TESTCASE 			SEC-CAF-MAN-0013
   198 //! @file
   199 //! @SYMTestCaseID 		SEC-CAF-MAN-0013
   200 //! @SYMTestCaseDesc 		Remove a directory that does not exist
   201 //!				(public_Rmdir_fail)
   202 //! @SYMREQ			REQ3691
   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
   207 //! @SYMTestType		CIT
   208 RUN_TEST_STEP 100 tcaf CAFRmDirStep c:\tcaf\managerstep.ini RmDirPublicDirFail
   209 END_TESTCASE 			SEC-CAF-MAN-0013
   210 
   211 START_TESTCASE 			SEC-CAF-MAN-0014
   212 //! @file
   213 //! @SYMTestCaseID 		SEC-CAF-MAN-0014
   214 //! @SYMTestCaseDesc 		Creates a directory in a public part of the file system
   215 //!				(public_MkDirAll_ok)
   216 //! @SYMREQ			REQ3691
   217 //! @SYMTestStatus		Implemented
   218 //! @SYMTestPriority		Critical
   219 //! @SYMTestActions		Use CAF to create a directory in the file system
   220 //! @SYMTestExpectedResults	MkDir should return kErrNone
   221 //! @SYMTestType		CIT
   222 RUN_TEST_STEP 100 tcaf CAFMkDirAllStep c:\tcaf\managerstep.ini MkDirAllPublicDirOk
   223 END_TESTCASE 			SEC-CAF-MAN-0014
   224 
   225 START_TESTCASE 			SEC-CAF-MAN-0015
   226 //! @file
   227 //! @SYMTestCaseID 		SEC-CAF-MAN-0015
   228 //! @SYMTestCaseDesc 		Create directory fails
   229 //!				(public_MkDirAll_fail)
   230 //! @SYMREQ			REQ3691
   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
   235 //! @SYMTestType		CIT
   236 RUN_TEST_STEP 100 tcaf CAFMkDirAllStep c:\tcaf\managerstep.ini MkDirAllPublicDirFail
   237 END_TESTCASE 			SEC-CAF-MAN-0015
   238 
   239 START_TESTCASE 			SEC-CAF-MAN-0016
   240 //! @file
   241 //! @SYMTestCaseID 		SEC-CAF-MAN-0016
   242 //! @SYMTestCaseDesc 		List a directory
   243 //!				(public_GetDir1_ok)
   244 //! @SYMREQ			REQ3691
   245 //! @SYMTestStatus		Implemented
   246 //! @SYMTestPriority		Critical
   247 //! @SYMTestActions		Use CAF to list a directory
   248 //! @SYMTestExpectedResults	GetDir should return KErrNone
   249 //! @SYMTestType		CIT
   250 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirAPI1StepOk
   251 END_TESTCASE 			SEC-CAF-MAN-0016
   252 
   253 START_TESTCASE 			SEC-CAF-MAN-0017
   254 //! @file
   255 //! @SYMTestCaseID 		SEC-CAF-MAN-0017
   256 //! @SYMTestCaseDesc 		List a directory
   257 //!				(public_GetDir2_ok)
   258 //! @SYMREQ			REQ3691
   259 //! @SYMTestStatus		Implemented
   260 //! @SYMTestPriority		Critical
   261 //! @SYMTestActions		Use CAF to list a directory
   262 //! @SYMTestExpectedResults	GetDir should return KErrNone
   263 //! @SYMTestType		CIT
   264 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirAPI2StepOk
   265 END_TESTCASE 			SEC-CAF-MAN-0017
   266 
   267 START_TESTCASE 			SEC-CAF-MAN-0018
   268 //! @file
   269 //! @SYMTestCaseID 		SEC-CAF-MAN-0018
   270 //! @SYMTestCaseDesc 		List a directory
   271 //!				(public_GetDir3_ok)
   272 //! @SYMREQ			REQ3691
   273 //! @SYMTestStatus		Implemented
   274 //! @SYMTestPriority		Critical
   275 //! @SYMTestActions		Use CAF to list a directory
   276 //! @SYMTestExpectedResults	GetDir should return KErrNone
   277 //! @SYMTestType		CIT
   278 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirAPI3StepOk
   279 END_TESTCASE 			SEC-CAF-MAN-0018
   280 
   281 START_TESTCASE 			SEC-CAF-MAN-0019
   282 //! @file
   283 //! @SYMTestCaseID 		SEC-CAF-MAN-0019
   284 //! @SYMTestCaseDesc 		List a directory
   285 //!				(public_GetDir_fail)
   286 //! @SYMREQ			REQ3691
   287 //! @SYMTestStatus		Implemented
   288 //! @SYMTestPriority		Critical
   289 //! @SYMTestActions		Use CAF to list a directory
   290 //! @SYMTestExpectedResults	GetDir should return KErrPathNotFound
   291 //! @SYMTestType		CIT
   292 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirStepFail
   293 END_TESTCASE 			SEC-CAF-MAN-0019
   294 
   295 START_TESTCASE 			SEC-CAF-MAN-0020
   296 //! @file
   297 //! @SYMTestCaseID 		SEC-CAF-MAN-0020
   298 //! @SYMTestCaseDesc 		List a directory
   299 //!				(public_GetDir_Private1)
   300 //! @SYMREQ			REQ3691
   301 //! @SYMTestStatus		Implemented
   302 //! @SYMTestPriority		Critical
   303 //! @SYMTestActions		Use CAF to list a C:\private\
   304 //! @SYMTestExpectedResults	GetDir should return KErrNone
   305 //! @SYMTestType		CIT
   306 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirAPI1StepPrivate
   307 END_TESTCASE 			SEC-CAF-MAN-0020
   308 
   309 START_TESTCASE 			SEC-CAF-MAN-0021
   310 //! @file
   311 //! @SYMTestCaseID 		SEC-CAF-MAN-0021
   312 //! @SYMTestCaseDesc 		List a directory
   313 //!				(public_GetDir_Private2)
   314 //! @SYMREQ			REQ3691
   315 //! @SYMTestStatus		Implemented
   316 //! @SYMTestPriority		Critical
   317 //! @SYMTestActions		Use CAF to list a C:\private\
   318 //! @SYMTestExpectedResults	GetDir should return KErrNone
   319 //! @SYMTestType		CIT
   320 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirAPI2StepPrivate
   321 END_TESTCASE 			SEC-CAF-MAN-0021
   322 
   323 START_TESTCASE 			SEC-CAF-MAN-0022
   324 //! @file
   325 //! @SYMTestCaseID 		SEC-CAF-MAN-0022
   326 //! @SYMTestCaseDesc 		List a directory
   327 //!				(public_GetDir_Private3)
   328 //! @SYMREQ			REQ3691
   329 //! @SYMTestStatus		Implemented
   330 //! @SYMTestPriority		Critical
   331 //! @SYMTestActions		Use CAF to list a C:\private\
   332 //! @SYMTestExpectedResults	GetDir should return KErrNone
   333 //! @SYMTestType		CIT
   334 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirAPI3StepPrivate
   335 END_TESTCASE 			SEC-CAF-MAN-0022
   336 
   337 START_TESTCASE 			SEC-CAF-MAN-0023
   338 //! @file
   339 //! @SYMTestCaseID 		SEC-CAF-MAN-0023
   340 //! @SYMTestCaseDesc 		Copy File to private dir
   341 //!				(private_CopyFile_Ok)
   342 //! @SYMREQ			REQ3691
   343 //! @SYMTestStatus		Implemented
   344 //! @SYMTestPriority		Critical
   345 //! @SYMTestActions		Attempt to copy an file to the reference test agent private dir
   346 //! @SYMTestExpectedResults	copy succeeds
   347 //! @SYMTestType		CIT
   348 RUN_TEST_STEP 100 tcaf CAFCopyFileStep c:\tcaf\managerstep.ini PrivateCopyFileOk
   349 END_TESTCASE 			SEC-CAF-MAN-0023
   350 
   351 START_TESTCASE 			SEC-CAF-MAN-0024
   352 //! @file
   353 //! @SYMTestCaseID 		SEC-CAF-MAN-0024
   354 //! @SYMTestCaseDesc 		Creates a directory in the private directory of the reference test agent
   355 //!				(private_Mkdir_Ok)
   356 //! @SYMREQ			REQ3691
   357 //! @SYMTestStatus		Implemented
   358 //! @SYMTestPriority		Critical
   359 //! @SYMTestActions		Use CAF to create a directory in agents private directory
   360 //! @SYMTestExpectedResults	MkDir should return kErrNone
   361 //! @SYMTestType		CIT
   362 RUN_TEST_STEP 100 tcaf CAFMkDirStep c:\tcaf\managerstep.ini MkDirPrivateDirOk
   363 END_TESTCASE 			SEC-CAF-MAN-0024
   364 
   365 START_TESTCASE 			SEC-CAF-MAN-0025
   366 //! @file
   367 //! @SYMTestCaseID 		SEC-CAF-MAN-0025
   368 //! @SYMTestCaseDesc 		List a directory
   369 //!				(public_GetDir_Private1)
   370 //! @SYMREQ			REQ3691
   371 //! @SYMTestStatus		Implemented
   372 //! @SYMTestPriority		Critical
   373 //! @SYMTestActions		Use CAF to list a C:\private\Reference Test Agent\
   374 //! @SYMTestExpectedResults	GetDir should return KErrNone
   375 //! @SYMTestType		CIT
   376 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirAPI1StepPrivateServer
   377 END_TESTCASE 			SEC-CAF-MAN-0025
   378 
   379 START_TESTCASE 			SEC-CAF-MAN-0026
   380 //! @file
   381 //! @SYMTestCaseID 		SEC-CAF-MAN-0026
   382 //! @SYMTestCaseDesc 		List a directory
   383 //!				(public_GetDir_Private2)
   384 //! @SYMREQ			REQ3691
   385 //! @SYMTestStatus		Implemented
   386 //! @SYMTestPriority		Critical
   387 //! @SYMTestActions		Use CAF to list a C:\private\Reference Test Agent\
   388 //! @SYMTestExpectedResults	GetDir should return KErrNone
   389 //! @SYMTestType		CIT
   390 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirAPI2StepPrivateServer
   391 END_TESTCASE 			SEC-CAF-MAN-0026
   392 
   393 START_TESTCASE 			SEC-CAF-MAN-0027
   394 //! @file
   395 //! @SYMTestCaseID 		SEC-CAF-MAN-0027
   396 //! @SYMTestCaseDesc 		List a directory
   397 //!				(public_GetDir_Private3)
   398 //! @SYMREQ			REQ3691
   399 //! @SYMTestStatus		Implemented
   400 //! @SYMTestPriority		Critical
   401 //! @SYMTestActions		Use CAF to list a C:\private\Reference Test Agent\
   402 //! @SYMTestExpectedResults	GetDir should return KErrNone
   403 //! @SYMTestType		CIT
   404 RUN_TEST_STEP 100 tcaf CAFGetDirStep c:\tcaf\managerstep.ini GetDirAPI3StepPrivateServer
   405 END_TESTCASE 			SEC-CAF-MAN-0027
   406 
   407 START_TESTCASE 			SEC-CAF-MAN-0028
   408 //! @file
   409 //! @SYMTestCaseID 		SEC-CAF-MAN-0028
   410 //! @SYMTestCaseDesc 		Delete a file in the reference test agents private directory
   411 //!				(Private_Delete_Ok)
   412 //! @SYMREQ			REQ3691
   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
   417 //! @SYMTestType		CIT
   418 RUN_TEST_STEP 100 tcaf CAFDeleteStep c:\tcaf\managerstep.ini PrivateDeleteFileOk
   419 END_TESTCASE 			SEC-CAF-MAN-0028
   420 
   421 START_TESTCASE 			SEC-CAF-MAN-0029
   422 //! @file
   423 //! @SYMTestCaseID 		SEC-CAF-MAN-0029
   424 //! @SYMTestCaseDesc 		Remove a directory within the agents private directory
   425 //!				(private_Rmdir)
   426 //! @SYMREQ			REQ3691
   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
   431 //! @SYMTestType		CIT
   432 RUN_TEST_STEP 100 tcaf CAFRmDirStep c:\tcaf\managerstep.ini RmDirPrivateDirOk
   433 END_TESTCASE 			SEC-CAF-MAN-0029
   434 
   435 START_TESTCASE 			SEC-CAF-MAN-0030
   436 //! @file
   437 //! @SYMTestCaseID 		SEC-CAF-MAN-0030
   438 //! @SYMTestCaseDesc 		Request a status notification on a file
   439 //!				(Manager_NotifyStatusChange)
   440 //! @SYMREQ			REQ3680
   441 //! @SYMTestStatus		Implemented
   442 //! @SYMTestPriority		Normal
   443 //! @SYMTestActions		Request a notification on an unprotected file
   444 //! @SYMTestExpectedResults	Should return KErrCANotSupported
   445 //! @SYMTestType		CIT
   446 RUN_TEST_STEP 100 tcaf CAFManagerNotifyStep c:\tcaf\managerstep.ini NotifyStatusChange
   447 END_TESTCASE 			SEC-CAF-MAN-0030
   448 
   449 START_TESTCASE 			SEC-CAF-MAN-0031
   450 //! @file
   451 //! @SYMTestCaseID 		SEC-CAF-MAN-0031
   452 //! @SYMTestCaseDesc 		Set a property within all agents
   453 //!				(Manager_SetProperty)
   454 //! @SYMPREQ			PREQ780
   455 //! @SYMTestStatus		Implemented
   456 //! @SYMTestPriority		Normal
   457 //! @SYMTestActions		Set a property within all agents
   458 //! @SYMTestExpectedResults	Should return KErrCANotSupported
   459 //! @SYMTestType		CIT
   460 RUN_TEST_STEP 100 tcaf CAFManagerSetPropertyStep c:\tcaf\managerstep.ini SetProperty
   461 END_TESTCASE 			SEC-CAF-MAN-0031
   462 
   463 START_TESTCASE 			SEC-CAF-MAN-0032
   464 //! @file
   465 //! @SYMTestCaseID 		SEC-CAF-MAN-0032
   466 //! @SYMTestCaseDesc 		Display information about an unprotected file
   467 //!				(Manager_DisplayInfo)
   468 //! @SYMPREQ			PREQ780
   469 //! @SYMTestStatus		Implemented
   470 //! @SYMTestPriority		Normal
   471 //! @SYMTestActions		Ask the agent to display information about the file
   472 //! @SYMTestExpectedResults	Should return KErrCANotSupported
   473 //! @SYMTestType		CIT
   474 RUN_TEST_STEP 100 tcaf CAFManagerDisplayInfoStep c:\tcaf\managerstep.ini DisplayInfo
   475 END_TESTCASE 			SEC-CAF-MAN-0032
   476 
   477 START_TESTCASE 			SEC-CAF-MAN-0033
   478 //! @file
   479 //! @SYMTestCaseID 		SEC-CAF-MAN-0033
   480 //! @SYMTestCaseDesc 		List all the agents not including the F32 Agent
   481 //!				(Manager_List_Agents)
   482 //! @SYMPREQ			PREQ780
   483 //! @SYMTestStatus		Implemented
   484 //! @SYMTestPriority		Normal
   485 //! @SYMTestActions		List all agents
   486 //! @SYMTestExpectedResults	Should return KErrNone
   487 //! @SYMTestType		CIT
   488 RUN_TEST_STEP 100 tcaf CAFManagerListAgentsStep c:\tcaf\managerstep.ini ListAgents
   489 END_TESTCASE 			SEC-CAF-MAN-0033
   490 
   491 START_TESTCASE 			SEC-CAF-MAN-0034
   492 //! @file
   493 //! @SYMTestCaseID 		SEC-CAF-MAN-0034
   494 //! @SYMTestCaseDesc 		Execute an agent specific command
   495 //!				(Manager_Agent_Specific)
   496 //! @SYMPREQ			PREQ780
   497 //! @SYMTestStatus		Implemented
   498 //! @SYMTestPriority		Normal
   499 //! @SYMTestActions		Execute an agent specific command
   500 //! @SYMTestExpectedResults	Should return KErrNone
   501 //! @SYMTestType		CIT
   502 RUN_TEST_STEP 100 tcaf CAFManagerAgentSpecificStep c:\tcaf\managerstep.ini AgentSpecific
   503 END_TESTCASE 			SEC-CAF-MAN-0034
   504 
   505 START_TESTCASE 			SEC-CAF-MAN-0035
   506 //! @file
   507 //! @SYMTestCaseID 		SEC-CAF-MAN-0035
   508 //! @SYMTestCaseDesc 		Execute an agent specific command
   509 //!				(Manager_Display_Management_Info)
   510 //! @SYMPREQ			PREQ780
   511 //! @SYMTestStatus		Implemented
   512 //! @SYMTestPriority		Normal
   513 //! @SYMTestActions		Execute an agent specific command
   514 //! @SYMTestExpectedResults	Should return KErrCANotSupported
   515 //! @SYMTestType		CIT
   516 RUN_TEST_STEP 100 tcaf CAFManagerDisplayConfigStep c:\tcaf\managerstep.ini DisplayManagement
   517 END_TESTCASE 			SEC-CAF-MAN-0035
   518 
   519 START_TESTCASE 			SEC-CAF-MAN-0036
   520 //! @file
   521 //! @SYMTestCaseID 		SEC-CAF-MAN-0036
   522 //! @SYMTestCaseDesc 		Get an attribute for a file
   523 //!				(Manager_Attribute)
   524 //! @SYMREQ			REQ3679
   525 //! @SYMTestStatus		Implemented
   526 //! @SYMTestPriority		Normal
   527 //! @SYMTestActions		Get a single attribute for a file
   528 //! @SYMTestExpectedResults	Should return KErrNone
   529 //! @SYMTestType		CIT
   530 RUN_TEST_STEP 100 tcaf CAFManagerAttributeStep c:\tcaf\attributes.ini Attribute
   531 END_TESTCASE 			SEC-CAF-MAN-0036
   532 
   533 START_TESTCASE 			SEC-CAF-MAN-0037
   534 //! @file
   535 //! @SYMTestCaseID 		SEC-CAF-MAN-0037
   536 //! @SYMTestCaseDesc 		Get a set of attributes for a file
   537 //!				(Manager_AttributeSet)
   538 //! @SYMREQ			REQ3679
   539 //! @SYMTestStatus		Implemented
   540 //! @SYMTestPriority		Normal
   541 //! @SYMTestActions		Get a set of attributes for a file
   542 //! @SYMTestExpectedResults	Should return KErrNone
   543 //! @SYMTestType		CIT
   544 RUN_TEST_STEP 100 tcaf CAFManagerAttributeSetStep c:\tcaf\attributes.ini AttributeSet
   545 END_TESTCASE 			SEC-CAF-MAN-0037
   546 
   547 START_TESTCASE 			SEC-CAF-MAN-0038
   548 //! @file
   549 //! @SYMTestCaseID 		SEC-CAF-MAN-0038
   550 //! @SYMTestCaseDesc 		Get a string attribute for a file
   551 //!				(Manager_String_Attribute)
   552 //! @SYMREQ			REQ3679
   553 //! @SYMTestStatus		Implemented
   554 //! @SYMTestPriority		Normal
   555 //! @SYMTestActions		Get a single string attribute for a file
   556 //! @SYMTestExpectedResults	Should return KErrNone
   557 //! @SYMTestType		CIT
   558 RUN_TEST_STEP 100 tcaf CAFManagerStringAttributeStep c:\tcaf\attributes.ini StringAttribute
   559 END_TESTCASE 			SEC-CAF-MAN-0038
   560 
   561 START_TESTCASE 			SEC-CAF-MAN-3457
   562 //! @file
   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
   570 //! @SYMTestType		CT
   571 RUN_TEST_STEP 100 tcaf CAFManagerStringAttributeStep c:\tcaf\attributes.ini StringAttributeGoodGif
   572 END_TESTCASE 			SEC-CAF-MAN-3457
   573 
   574 START_TESTCASE 			SEC-CAF-MAN-3458
   575 //! @file
   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
   583 //! @SYMTestType		CT
   584 RUN_TEST_STEP 100 tcaf CAFManagerStringAttributeStep c:\tcaf\attributes.ini StringAttributeErrorGif
   585 END_TESTCASE 			SEC-CAF-MAN-3458
   586 
   587 START_TESTCASE 			SEC-CAF-MAN-0039
   588 //! @file
   589 //! @SYMTestCaseID 		SEC-CAF-MAN-0039
   590 //! @SYMTestCaseDesc 		Get a set of string attributes for a file
   591 //!				(Manager_String_AttributeSet)
   592 //! @SYMREQ			REQ3679
   593 //! @SYMTestStatus		Implemented
   594 //! @SYMTestPriority		Normal
   595 //! @SYMTestActions		Get a set of string attributes for a file
   596 //! @SYMTestExpectedResults	Should return KErrNone
   597 //! @SYMTestType		CIT
   598 RUN_TEST_STEP 100 tcaf CAFManagerStringAttributeSetStep c:\tcaf\attributes.ini StringAttributeSet
   599 END_TESTCASE 			SEC-CAF-MAN-0039
   600 
   601 START_TESTCASE 			SEC-CAF-MAN-3459
   602 //! @file
   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
   610 //! @SYMTestType		CT
   611 RUN_TEST_STEP 100 tcaf CAFManagerStringAttributeSetStep c:\tcaf\attributes.ini StringAttributeSetGoodGif
   612 END_TESTCASE 			SEC-CAF-MAN-3459
   613 
   614 START_TESTCASE 			SEC-CAF-MAN-3460
   615 //! @file
   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
   623 //! @SYMTestType		CT
   624 RUN_TEST_STEP 100 tcaf CAFManagerStringAttributeSetStep c:\tcaf\attributes.ini StringAttributeSetErrorGif
   625 END_TESTCASE 			SEC-CAF-MAN-3460
   626 
   627 
   628 //---------------------------------------------------------------------------------------------------------------------------------
   629 //! @file
   630 //! @SYMTestCaseID 		SEC-CAF-MAN-0040
   631 //! @SYMTestCaseDesc 	     	Query standardised information about a content object using a file handle.
   632 //!				(FileHandle-DRM-Content)
   633 //! @SYMREQ			REQ8758
   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 
   646 //! @SYMTestType		CIT
   647 
   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
   655 
   656 //! @file
   657 //! @SYMTestCaseID 		SEC-CAF-MAN-0041
   658 //! @SYMTestCaseDesc 	     	Query standardised information about a content object using a file handle.
   659 //!				(FileHandle-PlainText)
   660 //! @SYMREQ			REQ8758
   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 
   673 //! @SYMTestType		CIT
   674 
   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 //---------------------------------------------------------------------------------------------------------------------------------
   683