contentmgmt/referencedrmagent/tcaf/scripts/supply.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 
       
    36 START_TESTCASE 			SEC-CAF-SUPPLY-0001
       
    37 //! @file
       
    38 //! @SYMTestCaseID 		SEC-CAF-SUPPLY-0001
       
    39 //! @SYMTestCaseDesc 		Supply a DRM file to CAF
       
    40 //!				(DRM_Supply)
       
    41 //! @SYMPREQ			PREQ1951
       
    42 //! @SYMTestStatus		Implemented
       
    43 //! @SYMTestPriority		Critical
       
    44 //! @SYMTestActions		Supply a file to CAF, TestAgent should save the file as a .DRM
       
    45 //! @SYMTestExpectedResults	Supply operation works successfully
       
    46 //! @SYMTestType		CIT
       
    47 RUN_UTILS Delete c:\supplied.drm 
       
    48 RUN_UTILS Delete c:\outputfile.drm 
       
    49 RUN_UTILS Delete c:\receipt.txt
       
    50 RUN_TEST_STEP 100 tcaf CAFSupplierStep c:\tcaf\supply.ini SupplyDrm
       
    51 END_TESTCASE 			SEC-CAF-SUPPLY-0001
       
    52 
       
    53 START_TESTCASE 			SEC-CAF-SUPPLY-0002
       
    54 //! @file
       
    55 //! @SYMTestCaseID 		SEC-CAF-SUPPLY-0002
       
    56 //! @SYMTestCaseDesc 		Check supply output
       
    57 //!				(DRM_Check_Supply_output_Size)
       
    58 //! @SYMPREQ			PREQ1951
       
    59 //! @SYMTestStatus		Implemented
       
    60 //! @SYMTestPriority		Critical
       
    61 //! @SYMTestActions		Use CAF to check the size of the content imported in the supply operation
       
    62 //! @SYMTestExpectedResults	Source file size should be the same as content size in output .DRM file
       
    63 //! @SYMTestType		CIT
       
    64 RUN_TEST_STEP 100 tcaf CAFSizeStep c:\tcaf\supply.ini CheckImport
       
    65 END_TESTCASE 			SEC-CAF-SUPPLY-0002
       
    66 
       
    67 START_TESTCASE 			SEC-CAF-SUPPLY-0003
       
    68 //! @file
       
    69 //! @SYMTestCaseID 		SEC-CAF-SUPPLY-0003
       
    70 //! @SYMTestCaseDesc 		Check supply output
       
    71 //!				(DRM_Check_Supply_output)
       
    72 //! @SYMPREQ			PREQ1951
       
    73 //! @SYMTestStatus		Implemented
       
    74 //! @SYMTestPriority		Critical
       
    75 //! @SYMTestActions		Use CAF to check the content within the output file produced by the supply operation. 
       
    76 //! @SYMTestExpectedResults	Source file data should be the same as content object data in the output .DRM file
       
    77 //! @SYMTestType		CIT
       
    78 RUN_TEST_STEP 100 tcaf CAFSeekReadStep c:\tcaf\supply.ini CheckImport
       
    79 END_TESTCASE 			SEC-CAF-SUPPLY-0003
       
    80 
       
    81 START_TESTCASE 			SEC-CAF-SUPPLY-0004
       
    82 //! @file
       
    83 //! @SYMTestCaseID 		SEC-CAF-SUPPLY-0004
       
    84 //! @SYMTestCaseDesc 		Supply a DRM file to CAF asynchronously
       
    85 //!				(DRM_Supply_Async)
       
    86 //! @SYMPREQ			PREQ1951
       
    87 //! @SYMTestStatus		Implemented
       
    88 //! @SYMTestPriority		Critical
       
    89 //! @SYMTestActions		Supply a file to CAF, TestAgent should save the file as a .DRM
       
    90 //! @SYMTestExpectedResults	Supply operation works successfully
       
    91 //! @SYMTestType		CIT
       
    92 RUN_UTILS Delete c:\supplied.drm 
       
    93 RUN_UTILS Delete c:\outputfile.drm 
       
    94 RUN_UTILS Delete c:\receipt.txt
       
    95 RUN_TEST_STEP 100 tcaf CAFSupplierAsyncStep c:\tcaf\supply.ini SupplyDrm
       
    96 END_TESTCASE 			SEC-CAF-SUPPLY-0004
       
    97 
       
    98 START_TESTCASE 			SEC-CAF-SUPPLY-0005
       
    99 //! @file
       
   100 //! @SYMTestCaseID 		SEC-CAF-SUPPLY-0005
       
   101 //! @SYMTestCaseDesc 		Check supply output
       
   102 //!				(DRM_Check_Supply_output_Size)
       
   103 //! @SYMPREQ			PREQ1951
       
   104 //! @SYMTestStatus		Implemented
       
   105 //! @SYMTestPriority		Critical
       
   106 //! @SYMTestActions		Use CAF to check the size of the content imported in the supply operation
       
   107 //! @SYMTestExpectedResults	Source file size should be the same as content size in output .DRM file
       
   108 //! @SYMTestType		CIT
       
   109 RUN_TEST_STEP 100 tcaf CAFSizeStep c:\tcaf\supply.ini CheckImport
       
   110 END_TESTCASE 			SEC-CAF-SUPPLY-0005
       
   111 
       
   112 START_TESTCASE 			SEC-CAF-SUPPLY-0006
       
   113 //! @file
       
   114 //! @SYMTestCaseID 		SEC-CAF-SUPPLY-0006
       
   115 //! @SYMTestCaseDesc 		Check supply output
       
   116 //!				(DRM_Check_Supply_output)
       
   117 //! @SYMPREQ			PREQ1951
       
   118 //! @SYMTestStatus		Implemented
       
   119 //! @SYMTestPriority		Critical
       
   120 //! @SYMTestActions		Use CAF to check the content within the output file produced by the supply operation. 
       
   121 //! @SYMTestExpectedResults	Source file data should be the same as content object data in the output .DRM file
       
   122 //! @SYMTestType		CIT
       
   123 RUN_TEST_STEP 100 tcaf CAFSeekReadStep c:\tcaf\supply.ini CheckImport
       
   124 END_TESTCASE 			SEC-CAF-SUPPLY-0006
       
   125 
       
   126 START_TESTCASE 			SEC-CAF-SUPPLY-0007
       
   127 //! @file
       
   128 //! @SYMTestCaseID 		SEC-CAF-SUPPLY-0007
       
   129 //! @SYMTestCaseDesc 		Attempt to supply an unrecognized mime type
       
   130 //!				(DRM_Check_Supply_Unrecognized)
       
   131 //! @SYMPREQ			PREQ1951
       
   132 //! @SYMTestStatus		Implemented
       
   133 //! @SYMTestPriority		Critical
       
   134 //! @SYMTestActions		Ask CAF to import an unrecognized file type
       
   135 //! @SYMTestExpectedResults	Import should fail
       
   136 //! @SYMTestType		CIT
       
   137 RUN_UTILS Delete c:\failed.drm 
       
   138 RUN_TEST_STEP 100 tcaf CAFSupplierStep c:\tcaf\supply.ini SupplyUnrecognized
       
   139 END_TESTCASE 			SEC-CAF-SUPPLY-0007
       
   140 
       
   141 START_TESTCASE 			SEC-CAF-SUPPLY-0008
       
   142 //! @file
       
   143 //! @SYMTestCaseID 		SEC-CAF-SUPPLY-0008
       
   144 //! @SYMTestCaseDesc 		Supply a DRM file to CAF
       
   145 //!				(DRM_Supply_Client)
       
   146 //! @SYMREQ			CR1440
       
   147 //! @SYMTestStatus		Implemented
       
   148 //! @SYMTestPriority		Critical
       
   149 //! @SYMTestActions		Supply a file to CAF, Content Mime type should be determimed during spply session
       
   150 //! @SYMTestExpectedResults	Supply operation works successfully
       
   151 //! @SYMTestType		CIT
       
   152 RUN_UTILS Delete c:\supplied.drm 
       
   153 RUN_UTILS Delete c:\outputfile.drm 
       
   154 RUN_UTILS Delete c:\receipt.txt
       
   155 RUN_TEST_STEP 100 tcaf CAFClientOutputSupplierStep c:\tcaf\supply.ini CheckContentMime
       
   156 END_TESTCASE 			SEC-CAF-SUPPLY-0008
       
   157 
       
   158 START_TESTCASE 			SEC-CAF-SUPPLY-0009
       
   159 //! @file
       
   160 //! @SYMTestCaseID 		SEC-CAF-SUPPLY-0009
       
   161 //! @SYMTestCaseDesc 		Supply a DRM file to CAF
       
   162 //!				(DRM_Supply_Client)
       
   163 //! @SYMREQ			REQ3689
       
   164 //! @SYMTestStatus		Implemented
       
   165 //! @SYMTestPriority		Critical
       
   166 //! @SYMTestActions		Supply a file to CAF, TestAgent should save the file as a .DRM
       
   167 //! @SYMTestExpectedResults	Supply operation works successfully
       
   168 //! @SYMTestType		CIT
       
   169 RUN_UTILS Delete c:\supplied.drm 
       
   170 RUN_UTILS Delete c:\outputfile.drm 
       
   171 RUN_UTILS Delete c:\receipt.txt
       
   172 RUN_TEST_STEP 100 tcaf CAFClientOutputSupplierStep c:\tcaf\supply.ini SupplyDrmClientSpecifyOutFile
       
   173 END_TESTCASE 			SEC-CAF-SUPPLY-0009
       
   174 
       
   175 START_TESTCASE 			SEC-CAF-SUPPLY-0010
       
   176 //! @file
       
   177 //! @SYMTestCaseID 		SEC-CAF-SUPPLY-0010
       
   178 //! @SYMTestCaseDesc 		Check supply output
       
   179 //!				(DRM_Check_Supply_output_Size_Client)
       
   180 //! @SYMREQ			REQ3689
       
   181 //! @SYMTestStatus		Implemented
       
   182 //! @SYMTestPriority		Critical
       
   183 //! @SYMTestActions		Use CAF to check the size of the content imported in the supply operation
       
   184 //! @SYMTestExpectedResults	Source file size should be the same as content size in output .DRM file
       
   185 //! @SYMTestType		CIT
       
   186 RUN_TEST_STEP 100 tcaf CAFSizeStep c:\tcaf\supply.ini CheckImport2
       
   187 END_TESTCASE 			SEC-CAF-SUPPLY-0010
       
   188 
       
   189 START_TESTCASE 			SEC-CAF-SUPPLY-0011
       
   190 //! @file
       
   191 //! @SYMTestCaseID 		SEC-CAF-SUPPLY-0011
       
   192 //! @SYMTestCaseDesc 		Check supply output
       
   193 //!				(DRM_Check_Supply_output_Client)
       
   194 //! @SYMREQ			REQ3689
       
   195 //! @SYMTestStatus		Implemented
       
   196 //! @SYMTestPriority		Critical
       
   197 //! @SYMTestActions		Use CAF to check the content within the output file produced by the supply operation. 
       
   198 //! @SYMTestExpectedResults	Source file data should be the same as content object data in the output .DRM file
       
   199 //! @SYMTestType		CIT
       
   200 RUN_TEST_STEP 100 tcaf CAFSeekReadStep c:\tcaf\supply.ini CheckImport2
       
   201 END_TESTCASE 			SEC-CAF-SUPPLY-0011
       
   202 
       
   203 START_TESTCASE 			SEC-CAF-SUPPLY-0012
       
   204 //! @file
       
   205 //! @SYMTestCaseID 		SEC-CAF-SUPPLY-0012
       
   206 //! @SYMTestCaseDesc 		Get HTTP request headers for sample file download
       
   207 //!				(GetHTTPRequestHeaders)
       
   208 //! @SYMREQ			REQ3689
       
   209 //! @SYMTestStatus		Implemented
       
   210 //! @SYMTestPriority		Critical
       
   211 //! @SYMTestActions		Get the request headers, check that they match the expected headers
       
   212 //! @SYMTestExpectedResults	Headers will be retrieved successfully
       
   213 //! @SYMTestType		CIT
       
   214 RUN_TEST_STEP 100 tcaf CAFHTTPRequestHeaders 
       
   215 END_TESTCASE 			SEC-CAF-SUPPLY-0012
       
   216