First public contribution.
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".
9 // Initial Contributors:
10 // Nokia Corporation - initial contribution.
22 START_TESTCASE SEC-CAF-SUPPLY-0001
24 //! @SYMTestCaseID SEC-CAF-SUPPLY-0001
25 //! @SYMTestCaseDesc Supply a DRM file to CAF
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
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
39 START_TESTCASE SEC-CAF-SUPPLY-0002
41 //! @SYMTestCaseID SEC-CAF-SUPPLY-0002
42 //! @SYMTestCaseDesc Check supply output
43 //! (DRM_Check_Supply_output_Size)
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
50 RUN_TEST_STEP 100 tcaf CAFSizeStep c:\tcaf\supply.ini CheckImport
51 END_TESTCASE SEC-CAF-SUPPLY-0002
53 START_TESTCASE SEC-CAF-SUPPLY-0003
55 //! @SYMTestCaseID SEC-CAF-SUPPLY-0003
56 //! @SYMTestCaseDesc Check supply output
57 //! (DRM_Check_Supply_output)
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
64 RUN_TEST_STEP 100 tcaf CAFSeekReadStep c:\tcaf\supply.ini CheckImport
65 END_TESTCASE SEC-CAF-SUPPLY-0003
67 START_TESTCASE SEC-CAF-SUPPLY-0004
69 //! @SYMTestCaseID SEC-CAF-SUPPLY-0004
70 //! @SYMTestCaseDesc Supply a DRM file to CAF asynchronously
71 //! (DRM_Supply_Async)
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
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
84 START_TESTCASE SEC-CAF-SUPPLY-0005
86 //! @SYMTestCaseID SEC-CAF-SUPPLY-0005
87 //! @SYMTestCaseDesc Check supply output
88 //! (DRM_Check_Supply_output_Size)
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
95 RUN_TEST_STEP 100 tcaf CAFSizeStep c:\tcaf\supply.ini CheckImport
96 END_TESTCASE SEC-CAF-SUPPLY-0005
98 START_TESTCASE SEC-CAF-SUPPLY-0006
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
109 RUN_TEST_STEP 100 tcaf CAFSeekReadStep c:\tcaf\supply.ini CheckImport
110 END_TESTCASE SEC-CAF-SUPPLY-0006
112 START_TESTCASE SEC-CAF-SUPPLY-0007
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
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
127 START_TESTCASE SEC-CAF-SUPPLY-0008
129 //! @SYMTestCaseID SEC-CAF-SUPPLY-0008
130 //! @SYMTestCaseDesc Supply a DRM file to CAF
131 //! (DRM_Supply_Client)
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
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
144 START_TESTCASE SEC-CAF-SUPPLY-0009
146 //! @SYMTestCaseID SEC-CAF-SUPPLY-0009
147 //! @SYMTestCaseDesc Supply a DRM file to CAF
148 //! (DRM_Supply_Client)
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
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
161 START_TESTCASE SEC-CAF-SUPPLY-0010
163 //! @SYMTestCaseID SEC-CAF-SUPPLY-0010
164 //! @SYMTestCaseDesc Check supply output
165 //! (DRM_Check_Supply_output_Size_Client)
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
172 RUN_TEST_STEP 100 tcaf CAFSizeStep c:\tcaf\supply.ini CheckImport2
173 END_TESTCASE SEC-CAF-SUPPLY-0010
175 START_TESTCASE SEC-CAF-SUPPLY-0011
177 //! @SYMTestCaseID SEC-CAF-SUPPLY-0011
178 //! @SYMTestCaseDesc Check supply output
179 //! (DRM_Check_Supply_output_Client)
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
186 RUN_TEST_STEP 100 tcaf CAFSeekReadStep c:\tcaf\supply.ini CheckImport2
187 END_TESTCASE SEC-CAF-SUPPLY-0011
189 START_TESTCASE SEC-CAF-SUPPLY-0012
191 //! @SYMTestCaseID SEC-CAF-SUPPLY-0012
192 //! @SYMTestCaseDesc Get HTTP request headers for sample file download
193 //! (GetHTTPRequestHeaders)
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
200 RUN_TEST_STEP 100 tcaf CAFHTTPRequestHeaders
201 END_TESTCASE SEC-CAF-SUPPLY-0012