diff -r 675a964f4eb5 -r 35751d3474b7 cryptoservices/certificateandkeymgmt/tcertstore/scripts/unifiedcertstore1-conf3.script --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cryptoservices/certificateandkeymgmt/tcertstore/scripts/unifiedcertstore1-conf3.script Thu Sep 10 14:01:51 2009 +0300 @@ -0,0 +1,180 @@ +// +// 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: +// + +START_TESTCASE SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0001 + +//! @SYMTestCaseID SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0001 + +//! @SYMTestCaseDesc 3.3 Test cases for configuration 2 + +//! + +//! 3.3.1 Opening one UnifiedCertStore in write mode + +//! @SYMTestActions 1) 3.3.1.1,Opening a writable certificate store manager + +//! 2) 3.3.1.3,Retrieving number of writable certificate store manager + +//! 3) 3.3.1.4,Retrieving number of read-only certificate store manager + +//! 4) 3.3.1.5,Retrieving number of certificate store manager + +//! 5) 3.3.1.6,Retrieving the store informations + +//! 6) 3.3.1.7,Deleting the writable certificate store manager + +RUN_TEST_STEP -1 CTestHandler init unifiedcertstore1-conf3.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0001-001 + +RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_WritableCertStoreCount unifiedcertstore1-conf3.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0001-002 + +RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_ReadOnlyCertStoreCount unifiedcertstore1-conf3.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0001-003 + +RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_CertStoreCount unifiedcertstore1-conf3.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0001-004 + +RUN_TEST_STEP -1 CTestHandler CCTTokenTypeInfo_Attributes + +RUN_TEST_STEP -1 CTestHandler delete + +END_TESTCASE SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0001 + + + + + +START_TESTCASE SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0002 + +//! @SYMTestCaseID SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0002 + +//! @SYMTestCaseDesc 3.3.2 Opening two UnifiedCertStore in read-only mode + +//! @SYMTestActions 1) 3.3.2.1,Opening a read-only certificate store manager + +//! 2) 3.3.2.3,Retrieving number of writable certificate store manager + +//! 3) 3.3.2.4,Retrieving number of read-only certificate store manager + +//! 4) 3.3.2.5,Retrieving number of certificate store manager + +//! 5) 3.3.2.6,Opening a second read-only certificate store manager + +//! 6) 3.3.2.8,Retrieving number of writable certificate store manager + +//! 7) 3.3.2.9,Retrieving number of read-only certificate store manager + +//! 8) 3.3.2.10,Retrieving number of certificate store manager + +//! 9) 3.3.2.11,Deleting the second read-only certificate store manager + +//! 10) 3.3.2.12,Deleting the first read-only certificate store manager + +RUN_TEST_STEP -1 CTestHandler init unifiedcertstore1-conf3.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0002-001 + +RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_WritableCertStoreCount unifiedcertstore1-conf3.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0002-002 + +RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_ReadOnlyCertStoreCount unifiedcertstore1-conf3.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0002-003 + +RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_CertStoreCount unifiedcertstore1-conf3.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0002-004 + +RUN_TEST_STEP -1 CTestHandler init unifiedcertstore1-conf3.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0002-005 + +RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_WritableCertStoreCount unifiedcertstore1-conf3.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0002-006 + +RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_ReadOnlyCertStoreCount unifiedcertstore1-conf3.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0002-007 + +RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_CertStoreCount unifiedcertstore1-conf3.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0002-008 + +RUN_TEST_STEP -1 CTestHandler delete + +RUN_TEST_STEP -1 CTestHandler delete + +END_TESTCASE SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0002 + + + + + +START_TESTCASE SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0003 + +//! @SYMTestCaseID SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0003 + +//! @SYMTestCaseDesc 3.3.3 Opening one store in write mode and a second one in read-only or write mode + +//! @SYMTestActions 1) 3.3.3.1,Opening a writable certificate store manager + +//! 2) 3.3.3.3,Retrieving number of writable certificate store manager + +//! 3) 3.3.3.4,Retrieving number of read-only certificate store manager + +//! 4) 3.3.3.5,Retrieving number of certificate store manager + +//! 5) 3.3.3.6,Opening a read-only certificate store manager + +//! 6) 3.3.3.8,Retrieving number of writable certificate store manager + +//! 7) 3.3.3.9,Retrieving number of read-only certificate store manager + +//! 8) 3.3.3.10,Retrieving number of certificate store manager + +//! 9) 3.3.3.11,Deleting the second certificate store manager + +//! 10) 3.3.3.12,Opening a second writable certificate store manager + +//! 11) 3.3.3.14,Retrieving number of writable certificate store manager + +//! 12) 3.3.3.15,Retrieving number of read-only certificate store manager + +//! 13) 3.3.3.16,Retrieving number of certificate store manager + +//! 14) 3.3.3.17,Deleting the second writable certificate store manager + +//! 15) 3.3.3.18,Deleting the first writable certificate store manager + +RUN_TEST_STEP -1 CTestHandler init unifiedcertstore1-conf3.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0003-001 + +RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_WritableCertStoreCount unifiedcertstore1-conf3.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0003-002 + +RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_ReadOnlyCertStoreCount unifiedcertstore1-conf3.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0003-003 + +RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_CertStoreCount unifiedcertstore1-conf3.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0003-004 + +RUN_TEST_STEP -1 CTestHandler init unifiedcertstore1-conf3.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0003-005 + +RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_WritableCertStoreCount unifiedcertstore1-conf3.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0003-006 + +RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_ReadOnlyCertStoreCount unifiedcertstore1-conf3.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0003-007 + +RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_CertStoreCount unifiedcertstore1-conf3.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0003-008 + +RUN_TEST_STEP -1 CTestHandler delete + +RUN_TEST_STEP -1 CTestHandler init unifiedcertstore1-conf3.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0003-010 + +RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_WritableCertStoreCount unifiedcertstore1-conf3.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0003-011 + +RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_ReadOnlyCertStoreCount unifiedcertstore1-conf3.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0003-012 + +RUN_TEST_STEP -1 CTestHandler CUnifiedCertStore_CertStoreCount unifiedcertstore1-conf3.ini SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0003-013 + +RUN_TEST_STEP -1 CTestHandler delete + +RUN_TEST_STEP -1 CTestHandler delete + +END_TESTCASE SEC-CERTMAN-UNIFIEDCERTSTORE1-CONF3-0003 + + + + +