os/security/cryptoservices/filebasedcertificateandkeystores/test/ttesttools/scripts/sec-filetokens-tools.script
Update contrib.
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.
18 // filetokens tools unit (integration) tests
19 PRINT Run all certtool and keytool tests
22 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0001
23 //! @SYMTestCaseDesc Certool help command
25 //! @SYMTestPriority Medium
26 //! @SYMTestActions call Certool for the help command
27 //! @SYMTestExpectedResults Certtool help command should display the help command as expected
28 //! @SYMDevelopedForRelease Sphinx
30 START_TESTCASE SEC-FILETOKENS-EC097-0001
31 RUN_PROGRAM certtool.exe c:\ttesttools\data\certhelp.txt c:\output.txt
32 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp
33 END_TESTCASE SEC-FILETOKENS-EC097-0001
35 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0002
36 //! @SYMTestCaseDesc Certool Individual help command
37 //! (certhelp_individual)
38 //! @SYMTestPriority Medium
39 //! @SYMTestActions call Certool for the Individual help command
40 //! @SYMTestExpectedResults Certtool Individual help command should display the help command as expected
41 //! @SYMDevelopedForRelease Sphinx
43 START_TESTCASE SEC-FILETOKENS-EC097-0002
44 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_helpls.txt c:\output.txt
45 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp_individual
46 END_TESTCASE SEC-FILETOKENS-EC097-0002
48 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0003
49 //! @SYMTestCaseDesc Certool liststore command
50 //! (certtool_liststores)
51 //! @SYMTestPriority Medium
52 //! @SYMTestActions call Certool for the liststore command then parse the output file and constuct the expected stores
53 //! @SYMTestExpectedResults Call certstore via CUnifiedCertstore and compare with the expected stores
54 //! @SYMDevelopedForRelease Sphinx
56 START_TESTCASE SEC-FILETOKENS-EC097-0003
57 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_ls.txt c:\output.txt
58 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_liststores
59 END_TESTCASE SEC-FILETOKENS-EC097-0003
61 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0004
62 //! @SYMTestCaseDesc Certool import command
63 //! (certtool_import_store0)
64 //! @SYMTestPriority Medium
65 //! @SYMTestActions call Certool to import the certificate.
66 //! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore and confirms the certificate is listed
67 //! @SYMDevelopedForRelease Sphinx
69 START_TESTCASE SEC-FILETOKENS-EC097-0004
70 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import1.txt c:\output.txt
71 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_store0
72 END_TESTCASE SEC-FILETOKENS-EC097-0004
75 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0005
76 //! @SYMTestCaseDesc Certool import command
77 //! (certtool_import_store1)
78 //! @SYMTestPriority Medium
79 //! @SYMTestActions call Certool to import the certificate to store 1
80 //! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore and confirms the certificate is listed
81 //! @SYMDevelopedForRelease Sphinx
83 START_TESTCASE SEC-FILETOKENS-EC097-0005
84 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import2.txt c:\output.txt
85 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_store1
86 END_TESTCASE SEC-FILETOKENS-EC097-0005
89 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0006
90 //! @SYMTestCaseDesc Certool import command
91 //! (certtool_import_store01twice)
92 //! @SYMTestPriority Medium
93 //! @SYMTestActions call Certool to import the same certificate with same name in two different stores
94 //! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore and confirms the certificate is listed
95 //! @SYMDevelopedForRelease Sphinx
97 START_TESTCASE SEC-FILETOKENS-EC097-0006
98 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import3.txt c:\output.txt
99 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_store01twice
100 END_TESTCASE SEC-FILETOKENS-EC097-0006
103 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0007
104 //! @SYMTestCaseDesc Certool import command
105 //! (certtool_import_keycert)
106 //! @SYMTestPriority Medium
107 //! @SYMTestActions call Certool to import the certificate as well as the key
108 //! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore and confirms the certificate is listed
109 //! Call keystore list via CUnifiedKeystore and confirms the key is listed
110 //! @SYMDevelopedForRelease Sphinx
112 START_TESTCASE SEC-FILETOKENS-EC097-0007
113 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import4.txt c:\output.txt
114 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_keycert
115 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_keycert
116 END_TESTCASE SEC-FILETOKENS-EC097-0007
119 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0008
120 //! @SYMTestCaseDesc Certool setapps command
121 //! (certtool_setapps)
122 //! @SYMTestPriority Medium
123 //! @SYMTestActions call Certool to set the application trust status for the certificate
124 //! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats trust status
125 //! @SYMDevelopedForRelease Sphinx
127 START_TESTCASE SEC-FILETOKENS-EC097-0008
128 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setapps.txt c:\output.txt
129 RUN_TEST_STEP 100 ttesttools GetTrustAppsStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps
130 END_TESTCASE SEC-FILETOKENS-EC097-0008
132 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0009
133 //! @SYMTestCaseDesc Certool addapps command
134 //! (certtool_addapps)
135 //! @SYMTestPriority Medium
136 //! @SYMTestActions call Certool to add the application trust status for the certificate
137 //! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats trust status
138 //! @SYMDevelopedForRelease Sphinx
140 START_TESTCASE SEC-FILETOKENS-EC097-0009
141 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_addapps.txt c:\output.txt
142 RUN_TEST_STEP 100 ttesttools GetTrustAppsStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_addapps
143 END_TESTCASE SEC-FILETOKENS-EC097-0009
147 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0010
148 //! @SYMTestCaseDesc Certool removeapps command
149 //! (certtool_removeapps)
150 //! @SYMTestPriority Medium
151 //! @SYMTestActions call Certool to remove the application trust status for the certificate
152 //! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats trust status
153 //! @SYMDevelopedForRelease Sphinx
155 START_TESTCASE SEC-FILETOKENS-EC097-0010
156 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removeapps.txt c:\output.txt
157 RUN_TEST_STEP 100 ttesttools GetTrustAppsStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removeapps
158 END_TESTCASE SEC-FILETOKENS-EC097-0010
162 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0011
163 //! @SYMTestCaseDesc Certool list command
165 //! @SYMTestPriority Medium
166 //! @SYMTestActions call Certool to list the certificate then parse the output file and construct the expected cert list
167 //! @SYMTestExpectedResults Query certstore list via CUnifiedCertstore and confirms with the expected certlist
168 //! @SYMDevelopedForRelease Sphinx
170 START_TESTCASE SEC-FILETOKENS-EC097-0011
171 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_list1.txt c:\output.txt
172 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list
173 END_TESTCASE SEC-FILETOKENS-EC097-0011
175 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0012
176 //! @SYMTestCaseDesc Certool list the certficate in store 1
177 //! (certtool_list_store)
178 //! @SYMTestPriority Medium
179 //! @SYMTestActions call Certool to list the certificate in store 1 then parse the output file and construct the expected cert list
180 //! @SYMTestExpectedResults Query certstore list via CUnifiedCertstore and confirms with the expected certlist
181 //! @SYMDevelopedForRelease Sphinx
183 START_TESTCASE SEC-FILETOKENS-EC097-0012
184 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_list2.txt c:\output.txt
185 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_store
186 END_TESTCASE SEC-FILETOKENS-EC097-0012
188 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0013
189 //! @SYMTestCaseDesc Certool list a particular certificate
190 //! (certtool_list_cert)
191 //! @SYMTestPriority Medium
192 //! @SYMTestActions call Certool to list the certificate
193 //! @SYMTestExpectedResults Query certstore list via CUnifiedCertstore and confirms with the expected certificate
194 //! @SYMDevelopedForRelease Sphinx
196 START_TESTCASE SEC-FILETOKENS-EC097-0013
197 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_list3.txt c:\output.txt
198 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_cert
199 END_TESTCASE SEC-FILETOKENS-EC097-0013
202 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0014
203 //! @SYMTestCaseDesc Certool list a particular owner type
204 //! (certtool_list_certowner)
205 //! @SYMTestPriority Medium
206 //! @SYMTestActions call Certool to list the certificate for a particular owner
207 //! @SYMTestExpectedResults Query certstore list via CUnifiedCertstore and confirms with the expected certlist
208 //! @SYMDevelopedForRelease Sphinx
210 START_TESTCASE SEC-FILETOKENS-EC097-0014
211 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_list4.txt c:\output.txt
212 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_certowner
213 END_TESTCASE SEC-FILETOKENS-EC097-0014
216 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0015
217 //! @SYMTestCaseDesc Certool remove command
218 //! (certtool_remove)
219 //! @SYMTestPriority Medium
220 //! @SYMTestActions call Certool to remove the certificate
221 //! @SYMTestExpectedResults Query certstore list via CUnifiedCertstore and confirm that the certificate won't be listed
222 //! @SYMDevelopedForRelease Sphinx
224 START_TESTCASE SEC-FILETOKENS-EC097-0015
225 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_remove1.txt c:\output.txt
226 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_remove1
227 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_remove2
228 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_remove3
229 END_TESTCASE SEC-FILETOKENS-EC097-0015
232 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0016
233 //! @SYMTestCaseDesc Certool remove key and cert
234 //! (certtool_removekey)
235 //! @SYMTestPriority Medium
236 //! @SYMTestActions call Certool to remove the certificate as well as key
237 //! @SYMTestExpectedResults Query certstore and keystore and confirms both cert and key are deleted.
238 //! @SYMDevelopedForRelease Sphinx
240 START_TESTCASE SEC-FILETOKENS-EC097-0016
241 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_remove2.txt c:\output.txt
242 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removekey
243 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removekey
244 END_TESTCASE SEC-FILETOKENS-EC097-0016
247 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0017
248 //! @SYMTestCaseDesc keytool help command
250 //! @SYMTestPriority Medium
251 //! @SYMTestActions call keytool to display the help command
252 //! @SYMTestExpectedResults help command should display the help command as expected
253 //! @SYMDevelopedForRelease Sphinx
255 START_TESTCASE SEC-FILETOKENS-EC097-0017
256 RUN_PROGRAM keytool.exe c:\ttesttools\data\keyhelp.txt c:\output.txt
257 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help
258 END_TESTCASE SEC-FILETOKENS-EC097-0017
260 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0018
261 //! @SYMTestCaseDesc keytool Individual help command
262 //! (keytool_help_individual)
263 //! @SYMTestPriority Medium
264 //! @SYMTestActions call keytool to display the Individual help command
265 //! @SYMTestExpectedResults help command should display the help command as expected
266 //! @SYMDevelopedForRelease Sphinx
268 START_TESTCASE SEC-FILETOKENS-EC097-0018
269 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setuserhelp.txt c:\output.txt
270 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help_individual
271 END_TESTCASE SEC-FILETOKENS-EC097-0018
274 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0019
275 //! @SYMTestCaseDesc keytool liststore command
276 //! (keytool_liststores)
277 //! @SYMTestPriority Medium
278 //! @SYMTestActions call keytool for the liststore command then parse the output file and constuct the expected stores
279 //! @SYMTestExpectedResults Call keystore via CUnifiedKeystore and compare with the expected stores
280 //! @SYMDevelopedForRelease Sphinx
282 START_TESTCASE SEC-FILETOKENS-EC097-0019
283 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_ls.txt c:\output.txt
284 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_liststores
285 END_TESTCASE SEC-FILETOKENS-EC097-0019
287 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0020
288 //! @SYMTestCaseDesc keytool import command
289 //! (keytool_import_key)
290 //! @SYMTestPriority Medium
291 //! @SYMTestActions call keytool to import the certtificate.
292 //! @SYMTestExpectedResults Call keystore list via CUnifiedkeystore and confirms the key is listed
293 //! @SYMDevelopedForRelease Sphinx
295 START_TESTCASE SEC-FILETOKENS-EC097-0020
296 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_import1.txt c:\output.txt
297 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_key
298 END_TESTCASE SEC-FILETOKENS-EC097-0020
300 //! Test case 21 and 22 should be uncommented after fix the defect DEF113031
301 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0021
302 //! @SYMTestCaseDesc keytool import command
303 //! (keytool_import_key_store1)
304 //! @SYMTestPriority Medium
305 //! @SYMTestActions call keytool to import the key to store 1
306 //! @SYMTestExpectedResults Call keystore list via CUnifiedKeystore and confirms the key is listed
307 //! @SYMDevelopedForRelease Sphinx
309 // START_TESTCASE SEC-FILETOKENS-EC097-0021
310 // RUN_PROGRAM keytool.exe c:\ttesttools\data\key_import2.txt c:\output.txt
311 // RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_key_store1
312 // END_TESTCASE SEC-FILETOKENS-EC097-0021
315 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0022
316 //! @SYMTestCaseDesc keytool import command
317 //! (keytool_import_key_store01twice)
318 //! @SYMTestPriority Medium
319 //! @SYMTestActions call keytool to import the same key with same name in two different stores
320 //! @SYMTestExpectedResults Call keystore list via CUnifiedKeystore and confirms the key is listed
321 //! @SYMDevelopedForRelease Sphinx
323 // START_TESTCASE SEC-FILETOKENS-EC097-0022
324 // RUN_PROGRAM keytool.exe c:\ttesttools\data\key_import3.txt c:\output.txt
325 // RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_key_store01twice
326 // END_TESTCASE SEC-FILETOKENS-EC097-0022
329 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0023
330 //! @SYMTestCaseDesc keytool list command
332 //! @SYMTestPriority Medium
333 //! @SYMTestActions call keytool to list the keys then parse the output file and construct the expected key list
334 //! @SYMTestExpectedResults Query keystore list via CUnifiedKeystore and confirms with the expected keylist
335 //! @SYMDevelopedForRelease Sphinx
337 START_TESTCASE SEC-FILETOKENS-EC097-0023
338 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_list1.txt c:\output.txt
339 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list
340 END_TESTCASE SEC-FILETOKENS-EC097-0023
343 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0024
344 //! @SYMTestCaseDesc keytool list the keys in store 0
345 //! (keytool_list_store)
346 //! @SYMTestPriority Medium
347 //! @SYMTestActions call keytool to list the keys in store 0 then parse the output file and construct the expected key list
348 //! @SYMTestExpectedResults Query keystore list via CUnifiedKeystore and confirms with the expected key list.
349 //! @SYMDevelopedForRelease Sphinx
351 START_TESTCASE SEC-FILETOKENS-EC097-0024
352 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_list2.txt c:\output.txt
353 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list_store
354 END_TESTCASE SEC-FILETOKENS-EC097-0024
357 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0025
358 //! @SYMTestCaseDesc keytool list a particular key
359 //! (keytool_list_key)
360 //! @SYMTestPriority Medium
361 //! @SYMTestActions call keytool to list the key
362 //! @SYMTestExpectedResults Query keystore list via CUnifiedKeystore and confirms with the expected key
363 //! @SYMDevelopedForRelease Sphinx
365 START_TESTCASE SEC-FILETOKENS-EC097-0025
366 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_list3.txt c:\output.txt
367 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list_key
368 END_TESTCASE SEC-FILETOKENS-EC097-0025
371 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0026
372 //! @SYMTestCaseDesc keytool remove a particular key
374 //! @SYMTestPriority Medium
375 //! @SYMTestActions call keytool to remove the key
376 //! @SYMTestExpectedResults Query keystore list via CUnifiedKeystore and confirms with the expected key won't be listed
377 //! @SYMDevelopedForRelease Sphinx
379 START_TESTCASE SEC-FILETOKENS-EC097-0026
380 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_remove.txt c:\output.txt
381 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_remove
382 END_TESTCASE SEC-FILETOKENS-EC097-0026
385 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0027
386 //! @SYMTestCaseDesc keytool setuser command
387 //! (keytool_setuser)
388 //! @SYMTestPriority Medium
389 //! @SYMTestActions call keytool to setuser for the key
390 //! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key user.
391 //! @SYMDevelopedForRelease Sphinx
393 START_TESTCASE SEC-FILETOKENS-EC097-0027
394 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setuser.txt c:\output.txt
395 RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setuser
396 END_TESTCASE SEC-FILETOKENS-EC097-0027
399 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0028
400 //! @SYMTestCaseDesc keytool setalluser command
401 //! (keytool_setallusers)
402 //! @SYMTestPriority Medium
403 //! @SYMTestActions call keytool to setalluser for the key
404 //! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key user.
405 //! @SYMDevelopedForRelease Sphinx
407 START_TESTCASE SEC-FILETOKENS-EC097-0028
408 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setalluser.txt c:\output.txt
409 RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setallusers
410 END_TESTCASE SEC-FILETOKENS-EC097-0028
413 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0029
414 //! @SYMTestCaseDesc keytool setmanager command
415 //! (keytool_setmanager)
416 //! @SYMTestPriority Medium
417 //! @SYMTestActions call keytool to setmanager for the key
418 //! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key manager.
419 //! @SYMDevelopedForRelease Sphinx
421 START_TESTCASE SEC-FILETOKENS-EC097-0029
422 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setmanager.txt c:\output.txt
423 RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setmanager
424 END_TESTCASE SEC-FILETOKENS-EC097-0029
427 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0030
428 //! @SYMTestCaseDesc keytool removeuser command
429 //! (keytool_removeuser)
430 //! @SYMTestPriority Medium
431 //! @SYMTestActions call keytool to remove the user for the key
432 //! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key user.
433 //! @SYMDevelopedForRelease Sphinx
435 START_TESTCASE SEC-FILETOKENS-EC097-0030
436 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_removeuser.txt c:\output.txt
437 RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_removeuser
438 END_TESTCASE SEC-FILETOKENS-EC097-0030
441 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0031
442 //! @SYMTestCaseDesc certtool imported key managed by keytool
443 //! (certtoolkey_keytoolmanage)
444 //! @SYMTestPriority Medium
445 //! @SYMTestActions call certtool to import a key then call keytool to setuser,removeuser , remove the key
446 //! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key Details.
447 //! @SYMDevelopedForRelease Sphinx
449 START_TESTCASE SEC-FILETOKENS-EC097-0031
450 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import4.txt c:\output.txt
451 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_keycert
452 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_keycert
453 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_import4.txt c:\output.txt
454 RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtoolkey_keytoolmanage
455 RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtoolkey_keytoolmanage1
456 END_TESTCASE SEC-FILETOKENS-EC097-0031
459 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0032
460 //! @SYMTestCaseDesc Certool help command
461 //! (certtool_helpfail)
462 //! @SYMTestPriority Medium
463 //! @SYMTestActions call Certool for the help command without any argument
464 //! @SYMTestExpectedResults Certtool help command should display the help command as expected
465 //! @SYMDevelopedForRelease Sphinx
467 START_TESTCASE SEC-FILETOKENS-EC097-0032
468 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_helpfail1.txt c:\output.txt
469 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp
470 END_TESTCASE SEC-FILETOKENS-EC097-0032
473 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0033
474 //! @SYMTestCaseDesc Certool Individual help command
475 //! (certtool_individual_helpfail)
476 //! @SYMTestPriority Medium
477 //! @SYMTestActions call Certool for the individual help command with wrong command
478 //! @SYMTestExpectedResults Certtool help command should display the help command as expected
479 //! @SYMDevelopedForRelease Sphinx
481 START_TESTCASE SEC-FILETOKENS-EC097-0033
482 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_helpfail2.txt c:\output.txt
483 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp
484 END_TESTCASE SEC-FILETOKENS-EC097-0033
487 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0035
488 //! @SYMTestCaseDesc Certool importing twice
489 //! (certtool_import_twicefail)
490 //! @SYMTestPriority Medium
491 //! @SYMTestActions call Certool to import a certificate twice
492 //! @SYMTestExpectedResults Certtool should display the error message as already exists
493 //! @SYMDevelopedForRelease Sphinx
495 START_TESTCASE SEC-FILETOKENS-EC097-0035
496 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail1.txt c:\output.txt
497 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail1.txt c:\output.txt
498 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_twicefail
499 END_TESTCASE SEC-FILETOKENS-EC097-0035
502 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0036
503 //! @SYMTestCaseDesc Certool importing certficate to non existing store
504 //! (certtool_import_emptycertstorefail)
505 //! @SYMTestPriority Medium
506 //! @SYMTestActions call Certool to import a certificate to non existing store
507 //! @SYMTestExpectedResults Certtool should display the error message as not exist
508 //! @SYMDevelopedForRelease Sphinx
510 START_TESTCASE SEC-FILETOKENS-EC097-0036
511 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail2.txt c:\output.txt
512 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_emptycertstorefail
513 END_TESTCASE SEC-FILETOKENS-EC097-0036
516 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0037
517 //! @SYMTestCaseDesc Certool importing nonexisting certificate
518 //! (certtool_import_nonexistfail)
519 //! @SYMTestPriority Medium
520 //! @SYMTestActions call Certool to import a nonexisting certficate
521 //! @SYMTestExpectedResults Certtool should display the error message as cannot open the file
522 //! @SYMDevelopedForRelease Sphinx
524 START_TESTCASE SEC-FILETOKENS-EC097-0037
525 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail3.txt c:\output.txt
526 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_nonexistfail
527 END_TESTCASE SEC-FILETOKENS-EC097-0037
530 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0038
531 //! @SYMTestCaseDesc Certool importing corrupted certificate
532 //! (certtool_import_corruptcertfail)
533 //! @SYMTestPriority Medium
534 //! @SYMTestActions call Certool to import a corrupted certificate
535 //! @SYMTestExpectedResults Certtool should display the error message as corrupted
536 //! @SYMDevelopedForRelease Sphinx
538 START_TESTCASE SEC-FILETOKENS-EC097-0038
539 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail4.txt c:\output.txt
540 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_corruptcertfail
541 END_TESTCASE SEC-FILETOKENS-EC097-0038
543 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0039
544 //! @SYMTestCaseDesc Certool importing a empty certficate
545 //! (certtool_import_emptycertfail)
546 //! @SYMTestPriority Medium
547 //! @SYMTestActions call Certool to import a empty certficate
548 //! @SYMTestExpectedResults Certtool should display the error message as cannot open the file
549 //! @SYMDevelopedForRelease Sphinx
551 START_TESTCASE SEC-FILETOKENS-EC097-0039
552 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail5.txt c:\output.txt
553 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_emptycertfail
554 END_TESTCASE SEC-FILETOKENS-EC097-0039
558 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0040
559 //! @SYMTestCaseDesc Certool setapps command
560 //! (certtool_setapps_invalidfail)
561 //! @SYMTestPriority Medium
562 //! @SYMTestActions call Certool to setapps a certificate where the apps is not exist
563 //! @SYMTestExpectedResults Certtool should display the error message try one of existing apps
564 //! @SYMDevelopedForRelease Sphinx
567 START_TESTCASE SEC-FILETOKENS-EC097-0040
568 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setappsfail1.txt c:\output.txt
569 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps_invalidfail
570 END_TESTCASE SEC-FILETOKENS-EC097-0040
573 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0041
574 //! @SYMTestCaseDesc Certool setapps command
575 //! (certtool_setapps_userfail)
576 //! @SYMTestPriority Medium
577 //! @SYMTestActions call Certool to setapps a user certificate
578 //! @SYMTestExpectedResults Certtool should display the error message error occured while adding applicability
579 //! @SYMDevelopedForRelease Sphinx
581 START_TESTCASE SEC-FILETOKENS-EC097-0041
582 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setappsfail2.txt c:\output.txt
583 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps_userfail
584 END_TESTCASE SEC-FILETOKENS-EC097-0041
587 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0042
588 //! @SYMTestCaseDesc Certool addapps command
589 //! (certtool_addapps_invalidfail)
590 //! @SYMTestPriority Medium
591 //! @SYMTestActions call Certool to addapps a certificate where the apps is not exist
592 //! @SYMTestExpectedResults Certtool should display the error message try one of existing apps
593 //! @SYMDevelopedForRelease Sphinx
596 START_TESTCASE SEC-FILETOKENS-EC097-0042
597 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_addappsfail1.txt c:\output.txt
598 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_addapps_invalidfail
599 END_TESTCASE SEC-FILETOKENS-EC097-0042
602 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0043
603 //! @SYMTestCaseDesc Certool addapps command
604 //! (certtool_addapps_userfail)
605 //! @SYMTestPriority Medium
606 //! @SYMTestActions call Certool to addapps a certificate where the apps is not exist
607 //! @SYMTestExpectedResults Certtool should display the error message error occured while adding applicability
608 //! @SYMDevelopedForRelease Sphinx
610 START_TESTCASE SEC-FILETOKENS-EC097-0043
611 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setappsfail2.txt c:\output.txt
612 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_addapps_userfail
613 END_TESTCASE SEC-FILETOKENS-EC097-0043
615 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0044
616 //! @SYMTestCaseDesc Certool removeapps command
617 //! (certtool_removeapps_invalidfail)
618 //! @SYMTestPriority Medium
619 //! @SYMTestActions call Certool to removeapps a certificate where the apps is not exist
620 //! @SYMTestExpectedResults Certtool should display the error message try one of existing apps
621 //! @SYMDevelopedForRelease Sphinx
624 START_TESTCASE SEC-FILETOKENS-EC097-0044
625 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removeappsfail1.txt c:\output.txt
626 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removeapps_invalidfail
627 END_TESTCASE SEC-FILETOKENS-EC097-0044
630 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0045
631 //! @SYMTestCaseDesc Certool removeapps command
632 //! (certtool_removeapps_untrustfail)
633 //! @SYMTestPriority Medium
634 //! @SYMTestActions call Certool to removeapps a certificate where the applicability is not exist
635 //! @SYMTestExpectedResults Certtool should display the error message not trusted for the apps
636 //! @SYMDevelopedForRelease Sphinx
638 START_TESTCASE SEC-FILETOKENS-EC097-0045
639 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removeappsfail2.txt c:\output.txt
640 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removeapps_untrustfail
641 END_TESTCASE SEC-FILETOKENS-EC097-0045
644 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0046
645 //! @SYMTestCaseDesc Certool list command
646 //! (certtool_list_fail)
647 //! @SYMTestPriority Medium
648 //! @SYMTestActions call Certool to list a certificate where the certificate store is not exist
649 //! @SYMTestExpectedResults Certtool should display the error message store not exist
650 //! @SYMDevelopedForRelease Sphinx
652 START_TESTCASE SEC-FILETOKENS-EC097-0046
653 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_listfail1.txt c:\output.txt
654 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_fail
655 END_TESTCASE SEC-FILETOKENS-EC097-0046
658 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0047
659 //! @SYMTestCaseDesc Certool list command
660 //! (certtool_list_fail1)
661 //! @SYMTestPriority Medium
662 //! @SYMTestActions call Certool to list a certificate where the certificate is not exist
663 //! @SYMTestExpectedResults Certtool should display the error message certificate is not exist
664 //! @SYMDevelopedForRelease Sphinx
667 START_TESTCASE SEC-FILETOKENS-EC097-0047
668 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_listfail2.txt c:\output.txt
669 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_fail1
670 END_TESTCASE SEC-FILETOKENS-EC097-0047
673 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0034
674 //! @SYMTestCaseDesc Certool list command
675 //! (certtool_list_fail2)
676 //! @SYMTestPriority Medium
677 //! @SYMTestActions call Certool to list a certificate ownere where the owner is not exist
678 //! @SYMTestExpectedResults Certtool should display the error message as no certificate exist
679 //! @SYMDevelopedForRelease Sphinx
681 START_TESTCASE SEC-FILETOKENS-EC097-0034
682 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_listfail3.txt c:\output.txt
683 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_fail2
684 END_TESTCASE SEC-FILETOKENS-EC097-0034
687 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0048
688 //! @SYMTestCaseDesc Certool remove command
689 //! (certtool_remove_fail)
690 //! @SYMTestPriority Medium
691 //! @SYMTestActions call Certool to remove a certificate where the certificate is not exist
692 //! @SYMTestExpectedResults Certtool should display the error message certificate not exist
693 //! @SYMDevelopedForRelease Sphinx
695 START_TESTCASE SEC-FILETOKENS-EC097-0048
696 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removefail.txt c:\output.txt
697 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_remove_fail
698 END_TESTCASE SEC-FILETOKENS-EC097-0048
701 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0049
702 //! @SYMTestCaseDesc Certool command
704 //! @SYMTestPriority Medium
705 //! @SYMTestActions call Certool command in unspecified order
706 //! @SYMTestExpectedResults Certtool should display the help message
707 //! @SYMDevelopedForRelease Sphinx
709 START_TESTCASE SEC-FILETOKENS-EC097-0049
710 RUN_PROGRAM certtool.exe c:\ttesttools\data\certfail.txt c:\output.txt
711 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp
712 END_TESTCASE SEC-FILETOKENS-EC097-0049
715 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0050
716 //! @SYMTestCaseDesc Keytool help command
717 //! (keytool_help_fail)
718 //! @SYMTestPriority Medium
719 //! @SYMTestActions call Keytool help command without any argument
720 //! @SYMTestExpectedResults Keytool should display the help message
721 //! @SYMDevelopedForRelease Sphinx
723 START_TESTCASE SEC-FILETOKENS-EC097-0050
724 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_helpfail1.txt c:\output.txt
725 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help
726 END_TESTCASE SEC-FILETOKENS-EC097-0050
728 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0051
729 //! @SYMTestCaseDesc Keytool Individual help command
730 //! (keytool_help_fail1)
731 //! @SYMTestPriority Medium
732 //! @SYMTestActions call Keytool Individual help command where the command is not exist
733 //! @SYMTestExpectedResults Keytool should display the help message
734 //! @SYMDevelopedForRelease Sphinx
736 START_TESTCASE SEC-FILETOKENS-EC097-0051
737 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_helpfail2.txt c:\output.txt
738 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help
739 END_TESTCASE SEC-FILETOKENS-EC097-0051
742 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0053
743 //! @SYMTestCaseDesc Keytool import command
744 //! (keytool_import_fail)
745 //! @SYMTestPriority Medium
746 //! @SYMTestActions call Keytool import key twice
747 //! @SYMTestExpectedResults Keytool should display the error message as already exists
748 //! @SYMDevelopedForRelease Sphinx
750 START_TESTCASE SEC-FILETOKENS-EC097-0053
751 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail1.txt c:\output.txt
752 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail1.txt c:\output.txt
753 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail
754 END_TESTCASE SEC-FILETOKENS-EC097-0053
757 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0054
758 //! @SYMTestCaseDesc Keytool import command
759 //! (keytool_import_fail1)
760 //! @SYMTestPriority Medium
761 //! @SYMTestActions call Keytool import key where keystore doesn't exist
762 //! @SYMTestExpectedResults Keytool should display the error message as store not exist
763 //! @SYMDevelopedForRelease Sphinx
765 START_TESTCASE SEC-FILETOKENS-EC097-0054
766 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail2.txt c:\output.txt
767 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail1
768 END_TESTCASE SEC-FILETOKENS-EC097-0054
771 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0055
772 //! @SYMTestCaseDesc Keytool import command
773 //! (keytool_import_fail2)
774 //! @SYMTestPriority Medium
775 //! @SYMTestActions call Keytool import key where key doesn't exist
776 //! @SYMTestExpectedResults Keytool should display the error message as key not exist
777 //! @SYMDevelopedForRelease Sphinx
779 START_TESTCASE SEC-FILETOKENS-EC097-0055
780 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail3.txt c:\output.txt
781 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail2
782 END_TESTCASE SEC-FILETOKENS-EC097-0055
785 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0056
786 //! @SYMTestCaseDesc Keytool import command
787 //! (keytool_import_fail3)
788 //! @SYMTestPriority Medium
789 //! @SYMTestActions call Keytool import a corrupted key
790 //! @SYMTestExpectedResults Keytool should display the error message as corrupted key
791 //! @SYMDevelopedForRelease Sphinx
793 START_TESTCASE SEC-FILETOKENS-EC097-0056
794 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail4.txt c:\output.txt
795 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail3
796 END_TESTCASE SEC-FILETOKENS-EC097-0056
799 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0057
800 //! @SYMTestCaseDesc Keytool import command
801 //! (keytool_import_fail4)
802 //! @SYMTestPriority Medium
803 //! @SYMTestActions call Keytool import empty key
804 //! @SYMTestExpectedResults Keytool should display the error message as key is empty
805 //! @SYMDevelopedForRelease Sphinx
807 START_TESTCASE SEC-FILETOKENS-EC097-0057
808 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail5.txt c:\output.txt
809 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail4
810 END_TESTCASE SEC-FILETOKENS-EC097-0057
812 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0058
813 //! @SYMTestCaseDesc Keytool setuser command
814 //! (keytool_setuser_fail)
815 //! @SYMTestPriority Medium
816 //! @SYMTestActions call Keytool setuser for key where key is not exist
817 //! @SYMTestExpectedResults Keytool should display the error message as key is not exist
818 //! @SYMDevelopedForRelease Sphinx
820 START_TESTCASE SEC-FILETOKENS-EC097-0058
821 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setuserfail1.txt c:\output.txt
822 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setuser_fail
823 END_TESTCASE SEC-FILETOKENS-EC097-0058
825 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0059
826 //! @SYMTestCaseDesc Keytool setuser command
827 //! (keytool_setuser_fail1)
828 //! @SYMTestPriority Medium
829 //! @SYMTestActions call Keytool setuser for key where key is created by third party
830 //! @SYMTestExpectedResults Keytool should display the error message as setusers failed with -46
831 //! @SYMDevelopedForRelease Sphinx
833 START_TESTCASE SEC-FILETOKENS-EC097-0059
834 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setuserfail2.txt c:\output.txt
835 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setuser_fail1
836 END_TESTCASE SEC-FILETOKENS-EC097-0059
838 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0060
839 //! @SYMTestCaseDesc Keytool setalluser command
840 //! (keytool_setallusers_fail)
841 //! @SYMTestPriority Medium
842 //! @SYMTestActions call Keytool setalluser for key where key is not exist
843 //! @SYMTestExpectedResults Keytool should display the error message as key is not exist
844 //! @SYMDevelopedForRelease Sphinx
846 START_TESTCASE SEC-FILETOKENS-EC097-0060
847 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setalluserfail1.txt c:\output.txt
848 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setallusers_fail
849 END_TESTCASE SEC-FILETOKENS-EC097-0060
851 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0061
852 //! @SYMTestCaseDesc Keytool setuser command
853 //! (keytool_setallusers_fail1)
854 //! @SYMTestPriority Medium
855 //! @SYMTestActions call Keytool setuser for key where key is created by third party
856 //! @SYMTestExpectedResults Keytool should display the error message as setusers failed with -46
857 //! @SYMDevelopedForRelease Sphinx
859 START_TESTCASE SEC-FILETOKENS-EC097-0061
860 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setalluserfail2.txt c:\output.txt
861 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setallusers_fail1
862 END_TESTCASE SEC-FILETOKENS-EC097-0061
865 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0062
866 //! @SYMTestCaseDesc Keytool setmanager command
867 //! (keytool_setmanager_fail)
868 //! @SYMTestPriority Medium
869 //! @SYMTestActions call Keytool setmanager for key where key is not exist
870 //! @SYMTestExpectedResults Keytool should display the error message as key is not exist
871 //! @SYMDevelopedForRelease Sphinx
873 START_TESTCASE SEC-FILETOKENS-EC097-0062
874 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setmanagerfail1.txt c:\output.txt
875 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setmanager_fail
876 END_TESTCASE SEC-FILETOKENS-EC097-0062
879 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0063
880 //! @SYMTestCaseDesc Keytool setmanager command
881 //! (keytool_setmanager_fail1)
882 //! @SYMTestPriority Medium
883 //! @SYMTestActions call Keytool setmanager for key where key is created by third party
884 //! @SYMTestExpectedResults Keytool should display the error message as key as setmanager failed with -46
885 //! @SYMDevelopedForRelease Sphinx
887 START_TESTCASE SEC-FILETOKENS-EC097-0063
888 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setmanagerfail2.txt c:\output.txt
889 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setmanager_fail1
890 END_TESTCASE SEC-FILETOKENS-EC097-0063
892 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0064
893 //! @SYMTestCaseDesc Keytool remove user command
894 //! (keytool_removeuser_fail)
895 //! @SYMTestPriority Medium
896 //! @SYMTestActions call Keytool remove user for key where key is not exist
897 //! @SYMTestExpectedResults Keytool should display the error message as key is not exist
898 //! @SYMDevelopedForRelease Sphinx
900 START_TESTCASE SEC-FILETOKENS-EC097-0064
901 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_removeuserfail1.txt c:\output.txt
902 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_removeuser_fail
903 END_TESTCASE SEC-FILETOKENS-EC097-0064
905 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0065
906 //! @SYMTestCaseDesc Keytool remove user command
907 //! (keytool_removeuser_fail1)
908 //! @SYMTestPriority Medium
909 //! @SYMTestActions call Keytool removeuser for key where key is created by third party
910 //! @SYMTestExpectedResults Keytool should display the error message as key is removeusers failed with -46
911 //! @SYMDevelopedForRelease Sphinx
913 START_TESTCASE SEC-FILETOKENS-EC097-0065
914 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_removeuserfail2.txt c:\output.txt
915 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_removeuser_fail1
916 END_TESTCASE SEC-FILETOKENS-EC097-0065
918 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0066
919 //! @SYMTestCaseDesc Keytool list command
920 //! (keytool_list_fail)
921 //! @SYMTestPriority Medium
922 //! @SYMTestActions call Keytool list for the key where keystore is not exist
923 //! @SYMTestExpectedResults Keytool should display the error message as key is store not exist
924 //! @SYMDevelopedForRelease Sphinx
926 START_TESTCASE SEC-FILETOKENS-EC097-0066
927 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_listfail1.txt c:\output.txt
928 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list_fail
929 END_TESTCASE SEC-FILETOKENS-EC097-0066
931 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0067
932 //! @SYMTestCaseDesc Keytool list command
933 //! (keytool_list_fail1)
934 //! @SYMTestPriority Medium
935 //! @SYMTestActions call Keytool list for key where key is not exist
936 //! @SYMTestExpectedResults Keytool should display the error message as key is not exist
937 //! @SYMDevelopedForRelease Sphinx
939 START_TESTCASE SEC-FILETOKENS-EC097-0067
940 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_listfail2.txt c:\output.txt
941 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list_fail1
942 END_TESTCASE SEC-FILETOKENS-EC097-0067
944 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0068
945 //! @SYMTestCaseDesc Keytool remove command
946 //! (keytool_remove_fail)
947 //! @SYMTestPriority Medium
948 //! @SYMTestActions call Keytool remove for key where key is not exist
949 //! @SYMTestExpectedResults Keytool should display the error message as key is not exist
950 //! @SYMDevelopedForRelease Sphinx
952 START_TESTCASE SEC-FILETOKENS-EC097-0068
953 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_removefail.txt c:\output.txt
954 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_remove_fail
955 END_TESTCASE SEC-FILETOKENS-EC097-0068
957 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0069
958 //! @SYMTestCaseDesc Keytool command
960 //! @SYMTestPriority Medium
961 //! @SYMTestActions call Keytool command in unspeicifed order
962 //! @SYMTestExpectedResults Keytool should display the help message
963 //! @SYMDevelopedForRelease Sphinx
965 START_TESTCASE SEC-FILETOKENS-EC097-0069
966 RUN_PROGRAM keytool.exe c:\ttesttools\data\keyfail.txt c:\output.txt
967 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help
968 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_remove3.txt c:\output.txt
969 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_remove1.txt c:\output.txt
970 END_TESTCASE SEC-FILETOKENS-EC097-0069
973 //! @SYMTestCaseID SEC-FILETOKENS-Defect118391-0070
974 //! @SYMTestCaseDesc Certool import command
975 //! (certtool_import_def118391)
976 //! @SYMTestPriority Medium
977 //! @SYMTestActions call Certool import command without a label specified
978 //! @SYMTestExpectedResults Certtool should not display any error message and work fine.
980 START_TESTCASE SEC-FILETOKENS-Defect118391-0070
981 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import.txt c:\output.txt
982 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import
983 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import
984 END_TESTCASE SEC-FILETOKENS-Defect118391-0070
987 //! @SYMTestCaseID SEC-FILETOKENS-Defect118391-0071
988 //! @SYMTestCaseDesc Certool setapps command
989 //! (certtool_setapps_defect118391)
990 //! @SYMTestPriority Medium
991 //! @SYMTestActions call Certool setapps command with a label option specified
992 //! @SYMTestExpectedResults Certtool should not display any error message and work fine.
995 START_TESTCASE SEC-FILETOKENS-Defect118391-0071
996 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setapps1.txt c:\output.txt
997 RUN_TEST_STEP 100 ttesttools GetTrustAppsStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps1
998 END_TESTCASE SEC-FILETOKENS-Defect118391-0071
1001 //! @SYMTestCaseID SEC-FILETOKENS-Defect118391-0072
1002 //! @SYMTestCaseDesc Certool setapps command
1003 //! (certtool_trust)
1004 //! @SYMTestPriority Medium
1005 //! @SYMTestActions call Certool to set the application trust status for the certificate
1006 //! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats trust status
1008 START_TESTCASE SEC-FILETOKENS-Defect118391-0072
1009 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setapps.txt c:\output.txt
1010 RUN_TEST_STEP 100 ttesttools GetTrustStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps2
1011 END_TESTCASE SEC-FILETOKENS-Defect118391-0072
1014 //! @SYMTestCaseID SEC-FILETOKENS-QI-0073
1015 //! @SYMTestCaseDesc Certool addapps command
1016 //! (certtool_addapps_QI)
1017 //! @SYMTestPriority Medium
1018 //! @SYMTestActions First remove the cert, then import the certificate then call Certool to set the application trust status for the certificate
1019 //! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats app status.
1022 START_TESTCASE SEC-FILETOKENS-QI-0073
1023 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_addapps1.txt c:\output.txt
1024 RUN_TEST_STEP 100 ttesttools GetTrustAppsStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_addapps1
1025 END_TESTCASE SEC-FILETOKENS-QI-0073
1028 //! @SYMTestCaseID SEC-FILETOKENS-QI-0074
1029 //! @SYMTestCaseDesc Certool addapps command
1030 //! (certtool_trust)
1031 //! @SYMTestPriority Medium
1032 //! @SYMTestActions call gettrust status to check the trust status for the certificate
1033 //! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats trust status
1035 START_TESTCASE SEC-FILETOKENS-QI-0074
1036 RUN_TEST_STEP 100 ttesttools GetTrustStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_addapps2
1037 END_TESTCASE SEC-FILETOKENS-QI-0074
1039 //! @SYMTestCaseID SEC-FILETOKENS-IMPROVEMENT-0001
1040 //! @SYMTestCaseDesc Certtool import command
1041 //! @SYMTestPriority Medium
1042 //! @SYMTestActions call Certtool to import a certificate with the deletable flag set to 'y'.
1043 //! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore, the certificate is listed.
1045 START_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0001
1046 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importdeletable1.txt c:\output.txt
1047 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_importdeletable1
1049 END_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0001
1052 //! @SYMTestCaseID SEC-FILETOKENS-IMPROVEMENT-0002
1053 //! @SYMTestCaseDesc Certtool import command
1054 //! @SYMTestPriority Medium
1055 //! @SYMTestActions call Certtool to import a certificate with the deletable flag set to 'n'.
1056 //! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore, the certificate is listed.
1058 START_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0002
1059 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importdeletable2.txt c:\output.txt
1060 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_importdeletable2
1061 END_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0002
1063 //! @SYMTestCaseID SEC-FILETOKENS-IMPROVEMENT-0003
1064 //! @SYMTestCaseDesc Certtool import command
1065 //! @SYMTestPriority Medium
1066 //! @SYMTestActions call Certtool to import a certificate with the deletable flag set to a garbage value.
1067 //! @SYMTestExpectedResults The expected output is "An error occured during certificate import."
1069 START_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0003
1070 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importdeletable3.txt c:\output.txt
1071 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_importdeletable3
1072 END_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0003
1075 //! @SYMTestCaseID SEC-FILETOKENS-IMPROVEMENT-0004
1076 //! @SYMTestCaseDesc Certtool remove command
1077 //! @SYMTestPriority Medium
1078 //! @SYMTestActions Call certtool to remove the certificate imported with deletable set to 'y'
1079 //! @SYMTestExpectedResults The expected output is "Certificate removed successfully."
1081 START_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0004
1082 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removedeletable1.txt c:\output.txt
1083 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removedeletable1
1084 END_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0004
1087 //! @SYMTestCaseID SEC-FILETOKENS-IMPROVEMENT-0005
1088 //! @SYMTestCaseDesc Certtool remove command
1089 //! @SYMTestPriority Medium
1090 //! @SYMTestActions Call certtool to remove the certificate imported with deletable set to 'n'
1091 //! @SYMTestExpectedResults The expected output is "Certificate removed successfully."
1093 START_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0005
1094 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removedeletable2.txt c:\output.txt
1095 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removedeletable2
1096 END_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0005