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