os/ossrv/lowlevellibsandfws/pluginfw/TestExecute/EComSWITests/scripts/TE_EComSWITestWINSCW.script
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/lowlevellibsandfws/pluginfw/TestExecute/EComSWITests/scripts/TE_EComSWITestWINSCW.script Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,170 @@
1.4 +// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// @file
1.18 +//
1.19 +//
1.20 +
1.21 +PRINT Run ECom SWI Install-Plugin Te_EComSWISuite Suite Tests
1.22 +
1.23 +LOAD_SUITE TE_EComSWITestSuite
1.24 +LOAD_SUITE TEFPlatSec
1.25 +
1.26 +DELAY 3000
1.27 +
1.28 +
1.29 +START_TESTCASE SYSLIB-ECOM-CIT-1889-0001
1.30 +//!@file
1.31 +//!@SYMTestCaseID SYSLIB-ECOM-CIT-1889-0001
1.32 +//!@SYMTestCaseDesc Verify that an ECom Plugin can be Installed, Queried and Used
1.33 +//! When it is Installed using Software Installer (SWI)
1.34 +//!@SYMTestPriority High
1.35 +//!@SYMTestActions (1) An ECom plugin which as packaged up into a .SIS is Installed Using SWI.
1.36 +//! (2) The installed is queried for details of the plugins Implementation.
1.37 +//! (3) The test tries to Call ReturnInt(),a method implemented by the ECom plugin
1.38 +//! (4) The ECom plugin is uninstallesd suing SWI
1.39 +//!
1.40 +//!@SYMTestExpectedResults (1) The plugin is installed.
1.41 +//! (2) The information provided by ListImplementationL macthes the expected data.
1.42 +//! (3) ReturnInt() returns 123456789
1.43 +//! (4) ECom unregisters plugin
1.44 +
1.45 +
1.46 +
1.47 + RUN_TEST_STEP 100 TE_EComSWITestSuite InstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini Install_WINSCWSISP1
1.48 + DELAY 3000
1.49 + RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P1
1.50 + DELAY 500
1.51 + RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin1
1.52 + DELAY 180000
1.53 + RUN_TEST_STEP 100 TE_EComSWITestSuite UninstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallWinP1
1.54 + DELAY 3000
1.55 + RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P1_UNINSTALL
1.56 +
1.57 +END_TESTCASE SYSLIB-ECOM-CIT-1889-0001
1.58 +
1.59 +
1.60 +START_TESTCASE SYSLIB-ECOM-CIT-1890-0001
1.61 +//!@SYMTestCaseID SYSLIB-ECOM-CIT-1890-0001
1.62 +//!@SYMTestCaseDesc Verify that an ECom plugin that exists in the ROM (Z:) can be upgraded and downgraded
1.63 +//! by a plugin installed and unistalled on the RAM (C:\) using SWI
1.64 +//!
1.65 +//!@SYMTestPriority High
1.66 +//!@SYMTestActions
1.67 +//! (1) ListImplmentaion is called on plugin v1.
1.68 +//! (2) CreatListImplmentaionL is called on Plugin v1 method ReturnInt().
1.69 +//! (3) ECom Plugin is upgraded to Version 2
1.70 +//! (4) ListImplmentaion is called on plugin v2.
1.71 +//! (5) ReturnInt(), a method provided by the plugin is called on Plugin v2.
1.72 +//! (6) Plugin V2 is Uninstalled
1.73 +//! (7) ListImplmentaion is called on plugin v1.
1.74 +//!
1.75 +//!@SYMTestExpectedResults (1) Plugin v1 exists on Z:\ drive and the specifed plugin attributes are returned.
1.76 +//! (2) Int value is returned from ReturnInt(), Plugin v1.
1.77 +//! (3) Ecom server now deregisteres v1 and registers v2.
1.78 +//! (4) Plugin v2 exists on C:\ drive and the specifed plugin attributes are returned.
1.79 +//! (5) Int value is returned from ReturnInt(), Plugin v2.
1.80 +//! (6) Ecom server now deregisteres v2 and registers v1. Also no plugin v2 files exist.
1.81 +//! (7) Plugin attribute information for v1 is returned.
1.82 +
1.83 +
1.84 +
1.85 +
1.86 +
1.87 + RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P3
1.88 + DELAY 500
1.89 + RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin3
1.90 + DELAY 3000
1.91 + RUN_TEST_STEP 100 TE_EComSWITestSuite InstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini InstallUpgrade_WINSCWSISP3
1.92 + DELAY 3000
1.93 + RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P3_UPGRADE
1.94 + DELAY 500
1.95 + RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin3Upgrade
1.96 + DELAY 180000
1.97 + RUN_TEST_STEP 100 TE_EComSWITestSuite UninstallStepPackageName Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallUpgradeWinP3
1.98 + DELAY 3000
1.99 + RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P3
1.100 + DELAY 3000
1.101 + RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin3
1.102 + DELAY 500
1.103 +
1.104 +END_TESTCASE SYSLIB-ECOM-CIT-1890-0001
1.105 +
1.106 +
1.107 +START_TESTCASE SYSLIB-ECOM-CIT-1891-0001
1.108 +//!@file
1.109 +//!@SYMTestCaseID SYSLIB-ECOM-CIT-1891-0001
1.110 +//!@SYMTestCaseDesc Verify that and Invalid ECom Plugin whose rss file has an incorrect dll
1.111 +//! UID can be installed using SWI, but does not wok.
1.112 +//!@SYMTestPriority High
1.113 +//!@SYMTestActions (1) ECom Plugin is Installed
1.114 +//! (2) Plugin queried for available implementation
1.115 +//! (3) Plugin is Uninstalled
1.116 +//!
1.117 +//!@SYMTestExpectedResults (1) The files are installed.
1.118 +//! (2) Query returns no implementations are available.
1.119 +//! (3) The files are removed
1.120 +
1.121 +
1.122 +
1.123 + RUN_TEST_STEP 100 TE_EComSWITestSuite InstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini Install_WINSCWSISP2
1.124 + DELAY 3000
1.125 + RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P2
1.126 + DELAY 500
1.127 + RUN_TEST_STEP 100 TE_EComSWITestSuite UninstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallWinP2
1.128 +
1.129 +END_TESTCASE SYSLIB-ECOM-CIT-1891-0001
1.130 +
1.131 +START_TESTCASE SYSLIB-ECOM-CIT-4011-0001 //CachedResolverUpgradeBySWI
1.132 +//!@SYMTestCaseID SYSLIB-ECOM-CIT-4011-0001
1.133 +//!@SYMTestCaseDesc Verify custom resolver caching do not interfere with SWI upgrading the resolver DLL.
1.134 +//!@SYMTestPriority High
1.135 +//!@SYMTestActions (1) Install version 2 of cachedcustomresolver so that the resolver is in RW drive.
1.136 +//! (2) Try to upgrade to version 9 while DLL is loaded.
1.137 +//! (3) Use the resolver to get it in cache.
1.138 +//! (4) Install version 9 of the resolver DLL.
1.139 +//! (5) Check ECom uses version 9 of the resolver.
1.140 +//! (6) Uninstall cachedcustomresolver.
1.141 +//! 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
1.142 +//! not necessary to run this particular test on winscw as we do not end up with the DLL upgraded or
1.143 +//! both the DLL and the .rsc upgraded. This may be a limitation of Windows.
1.144 +//! Any how cachedcustomresolver is completely uninstalled and version 2 reinstalled
1.145 +//! to ensure we have the correct files.
1.146 +//!
1.147 +//!@SYMTestExpectedResults (1) Version 2 is installed successfully.
1.148 +//! (2) SWI fails with KErrAccessDenied
1.149 +//! (3) ECom instantiates the correct version, i.e. 2.
1.150 +//! (4) Version 9 is successfully installed.
1.151 +//! (5) ECom instantiate the correct version.
1.152 +//! (6) Uninstall is successful.
1.153 +//!@SYMCR CR1182
1.154 +
1.155 +
1.156 + // Need a tef server with no capabilities to avoid platsec errors in listing custom resolvers
1.157 + RUN_TEST_STEP 100 TEFPlatSec SetCapabilities Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini MakeNoCapServer
1.158 + DELAY 2000
1.159 + LOAD_SUITE ecomswinocapserver
1.160 +
1.161 + RUN_TEST_STEP 100 TE_EComSWITestSuite ResolverInstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini Install_CustomResolver2
1.162 + RUN_TEST_STEP 100 ecomswinocapserver UseCustomResolverStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CheckVersion2
1.163 + //RUN_TEST_STEP 100 TE_EComSWITestSuite ResolverInstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini FailInstall_CustomResolver9
1.164 + RUN_TEST_STEP 100 TE_EComSWITestSuite ResolverUninstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallCustomResolver
1.165 + RUN_TEST_STEP 100 TE_EComSWITestSuite ResolverInstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini Install_CustomResolver2
1.166 + RUN_TEST_STEP 100 ecomswinocapserver UseCustomResolverStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CheckVersion2
1.167 + RUN_TEST_STEP 100 TE_EComSWITestSuite ResolverInstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini Install_CustomResolver9
1.168 + RUN_TEST_STEP 100 ecomswinocapserver UseCustomResolverStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CheckVersion9
1.169 + RUN_TEST_STEP 100 TE_EComSWITestSuite ResolverUninstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallCustomResolver
1.170 + RUN_TEST_STEP 100 ecomswinocapserver UseCustomResolverStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CheckVersion1
1.171 + DELAY 4000
1.172 + RUN_TEST_STEP 100 TEFPlatSec Cleanup Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini MakeNoCapServer
1.173 +END_TESTCASE SYSLIB-ECOM-CIT-4011-0001 //CachedResolverUpgradeBySWI