sl@0: // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // @file sl@0: // sl@0: // sl@0: sl@0: PRINT Run ECom SWI Install-Plugin Te_EComSWISuite Suite Tests sl@0: sl@0: LOAD_SUITE TE_EComSWITestSuite sl@0: LOAD_SUITE TEFPlatSec sl@0: sl@0: DELAY 3000 sl@0: sl@0: sl@0: START_TESTCASE SYSLIB-ECOM-CIT-1889-0001 sl@0: //!@file sl@0: //!@SYMTestCaseID SYSLIB-ECOM-CIT-1889-0001 sl@0: //!@SYMTestCaseDesc Verify that an ECom Plugin can be Installed, Queried and Used sl@0: //! When it is Installed using Software Installer (SWI) sl@0: //!@SYMTestPriority High sl@0: //!@SYMTestActions (1) An ECom plugin which as packaged up into a .SIS is Installed Using SWI. sl@0: //! (2) The installed is queried for details of the plugins Implementation. sl@0: //! (3) The test tries to Call ReturnInt(),a method implemented by the ECom plugin sl@0: //! (4) The ECom plugin is uninstallesd suing SWI sl@0: //! sl@0: //!@SYMTestExpectedResults (1) The plugin is installed. sl@0: //! (2) The information provided by ListImplementationL macthes the expected data. sl@0: //! (3) ReturnInt() returns 123456789 sl@0: //! (4) ECom unregisters plugin sl@0: sl@0: sl@0: sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite InstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini Install_WINSCWSISP1 sl@0: DELAY 3000 sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P1 sl@0: DELAY 500 sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin1 sl@0: DELAY 180000 sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite UninstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallWinP1 sl@0: DELAY 3000 sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P1_UNINSTALL sl@0: sl@0: END_TESTCASE SYSLIB-ECOM-CIT-1889-0001 sl@0: sl@0: sl@0: START_TESTCASE SYSLIB-ECOM-CIT-1890-0001 sl@0: //!@SYMTestCaseID SYSLIB-ECOM-CIT-1890-0001 sl@0: //!@SYMTestCaseDesc Verify that an ECom plugin that exists in the ROM (Z:) can be upgraded and downgraded sl@0: //! by a plugin installed and unistalled on the RAM (C:\) using SWI sl@0: //! sl@0: //!@SYMTestPriority High sl@0: //!@SYMTestActions sl@0: //! (1) ListImplmentaion is called on plugin v1. sl@0: //! (2) CreatListImplmentaionL is called on Plugin v1 method ReturnInt(). sl@0: //! (3) ECom Plugin is upgraded to Version 2 sl@0: //! (4) ListImplmentaion is called on plugin v2. sl@0: //! (5) ReturnInt(), a method provided by the plugin is called on Plugin v2. sl@0: //! (6) Plugin V2 is Uninstalled sl@0: //! (7) ListImplmentaion is called on plugin v1. sl@0: //! sl@0: //!@SYMTestExpectedResults (1) Plugin v1 exists on Z:\ drive and the specifed plugin attributes are returned. sl@0: //! (2) Int value is returned from ReturnInt(), Plugin v1. sl@0: //! (3) Ecom server now deregisteres v1 and registers v2. sl@0: //! (4) Plugin v2 exists on C:\ drive and the specifed plugin attributes are returned. sl@0: //! (5) Int value is returned from ReturnInt(), Plugin v2. sl@0: //! (6) Ecom server now deregisteres v2 and registers v1. Also no plugin v2 files exist. sl@0: //! (7) Plugin attribute information for v1 is returned. sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P3 sl@0: DELAY 500 sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin3 sl@0: DELAY 3000 sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite InstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini InstallUpgrade_WINSCWSISP3 sl@0: DELAY 3000 sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P3_UPGRADE sl@0: DELAY 500 sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin3Upgrade sl@0: DELAY 180000 sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite UninstallStepPackageName Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallUpgradeWinP3 sl@0: DELAY 3000 sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P3 sl@0: DELAY 3000 sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin3 sl@0: DELAY 500 sl@0: sl@0: END_TESTCASE SYSLIB-ECOM-CIT-1890-0001 sl@0: sl@0: sl@0: START_TESTCASE SYSLIB-ECOM-CIT-1891-0001 sl@0: //!@file sl@0: //!@SYMTestCaseID SYSLIB-ECOM-CIT-1891-0001 sl@0: //!@SYMTestCaseDesc Verify that and Invalid ECom Plugin whose rss file has an incorrect dll sl@0: //! UID can be installed using SWI, but does not wok. sl@0: //!@SYMTestPriority High sl@0: //!@SYMTestActions (1) ECom Plugin is Installed sl@0: //! (2) Plugin queried for available implementation sl@0: //! (3) Plugin is Uninstalled sl@0: //! sl@0: //!@SYMTestExpectedResults (1) The files are installed. sl@0: //! (2) Query returns no implementations are available. sl@0: //! (3) The files are removed sl@0: sl@0: sl@0: sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite InstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini Install_WINSCWSISP2 sl@0: DELAY 3000 sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P2 sl@0: DELAY 500 sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite UninstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallWinP2 sl@0: sl@0: END_TESTCASE SYSLIB-ECOM-CIT-1891-0001 sl@0: sl@0: START_TESTCASE SYSLIB-ECOM-CIT-4011-0001 //CachedResolverUpgradeBySWI sl@0: //!@SYMTestCaseID SYSLIB-ECOM-CIT-4011-0001 sl@0: //!@SYMTestCaseDesc Verify custom resolver caching do not interfere with SWI upgrading the resolver DLL. sl@0: //!@SYMTestPriority High sl@0: //!@SYMTestActions (1) Install version 2 of cachedcustomresolver so that the resolver is in RW drive. sl@0: //! (2) Try to upgrade to version 9 while DLL is loaded. sl@0: //! (3) Use the resolver to get it in cache. sl@0: //! (4) Install version 9 of the resolver DLL. sl@0: //! (5) Check ECom uses version 9 of the resolver. sl@0: //! (6) Uninstall cachedcustomresolver. sl@0: //! NB: at step 2 SWI fails with -11 instead of the expected -21. This is because of windows dll locking mechanism and hence it is sl@0: //! not necessary to run this particular test on winscw as we do not end up with the DLL upgraded or sl@0: //! both the DLL and the .rsc upgraded. This may be a limitation of Windows. sl@0: //! Any how cachedcustomresolver is completely uninstalled and version 2 reinstalled sl@0: //! to ensure we have the correct files. sl@0: //! sl@0: //!@SYMTestExpectedResults (1) Version 2 is installed successfully. sl@0: //! (2) SWI fails with KErrAccessDenied sl@0: //! (3) ECom instantiates the correct version, i.e. 2. sl@0: //! (4) Version 9 is successfully installed. sl@0: //! (5) ECom instantiate the correct version. sl@0: //! (6) Uninstall is successful. sl@0: //!@SYMCR CR1182 sl@0: sl@0: sl@0: // Need a tef server with no capabilities to avoid platsec errors in listing custom resolvers sl@0: RUN_TEST_STEP 100 TEFPlatSec SetCapabilities Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini MakeNoCapServer sl@0: DELAY 2000 sl@0: LOAD_SUITE ecomswinocapserver sl@0: sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite ResolverInstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini Install_CustomResolver2 sl@0: RUN_TEST_STEP 100 ecomswinocapserver UseCustomResolverStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CheckVersion2 sl@0: //RUN_TEST_STEP 100 TE_EComSWITestSuite ResolverInstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini FailInstall_CustomResolver9 sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite ResolverUninstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallCustomResolver sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite ResolverInstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini Install_CustomResolver2 sl@0: RUN_TEST_STEP 100 ecomswinocapserver UseCustomResolverStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CheckVersion2 sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite ResolverInstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini Install_CustomResolver9 sl@0: RUN_TEST_STEP 100 ecomswinocapserver UseCustomResolverStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CheckVersion9 sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite ResolverUninstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallCustomResolver sl@0: RUN_TEST_STEP 100 ecomswinocapserver UseCustomResolverStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CheckVersion1 sl@0: DELAY 4000 sl@0: RUN_TEST_STEP 100 TEFPlatSec Cleanup Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini MakeNoCapServer sl@0: END_TESTCASE SYSLIB-ECOM-CIT-4011-0001 //CachedResolverUpgradeBySWI