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 sl@0: //!@file sl@0: //!@SYMTestCaseID SYSLIB-ECOM-CIT-1889 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: RUN_TEST_STEP 100 TE_EComSWITestSuite InstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini Install_ARMSISP1 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 3000 sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite UninstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallARMP1 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 sl@0: sl@0: START_TESTCASE SYSLIB-ECOM-CIT-1890 sl@0: //!@file sl@0: //!@SYMTestCaseID SYSLIB-ECOM-CIT-1890 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: 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_ARMSISP3 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 3000 sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite UninstallStepPackageName Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallUpgradeARMP3 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 sl@0: sl@0: sl@0: sl@0: START_TESTCASE SYSLIB-ECOM-CIT-1891 sl@0: //!@file sl@0: //!@SYMTestCaseID SYSLIB-ECOM-CIT-1891 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_ARMSISP2 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 UnInstallARMP2 sl@0: sl@0: END_TESTCASE SYSLIB-ECOM-CIT-1891 sl@0: sl@0: sl@0: START_TESTCASE SYSLIB-ECOM-CIT-1919 sl@0: //!@file sl@0: //!@SYMTestCaseID SYSLIB-ECOM-CIT-1919 sl@0: //!@SYMTestCaseDesc Verify that an ECom plugin once installed on C: can be upgraded and downgraded sl@0: //! by a plugin installed and unistalled from the MMC using SWI sl@0: //! sl@0: //!@SYMTestPriority High sl@0: //!@SYMTestActions (1) ECom Plugin Version 1 is Installed on C:\ using SWI. sl@0: //! (2) ListImplmentaion is called on plugin v1. sl@0: //! (3) ReturnInt(), a method provided by the plugin is called on Plugin v1. sl@0: //! (4) ECom Plugin is upgraded to Version 2 and is Installed on MMC card using SWI sl@0: //! (5) ListImplmentaion is called on plugin v2. sl@0: //! (6) ReturnInt(), a method provided by the plugin is called on Plugin v2. sl@0: //! (7) Plugin V2 is Uninstalled sl@0: //! (8) ListImplmentaion is called to verify that plugin has been downgraded to v1 sl@0: //! (9) Plugin v1 is Uninstalled sl@0: //! sl@0: //!@SYMTestExpectedResults (1) Plugin v1 files exist on the C:\ drive. sl@0: //! (2) Plugin attribute information for v1 is returned. sl@0: //! (3) Int value is returned from ReturnInt(), Plugin v1. sl@0: //! (4) Ecom server now deregisteres v1 and registers v2. Also Plugin v2 files sl@0: //! exist on the MMC drive. sl@0: //! (5) Plugin attribute information for v1 is returned. sl@0: //! (6) Int value is returned from ReturnInt(), Plugin v2. sl@0: //! (7) Ecom server now deregisteres v2 and registers v1. Also no plugin v2 files exist. sl@0: //! (8) Plugin attribute information for v1 is returned. sl@0: //! (9) Plugin v1 is uninstalled and no plugin files exist. sl@0: sl@0: sl@0: sl@0: sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite InstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini Install_ARMSISP1 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 3000 sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite InstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini InstallUpgrade_ARMSISP1 sl@0: DELAY 3000 sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_UPGRADE_P1_ARM sl@0: DELAY 500 sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin1Upgrade sl@0: DELAY 3000 sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite UninstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallUpgradeARMP1 sl@0: DELAY 3000 sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_UPGRADE_P1_UNINSTALL sl@0: DELAY 3000 sl@0: RUN_TEST_STEP 100 TE_EComSWITestSuite UninstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallARMP1 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: sl@0: END_TESTCASE SYSLIB-ECOM-CIT-1919 sl@0: sl@0: START_TESTCASE SYSLIB-ECOM-CIT-4011 //CachedResolverUpgradeBySWI sl@0: //!@SYMTestCaseID SYSLIB-ECOM-CIT-4011 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) Use the resolver to get it in cache. sl@0: //! (3) Install version 9 of the resolver DLL. sl@0: //! (4) Check ECom uses version 9 of the resolver. sl@0: //! (5) Uninstall cachedcustomresolver. sl@0: //! NB: SWI behave differently on hw and winscw. In hw SWI can delete a DLL sl@0: //! while ECOM has the DLL loaded. sl@0: //! sl@0: //!@SYMTestExpectedResults (1) Version 2 is installed successfully. sl@0: //! (2) ECom instantiates the correct version, i.e. 2. sl@0: //! (3) Version 9 is successfully installed. sl@0: //! (4) ECom instantiate the correct version. sl@0: //! (5) Uninstall is successful. sl@0: //!@SYMCR CR1182 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 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 //CachedResolverUpgradeBySWI