|
1 // |
|
2 // Copyright (c) 2008-2010 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 // This script implements Software Component Registry API tests. |
|
16 // All APIs provided by SCR are covered by the test cases below. |
|
17 // For more information about the test cases, please see TMS:\Security,Privacy and Control Protection\USIF\SCR\tscr_api |
|
18 // |
|
19 // |
|
20 |
|
21 PRINT Run Software Component Registry (SCR) API Tests |
|
22 |
|
23 // Load Suite |
|
24 LOAD_SUITE tSisRegistryTest |
|
25 LOAD_SUITE tscr -SharedData // SharedData is used for sharing the componentid between test steps |
|
26 SHARED_DATA z:\tusif\tscr\tscr.ini shared_data |
|
27 |
|
28 // Delete the SCR Database file |
|
29 RUN_TEST_STEP 100 tscr SCRDeleteDbFile z:\tusif\tscr\tscr.ini db_file |
|
30 |
|
31 //! @SYMTestCaseID API-SEC-SCR-API-0001 |
|
32 //! @SYMTestCaseDesc Change current locale to english as some test cases assume it & Add a single software component with component name and vendor |
|
33 |
|
34 START_TESTCASE API-SEC-SCR-API-0001 |
|
35 |
|
36 RUN_TEST_STEP 100 tSisRegistryTest ChangeLocale z:\tswi\tuiscriptadaptors\scripts\testdevicelanguages.ini langauge_to_english |
|
37 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
38 RUN_TEST_STEP 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini common_component_attributes |
|
39 |
|
40 END_TESTCASE API-SEC-SCR-API-0001 |
|
41 |
|
42 |
|
43 //! @SYMTestCaseID API-SEC-SCR-API-0002 |
|
44 //! @SYMTestCaseDesc Adding a single software component with localizables names |
|
45 |
|
46 START_TESTCASE API-SEC-SCR-API-0002 |
|
47 |
|
48 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component_with_localizables |
|
49 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini verify_component_localizables1 |
|
50 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini verify_component_localizables2 |
|
51 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini verify_component_localizables3 |
|
52 RUN_TEST_STEP 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini get_component_with_nonlocalized_names |
|
53 RUN_TEST_STEP 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini get_component_with_unspecified_names |
|
54 RUN_TEST_STEP 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini get_component_with_particular_names |
|
55 |
|
56 END_TESTCASE API-SEC-SCR-API-0002 |
|
57 |
|
58 |
|
59 //! @SYMTestCaseID API-SEC-SCR-API-0003 |
|
60 //! @SYMTestCaseDesc Adding a software component with an empty component localizable object |
|
61 |
|
62 START_TESTCASE API-SEC-SCR-API-0003 |
|
63 |
|
64 RUN_TEST_STEP !Result=-6 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component_with_empty_localizables |
|
65 RUN_TEST_STEP !Result=-6 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component_with_empty_name |
|
66 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
67 RUN_TEST_STEP !Result=-6 100 tscr SCRSetCommonProperty z:\tusif\tscr\tscr.ini update_component_set_empty_name |
|
68 RUN_TEST_STEP 100 tscr SCRDeleteComponent z:\tusif\tscr\tscr.ini delete_component |
|
69 |
|
70 END_TESTCASE API-SEC-SCR-API-0003 |
|
71 |
|
72 |
|
73 //! @SYMTestCaseID API-SEC-SCR-API-0004 |
|
74 //! @SYMTestCaseDesc Set attributes of a software component |
|
75 |
|
76 START_TESTCASE API-SEC-SCR-API-0004 |
|
77 |
|
78 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component_with_multiple_names |
|
79 RUN_TEST_STEP 100 tscr SCRSetCommonProperty z:\tusif\tscr\tscr.ini update_component_attributes |
|
80 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini verify_updated_component_attributes |
|
81 |
|
82 END_TESTCASE API-SEC-SCR-API-0004 |
|
83 |
|
84 |
|
85 //! @SYMTestCaseID API-SEC-SCR-API-0005 |
|
86 //! @SYMTestCaseDesc Add general and localizable properties of a software component. |
|
87 |
|
88 START_TESTCASE API-SEC-SCR-API-0005 |
|
89 |
|
90 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
91 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini common_component_properties |
|
92 RUN_TEST_STEP 100 tscr SCRGetComponentProperties z:\tusif\tscr\tscr.ini common_component_properties |
|
93 |
|
94 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini set_single_localized_property |
|
95 RUN_TEST_STEP 100 tscr SCRGetComponentProperty z:\tusif\tscr\tscr.ini get_single_localized_property |
|
96 RUN_TEST_STEP 100 tscr SCRGetComponentProperty z:\tusif\tscr\tscr.ini get_single_non_localized_property |
|
97 RUN_TEST_STEP 100 tscr SCRGetComponentProperty z:\tusif\tscr\tscr.ini get_single_int_property |
|
98 |
|
99 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini set_multiple_localized_property |
|
100 RUN_TEST_STEP 100 tscr SCRGetComponentProperty z:\tusif\tscr\tscr.ini get_nonlocalized_version_property |
|
101 RUN_TEST_STEP 100 tscr SCRGetComponentProperty z:\tusif\tscr\tscr.ini get_unspecified_version_property |
|
102 RUN_TEST_STEP 100 tscr SCRGetComponentProperty z:\tusif\tscr\tscr.ini get_specific_version_property |
|
103 |
|
104 RUN_TEST_STEP 100 tscr SCRGetComponentProperties z:\tusif\tscr\tscr.ini all_unspecified_locale_properties |
|
105 RUN_TEST_STEP 100 tscr SCRGetComponentProperties z:\tusif\tscr\tscr.ini all_non_localized_properties |
|
106 RUN_TEST_STEP 100 tscr SCRGetComponentProperties z:\tusif\tscr\tscr.ini all_particular_properties |
|
107 |
|
108 END_TESTCASE API-SEC-SCR-API-0005 |
|
109 |
|
110 |
|
111 //! @SYMTestCaseID API-SEC-SCR-API-0006 |
|
112 //! @SYMTestCaseDesc Update general and localizable properties of a software component. |
|
113 |
|
114 START_TESTCASE API-SEC-SCR-API-0006 |
|
115 |
|
116 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
117 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini common_component_properties |
|
118 RUN_TEST_STEP 100 tscr SCRGetComponentProperties z:\tusif\tscr\tscr.ini common_component_properties |
|
119 |
|
120 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini new_component_properties |
|
121 RUN_TEST_STEP 100 tscr SCRGetComponentProperties z:\tusif\tscr\tscr.ini new_component_properties |
|
122 |
|
123 END_TESTCASE API-SEC-SCR-API-0006 |
|
124 |
|
125 |
|
126 //! @SYMTestCaseID API-SEC-SCR-API-0007 |
|
127 //! @SYMTestCaseDesc Register files to existing components. |
|
128 |
|
129 START_TESTCASE API-SEC-SCR-API-0007 |
|
130 |
|
131 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
132 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
133 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
134 |
|
135 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini first_component_files |
|
136 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini second_component_files |
|
137 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini third_component_files |
|
138 |
|
139 RUN_TEST_STEP 100 tscr ScrFileListSubsession z:\tusif\tscr\tscr.ini first_component_files |
|
140 RUN_TEST_STEP 100 tscr ScrFileListSubsession z:\tusif\tscr\tscr.ini second_component_files |
|
141 RUN_TEST_STEP 100 tscr ScrFileListSubsession z:\tusif\tscr\tscr.ini third_component_files |
|
142 |
|
143 END_TESTCASE API-SEC-SCR-API-0007 |
|
144 |
|
145 |
|
146 //! @SYMTestCaseID API-SEC-SCR-API-0008 |
|
147 //! @SYMTestCaseDesc Add general properties of a registered file |
|
148 |
|
149 START_TESTCASE API-SEC-SCR-API-0008 |
|
150 |
|
151 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
152 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini component_files |
|
153 |
|
154 RUN_TEST_STEP 100 tscr SCRAddFileProperty z:\tusif\tscr\tscr.ini component_file1_properties |
|
155 RUN_TEST_STEP 100 tscr SCRGetFileProperties z:\tusif\tscr\tscr.ini component_file1_properties |
|
156 |
|
157 RUN_TEST_STEP 100 tscr SCRAddFileProperty z:\tusif\tscr\tscr.ini component_file2_properties |
|
158 RUN_TEST_STEP 100 tscr SCRGetFileProperties z:\tusif\tscr\tscr.ini component_file2_properties |
|
159 |
|
160 RUN_TEST_STEP 100 tscr SCRGetFileProperty z:\tusif\tscr\tscr.ini component_file_property |
|
161 |
|
162 END_TESTCASE API-SEC-SCR-API-0008 |
|
163 |
|
164 |
|
165 //! @SYMTestCaseID API-SEC-SCR-API-0009 |
|
166 //! @SYMTestCaseDesc Delete component properties |
|
167 |
|
168 START_TESTCASE API-SEC-SCR-API-0009 |
|
169 |
|
170 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
171 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini common_component_properties |
|
172 |
|
173 RUN_TEST_STEP 100 tscr SCRDeleteComponentProperty z:\tusif\tscr\tscr.ini delete_component_properties |
|
174 RUN_TEST_STEP 100 tscr SCRGetComponentProperties z:\tusif\tscr\tscr.ini component_properties_left |
|
175 |
|
176 END_TESTCASE API-SEC-SCR-API-0009 |
|
177 |
|
178 |
|
179 //! @SYMTestCaseID API-SEC-SCR-API-0010 |
|
180 //! @SYMTestCaseDesc Delete file properties |
|
181 |
|
182 START_TESTCASE API-SEC-SCR-API-0010 |
|
183 |
|
184 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
185 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini common_files |
|
186 |
|
187 RUN_TEST_STEP 100 tscr SCRAddFileProperty z:\tusif\tscr\tscr.ini common_file1_properties |
|
188 RUN_TEST_STEP 100 tscr SCRAddFileProperty z:\tusif\tscr\tscr.ini common_file2_properties |
|
189 |
|
190 RUN_TEST_STEP 100 tscr SCRDeleteFileProperty z:\tusif\tscr\tscr.ini delete_common_file1_property1 |
|
191 RUN_TEST_STEP 100 tscr SCRGetFileProperties z:\tusif\tscr\tscr.ini common_file1_properties_left |
|
192 RUN_TEST_STEP 100 tscr SCRDeleteFileProperty z:\tusif\tscr\tscr.ini delete_common_file2_property1 |
|
193 RUN_TEST_STEP 100 tscr SCRGetFileProperties z:\tusif\tscr\tscr.ini common_file2_properties_left |
|
194 |
|
195 END_TESTCASE API-SEC-SCR-API-0010 |
|
196 |
|
197 |
|
198 //! @SYMTestCaseID API-SEC-SCR-API-0011 |
|
199 //! @SYMTestCaseDesc Unregister a component file |
|
200 |
|
201 START_TESTCASE API-SEC-SCR-API-0011 |
|
202 |
|
203 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
204 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini component_files_to_be_unregistered |
|
205 RUN_TEST_STEP 100 tscr SCRAddFileProperty z:\tusif\tscr\tscr.ini component_file_properties_to_be_unregistered |
|
206 |
|
207 RUN_TEST_STEP 100 tscr SCRUnregisterFile z:\tusif\tscr\tscr.ini unregister_component_file |
|
208 RUN_TEST_STEP !Result=-1 100 tscr SCRGetFileProperty z:\tusif\tscr\tscr.ini unregistered_file_property |
|
209 RUN_TEST_STEP 100 tscr ScrFileListSubsession z:\tusif\tscr\tscr.ini registered_files |
|
210 |
|
211 END_TESTCASE API-SEC-SCR-API-0011 |
|
212 |
|
213 |
|
214 //! @SYMTestCaseID API-SEC-SCR-API-0012 |
|
215 //! @SYMTestCaseDesc Delete a component |
|
216 |
|
217 START_TESTCASE API-SEC-SCR-API-0012 |
|
218 |
|
219 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component_to_be_deleted |
|
220 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini common_component_properties |
|
221 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini common_files |
|
222 RUN_TEST_STEP 100 tscr SCRAddFileProperty z:\tusif\tscr\tscr.ini common_file1_properties |
|
223 RUN_TEST_STEP 100 tscr SCRAddFileProperty z:\tusif\tscr\tscr.ini common_file2_properties |
|
224 |
|
225 RUN_TEST_STEP 100 tscr SCRDeleteComponent z:\tusif\tscr\tscr.ini delete_component |
|
226 RUN_TEST_STEP 100 tscr SCRGetComponentProperties z:\tusif\tscr\tscr.ini deleted_component_properties |
|
227 RUN_TEST_STEP 100 tscr ScrFileListSubsession z:\tusif\tscr\tscr.ini deleted_component_files |
|
228 RUN_TEST_STEP !Result=-1 100 tscr SCRGetFileProperty z:\tusif\tscr\tscr.ini deleted_component_file1_properties |
|
229 RUN_TEST_STEP !Result=-1 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini common_component_attributes |
|
230 RUN_TEST_STEP !Result=Fail 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini verify_component_deleted |
|
231 RUN_TEST_STEP !Result=-1 100 tscr SCRDeleteComponent z:\tusif\tscr\tscr.ini delete_non_existing_component |
|
232 |
|
233 END_TESTCASE API-SEC-SCR-API-0012 |
|
234 |
|
235 |
|
236 //! @SYMTestCaseID API-SEC-SCR-API-0013 |
|
237 //! @SYMTestCaseDesc Retrieve software component entry |
|
238 |
|
239 START_TESTCASE API-SEC-SCR-API-0013 |
|
240 |
|
241 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini add_component_with_default_language |
|
242 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini add_component_with_nondefault_language_only |
|
243 |
|
244 RUN_TEST_STEP 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini get_component_with_default_language |
|
245 RUN_TEST_STEP 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini get_component_with_unspecified_language |
|
246 RUN_TEST_STEP 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini get_component_with_specified_language |
|
247 |
|
248 // Try getting the component without specifying locale - we should get the first available language |
|
249 RUN_TEST_STEP 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini get_component_with_nondefault_language_only_1 |
|
250 // Try getting the component while specifying matching locale |
|
251 RUN_TEST_STEP 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini get_component_with_nondefault_language_only_2 |
|
252 // Try getting the component while specifying a different locale - we should fail |
|
253 RUN_TEST_STEP !Result=-10323 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini get_component_with_nondefault_language_only_3 |
|
254 // Try getting the component while specifying a "non-localized" locale - we should fail |
|
255 RUN_TEST_STEP !Result=-10323 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini get_component_with_nondefault_language_only_4 |
|
256 |
|
257 END_TESTCASE API-SEC-SCR-API-0013 |
|
258 |
|
259 |
|
260 //! @SYMTestCaseID API-SEC-SCR-API-0014 |
|
261 //! @SYMTestCaseDesc Try to retrieve a non-existing software component |
|
262 |
|
263 START_TESTCASE API-SEC-SCR-API-0014 |
|
264 |
|
265 RUN_TEST_STEP !Result=-1 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini get_non_existing_component |
|
266 |
|
267 END_TESTCASE API-SEC-SCR-API-0014 |
|
268 |
|
269 |
|
270 //! @SYMTestCaseID API-SEC-SCR-API-0015 |
|
271 //! @SYMTestCaseDesc Negative tests for retrieving multiple file properties |
|
272 |
|
273 START_TESTCASE API-SEC-SCR-API-0015 |
|
274 |
|
275 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
276 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini common_files |
|
277 RUN_TEST_STEP 100 tscr SCRAddFileProperty z:\tusif\tscr\tscr.ini common_file1_properties |
|
278 |
|
279 RUN_TEST_STEP !Result=-1 100 tscr SCRGetFileProperties z:\tusif\tscr\tscr.ini getfileproperties_of_nonexisting_component |
|
280 RUN_TEST_STEP !Result=-1 100 tscr SCRGetFileProperties z:\tusif\tscr\tscr.ini getfileproperties_of_nonexisting_file |
|
281 |
|
282 END_TESTCASE API-SEC-SCR-API-0015 |
|
283 |
|
284 |
|
285 //! @SYMTestCaseID API-SEC-SCR-API-0016 |
|
286 //! @SYMTestCaseDesc Negative tests for retrieving single file property |
|
287 |
|
288 START_TESTCASE API-SEC-SCR-API-0016 |
|
289 |
|
290 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
291 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini common_files |
|
292 RUN_TEST_STEP 100 tscr SCRAddFileProperty z:\tusif\tscr\tscr.ini common_file2_properties |
|
293 |
|
294 RUN_TEST_STEP !Result=-1 100 tscr SCRGetFileProperty z:\tusif\tscr\tscr.ini getfileproperty_of_nonexisting_component |
|
295 RUN_TEST_STEP !Result=-1 100 tscr SCRGetFileProperty z:\tusif\tscr\tscr.ini getfileproperty_of_nonexisting_file |
|
296 RUN_TEST_STEP !Result=-1 100 tscr SCRGetFileProperty z:\tusif\tscr\tscr.ini getfileproperty_of_nonexisting_property |
|
297 |
|
298 END_TESTCASE API-SEC-SCR-API-0016 |
|
299 |
|
300 |
|
301 //! @SYMTestCaseID API-SEC-SCR-API-0017 |
|
302 //! @SYMTestCaseDesc Get file components |
|
303 |
|
304 START_TESTCASE API-SEC-SCR-API-0017 |
|
305 |
|
306 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
307 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
308 |
|
309 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini register_file_to_first_component |
|
310 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini register_file_to_second_component |
|
311 |
|
312 RUN_TEST_STEP 100 tscr SCRAddFileProperty z:\tusif\tscr\tscr.ini component1_file_property |
|
313 RUN_TEST_STEP 100 tscr SCRAddFileProperty z:\tusif\tscr\tscr.ini component2_file_property |
|
314 |
|
315 RUN_TEST_STEP 100 tscr SCRGetFileComponents z:\tusif\tscr\tscr.ini get_file_components |
|
316 |
|
317 END_TESTCASE API-SEC-SCR-API-0017 |
|
318 |
|
319 |
|
320 //! @SYMTestCaseID API-SEC-SCR-API-0018 |
|
321 //! @SYMTestCaseDesc Get component properties |
|
322 |
|
323 START_TESTCASE API-SEC-SCR-API-0018 |
|
324 |
|
325 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
326 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini component_properties_with_localizables |
|
327 |
|
328 RUN_TEST_STEP 100 tscr SCRGetComponentProperties z:\tusif\tscr\tscr.ini component_nonlocalized_properties |
|
329 RUN_TEST_STEP 100 tscr SCRGetComponentProperties z:\tusif\tscr\tscr.ini component_localized_properties |
|
330 |
|
331 END_TESTCASE API-SEC-SCR-API-0018 |
|
332 |
|
333 |
|
334 //! @SYMTestCaseID API-SEC-SCR-API-0019 |
|
335 //! @SYMTestCaseDesc Get Plugin UID with Mime Type and Component Id |
|
336 |
|
337 START_TESTCASE API-SEC-SCR-API-0019 |
|
338 |
|
339 RUN_TEST_STEP 100 tscr SCRGetPlugin z:\tusif\tscr\tscr.ini get_plugin_with_mimetype_1 |
|
340 RUN_TEST_STEP 100 tscr SCRGetPlugin z:\tusif\tscr\tscr.ini get_plugin_with_mimetype_2 |
|
341 RUN_TEST_STEP 100 tscr SCRGetPlugin z:\tusif\tscr\tscr.ini get_plugin_with_componentid |
|
342 |
|
343 END_TESTCASE API-SEC-SCR-API-0019 |
|
344 |
|
345 |
|
346 //! @SYMTestCaseID API-SEC-SCR-API-0020 |
|
347 //! @SYMTestCaseDesc Get components by software type |
|
348 |
|
349 START_TESTCASE API-SEC-SCR-API-0020 |
|
350 |
|
351 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
352 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component_with_dummy_type |
|
353 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component_with_plain_type |
|
354 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini second_component_with_dummy_type |
|
355 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_dummy_components |
|
356 |
|
357 END_TESTCASE API-SEC-SCR-API-0020 |
|
358 |
|
359 |
|
360 //! @SYMTestCaseID API-SEC-SCR-API-0021 |
|
361 //! @SYMTestCaseDesc Get components by vendor |
|
362 |
|
363 START_TESTCASE API-SEC-SCR-API-0021 |
|
364 |
|
365 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini first_component_with_same_vendor |
|
366 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini second_component_with_same_vendor |
|
367 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component_with_different_vendor |
|
368 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_components_by_vendor |
|
369 |
|
370 END_TESTCASE API-SEC-SCR-API-0021 |
|
371 |
|
372 |
|
373 //! @SYMTestCaseID API-SEC-SCR-API-0022 |
|
374 //! @SYMTestCaseDesc Get components by component properties |
|
375 |
|
376 START_TESTCASE API-SEC-SCR-API-0022 |
|
377 |
|
378 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
379 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
380 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
381 |
|
382 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini first_component_properties |
|
383 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini second_component_properties |
|
384 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini third_component_properties |
|
385 |
|
386 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_components_with_integer_property1 |
|
387 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_components_with_integer_property2 |
|
388 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_components_with_string_property1 |
|
389 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_components_with_string_property2 |
|
390 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_components_with_localized_property1 |
|
391 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_components_with_localized_property2 |
|
392 |
|
393 END_TESTCASE API-SEC-SCR-API-0022 |
|
394 |
|
395 |
|
396 //! @SYMTestCaseID API-SEC-SCR-API-0023 |
|
397 //! @SYMTestCaseDesc Get components by files |
|
398 |
|
399 START_TESTCASE API-SEC-SCR-API-0023 |
|
400 |
|
401 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini files_to_first_component |
|
402 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini files_to_second_component |
|
403 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini files_to_third_component |
|
404 |
|
405 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_components_with_file1 |
|
406 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_components_with_file2 |
|
407 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_components_with_file3 |
|
408 |
|
409 END_TESTCASE API-SEC-SCR-API-0023 |
|
410 |
|
411 |
|
412 //! @SYMTestCaseID API-SEC-SCR-API-0024 |
|
413 //! @SYMTestCaseDesc Get components by common component attributes |
|
414 |
|
415 START_TESTCASE API-SEC-SCR-API-0024 |
|
416 |
|
417 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
418 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
419 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
420 |
|
421 RUN_TEST_STEP 100 tscr SCRSetCommonProperty z:\tusif\tscr\tscr.ini update_first_component_attributes |
|
422 RUN_TEST_STEP 100 tscr SCRSetCommonProperty z:\tusif\tscr\tscr.ini update_second_component_attributes |
|
423 |
|
424 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_removable_components |
|
425 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_unremovable_components |
|
426 |
|
427 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_drmprotected_components |
|
428 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_drmunprotected_components |
|
429 |
|
430 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_hidden_components |
|
431 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_nonhidden_components |
|
432 |
|
433 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_knownrevoked_components |
|
434 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_knownunrevoked_components |
|
435 |
|
436 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_originverified_components |
|
437 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_originnonverified_components |
|
438 |
|
439 END_TESTCASE API-SEC-SCR-API-0024 |
|
440 |
|
441 //! @SYMTestCaseID API-SEC-SCR-API-0025 |
|
442 //! @SYMTestCaseDesc Set component SCOMO state |
|
443 |
|
444 START_TESTCASE API-SEC-SCR-API-0025 |
|
445 |
|
446 RUN_TEST_STEP 100 tscr SCRSetScomoState z:\tusif\tscr\tscr.ini update_component_scomostate |
|
447 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_non_activated_components |
|
448 |
|
449 END_TESTCASE API-SEC-SCR-API-0025 |
|
450 |
|
451 |
|
452 //! @SYMTestCaseID API-SEC-SCR-API-0026 |
|
453 //! @SYMTestCaseDesc Get components by installed drives |
|
454 |
|
455 START_TESTCASE API-SEC-SCR-API-0026 |
|
456 |
|
457 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
458 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
459 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
460 |
|
461 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini files_of_first_component |
|
462 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini files_of_second_component |
|
463 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini files_of_third_component |
|
464 |
|
465 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini components_on_driveC |
|
466 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini components_on_driveD |
|
467 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini components_on_driveX |
|
468 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini components_on_driveZ |
|
469 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini components_on_driveCE |
|
470 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini components_on_driveCZ |
|
471 |
|
472 END_TESTCASE API-SEC-SCR-API-0026 |
|
473 |
|
474 |
|
475 //! @SYMTestCaseID API-SEC-SCR-API-0027 |
|
476 //! @SYMTestCaseDesc Unregister the file registered to multiple files |
|
477 |
|
478 START_TESTCASE API-SEC-SCR-API-0027 |
|
479 |
|
480 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
481 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
482 |
|
483 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini first_registration_of_file |
|
484 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini second_registration_of_file |
|
485 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_components_with_multiply_registered_file_1 |
|
486 |
|
487 RUN_TEST_STEP 100 tscr SCRUnregisterFile z:\tusif\tscr\tscr.ini unregister_first_component_file |
|
488 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_components_with_multiply_registered_file_2 |
|
489 |
|
490 RUN_TEST_STEP 100 tscr SCRUnregisterFile z:\tusif\tscr\tscr.ini unregister_second_component_file |
|
491 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_components_with_multiply_registered_file_3 |
|
492 |
|
493 END_TESTCASE API-SEC-SCR-API-0027 |
|
494 |
|
495 |
|
496 //! @SYMTestCaseID API-SEC-SCR-API-0028 |
|
497 //! @SYMTestCaseDesc Uncommitted transactions are rollbacked automatically |
|
498 |
|
499 START_TESTCASE API-SEC-SCR-API-0028 |
|
500 |
|
501 RUN_TEST_STEP 100 tscr SCRApplyTransaction z:\tusif\tscr\tscr.ini transaction_component |
|
502 RUN_TEST_STEP !Result=-1 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini transaction_component_attributes |
|
503 RUN_TEST_STEP 100 tscr SCRGetComponentProperties z:\tusif\tscr\tscr.ini transaction_component_properties_rollback |
|
504 RUN_TEST_STEP !Result=Fail 100 tscr ScrFileListSubsession z:\tusif\tscr\tscr.ini transaction_files |
|
505 |
|
506 END_TESTCASE API-SEC-SCR-API-0028 |
|
507 |
|
508 |
|
509 //! @SYMTestCaseID API-SEC-SCR-API-0029 |
|
510 //! @SYMTestCaseDesc Commit a started transaction. |
|
511 |
|
512 START_TESTCASE API-SEC-SCR-API-0029 |
|
513 |
|
514 RUN_TEST_STEP 100 tscr SCRApplyTransaction z:\tusif\tscr\tscr.ini commit_common_component |
|
515 RUN_TEST_STEP 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini transaction_component_attributes |
|
516 RUN_TEST_STEP 100 tscr SCRGetComponentProperties z:\tusif\tscr\tscr.ini transaction_component_properties_commit |
|
517 RUN_TEST_STEP 100 tscr ScrFileListSubsession z:\tusif\tscr\tscr.ini transaction_files |
|
518 |
|
519 END_TESTCASE API-SEC-SCR-API-0029 |
|
520 |
|
521 |
|
522 //! @SYMTestCaseID API-SEC-SCR-API-0030 |
|
523 //! @SYMTestCaseDesc Cancel a started transaction. |
|
524 |
|
525 START_TESTCASE API-SEC-SCR-API-0030 |
|
526 |
|
527 RUN_TEST_STEP 100 tscr SCRApplyTransaction z:\tusif\tscr\tscr.ini cancel_common_component |
|
528 RUN_TEST_STEP !Result=-1 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini transaction_component_attributes |
|
529 RUN_TEST_STEP !Result=-1 100 tscr SCRGetComponentProperties z:\tusif\tscr\tscr.ini transaction_component_properties |
|
530 RUN_TEST_STEP !Result=Fail 100 tscr ScrFileListSubsession z:\tusif\tscr\tscr.ini transaction_files |
|
531 |
|
532 END_TESTCASE API-SEC-SCR-API-0030 |
|
533 |
|
534 |
|
535 //! @SYMTestCaseID API-SEC-SCR-API-0031 |
|
536 //! @SYMTestCaseDesc Create a reading session while a transaction is in progress |
|
537 |
|
538 START_TESTCASE API-SEC-SCR-API-0031 |
|
539 |
|
540 // First, try to create a reading sub-session while a transaction owned by another session is in progress |
|
541 RUN_TEST_STEP 100 tscr SCRCreateTransaction z:\tusif\tscr\tscr.ini begin_before_subsession |
|
542 // Then, try to create a reading sub-session while a transaction owned by the same session is in progress |
|
543 // Also, try creating a transaction while a sub-session is in progress (opposite order) |
|
544 RUN_TEST_STEP 100 tscr SCRCreateTransaction z:\tusif\tscr\tscr.ini open_reading_in_same_session |
|
545 |
|
546 END_TESTCASE API-SEC-SCR-API-0031 |
|
547 |
|
548 |
|
549 //! @SYMTestCaseID API-SEC-SCR-API-0032 |
|
550 //! @SYMTestCaseDesc Create a transaction while a reading session is in progress |
|
551 |
|
552 START_TESTCASE API-SEC-SCR-API-0032 |
|
553 |
|
554 // First, try to begin a transaction while a reading sub-session created in another session is in progress |
|
555 RUN_TEST_STEP 100 tscr SCRCreateTransaction z:\tusif\tscr\tscr.ini begin_after_subsession |
|
556 // Try doing a mutating operation while a subsession is in progress |
|
557 RUN_TEST_STEP 100 tscr SCRCreateTransaction z:\tusif\tscr\tscr.ini mutating_operation_with_subsession |
|
558 // Then, try to begin a transaction while a reading sub-session created in the same session is in progress |
|
559 RUN_TEST_STEP 100 tscr SCRCreateTransaction z:\tusif\tscr\tscr.ini begin_after_subsession_in_same_session |
|
560 |
|
561 END_TESTCASE API-SEC-SCR-API-0032 |
|
562 |
|
563 |
|
564 //! @SYMTestCaseID API-SEC-SCR-API-0033 |
|
565 //! @SYMTestCaseDesc Create a transaction while another transaction is in progress |
|
566 |
|
567 START_TESTCASE API-SEC-SCR-API-0033 |
|
568 |
|
569 RUN_TEST_STEP !Result=-10320 100 tscr SCRCreateTransaction z:\tusif\tscr\tscr.ini begin_after_another_begin |
|
570 |
|
571 END_TESTCASE API-SEC-SCR-API-0033 |
|
572 |
|
573 |
|
574 //! @SYMTestCaseID API-SEC-SCR-API-0034 |
|
575 //! @SYMTestCaseDesc Create a transaction while another transaction is in progress. |
|
576 //! In addition, invoke mutating and non-mutating functions from another transaction. |
|
577 |
|
578 START_TESTCASE API-SEC-SCR-API-0034 |
|
579 |
|
580 RUN_TEST_STEP !Result=-10322 100 tscr SCRManageAnotherTransaction z:\tusif\tscr\tscr.ini commit_another_transaction |
|
581 RUN_TEST_STEP !Result=-10320 100 tscr SCRManageAnotherTransaction z:\tusif\tscr\tscr.ini another_transaction_mutating |
|
582 RUN_TEST_STEP 100 tscr SCRManageAnotherTransaction z:\tusif\tscr\tscr.ini another_transaction_nonmutating |
|
583 |
|
584 END_TESTCASE API-SEC-SCR-API-0034 |
|
585 |
|
586 |
|
587 //! @SYMTestCaseID API-SEC-SCR-API-0035 |
|
588 //! @SYMTestCaseDesc Cancel a transaction while another transaction is in progress |
|
589 |
|
590 START_TESTCASE API-SEC-SCR-API-0035 |
|
591 |
|
592 RUN_TEST_STEP !Result=-10322 100 tscr SCRManageAnotherTransaction z:\tusif\tscr\tscr.ini cancel_another_transaction |
|
593 |
|
594 END_TESTCASE API-SEC-SCR-API-0035 |
|
595 |
|
596 |
|
597 //! @SYMTestCaseID API-SEC-SCR-API-0036 |
|
598 //! @SYMTestCaseDesc Open a subsession while another subsession is already opened by another session |
|
599 |
|
600 START_TESTCASE API-SEC-SCR-API-0036 |
|
601 |
|
602 RUN_TEST_STEP 100 tscr SCRCreateTransaction z:\tusif\tscr\tscr.ini multiple_subsessions |
|
603 RUN_TEST_STEP 100 tscr SCRCreateTransaction z:\tusif\tscr\tscr.ini multiple_active_subsessions |
|
604 |
|
605 END_TESTCASE API-SEC-SCR-API-0036 |
|
606 |
|
607 |
|
608 //! @SYMTestCaseID API-SEC-SCR-API-0037 |
|
609 //! @SYMTestCaseDesc Invoke a mutating SCR interface while a transaction created by a different session is in progress. |
|
610 |
|
611 START_TESTCASE API-SEC-SCR-API-0037 |
|
612 |
|
613 RUN_TEST_STEP !Result=-10320 100 tscr SCRCreateTransaction z:\tusif\tscr\tscr.ini write_after_begin |
|
614 |
|
615 END_TESTCASE API-SEC-SCR-API-0037 |
|
616 |
|
617 |
|
618 //! @SYMTestCaseID API-SEC-SCR-API-0038 |
|
619 //! @SYMTestCaseDesc Invoke a non-mutating SCR interface while a transaction created by a different session is in progress. |
|
620 |
|
621 START_TESTCASE API-SEC-SCR-API-0038 |
|
622 |
|
623 RUN_TEST_STEP 100 tscr SCRCreateTransaction z:\tusif\tscr\tscr.ini read_after_begin |
|
624 |
|
625 END_TESTCASE API-SEC-SCR-API-0038 |
|
626 |
|
627 |
|
628 //! @SYMTestCaseID API-SEC-SCR-API-0039 |
|
629 //! @SYMTestCaseDesc Retrieve all components from SCR |
|
630 |
|
631 START_TESTCASE API-SEC-SCR-API-0039 |
|
632 |
|
633 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
634 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
635 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component_with_dummy_type |
|
636 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
637 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini all_components |
|
638 |
|
639 END_TESTCASE API-SEC-SCR-API-0039 |
|
640 |
|
641 |
|
642 //! @SYMTestCaseID API-SEC-SCR-API-0040 |
|
643 //! @SYMTestCaseDesc Concurrent tests |
|
644 |
|
645 START_TESTCASE API-SEC-SCR-API-0040 |
|
646 |
|
647 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
648 CONCURRENT |
|
649 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini concurrent_component_1 |
|
650 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini concurrent_component_2 |
|
651 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini concurrent_component_properties |
|
652 RUN_TEST_STEP 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini concurrent_component1_attributes |
|
653 RUN_TEST_STEP 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini concurrent_component2_attributes |
|
654 RUN_TEST_STEP 100 tscr SCRGetComponentProperties z:\tusif\tscr\tscr.ini concurrent_component_properties |
|
655 CONSECUTIVE |
|
656 |
|
657 END_TESTCASE API-SEC-SCR-API-0040 |
|
658 |
|
659 |
|
660 //! @SYMTestCaseID API-SEC-SCR-API-0041 |
|
661 //! @SYMTestCaseDesc IsMediaPresent - positive tests |
|
662 |
|
663 START_TESTCASE API-SEC-SCR-API-0041 |
|
664 |
|
665 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
666 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
667 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
668 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini ismediapresent_positive_files_register1 |
|
669 RUN_TEST_STEP 100 tscr SCRIsMediaPresent z:\tusif\tscr\tscr.ini ismediapresent_positive_files_check1 |
|
670 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini ismediapresent_positive_files_register2 |
|
671 RUN_TEST_STEP 100 tscr SCRIsMediaPresent z:\tusif\tscr\tscr.ini ismediapresent_positive_files_check2 |
|
672 |
|
673 END_TESTCASE API-SEC-SCR-API-0041 |
|
674 |
|
675 |
|
676 //! @SYMTestCaseID API-SEC-SCR-API-0042 |
|
677 //! @SYMTestCaseDesc IsMediaPresent - negative tests |
|
678 |
|
679 START_TESTCASE API-SEC-SCR-API-0042 |
|
680 |
|
681 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
682 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
683 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
684 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini ismediapresent_negative_files_register1 |
|
685 RUN_TEST_STEP 100 tscr SCRIsMediaPresent z:\tusif\tscr\tscr.ini ismediapresent_negative_files_check1 |
|
686 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini ismediapresent_negative_files_register2 |
|
687 RUN_TEST_STEP 100 tscr SCRIsMediaPresent z:\tusif\tscr\tscr.ini ismediapresent_negative_files_check2 |
|
688 RUN_TEST_STEP !Result=-1 100 tscr SCRIsMediaPresent z:\tusif\tscr\tscr.ini ismediapresent_negative_non_existent_component |
|
689 |
|
690 END_TESTCASE API-SEC-SCR-API-0042 |
|
691 |
|
692 |
|
693 //! @SYMTestCaseID API-SEC-SCR-API-0043 |
|
694 //! @SYMTestCaseDesc SCR property and file names are case-insensitive |
|
695 |
|
696 START_TESTCASE API-SEC-SCR-API-0043 |
|
697 |
|
698 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
699 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
700 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini lower_case_property |
|
701 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini lower_case_file_name |
|
702 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini filter_mixed_case_property_name |
|
703 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini filter_mixed_case_file_name |
|
704 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini mixed_lower_case_property |
|
705 RUN_TEST_STEP 100 tscr SCRGetComponentProperties z:\tusif\tscr\tscr.ini mixed_lower_case_property |
|
706 RUN_TEST_STEP 100 tscr SCRGetPlugin z:\tusif\tscr\tscr.ini get_plugin_with_mimetype_1 |
|
707 |
|
708 END_TESTCASE API-SEC-SCR-API-0043 |
|
709 |
|
710 |
|
711 //! @SYMTestCaseID API-SEC-SCR-API-0044 |
|
712 //! @SYMTestCaseDesc Get only component Ids by using a NULL filter. |
|
713 |
|
714 START_TESTCASE API-SEC-SCR-API-0044 |
|
715 |
|
716 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
717 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
718 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
719 RUN_TEST_STEP 100 tscr SCRGetComponentIds z:\tusif\tscr\tscr.ini all_components_component_ids_test44 |
|
720 |
|
721 END_TESTCASE API-SEC-SCR-API-0044 |
|
722 |
|
723 |
|
724 //! @SYMTestCaseID API-SEC-SCR-API-0045 |
|
725 //! @SYMTestCaseDesc Various negative tests |
|
726 |
|
727 START_TESTCASE API-SEC-SCR-API-0045 |
|
728 |
|
729 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
730 RUN_TEST_STEP !Result=-46 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini wrong_software_type_name |
|
731 RUN_TEST_STEP !Result=-6 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini no_locales_in_add_component |
|
732 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
733 RUN_TEST_STEP !Result=-6 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini no_drive_file_name |
|
734 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini register_file_twice |
|
735 // Try to register the same file twice - should not return an error |
|
736 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini register_file_twice |
|
737 // Try to get nonexisting file property |
|
738 RUN_TEST_STEP !Result=-1 100 tscr SCRGetFileProperty z:\tusif\tscr\tscr.ini nonexisting_file_property |
|
739 // Try to unregister the same file twice - should not return an error |
|
740 RUN_TEST_STEP 100 tscr SCRUnregisterFile z:\tusif\tscr\tscr.ini unregister_file_twice |
|
741 RUN_TEST_STEP 100 tscr SCRUnregisterFile z:\tusif\tscr\tscr.ini unregister_file_twice |
|
742 // Try to get nonexisting property |
|
743 RUN_TEST_STEP !Result=-1 100 tscr SCRGetComponentProperty z:\tusif\tscr\tscr.ini missing_single_property |
|
744 // Try to get plugin for non-existing MIME type |
|
745 RUN_TEST_STEP !Result=-10303 100 tscr SCRGetPlugin z:\tusif\tscr\tscr.ini get_plugin_for_nonexisting_mimetype |
|
746 // Try setting a negative component size |
|
747 RUN_TEST_STEP !Result=-6 100 tscr SCRSetCommonProperty z:\tusif\tscr\tscr.ini set_negative_component_size |
|
748 // Add component with invalid operation type |
|
749 RUN_TEST_STEP !Result=-6 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini add_component_invalid_operation_type |
|
750 END_TESTCASE API-SEC-SCR-API-0045 |
|
751 |
|
752 //! @SYMTestCaseID API-SEC-SCR-API-0046 |
|
753 //! @SYMTestCaseDesc Get components using composite filters - part 1 |
|
754 |
|
755 START_TESTCASE API-SEC-SCR-API-0046 |
|
756 |
|
757 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
758 // Add components |
|
759 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
760 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
761 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
762 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
763 // Register the same file to components 1, 3 |
|
764 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini first_component_file |
|
765 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini third_component_file |
|
766 // Add the same property to components 2, 4 |
|
767 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini second_component_property |
|
768 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini fourth_component_property |
|
769 // Get all components with same file and property |
|
770 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_components_with_file_and_property_empty |
|
771 |
|
772 END_TESTCASE API-SEC-SCR-API-0046 |
|
773 |
|
774 |
|
775 //! @SYMTestCaseID API-SEC-SCR-API-0047 |
|
776 //! @SYMTestCaseDesc Get components using composite filters - part 2 |
|
777 |
|
778 START_TESTCASE API-SEC-SCR-API-0047 |
|
779 |
|
780 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
781 // Add components |
|
782 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
783 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
784 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
785 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
786 // Do not register files |
|
787 // Add the same property to components 2, 4 |
|
788 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini second_component_property |
|
789 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini fourth_component_property |
|
790 // Get all components with same file and property |
|
791 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_components_with_file_and_property_empty |
|
792 |
|
793 END_TESTCASE API-SEC-SCR-API-0047 |
|
794 |
|
795 |
|
796 //! @SYMTestCaseID API-SEC-SCR-API-0048 |
|
797 //! @SYMTestCaseDesc Get components using composite filters - part 3 |
|
798 |
|
799 START_TESTCASE API-SEC-SCR-API-0048 |
|
800 |
|
801 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
802 // Add components |
|
803 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
804 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
805 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
806 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
807 // Register file to fourth component |
|
808 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini fourth_component_file |
|
809 // Add the same property to components 2, 4 |
|
810 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini second_component_property |
|
811 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini fourth_component_property |
|
812 // Get all components with same file and property |
|
813 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_components_with_file_and_property_fourth |
|
814 |
|
815 END_TESTCASE API-SEC-SCR-API-0048 |
|
816 |
|
817 |
|
818 //! @SYMTestCaseID API-SEC-SCR-API-0049 |
|
819 //! @SYMTestCaseDesc Get components using composite filters - part 4 |
|
820 |
|
821 START_TESTCASE API-SEC-SCR-API-0049 |
|
822 |
|
823 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
824 // Add components |
|
825 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini filter_test_names_test49 |
|
826 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
827 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
828 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini filter_test_names_test49 |
|
829 // Register file to fourth component |
|
830 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini fourth_component_file |
|
831 // Add the same property to components 2, 4 |
|
832 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini second_component_property |
|
833 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini fourth_component_property |
|
834 // Get all components with same file and property |
|
835 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_components_with_names_file_and_property_fourth |
|
836 |
|
837 END_TESTCASE API-SEC-SCR-API-0049 |
|
838 |
|
839 |
|
840 //! @SYMTestCaseID API-SEC-SCR-API-0050 |
|
841 //! @SYMTestCaseDesc Get components using composite filters - part 5 |
|
842 |
|
843 START_TESTCASE API-SEC-SCR-API-0050 |
|
844 |
|
845 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
846 // Add components |
|
847 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini filter_test_names_vendor_test50 |
|
848 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
849 // Add the same property to the second component |
|
850 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini second_component_property |
|
851 // Get all components with same vendor name and property |
|
852 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_components_with_vendor_and_property_second |
|
853 |
|
854 END_TESTCASE API-SEC-SCR-API-0050 |
|
855 |
|
856 |
|
857 //! @SYMTestCaseID API-SEC-SCR-API-0051 |
|
858 //! @SYMTestCaseDesc Test Int64 component property functionality |
|
859 |
|
860 START_TESTCASE API-SEC-SCR-API-0051 |
|
861 |
|
862 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
863 // Check adding an int64 property |
|
864 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini single_int64_property |
|
865 RUN_TEST_STEP 100 tscr SCRGetComponentProperty z:\tusif\tscr\tscr.ini get_single_int64_property |
|
866 // Check updating an int64 property |
|
867 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini update_single_int64_property |
|
868 RUN_TEST_STEP 100 tscr SCRGetComponentProperty z:\tusif\tscr\tscr.ini get_updated_int64_property |
|
869 |
|
870 // Check filters on int64 property |
|
871 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini verify_in64_property_filter |
|
872 |
|
873 RUN_TEST_STEP 100 tscr SCRDeleteComponentProperty z:\tusif\tscr\tscr.ini single_int64_property |
|
874 |
|
875 // Check handling multiple properties, where one of them is int64 |
|
876 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini multiple_int64_properties |
|
877 RUN_TEST_STEP 100 tscr SCRGetComponentProperties z:\tusif\tscr\tscr.ini multiple_int64_properties |
|
878 |
|
879 END_TESTCASE API-SEC-SCR-API-0051 |
|
880 |
|
881 |
|
882 //! @SYMTestCaseID API-SEC-SCR-API-0052 |
|
883 //! @SYMTestCaseDesc Get components using composite filters - part 6 |
|
884 |
|
885 START_TESTCASE API-SEC-SCR-API-0052 |
|
886 |
|
887 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
888 // Add components |
|
889 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component3_test52 |
|
890 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component2_test52 |
|
891 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component1_test52 |
|
892 // Add string property A and int property B to the first component |
|
893 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini first_component_property_test52 |
|
894 // Add int property B and int property C to the second component |
|
895 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini second_component_property_test52 |
|
896 // Add string property A, int property B and int property C to the third component |
|
897 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini third_component_property_test52 |
|
898 // Get all components with integer properties B and C |
|
899 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_components_with_int_properties_test52 |
|
900 // Get all components with string property A and integer property B |
|
901 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_components_with_str_int_property_test52 |
|
902 |
|
903 END_TESTCASE API-SEC-SCR-API-0052 |
|
904 |
|
905 |
|
906 //! @SYMTestCaseID API-SEC-SCR-API-0053 |
|
907 //! @SYMTestCaseDesc Check GetComponentFilesCountL API |
|
908 |
|
909 START_TESTCASE API-SEC-SCR-API-0053 |
|
910 |
|
911 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
912 // Add two components |
|
913 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
914 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
915 // Register two files for the first component |
|
916 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini first_component_files |
|
917 // Verify files count for both components |
|
918 RUN_TEST_STEP 100 tscr SCRGetComponentFilesCount z:\tusif\tscr\tscr.ini verify_first_component_count_test53 |
|
919 RUN_TEST_STEP 100 tscr SCRGetComponentFilesCount z:\tusif\tscr\tscr.ini verify_second_component_count_test53 |
|
920 |
|
921 END_TESTCASE API-SEC-SCR-API-0053 |
|
922 |
|
923 |
|
924 //! @SYMTestCaseID API-SEC-SCR-API-0054 |
|
925 //! @SYMTestCaseDesc Get components using composite filters - part 7 |
|
926 |
|
927 START_TESTCASE API-SEC-SCR-API-0054 |
|
928 |
|
929 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
930 // Add components |
|
931 // Components 1,2,3,4 have the same software type |
|
932 // Components 1,3,4,5 have the same vendor |
|
933 // Components 1,2,3,5 have the same name |
|
934 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component1_test54 |
|
935 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component2_test54 |
|
936 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component3_test54 |
|
937 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component4_test54 |
|
938 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component5_test54 |
|
939 // Retrieve all components with given name, software type and vendor - components 1 and 3 should match |
|
940 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_components_subsession_test54 |
|
941 // Repeat the same, but for component ids |
|
942 RUN_TEST_STEP 100 tscr SCRGetComponentIds z:\tusif\tscr\tscr.ini get_component_ids_test54 |
|
943 |
|
944 END_TESTCASE API-SEC-SCR-API-0054 |
|
945 |
|
946 |
|
947 //! @SYMTestCaseID API-SEC-SCR-API-0055 |
|
948 //! @SYMTestCaseDesc Verify adding and retrieving components with large size |
|
949 |
|
950 START_TESTCASE API-SEC-SCR-API-0055 |
|
951 |
|
952 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
953 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
954 RUN_TEST_STEP 100 tscr SCRSetCommonProperty z:\tusif\tscr\tscr.ini huge_component_test55_update |
|
955 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini huge_component_test55_verify |
|
956 |
|
957 END_TESTCASE API-SEC-SCR-API-0055 |
|
958 |
|
959 //! @SYMTestCaseID API-SEC-SCR-API-0057 |
|
960 //! @SYMTestCaseDesc Check filters for multiple locales in properties |
|
961 |
|
962 START_TESTCASE API-SEC-SCR-API-0057 |
|
963 |
|
964 // Components 1,2 have value EnglishValue for the test property for ELangEnglish and JustValue for ELangNone |
|
965 // Component 3 has value EnglishValue for the test property for ELangNone |
|
966 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component1_test57 |
|
967 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component2_test57 |
|
968 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component3_test57 |
|
969 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini component1_properties |
|
970 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini component2_properties |
|
971 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini component3_properties |
|
972 // Retrieve all components with the test property EnglishValue for ELangEnglish |
|
973 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_components_english_property_test57 |
|
974 // Retrieve all components with the test property EnglishValue for any locale |
|
975 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_components_any_property_test57 |
|
976 // Retrieve all components with the test property EnglishValue for ELangSwedish |
|
977 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_components_negative_property_test57 |
|
978 |
|
979 END_TESTCASE API-SEC-SCR-API-0057 |
|
980 |
|
981 |
|
982 //! @SYMTestCaseID API-SEC-SCR-API-0058 |
|
983 //! @SYMTestCaseDesc Add a single software component with global id. |
|
984 |
|
985 START_TESTCASE API-SEC-SCR-API-0058 |
|
986 |
|
987 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component_with_global_id |
|
988 RUN_TEST_STEP 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini component_attributes_with_global_id |
|
989 // Add another component with the same global id |
|
990 RUN_TEST_STEP !Result=-11 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component_with_global_id |
|
991 |
|
992 END_TESTCASE API-SEC-SCR-API-0058 |
|
993 |
|
994 |
|
995 //! @SYMTestCaseID API-SEC-SCR-API-0059 |
|
996 //! @SYMTestCaseDesc Add a new component dependency. |
|
997 |
|
998 START_TESTCASE API-SEC-SCR-API-0059 |
|
999 |
|
1000 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
1001 // First add the supplier component (S1) |
|
1002 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini supplier_component |
|
1003 RUN_TEST_STEP 100 tscr SCRGetComponentId z:\tusif\tscr\tscr.ini supplier_component_globalid |
|
1004 // Then add the dependant component (D1) |
|
1005 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini dependant_component |
|
1006 RUN_TEST_STEP 100 tscr SCRGetComponentWithGlobalId z:\tusif\tscr\tscr.ini dependant_component_globalid |
|
1007 // Add dependency between the supplier and dependant components (D1 -> S1) |
|
1008 RUN_TEST_STEP 100 tscr SCRAddComponentDependency z:\tusif\tscr\tscr.ini dependency_with_existing_components |
|
1009 // Check the dependancy added successfully |
|
1010 RUN_TEST_STEP 100 tscr SCRGetGlobalIdList z:\tusif\tscr\tscr.ini dependant_components |
|
1011 RUN_TEST_STEP 100 tscr SCRGetGlobalIdList z:\tusif\tscr\tscr.ini supplier_components |
|
1012 // Add another component which will be supplier (S2) |
|
1013 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini second_supplier_component |
|
1014 // Add a second dependancy where the lastly added component is supplier. (D1 -> S2) |
|
1015 RUN_TEST_STEP 100 tscr SCRAddComponentDependency z:\tusif\tscr\tscr.ini dependency_with_second_supplier |
|
1016 // Get the all suppliers of the dependant component (D1) |
|
1017 RUN_TEST_STEP 100 tscr SCRGetGlobalIdList z:\tusif\tscr\tscr.ini all_supplier_components |
|
1018 // Add another component which will be a dependant. (D2) |
|
1019 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini second_dependant_component |
|
1020 // Add a second dependency where the D2 depends on S2 |
|
1021 RUN_TEST_STEP 100 tscr SCRAddComponentDependency z:\tusif\tscr\tscr.ini dependency_with_second_dependant |
|
1022 // Get the all dependants of the supplier component (S2) |
|
1023 RUN_TEST_STEP 100 tscr SCRGetGlobalIdList z:\tusif\tscr\tscr.ini all_dependant_components |
|
1024 // Try to duplicate an existing dependency |
|
1025 RUN_TEST_STEP !Result=-11 100 tscr SCRAddComponentDependency z:\tusif\tscr\tscr.ini dependency_with_second_dependant |
|
1026 // Add a dependency to non-existing supplier |
|
1027 RUN_TEST_STEP 100 tscr SCRAddComponentDependency z:\tusif\tscr\tscr.ini dependency_to_nonexisting_component |
|
1028 RUN_TEST_STEP 100 tscr SCRGetGlobalIdList z:\tusif\tscr\tscr.ini existing_and_nonexisting_suppliers |
|
1029 // Delete D2 |
|
1030 RUN_TEST_STEP 100 tscr SCRDeleteComponent z:\tusif\tscr\tscr.ini delete_second_dependant |
|
1031 // Get the suppliers of the deleted dependant (D2). Should be empty. |
|
1032 RUN_TEST_STEP 100 tscr SCRGetGlobalIdList z:\tusif\tscr\tscr.ini suppliers_of_deleted_dependant |
|
1033 // Get the all suppliers of the dependant component (D1). Should be deleted. |
|
1034 RUN_TEST_STEP 100 tscr SCRGetGlobalIdList z:\tusif\tscr\tscr.ini all_supplier_components |
|
1035 // Delete S1 |
|
1036 RUN_TEST_STEP 100 tscr SCRDeleteComponent z:\tusif\tscr\tscr.ini delete_first_supplier |
|
1037 // Dependencies where S1 is supplier should remain |
|
1038 RUN_TEST_STEP 100 tscr SCRGetGlobalIdList z:\tusif\tscr\tscr.ini remained_dependencies |
|
1039 |
|
1040 END_TESTCASE API-SEC-SCR-API-0059 |
|
1041 |
|
1042 |
|
1043 //! @SYMTestCaseID API-SEC-SCR-API-0060 |
|
1044 //! @SYMTestCaseDesc Delete the component dependency. |
|
1045 |
|
1046 START_TESTCASE API-SEC-SCR-API-0060 |
|
1047 |
|
1048 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
1049 // First, add a dependency between two existing components, and then delete that dependency |
|
1050 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini supplier_component |
|
1051 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini dependant_component |
|
1052 RUN_TEST_STEP 100 tscr SCRAddComponentDependency z:\tusif\tscr\tscr.ini dependency_with_existing_components |
|
1053 RUN_TEST_STEP 100 tscr SCRDeleteComponentDependency z:\tusif\tscr\tscr.ini dependency_with_existing_components |
|
1054 RUN_TEST_STEP 100 tscr SCRGetGlobalIdList z:\tusif\tscr\tscr.ini deleted_dependant |
|
1055 RUN_TEST_STEP 100 tscr SCRGetGlobalIdList z:\tusif\tscr\tscr.ini deleted_supplier |
|
1056 // Secondly, add a dependency between two non-existing components and then delete it. |
|
1057 RUN_TEST_STEP 100 tscr SCRAddComponentDependency z:\tusif\tscr\tscr.ini dependency_with_nonexisting_components |
|
1058 RUN_TEST_STEP 100 tscr SCRGetGlobalIdList z:\tusif\tscr\tscr.ini dependant_nonexisting_components |
|
1059 RUN_TEST_STEP 100 tscr SCRGetGlobalIdList z:\tusif\tscr\tscr.ini supplier_nonexisting_components |
|
1060 |
|
1061 END_TESTCASE API-SEC-SCR-API-0060 |
|
1062 |
|
1063 |
|
1064 //! @SYMTestCaseID API-SEC-SCR-API-0061 |
|
1065 //! @SYMTestCaseDesc Get components using composite filters - part 8 |
|
1066 |
|
1067 START_TESTCASE API-SEC-SCR-API-0061 |
|
1068 |
|
1069 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
1070 // Add components |
|
1071 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
1072 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
1073 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
1074 // Set common component attributes |
|
1075 RUN_TEST_STEP 100 tscr SCRSetCommonProperty z:\tusif\tscr\tscr.ini update_first_component_attributes_test61 |
|
1076 RUN_TEST_STEP 100 tscr SCRSetCommonProperty z:\tusif\tscr\tscr.ini update_second_component_attributes_test61 |
|
1077 RUN_TEST_STEP 100 tscr SCRSetCommonProperty z:\tusif\tscr\tscr.ini update_third_component_attributes_test61 |
|
1078 // Add a property to the second component |
|
1079 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini second_component_property |
|
1080 // Get all components with two common properties |
|
1081 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_components_with_drm_hidden_common_properties |
|
1082 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_components_with_originverified_knownrevoked_properties |
|
1083 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_components_with_common_and_customized_attributes |
|
1084 |
|
1085 END_TESTCASE API-SEC-SCR-API-0061 |
|
1086 |
|
1087 |
|
1088 //! @SYMTestCaseID API-SEC-SCR-API-0062 |
|
1089 //! @SYMTestCaseDesc Add & query versioned component dependency. |
|
1090 |
|
1091 START_TESTCASE API-SEC-SCR-API-0062 |
|
1092 |
|
1093 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
1094 // First add the supplier component (S1) |
|
1095 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini supplier_component |
|
1096 // Then add the dependant component (D1) |
|
1097 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini dependant_component |
|
1098 // Add dependency between the supplier and dependant components (D1 -> S1) |
|
1099 RUN_TEST_STEP 100 tscr SCRAddComponentDependency z:\tusif\tscr\tscr.ini versioned_dependency |
|
1100 // Check the dependancy added successfully |
|
1101 RUN_TEST_STEP 100 tscr SCRGetGlobalIdList z:\tusif\tscr\tscr.ini versioned_dependant_components |
|
1102 RUN_TEST_STEP 100 tscr SCRGetGlobalIdList z:\tusif\tscr\tscr.ini versioned_supplier_components |
|
1103 // Add another component which will be supplier (S2) |
|
1104 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini second_supplier_component |
|
1105 // Add a second dependancy where the lastly added component is supplier. (D1 -> S2) |
|
1106 RUN_TEST_STEP 100 tscr SCRAddComponentDependency z:\tusif\tscr\tscr.ini versioned_dependency_with_second_supplier |
|
1107 // Get the all suppliers of the dependant component (D1) |
|
1108 RUN_TEST_STEP 100 tscr SCRGetGlobalIdList z:\tusif\tscr\tscr.ini versioned_all_supplier_components |
|
1109 // Add another component which will be a dependant. (D2) |
|
1110 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini second_dependant_component |
|
1111 // Add a second dependency where the D2 depends on S2 |
|
1112 RUN_TEST_STEP 100 tscr SCRAddComponentDependency z:\tusif\tscr\tscr.ini versioned_dependency_with_second_dependant |
|
1113 // Get the all dependants of the supplier component (S2) |
|
1114 RUN_TEST_STEP 100 tscr SCRGetGlobalIdList z:\tusif\tscr\tscr.ini versioned_all_dependant_components |
|
1115 |
|
1116 END_TESTCASE API-SEC-SCR-API-0062 |
|
1117 |
|
1118 |
|
1119 //! @SYMTestCaseID API-SEC-SCR-API-0063 |
|
1120 //! @SYMTestCaseDesc Post-manufacture plugin management tests |
|
1121 |
|
1122 START_TESTCASE API-SEC-SCR-API-0063 |
|
1123 |
|
1124 // Add a sofwtare component type with only unique name |
|
1125 RUN_TEST_STEP 100 tscr SCRAddSoftwareType z:\tusif\tscr\tscr.ini add_nonlocalized_software_type |
|
1126 // Add a component to check that the non-localized software type has been added successfully |
|
1127 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component_nonlocalized_software_type |
|
1128 // Check that the component is not orphaned |
|
1129 RUN_TEST_STEP 100 tscr SCRIsComponentOrphaned z:\tusif\tscr\tscr.ini non_orphaned_component |
|
1130 // Add a sofwtare component type with unique and localized names |
|
1131 RUN_TEST_STEP 100 tscr SCRAddSoftwareType z:\tusif\tscr\tscr.ini add_localized_software_type |
|
1132 // Add a component to check that the localized software type has been added successfully |
|
1133 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component_localized_software_type |
|
1134 // Try to add a component without specifying MIME types |
|
1135 RUN_TEST_STEP 100 tscr SCRAddSoftwareType z:\tusif\tscr\tscr.ini add_software_type_without_mime_types |
|
1136 // Delete a software component type |
|
1137 RUN_TEST_STEP 100 tscr SCRDeleteSoftwareType z:\tusif\tscr\tscr.ini |
|
1138 // Check that the component is orphaned |
|
1139 RUN_TEST_STEP 100 tscr SCRIsComponentOrphaned z:\tusif\tscr\tscr.ini orphaned_component |
|
1140 // Get the orphaned component |
|
1141 RUN_TEST_STEP 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini orphaned_component_attributes |
|
1142 // Get the orphaned component via filter |
|
1143 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_orphaned_component_by_vendor |
|
1144 // Set the common properties of the orphaned component |
|
1145 RUN_TEST_STEP !Result=-46 100 tscr SCRSetCommonProperty z:\tusif\tscr\tscr.ini update_orphaned_component_attributes |
|
1146 // Try to register some files to the orphaned component |
|
1147 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini orphaned_component_files |
|
1148 // Try to add a sutom property to the orphaned component |
|
1149 RUN_TEST_STEP !Result=-46 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini orphaned_component_properties |
|
1150 // Re-add the sofwtare component type with only unique name |
|
1151 RUN_TEST_STEP 100 tscr SCRAddSoftwareType z:\tusif\tscr\tscr.ini add_nonlocalized_software_type |
|
1152 // Check that the component is not orphaned |
|
1153 RUN_TEST_STEP 100 tscr SCRIsComponentOrphaned z:\tusif\tscr\tscr.ini non_orphaned_component_after_reinstalling_swtype |
|
1154 // Check if a non-existing component is orphaned |
|
1155 RUN_TEST_STEP !Result=-1 100 tscr SCRIsComponentOrphaned z:\tusif\tscr\tscr.ini orphaned_non_existing_component |
|
1156 // Add the same software type again |
|
1157 RUN_TEST_STEP 100 tscr SCRAddSoftwareType z:\tusif\tscr\tscr.ini add_nonlocalized_software_type |
|
1158 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component_nonlocalized_software_type |
|
1159 RUN_TEST_STEP 100 tscr SCRAddSoftwareType z:\tusif\tscr\tscr.ini add_localized_software_type_with_different_plugin_uid |
|
1160 RUN_TEST_STEP 100 tscr SCRAddSoftwareType z:\tusif\tscr\tscr.ini add_localized_software_type_with_extra_name |
|
1161 RUN_TEST_STEP 100 tscr SCRAddSoftwareType z:\tusif\tscr\tscr.ini add_localized_software_type_with_missing_name |
|
1162 RUN_TEST_STEP 100 tscr SCRAddSoftwareType z:\tusif\tscr\tscr.ini add_localized_software_type_with_extra_mime |
|
1163 RUN_TEST_STEP 100 tscr SCRAddSoftwareType z:\tusif\tscr\tscr.ini add_localized_software_type_with_missing_mime |
|
1164 // Add multiple sid with launcher executable |
|
1165 RUN_TEST_STEP 100 tscr SCRAddSoftwareType z:\tusif\tscr\tscr.ini add_multiple_sid_with_launcher_executable |
|
1166 END_TESTCASE API-SEC-SCR-API-0063 |
|
1167 |
|
1168 |
|
1169 //! @SYMTestCaseID API-SEC-SCR-API-0064 |
|
1170 //! @SYMTestCaseDesc Verify drive bitmask management |
|
1171 |
|
1172 START_TESTCASE API-SEC-SCR-API-0064 |
|
1173 |
|
1174 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
1175 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
1176 // Register 2 files on drive C and one file on drive D |
|
1177 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini drives_management_register_files |
|
1178 // Verify that both C and D drives are used by the component |
|
1179 RUN_TEST_STEP 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini drives_management_both_drives |
|
1180 // Unregister one file on drive C |
|
1181 RUN_TEST_STEP 100 tscr SCRUnregisterFile z:\tusif\tscr\tscr.ini drives_management_unregister_first_c_file |
|
1182 // Verify that both C and D drives are used by the component |
|
1183 RUN_TEST_STEP 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini drives_management_both_drives |
|
1184 // Unregister one file on drive D |
|
1185 RUN_TEST_STEP 100 tscr SCRUnregisterFile z:\tusif\tscr\tscr.ini drives_management_unregister_first_d_file |
|
1186 // Verify that drive C is used by the component |
|
1187 RUN_TEST_STEP 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini drives_management_c_drive |
|
1188 // Unregister second file on drive C |
|
1189 RUN_TEST_STEP 100 tscr SCRUnregisterFile z:\tusif\tscr\tscr.ini drives_management_unregister_second_c_file |
|
1190 // Verify that no drives are used by the component |
|
1191 RUN_TEST_STEP 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini common_component_attributes |
|
1192 |
|
1193 END_TESTCASE API-SEC-SCR-API-0064 |
|
1194 |
|
1195 |
|
1196 //! @SYMTestCaseID API-SEC-SCR-API-0065 |
|
1197 //! @SYMTestCaseDesc Verify language downgrade path functionality |
|
1198 |
|
1199 START_TESTCASE API-SEC-SCR-API-0065 |
|
1200 |
|
1201 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
1202 // Add a single component |
|
1203 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component_with_localizables_test65 |
|
1204 // Set a localizable property for language English |
|
1205 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini set_base_language_property_test65 |
|
1206 // Get the property for language English |
|
1207 RUN_TEST_STEP 100 tscr SCRGetComponentProperty z:\tusif\tscr\tscr.ini get_base_language_property_test65 |
|
1208 // Get the property for language American |
|
1209 RUN_TEST_STEP 100 tscr SCRGetComponentProperty z:\tusif\tscr\tscr.ini get_child_language_property_test65 |
|
1210 // Get the property for non-specified locale |
|
1211 RUN_TEST_STEP 100 tscr SCRGetComponentProperty z:\tusif\tscr\tscr.ini get_unspecified_language_property_test65 |
|
1212 // Get component for unspecified, English and American locale |
|
1213 RUN_TEST_STEP 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini get_component_with_unspecified_names_test65 |
|
1214 RUN_TEST_STEP 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini get_component_with_base_language_test65 |
|
1215 RUN_TEST_STEP 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini get_component_with_child_language_test65 |
|
1216 |
|
1217 END_TESTCASE API-SEC-SCR-API-0065 |
|
1218 |
|
1219 |
|
1220 //! @SYMTestCaseID API-SEC-SCR-API-0066 |
|
1221 //! @SYMTestCaseDesc Install log history tests |
|
1222 |
|
1223 START_TESTCASE API-SEC-SCR-API-0066 |
|
1224 |
|
1225 // Delete database and log files |
|
1226 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
1227 RUN_TEST_STEP 100 tscr SCRDeleteDbFile z:\tusif\tscr\tscr.ini log_file |
|
1228 // Add a new component with version (since version is set in the same session, it is reflected to the log record) |
|
1229 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names_with_version |
|
1230 // Delete the component |
|
1231 RUN_TEST_STEP 100 tscr SCRDeleteComponent z:\tusif\tscr\tscr.ini delete_component |
|
1232 // Add the upgrade version of deleted component |
|
1233 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini update_common_component_names |
|
1234 // Get log entries and compare with the expected ones |
|
1235 RUN_TEST_STEP 100 tscr SCRGetLogEntries z:\tusif\tscr\tscr.ini log_entries |
|
1236 // Add a component and then set its version. Since a new session is started, version is not reflected the log record. |
|
1237 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
1238 RUN_TEST_STEP 100 tscr SCRSetCommonProperty z:\tusif\tscr\tscr.ini update_component_attributes |
|
1239 // Add a component with dummy type |
|
1240 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component_with_dummy_type |
|
1241 // Get the log entries for dummy software type |
|
1242 RUN_TEST_STEP 100 tscr SCRGetLogEntries z:\tusif\tscr\tscr.ini dummy_log_entries |
|
1243 // Test the recorded component name for various situations |
|
1244 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
1245 RUN_TEST_STEP 100 tscr SCRDeleteDbFile z:\tusif\tscr\tscr.ini log_file |
|
1246 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component_with_currentlocale_name |
|
1247 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component_with_nonlocalized_name |
|
1248 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component_with_localized_name |
|
1249 RUN_TEST_STEP 100 tscr SCRGetLogEntries z:\tusif\tscr\tscr.ini name_log_entries |
|
1250 // Delete log file for the following test steps |
|
1251 RUN_TEST_STEP 100 tscr SCRDeleteDbFile z:\tusif\tscr\tscr.ini log_file |
|
1252 // Add a component to create log file |
|
1253 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names_with_version |
|
1254 // Make the log file read-only |
|
1255 RUN_TEST_STEP 100 tscr SCRSetLogFileReadOnlyAttr z:\tusif\tscr\tscr.ini read_only_log_file |
|
1256 // Try to write into the read-only log file by adding a component |
|
1257 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
1258 // Verify that the component log couldn't be added, but the component has been added successfully |
|
1259 RUN_TEST_STEP 100 tscr SCRGetLogEntries z:\tusif\tscr\tscr.ini readonly_log_entries |
|
1260 RUN_TEST_STEP 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini common_component_attributes |
|
1261 // Make sure SCR server shuts |
|
1262 RUN_TEST_STEP 100 tscr SCRDeleteDbFile z:\tusif\tscr\tscr.ini db_file |
|
1263 // Make the file writable |
|
1264 RUN_TEST_STEP 100 tscr SCRSetLogFileReadOnlyAttr z:\tusif\tscr\tscr.ini writable_log_file |
|
1265 // Try to add the component again |
|
1266 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
1267 // Verify that the component log has been added this time |
|
1268 RUN_TEST_STEP 100 tscr SCRGetLogEntries z:\tusif\tscr\tscr.ini writable_log_entries |
|
1269 // Delete the log file |
|
1270 RUN_TEST_STEP 100 tscr SCRDeleteDbFile z:\tusif\tscr\tscr.ini log_file |
|
1271 // Add a component with EScrCompHidden type |
|
1272 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini hidden_common_component_names |
|
1273 // Get log entries. No log is written for a hidden component operation type. |
|
1274 RUN_TEST_STEP 100 tscr SCRGetLogEntries z:\tusif\tscr\tscr.ini hidden_log_entries |
|
1275 // Delete the log file |
|
1276 RUN_TEST_STEP 100 tscr SCRDeleteDbFile z:\tusif\tscr\tscr.ini log_file |
|
1277 // Create the scr log file which includes maximum allowed records |
|
1278 RUN_TEST_STEP 500 tscr SCRCreateLogFile z:\tusif\tscr\tscr.ini log_file_size |
|
1279 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
1280 // Delete the log file not to affect other tests' performance |
|
1281 RUN_TEST_STEP 100 tscr SCRDeleteDbFile z:\tusif\tscr\tscr.ini log_file |
|
1282 |
|
1283 END_TESTCASE API-SEC-SCR-API-0066 |
|
1284 |
|
1285 |
|
1286 //! @SYMTestCaseID API-SEC-SCR-API-0067 |
|
1287 //! @SYMTestCaseDesc Version comparetor tests |
|
1288 |
|
1289 START_TESTCASE API-SEC-SCR-API-0067 |
|
1290 |
|
1291 RUN_TEST_STEP 100 tscr SCRCompareVersions z:\tusif\tscr\tscr.ini less_version_1 |
|
1292 RUN_TEST_STEP 100 tscr SCRCompareVersions z:\tusif\tscr\tscr.ini less_version_2 |
|
1293 RUN_TEST_STEP 100 tscr SCRCompareVersions z:\tusif\tscr\tscr.ini less_version_3 |
|
1294 RUN_TEST_STEP 100 tscr SCRCompareVersions z:\tusif\tscr\tscr.ini great_version_1 |
|
1295 RUN_TEST_STEP 100 tscr SCRCompareVersions z:\tusif\tscr\tscr.ini great_version_2 |
|
1296 RUN_TEST_STEP 100 tscr SCRCompareVersions z:\tusif\tscr\tscr.ini great_version_3 |
|
1297 RUN_TEST_STEP 100 tscr SCRCompareVersions z:\tusif\tscr\tscr.ini equal_version_1 |
|
1298 RUN_TEST_STEP 100 tscr SCRCompareVersions z:\tusif\tscr\tscr.ini equal_version_2 |
|
1299 RUN_TEST_STEP 100 tscr SCRCompareVersions z:\tusif\tscr\tscr.ini equal_version_3 |
|
1300 RUN_TEST_STEP 100 tscr SCRCompareVersions z:\tusif\tscr\tscr.ini equal_version_4 |
|
1301 RUN_TEST_STEP !Result=-6 100 tscr SCRCompareVersions z:\tusif\tscr\tscr.ini wrong_version_1 |
|
1302 RUN_TEST_STEP !Result=-6 100 tscr SCRCompareVersions z:\tusif\tscr\tscr.ini wrong_version_2 |
|
1303 RUN_TEST_STEP !Result=-6 100 tscr SCRCompareVersions z:\tusif\tscr\tscr.ini wrong_version_3 |
|
1304 RUN_TEST_STEP !Result=-6 100 tscr SCRCompareVersions z:\tusif\tscr\tscr.ini wrong_version_4 |
|
1305 RUN_TEST_STEP !Result=-6 100 tscr SCRCompareVersions z:\tusif\tscr\tscr.ini wrong_version_5 |
|
1306 |
|
1307 END_TESTCASE API-SEC-SCR-API-0067 |
|
1308 |
|
1309 |
|
1310 //! @SYMTestCaseID API-SEC-SCR-API-0068 |
|
1311 //! @SYMTestCaseDesc Test if an isntalled component is on read-only drive |
|
1312 |
|
1313 START_TESTCASE API-SEC-SCR-API-0068 |
|
1314 |
|
1315 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
1316 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
1317 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
1318 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini iscomponentonrom_positive |
|
1319 RUN_TEST_STEP 100 tscr SCRIsComponentOnReadOnlyDrive z:\tusif\tscr\tscr.ini iscomponentonrom_positive_check |
|
1320 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini iscomponentonrom_negative |
|
1321 RUN_TEST_STEP 100 tscr SCRIsComponentOnReadOnlyDrive z:\tusif\tscr\tscr.ini iscomponentonrom_negative_check |
|
1322 |
|
1323 END_TESTCASE API-SEC-SCR-API-0068 |
|
1324 |
|
1325 |
|
1326 //! @SYMTestCaseID API-SEC-SCR-API-0069 |
|
1327 //! @SYMTestCaseDesc Tests for component presence |
|
1328 |
|
1329 START_TESTCASE API-SEC-SCR-API-0069 |
|
1330 |
|
1331 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
1332 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
1333 // Check for default componet presence value |
|
1334 RUN_TEST_STEP 100 tscr ScrComponentPresence z:\tusif\tscr\tscr.ini check_default_componentpresence |
|
1335 // Set the component presence value to false |
|
1336 RUN_TEST_STEP 100 tscr ScrComponentPresence z:\tusif\tscr\tscr.ini componentpresence_set_false |
|
1337 // Reset component presence value to true |
|
1338 RUN_TEST_STEP 100 tscr ScrComponentPresence z:\tusif\tscr\tscr.ini componentpresence_set_true |
|
1339 // Register the component files |
|
1340 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini register_component_files |
|
1341 // Check for presence after the files registration |
|
1342 RUN_TEST_STEP 100 tscr ScrComponentPresence z:\tusif\tscr\tscr.ini componentpresence_is_false |
|
1343 // Set the component presence value to false after files being registered |
|
1344 RUN_TEST_STEP 100 tscr ScrComponentPresence z:\tusif\tscr\tscr.ini componentpresence_set_false |
|
1345 |
|
1346 END_TESTCASE API-SEC-SCR-API-0069 |
|
1347 |
|
1348 |
|
1349 //! @SYMTestCaseID API-SEC-SCR-API-0070 |
|
1350 //! @SYMTestCaseDesc Verify that having the same name on different component's localizables works correctly |
|
1351 |
|
1352 START_TESTCASE API-SEC-SCR-API-0070 |
|
1353 |
|
1354 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
1355 // Add a component with same names on two different locales |
|
1356 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini add_component_with_same_localizables_test70 |
|
1357 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_component_with_same_localizables_names_test70 |
|
1358 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini set_same_localized_property_test70 |
|
1359 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_component_with_same_localizables_properties_test70 |
|
1360 |
|
1361 END_TESTCASE API-SEC-SCR-API-0070 |
|
1362 |
|
1363 |
|
1364 //! @SYMTestCaseID API-SEC-SCR-API-0071 |
|
1365 //! @SYMTestCaseDesc Verify that filters on empty vendor names work correctly |
|
1366 |
|
1367 START_TESTCASE API-SEC-SCR-API-0071 |
|
1368 |
|
1369 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
1370 // Add a component with a normal vendor name |
|
1371 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
1372 // Add a component with an empty vendor name |
|
1373 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component_empty_vendor_name |
|
1374 // Retrieve all components with empty vendor names |
|
1375 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_component_with_empty_vendor_name_test71 |
|
1376 |
|
1377 END_TESTCASE API-SEC-SCR-API-0071 |
|
1378 |
|
1379 |
|
1380 //! @SYMTestCaseID API-SEC-SCR-API-0072 |
|
1381 //! @SYMTestCaseDesc Verify that setting very long attributes works |
|
1382 |
|
1383 START_TESTCASE API-SEC-SCR-API-0072 |
|
1384 |
|
1385 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
1386 // Add a component with a regular attributes |
|
1387 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
1388 RUN_TEST_STEP 100 tscr SCRSetCommonProperty z:\tusif\tscr\tscr.ini update_component_set_huge_name_vendor |
|
1389 RUN_TEST_STEP 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini component_huge_property |
|
1390 RUN_TEST_STEP 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini get_component_huge_name_vendor |
|
1391 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_component_by_huge_name_vendor |
|
1392 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_component_by_huge_property |
|
1393 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini register_file_huge_test |
|
1394 RUN_TEST_STEP 100 tscr SCRAddFileProperty z:\tusif\tscr\tscr.ini component_huge_file_property |
|
1395 RUN_TEST_STEP 100 tscr SCRGetComponentProperties z:\tusif\tscr\tscr.ini component_huge_property |
|
1396 RUN_TEST_STEP 100 tscr SCRGetFileProperties z:\tusif\tscr\tscr.ini component_huge_file_property |
|
1397 |
|
1398 END_TESTCASE API-SEC-SCR-API-0072 |
|
1399 |
|
1400 |
|
1401 //! @SYMTestCaseID API-SEC-SCR-API-0073 |
|
1402 //! @SYMTestCaseDesc Verify that setting extremely long attributes doesn't work and that a proper error code is returned |
|
1403 |
|
1404 START_TESTCASE API-SEC-SCR-API-0073 |
|
1405 |
|
1406 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
1407 RUN_TEST_STEP !Result=-6 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini very_huge_component_name |
|
1408 RUN_TEST_STEP !Result=-6 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini very_huge_component_vendor_name |
|
1409 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
1410 RUN_TEST_STEP !Result=-6 100 tscr SCRSetCommonProperty z:\tusif\tscr\tscr.ini update_component_set_very_huge_name |
|
1411 RUN_TEST_STEP !Result=-6 100 tscr SCRSetCommonProperty z:\tusif\tscr\tscr.ini update_component_set_very_huge_vendor |
|
1412 RUN_TEST_STEP !Result=-6 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini set_component_very_huge_property_name |
|
1413 RUN_TEST_STEP !Result=-6 100 tscr SCRSetComponentProperty z:\tusif\tscr\tscr.ini set_component_very_huge_property_value |
|
1414 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini register_file_huge_test |
|
1415 RUN_TEST_STEP !Result=-6 100 tscr SCRAddFileProperty z:\tusif\tscr\tscr.ini component_very_huge_file_property_name |
|
1416 RUN_TEST_STEP !Result=-6 100 tscr SCRAddFileProperty z:\tusif\tscr\tscr.ini component_very_huge_file_property_value |
|
1417 RUN_TEST_STEP !Result=-6 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_component_by_very_huge_name |
|
1418 RUN_TEST_STEP !Result=-6 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_component_by_very_huge_vendor |
|
1419 RUN_TEST_STEP !Result=-6 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_component_by_very_huge_property_name |
|
1420 RUN_TEST_STEP !Result=-6 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini get_component_by_very_huge_property_value |
|
1421 |
|
1422 END_TESTCASE API-SEC-SCR-API-0073 |
|
1423 |
|
1424 |
|
1425 //! @SYMTestCaseID API-SEC-SCR-API-0074 |
|
1426 //! @SYMTestCaseDesc Verify that invalid parameters in filters don't cause failures |
|
1427 |
|
1428 START_TESTCASE API-SEC-SCR-API-0074 |
|
1429 |
|
1430 RUN_TEST_STEP 100 tscr SCRValuesNegative z:\tusif\tscr\tscr.ini |
|
1431 |
|
1432 END_TESTCASE API-SEC-SCR-API-0074 |
|
1433 |
|
1434 |
|
1435 //! @SYMTestCaseID API-SEC-SCR-API-0075 |
|
1436 //! @SYMTestCaseDesc Try closing a session whilst a subsession is open |
|
1437 |
|
1438 START_TESTCASE API-SEC-SCR-API-0075 |
|
1439 |
|
1440 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
1441 // Make sure that sub-sessions will have entries to iterate on by adding a component |
|
1442 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
|
1443 RUN_TEST_STEP 100 tscr SCRCreateTransaction z:\tusif\tscr\tscr.ini close_session_with_open_subsession |
|
1444 |
|
1445 END_TESTCASE API-SEC-SCR-API-0075 |
|
1446 |
|
1447 |
|
1448 //! @SYMTestCaseID API-SEC-SCR-API-0076 |
|
1449 //! @SYMTestCaseDesc Verify registering files when setting aConsiderForInstalledDrives to false |
|
1450 |
|
1451 START_TESTCASE API-SEC-SCR-API-0076 |
|
1452 |
|
1453 RUN_TEST_STEP 100 tscr SCRDeleteAllComponents z:\tusif\tscr\tscr.ini |
|
1454 // Register two components with different names |
|
1455 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini test76_component_without_drives |
|
1456 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini test76_component_with_drives |
|
1457 // Register same files to both components, while setting the flag to false for the first component |
|
1458 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini register_files_consider_drives_false_test76 |
|
1459 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini register_files_consider_drives_true_test76 |
|
1460 // Check that filter on components which have files on drive P does not return component 1, but returns component 2 |
|
1461 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini components_on_driveP_test76 |
|
1462 // Verify that files were registered to the first component |
|
1463 RUN_TEST_STEP 100 tscr ScrFileListSubsession z:\tusif\tscr\tscr.ini component_files_test76 |
|
1464 // Verify that the first component does not list any registered drives |
|
1465 RUN_TEST_STEP 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini get_no_drives_component_test76 |
|
1466 END_TESTCASE API-SEC-SCR-API-0076 |
|
1467 |
|
1468 |
|
1469 //! @SYMTestCaseID API-SEC-SCR-API-0077 |
|
1470 //! @SYMTestCaseDesc Add a single software component with localized information and retrieve the same |
|
1471 |
|
1472 START_TESTCASE API-SEC-SCR-API-0077 |
|
1473 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini component_localized_info |
|
1474 RUN_TEST_STEP 100 tscr SCRGetComponentLocalizedInfo z:\tusif\tscr\tscr.ini verify_component_localized_info |
|
1475 END_TESTCASE API-SEC-SCR-API-0077 |