os/security/contentmgmt/referencedrmagent/tcaf/scripts/supply_without_http.script
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.
21 START_TESTCASE SEC-CAF-SUPPLY-0001
23 //! @SYMTestCaseID SEC-CAF-SUPPLY-0001
24 //! @SYMTestCaseDesc Supply a DRM file to CAF
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
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
38 START_TESTCASE SEC-CAF-SUPPLY-0002
40 //! @SYMTestCaseID SEC-CAF-SUPPLY-0002
41 //! @SYMTestCaseDesc Check supply output
42 //! (DRM_Check_Supply_output_Size)
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
49 RUN_TEST_STEP 100 tcaf CAFSizeStep c:\tcaf\supply.ini CheckImport
50 END_TESTCASE SEC-CAF-SUPPLY-0002
52 START_TESTCASE SEC-CAF-SUPPLY-0003
54 //! @SYMTestCaseID SEC-CAF-SUPPLY-0003
55 //! @SYMTestCaseDesc Check supply output
56 //! (DRM_Check_Supply_output)
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
63 RUN_TEST_STEP 100 tcaf CAFSeekReadStep c:\tcaf\supply.ini CheckImport
64 END_TESTCASE SEC-CAF-SUPPLY-0003
66 START_TESTCASE SEC-CAF-SUPPLY-0004
68 //! @SYMTestCaseID SEC-CAF-SUPPLY-0004
69 //! @SYMTestCaseDesc Supply a DRM file to CAF asynchronously
70 //! (DRM_Supply_Async)
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
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
83 START_TESTCASE SEC-CAF-SUPPLY-0005
85 //! @SYMTestCaseID SEC-CAF-SUPPLY-0005
86 //! @SYMTestCaseDesc Check supply output
87 //! (DRM_Check_Supply_output_Size)
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
94 RUN_TEST_STEP 100 tcaf CAFSizeStep c:\tcaf\supply.ini CheckImport
95 END_TESTCASE SEC-CAF-SUPPLY-0005
97 START_TESTCASE SEC-CAF-SUPPLY-0006
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
108 RUN_TEST_STEP 100 tcaf CAFSeekReadStep c:\tcaf\supply.ini CheckImport
109 END_TESTCASE SEC-CAF-SUPPLY-0006
111 START_TESTCASE SEC-CAF-SUPPLY-0007
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
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
126 START_TESTCASE SEC-CAF-SUPPLY-0008
128 //! @SYMTestCaseID SEC-CAF-SUPPLY-0008
129 //! @SYMTestCaseDesc Supply a DRM file to CAF
130 //! (DRM_Supply_Client)
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
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
143 START_TESTCASE SEC-CAF-SUPPLY-0009
145 //! @SYMTestCaseID SEC-CAF-SUPPLY-0009
146 //! @SYMTestCaseDesc Supply a DRM file to CAF
147 //! (DRM_Supply_Client)
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
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
160 START_TESTCASE SEC-CAF-SUPPLY-0010
162 //! @SYMTestCaseID SEC-CAF-SUPPLY-0010
163 //! @SYMTestCaseDesc Check supply output
164 //! (DRM_Check_Supply_output_Size_Client)
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
171 RUN_TEST_STEP 100 tcaf CAFSizeStep c:\tcaf\supply.ini CheckImport2
172 END_TESTCASE SEC-CAF-SUPPLY-0010
174 START_TESTCASE SEC-CAF-SUPPLY-0011
176 //! @SYMTestCaseID SEC-CAF-SUPPLY-0011
177 //! @SYMTestCaseDesc Check supply output
178 //! (DRM_Check_Supply_output_Client)
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
185 RUN_TEST_STEP 100 tcaf CAFSeekReadStep c:\tcaf\supply.ini CheckImport2
186 END_TESTCASE SEC-CAF-SUPPLY-0011