contentmgmt/referencedrmagent/tcaf/scripts/rightsmanagerstep.script
changeset 15 da2ae96f639b
child 29 ece3df019add
equal deleted inserted replaced
10:afc583cfa176 15:da2ae96f639b
       
     1 //
       
     2 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of the License "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description: 
       
    15 //
       
    16 //
       
    17 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
    18 // All rights reserved.
       
    19 // This component and the accompanying materials are made available
       
    20 // under the terms of the License "Symbian Foundation License v1.0"
       
    21 // which accompanies this distribution, and is available
       
    22 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
    23 //
       
    24 // Initial Contributors:
       
    25 // Nokia Corporation - initial contribution.
       
    26 //
       
    27 // Contributors:
       
    28 //
       
    29 // Description:
       
    30 //
       
    31 
       
    32 LOAD_SUITE tcaf
       
    33 
       
    34 
       
    35 START_TESTCASE 			SEC-CAF-RIGHTS-0001
       
    36 //! @file
       
    37 //! @SYMTestCaseID 		SEC-CAF-RIGHTS-0001
       
    38 //! @SYMTestCaseDesc 		Create an agent rights manager object
       
    39 //!				(RightsManager_Create)
       
    40 //! @SYMREQ			REQ3679
       
    41 //! @SYMTestStatus		Implemented
       
    42 //! @SYMTestPriority		Critical
       
    43 //! @SYMTestActions		Create a CManager, use the CManager to create a CRightsManager
       
    44 //! @SYMTestExpectedResults	returns expected error code
       
    45 //! @SYMTestType		CIT
       
    46 RUN_TEST_STEP 100 tcaf CAFRightsManagerStep c:\tcaf\rightsmanagerstep.ini CreateRightsManager
       
    47 END_TESTCASE 			SEC-CAF-RIGHTS-0001
       
    48 
       
    49 START_TESTCASE 			SEC-CAF-RIGHTS-0002
       
    50 //! @file
       
    51 //! @SYMTestCaseID 		SEC-CAF-RIGHTS-0002
       
    52 //! @SYMTestCaseDesc 		List all rights managed by an agent
       
    53 //!				(RightsManager_ListAll)
       
    54 //! @SYMREQ			REQ3679
       
    55 //! @SYMTestStatus		Implemented
       
    56 //! @SYMTestPriority		Critical
       
    57 //! @SYMTestActions		Create a CManager, list all rights
       
    58 //! @SYMTestExpectedResults	returns expected error code
       
    59 //! @SYMTestType		CIT
       
    60 RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini ListRights1
       
    61 END_TESTCASE 			SEC-CAF-RIGHTS-0002
       
    62 
       
    63 START_TESTCASE 			SEC-CAF-RIGHTS-0003
       
    64 //! @file
       
    65 //! @SYMTestCaseID 		SEC-CAF-RIGHTS-0003
       
    66 //! @SYMTestCaseDesc 		List all rights associated with a particular file
       
    67 //!				(RightsManager_ListRights_for_file)
       
    68 //! @SYMREQ			REQ3679
       
    69 //! @SYMTestStatus		Implemented
       
    70 //! @SYMTestPriority		Critical
       
    71 //! @SYMTestActions		Create a CManager, List all rights associated with the file
       
    72 //! @SYMTestExpectedResults	returns expected error code
       
    73 //! @SYMTestType		CIT
       
    74 RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini ListRights2
       
    75 END_TESTCASE 			SEC-CAF-RIGHTS-0003
       
    76 
       
    77 START_TESTCASE 			SEC-CAF-RIGHTS-0004
       
    78 //! @file
       
    79 //! @SYMTestCaseID 		SEC-CAF-RIGHTS-0004
       
    80 //! @SYMTestCaseDesc 		List all rights associated with a particular content object
       
    81 //!				(RightsManager_ListRights_for_Content_object)
       
    82 //! @SYMREQ			REQ3679
       
    83 //! @SYMTestStatus		Implemented
       
    84 //! @SYMTestPriority		Critical
       
    85 //! @SYMTestActions		Create a CManager, list all rights associated with a particular content object
       
    86 //! @SYMTestExpectedResults	returns expected error code
       
    87 //! @SYMTestType		CIT
       
    88 RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini ListRights3
       
    89 END_TESTCASE 			SEC-CAF-RIGHTS-0004
       
    90 
       
    91 START_TESTCASE 			SEC-CAF-RIGHTS-0005
       
    92 //! @file
       
    93 //! @SYMTestCaseID 		SEC-CAF-RIGHTS-0005
       
    94 //! @SYMTestCaseDesc 		List all content associated with a given rights object
       
    95 //!				(RightsManager_List_Content_for_rights_object)
       
    96 //! @SYMREQ			REQ3679
       
    97 //! @SYMTestStatus		Implemented
       
    98 //! @SYMTestPriority		Critical
       
    99 //! @SYMTestActions		Create a CManager, List all content associated with a specified rights object
       
   100 //! @SYMTestExpectedResults	returns expected error code
       
   101 //! @SYMTestType		CIT
       
   102 RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini ListContent
       
   103 END_TESTCASE 			SEC-CAF-RIGHTS-0005
       
   104 
       
   105 START_TESTCASE 			SEC-CAF-RIGHTS-0006
       
   106 //! @file
       
   107 //! @SYMTestCaseID 		SEC-CAF-RIGHTS-0006
       
   108 //! @SYMTestCaseDesc 		Get pointer to agent defined rights object
       
   109 //!				(RightsManager_Agent_Rights_Base)
       
   110 //! @SYMREQ			REQ3679
       
   111 //! @SYMTestStatus		Implemented
       
   112 //! @SYMTestPriority		Critical
       
   113 //! @SYMTestActions		Create a CManager, get a pointer to an MAgentRightsBase derived object corresponding to the CRightsInfo object 
       
   114 //! @SYMTestExpectedResults	returns expected error code
       
   115 //! @SYMTestType		CIT
       
   116 RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini RightsBasePointer
       
   117 END_TESTCASE 			SEC-CAF-RIGHTS-0006
       
   118 
       
   119 START_TESTCASE 			SEC-CAF-RIGHTS-0007
       
   120 //! @file
       
   121 //! @SYMTestCaseID 		SEC-CAF-RIGHTS-0007
       
   122 //! @SYMTestCaseDesc 		Delete a particular rights object
       
   123 //!				(RightsManager_DeleteRights)
       
   124 //! @SYMREQ			REQ3679
       
   125 //! @SYMTestStatus		Implemented
       
   126 //! @SYMTestPriority		Critical
       
   127 //! @SYMTestActions		Create a CManager, ask the agent to delete the specified rights object
       
   128 //! @SYMTestExpectedResults	returns expected error code
       
   129 //! @SYMTestType		CIT
       
   130 RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini DeleteRights
       
   131 END_TESTCASE 			SEC-CAF-RIGHTS-0007
       
   132 
       
   133 START_TESTCASE 			SEC-CAF-RIGHTS-0008
       
   134 //! @file
       
   135 //! @SYMTestCaseID 		SEC-CAF-RIGHTS-0008
       
   136 //! @SYMTestCaseDesc 		Delete all rights associated with a specified content object
       
   137 //!				(RightsManager_DeleteAllRights)
       
   138 //! @SYMREQ			REQ3679
       
   139 //! @SYMTestStatus		Implemented
       
   140 //! @SYMTestPriority		Critical
       
   141 //! @SYMTestActions		Create a CManager, ask the agent to delete all rights objects associated with a particular content object
       
   142 //! @SYMTestExpectedResults	returns expected error code
       
   143 //! @SYMTestType		CIT
       
   144 RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini DeleteAllRights
       
   145 END_TESTCASE 			SEC-CAF-RIGHTS-0008
       
   146 
       
   147 
       
   148 //-----------------------------------------------------------------------------------------------------------------------
       
   149 //! @file
       
   150 //! @SYMTestCaseID 		SEC-CAF-RIGHTS-0009
       
   151 //! @SYMTestCaseDesc 	     	Listing and deleting all rights object associated with a content object using a file handle.
       
   152 //!				(RightsManager-FileHandle-DRM-Content)
       
   153 //! @SYMREQ			REQ8757
       
   154 //! @SYMTestStatus		Implemented
       
   155 //! @SYMTestPriority	       	Normal
       
   156 //! @SYMTestActions		1. List all rights associated with a particular content object using a file handle.
       
   157 //!                        	2. Delete all rights associated with a specified content object using a file handle
       
   158 //! @SYMTestExpectedResults 	1.Returns expected error code, KErrCANotSupported.
       
   159 //!                        	2.Returns expected error code, KErrCANotSupported. 
       
   160 //! @SYMTestType		CIT
       
   161 START_TESTCASE SEC-CAF-RIGHTS-0009
       
   162         RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini ListRightsByFileHandle_DRM_Content
       
   163         RUN_TEST_STEP 100 tcaf CAFRightsManagerListStep c:\tcaf\rightsmanagerstep.ini DeleteAllRightsByFileHandle_DRM_Content
       
   164 END_TESTCASE SEC-CAF-RIGHTS-0009
       
   165 //-----------------------------------------------------------------------------------------------------------------------
       
   166