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