os/security/cryptoservices/filebasedcertificateandkeystores/test/ttesttools/scripts/sec-filetokens-tools.script
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/security/cryptoservices/filebasedcertificateandkeystores/test/ttesttools/scripts/sec-filetokens-tools.script	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,1098 @@
     1.4 +//
     1.5 +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +// All rights reserved.
     1.7 +// This component and the accompanying materials are made available
     1.8 +// under the terms of the License "Eclipse Public License v1.0"
     1.9 +// which accompanies this distribution, and is available
    1.10 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +//
    1.12 +// Initial Contributors:
    1.13 +// Nokia Corporation - initial contribution.
    1.14 +//
    1.15 +// Contributors:
    1.16 +//
    1.17 +// Description: 
    1.18 +//
    1.19 +
    1.20 +//! @file
    1.21 +// filetokens tools unit (integration) tests
    1.22 +PRINT Run all certtool and keytool tests
    1.23 +LOAD_SUITE ttesttools
    1.24 +
    1.25 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0001
    1.26 +//! @SYMTestCaseDesc 	Certool help command  
    1.27 +//! 			(certhelp)
    1.28 +//! @SYMTestPriority 	Medium
    1.29 +//! @SYMTestActions  	call Certool for the help command
    1.30 +//! @SYMTestExpectedResults Certtool  help command should display the help command as expected
    1.31 +//! @SYMDevelopedForRelease Sphinx
    1.32 +
    1.33 +START_TESTCASE SEC-FILETOKENS-EC097-0001
    1.34 +RUN_PROGRAM certtool.exe c:\ttesttools\data\certhelp.txt c:\output.txt
    1.35 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp
    1.36 +END_TESTCASE SEC-FILETOKENS-EC097-0001
    1.37 +
    1.38 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0002
    1.39 +//! @SYMTestCaseDesc 	Certool Individual help command  
    1.40 +//! 			(certhelp_individual)
    1.41 +//! @SYMTestPriority 	Medium
    1.42 +//! @SYMTestActions  	call Certool for the Individual help command
    1.43 +//! @SYMTestExpectedResults Certtool Individual help command should display the help command as expected
    1.44 +//! @SYMDevelopedForRelease Sphinx
    1.45 +
    1.46 +START_TESTCASE SEC-FILETOKENS-EC097-0002
    1.47 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_helpls.txt c:\output.txt
    1.48 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp_individual
    1.49 +END_TESTCASE SEC-FILETOKENS-EC097-0002
    1.50 +
    1.51 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0003
    1.52 +//! @SYMTestCaseDesc 	Certool liststore command  
    1.53 +//! 			(certtool_liststores)
    1.54 +//! @SYMTestPriority 	Medium
    1.55 +//! @SYMTestActions  	call Certool for the liststore command then parse the output file and constuct the expected stores
    1.56 +//! @SYMTestExpectedResults Call certstore via CUnifiedCertstore and compare with the expected stores
    1.57 +//! @SYMDevelopedForRelease Sphinx
    1.58 +
    1.59 +START_TESTCASE SEC-FILETOKENS-EC097-0003
    1.60 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_ls.txt c:\output.txt
    1.61 +RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_liststores
    1.62 +END_TESTCASE SEC-FILETOKENS-EC097-0003
    1.63 +
    1.64 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0004
    1.65 +//! @SYMTestCaseDesc 	Certool import command  
    1.66 +//! 			(certtool_import_store0)
    1.67 +//! @SYMTestPriority 	Medium
    1.68 +//! @SYMTestActions  	call Certool to import the certificate. 
    1.69 +//! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore and confirms the certificate is listed
    1.70 +//! @SYMDevelopedForRelease Sphinx
    1.71 +
    1.72 +START_TESTCASE SEC-FILETOKENS-EC097-0004
    1.73 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import1.txt c:\output.txt
    1.74 +RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_store0
    1.75 +END_TESTCASE SEC-FILETOKENS-EC097-0004
    1.76 +
    1.77 +
    1.78 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0005
    1.79 +//! @SYMTestCaseDesc 	Certool import command  
    1.80 +//! 			(certtool_import_store1)
    1.81 +//! @SYMTestPriority 	Medium
    1.82 +//! @SYMTestActions  	call Certool to import the certificate to store 1
    1.83 +//! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore and confirms the certificate is listed
    1.84 +//! @SYMDevelopedForRelease Sphinx
    1.85 +
    1.86 +START_TESTCASE SEC-FILETOKENS-EC097-0005
    1.87 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import2.txt c:\output.txt
    1.88 +RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_store1
    1.89 +END_TESTCASE SEC-FILETOKENS-EC097-0005
    1.90 +
    1.91 +
    1.92 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0006
    1.93 +//! @SYMTestCaseDesc	Certool import command  
    1.94 +//! 			(certtool_import_store01twice)
    1.95 +//! @SYMTestPriority 	Medium
    1.96 +//! @SYMTestActions  	call Certool to import the same certificate with same name in two different stores
    1.97 +//! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore and confirms the certificate is listed
    1.98 +//! @SYMDevelopedForRelease Sphinx
    1.99 +
   1.100 +START_TESTCASE SEC-FILETOKENS-EC097-0006
   1.101 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import3.txt c:\output.txt
   1.102 +RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_store01twice
   1.103 +END_TESTCASE SEC-FILETOKENS-EC097-0006
   1.104 +
   1.105 +
   1.106 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0007
   1.107 +//! @SYMTestCaseDesc 	Certool import command  
   1.108 +//! 			(certtool_import_keycert)
   1.109 +//! @SYMTestPriority 	Medium
   1.110 +//! @SYMTestActions  	call Certool to import the certificate as well as the key
   1.111 +//! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore and confirms the certificate is listed
   1.112 +//!	Call keystore list via CUnifiedKeystore and confirms the key is listed
   1.113 +//! @SYMDevelopedForRelease Sphinx
   1.114 +
   1.115 +START_TESTCASE SEC-FILETOKENS-EC097-0007
   1.116 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import4.txt c:\output.txt
   1.117 +RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_keycert
   1.118 +RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_keycert
   1.119 +END_TESTCASE SEC-FILETOKENS-EC097-0007
   1.120 +
   1.121 +
   1.122 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0008
   1.123 +//! @SYMTestCaseDesc 	Certool setapps command  
   1.124 +//! 			(certtool_setapps)
   1.125 +//! @SYMTestPriority 	Medium
   1.126 +//! @SYMTestActions  	call Certool to set the application trust status for the certificate
   1.127 +//! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats trust status
   1.128 +//! @SYMDevelopedForRelease Sphinx
   1.129 +
   1.130 +START_TESTCASE SEC-FILETOKENS-EC097-0008
   1.131 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setapps.txt c:\output.txt
   1.132 +RUN_TEST_STEP 100 ttesttools GetTrustAppsStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps
   1.133 +END_TESTCASE SEC-FILETOKENS-EC097-0008
   1.134 +
   1.135 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0009
   1.136 +//! @SYMTestCaseDesc 	Certool addapps command  
   1.137 +//! 			(certtool_addapps)
   1.138 +//! @SYMTestPriority 	Medium
   1.139 +//! @SYMTestActions  	call Certool to add the application trust status for the certificate
   1.140 +//! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats trust status
   1.141 +//! @SYMDevelopedForRelease Sphinx
   1.142 +
   1.143 +START_TESTCASE SEC-FILETOKENS-EC097-0009
   1.144 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_addapps.txt c:\output.txt
   1.145 +RUN_TEST_STEP 100 ttesttools GetTrustAppsStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_addapps
   1.146 +END_TESTCASE SEC-FILETOKENS-EC097-0009
   1.147 +
   1.148 +
   1.149 +
   1.150 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0010
   1.151 +//! @SYMTestCaseDesc 	Certool removeapps command  
   1.152 +//! 			(certtool_removeapps)
   1.153 +//! @SYMTestPriority 	Medium
   1.154 +//! @SYMTestActions  	call Certool to remove the application trust status for the certificate
   1.155 +//! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats trust status
   1.156 +//! @SYMDevelopedForRelease Sphinx
   1.157 +
   1.158 +START_TESTCASE SEC-FILETOKENS-EC097-0010
   1.159 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removeapps.txt c:\output.txt
   1.160 +RUN_TEST_STEP 100 ttesttools GetTrustAppsStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removeapps
   1.161 +END_TESTCASE SEC-FILETOKENS-EC097-0010
   1.162 +
   1.163 +
   1.164 +
   1.165 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0011
   1.166 +//! @SYMTestCaseDesc 	Certool list command  
   1.167 +//! 			(certtool_list)
   1.168 +//! @SYMTestPriority 	Medium
   1.169 +//! @SYMTestActions  	call Certool to list the certificate then parse the output file and construct the expected cert list
   1.170 +//! @SYMTestExpectedResults Query certstore  list via CUnifiedCertstore and confirms with the expected certlist
   1.171 +//! @SYMDevelopedForRelease Sphinx
   1.172 +
   1.173 +START_TESTCASE SEC-FILETOKENS-EC097-0011
   1.174 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_list1.txt c:\output.txt
   1.175 +RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list
   1.176 +END_TESTCASE SEC-FILETOKENS-EC097-0011
   1.177 +
   1.178 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0012
   1.179 +//! @SYMTestCaseDesc 	Certool list the certficate in store 1  
   1.180 +//! 			(certtool_list_store)
   1.181 +//! @SYMTestPriority 	Medium
   1.182 +//! @SYMTestActions  	call Certool to list the certificate in store 1 then parse the output file and construct the expected cert list
   1.183 +//! @SYMTestExpectedResults Query certstore  list via CUnifiedCertstore and confirms with the expected certlist
   1.184 +//! @SYMDevelopedForRelease Sphinx
   1.185 +
   1.186 +START_TESTCASE SEC-FILETOKENS-EC097-0012
   1.187 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_list2.txt c:\output.txt
   1.188 +RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_store
   1.189 +END_TESTCASE SEC-FILETOKENS-EC097-0012
   1.190 +
   1.191 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0013
   1.192 +//! @SYMTestCaseDesc 	Certool list a particular certificate
   1.193 +//! 			(certtool_list_cert)
   1.194 +//! @SYMTestPriority 	Medium
   1.195 +//! @SYMTestActions  	call Certool to list the certificate 
   1.196 +//! @SYMTestExpectedResults Query certstore  list via CUnifiedCertstore and confirms with the expected certificate
   1.197 +//! @SYMDevelopedForRelease Sphinx
   1.198 +
   1.199 +START_TESTCASE SEC-FILETOKENS-EC097-0013
   1.200 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_list3.txt c:\output.txt
   1.201 +RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_cert
   1.202 +END_TESTCASE SEC-FILETOKENS-EC097-0013
   1.203 +
   1.204 +
   1.205 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0014
   1.206 +//! @SYMTestCaseDesc 	Certool list a particular owner type 
   1.207 +//! 			(certtool_list_certowner)
   1.208 +//! @SYMTestPriority 	Medium
   1.209 +//! @SYMTestActions  	call Certool to list the certificate for a particular owner
   1.210 +//! @SYMTestExpectedResults Query certstore  list via CUnifiedCertstore and confirms with the expected certlist
   1.211 +//! @SYMDevelopedForRelease Sphinx
   1.212 +
   1.213 +START_TESTCASE SEC-FILETOKENS-EC097-0014
   1.214 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_list4.txt c:\output.txt
   1.215 +RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_certowner
   1.216 +END_TESTCASE SEC-FILETOKENS-EC097-0014
   1.217 +
   1.218 +
   1.219 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0015
   1.220 +//! @SYMTestCaseDesc 	Certool remove command  
   1.221 +//! 			(certtool_remove)
   1.222 +//! @SYMTestPriority 	Medium
   1.223 +//! @SYMTestActions  	call Certool to remove the certificate 
   1.224 +//! @SYMTestExpectedResults Query certstore  list via CUnifiedCertstore and confirm that the certificate won't be listed
   1.225 +//! @SYMDevelopedForRelease Sphinx
   1.226 +
   1.227 +START_TESTCASE SEC-FILETOKENS-EC097-0015
   1.228 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_remove1.txt c:\output.txt
   1.229 +RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_remove1
   1.230 +RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_remove2
   1.231 +RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_remove3
   1.232 +END_TESTCASE SEC-FILETOKENS-EC097-0015
   1.233 +
   1.234 +
   1.235 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0016
   1.236 +//! @SYMTestCaseDesc 	Certool remove key and cert
   1.237 +//! 			(certtool_removekey)
   1.238 +//! @SYMTestPriority 	Medium
   1.239 +//! @SYMTestActions  	call Certool to remove the certificate as well as key
   1.240 +//! @SYMTestExpectedResults Query certstore  and keystore and confirms both cert and key are deleted.
   1.241 +//! @SYMDevelopedForRelease Sphinx
   1.242 +
   1.243 +START_TESTCASE SEC-FILETOKENS-EC097-0016
   1.244 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_remove2.txt c:\output.txt
   1.245 +RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removekey
   1.246 +RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removekey
   1.247 +END_TESTCASE SEC-FILETOKENS-EC097-0016
   1.248 +
   1.249 +
   1.250 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0017
   1.251 +//! @SYMTestCaseDesc	keytool help command 
   1.252 +//! 			(keytool_help)
   1.253 +//! @SYMTestPriority 	Medium
   1.254 +//! @SYMTestActions  	call keytool to display the help command
   1.255 +//! @SYMTestExpectedResults help command should display the help command as expected
   1.256 +//! @SYMDevelopedForRelease Sphinx
   1.257 +
   1.258 +START_TESTCASE SEC-FILETOKENS-EC097-0017
   1.259 +RUN_PROGRAM keytool.exe c:\ttesttools\data\keyhelp.txt c:\output.txt
   1.260 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help
   1.261 +END_TESTCASE SEC-FILETOKENS-EC097-0017
   1.262 +
   1.263 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0018
   1.264 +//! @SYMTestCaseDesc 	keytool Individual help command 
   1.265 +//! 			(keytool_help_individual)
   1.266 +//! @SYMTestPriority 	Medium
   1.267 +//! @SYMTestActions  	call keytool to display the Individual help command
   1.268 +//! @SYMTestExpectedResults help command should display the help command as expected
   1.269 +//! @SYMDevelopedForRelease Sphinx
   1.270 +
   1.271 +START_TESTCASE SEC-FILETOKENS-EC097-0018
   1.272 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setuserhelp.txt c:\output.txt
   1.273 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help_individual
   1.274 +END_TESTCASE SEC-FILETOKENS-EC097-0018
   1.275 +
   1.276 +
   1.277 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0019
   1.278 +//! @SYMTestCaseDesc 	keytool liststore command  
   1.279 +//! 			(keytool_liststores)
   1.280 +//! @SYMTestPriority 	Medium
   1.281 +//! @SYMTestActions  	call keytool for the liststore command then parse the output file and constuct the expected stores
   1.282 +//! @SYMTestExpectedResults Call keystore via CUnifiedKeystore and compare with the expected stores
   1.283 +//! @SYMDevelopedForRelease Sphinx
   1.284 +
   1.285 +START_TESTCASE SEC-FILETOKENS-EC097-0019
   1.286 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_ls.txt c:\output.txt
   1.287 +RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_liststores
   1.288 +END_TESTCASE SEC-FILETOKENS-EC097-0019
   1.289 +
   1.290 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0020
   1.291 +//! @SYMTestCaseDesc 	keytool import command  
   1.292 +//! 			(keytool_import_key)
   1.293 +//! @SYMTestPriority 	Medium
   1.294 +//! @SYMTestActions  	call keytool to import the certtificate. 
   1.295 +//! @SYMTestExpectedResults Call keystore list via CUnifiedkeystore and confirms the key is listed
   1.296 +//! @SYMDevelopedForRelease Sphinx
   1.297 +
   1.298 +START_TESTCASE SEC-FILETOKENS-EC097-0020
   1.299 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_import1.txt c:\output.txt
   1.300 +RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_key
   1.301 +END_TESTCASE SEC-FILETOKENS-EC097-0020
   1.302 +
   1.303 +//! Test case 21 and 22 should be uncommented after fix the defect DEF113031
   1.304 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0021
   1.305 +//! @SYMTestCaseDesc 	keytool import command  
   1.306 +//! 			(keytool_import_key_store1)
   1.307 +//! @SYMTestPriority 	Medium
   1.308 +//! @SYMTestActions  	call keytool to import the key to store 1
   1.309 +//! @SYMTestExpectedResults Call keystore list via CUnifiedKeystore and confirms the key is listed
   1.310 +//! @SYMDevelopedForRelease Sphinx
   1.311 +
   1.312 +// START_TESTCASE SEC-FILETOKENS-EC097-0021
   1.313 +// RUN_PROGRAM keytool.exe c:\ttesttools\data\key_import2.txt c:\output.txt
   1.314 +// RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_key_store1
   1.315 +// END_TESTCASE SEC-FILETOKENS-EC097-0021
   1.316 +
   1.317 +
   1.318 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0022
   1.319 +//! @SYMTestCaseDesc 	keytool import command  
   1.320 +//! 			(keytool_import_key_store01twice)
   1.321 +//! @SYMTestPriority 	Medium
   1.322 +//! @SYMTestActions  	call keytool to import the same key with same name in two different stores
   1.323 +//! @SYMTestExpectedResults Call keystore list via CUnifiedKeystore and confirms the key is listed
   1.324 +//! @SYMDevelopedForRelease Sphinx
   1.325 +
   1.326 +// START_TESTCASE SEC-FILETOKENS-EC097-0022
   1.327 +// RUN_PROGRAM keytool.exe c:\ttesttools\data\key_import3.txt c:\output.txt
   1.328 +// RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_key_store01twice
   1.329 +// END_TESTCASE SEC-FILETOKENS-EC097-0022
   1.330 +
   1.331 +
   1.332 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0023
   1.333 +//! @SYMTestCaseDesc 	keytool list command  
   1.334 +//! 			(keytool_list)
   1.335 +//! @SYMTestPriority 	Medium
   1.336 +//! @SYMTestActions  	call keytool to list the keys then parse the output file and construct the expected key list
   1.337 +//! @SYMTestExpectedResults Query keystore  list via CUnifiedKeystore and confirms with the expected keylist
   1.338 +//! @SYMDevelopedForRelease Sphinx
   1.339 +
   1.340 +START_TESTCASE SEC-FILETOKENS-EC097-0023
   1.341 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_list1.txt c:\output.txt
   1.342 +RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list
   1.343 +END_TESTCASE SEC-FILETOKENS-EC097-0023
   1.344 +
   1.345 +
   1.346 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0024
   1.347 +//! @SYMTestCaseDesc 	keytool list the keys in store 0  
   1.348 +//! 			(keytool_list_store)
   1.349 +//! @SYMTestPriority 	Medium
   1.350 +//! @SYMTestActions  	call keytool to list the keys in store 0 then parse the output file and construct the expected key list
   1.351 +//! @SYMTestExpectedResults Query keystore  list via CUnifiedKeystore and confirms with the expected key list.
   1.352 +//! @SYMDevelopedForRelease Sphinx
   1.353 +
   1.354 +START_TESTCASE SEC-FILETOKENS-EC097-0024
   1.355 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_list2.txt c:\output.txt
   1.356 +RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list_store
   1.357 +END_TESTCASE SEC-FILETOKENS-EC097-0024
   1.358 +
   1.359 +
   1.360 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0025
   1.361 +//! @SYMTestCaseDesc 	keytool list a particular key
   1.362 +//! 			(keytool_list_key)
   1.363 +//! @SYMTestPriority 	Medium
   1.364 +//! @SYMTestActions 	 call keytool to list the key 
   1.365 +//! @SYMTestExpectedResults Query keystore  list via CUnifiedKeystore and confirms with the expected key
   1.366 +//! @SYMDevelopedForRelease Sphinx
   1.367 +
   1.368 +START_TESTCASE SEC-FILETOKENS-EC097-0025
   1.369 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_list3.txt c:\output.txt
   1.370 +RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list_key
   1.371 +END_TESTCASE SEC-FILETOKENS-EC097-0025
   1.372 +
   1.373 +
   1.374 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0026
   1.375 +//! @SYMTestCaseDesc 	keytool remove a particular key
   1.376 +//! 			(keytool_remove)
   1.377 +//! @SYMTestPriority	Medium
   1.378 +//! @SYMTestActions  	call keytool to remove the key 
   1.379 +//! @SYMTestExpectedResults Query keystore list via CUnifiedKeystore and confirms with the expected key won't be listed
   1.380 +//! @SYMDevelopedForRelease Sphinx
   1.381 +
   1.382 +START_TESTCASE SEC-FILETOKENS-EC097-0026
   1.383 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_remove.txt c:\output.txt
   1.384 +RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_remove
   1.385 +END_TESTCASE SEC-FILETOKENS-EC097-0026
   1.386 +
   1.387 +
   1.388 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0027
   1.389 +//! @SYMTestCaseDesc 	keytool setuser command
   1.390 +//! 			(keytool_setuser)
   1.391 +//! @SYMTestPriority 	Medium
   1.392 +//! @SYMTestActions  	call keytool to setuser for the key 
   1.393 +//! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key user.
   1.394 +//! @SYMDevelopedForRelease Sphinx
   1.395 +
   1.396 +START_TESTCASE SEC-FILETOKENS-EC097-0027
   1.397 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setuser.txt c:\output.txt
   1.398 +RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setuser
   1.399 +END_TESTCASE SEC-FILETOKENS-EC097-0027
   1.400 +
   1.401 +
   1.402 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0028
   1.403 +//! @SYMTestCaseDesc 	keytool setalluser command
   1.404 +//! 			(keytool_setallusers)
   1.405 +//! @SYMTestPriority 	Medium
   1.406 +//! @SYMTestActions  	call keytool to setalluser for the key 
   1.407 +//! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key user.
   1.408 +//! @SYMDevelopedForRelease Sphinx
   1.409 +
   1.410 +START_TESTCASE SEC-FILETOKENS-EC097-0028
   1.411 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setalluser.txt c:\output.txt
   1.412 +RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setallusers
   1.413 +END_TESTCASE SEC-FILETOKENS-EC097-0028
   1.414 +
   1.415 +
   1.416 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0029
   1.417 +//! @SYMTestCaseDesc 	keytool setmanager command
   1.418 +//! 			(keytool_setmanager)
   1.419 +//! @SYMTestPriority 	Medium
   1.420 +//! @SYMTestActions  	call keytool to setmanager for the key 
   1.421 +//! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key manager.
   1.422 +//! @SYMDevelopedForRelease Sphinx
   1.423 +
   1.424 +START_TESTCASE SEC-FILETOKENS-EC097-0029
   1.425 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setmanager.txt c:\output.txt
   1.426 +RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setmanager
   1.427 +END_TESTCASE SEC-FILETOKENS-EC097-0029
   1.428 +
   1.429 +
   1.430 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0030
   1.431 +//! @SYMTestCaseDesc 	keytool removeuser command
   1.432 +//! 			(keytool_removeuser)
   1.433 +//! @SYMTestPriority 	Medium
   1.434 +//! @SYMTestActions  	call keytool to remove the user for the key 
   1.435 +//! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key user.
   1.436 +//! @SYMDevelopedForRelease Sphinx
   1.437 +
   1.438 +START_TESTCASE SEC-FILETOKENS-EC097-0030
   1.439 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_removeuser.txt c:\output.txt
   1.440 +RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_removeuser
   1.441 +END_TESTCASE SEC-FILETOKENS-EC097-0030
   1.442 +
   1.443 +
   1.444 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0031
   1.445 +//! @SYMTestCaseDesc 	certtool imported key managed by keytool 
   1.446 +//! 			(certtoolkey_keytoolmanage)
   1.447 +//! @SYMTestPriority 	Medium
   1.448 +//! @SYMTestActions  	call certtool to import a key then call keytool to setuser,removeuser , remove the key
   1.449 +//! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key Details.
   1.450 +//! @SYMDevelopedForRelease Sphinx
   1.451 +
   1.452 +START_TESTCASE SEC-FILETOKENS-EC097-0031
   1.453 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import4.txt c:\output.txt
   1.454 +RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_keycert
   1.455 +RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_keycert
   1.456 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_import4.txt c:\output.txt
   1.457 +RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtoolkey_keytoolmanage
   1.458 +RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtoolkey_keytoolmanage1
   1.459 +END_TESTCASE SEC-FILETOKENS-EC097-0031
   1.460 +
   1.461 +
   1.462 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0032
   1.463 +//! @SYMTestCaseDesc 	Certool help command
   1.464 +//! 			(certtool_helpfail)
   1.465 +//! @SYMTestPriority 	Medium
   1.466 +//! @SYMTestActions 	 call Certool for the help command without any argument
   1.467 +//! @SYMTestExpectedResults Certtool  help command should display the help command as expected
   1.468 +//! @SYMDevelopedForRelease Sphinx
   1.469 +
   1.470 +START_TESTCASE SEC-FILETOKENS-EC097-0032
   1.471 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_helpfail1.txt c:\output.txt
   1.472 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp
   1.473 +END_TESTCASE SEC-FILETOKENS-EC097-0032
   1.474 +
   1.475 +
   1.476 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0033
   1.477 +//! @SYMTestCaseDesc 	Certool Individual help command  
   1.478 +//! 			(certtool_individual_helpfail)
   1.479 +//! @SYMTestPriority 	Medium
   1.480 +//! @SYMTestActions  	call Certool for the individual help command with wrong command
   1.481 +//! @SYMTestExpectedResults Certtool  help command should display the help command as expected
   1.482 +//! @SYMDevelopedForRelease Sphinx
   1.483 +
   1.484 +START_TESTCASE SEC-FILETOKENS-EC097-0033
   1.485 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_helpfail2.txt c:\output.txt
   1.486 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp
   1.487 +END_TESTCASE SEC-FILETOKENS-EC097-0033
   1.488 +
   1.489 +
   1.490 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0035
   1.491 +//! @SYMTestCaseDesc 	Certool importing twice
   1.492 +//! 			(certtool_import_twicefail)
   1.493 +//! @SYMTestPriority 	Medium
   1.494 +//! @SYMTestActions  	call Certool to import a certificate twice
   1.495 +//! @SYMTestExpectedResults Certtool  should display the error message as already exists
   1.496 +//! @SYMDevelopedForRelease Sphinx
   1.497 +
   1.498 +START_TESTCASE SEC-FILETOKENS-EC097-0035
   1.499 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail1.txt c:\output.txt
   1.500 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail1.txt c:\output.txt
   1.501 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_twicefail
   1.502 +END_TESTCASE SEC-FILETOKENS-EC097-0035
   1.503 +
   1.504 +
   1.505 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0036
   1.506 +//! @SYMTestCaseDesc 	Certool importing certficate to non existing store
   1.507 +//! 			(certtool_import_emptycertstorefail)
   1.508 +//! @SYMTestPriority 	Medium
   1.509 +//! @SYMTestActions 	call Certool to import a certificate to non existing store
   1.510 +//! @SYMTestExpectedResults Certtool  should display the error message as not exist
   1.511 +//! @SYMDevelopedForRelease Sphinx
   1.512 +
   1.513 +START_TESTCASE SEC-FILETOKENS-EC097-0036
   1.514 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail2.txt c:\output.txt
   1.515 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_emptycertstorefail
   1.516 +END_TESTCASE SEC-FILETOKENS-EC097-0036
   1.517 +
   1.518 +
   1.519 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0037
   1.520 +//! @SYMTestCaseDesc Certool importing nonexisting certificate
   1.521 +//! 		     (certtool_import_nonexistfail)
   1.522 +//! @SYMTestPriority Medium
   1.523 +//! @SYMTestActions  call Certool to import a nonexisting certficate
   1.524 +//! @SYMTestExpectedResults Certtool  should display the error message as cannot open the file
   1.525 +//! @SYMDevelopedForRelease Sphinx
   1.526 +
   1.527 +START_TESTCASE SEC-FILETOKENS-EC097-0037
   1.528 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail3.txt c:\output.txt
   1.529 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_nonexistfail
   1.530 +END_TESTCASE SEC-FILETOKENS-EC097-0037
   1.531 +
   1.532 +
   1.533 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0038
   1.534 +//! @SYMTestCaseDesc 	Certool importing corrupted certificate
   1.535 +//! 			(certtool_import_corruptcertfail)
   1.536 +//! @SYMTestPriority 	Medium
   1.537 +//! @SYMTestActions  	call Certool to import a corrupted certificate 
   1.538 +//! @SYMTestExpectedResults Certtool  should display the error message as corrupted
   1.539 +//! @SYMDevelopedForRelease Sphinx
   1.540 +
   1.541 +START_TESTCASE SEC-FILETOKENS-EC097-0038
   1.542 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail4.txt c:\output.txt
   1.543 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_corruptcertfail
   1.544 +END_TESTCASE SEC-FILETOKENS-EC097-0038
   1.545 +
   1.546 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0039
   1.547 +//! @SYMTestCaseDesc 	Certool importing a empty certficate
   1.548 +//! 			(certtool_import_emptycertfail)
   1.549 +//! @SYMTestPriority	Medium
   1.550 +//! @SYMTestActions  	call Certool to import a empty certficate
   1.551 +//! @SYMTestExpectedResults Certtool  should display the error message as cannot open the file
   1.552 +//! @SYMDevelopedForRelease Sphinx
   1.553 +
   1.554 +START_TESTCASE SEC-FILETOKENS-EC097-0039
   1.555 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail5.txt c:\output.txt
   1.556 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_emptycertfail
   1.557 +END_TESTCASE SEC-FILETOKENS-EC097-0039
   1.558 +
   1.559 +
   1.560 +
   1.561 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0040
   1.562 +//! @SYMTestCaseDesc 	Certool setapps command
   1.563 +//! 			(certtool_setapps_invalidfail)
   1.564 +//! @SYMTestPriority 	Medium
   1.565 +//! @SYMTestActions  	call Certool to setapps a certificate where the apps is not exist
   1.566 +//! @SYMTestExpectedResults Certtool  should display the error message try one of existing apps
   1.567 +//! @SYMDevelopedForRelease Sphinx
   1.568 +
   1.569 +
   1.570 +START_TESTCASE SEC-FILETOKENS-EC097-0040
   1.571 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setappsfail1.txt c:\output.txt
   1.572 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps_invalidfail
   1.573 +END_TESTCASE SEC-FILETOKENS-EC097-0040
   1.574 +
   1.575 +
   1.576 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0041
   1.577 +//! @SYMTestCaseDesc 	Certool setapps command
   1.578 +//! 			(certtool_setapps_userfail)
   1.579 +//! @SYMTestPriority 	Medium
   1.580 +//! @SYMTestActions  	call Certool to setapps a user certificate
   1.581 +//! @SYMTestExpectedResults Certtool  should display the error message error occured while adding applicability
   1.582 +//! @SYMDevelopedForRelease Sphinx
   1.583 +
   1.584 +START_TESTCASE SEC-FILETOKENS-EC097-0041
   1.585 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setappsfail2.txt c:\output.txt
   1.586 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps_userfail
   1.587 +END_TESTCASE SEC-FILETOKENS-EC097-0041
   1.588 +
   1.589 +
   1.590 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0042
   1.591 +//! @SYMTestCaseDesc Certool addapps command
   1.592 +//! 		     (certtool_addapps_invalidfail)
   1.593 +//! @SYMTestPriority Medium
   1.594 +//! @SYMTestActions  call Certool to addapps a certificate where the apps is not exist
   1.595 +//! @SYMTestExpectedResults Certtool  should display the error message try one of existing apps
   1.596 +//! @SYMDevelopedForRelease Sphinx
   1.597 +
   1.598 +
   1.599 +START_TESTCASE SEC-FILETOKENS-EC097-0042
   1.600 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_addappsfail1.txt c:\output.txt
   1.601 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_addapps_invalidfail
   1.602 +END_TESTCASE SEC-FILETOKENS-EC097-0042
   1.603 +
   1.604 +
   1.605 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0043
   1.606 +//! @SYMTestCaseDesc Certool addapps command
   1.607 +//! 		     (certtool_addapps_userfail)
   1.608 +//! @SYMTestPriority Medium
   1.609 +//! @SYMTestActions  call Certool to addapps a certificate where the apps is not exist
   1.610 +//! @SYMTestExpectedResults Certtool should display the error message error occured while adding applicability
   1.611 +//! @SYMDevelopedForRelease Sphinx
   1.612 +
   1.613 +START_TESTCASE SEC-FILETOKENS-EC097-0043
   1.614 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setappsfail2.txt c:\output.txt
   1.615 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_addapps_userfail
   1.616 +END_TESTCASE SEC-FILETOKENS-EC097-0043
   1.617 +
   1.618 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0044
   1.619 +//! @SYMTestCaseDesc 	Certool removeapps command
   1.620 +//! 			(certtool_removeapps_invalidfail)
   1.621 +//! @SYMTestPriority 	Medium
   1.622 +//! @SYMTestActions  	call Certool to removeapps a certificate where the apps is not exist
   1.623 +//! @SYMTestExpectedResults Certtool  should display the error message try one of existing apps
   1.624 +//! @SYMDevelopedForRelease Sphinx
   1.625 +
   1.626 +
   1.627 +START_TESTCASE SEC-FILETOKENS-EC097-0044
   1.628 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removeappsfail1.txt c:\output.txt
   1.629 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removeapps_invalidfail
   1.630 +END_TESTCASE SEC-FILETOKENS-EC097-0044
   1.631 +
   1.632 +
   1.633 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0045
   1.634 +//! @SYMTestCaseDesc Certool removeapps command
   1.635 +//! 		     (certtool_removeapps_untrustfail)
   1.636 +//! @SYMTestPriority Medium
   1.637 +//! @SYMTestActions  call Certool to removeapps a certificate where the applicability is not exist
   1.638 +//! @SYMTestExpectedResults Certtool  should display the error message not trusted for the apps
   1.639 +//! @SYMDevelopedForRelease Sphinx
   1.640 +
   1.641 +START_TESTCASE SEC-FILETOKENS-EC097-0045
   1.642 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removeappsfail2.txt c:\output.txt
   1.643 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removeapps_untrustfail
   1.644 +END_TESTCASE SEC-FILETOKENS-EC097-0045
   1.645 +
   1.646 +
   1.647 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0046
   1.648 +//! @SYMTestCaseDesc Certool list command
   1.649 +//! 		     (certtool_list_fail)
   1.650 +//! @SYMTestPriority Medium
   1.651 +//! @SYMTestActions  call Certool to list a certificate where the certificate  store is not exist
   1.652 +//! @SYMTestExpectedResults Certtool  should display the error message store not exist
   1.653 +//! @SYMDevelopedForRelease Sphinx
   1.654 +
   1.655 +START_TESTCASE SEC-FILETOKENS-EC097-0046
   1.656 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_listfail1.txt c:\output.txt
   1.657 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_fail
   1.658 +END_TESTCASE SEC-FILETOKENS-EC097-0046
   1.659 +
   1.660 +
   1.661 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0047
   1.662 +//! @SYMTestCaseDesc Certool list command
   1.663 +//! 		     (certtool_list_fail1)
   1.664 +//! @SYMTestPriority Medium
   1.665 +//! @SYMTestActions  call Certool to list a certificate where the certificate  is not exist
   1.666 +//! @SYMTestExpectedResults Certtool  should display the error message certificate is not exist
   1.667 +//! @SYMDevelopedForRelease Sphinx
   1.668 +
   1.669 +
   1.670 +START_TESTCASE SEC-FILETOKENS-EC097-0047
   1.671 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_listfail2.txt c:\output.txt
   1.672 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_fail1
   1.673 +END_TESTCASE SEC-FILETOKENS-EC097-0047
   1.674 +
   1.675 +
   1.676 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0034
   1.677 +//! @SYMTestCaseDesc 	Certool list command
   1.678 +//! 			(certtool_list_fail2)
   1.679 +//! @SYMTestPriority 	Medium
   1.680 +//! @SYMTestActions  	call Certool to list a certificate ownere where the owner is not exist
   1.681 +//! @SYMTestExpectedResults Certtool  should display the error message as no certificate exist
   1.682 +//! @SYMDevelopedForRelease Sphinx
   1.683 +
   1.684 +START_TESTCASE SEC-FILETOKENS-EC097-0034
   1.685 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_listfail3.txt c:\output.txt
   1.686 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_fail2
   1.687 +END_TESTCASE SEC-FILETOKENS-EC097-0034
   1.688 +
   1.689 +
   1.690 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0048
   1.691 +//! @SYMTestCaseDesc 	Certool remove command
   1.692 +//! 			(certtool_remove_fail)
   1.693 +//! @SYMTestPriority 	Medium
   1.694 +//! @SYMTestActions  	call Certool to remove a certificate where the certificate  is not exist
   1.695 +//! @SYMTestExpectedResults Certtool  should display the error message certificate not exist
   1.696 +//! @SYMDevelopedForRelease Sphinx
   1.697 +
   1.698 +START_TESTCASE SEC-FILETOKENS-EC097-0048
   1.699 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removefail.txt c:\output.txt
   1.700 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_remove_fail
   1.701 +END_TESTCASE SEC-FILETOKENS-EC097-0048
   1.702 +
   1.703 +
   1.704 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0049
   1.705 +//! @SYMTestCaseDesc 	Certool command
   1.706 +//! 			(certtool_fail)
   1.707 +//! @SYMTestPriority 	Medium
   1.708 +//! @SYMTestActions  	call Certool command in unspecified order
   1.709 +//! @SYMTestExpectedResults Certtool should display the help message
   1.710 +//! @SYMDevelopedForRelease Sphinx
   1.711 +
   1.712 +START_TESTCASE SEC-FILETOKENS-EC097-0049
   1.713 +RUN_PROGRAM certtool.exe c:\ttesttools\data\certfail.txt c:\output.txt
   1.714 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp
   1.715 +END_TESTCASE SEC-FILETOKENS-EC097-0049
   1.716 +
   1.717 +
   1.718 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0050
   1.719 +//! @SYMTestCaseDesc Keytool help command
   1.720 +//! 		     (keytool_help_fail)
   1.721 +//! @SYMTestPriority Medium
   1.722 +//! @SYMTestActions  call Keytool help command without any argument
   1.723 +//! @SYMTestExpectedResults Keytool should display the help message
   1.724 +//! @SYMDevelopedForRelease Sphinx
   1.725 +
   1.726 +START_TESTCASE SEC-FILETOKENS-EC097-0050
   1.727 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_helpfail1.txt c:\output.txt
   1.728 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help
   1.729 +END_TESTCASE SEC-FILETOKENS-EC097-0050
   1.730 +
   1.731 +//! @SYMTestCaseID SEC-FILETOKENS-EC097-0051
   1.732 +//! @SYMTestCaseDesc Keytool Individual help command
   1.733 +//! 		     (keytool_help_fail1)
   1.734 +//! @SYMTestPriority Medium
   1.735 +//! @SYMTestActions  call Keytool Individual help command where the command is not exist
   1.736 +//! @SYMTestExpectedResults Keytool should display the help message
   1.737 +//! @SYMDevelopedForRelease Sphinx
   1.738 +
   1.739 +START_TESTCASE SEC-FILETOKENS-EC097-0051
   1.740 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_helpfail2.txt c:\output.txt
   1.741 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help
   1.742 +END_TESTCASE SEC-FILETOKENS-EC097-0051
   1.743 +
   1.744 +
   1.745 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0053
   1.746 +//! @SYMTestCaseDesc 	Keytool import command
   1.747 +//! 			(keytool_import_fail)
   1.748 +//! @SYMTestPriority 	Medium
   1.749 +//! @SYMTestActions  	call Keytool import key twice
   1.750 +//! @SYMTestExpectedResults Keytool should display the error message as already exists
   1.751 +//! @SYMDevelopedForRelease Sphinx
   1.752 +
   1.753 +START_TESTCASE SEC-FILETOKENS-EC097-0053
   1.754 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail1.txt c:\output.txt
   1.755 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail1.txt c:\output.txt
   1.756 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail
   1.757 +END_TESTCASE SEC-FILETOKENS-EC097-0053
   1.758 +
   1.759 +
   1.760 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0054
   1.761 +//! @SYMTestCaseDesc 	Keytool import command
   1.762 +//! 			(keytool_import_fail1)
   1.763 +//! @SYMTestPriority 	Medium
   1.764 +//! @SYMTestActions  	call Keytool import key where keystore doesn't exist
   1.765 +//! @SYMTestExpectedResults Keytool should display the error message as store not exist
   1.766 +//! @SYMDevelopedForRelease Sphinx
   1.767 +
   1.768 +START_TESTCASE SEC-FILETOKENS-EC097-0054
   1.769 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail2.txt c:\output.txt
   1.770 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail1
   1.771 +END_TESTCASE SEC-FILETOKENS-EC097-0054
   1.772 +
   1.773 +
   1.774 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0055
   1.775 +//! @SYMTestCaseDesc 	Keytool import command
   1.776 +//! 			(keytool_import_fail2)
   1.777 +//! @SYMTestPriority 	Medium
   1.778 +//! @SYMTestActions  	call Keytool import key where key doesn't exist
   1.779 +//! @SYMTestExpectedResults Keytool should display the error message as key not exist
   1.780 +//! @SYMDevelopedForRelease Sphinx
   1.781 +
   1.782 +START_TESTCASE SEC-FILETOKENS-EC097-0055
   1.783 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail3.txt c:\output.txt
   1.784 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail2
   1.785 +END_TESTCASE SEC-FILETOKENS-EC097-0055
   1.786 +
   1.787 +
   1.788 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0056
   1.789 +//! @SYMTestCaseDesc 	Keytool import command
   1.790 +//! 			(keytool_import_fail3)
   1.791 +//! @SYMTestPriority 	Medium
   1.792 +//! @SYMTestActions  	call Keytool import a corrupted key 
   1.793 +//! @SYMTestExpectedResults Keytool should display the error message as corrupted key
   1.794 +//! @SYMDevelopedForRelease Sphinx
   1.795 +
   1.796 +START_TESTCASE SEC-FILETOKENS-EC097-0056
   1.797 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail4.txt c:\output.txt
   1.798 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail3
   1.799 +END_TESTCASE SEC-FILETOKENS-EC097-0056
   1.800 +
   1.801 +
   1.802 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0057
   1.803 +//! @SYMTestCaseDesc 	Keytool import command
   1.804 +//! 			(keytool_import_fail4)
   1.805 +//! @SYMTestPriority 	Medium
   1.806 +//! @SYMTestActions  	call Keytool import empty key 
   1.807 +//! @SYMTestExpectedResults Keytool should display the error message as key is empty
   1.808 +//! @SYMDevelopedForRelease Sphinx
   1.809 +
   1.810 +START_TESTCASE SEC-FILETOKENS-EC097-0057
   1.811 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail5.txt c:\output.txt
   1.812 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail4
   1.813 +END_TESTCASE SEC-FILETOKENS-EC097-0057
   1.814 +
   1.815 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0058
   1.816 +//! @SYMTestCaseDesc 	Keytool setuser command
   1.817 +//! 			(keytool_setuser_fail)
   1.818 +//! @SYMTestPriority 	Medium
   1.819 +//! @SYMTestActions  	call Keytool setuser for key where key is not exist 
   1.820 +//! @SYMTestExpectedResults Keytool should display the error message as key is not exist
   1.821 +//! @SYMDevelopedForRelease Sphinx
   1.822 +
   1.823 +START_TESTCASE SEC-FILETOKENS-EC097-0058
   1.824 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setuserfail1.txt c:\output.txt
   1.825 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setuser_fail
   1.826 +END_TESTCASE SEC-FILETOKENS-EC097-0058
   1.827 +
   1.828 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0059
   1.829 +//! @SYMTestCaseDesc Keytool setuser command
   1.830 +//! 		     (keytool_setuser_fail1)
   1.831 +//! @SYMTestPriority Medium
   1.832 +//! @SYMTestActions  call Keytool setuser for key where key is created by third party
   1.833 +//! @SYMTestExpectedResults Keytool should display the error message as setusers failed with -46
   1.834 +//! @SYMDevelopedForRelease Sphinx
   1.835 +
   1.836 +START_TESTCASE SEC-FILETOKENS-EC097-0059
   1.837 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setuserfail2.txt c:\output.txt
   1.838 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setuser_fail1
   1.839 +END_TESTCASE SEC-FILETOKENS-EC097-0059
   1.840 +
   1.841 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0060
   1.842 +//! @SYMTestCaseDesc 	Keytool setalluser command
   1.843 +//! 			(keytool_setallusers_fail)
   1.844 +//! @SYMTestPriority 	Medium
   1.845 +//! @SYMTestActions  	call Keytool setalluser for key where key is not exist 
   1.846 +//! @SYMTestExpectedResults Keytool should display the error message as key is not exist
   1.847 +//! @SYMDevelopedForRelease Sphinx
   1.848 +
   1.849 +START_TESTCASE SEC-FILETOKENS-EC097-0060
   1.850 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setalluserfail1.txt c:\output.txt
   1.851 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setallusers_fail
   1.852 +END_TESTCASE SEC-FILETOKENS-EC097-0060
   1.853 +
   1.854 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0061
   1.855 +//! @SYMTestCaseDesc 	Keytool setuser command
   1.856 +//! 			(keytool_setallusers_fail1)
   1.857 +//! @SYMTestPriority 	Medium
   1.858 +//! @SYMTestActions  	call Keytool setuser for key where key is created by third party
   1.859 +//! @SYMTestExpectedResults Keytool should display the error message as setusers failed with -46
   1.860 +//! @SYMDevelopedForRelease Sphinx
   1.861 +
   1.862 +START_TESTCASE SEC-FILETOKENS-EC097-0061
   1.863 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setalluserfail2.txt c:\output.txt
   1.864 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setallusers_fail1
   1.865 +END_TESTCASE SEC-FILETOKENS-EC097-0061
   1.866 +
   1.867 +
   1.868 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0062
   1.869 +//! @SYMTestCaseDesc 	Keytool setmanager command
   1.870 +//! 			(keytool_setmanager_fail)
   1.871 +//! @SYMTestPriority 	Medium
   1.872 +//! @SYMTestActions  	call Keytool setmanager for key where key is not exist 
   1.873 +//! @SYMTestExpectedResults Keytool should display the error message as key is not exist
   1.874 +//! @SYMDevelopedForRelease Sphinx
   1.875 +
   1.876 +START_TESTCASE SEC-FILETOKENS-EC097-0062
   1.877 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setmanagerfail1.txt c:\output.txt
   1.878 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setmanager_fail
   1.879 +END_TESTCASE SEC-FILETOKENS-EC097-0062
   1.880 +
   1.881 +
   1.882 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0063
   1.883 +//! @SYMTestCaseDesc 	Keytool setmanager command
   1.884 +//! 			(keytool_setmanager_fail1)
   1.885 +//! @SYMTestPriority 	Medium
   1.886 +//! @SYMTestActions  	call Keytool setmanager for key where key is created by third party
   1.887 +//! @SYMTestExpectedResults Keytool should display the error message as key as setmanager failed with -46
   1.888 +//! @SYMDevelopedForRelease Sphinx
   1.889 +
   1.890 +START_TESTCASE SEC-FILETOKENS-EC097-0063
   1.891 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setmanagerfail2.txt c:\output.txt
   1.892 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setmanager_fail1
   1.893 +END_TESTCASE SEC-FILETOKENS-EC097-0063
   1.894 +
   1.895 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0064
   1.896 +//! @SYMTestCaseDesc 	Keytool remove user command
   1.897 +//! 			(keytool_removeuser_fail)
   1.898 +//! @SYMTestPriority 	Medium
   1.899 +//! @SYMTestActions  	call Keytool remove user for key where key is not exist 
   1.900 +//! @SYMTestExpectedResults Keytool should display the error message as key is not exist
   1.901 +//! @SYMDevelopedForRelease Sphinx
   1.902 +
   1.903 +START_TESTCASE SEC-FILETOKENS-EC097-0064
   1.904 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_removeuserfail1.txt c:\output.txt
   1.905 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_removeuser_fail
   1.906 +END_TESTCASE SEC-FILETOKENS-EC097-0064
   1.907 +
   1.908 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0065
   1.909 +//! @SYMTestCaseDesc 	Keytool remove user command
   1.910 +//! 			(keytool_removeuser_fail1)
   1.911 +//! @SYMTestPriority 	Medium
   1.912 +//! @SYMTestActions  	call Keytool removeuser for key where key is created by third party
   1.913 +//! @SYMTestExpectedResults Keytool should display the error message as key is removeusers failed with -46
   1.914 +//! @SYMDevelopedForRelease Sphinx
   1.915 +
   1.916 +START_TESTCASE SEC-FILETOKENS-EC097-0065
   1.917 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_removeuserfail2.txt c:\output.txt
   1.918 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_removeuser_fail1
   1.919 +END_TESTCASE SEC-FILETOKENS-EC097-0065
   1.920 +
   1.921 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0066
   1.922 +//! @SYMTestCaseDesc Keytool list command
   1.923 +//! 		     (keytool_list_fail)
   1.924 +//! @SYMTestPriority Medium
   1.925 +//! @SYMTestActions  call Keytool list for the key where keystore is not exist
   1.926 +//! @SYMTestExpectedResults Keytool should display the error message as key is store not exist
   1.927 +//! @SYMDevelopedForRelease Sphinx
   1.928 +
   1.929 +START_TESTCASE SEC-FILETOKENS-EC097-0066
   1.930 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_listfail1.txt c:\output.txt
   1.931 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list_fail
   1.932 +END_TESTCASE SEC-FILETOKENS-EC097-0066
   1.933 +
   1.934 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0067
   1.935 +//! @SYMTestCaseDesc Keytool list command
   1.936 +//! 		     (keytool_list_fail1)
   1.937 +//! @SYMTestPriority Medium
   1.938 +//! @SYMTestActions  call Keytool list for key where key is not exist
   1.939 +//! @SYMTestExpectedResults Keytool should display the error message as key is not exist
   1.940 +//! @SYMDevelopedForRelease Sphinx
   1.941 +
   1.942 +START_TESTCASE SEC-FILETOKENS-EC097-0067
   1.943 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_listfail2.txt c:\output.txt
   1.944 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list_fail1
   1.945 +END_TESTCASE SEC-FILETOKENS-EC097-0067
   1.946 +
   1.947 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0068
   1.948 +//! @SYMTestCaseDesc 	Keytool remove command
   1.949 +//! 			(keytool_remove_fail)
   1.950 +//! @SYMTestPriority 	Medium
   1.951 +//! @SYMTestActions  	call Keytool remove for key where key is not exist
   1.952 +//! @SYMTestExpectedResults Keytool should display the error message as key is not exist
   1.953 +//! @SYMDevelopedForRelease Sphinx
   1.954 +
   1.955 +START_TESTCASE SEC-FILETOKENS-EC097-0068
   1.956 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_removefail.txt c:\output.txt
   1.957 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_remove_fail
   1.958 +END_TESTCASE SEC-FILETOKENS-EC097-0068
   1.959 +
   1.960 +//! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0069
   1.961 +//! @SYMTestCaseDesc 	Keytool command
   1.962 +//! 			(keytool_fail)
   1.963 +//! @SYMTestPriority 	Medium
   1.964 +//! @SYMTestActions  	call Keytool command in unspeicifed order
   1.965 +//! @SYMTestExpectedResults Keytool should display the help message
   1.966 +//! @SYMDevelopedForRelease Sphinx
   1.967 +
   1.968 +START_TESTCASE SEC-FILETOKENS-EC097-0069
   1.969 +RUN_PROGRAM keytool.exe c:\ttesttools\data\keyfail.txt c:\output.txt
   1.970 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help
   1.971 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_remove3.txt c:\output.txt
   1.972 +RUN_PROGRAM keytool.exe c:\ttesttools\data\key_remove1.txt c:\output.txt
   1.973 +END_TESTCASE SEC-FILETOKENS-EC097-0069
   1.974 +
   1.975 +
   1.976 +//! @SYMTestCaseID 	SEC-FILETOKENS-Defect118391-0070
   1.977 +//! @SYMTestCaseDesc 	Certool import command
   1.978 +//! 			(certtool_import_def118391)
   1.979 +//! @SYMTestPriority 	Medium
   1.980 +//! @SYMTestActions  	call Certool import command without a label specified
   1.981 +//! @SYMTestExpectedResults Certtool  should not display any error message and work fine.
   1.982 +
   1.983 +START_TESTCASE SEC-FILETOKENS-Defect118391-0070
   1.984 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import.txt c:\output.txt
   1.985 +RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import
   1.986 +RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import
   1.987 +END_TESTCASE SEC-FILETOKENS-Defect118391-0070
   1.988 +
   1.989 +
   1.990 +//! @SYMTestCaseID 	SEC-FILETOKENS-Defect118391-0071
   1.991 +//! @SYMTestCaseDesc 	Certool setapps command
   1.992 +//! 			(certtool_setapps_defect118391)
   1.993 +//! @SYMTestPriority 	Medium
   1.994 +//! @SYMTestActions  	call Certool setapps command with a label option specified
   1.995 +//! @SYMTestExpectedResults Certtool  should not display any error message and work fine.
   1.996 +
   1.997 +
   1.998 +START_TESTCASE SEC-FILETOKENS-Defect118391-0071
   1.999 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setapps1.txt c:\output.txt
  1.1000 +RUN_TEST_STEP 100 ttesttools GetTrustAppsStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps1
  1.1001 +END_TESTCASE SEC-FILETOKENS-Defect118391-0071
  1.1002 +
  1.1003 +
  1.1004 +//! @SYMTestCaseID 	SEC-FILETOKENS-Defect118391-0072
  1.1005 +//! @SYMTestCaseDesc 	Certool setapps command  
  1.1006 +//! 			(certtool_trust)
  1.1007 +//! @SYMTestPriority 	Medium
  1.1008 +//! @SYMTestActions  	call Certool to set the application trust status for the certificate
  1.1009 +//! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats trust status
  1.1010 +
  1.1011 +START_TESTCASE SEC-FILETOKENS-Defect118391-0072
  1.1012 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setapps.txt c:\output.txt
  1.1013 +RUN_TEST_STEP 100 ttesttools GetTrustStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps2
  1.1014 +END_TESTCASE SEC-FILETOKENS-Defect118391-0072
  1.1015 +
  1.1016 +
  1.1017 +//! @SYMTestCaseID 	SEC-FILETOKENS-QI-0073
  1.1018 +//! @SYMTestCaseDesc 	Certool addapps command
  1.1019 +//! 			(certtool_addapps_QI)
  1.1020 +//! @SYMTestPriority 	Medium
  1.1021 +//! @SYMTestActions  	First remove the cert, then import the certificate then call Certool to set the application trust status for the certificate
  1.1022 +//! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats app status.
  1.1023 +
  1.1024 +
  1.1025 +START_TESTCASE SEC-FILETOKENS-QI-0073
  1.1026 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_addapps1.txt c:\output.txt
  1.1027 +RUN_TEST_STEP 100 ttesttools GetTrustAppsStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_addapps1
  1.1028 +END_TESTCASE SEC-FILETOKENS-QI-0073
  1.1029 +
  1.1030 +
  1.1031 +//! @SYMTestCaseID 	SEC-FILETOKENS-QI-0074
  1.1032 +//! @SYMTestCaseDesc 	Certool addapps command  
  1.1033 +//! 			(certtool_trust)
  1.1034 +//! @SYMTestPriority 	Medium
  1.1035 +//! @SYMTestActions  	call gettrust status to check the trust status for the certificate
  1.1036 +//! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats trust status
  1.1037 +
  1.1038 +START_TESTCASE SEC-FILETOKENS-QI-0074
  1.1039 +RUN_TEST_STEP 100 ttesttools GetTrustStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_addapps2
  1.1040 +END_TESTCASE SEC-FILETOKENS-QI-0074
  1.1041 +
  1.1042 +//! @SYMTestCaseID 	SEC-FILETOKENS-IMPROVEMENT-0001
  1.1043 +//! @SYMTestCaseDesc 	Certtool import command
  1.1044 +//! @SYMTestPriority 	Medium
  1.1045 +//! @SYMTestActions  	call Certtool to import a certificate with the deletable flag set to 'y'.
  1.1046 +//! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore, the certificate is listed.
  1.1047 +
  1.1048 +START_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0001
  1.1049 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importdeletable1.txt c:\output.txt
  1.1050 +RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_importdeletable1
  1.1051 +
  1.1052 +END_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0001
  1.1053 +
  1.1054 +
  1.1055 +//! @SYMTestCaseID 	SEC-FILETOKENS-IMPROVEMENT-0002
  1.1056 +//! @SYMTestCaseDesc 	Certtool import command
  1.1057 +//! @SYMTestPriority 	Medium
  1.1058 +//! @SYMTestActions  	call Certtool to import a certificate with the deletable flag set to 'n'.
  1.1059 +//! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore, the certificate is listed.
  1.1060 +
  1.1061 +START_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0002
  1.1062 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importdeletable2.txt c:\output.txt
  1.1063 +RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_importdeletable2
  1.1064 +END_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0002
  1.1065 +
  1.1066 +//! @SYMTestCaseID 	SEC-FILETOKENS-IMPROVEMENT-0003
  1.1067 +//! @SYMTestCaseDesc 	Certtool import command
  1.1068 +//! @SYMTestPriority 	Medium
  1.1069 +//! @SYMTestActions  	call Certtool to import a certificate with the deletable flag set to a garbage value.
  1.1070 +//! @SYMTestExpectedResults The expected output is "An error occured during certificate import."
  1.1071 +
  1.1072 +START_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0003
  1.1073 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importdeletable3.txt c:\output.txt
  1.1074 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_importdeletable3
  1.1075 +END_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0003
  1.1076 +
  1.1077 +
  1.1078 +//! @SYMTestCaseID 	SEC-FILETOKENS-IMPROVEMENT-0004
  1.1079 +//! @SYMTestCaseDesc 	Certtool remove command
  1.1080 +//! @SYMTestPriority 	Medium
  1.1081 +//! @SYMTestActions  	Call certtool to remove the certificate imported with deletable set to 'y'
  1.1082 +//! @SYMTestExpectedResults The expected output is "Certificate removed successfully."
  1.1083 +
  1.1084 +START_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0004
  1.1085 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removedeletable1.txt c:\output.txt
  1.1086 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removedeletable1
  1.1087 +END_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0004
  1.1088 +
  1.1089 +
  1.1090 +//! @SYMTestCaseID 	SEC-FILETOKENS-IMPROVEMENT-0005
  1.1091 +//! @SYMTestCaseDesc 	Certtool remove command
  1.1092 +//! @SYMTestPriority 	Medium
  1.1093 +//! @SYMTestActions  	Call certtool to remove the certificate imported with deletable set to 'n'
  1.1094 +//! @SYMTestExpectedResults The expected output is "Certificate removed successfully."
  1.1095 +
  1.1096 +START_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0005
  1.1097 +RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removedeletable2.txt c:\output.txt
  1.1098 +RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removedeletable2
  1.1099 +END_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0005
  1.1100 +
  1.1101 +