cryptoservices/filebasedcertificateandkeystores/test/ttesttools/scripts/sec-filetokens-tools.script
changeset 8 35751d3474b7
parent 0 2c201484c85f
child 19 ece3df019add
equal deleted inserted replaced
2:675a964f4eb5 8:35751d3474b7
    11 //
    11 //
    12 // Contributors:
    12 // Contributors:
    13 //
    13 //
    14 // Description: 
    14 // Description: 
    15 //
    15 //
       
    16 //
       
    17 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
    18 // All rights reserved.
       
    19 // This component and the accompanying materials are made available
       
    20 // under the terms of the License "Symbian Foundation License v1.0"
       
    21 // which accompanies this distribution, and is available
       
    22 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
    23 //
       
    24 // Initial Contributors:
       
    25 // Nokia Corporation - initial contribution.
       
    26 //
       
    27 // Contributors:
       
    28 //
       
    29 // Description:
       
    30 //
    16 //! @file
    31 //! @file
    17 // filetokens tools unit (integration) tests
    32 // filetokens tools unit (integration) tests
    18 PRINT Run all certtool and keytool tests
    33 PRINT Run all certtool and keytool tests
    19 LOAD_SUITE ttesttools
    34 LOAD_SUITE ttesttools
    20 
    35 
    21 //! @SYMTestCaseID FILETOKENS-EC097-0001
    36 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0001
    22 //! @SYMTestCaseDesc Certool help command  
    37 //! @SYMTestCaseDesc 	Certool help command  
    23 //! @SYMTestPriority Medium
    38 //! 			(certhelp)
    24 //! @SYMTestActions  call Certool for the help command
    39 //! @SYMTestPriority 	Medium
       
    40 //! @SYMTestActions  	call Certool for the help command
    25 //! @SYMTestExpectedResults Certtool  help command should display the help command as expected
    41 //! @SYMTestExpectedResults Certtool  help command should display the help command as expected
    26 //! @SYMDevelopedForRelease Sphinx
    42 //! @SYMDevelopedForRelease Sphinx
    27 
    43 
    28 START_TESTCASE certhelp
    44 START_TESTCASE SEC-FILETOKENS-EC097-0001
    29 RUN_PROGRAM certtool.exe c:\ttesttools\data\certhelp.txt c:\output.txt
    45 RUN_PROGRAM certtool.exe c:\ttesttools\data\certhelp.txt c:\output.txt
    30 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp
    46 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp
    31 END_TESTCASE certhelp
    47 END_TESTCASE SEC-FILETOKENS-EC097-0001
    32 
    48 
    33 //! @SYMTestCaseID FILETOKENS-EC097-0002
    49 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0002
    34 //! @SYMTestCaseDesc Certool Individual help command  
    50 //! @SYMTestCaseDesc 	Certool Individual help command  
    35 //! @SYMTestPriority Medium
    51 //! 			(certhelp_individual)
    36 //! @SYMTestActions  call Certool for the Individual help command
    52 //! @SYMTestPriority 	Medium
       
    53 //! @SYMTestActions  	call Certool for the Individual help command
    37 //! @SYMTestExpectedResults Certtool Individual help command should display the help command as expected
    54 //! @SYMTestExpectedResults Certtool Individual help command should display the help command as expected
    38 //! @SYMDevelopedForRelease Sphinx
    55 //! @SYMDevelopedForRelease Sphinx
    39 
    56 
    40 START_TESTCASE certhelp_individual
    57 START_TESTCASE SEC-FILETOKENS-EC097-0002
    41 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_helpls.txt c:\output.txt
    58 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_helpls.txt c:\output.txt
    42 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp_individual
    59 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp_individual
    43 END_TESTCASE certhelp_individual
    60 END_TESTCASE SEC-FILETOKENS-EC097-0002
    44 
    61 
    45 //! @SYMTestCaseID FILETOKENS-EC097-0003
    62 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0003
    46 //! @SYMTestCaseDesc Certool liststore command  
    63 //! @SYMTestCaseDesc 	Certool liststore command  
    47 //! @SYMTestPriority Medium
    64 //! 			(certtool_liststores)
    48 //! @SYMTestActions  call Certool for the liststore command then parse the output file and constuct the expected stores
    65 //! @SYMTestPriority 	Medium
       
    66 //! @SYMTestActions  	call Certool for the liststore command then parse the output file and constuct the expected stores
    49 //! @SYMTestExpectedResults Call certstore via CUnifiedCertstore and compare with the expected stores
    67 //! @SYMTestExpectedResults Call certstore via CUnifiedCertstore and compare with the expected stores
    50 //! @SYMDevelopedForRelease Sphinx
    68 //! @SYMDevelopedForRelease Sphinx
    51 
    69 
    52 START_TESTCASE certtool_liststores
    70 START_TESTCASE SEC-FILETOKENS-EC097-0003
    53 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_ls.txt c:\output.txt
    71 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_ls.txt c:\output.txt
    54 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_liststores
    72 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_liststores
    55 END_TESTCASE certtool_liststores
    73 END_TESTCASE SEC-FILETOKENS-EC097-0003
    56 
    74 
    57 //! @SYMTestCaseID FILETOKENS-EC097-0004
    75 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0004
    58 //! @SYMTestCaseDesc Certool import command  
    76 //! @SYMTestCaseDesc 	Certool import command  
    59 //! @SYMTestPriority Medium
    77 //! 			(certtool_import_store0)
    60 //! @SYMTestActions  call Certool to import the certificate. 
    78 //! @SYMTestPriority 	Medium
       
    79 //! @SYMTestActions  	call Certool to import the certificate. 
    61 //! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore and confirms the certificate is listed
    80 //! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore and confirms the certificate is listed
    62 //! @SYMDevelopedForRelease Sphinx
    81 //! @SYMDevelopedForRelease Sphinx
    63 
    82 
    64 START_TESTCASE certtool_import_store0
    83 START_TESTCASE SEC-FILETOKENS-EC097-0004
    65 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import1.txt c:\output.txt
    84 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import1.txt c:\output.txt
    66 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_store0
    85 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_store0
    67 END_TESTCASE certtool_import_store0
    86 END_TESTCASE SEC-FILETOKENS-EC097-0004
    68 
    87 
    69 
    88 
    70 //! @SYMTestCaseID FILETOKENS-EC097-0005
    89 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0005
    71 //! @SYMTestCaseDesc Certool import command  
    90 //! @SYMTestCaseDesc 	Certool import command  
    72 //! @SYMTestPriority Medium
    91 //! 			(certtool_import_store1)
    73 //! @SYMTestActions  call Certool to import the certificate to store 1
    92 //! @SYMTestPriority 	Medium
       
    93 //! @SYMTestActions  	call Certool to import the certificate to store 1
    74 //! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore and confirms the certificate is listed
    94 //! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore and confirms the certificate is listed
    75 //! @SYMDevelopedForRelease Sphinx
    95 //! @SYMDevelopedForRelease Sphinx
    76 
    96 
    77 START_TESTCASE certtool_import_store1
    97 START_TESTCASE SEC-FILETOKENS-EC097-0005
    78 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import2.txt c:\output.txt
    98 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import2.txt c:\output.txt
    79 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_store1
    99 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_store1
    80 END_TESTCASE certtool_import_store1
   100 END_TESTCASE SEC-FILETOKENS-EC097-0005
    81 
   101 
    82 
   102 
    83 //! @SYMTestCaseID FILETOKENS-EC097-0006
   103 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0006
    84 //! @SYMTestCaseDesc Certool import command  
   104 //! @SYMTestCaseDesc	Certool import command  
    85 //! @SYMTestPriority Medium
   105 //! 			(certtool_import_store01twice)
    86 //! @SYMTestActions  call Certool to import the same certificate with same name in two different stores
   106 //! @SYMTestPriority 	Medium
       
   107 //! @SYMTestActions  	call Certool to import the same certificate with same name in two different stores
    87 //! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore and confirms the certificate is listed
   108 //! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore and confirms the certificate is listed
    88 //! @SYMDevelopedForRelease Sphinx
   109 //! @SYMDevelopedForRelease Sphinx
    89 
   110 
    90 START_TESTCASE certtool_import_store01twice
   111 START_TESTCASE SEC-FILETOKENS-EC097-0006
    91 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import3.txt c:\output.txt
   112 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import3.txt c:\output.txt
    92 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_store01twice
   113 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_store01twice
    93 END_TESTCASE certtool_import_store01twice
   114 END_TESTCASE SEC-FILETOKENS-EC097-0006
    94 
   115 
    95 
   116 
    96 //! @SYMTestCaseID FILETOKENS-EC097-0007
   117 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0007
    97 //! @SYMTestCaseDesc Certool import command  
   118 //! @SYMTestCaseDesc 	Certool import command  
    98 //! @SYMTestPriority Medium
   119 //! 			(certtool_import_keycert)
    99 //! @SYMTestActions  call Certool to import the certificate as well as the key
   120 //! @SYMTestPriority 	Medium
       
   121 //! @SYMTestActions  	call Certool to import the certificate as well as the key
   100 //! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore and confirms the certificate is listed
   122 //! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore and confirms the certificate is listed
   101 //!	Call keystore list via CUnifiedKeystore and confirms the key is listed
   123 //!	Call keystore list via CUnifiedKeystore and confirms the key is listed
   102 //! @SYMDevelopedForRelease Sphinx
   124 //! @SYMDevelopedForRelease Sphinx
   103 
   125 
   104 START_TESTCASE certtool_import_keycert
   126 START_TESTCASE SEC-FILETOKENS-EC097-0007
   105 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import4.txt c:\output.txt
   127 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import4.txt c:\output.txt
   106 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_keycert
   128 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_keycert
   107 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_keycert
   129 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_keycert
   108 END_TESTCASE certtool_import_keycert
   130 END_TESTCASE SEC-FILETOKENS-EC097-0007
   109 
   131 
   110 
   132 
   111 //! @SYMTestCaseID FILETOKENS-EC097-0008
   133 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0008
   112 //! @SYMTestCaseDesc Certool setapps command  
   134 //! @SYMTestCaseDesc 	Certool setapps command  
   113 //! @SYMTestPriority Medium
   135 //! 			(certtool_setapps)
   114 //! @SYMTestActions  call Certool to set the application trust status for the certificate
   136 //! @SYMTestPriority 	Medium
       
   137 //! @SYMTestActions  	call Certool to set the application trust status for the certificate
   115 //! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats trust status
   138 //! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats trust status
   116 //! @SYMDevelopedForRelease Sphinx
   139 //! @SYMDevelopedForRelease Sphinx
   117 
   140 
   118 START_TESTCASE certtool_setapps
   141 START_TESTCASE SEC-FILETOKENS-EC097-0008
   119 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setapps.txt c:\output.txt
   142 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setapps.txt c:\output.txt
   120 RUN_TEST_STEP 100 ttesttools GetTrustAppsStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps
   143 RUN_TEST_STEP 100 ttesttools GetTrustAppsStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps
   121 END_TESTCASE certtool_setapps
   144 END_TESTCASE SEC-FILETOKENS-EC097-0008
   122 
   145 
   123 //! @SYMTestCaseID FILETOKENS-EC097-0009
   146 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0009
   124 //! @SYMTestCaseDesc Certool addapps command  
   147 //! @SYMTestCaseDesc 	Certool addapps command  
   125 //! @SYMTestPriority Medium
   148 //! 			(certtool_addapps)
   126 //! @SYMTestActions  call Certool to add the application trust status for the certificate
   149 //! @SYMTestPriority 	Medium
       
   150 //! @SYMTestActions  	call Certool to add the application trust status for the certificate
   127 //! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats trust status
   151 //! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats trust status
   128 //! @SYMDevelopedForRelease Sphinx
   152 //! @SYMDevelopedForRelease Sphinx
   129 
   153 
   130 START_TESTCASE certtool_addapps
   154 START_TESTCASE SEC-FILETOKENS-EC097-0009
   131 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_addapps.txt c:\output.txt
   155 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_addapps.txt c:\output.txt
   132 RUN_TEST_STEP 100 ttesttools GetTrustAppsStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_addapps
   156 RUN_TEST_STEP 100 ttesttools GetTrustAppsStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_addapps
   133 END_TESTCASE certtool_addapps
   157 END_TESTCASE SEC-FILETOKENS-EC097-0009
   134 
   158 
   135 
   159 
   136 
   160 
   137 //! @SYMTestCaseID FILETOKENS-EC097-0010
   161 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0010
   138 //! @SYMTestCaseDesc Certool removeapps command  
   162 //! @SYMTestCaseDesc 	Certool removeapps command  
   139 //! @SYMTestPriority Medium
   163 //! 			(certtool_removeapps)
   140 //! @SYMTestActions  call Certool to remove the application trust status for the certificate
   164 //! @SYMTestPriority 	Medium
       
   165 //! @SYMTestActions  	call Certool to remove the application trust status for the certificate
   141 //! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats trust status
   166 //! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats trust status
   142 //! @SYMDevelopedForRelease Sphinx
   167 //! @SYMDevelopedForRelease Sphinx
   143 
   168 
   144 START_TESTCASE certtool_removeapps
   169 START_TESTCASE SEC-FILETOKENS-EC097-0010
   145 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removeapps.txt c:\output.txt
   170 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removeapps.txt c:\output.txt
   146 RUN_TEST_STEP 100 ttesttools GetTrustAppsStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removeapps
   171 RUN_TEST_STEP 100 ttesttools GetTrustAppsStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removeapps
   147 END_TESTCASE certtool_removeapps
   172 END_TESTCASE SEC-FILETOKENS-EC097-0010
   148 
   173 
   149 
   174 
   150 
   175 
   151 //! @SYMTestCaseID FILETOKENS-EC097-0011
   176 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0011
   152 //! @SYMTestCaseDesc Certool list command  
   177 //! @SYMTestCaseDesc 	Certool list command  
   153 //! @SYMTestPriority Medium
   178 //! 			(certtool_list)
   154 //! @SYMTestActions  call Certool to list the certificate then parse the output file and construct the expected cert list
   179 //! @SYMTestPriority 	Medium
       
   180 //! @SYMTestActions  	call Certool to list the certificate then parse the output file and construct the expected cert list
   155 //! @SYMTestExpectedResults Query certstore  list via CUnifiedCertstore and confirms with the expected certlist
   181 //! @SYMTestExpectedResults Query certstore  list via CUnifiedCertstore and confirms with the expected certlist
   156 //! @SYMDevelopedForRelease Sphinx
   182 //! @SYMDevelopedForRelease Sphinx
   157 
   183 
   158 START_TESTCASE certtool_list
   184 START_TESTCASE SEC-FILETOKENS-EC097-0011
   159 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_list1.txt c:\output.txt
   185 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_list1.txt c:\output.txt
   160 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list
   186 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list
   161 END_TESTCASE certtool_list
   187 END_TESTCASE SEC-FILETOKENS-EC097-0011
   162 
   188 
   163 //! @SYMTestCaseID FILETOKENS-EC097-0012
   189 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0012
   164 //! @SYMTestCaseDesc Certool list the certficate in store 1  
   190 //! @SYMTestCaseDesc 	Certool list the certficate in store 1  
   165 //! @SYMTestPriority Medium
   191 //! 			(certtool_list_store)
   166 //! @SYMTestActions  call Certool to list the certificate in store 1 then parse the output file and construct the expected cert list
   192 //! @SYMTestPriority 	Medium
       
   193 //! @SYMTestActions  	call Certool to list the certificate in store 1 then parse the output file and construct the expected cert list
   167 //! @SYMTestExpectedResults Query certstore  list via CUnifiedCertstore and confirms with the expected certlist
   194 //! @SYMTestExpectedResults Query certstore  list via CUnifiedCertstore and confirms with the expected certlist
   168 //! @SYMDevelopedForRelease Sphinx
   195 //! @SYMDevelopedForRelease Sphinx
   169 
   196 
   170 START_TESTCASE certtool_list_store
   197 START_TESTCASE SEC-FILETOKENS-EC097-0012
   171 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_list2.txt c:\output.txt
   198 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_list2.txt c:\output.txt
   172 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_store
   199 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_store
   173 END_TESTCASE certtool_list_store
   200 END_TESTCASE SEC-FILETOKENS-EC097-0012
   174 
   201 
   175 //! @SYMTestCaseID FILETOKENS-EC097-0013
   202 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0013
   176 //! @SYMTestCaseDesc Certool list a particular certificate
   203 //! @SYMTestCaseDesc 	Certool list a particular certificate
   177 //! @SYMTestPriority Medium
   204 //! 			(certtool_list_cert)
   178 //! @SYMTestActions  call Certool to list the certificate 
   205 //! @SYMTestPriority 	Medium
       
   206 //! @SYMTestActions  	call Certool to list the certificate 
   179 //! @SYMTestExpectedResults Query certstore  list via CUnifiedCertstore and confirms with the expected certificate
   207 //! @SYMTestExpectedResults Query certstore  list via CUnifiedCertstore and confirms with the expected certificate
   180 //! @SYMDevelopedForRelease Sphinx
   208 //! @SYMDevelopedForRelease Sphinx
   181 
   209 
   182 START_TESTCASE certtool_list_cert
   210 START_TESTCASE SEC-FILETOKENS-EC097-0013
   183 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_list3.txt c:\output.txt
   211 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_list3.txt c:\output.txt
   184 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_cert
   212 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_cert
   185 END_TESTCASE certtool_list_cert
   213 END_TESTCASE SEC-FILETOKENS-EC097-0013
   186 
   214 
   187 
   215 
   188 //! @SYMTestCaseID FILETOKENS-EC097-0014
   216 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0014
   189 //! @SYMTestCaseDesc Certool list a particular owner type 
   217 //! @SYMTestCaseDesc 	Certool list a particular owner type 
   190 //! @SYMTestPriority Medium
   218 //! 			(certtool_list_certowner)
   191 //! @SYMTestActions  call Certool to list the certificate for a particular owner
   219 //! @SYMTestPriority 	Medium
       
   220 //! @SYMTestActions  	call Certool to list the certificate for a particular owner
   192 //! @SYMTestExpectedResults Query certstore  list via CUnifiedCertstore and confirms with the expected certlist
   221 //! @SYMTestExpectedResults Query certstore  list via CUnifiedCertstore and confirms with the expected certlist
   193 //! @SYMDevelopedForRelease Sphinx
   222 //! @SYMDevelopedForRelease Sphinx
   194 
   223 
   195 START_TESTCASE certtool_list_certowner
   224 START_TESTCASE SEC-FILETOKENS-EC097-0014
   196 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_list4.txt c:\output.txt
   225 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_list4.txt c:\output.txt
   197 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_certowner
   226 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_certowner
   198 END_TESTCASE certtool_list_certowner
   227 END_TESTCASE SEC-FILETOKENS-EC097-0014
   199 
   228 
   200 
   229 
   201 //! @SYMTestCaseID FILETOKENS-EC097-0015
   230 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0015
   202 //! @SYMTestCaseDesc Certool remove command  
   231 //! @SYMTestCaseDesc 	Certool remove command  
   203 //! @SYMTestPriority Medium
   232 //! 			(certtool_remove)
   204 //! @SYMTestActions  call Certool to remove the certificate 
   233 //! @SYMTestPriority 	Medium
       
   234 //! @SYMTestActions  	call Certool to remove the certificate 
   205 //! @SYMTestExpectedResults Query certstore  list via CUnifiedCertstore and confirm that the certificate won't be listed
   235 //! @SYMTestExpectedResults Query certstore  list via CUnifiedCertstore and confirm that the certificate won't be listed
   206 //! @SYMDevelopedForRelease Sphinx
   236 //! @SYMDevelopedForRelease Sphinx
   207 
   237 
   208 START_TESTCASE certtool_remove
   238 START_TESTCASE SEC-FILETOKENS-EC097-0015
   209 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_remove1.txt c:\output.txt
   239 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_remove1.txt c:\output.txt
   210 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_remove1
   240 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_remove1
   211 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_remove2
   241 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_remove2
   212 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_remove3
   242 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_remove3
   213 END_TESTCASE certtool_remove
   243 END_TESTCASE SEC-FILETOKENS-EC097-0015
   214 
   244 
   215 
   245 
   216 //! @SYMTestCaseID FILETOKENS-EC097-0016
   246 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0016
   217 //! @SYMTestCaseDesc Certool remove key and cert
   247 //! @SYMTestCaseDesc 	Certool remove key and cert
   218 //! @SYMTestPriority Medium
   248 //! 			(certtool_removekey)
   219 //! @SYMTestActions  call Certool to remove the certificate as well as key
   249 //! @SYMTestPriority 	Medium
       
   250 //! @SYMTestActions  	call Certool to remove the certificate as well as key
   220 //! @SYMTestExpectedResults Query certstore  and keystore and confirms both cert and key are deleted.
   251 //! @SYMTestExpectedResults Query certstore  and keystore and confirms both cert and key are deleted.
   221 //! @SYMDevelopedForRelease Sphinx
   252 //! @SYMDevelopedForRelease Sphinx
   222 
   253 
   223 START_TESTCASE certtool_removekey
   254 START_TESTCASE SEC-FILETOKENS-EC097-0016
   224 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_remove2.txt c:\output.txt
   255 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_remove2.txt c:\output.txt
   225 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removekey
   256 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removekey
   226 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removekey
   257 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removekey
   227 END_TESTCASE certtool_removekey
   258 END_TESTCASE SEC-FILETOKENS-EC097-0016
   228 
   259 
   229 
   260 
   230 //! @SYMTestCaseID FILETOKENS-EC097-0017
   261 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0017
   231 //! @SYMTestCaseDesc keytool help command 
   262 //! @SYMTestCaseDesc	keytool help command 
   232 //! @SYMTestPriority Medium
   263 //! 			(keytool_help)
   233 //! @SYMTestActions  call keytool to display the help command
   264 //! @SYMTestPriority 	Medium
       
   265 //! @SYMTestActions  	call keytool to display the help command
   234 //! @SYMTestExpectedResults help command should display the help command as expected
   266 //! @SYMTestExpectedResults help command should display the help command as expected
   235 //! @SYMDevelopedForRelease Sphinx
   267 //! @SYMDevelopedForRelease Sphinx
   236 
   268 
   237 START_TESTCASE keytool_help
   269 START_TESTCASE SEC-FILETOKENS-EC097-0017
   238 RUN_PROGRAM keytool.exe c:\ttesttools\data\keyhelp.txt c:\output.txt
   270 RUN_PROGRAM keytool.exe c:\ttesttools\data\keyhelp.txt c:\output.txt
   239 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help
   271 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help
   240 END_TESTCASE keytool_help
   272 END_TESTCASE SEC-FILETOKENS-EC097-0017
   241 
   273 
   242 //! @SYMTestCaseID FILETOKENS-EC097-0018
   274 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0018
   243 //! @SYMTestCaseDesc keytool Individual help command 
   275 //! @SYMTestCaseDesc 	keytool Individual help command 
   244 //! @SYMTestPriority Medium
   276 //! 			(keytool_help_individual)
   245 //! @SYMTestActions  call keytool to display the Individual help command
   277 //! @SYMTestPriority 	Medium
       
   278 //! @SYMTestActions  	call keytool to display the Individual help command
   246 //! @SYMTestExpectedResults help command should display the help command as expected
   279 //! @SYMTestExpectedResults help command should display the help command as expected
   247 //! @SYMDevelopedForRelease Sphinx
   280 //! @SYMDevelopedForRelease Sphinx
   248 
   281 
   249 START_TESTCASE keytool_help_individual
   282 START_TESTCASE SEC-FILETOKENS-EC097-0018
   250 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setuserhelp.txt c:\output.txt
   283 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setuserhelp.txt c:\output.txt
   251 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help_individual
   284 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help_individual
   252 END_TESTCASE keytool_help_individual
   285 END_TESTCASE SEC-FILETOKENS-EC097-0018
   253 
   286 
   254 
   287 
   255 //! @SYMTestCaseID FILETOKENS-EC097-0019
   288 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0019
   256 //! @SYMTestCaseDesc keytool liststore command  
   289 //! @SYMTestCaseDesc 	keytool liststore command  
   257 //! @SYMTestPriority Medium
   290 //! 			(keytool_liststores)
   258 //! @SYMTestActions  call keytool for the liststore command then parse the output file and constuct the expected stores
   291 //! @SYMTestPriority 	Medium
       
   292 //! @SYMTestActions  	call keytool for the liststore command then parse the output file and constuct the expected stores
   259 //! @SYMTestExpectedResults Call keystore via CUnifiedKeystore and compare with the expected stores
   293 //! @SYMTestExpectedResults Call keystore via CUnifiedKeystore and compare with the expected stores
   260 //! @SYMDevelopedForRelease Sphinx
   294 //! @SYMDevelopedForRelease Sphinx
   261 
   295 
   262 START_TESTCASE keytool_liststores
   296 START_TESTCASE SEC-FILETOKENS-EC097-0019
   263 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_ls.txt c:\output.txt
   297 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_ls.txt c:\output.txt
   264 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_liststores
   298 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_liststores
   265 END_TESTCASE keytool_liststores
   299 END_TESTCASE SEC-FILETOKENS-EC097-0019
   266 
   300 
   267 //! @SYMTestCaseID FILETOKENS-EC097-0020
   301 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0020
   268 //! @SYMTestCaseDesc keytool import command  
   302 //! @SYMTestCaseDesc 	keytool import command  
   269 //! @SYMTestPriority Medium
   303 //! 			(keytool_import_key)
   270 //! @SYMTestActions  call keytool to import the certtificate. 
   304 //! @SYMTestPriority 	Medium
       
   305 //! @SYMTestActions  	call keytool to import the certtificate. 
   271 //! @SYMTestExpectedResults Call keystore list via CUnifiedkeystore and confirms the key is listed
   306 //! @SYMTestExpectedResults Call keystore list via CUnifiedkeystore and confirms the key is listed
   272 //! @SYMDevelopedForRelease Sphinx
   307 //! @SYMDevelopedForRelease Sphinx
   273 
   308 
   274 START_TESTCASE keytool_import_key
   309 START_TESTCASE SEC-FILETOKENS-EC097-0020
   275 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_import1.txt c:\output.txt
   310 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_import1.txt c:\output.txt
   276 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_key
   311 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_key
   277 END_TESTCASE keytool_import_key
   312 END_TESTCASE SEC-FILETOKENS-EC097-0020
   278 
   313 
   279 //! Test case 21 and 22 should be uncommented after fix the defect DEF113031
   314 //! Test case 21 and 22 should be uncommented after fix the defect DEF113031
   280 //! @SYMTestCaseID FILETOKENS-EC097-0021
   315 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0021
   281 //! @SYMTestCaseDesc keytool import command  
   316 //! @SYMTestCaseDesc 	keytool import command  
   282 //! @SYMTestPriority Medium
   317 //! 			(keytool_import_key_store1)
   283 //! @SYMTestActions  call keytool to import the key to store 1
   318 //! @SYMTestPriority 	Medium
       
   319 //! @SYMTestActions  	call keytool to import the key to store 1
   284 //! @SYMTestExpectedResults Call keystore list via CUnifiedKeystore and confirms the key is listed
   320 //! @SYMTestExpectedResults Call keystore list via CUnifiedKeystore and confirms the key is listed
   285 //! @SYMDevelopedForRelease Sphinx
   321 //! @SYMDevelopedForRelease Sphinx
   286 
   322 
   287 // START_TESTCASE keytool_import_key_store1
   323 // START_TESTCASE SEC-FILETOKENS-EC097-0021
   288 // RUN_PROGRAM keytool.exe c:\ttesttools\data\key_import2.txt c:\output.txt
   324 // RUN_PROGRAM keytool.exe c:\ttesttools\data\key_import2.txt c:\output.txt
   289 // RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_key_store1
   325 // RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_key_store1
   290 // END_TESTCASE keytool_import_key_store1
   326 // END_TESTCASE SEC-FILETOKENS-EC097-0021
   291 
   327 
   292 
   328 
   293 //! @SYMTestCaseID FILETOKENS-EC097-0022
   329 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0022
   294 //! @SYMTestCaseDesc keytool import command  
   330 //! @SYMTestCaseDesc 	keytool import command  
   295 //! @SYMTestPriority Medium
   331 //! 			(keytool_import_key_store01twice)
   296 //! @SYMTestActions  call keytool to import the same key with same name in two different stores
   332 //! @SYMTestPriority 	Medium
       
   333 //! @SYMTestActions  	call keytool to import the same key with same name in two different stores
   297 //! @SYMTestExpectedResults Call keystore list via CUnifiedKeystore and confirms the key is listed
   334 //! @SYMTestExpectedResults Call keystore list via CUnifiedKeystore and confirms the key is listed
   298 //! @SYMDevelopedForRelease Sphinx
   335 //! @SYMDevelopedForRelease Sphinx
   299 
   336 
   300 // START_TESTCASE keytool_import_key_store01twice
   337 // START_TESTCASE SEC-FILETOKENS-EC097-0022
   301 // RUN_PROGRAM keytool.exe c:\ttesttools\data\key_import3.txt c:\output.txt
   338 // RUN_PROGRAM keytool.exe c:\ttesttools\data\key_import3.txt c:\output.txt
   302 // RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_key_store01twice
   339 // RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_key_store01twice
   303 // END_TESTCASE keytool_import_key_store01twice
   340 // END_TESTCASE SEC-FILETOKENS-EC097-0022
   304 
   341 
   305 
   342 
   306 //! @SYMTestCaseID FILETOKENS-EC097-0023
   343 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0023
   307 //! @SYMTestCaseDesc keytool list command  
   344 //! @SYMTestCaseDesc 	keytool list command  
   308 //! @SYMTestPriority Medium
   345 //! 			(keytool_list)
   309 //! @SYMTestActions  call keytool to list the keys then parse the output file and construct the expected key list
   346 //! @SYMTestPriority 	Medium
       
   347 //! @SYMTestActions  	call keytool to list the keys then parse the output file and construct the expected key list
   310 //! @SYMTestExpectedResults Query keystore  list via CUnifiedKeystore and confirms with the expected keylist
   348 //! @SYMTestExpectedResults Query keystore  list via CUnifiedKeystore and confirms with the expected keylist
   311 //! @SYMDevelopedForRelease Sphinx
   349 //! @SYMDevelopedForRelease Sphinx
   312 
   350 
   313 START_TESTCASE keytool_list
   351 START_TESTCASE SEC-FILETOKENS-EC097-0023
   314 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_list1.txt c:\output.txt
   352 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_list1.txt c:\output.txt
   315 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list
   353 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list
   316 END_TESTCASE keytool_list
   354 END_TESTCASE SEC-FILETOKENS-EC097-0023
   317 
   355 
   318 
   356 
   319 //! @SYMTestCaseID FILETOKENS-EC097-0024
   357 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0024
   320 //! @SYMTestCaseDesc keytool list the keys in store 0  
   358 //! @SYMTestCaseDesc 	keytool list the keys in store 0  
   321 //! @SYMTestPriority Medium
   359 //! 			(keytool_list_store)
   322 //! @SYMTestActions  call keytool to list the keys in store 0 then parse the output file and construct the expected key list
   360 //! @SYMTestPriority 	Medium
       
   361 //! @SYMTestActions  	call keytool to list the keys in store 0 then parse the output file and construct the expected key list
   323 //! @SYMTestExpectedResults Query keystore  list via CUnifiedKeystore and confirms with the expected key list.
   362 //! @SYMTestExpectedResults Query keystore  list via CUnifiedKeystore and confirms with the expected key list.
   324 //! @SYMDevelopedForRelease Sphinx
   363 //! @SYMDevelopedForRelease Sphinx
   325 
   364 
   326 START_TESTCASE keytool_list_store
   365 START_TESTCASE SEC-FILETOKENS-EC097-0024
   327 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_list2.txt c:\output.txt
   366 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_list2.txt c:\output.txt
   328 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list_store
   367 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list_store
   329 END_TESTCASE keytool_list_store
   368 END_TESTCASE SEC-FILETOKENS-EC097-0024
   330 
   369 
   331 
   370 
   332 //! @SYMTestCaseID FILETOKENS-EC097-0025
   371 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0025
   333 //! @SYMTestCaseDesc keytool list a particular key
   372 //! @SYMTestCaseDesc 	keytool list a particular key
   334 //! @SYMTestPriority Medium
   373 //! 			(keytool_list_key)
   335 //! @SYMTestActions  call keytool to list the key 
   374 //! @SYMTestPriority 	Medium
       
   375 //! @SYMTestActions 	 call keytool to list the key 
   336 //! @SYMTestExpectedResults Query keystore  list via CUnifiedKeystore and confirms with the expected key
   376 //! @SYMTestExpectedResults Query keystore  list via CUnifiedKeystore and confirms with the expected key
   337 //! @SYMDevelopedForRelease Sphinx
   377 //! @SYMDevelopedForRelease Sphinx
   338 
   378 
   339 START_TESTCASE keytool_list_key
   379 START_TESTCASE SEC-FILETOKENS-EC097-0025
   340 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_list3.txt c:\output.txt
   380 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_list3.txt c:\output.txt
   341 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list_key
   381 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list_key
   342 END_TESTCASE keytool_list_key
   382 END_TESTCASE SEC-FILETOKENS-EC097-0025
   343 
   383 
   344 
   384 
   345 //! @SYMTestCaseID FILETOKENS-EC097-0026
   385 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0026
   346 //! @SYMTestCaseDesc keytool remove a particular key
   386 //! @SYMTestCaseDesc 	keytool remove a particular key
   347 //! @SYMTestPriority Medium
   387 //! 			(keytool_remove)
   348 //! @SYMTestActions  call keytool to remove the key 
   388 //! @SYMTestPriority	Medium
       
   389 //! @SYMTestActions  	call keytool to remove the key 
   349 //! @SYMTestExpectedResults Query keystore list via CUnifiedKeystore and confirms with the expected key won't be listed
   390 //! @SYMTestExpectedResults Query keystore list via CUnifiedKeystore and confirms with the expected key won't be listed
   350 //! @SYMDevelopedForRelease Sphinx
   391 //! @SYMDevelopedForRelease Sphinx
   351 
   392 
   352 START_TESTCASE keytool_remove
   393 START_TESTCASE SEC-FILETOKENS-EC097-0026
   353 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_remove.txt c:\output.txt
   394 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_remove.txt c:\output.txt
   354 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_remove
   395 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_remove
   355 END_TESTCASE keytool_remove
   396 END_TESTCASE SEC-FILETOKENS-EC097-0026
   356 
   397 
   357 
   398 
   358 //! @SYMTestCaseID FILETOKENS-EC097-0027
   399 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0027
   359 //! @SYMTestCaseDesc keytool setuser command
   400 //! @SYMTestCaseDesc 	keytool setuser command
   360 //! @SYMTestPriority Medium
   401 //! 			(keytool_setuser)
   361 //! @SYMTestActions  call keytool to setuser for the key 
   402 //! @SYMTestPriority 	Medium
       
   403 //! @SYMTestActions  	call keytool to setuser for the key 
   362 //! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key user.
   404 //! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key user.
   363 //! @SYMDevelopedForRelease Sphinx
   405 //! @SYMDevelopedForRelease Sphinx
   364 
   406 
   365 START_TESTCASE keytool_setuser
   407 START_TESTCASE SEC-FILETOKENS-EC097-0027
   366 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setuser.txt c:\output.txt
   408 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setuser.txt c:\output.txt
   367 RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setuser
   409 RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setuser
   368 END_TESTCASE keytool_setuser
   410 END_TESTCASE SEC-FILETOKENS-EC097-0027
   369 
   411 
   370 
   412 
   371 //! @SYMTestCaseID FILETOKENS-EC097-0028
   413 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0028
   372 //! @SYMTestCaseDesc keytool setalluser command
   414 //! @SYMTestCaseDesc 	keytool setalluser command
   373 //! @SYMTestPriority Medium
   415 //! 			(keytool_setallusers)
   374 //! @SYMTestActions  call keytool to setalluser for the key 
   416 //! @SYMTestPriority 	Medium
       
   417 //! @SYMTestActions  	call keytool to setalluser for the key 
   375 //! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key user.
   418 //! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key user.
   376 //! @SYMDevelopedForRelease Sphinx
   419 //! @SYMDevelopedForRelease Sphinx
   377 
   420 
   378 START_TESTCASE keytool_setallusers
   421 START_TESTCASE SEC-FILETOKENS-EC097-0028
   379 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setalluser.txt c:\output.txt
   422 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setalluser.txt c:\output.txt
   380 RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setallusers
   423 RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setallusers
   381 END_TESTCASE keytool_setallusers
   424 END_TESTCASE SEC-FILETOKENS-EC097-0028
   382 
   425 
   383 
   426 
   384 //! @SYMTestCaseID FILETOKENS-EC097-0029
   427 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0029
   385 //! @SYMTestCaseDesc keytool setmanager command
   428 //! @SYMTestCaseDesc 	keytool setmanager command
   386 //! @SYMTestPriority Medium
   429 //! 			(keytool_setmanager)
   387 //! @SYMTestActions  call keytool to setmanager for the key 
   430 //! @SYMTestPriority 	Medium
       
   431 //! @SYMTestActions  	call keytool to setmanager for the key 
   388 //! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key manager.
   432 //! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key manager.
   389 //! @SYMDevelopedForRelease Sphinx
   433 //! @SYMDevelopedForRelease Sphinx
   390 
   434 
   391 START_TESTCASE keytool_setmanager
   435 START_TESTCASE SEC-FILETOKENS-EC097-0029
   392 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setmanager.txt c:\output.txt
   436 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setmanager.txt c:\output.txt
   393 RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setmanager
   437 RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setmanager
   394 END_TESTCASE keytool_setmanager
   438 END_TESTCASE SEC-FILETOKENS-EC097-0029
   395 
   439 
   396 
   440 
   397 //! @SYMTestCaseID FILETOKENS-EC097-0030
   441 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0030
   398 //! @SYMTestCaseDesc keytool removeuser command
   442 //! @SYMTestCaseDesc 	keytool removeuser command
   399 //! @SYMTestPriority Medium
   443 //! 			(keytool_removeuser)
   400 //! @SYMTestActions  call keytool to remove the user for the key 
   444 //! @SYMTestPriority 	Medium
       
   445 //! @SYMTestActions  	call keytool to remove the user for the key 
   401 //! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key user.
   446 //! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key user.
   402 //! @SYMDevelopedForRelease Sphinx
   447 //! @SYMDevelopedForRelease Sphinx
   403 
   448 
   404 START_TESTCASE keytool_removeuser
   449 START_TESTCASE SEC-FILETOKENS-EC097-0030
   405 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_removeuser.txt c:\output.txt
   450 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_removeuser.txt c:\output.txt
   406 RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_removeuser
   451 RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_removeuser
   407 END_TESTCASE keytool_removeuser
   452 END_TESTCASE SEC-FILETOKENS-EC097-0030
   408 
   453 
   409 
   454 
   410 //! @SYMTestCaseID FILETOKENS-EC097-0031
   455 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0031
   411 //! @SYMTestCaseDesc certtool imported key managed by keytool 
   456 //! @SYMTestCaseDesc 	certtool imported key managed by keytool 
   412 //! @SYMTestPriority Medium
   457 //! 			(certtoolkey_keytoolmanage)
   413 //! @SYMTestActions  call certtool to import a key then call keytool to setuser,removeuser , remove the key
   458 //! @SYMTestPriority 	Medium
       
   459 //! @SYMTestActions  	call certtool to import a key then call keytool to setuser,removeuser , remove the key
   414 //! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key Details.
   460 //! @SYMTestExpectedResults Query keystore via CUnifiedKeystore for the key Details.
   415 //! @SYMDevelopedForRelease Sphinx
   461 //! @SYMDevelopedForRelease Sphinx
   416 
   462 
   417 START_TESTCASE certtoolkey_keytoolmanage
   463 START_TESTCASE SEC-FILETOKENS-EC097-0031
   418 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import4.txt c:\output.txt
   464 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import4.txt c:\output.txt
   419 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_keycert
   465 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_keycert
   420 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_keycert
   466 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_keycert
   421 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_import4.txt c:\output.txt
   467 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_import4.txt c:\output.txt
   422 RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtoolkey_keytoolmanage
   468 RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtoolkey_keytoolmanage
   423 RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtoolkey_keytoolmanage1
   469 RUN_TEST_STEP 100 ttesttools GetPolicyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtoolkey_keytoolmanage1
   424 END_TESTCASE certtoolkey_keytoolmanage
   470 END_TESTCASE SEC-FILETOKENS-EC097-0031
   425 
   471 
   426 
   472 
   427 //! @SYMTestCaseID FILETOKENS-EC097-0032
   473 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0032
   428 //! @SYMTestCaseDesc Certool help command  
   474 //! @SYMTestCaseDesc 	Certool help command
   429 //! @SYMTestPriority Medium
   475 //! 			(certtool_helpfail)
   430 //! @SYMTestActions  call Certool for the help command without any argument
   476 //! @SYMTestPriority 	Medium
       
   477 //! @SYMTestActions 	 call Certool for the help command without any argument
   431 //! @SYMTestExpectedResults Certtool  help command should display the help command as expected
   478 //! @SYMTestExpectedResults Certtool  help command should display the help command as expected
   432 //! @SYMDevelopedForRelease Sphinx
   479 //! @SYMDevelopedForRelease Sphinx
   433 
   480 
   434 START_TESTCASE certtool_helpfail
   481 START_TESTCASE SEC-FILETOKENS-EC097-0032
   435 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_helpfail1.txt c:\output.txt
   482 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_helpfail1.txt c:\output.txt
   436 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp
   483 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp
   437 END_TESTCASE certtool_helpfail
   484 END_TESTCASE SEC-FILETOKENS-EC097-0032
   438 
   485 
   439 
   486 
   440 //! @SYMTestCaseID FILETOKENS-EC097-0033
   487 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0033
   441 //! @SYMTestCaseDesc Certool Individual help command  
   488 //! @SYMTestCaseDesc 	Certool Individual help command  
   442 //! @SYMTestPriority Medium
   489 //! 			(certtool_individual_helpfail)
   443 //! @SYMTestActions  call Certool for the individual help command with wrong command
   490 //! @SYMTestPriority 	Medium
       
   491 //! @SYMTestActions  	call Certool for the individual help command with wrong command
   444 //! @SYMTestExpectedResults Certtool  help command should display the help command as expected
   492 //! @SYMTestExpectedResults Certtool  help command should display the help command as expected
   445 //! @SYMDevelopedForRelease Sphinx
   493 //! @SYMDevelopedForRelease Sphinx
   446 
   494 
   447 START_TESTCASE certtool_individual_helpfail
   495 START_TESTCASE SEC-FILETOKENS-EC097-0033
   448 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_helpfail2.txt c:\output.txt
   496 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_helpfail2.txt c:\output.txt
   449 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp
   497 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp
   450 END_TESTCASE certtool_individual_helpfail
   498 END_TESTCASE SEC-FILETOKENS-EC097-0033
   451 
   499 
   452 
   500 
   453 //! @SYMTestCaseID FILETOKENS-EC097-0035
   501 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0035
   454 //! @SYMTestCaseDesc Certool importing twice
   502 //! @SYMTestCaseDesc 	Certool importing twice
   455 //! @SYMTestPriority Medium
   503 //! 			(certtool_import_twicefail)
   456 //! @SYMTestActions  call Certool to import a certificate twice
   504 //! @SYMTestPriority 	Medium
       
   505 //! @SYMTestActions  	call Certool to import a certificate twice
   457 //! @SYMTestExpectedResults Certtool  should display the error message as already exists
   506 //! @SYMTestExpectedResults Certtool  should display the error message as already exists
   458 //! @SYMDevelopedForRelease Sphinx
   507 //! @SYMDevelopedForRelease Sphinx
   459 
   508 
   460 START_TESTCASE certtool_import_twicefail
   509 START_TESTCASE SEC-FILETOKENS-EC097-0035
   461 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail1.txt c:\output.txt
   510 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail1.txt c:\output.txt
   462 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail1.txt c:\output.txt
   511 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail1.txt c:\output.txt
   463 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_twicefail
   512 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_twicefail
   464 END_TESTCASE certtool_import_twicefail
   513 END_TESTCASE SEC-FILETOKENS-EC097-0035
   465 
   514 
   466 
   515 
   467 //! @SYMTestCaseID FILETOKENS-EC097-0036
   516 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0036
   468 //! @SYMTestCaseDesc Certool importing certficate to non existing store
   517 //! @SYMTestCaseDesc 	Certool importing certficate to non existing store
   469 //! @SYMTestPriority Medium
   518 //! 			(certtool_import_emptycertstorefail)
   470 //! @SYMTestActions  call Certool to import a certificate to non existing store
   519 //! @SYMTestPriority 	Medium
       
   520 //! @SYMTestActions 	call Certool to import a certificate to non existing store
   471 //! @SYMTestExpectedResults Certtool  should display the error message as not exist
   521 //! @SYMTestExpectedResults Certtool  should display the error message as not exist
   472 //! @SYMDevelopedForRelease Sphinx
   522 //! @SYMDevelopedForRelease Sphinx
   473 
   523 
   474 START_TESTCASE certtool_import_emptycertstorefail
   524 START_TESTCASE SEC-FILETOKENS-EC097-0036
   475 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail2.txt c:\output.txt
   525 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail2.txt c:\output.txt
   476 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_emptycertstorefail
   526 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_emptycertstorefail
   477 END_TESTCASE certtool_import_emptycertstorefail
   527 END_TESTCASE SEC-FILETOKENS-EC097-0036
   478 
   528 
   479 
   529 
   480 //! @SYMTestCaseID FILETOKENS-EC097-0037
   530 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0037
   481 //! @SYMTestCaseDesc Certool importing nonexisting certificate
   531 //! @SYMTestCaseDesc Certool importing nonexisting certificate
       
   532 //! 		     (certtool_import_nonexistfail)
   482 //! @SYMTestPriority Medium
   533 //! @SYMTestPriority Medium
   483 //! @SYMTestActions  call Certool to import a nonexisting certficate
   534 //! @SYMTestActions  call Certool to import a nonexisting certficate
   484 //! @SYMTestExpectedResults Certtool  should display the error message as cannot open the file
   535 //! @SYMTestExpectedResults Certtool  should display the error message as cannot open the file
   485 //! @SYMDevelopedForRelease Sphinx
   536 //! @SYMDevelopedForRelease Sphinx
   486 
   537 
   487 START_TESTCASE certtool_import_nonexistfail
   538 START_TESTCASE SEC-FILETOKENS-EC097-0037
   488 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail3.txt c:\output.txt
   539 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail3.txt c:\output.txt
   489 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_nonexistfail
   540 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_nonexistfail
   490 END_TESTCASE certtool_import_nonexistfail
   541 END_TESTCASE SEC-FILETOKENS-EC097-0037
   491 
   542 
   492 
   543 
   493 //! @SYMTestCaseID FILETOKENS-EC097-0038
   544 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0038
   494 //! @SYMTestCaseDesc Certool importing corrupted certificate
   545 //! @SYMTestCaseDesc 	Certool importing corrupted certificate
   495 //! @SYMTestPriority Medium
   546 //! 			(certtool_import_corruptcertfail)
   496 //! @SYMTestActions  call Certool to import a corrupted certificate 
   547 //! @SYMTestPriority 	Medium
       
   548 //! @SYMTestActions  	call Certool to import a corrupted certificate 
   497 //! @SYMTestExpectedResults Certtool  should display the error message as corrupted
   549 //! @SYMTestExpectedResults Certtool  should display the error message as corrupted
   498 //! @SYMDevelopedForRelease Sphinx
   550 //! @SYMDevelopedForRelease Sphinx
   499 
   551 
   500 START_TESTCASE certtool_import_corruptcertfail
   552 START_TESTCASE SEC-FILETOKENS-EC097-0038
   501 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail4.txt c:\output.txt
   553 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail4.txt c:\output.txt
   502 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_corruptcertfail
   554 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_corruptcertfail
   503 END_TESTCASE certtool_import_corruptcertfail
   555 END_TESTCASE SEC-FILETOKENS-EC097-0038
   504 
   556 
   505 //! @SYMTestCaseID FILETOKENS-EC097-0039
   557 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0039
   506 //! @SYMTestCaseDesc Certool importing a empty certficate
   558 //! @SYMTestCaseDesc 	Certool importing a empty certficate
   507 //! @SYMTestPriority Medium
   559 //! 			(certtool_import_emptycertfail)
   508 //! @SYMTestActions  call Certool to import a empty certficate
   560 //! @SYMTestPriority	Medium
       
   561 //! @SYMTestActions  	call Certool to import a empty certficate
   509 //! @SYMTestExpectedResults Certtool  should display the error message as cannot open the file
   562 //! @SYMTestExpectedResults Certtool  should display the error message as cannot open the file
   510 //! @SYMDevelopedForRelease Sphinx
   563 //! @SYMDevelopedForRelease Sphinx
   511 
   564 
   512 START_TESTCASE certtool_import_emptycertfail
   565 START_TESTCASE SEC-FILETOKENS-EC097-0039
   513 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail5.txt c:\output.txt
   566 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importfail5.txt c:\output.txt
   514 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_emptycertfail
   567 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import_emptycertfail
   515 END_TESTCASE certtool_import_emptycertfail
   568 END_TESTCASE SEC-FILETOKENS-EC097-0039
   516 
   569 
   517 
   570 
   518 
   571 
   519 //! @SYMTestCaseID FILETOKENS-EC097-0040
   572 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0040
   520 //! @SYMTestCaseDesc Certool setapps command
   573 //! @SYMTestCaseDesc 	Certool setapps command
   521 //! @SYMTestPriority Medium
   574 //! 			(certtool_setapps_invalidfail)
   522 //! @SYMTestActions  call Certool to setapps a certificate where the apps is not exist
   575 //! @SYMTestPriority 	Medium
       
   576 //! @SYMTestActions  	call Certool to setapps a certificate where the apps is not exist
   523 //! @SYMTestExpectedResults Certtool  should display the error message try one of existing apps
   577 //! @SYMTestExpectedResults Certtool  should display the error message try one of existing apps
   524 //! @SYMDevelopedForRelease Sphinx
   578 //! @SYMDevelopedForRelease Sphinx
   525 
   579 
   526 
   580 
   527 START_TESTCASE certtool_setapps_invalidfail
   581 START_TESTCASE SEC-FILETOKENS-EC097-0040
   528 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setappsfail1.txt c:\output.txt
   582 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setappsfail1.txt c:\output.txt
   529 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps_invalidfail
   583 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps_invalidfail
   530 END_TESTCASE certtool_setapps_invalidfail
   584 END_TESTCASE SEC-FILETOKENS-EC097-0040
   531 
   585 
   532 
   586 
   533 //! @SYMTestCaseID FILETOKENS-EC097-0041
   587 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0041
   534 //! @SYMTestCaseDesc Certool setapps command
   588 //! @SYMTestCaseDesc 	Certool setapps command
   535 //! @SYMTestPriority Medium
   589 //! 			(certtool_setapps_userfail)
   536 //! @SYMTestActions  call Certool to setapps a user certificate
   590 //! @SYMTestPriority 	Medium
       
   591 //! @SYMTestActions  	call Certool to setapps a user certificate
   537 //! @SYMTestExpectedResults Certtool  should display the error message error occured while adding applicability
   592 //! @SYMTestExpectedResults Certtool  should display the error message error occured while adding applicability
   538 //! @SYMDevelopedForRelease Sphinx
   593 //! @SYMDevelopedForRelease Sphinx
   539 
   594 
   540 START_TESTCASE certtool_setapps_userfail
   595 START_TESTCASE SEC-FILETOKENS-EC097-0041
   541 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setappsfail2.txt c:\output.txt
   596 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setappsfail2.txt c:\output.txt
   542 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps_userfail
   597 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps_userfail
   543 END_TESTCASE certtool_setapps_userfail
   598 END_TESTCASE SEC-FILETOKENS-EC097-0041
   544 
   599 
   545 
   600 
   546 //! @SYMTestCaseID FILETOKENS-EC097-0042
   601 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0042
   547 //! @SYMTestCaseDesc Certool addapps command
   602 //! @SYMTestCaseDesc Certool addapps command
       
   603 //! 		     (certtool_addapps_invalidfail)
   548 //! @SYMTestPriority Medium
   604 //! @SYMTestPriority Medium
   549 //! @SYMTestActions  call Certool to addapps a certificate where the apps is not exist
   605 //! @SYMTestActions  call Certool to addapps a certificate where the apps is not exist
   550 //! @SYMTestExpectedResults Certtool  should display the error message try one of existing apps
   606 //! @SYMTestExpectedResults Certtool  should display the error message try one of existing apps
   551 //! @SYMDevelopedForRelease Sphinx
   607 //! @SYMDevelopedForRelease Sphinx
   552 
   608 
   553 
   609 
   554 START_TESTCASE certtool_addapps_invalidfail
   610 START_TESTCASE SEC-FILETOKENS-EC097-0042
   555 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_addappsfail1.txt c:\output.txt
   611 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_addappsfail1.txt c:\output.txt
   556 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_addapps_invalidfail
   612 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_addapps_invalidfail
   557 END_TESTCASE certtool_addapps_invalidfail
   613 END_TESTCASE SEC-FILETOKENS-EC097-0042
   558 
   614 
   559 
   615 
   560 //! @SYMTestCaseID FILETOKENS-EC097-0043
   616 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0043
   561 //! @SYMTestCaseDesc Certool addapps command
   617 //! @SYMTestCaseDesc Certool addapps command
       
   618 //! 		     (certtool_addapps_userfail)
   562 //! @SYMTestPriority Medium
   619 //! @SYMTestPriority Medium
   563 //! @SYMTestActions  call Certool to addapps a certificate where the apps is not exist
   620 //! @SYMTestActions  call Certool to addapps a certificate where the apps is not exist
   564 //! @SYMTestExpectedResults Certtool should display the error message error occured while adding applicability
   621 //! @SYMTestExpectedResults Certtool should display the error message error occured while adding applicability
   565 //! @SYMDevelopedForRelease Sphinx
   622 //! @SYMDevelopedForRelease Sphinx
   566 
   623 
   567 START_TESTCASE certtool_addapps_userfail
   624 START_TESTCASE SEC-FILETOKENS-EC097-0043
   568 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setappsfail2.txt c:\output.txt
   625 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setappsfail2.txt c:\output.txt
   569 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_addapps_userfail
   626 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_addapps_userfail
   570 END_TESTCASE certtool_addapps_userfail
   627 END_TESTCASE SEC-FILETOKENS-EC097-0043
   571 
   628 
   572 //! @SYMTestCaseID FILETOKENS-EC097-0044
   629 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0044
   573 //! @SYMTestCaseDesc Certool removeapps command
   630 //! @SYMTestCaseDesc 	Certool removeapps command
   574 //! @SYMTestPriority Medium
   631 //! 			(certtool_removeapps_invalidfail)
   575 //! @SYMTestActions  call Certool to removeapps a certificate where the apps is not exist
   632 //! @SYMTestPriority 	Medium
       
   633 //! @SYMTestActions  	call Certool to removeapps a certificate where the apps is not exist
   576 //! @SYMTestExpectedResults Certtool  should display the error message try one of existing apps
   634 //! @SYMTestExpectedResults Certtool  should display the error message try one of existing apps
   577 //! @SYMDevelopedForRelease Sphinx
   635 //! @SYMDevelopedForRelease Sphinx
   578 
   636 
   579 
   637 
   580 START_TESTCASE certtool_removeapps_invalidfail
   638 START_TESTCASE SEC-FILETOKENS-EC097-0044
   581 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removeappsfail1.txt c:\output.txt
   639 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removeappsfail1.txt c:\output.txt
   582 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removeapps_invalidfail
   640 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removeapps_invalidfail
   583 END_TESTCASE certtool_removeapps_invalidfail
   641 END_TESTCASE SEC-FILETOKENS-EC097-0044
   584 
   642 
   585 
   643 
   586 //! @SYMTestCaseID FILETOKENS-EC097-0045
   644 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0045
   587 //! @SYMTestCaseDesc Certool removeapps command
   645 //! @SYMTestCaseDesc Certool removeapps command
       
   646 //! 		     (certtool_removeapps_untrustfail)
   588 //! @SYMTestPriority Medium
   647 //! @SYMTestPriority Medium
   589 //! @SYMTestActions  call Certool to removeapps a certificate where the applicability is not exist
   648 //! @SYMTestActions  call Certool to removeapps a certificate where the applicability is not exist
   590 //! @SYMTestExpectedResults Certtool  should display the error message not trusted for the apps
   649 //! @SYMTestExpectedResults Certtool  should display the error message not trusted for the apps
   591 //! @SYMDevelopedForRelease Sphinx
   650 //! @SYMDevelopedForRelease Sphinx
   592 
   651 
   593 START_TESTCASE certtool_removeapps_untrustfail
   652 START_TESTCASE SEC-FILETOKENS-EC097-0045
   594 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removeappsfail2.txt c:\output.txt
   653 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removeappsfail2.txt c:\output.txt
   595 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removeapps_untrustfail
   654 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removeapps_untrustfail
   596 END_TESTCASE certtool_removeapps_untrustfail
   655 END_TESTCASE SEC-FILETOKENS-EC097-0045
   597 
   656 
   598 
   657 
   599 //! @SYMTestCaseID FILETOKENS-EC097-0046
   658 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0046
   600 //! @SYMTestCaseDesc Certool list command
   659 //! @SYMTestCaseDesc Certool list command
       
   660 //! 		     (certtool_list_fail)
   601 //! @SYMTestPriority Medium
   661 //! @SYMTestPriority Medium
   602 //! @SYMTestActions  call Certool to list a certificate where the certificate  store is not exist
   662 //! @SYMTestActions  call Certool to list a certificate where the certificate  store is not exist
   603 //! @SYMTestExpectedResults Certtool  should display the error message store not exist
   663 //! @SYMTestExpectedResults Certtool  should display the error message store not exist
   604 //! @SYMDevelopedForRelease Sphinx
   664 //! @SYMDevelopedForRelease Sphinx
   605 
   665 
   606 START_TESTCASE certtool_list_fail
   666 START_TESTCASE SEC-FILETOKENS-EC097-0046
   607 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_listfail1.txt c:\output.txt
   667 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_listfail1.txt c:\output.txt
   608 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_fail
   668 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_fail
   609 END_TESTCASE certtool_list_fail
   669 END_TESTCASE SEC-FILETOKENS-EC097-0046
   610 
   670 
   611 
   671 
   612 //! @SYMTestCaseID FILETOKENS-EC097-0047
   672 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0047
   613 //! @SYMTestCaseDesc Certool list command
   673 //! @SYMTestCaseDesc Certool list command
       
   674 //! 		     (certtool_list_fail1)
   614 //! @SYMTestPriority Medium
   675 //! @SYMTestPriority Medium
   615 //! @SYMTestActions  call Certool to list a certificate where the certificate  is not exist
   676 //! @SYMTestActions  call Certool to list a certificate where the certificate  is not exist
   616 //! @SYMTestExpectedResults Certtool  should display the error message certificate is not exist
   677 //! @SYMTestExpectedResults Certtool  should display the error message certificate is not exist
   617 //! @SYMDevelopedForRelease Sphinx
   678 //! @SYMDevelopedForRelease Sphinx
   618 
   679 
   619 
   680 
   620 START_TESTCASE certtool_list_fail1
   681 START_TESTCASE SEC-FILETOKENS-EC097-0047
   621 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_listfail2.txt c:\output.txt
   682 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_listfail2.txt c:\output.txt
   622 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_fail1
   683 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_fail1
   623 END_TESTCASE certtool_list_fail1
   684 END_TESTCASE SEC-FILETOKENS-EC097-0047
   624 
   685 
   625 
   686 
   626 //! @SYMTestCaseID FILETOKENS-EC097-0047
   687 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0034
   627 //! @SYMTestCaseDesc Certool list command
   688 //! @SYMTestCaseDesc 	Certool list command
   628 //! @SYMTestPriority Medium
   689 //! 			(certtool_list_fail2)
   629 //! @SYMTestActions  call Certool to list a certificate ownere where the owner is not exist
   690 //! @SYMTestPriority 	Medium
       
   691 //! @SYMTestActions  	call Certool to list a certificate ownere where the owner is not exist
   630 //! @SYMTestExpectedResults Certtool  should display the error message as no certificate exist
   692 //! @SYMTestExpectedResults Certtool  should display the error message as no certificate exist
   631 //! @SYMDevelopedForRelease Sphinx
   693 //! @SYMDevelopedForRelease Sphinx
   632 
   694 
   633 START_TESTCASE certtool_list_fail2
   695 START_TESTCASE SEC-FILETOKENS-EC097-0034
   634 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_listfail3.txt c:\output.txt
   696 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_listfail3.txt c:\output.txt
   635 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_fail2
   697 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_list_fail2
   636 END_TESTCASE certtool_list_fail2
   698 END_TESTCASE SEC-FILETOKENS-EC097-0034
   637 
   699 
   638 
   700 
   639 //! @SYMTestCaseID FILETOKENS-EC097-0048
   701 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0048
   640 //! @SYMTestCaseDesc Certool remove command
   702 //! @SYMTestCaseDesc 	Certool remove command
   641 //! @SYMTestPriority Medium
   703 //! 			(certtool_remove_fail)
   642 //! @SYMTestActions  call Certool to remove a certificate where the certificate  is not exist
   704 //! @SYMTestPriority 	Medium
       
   705 //! @SYMTestActions  	call Certool to remove a certificate where the certificate  is not exist
   643 //! @SYMTestExpectedResults Certtool  should display the error message certificate not exist
   706 //! @SYMTestExpectedResults Certtool  should display the error message certificate not exist
   644 //! @SYMDevelopedForRelease Sphinx
   707 //! @SYMDevelopedForRelease Sphinx
   645 
   708 
   646 START_TESTCASE certtool_remove_fail
   709 START_TESTCASE SEC-FILETOKENS-EC097-0048
   647 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removefail.txt c:\output.txt
   710 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removefail.txt c:\output.txt
   648 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_remove_fail
   711 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_remove_fail
   649 END_TESTCASE certtool_remove_fail
   712 END_TESTCASE SEC-FILETOKENS-EC097-0048
   650 
   713 
   651 
   714 
   652 //! @SYMTestCaseID FILETOKENS-EC097-0049
   715 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0049
   653 //! @SYMTestCaseDesc Certool command
   716 //! @SYMTestCaseDesc 	Certool command
   654 //! @SYMTestPriority Medium
   717 //! 			(certtool_fail)
   655 //! @SYMTestActions  call Certool command in unspecified order
   718 //! @SYMTestPriority 	Medium
       
   719 //! @SYMTestActions  	call Certool command in unspecified order
   656 //! @SYMTestExpectedResults Certtool should display the help message
   720 //! @SYMTestExpectedResults Certtool should display the help message
   657 //! @SYMDevelopedForRelease Sphinx
   721 //! @SYMDevelopedForRelease Sphinx
   658 
   722 
   659 START_TESTCASE certtool_fail
   723 START_TESTCASE SEC-FILETOKENS-EC097-0049
   660 RUN_PROGRAM certtool.exe c:\ttesttools\data\certfail.txt c:\output.txt
   724 RUN_PROGRAM certtool.exe c:\ttesttools\data\certfail.txt c:\output.txt
   661 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp
   725 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certhelp
   662 END_TESTCASE certtool_fail
   726 END_TESTCASE SEC-FILETOKENS-EC097-0049
   663 
   727 
   664 
   728 
   665 //! @SYMTestCaseID FILETOKENS-EC097-0050
   729 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0050
   666 //! @SYMTestCaseDesc Keytool help command
   730 //! @SYMTestCaseDesc Keytool help command
       
   731 //! 		     (keytool_help_fail)
   667 //! @SYMTestPriority Medium
   732 //! @SYMTestPriority Medium
   668 //! @SYMTestActions  call Keytool help command without any argument
   733 //! @SYMTestActions  call Keytool help command without any argument
   669 //! @SYMTestExpectedResults Keytool should display the help message
   734 //! @SYMTestExpectedResults Keytool should display the help message
   670 //! @SYMDevelopedForRelease Sphinx
   735 //! @SYMDevelopedForRelease Sphinx
   671 
   736 
   672 START_TESTCASE keytool_help_fail
   737 START_TESTCASE SEC-FILETOKENS-EC097-0050
   673 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_helpfail1.txt c:\output.txt
   738 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_helpfail1.txt c:\output.txt
   674 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help
   739 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help
   675 END_TESTCASE keytool_help_fail
   740 END_TESTCASE SEC-FILETOKENS-EC097-0050
   676 
   741 
   677 //! @SYMTestCaseID FILETOKENS-EC097-0051
   742 //! @SYMTestCaseID SEC-FILETOKENS-EC097-0051
   678 //! @SYMTestCaseDesc Keytool Individual help command
   743 //! @SYMTestCaseDesc Keytool Individual help command
       
   744 //! 		     (keytool_help_fail1)
   679 //! @SYMTestPriority Medium
   745 //! @SYMTestPriority Medium
   680 //! @SYMTestActions  call Keytool Individual help command where the command is not exist
   746 //! @SYMTestActions  call Keytool Individual help command where the command is not exist
   681 //! @SYMTestExpectedResults Keytool should display the help message
   747 //! @SYMTestExpectedResults Keytool should display the help message
   682 //! @SYMDevelopedForRelease Sphinx
   748 //! @SYMDevelopedForRelease Sphinx
   683 
   749 
   684 START_TESTCASE keytool_help_fail1
   750 START_TESTCASE SEC-FILETOKENS-EC097-0051
   685 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_helpfail2.txt c:\output.txt
   751 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_helpfail2.txt c:\output.txt
   686 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help
   752 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help
   687 END_TESTCASE keytool_help_fail1
   753 END_TESTCASE SEC-FILETOKENS-EC097-0051
   688 
   754 
   689 
   755 
   690 //! @SYMTestCaseID FILETOKENS-EC097-0053
   756 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0053
   691 //! @SYMTestCaseDesc Keytool import command
   757 //! @SYMTestCaseDesc 	Keytool import command
   692 //! @SYMTestPriority Medium
   758 //! 			(keytool_import_fail)
   693 //! @SYMTestActions  call Keytool import key twice
   759 //! @SYMTestPriority 	Medium
       
   760 //! @SYMTestActions  	call Keytool import key twice
   694 //! @SYMTestExpectedResults Keytool should display the error message as already exists
   761 //! @SYMTestExpectedResults Keytool should display the error message as already exists
   695 //! @SYMDevelopedForRelease Sphinx
   762 //! @SYMDevelopedForRelease Sphinx
   696 
   763 
   697 START_TESTCASE keytool_import_fail
   764 START_TESTCASE SEC-FILETOKENS-EC097-0053
   698 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail1.txt c:\output.txt
   765 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail1.txt c:\output.txt
   699 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail1.txt c:\output.txt
   766 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail1.txt c:\output.txt
   700 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail
   767 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail
   701 END_TESTCASE keytool_import_fail
   768 END_TESTCASE SEC-FILETOKENS-EC097-0053
   702 
   769 
   703 
   770 
   704 //! @SYMTestCaseID FILETOKENS-EC097-0054
   771 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0054
   705 //! @SYMTestCaseDesc Keytool import command
   772 //! @SYMTestCaseDesc 	Keytool import command
   706 //! @SYMTestPriority Medium
   773 //! 			(keytool_import_fail1)
   707 //! @SYMTestActions  call Keytool import key where keystore doesn't exist
   774 //! @SYMTestPriority 	Medium
       
   775 //! @SYMTestActions  	call Keytool import key where keystore doesn't exist
   708 //! @SYMTestExpectedResults Keytool should display the error message as store not exist
   776 //! @SYMTestExpectedResults Keytool should display the error message as store not exist
   709 //! @SYMDevelopedForRelease Sphinx
   777 //! @SYMDevelopedForRelease Sphinx
   710 
   778 
   711 START_TESTCASE keytool_import_fail1
   779 START_TESTCASE SEC-FILETOKENS-EC097-0054
   712 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail2.txt c:\output.txt
   780 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail2.txt c:\output.txt
   713 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail1
   781 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail1
   714 END_TESTCASE keytool_import_fail1
   782 END_TESTCASE SEC-FILETOKENS-EC097-0054
   715 
   783 
   716 
   784 
   717 //! @SYMTestCaseID FILETOKENS-EC097-0055
   785 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0055
   718 //! @SYMTestCaseDesc Keytool import command
   786 //! @SYMTestCaseDesc 	Keytool import command
   719 //! @SYMTestPriority Medium
   787 //! 			(keytool_import_fail2)
   720 //! @SYMTestActions  call Keytool import key where key doesn't exist
   788 //! @SYMTestPriority 	Medium
       
   789 //! @SYMTestActions  	call Keytool import key where key doesn't exist
   721 //! @SYMTestExpectedResults Keytool should display the error message as key not exist
   790 //! @SYMTestExpectedResults Keytool should display the error message as key not exist
   722 //! @SYMDevelopedForRelease Sphinx
   791 //! @SYMDevelopedForRelease Sphinx
   723 
   792 
   724 START_TESTCASE keytool_import_fail2
   793 START_TESTCASE SEC-FILETOKENS-EC097-0055
   725 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail3.txt c:\output.txt
   794 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail3.txt c:\output.txt
   726 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail2
   795 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail2
   727 END_TESTCASE keytool_import_fail2
   796 END_TESTCASE SEC-FILETOKENS-EC097-0055
   728 
   797 
   729 
   798 
   730 //! @SYMTestCaseID FILETOKENS-EC097-0056
   799 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0056
   731 //! @SYMTestCaseDesc Keytool import command
   800 //! @SYMTestCaseDesc 	Keytool import command
   732 //! @SYMTestPriority Medium
   801 //! 			(keytool_import_fail3)
   733 //! @SYMTestActions  call Keytool import a corrupted key 
   802 //! @SYMTestPriority 	Medium
       
   803 //! @SYMTestActions  	call Keytool import a corrupted key 
   734 //! @SYMTestExpectedResults Keytool should display the error message as corrupted key
   804 //! @SYMTestExpectedResults Keytool should display the error message as corrupted key
   735 //! @SYMDevelopedForRelease Sphinx
   805 //! @SYMDevelopedForRelease Sphinx
   736 
   806 
   737 START_TESTCASE keytool_import_fail3
   807 START_TESTCASE SEC-FILETOKENS-EC097-0056
   738 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail4.txt c:\output.txt
   808 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail4.txt c:\output.txt
   739 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail3
   809 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail3
   740 END_TESTCASE keytool_import_fail3
   810 END_TESTCASE SEC-FILETOKENS-EC097-0056
   741 
   811 
   742 
   812 
   743 //! @SYMTestCaseID FILETOKENS-EC097-0057
   813 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0057
   744 //! @SYMTestCaseDesc Keytool import command
   814 //! @SYMTestCaseDesc 	Keytool import command
   745 //! @SYMTestPriority Medium
   815 //! 			(keytool_import_fail4)
   746 //! @SYMTestActions  call Keytool import empty key 
   816 //! @SYMTestPriority 	Medium
       
   817 //! @SYMTestActions  	call Keytool import empty key 
   747 //! @SYMTestExpectedResults Keytool should display the error message as key is empty
   818 //! @SYMTestExpectedResults Keytool should display the error message as key is empty
   748 //! @SYMDevelopedForRelease Sphinx
   819 //! @SYMDevelopedForRelease Sphinx
   749 
   820 
   750 START_TESTCASE keytool_import_fail4
   821 START_TESTCASE SEC-FILETOKENS-EC097-0057
   751 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail5.txt c:\output.txt
   822 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_importfail5.txt c:\output.txt
   752 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail4
   823 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_import_fail4
   753 END_TESTCASE keytool_import_fail4
   824 END_TESTCASE SEC-FILETOKENS-EC097-0057
   754 
   825 
   755 //! @SYMTestCaseID FILETOKENS-EC097-0058
   826 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0058
   756 //! @SYMTestCaseDesc Keytool setuser command
   827 //! @SYMTestCaseDesc 	Keytool setuser command
   757 //! @SYMTestPriority Medium
   828 //! 			(keytool_setuser_fail)
   758 //! @SYMTestActions  call Keytool setuser for key where key is not exist 
   829 //! @SYMTestPriority 	Medium
       
   830 //! @SYMTestActions  	call Keytool setuser for key where key is not exist 
   759 //! @SYMTestExpectedResults Keytool should display the error message as key is not exist
   831 //! @SYMTestExpectedResults Keytool should display the error message as key is not exist
   760 //! @SYMDevelopedForRelease Sphinx
   832 //! @SYMDevelopedForRelease Sphinx
   761 
   833 
   762 START_TESTCASE keytool_setuser_fail
   834 START_TESTCASE SEC-FILETOKENS-EC097-0058
   763 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setuserfail1.txt c:\output.txt
   835 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setuserfail1.txt c:\output.txt
   764 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setuser_fail
   836 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setuser_fail
   765 END_TESTCASE keytool_setuser_fail
   837 END_TESTCASE SEC-FILETOKENS-EC097-0058
   766 
   838 
   767 //! @SYMTestCaseID FILETOKENS-EC097-0059
   839 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0059
   768 //! @SYMTestCaseDesc Keytool setuser command
   840 //! @SYMTestCaseDesc Keytool setuser command
       
   841 //! 		     (keytool_setuser_fail1)
   769 //! @SYMTestPriority Medium
   842 //! @SYMTestPriority Medium
   770 //! @SYMTestActions  call Keytool setuser for key where key is created by third party
   843 //! @SYMTestActions  call Keytool setuser for key where key is created by third party
   771 //! @SYMTestExpectedResults Keytool should display the error message as setusers failed with -46
   844 //! @SYMTestExpectedResults Keytool should display the error message as setusers failed with -46
   772 //! @SYMDevelopedForRelease Sphinx
   845 //! @SYMDevelopedForRelease Sphinx
   773 
   846 
   774 START_TESTCASE keytool_setuser_fail1
   847 START_TESTCASE SEC-FILETOKENS-EC097-0059
   775 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setuserfail2.txt c:\output.txt
   848 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setuserfail2.txt c:\output.txt
   776 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setuser_fail1
   849 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setuser_fail1
   777 END_TESTCASE keytool_setuser_fail1
   850 END_TESTCASE SEC-FILETOKENS-EC097-0059
   778 
   851 
   779 //! @SYMTestCaseID FILETOKENS-EC097-0060
   852 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0060
   780 //! @SYMTestCaseDesc Keytool setalluser command
   853 //! @SYMTestCaseDesc 	Keytool setalluser command
   781 //! @SYMTestPriority Medium
   854 //! 			(keytool_setallusers_fail)
   782 //! @SYMTestActions  call Keytool setalluser for key where key is not exist 
   855 //! @SYMTestPriority 	Medium
       
   856 //! @SYMTestActions  	call Keytool setalluser for key where key is not exist 
   783 //! @SYMTestExpectedResults Keytool should display the error message as key is not exist
   857 //! @SYMTestExpectedResults Keytool should display the error message as key is not exist
   784 //! @SYMDevelopedForRelease Sphinx
   858 //! @SYMDevelopedForRelease Sphinx
   785 
   859 
   786 START_TESTCASE keytool_setallusers_fail
   860 START_TESTCASE SEC-FILETOKENS-EC097-0060
   787 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setalluserfail1.txt c:\output.txt
   861 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setalluserfail1.txt c:\output.txt
   788 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setallusers_fail
   862 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setallusers_fail
   789 END_TESTCASE keytool_setallusers_fail
   863 END_TESTCASE SEC-FILETOKENS-EC097-0060
   790 
   864 
   791 //! @SYMTestCaseID FILETOKENS-EC097-0061
   865 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0061
   792 //! @SYMTestCaseDesc Keytool setuser command
   866 //! @SYMTestCaseDesc 	Keytool setuser command
   793 //! @SYMTestPriority Medium
   867 //! 			(keytool_setallusers_fail1)
   794 //! @SYMTestActions  call Keytool setuser for key where key is created by third party
   868 //! @SYMTestPriority 	Medium
       
   869 //! @SYMTestActions  	call Keytool setuser for key where key is created by third party
   795 //! @SYMTestExpectedResults Keytool should display the error message as setusers failed with -46
   870 //! @SYMTestExpectedResults Keytool should display the error message as setusers failed with -46
   796 //! @SYMDevelopedForRelease Sphinx
   871 //! @SYMDevelopedForRelease Sphinx
   797 
   872 
   798 START_TESTCASE keytool_setallusers_fail1
   873 START_TESTCASE SEC-FILETOKENS-EC097-0061
   799 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setalluserfail2.txt c:\output.txt
   874 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setalluserfail2.txt c:\output.txt
   800 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setallusers_fail1
   875 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setallusers_fail1
   801 END_TESTCASE keytool_setallusers_fail1
   876 END_TESTCASE SEC-FILETOKENS-EC097-0061
   802 
   877 
   803 
   878 
   804 //! @SYMTestCaseID FILETOKENS-EC097-0062
   879 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0062
   805 //! @SYMTestCaseDesc Keytool setmanager command
   880 //! @SYMTestCaseDesc 	Keytool setmanager command
   806 //! @SYMTestPriority Medium
   881 //! 			(keytool_setmanager_fail)
   807 //! @SYMTestActions  call Keytool setmanager for key where key is not exist 
   882 //! @SYMTestPriority 	Medium
       
   883 //! @SYMTestActions  	call Keytool setmanager for key where key is not exist 
   808 //! @SYMTestExpectedResults Keytool should display the error message as key is not exist
   884 //! @SYMTestExpectedResults Keytool should display the error message as key is not exist
   809 //! @SYMDevelopedForRelease Sphinx
   885 //! @SYMDevelopedForRelease Sphinx
   810 
   886 
   811 START_TESTCASE keytool_setmanager_fail
   887 START_TESTCASE SEC-FILETOKENS-EC097-0062
   812 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setmanagerfail1.txt c:\output.txt
   888 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setmanagerfail1.txt c:\output.txt
   813 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setmanager_fail
   889 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setmanager_fail
   814 END_TESTCASE keytool_setmanager_fail
   890 END_TESTCASE SEC-FILETOKENS-EC097-0062
   815 
   891 
   816 
   892 
   817 //! @SYMTestCaseID FILETOKENS-EC097-0063
   893 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0063
   818 //! @SYMTestCaseDesc Keytool setmanager command
   894 //! @SYMTestCaseDesc 	Keytool setmanager command
   819 //! @SYMTestPriority Medium
   895 //! 			(keytool_setmanager_fail1)
   820 //! @SYMTestActions  call Keytool setmanager for key where key is created by third party
   896 //! @SYMTestPriority 	Medium
       
   897 //! @SYMTestActions  	call Keytool setmanager for key where key is created by third party
   821 //! @SYMTestExpectedResults Keytool should display the error message as key as setmanager failed with -46
   898 //! @SYMTestExpectedResults Keytool should display the error message as key as setmanager failed with -46
   822 //! @SYMDevelopedForRelease Sphinx
   899 //! @SYMDevelopedForRelease Sphinx
   823 
   900 
   824 START_TESTCASE keytool_setmanager_fail1
   901 START_TESTCASE SEC-FILETOKENS-EC097-0063
   825 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setmanagerfail2.txt c:\output.txt
   902 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_setmanagerfail2.txt c:\output.txt
   826 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setmanager_fail1
   903 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_setmanager_fail1
   827 END_TESTCASE keytool_setmanager_fail1
   904 END_TESTCASE SEC-FILETOKENS-EC097-0063
   828 
   905 
   829 //! @SYMTestCaseID FILETOKENS-EC097-0064
   906 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0064
   830 //! @SYMTestCaseDesc Keytool remove user command
   907 //! @SYMTestCaseDesc 	Keytool remove user command
   831 //! @SYMTestPriority Medium
   908 //! 			(keytool_removeuser_fail)
   832 //! @SYMTestActions  call Keytool remove user for key where key is not exist 
   909 //! @SYMTestPriority 	Medium
       
   910 //! @SYMTestActions  	call Keytool remove user for key where key is not exist 
   833 //! @SYMTestExpectedResults Keytool should display the error message as key is not exist
   911 //! @SYMTestExpectedResults Keytool should display the error message as key is not exist
   834 //! @SYMDevelopedForRelease Sphinx
   912 //! @SYMDevelopedForRelease Sphinx
   835 
   913 
   836 START_TESTCASE keytool_removeuser_fail
   914 START_TESTCASE SEC-FILETOKENS-EC097-0064
   837 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_removeuserfail1.txt c:\output.txt
   915 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_removeuserfail1.txt c:\output.txt
   838 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_removeuser_fail
   916 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_removeuser_fail
   839 END_TESTCASE keytool_removeuser_fail
   917 END_TESTCASE SEC-FILETOKENS-EC097-0064
   840 
   918 
   841 //! @SYMTestCaseID FILETOKENS-EC097-0065
   919 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0065
   842 //! @SYMTestCaseDesc Keytool remove user command
   920 //! @SYMTestCaseDesc 	Keytool remove user command
   843 //! @SYMTestPriority Medium
   921 //! 			(keytool_removeuser_fail1)
   844 //! @SYMTestActions  call Keytool removeuser for key where key is created by third party
   922 //! @SYMTestPriority 	Medium
       
   923 //! @SYMTestActions  	call Keytool removeuser for key where key is created by third party
   845 //! @SYMTestExpectedResults Keytool should display the error message as key is removeusers failed with -46
   924 //! @SYMTestExpectedResults Keytool should display the error message as key is removeusers failed with -46
   846 //! @SYMDevelopedForRelease Sphinx
   925 //! @SYMDevelopedForRelease Sphinx
   847 
   926 
   848 START_TESTCASE keytool_removeuser_fail1
   927 START_TESTCASE SEC-FILETOKENS-EC097-0065
   849 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_removeuserfail2.txt c:\output.txt
   928 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_removeuserfail2.txt c:\output.txt
   850 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_removeuser_fail1
   929 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_removeuser_fail1
   851 END_TESTCASE keytool_removeuser_fail1
   930 END_TESTCASE SEC-FILETOKENS-EC097-0065
   852 
   931 
   853 //! @SYMTestCaseID FILETOKENS-EC097-0066
   932 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0066
   854 //! @SYMTestCaseDesc Keytool list command
   933 //! @SYMTestCaseDesc Keytool list command
       
   934 //! 		     (keytool_list_fail)
   855 //! @SYMTestPriority Medium
   935 //! @SYMTestPriority Medium
   856 //! @SYMTestActions  call Keytool list for the key where keystore is not exist
   936 //! @SYMTestActions  call Keytool list for the key where keystore is not exist
   857 //! @SYMTestExpectedResults Keytool should display the error message as key is store not exist
   937 //! @SYMTestExpectedResults Keytool should display the error message as key is store not exist
   858 //! @SYMDevelopedForRelease Sphinx
   938 //! @SYMDevelopedForRelease Sphinx
   859 
   939 
   860 START_TESTCASE keytool_list_fail
   940 START_TESTCASE SEC-FILETOKENS-EC097-0066
   861 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_listfail1.txt c:\output.txt
   941 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_listfail1.txt c:\output.txt
   862 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list_fail
   942 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list_fail
   863 END_TESTCASE keytool_list_fail
   943 END_TESTCASE SEC-FILETOKENS-EC097-0066
   864 
   944 
   865 //! @SYMTestCaseID FILETOKENS-EC097-0067
   945 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0067
   866 //! @SYMTestCaseDesc Keytool list command
   946 //! @SYMTestCaseDesc Keytool list command
       
   947 //! 		     (keytool_list_fail1)
   867 //! @SYMTestPriority Medium
   948 //! @SYMTestPriority Medium
   868 //! @SYMTestActions  call Keytool list for key where key is not exist
   949 //! @SYMTestActions  call Keytool list for key where key is not exist
   869 //! @SYMTestExpectedResults Keytool should display the error message as key is not exist
   950 //! @SYMTestExpectedResults Keytool should display the error message as key is not exist
   870 //! @SYMDevelopedForRelease Sphinx
   951 //! @SYMDevelopedForRelease Sphinx
   871 
   952 
   872 START_TESTCASE keytool_list_fail1
   953 START_TESTCASE SEC-FILETOKENS-EC097-0067
   873 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_listfail2.txt c:\output.txt
   954 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_listfail2.txt c:\output.txt
   874 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list_fail1
   955 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_list_fail1
   875 END_TESTCASE keytool_list_fail1
   956 END_TESTCASE SEC-FILETOKENS-EC097-0067
   876 
   957 
   877 //! @SYMTestCaseID FILETOKENS-EC097-0068
   958 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0068
   878 //! @SYMTestCaseDesc Keytool remove command
   959 //! @SYMTestCaseDesc 	Keytool remove command
   879 //! @SYMTestPriority Medium
   960 //! 			(keytool_remove_fail)
   880 //! @SYMTestActions  call Keytool remove for key where key is not exist
   961 //! @SYMTestPriority 	Medium
       
   962 //! @SYMTestActions  	call Keytool remove for key where key is not exist
   881 //! @SYMTestExpectedResults Keytool should display the error message as key is not exist
   963 //! @SYMTestExpectedResults Keytool should display the error message as key is not exist
   882 //! @SYMDevelopedForRelease Sphinx
   964 //! @SYMDevelopedForRelease Sphinx
   883 
   965 
   884 START_TESTCASE keytool_remove_fail
   966 START_TESTCASE SEC-FILETOKENS-EC097-0068
   885 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_removefail.txt c:\output.txt
   967 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_removefail.txt c:\output.txt
   886 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_remove_fail
   968 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_remove_fail
   887 END_TESTCASE keytool_remove_fail
   969 END_TESTCASE SEC-FILETOKENS-EC097-0068
   888 
   970 
   889 //! @SYMTestCaseID FILETOKENS-EC097-0069
   971 //! @SYMTestCaseID 	SEC-FILETOKENS-EC097-0069
   890 //! @SYMTestCaseDesc Keytool command
   972 //! @SYMTestCaseDesc 	Keytool command
   891 //! @SYMTestPriority Medium
   973 //! 			(keytool_fail)
   892 //! @SYMTestActions  call Keytool command in unspeicifed order
   974 //! @SYMTestPriority 	Medium
       
   975 //! @SYMTestActions  	call Keytool command in unspeicifed order
   893 //! @SYMTestExpectedResults Keytool should display the help message
   976 //! @SYMTestExpectedResults Keytool should display the help message
   894 //! @SYMDevelopedForRelease Sphinx
   977 //! @SYMDevelopedForRelease Sphinx
   895 
   978 
   896 START_TESTCASE keytool_fail
   979 START_TESTCASE SEC-FILETOKENS-EC097-0069
   897 RUN_PROGRAM keytool.exe c:\ttesttools\data\keyfail.txt c:\output.txt
   980 RUN_PROGRAM keytool.exe c:\ttesttools\data\keyfail.txt c:\output.txt
   898 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help
   981 RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini keytool_help
   899 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_remove3.txt c:\output.txt
   982 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_remove3.txt c:\output.txt
   900 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_remove1.txt c:\output.txt
   983 RUN_PROGRAM keytool.exe c:\ttesttools\data\key_remove1.txt c:\output.txt
   901 END_TESTCASE keytool_fail
   984 END_TESTCASE SEC-FILETOKENS-EC097-0069
   902 
   985 
   903 
   986 
   904 //! @SYMTestCaseID FILETOKENS-Defect118391_01
   987 //! @SYMTestCaseID 	SEC-FILETOKENS-Defect118391-0001
   905 //! @SYMTestCaseDesc Certool import command
   988 //! @SYMTestCaseDesc 	Certool import command
   906 //! @SYMTestPriority Medium
   989 //! 			(certtool_import_def118391)
   907 //! @SYMTestActions  call Certool import command without a label specified
   990 //! @SYMTestPriority 	Medium
       
   991 //! @SYMTestActions  	call Certool import command without a label specified
   908 //! @SYMTestExpectedResults Certtool  should not display any error message and work fine.
   992 //! @SYMTestExpectedResults Certtool  should not display any error message and work fine.
   909 
   993 
   910 START_TESTCASE certtool_import_def118391
   994 START_TESTCASE SEC-FILETOKENS-Defect118391-0001
   911 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import.txt c:\output.txt
   995 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import.txt c:\output.txt
   912 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import
   996 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import
   913 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import
   997 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import
   914 END_TESTCASE certtool_import_def118391
   998 END_TESTCASE SEC-FILETOKENS-Defect118391-0001
   915 
   999 
   916 
  1000 
   917 //! @SYMTestCaseID FILETOKENS-Defect118391_02
  1001 //! @SYMTestCaseID 	SEC-FILETOKENS-Defect118391-0002
   918 //! @SYMTestCaseDesc Certool setapps command
  1002 //! @SYMTestCaseDesc 	Certool setapps command
   919 //! @SYMTestPriority Medium
  1003 //! 			(certtool_setapps_defect118391)
   920 //! @SYMTestActions  call Certool setapps command with a label option specified
  1004 //! @SYMTestPriority 	Medium
       
  1005 //! @SYMTestActions  	call Certool setapps command with a label option specified
   921 //! @SYMTestExpectedResults Certtool  should not display any error message and work fine.
  1006 //! @SYMTestExpectedResults Certtool  should not display any error message and work fine.
   922 
  1007 
   923 
  1008 
   924 START_TESTCASE certtool_setapps_defect118391
  1009 START_TESTCASE SEC-FILETOKENS-Defect118391-0002
   925 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setapps1.txt c:\output.txt
  1010 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setapps1.txt c:\output.txt
   926 RUN_TEST_STEP 100 ttesttools GetTrustAppsStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps1
  1011 RUN_TEST_STEP 100 ttesttools GetTrustAppsStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps1
   927 END_TESTCASE certtool_setapps_defect118391
  1012 END_TESTCASE SEC-FILETOKENS-Defect118391-0002
   928 
  1013 
   929 
  1014 
   930 //! @SYMTestCaseID FILETOKENS-Defect118391_03
  1015 //! @SYMTestCaseID 	SEC-FILETOKENS-Defect118391-0003
   931 //! @SYMTestCaseDesc Certool setapps command  
  1016 //! @SYMTestCaseDesc 	Certool setapps command  
   932 //! @SYMTestPriority Medium
  1017 //! 			(certtool_trust)
   933 //! @SYMTestActions  call Certool to set the application trust status for the certificate
  1018 //! @SYMTestPriority 	Medium
       
  1019 //! @SYMTestActions  	call Certool to set the application trust status for the certificate
   934 //! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats trust status
  1020 //! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats trust status
   935 
  1021 
   936 START_TESTCASE certtool_trust
  1022 START_TESTCASE SEC-FILETOKENS-Defect118391-0003
   937 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setapps.txt c:\output.txt
  1023 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setapps.txt c:\output.txt
   938 RUN_TEST_STEP 100 ttesttools GetTrustStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps2
  1024 RUN_TEST_STEP 100 ttesttools GetTrustStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps2
   939 END_TESTCASE certtool_trust
  1025 END_TESTCASE SEC-FILETOKENS-Defect118391-0003