cryptoservices/filebasedcertificateandkeystores/test/ttesttools/scripts/sec-filetokens-tools.script
changeset 29 ece3df019add
parent 8 35751d3474b7
child 33 cf642210ecb7
--- a/cryptoservices/filebasedcertificateandkeystores/test/ttesttools/scripts/sec-filetokens-tools.script	Fri Nov 06 13:21:00 2009 +0200
+++ b/cryptoservices/filebasedcertificateandkeystores/test/ttesttools/scripts/sec-filetokens-tools.script	Tue Nov 24 09:06:03 2009 +0200
@@ -13,21 +13,7 @@
 //
 // Description: 
 //
-//
-// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
-// All rights reserved.
-// This component and the accompanying materials are made available
-// under the terms of the License "Symbian Foundation License v1.0"
-// which accompanies this distribution, and is available
-// at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
-//
-// Initial Contributors:
-// Nokia Corporation - initial contribution.
-//
-// Contributors:
-//
-// Description:
-//
+
 //! @file
 // filetokens tools unit (integration) tests
 PRINT Run all certtool and keytool tests
@@ -984,21 +970,21 @@
 END_TESTCASE SEC-FILETOKENS-EC097-0069
 
 
-//! @SYMTestCaseID 	SEC-FILETOKENS-Defect118391-0001
+//! @SYMTestCaseID 	SEC-FILETOKENS-Defect118391-0070
 //! @SYMTestCaseDesc 	Certool import command
 //! 			(certtool_import_def118391)
 //! @SYMTestPriority 	Medium
 //! @SYMTestActions  	call Certool import command without a label specified
 //! @SYMTestExpectedResults Certtool  should not display any error message and work fine.
 
-START_TESTCASE SEC-FILETOKENS-Defect118391-0001
+START_TESTCASE SEC-FILETOKENS-Defect118391-0070
 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_import.txt c:\output.txt
 RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import
 RUN_TEST_STEP 100 ttesttools ListKeyStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_import
-END_TESTCASE SEC-FILETOKENS-Defect118391-0001
+END_TESTCASE SEC-FILETOKENS-Defect118391-0070
 
 
-//! @SYMTestCaseID 	SEC-FILETOKENS-Defect118391-0002
+//! @SYMTestCaseID 	SEC-FILETOKENS-Defect118391-0071
 //! @SYMTestCaseDesc 	Certool setapps command
 //! 			(certtool_setapps_defect118391)
 //! @SYMTestPriority 	Medium
@@ -1006,20 +992,107 @@
 //! @SYMTestExpectedResults Certtool  should not display any error message and work fine.
 
 
-START_TESTCASE SEC-FILETOKENS-Defect118391-0002
+START_TESTCASE SEC-FILETOKENS-Defect118391-0071
 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setapps1.txt c:\output.txt
 RUN_TEST_STEP 100 ttesttools GetTrustAppsStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps1
-END_TESTCASE SEC-FILETOKENS-Defect118391-0002
+END_TESTCASE SEC-FILETOKENS-Defect118391-0071
 
 
-//! @SYMTestCaseID 	SEC-FILETOKENS-Defect118391-0003
+//! @SYMTestCaseID 	SEC-FILETOKENS-Defect118391-0072
 //! @SYMTestCaseDesc 	Certool setapps command  
 //! 			(certtool_trust)
 //! @SYMTestPriority 	Medium
 //! @SYMTestActions  	call Certool to set the application trust status for the certificate
 //! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats trust status
 
-START_TESTCASE SEC-FILETOKENS-Defect118391-0003
+START_TESTCASE SEC-FILETOKENS-Defect118391-0072
 RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_setapps.txt c:\output.txt
 RUN_TEST_STEP 100 ttesttools GetTrustStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_setapps2
-END_TESTCASE SEC-FILETOKENS-Defect118391-0003
+END_TESTCASE SEC-FILETOKENS-Defect118391-0072
+
+
+//! @SYMTestCaseID 	SEC-FILETOKENS-QI-0073
+//! @SYMTestCaseDesc 	Certool addapps command
+//! 			(certtool_addapps_QI)
+//! @SYMTestPriority 	Medium
+//! @SYMTestActions  	First remove the cert, then import the certificate then call Certool to set the application trust status for the certificate
+//! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats app status.
+
+
+START_TESTCASE SEC-FILETOKENS-QI-0073
+RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_addapps1.txt c:\output.txt
+RUN_TEST_STEP 100 ttesttools GetTrustAppsStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_addapps1
+END_TESTCASE SEC-FILETOKENS-QI-0073
+
+
+//! @SYMTestCaseID 	SEC-FILETOKENS-QI-0074
+//! @SYMTestCaseDesc 	Certool addapps command  
+//! 			(certtool_trust)
+//! @SYMTestPriority 	Medium
+//! @SYMTestActions  	call gettrust status to check the trust status for the certificate
+//! @SYMTestExpectedResults Query certstore via CUnifiedCertstore for the certificats trust status
+
+START_TESTCASE SEC-FILETOKENS-QI-0074
+RUN_TEST_STEP 100 ttesttools GetTrustStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_addapps2
+END_TESTCASE SEC-FILETOKENS-QI-0074
+
+//! @SYMTestCaseID 	SEC-FILETOKENS-IMPROVEMENT-0001
+//! @SYMTestCaseDesc 	Certtool import command
+//! @SYMTestPriority 	Medium
+//! @SYMTestActions  	call Certtool to import a certificate with the deletable flag set to 'y'.
+//! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore, the certificate is listed.
+
+START_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0001
+RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importdeletable1.txt c:\output.txt
+RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_importdeletable1
+
+END_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0001
+
+
+//! @SYMTestCaseID 	SEC-FILETOKENS-IMPROVEMENT-0002
+//! @SYMTestCaseDesc 	Certtool import command
+//! @SYMTestPriority 	Medium
+//! @SYMTestActions  	call Certtool to import a certificate with the deletable flag set to 'n'.
+//! @SYMTestExpectedResults Call certstore list via CUnifiedCertstore, the certificate is listed.
+
+START_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0002
+RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importdeletable2.txt c:\output.txt
+RUN_TEST_STEP 100 ttesttools ListCertStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_importdeletable2
+END_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0002
+
+//! @SYMTestCaseID 	SEC-FILETOKENS-IMPROVEMENT-0003
+//! @SYMTestCaseDesc 	Certtool import command
+//! @SYMTestPriority 	Medium
+//! @SYMTestActions  	call Certtool to import a certificate with the deletable flag set to a garbage value.
+//! @SYMTestExpectedResults The expected output is "An error occured during certificate import."
+
+START_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0003
+RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_importdeletable3.txt c:\output.txt
+RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_importdeletable3
+END_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0003
+
+
+//! @SYMTestCaseID 	SEC-FILETOKENS-IMPROVEMENT-0004
+//! @SYMTestCaseDesc 	Certtool remove command
+//! @SYMTestPriority 	Medium
+//! @SYMTestActions  	Call certtool to remove the certificate imported with deletable set to 'y'
+//! @SYMTestExpectedResults The expected output is "Certificate removed successfully."
+
+START_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0004
+RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removedeletable1.txt c:\output.txt
+RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removedeletable1
+END_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0004
+
+
+//! @SYMTestCaseID 	SEC-FILETOKENS-IMPROVEMENT-0005
+//! @SYMTestCaseDesc 	Certtool remove command
+//! @SYMTestPriority 	Medium
+//! @SYMTestActions  	Call certtool to remove the certificate imported with deletable set to 'n'
+//! @SYMTestExpectedResults "The expected output is Certificate removal failed."
+
+START_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0005
+RUN_PROGRAM certtool.exe c:\ttesttools\data\cert_removedeletable2.txt c:\output.txt
+RUN_TEST_STEP 100 ttesttools ParseFileStep c:\ttesttools\scripts\sec-filetokens-tools.ini certtool_removedeletable2
+END_TESTCASE SEC-FILETOKENS-IMPROVEMENT-0005
+
+