1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/security/contentmgmt/referencedrmagent/tcaf/scripts/supply.script Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,202 @@
1.4 +//
1.5 +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +// All rights reserved.
1.7 +// This component and the accompanying materials are made available
1.8 +// under the terms of the License "Eclipse Public License v1.0"
1.9 +// which accompanies this distribution, and is available
1.10 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +//
1.12 +// Initial Contributors:
1.13 +// Nokia Corporation - initial contribution.
1.14 +//
1.15 +// Contributors:
1.16 +//
1.17 +// Description:
1.18 +//
1.19 +
1.20 +
1.21 +LOAD_SUITE tcaf
1.22 +
1.23 +
1.24 +
1.25 +START_TESTCASE SEC-CAF-SUPPLY-0001
1.26 +//! @file
1.27 +//! @SYMTestCaseID SEC-CAF-SUPPLY-0001
1.28 +//! @SYMTestCaseDesc Supply a DRM file to CAF
1.29 +//! (DRM_Supply)
1.30 +//! @SYMPREQ PREQ1951
1.31 +//! @SYMTestStatus Implemented
1.32 +//! @SYMTestPriority Critical
1.33 +//! @SYMTestActions Supply a file to CAF, TestAgent should save the file as a .DRM
1.34 +//! @SYMTestExpectedResults Supply operation works successfully
1.35 +//! @SYMTestType CIT
1.36 +RUN_UTILS Delete c:\supplied.drm
1.37 +RUN_UTILS Delete c:\outputfile.drm
1.38 +RUN_UTILS Delete c:\receipt.txt
1.39 +RUN_TEST_STEP 100 tcaf CAFSupplierStep c:\tcaf\supply.ini SupplyDrm
1.40 +END_TESTCASE SEC-CAF-SUPPLY-0001
1.41 +
1.42 +START_TESTCASE SEC-CAF-SUPPLY-0002
1.43 +//! @file
1.44 +//! @SYMTestCaseID SEC-CAF-SUPPLY-0002
1.45 +//! @SYMTestCaseDesc Check supply output
1.46 +//! (DRM_Check_Supply_output_Size)
1.47 +//! @SYMPREQ PREQ1951
1.48 +//! @SYMTestStatus Implemented
1.49 +//! @SYMTestPriority Critical
1.50 +//! @SYMTestActions Use CAF to check the size of the content imported in the supply operation
1.51 +//! @SYMTestExpectedResults Source file size should be the same as content size in output .DRM file
1.52 +//! @SYMTestType CIT
1.53 +RUN_TEST_STEP 100 tcaf CAFSizeStep c:\tcaf\supply.ini CheckImport
1.54 +END_TESTCASE SEC-CAF-SUPPLY-0002
1.55 +
1.56 +START_TESTCASE SEC-CAF-SUPPLY-0003
1.57 +//! @file
1.58 +//! @SYMTestCaseID SEC-CAF-SUPPLY-0003
1.59 +//! @SYMTestCaseDesc Check supply output
1.60 +//! (DRM_Check_Supply_output)
1.61 +//! @SYMPREQ PREQ1951
1.62 +//! @SYMTestStatus Implemented
1.63 +//! @SYMTestPriority Critical
1.64 +//! @SYMTestActions Use CAF to check the content within the output file produced by the supply operation.
1.65 +//! @SYMTestExpectedResults Source file data should be the same as content object data in the output .DRM file
1.66 +//! @SYMTestType CIT
1.67 +RUN_TEST_STEP 100 tcaf CAFSeekReadStep c:\tcaf\supply.ini CheckImport
1.68 +END_TESTCASE SEC-CAF-SUPPLY-0003
1.69 +
1.70 +START_TESTCASE SEC-CAF-SUPPLY-0004
1.71 +//! @file
1.72 +//! @SYMTestCaseID SEC-CAF-SUPPLY-0004
1.73 +//! @SYMTestCaseDesc Supply a DRM file to CAF asynchronously
1.74 +//! (DRM_Supply_Async)
1.75 +//! @SYMPREQ PREQ1951
1.76 +//! @SYMTestStatus Implemented
1.77 +//! @SYMTestPriority Critical
1.78 +//! @SYMTestActions Supply a file to CAF, TestAgent should save the file as a .DRM
1.79 +//! @SYMTestExpectedResults Supply operation works successfully
1.80 +//! @SYMTestType CIT
1.81 +RUN_UTILS Delete c:\supplied.drm
1.82 +RUN_UTILS Delete c:\outputfile.drm
1.83 +RUN_UTILS Delete c:\receipt.txt
1.84 +RUN_TEST_STEP 100 tcaf CAFSupplierAsyncStep c:\tcaf\supply.ini SupplyDrm
1.85 +END_TESTCASE SEC-CAF-SUPPLY-0004
1.86 +
1.87 +START_TESTCASE SEC-CAF-SUPPLY-0005
1.88 +//! @file
1.89 +//! @SYMTestCaseID SEC-CAF-SUPPLY-0005
1.90 +//! @SYMTestCaseDesc Check supply output
1.91 +//! (DRM_Check_Supply_output_Size)
1.92 +//! @SYMPREQ PREQ1951
1.93 +//! @SYMTestStatus Implemented
1.94 +//! @SYMTestPriority Critical
1.95 +//! @SYMTestActions Use CAF to check the size of the content imported in the supply operation
1.96 +//! @SYMTestExpectedResults Source file size should be the same as content size in output .DRM file
1.97 +//! @SYMTestType CIT
1.98 +RUN_TEST_STEP 100 tcaf CAFSizeStep c:\tcaf\supply.ini CheckImport
1.99 +END_TESTCASE SEC-CAF-SUPPLY-0005
1.100 +
1.101 +START_TESTCASE SEC-CAF-SUPPLY-0006
1.102 +//! @file
1.103 +//! @SYMTestCaseID SEC-CAF-SUPPLY-0006
1.104 +//! @SYMTestCaseDesc Check supply output
1.105 +//! (DRM_Check_Supply_output)
1.106 +//! @SYMPREQ PREQ1951
1.107 +//! @SYMTestStatus Implemented
1.108 +//! @SYMTestPriority Critical
1.109 +//! @SYMTestActions Use CAF to check the content within the output file produced by the supply operation.
1.110 +//! @SYMTestExpectedResults Source file data should be the same as content object data in the output .DRM file
1.111 +//! @SYMTestType CIT
1.112 +RUN_TEST_STEP 100 tcaf CAFSeekReadStep c:\tcaf\supply.ini CheckImport
1.113 +END_TESTCASE SEC-CAF-SUPPLY-0006
1.114 +
1.115 +START_TESTCASE SEC-CAF-SUPPLY-0007
1.116 +//! @file
1.117 +//! @SYMTestCaseID SEC-CAF-SUPPLY-0007
1.118 +//! @SYMTestCaseDesc Attempt to supply an unrecognized mime type
1.119 +//! (DRM_Check_Supply_Unrecognized)
1.120 +//! @SYMPREQ PREQ1951
1.121 +//! @SYMTestStatus Implemented
1.122 +//! @SYMTestPriority Critical
1.123 +//! @SYMTestActions Ask CAF to import an unrecognized file type
1.124 +//! @SYMTestExpectedResults Import should fail
1.125 +//! @SYMTestType CIT
1.126 +RUN_UTILS Delete c:\failed.drm
1.127 +RUN_TEST_STEP 100 tcaf CAFSupplierStep c:\tcaf\supply.ini SupplyUnrecognized
1.128 +END_TESTCASE SEC-CAF-SUPPLY-0007
1.129 +
1.130 +START_TESTCASE SEC-CAF-SUPPLY-0008
1.131 +//! @file
1.132 +//! @SYMTestCaseID SEC-CAF-SUPPLY-0008
1.133 +//! @SYMTestCaseDesc Supply a DRM file to CAF
1.134 +//! (DRM_Supply_Client)
1.135 +//! @SYMREQ CR1440
1.136 +//! @SYMTestStatus Implemented
1.137 +//! @SYMTestPriority Critical
1.138 +//! @SYMTestActions Supply a file to CAF, Content Mime type should be determimed during spply session
1.139 +//! @SYMTestExpectedResults Supply operation works successfully
1.140 +//! @SYMTestType CIT
1.141 +RUN_UTILS Delete c:\supplied.drm
1.142 +RUN_UTILS Delete c:\outputfile.drm
1.143 +RUN_UTILS Delete c:\receipt.txt
1.144 +RUN_TEST_STEP 100 tcaf CAFClientOutputSupplierStep c:\tcaf\supply.ini CheckContentMime
1.145 +END_TESTCASE SEC-CAF-SUPPLY-0008
1.146 +
1.147 +START_TESTCASE SEC-CAF-SUPPLY-0009
1.148 +//! @file
1.149 +//! @SYMTestCaseID SEC-CAF-SUPPLY-0009
1.150 +//! @SYMTestCaseDesc Supply a DRM file to CAF
1.151 +//! (DRM_Supply_Client)
1.152 +//! @SYMREQ REQ3689
1.153 +//! @SYMTestStatus Implemented
1.154 +//! @SYMTestPriority Critical
1.155 +//! @SYMTestActions Supply a file to CAF, TestAgent should save the file as a .DRM
1.156 +//! @SYMTestExpectedResults Supply operation works successfully
1.157 +//! @SYMTestType CIT
1.158 +RUN_UTILS Delete c:\supplied.drm
1.159 +RUN_UTILS Delete c:\outputfile.drm
1.160 +RUN_UTILS Delete c:\receipt.txt
1.161 +RUN_TEST_STEP 100 tcaf CAFClientOutputSupplierStep c:\tcaf\supply.ini SupplyDrmClientSpecifyOutFile
1.162 +END_TESTCASE SEC-CAF-SUPPLY-0009
1.163 +
1.164 +START_TESTCASE SEC-CAF-SUPPLY-0010
1.165 +//! @file
1.166 +//! @SYMTestCaseID SEC-CAF-SUPPLY-0010
1.167 +//! @SYMTestCaseDesc Check supply output
1.168 +//! (DRM_Check_Supply_output_Size_Client)
1.169 +//! @SYMREQ REQ3689
1.170 +//! @SYMTestStatus Implemented
1.171 +//! @SYMTestPriority Critical
1.172 +//! @SYMTestActions Use CAF to check the size of the content imported in the supply operation
1.173 +//! @SYMTestExpectedResults Source file size should be the same as content size in output .DRM file
1.174 +//! @SYMTestType CIT
1.175 +RUN_TEST_STEP 100 tcaf CAFSizeStep c:\tcaf\supply.ini CheckImport2
1.176 +END_TESTCASE SEC-CAF-SUPPLY-0010
1.177 +
1.178 +START_TESTCASE SEC-CAF-SUPPLY-0011
1.179 +//! @file
1.180 +//! @SYMTestCaseID SEC-CAF-SUPPLY-0011
1.181 +//! @SYMTestCaseDesc Check supply output
1.182 +//! (DRM_Check_Supply_output_Client)
1.183 +//! @SYMREQ REQ3689
1.184 +//! @SYMTestStatus Implemented
1.185 +//! @SYMTestPriority Critical
1.186 +//! @SYMTestActions Use CAF to check the content within the output file produced by the supply operation.
1.187 +//! @SYMTestExpectedResults Source file data should be the same as content object data in the output .DRM file
1.188 +//! @SYMTestType CIT
1.189 +RUN_TEST_STEP 100 tcaf CAFSeekReadStep c:\tcaf\supply.ini CheckImport2
1.190 +END_TESTCASE SEC-CAF-SUPPLY-0011
1.191 +
1.192 +START_TESTCASE SEC-CAF-SUPPLY-0012
1.193 +//! @file
1.194 +//! @SYMTestCaseID SEC-CAF-SUPPLY-0012
1.195 +//! @SYMTestCaseDesc Get HTTP request headers for sample file download
1.196 +//! (GetHTTPRequestHeaders)
1.197 +//! @SYMREQ REQ3689
1.198 +//! @SYMTestStatus Implemented
1.199 +//! @SYMTestPriority Critical
1.200 +//! @SYMTestActions Get the request headers, check that they match the expected headers
1.201 +//! @SYMTestExpectedResults Headers will be retrieved successfully
1.202 +//! @SYMTestType CIT
1.203 +RUN_TEST_STEP 100 tcaf CAFHTTPRequestHeaders
1.204 +END_TESTCASE SEC-CAF-SUPPLY-0012
1.205 +