os/ossrv/lowlevellibsandfws/pluginfw/TestExecute/EComSWITests/scripts/TE_EComSWITestARM.script
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/lowlevellibsandfws/pluginfw/TestExecute/EComSWITests/scripts/TE_EComSWITestARM.script	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,210 @@
     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 
    1.30 +//!@file
    1.31 +//!@SYMTestCaseID 			SYSLIB-ECOM-CIT-1889
    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 +	RUN_TEST_STEP 100 TE_EComSWITestSuite InstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini Install_ARMSISP1
    1.45 +	DELAY 3000
    1.46 +	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P1
    1.47 +	DELAY 500
    1.48 +	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin1
    1.49 +	DELAY 3000
    1.50 +	RUN_TEST_STEP 100 TE_EComSWITestSuite UninstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallARMP1
    1.51 +	DELAY 3000
    1.52 +	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P1_UNINSTALL
    1.53 +	
    1.54 +END_TESTCASE SYSLIB-ECOM-CIT-1889
    1.55 +
    1.56 +START_TESTCASE SYSLIB-ECOM-CIT-1890
    1.57 +//!@file
    1.58 +//!@SYMTestCaseID 			SYSLIB-ECOM-CIT-1890
    1.59 +//!@SYMTestCaseDesc 		Verify that an ECom plugin that exists in the ROM (Z:) can be upgraded and downgraded
    1.60 +//!                 		by a plugin installed and unistalled on the RAM (C:\)  using SWI
    1.61 +//!                 
    1.62 +//!@SYMTestPriority 		High
    1.63 +//!@SYMTestActions  		
    1.64 +//!                 		(1)	ListImplmentaion is called on plugin v1.
    1.65 +//!                	 		(2)	CreatListImplmentaionL is called on Plugin v1 method ReturnInt().
    1.66 +//!							(3)	ECom Plugin is upgraded to  Version 2
    1.67 +//!                			(4)	ListImplmentaion is called on plugin v2.
    1.68 +//!                 		(5)	ReturnInt(), a method provided by the plugin is called on Plugin v2.
    1.69 +//!                 		(6)	Plugin V2 is Uninstalled
    1.70 +//!                 		(7)	ListImplmentaion is called on plugin v1.
    1.71 +//!                 
    1.72 +//!@SYMTestExpectedResults	(1) Plugin v1 exists on Z:\ drive and the specifed plugin attributes are returned.
    1.73 +//!                 		(2)	Int value is  returned from ReturnInt(), Plugin v1.
    1.74 +//!                 		(3)	Ecom server now deregisteres v1 and registers v2.
    1.75 +//!                 		(4) Plugin v2 exists on C:\ drive and the specifed plugin attributes are returned.
    1.76 +//!                 		(5)	Int value is  returned from ReturnInt(), Plugin v2.
    1.77 +//!                 		(6)	Ecom server now deregisteres v2 and registers v1. Also no plugin v2 files exist.
    1.78 +//!                 		(7)	Plugin attribute information for v1 is returned.
    1.79 +
    1.80 +
    1.81 +	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P3
    1.82 +	DELAY 500
    1.83 +	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin3
    1.84 +	DELAY 3000
    1.85 +	RUN_TEST_STEP 100 TE_EComSWITestSuite InstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini InstallUpgrade_ARMSISP3
    1.86 +	DELAY 3000
    1.87 +	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P3_UPGRADE
    1.88 +	DELAY 500
    1.89 +	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin3Upgrade
    1.90 +	DELAY 3000
    1.91 +	RUN_TEST_STEP 100 TE_EComSWITestSuite UninstallStepPackageName Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallUpgradeARMP3
    1.92 +	DELAY 3000
    1.93 +	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P3
    1.94 +	DELAY 3000
    1.95 +	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin3
    1.96 +	DELAY 500
    1.97 +	
    1.98 +END_TESTCASE SYSLIB-ECOM-CIT-1890
    1.99 +
   1.100 +
   1.101 +
   1.102 +START_TESTCASE SYSLIB-ECOM-CIT-1891
   1.103 +//!@file
   1.104 +//!@SYMTestCaseID 	 		SYSLIB-ECOM-CIT-1891
   1.105 +//!@SYMTestCaseDesc  		Verify that and Invalid ECom Plugin whose rss file has an incorrect dll  
   1.106 +//!                  		UID can be installed using SWI, but does not wok.
   1.107 +//!@SYMTestPriority  		High
   1.108 +//!@SYMTestActions   		(1) ECom Plugin is Installed
   1.109 +//!                  		(2)	Plugin queried for available implementation
   1.110 +//!                  		(3) Plugin is Uninstalled
   1.111 +//!                  
   1.112 +//!@SYMTestExpectedResults 	(1) The files are installed.
   1.113 +//!                  		(2)	Query returns no implementations are available.
   1.114 +//!                  		(3)	The files are removed
   1.115 +
   1.116 +
   1.117 +
   1.118 +	RUN_TEST_STEP 100 TE_EComSWITestSuite InstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini Install_ARMSISP2
   1.119 +	DELAY 3000
   1.120 +	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P2
   1.121 +	DELAY 500
   1.122 +	RUN_TEST_STEP 100 TE_EComSWITestSuite UninstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallARMP2
   1.123 +
   1.124 +END_TESTCASE SYSLIB-ECOM-CIT-1891
   1.125 +
   1.126 +
   1.127 +START_TESTCASE SYSLIB-ECOM-CIT-1919
   1.128 +//!@file
   1.129 +//!@SYMTestCaseID 			SYSLIB-ECOM-CIT-1919
   1.130 +//!@SYMTestCaseDesc 		Verify that an ECom plugin once installed on C: can be upgraded and downgraded
   1.131 +//!                 		by a plugin installed and unistalled from the MMC using SWI
   1.132 +//!                 
   1.133 +//!@SYMTestPriority 		High
   1.134 +//!@SYMTestActions  		(1) ECom Plugin Version 1 is Installed on C:\ using SWI.
   1.135 +//!                 		(2)	ListImplmentaion is called on plugin v1.
   1.136 +//!                 		(3)	ReturnInt(), a method provided by the plugin is called on Plugin v1.
   1.137 +//!                	 		(4)	ECom Plugin is upgraded to  Version 2 and is Installed on MMC card using SWI
   1.138 +//!                 		(5)	ListImplmentaion is called on plugin v2.
   1.139 +//!                 		(6)	ReturnInt(), a method provided by the plugin is called on Plugin v2.
   1.140 +//!                 		(7)	Plugin V2 is Uninstalled
   1.141 +//!                 		(8)	ListImplmentaion is called to verify that plugin has been downgraded to v1
   1.142 +//!                 		(9) Plugin v1 is Uninstalled
   1.143 +//!                 
   1.144 +//!@SYMTestExpectedResults	(1) Plugin v1 files exist on the C:\ drive.
   1.145 +//!                 		(2)	Plugin attribute information for v1 is returned.
   1.146 +//!                 		(3)	Int value is  returned from ReturnInt(), Plugin v1.
   1.147 +//!                 		(4)	Ecom server now deregisteres v1 and registers v2.  Also Plugin v2 files
   1.148 +//!								exist on the MMC drive.
   1.149 +//!                 		(5) Plugin attribute information for v1 is returned.
   1.150 +//!                 		(6)	Int value is  returned from ReturnInt(), Plugin v2.
   1.151 +//!                 		(7)	Ecom server now deregisteres v2 and registers v1. Also no plugin v2 files exist.
   1.152 +//!                 		(8)	Plugin attribute information for v1 is returned.
   1.153 +//!                 		(9)	Plugin v1 is uninstalled and no plugin files exist.
   1.154 +
   1.155 +
   1.156 +
   1.157 +
   1.158 +	RUN_TEST_STEP 100 TE_EComSWITestSuite InstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini Install_ARMSISP1
   1.159 +	DELAY 3000
   1.160 +	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P1
   1.161 +	DELAY 500
   1.162 +	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin1
   1.163 +	DELAY 3000
   1.164 +	RUN_TEST_STEP 100 TE_EComSWITestSuite InstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini InstallUpgrade_ARMSISP1
   1.165 +	DELAY 3000
   1.166 +	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_UPGRADE_P1_ARM
   1.167 +	DELAY 500
   1.168 +	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin1Upgrade
   1.169 +	DELAY 3000
   1.170 +	RUN_TEST_STEP 100 TE_EComSWITestSuite UninstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallUpgradeARMP1
   1.171 +	DELAY 3000
   1.172 +	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_UPGRADE_P1_UNINSTALL
   1.173 +	DELAY 3000
   1.174 +	RUN_TEST_STEP 100 TE_EComSWITestSuite UninstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallARMP1
   1.175 +	DELAY 3000
   1.176 +	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P1_UNINSTALL
   1.177 +	
   1.178 +	
   1.179 +END_TESTCASE SYSLIB-ECOM-CIT-1919
   1.180 +
   1.181 +START_TESTCASE  SYSLIB-ECOM-CIT-4011 //CachedResolverUpgradeBySWI
   1.182 +//!@SYMTestCaseID 			SYSLIB-ECOM-CIT-4011
   1.183 +//!@SYMTestCaseDesc  		Verify custom resolver caching do not interfere with SWI upgrading the resolver DLL.
   1.184 +//!@SYMTestPriority  		High
   1.185 +//!@SYMTestActions   		(1) Install version 2 of cachedcustomresolver so that the resolver is in RW drive.
   1.186 +//!                  		(2) Use the resolver to get it in cache.
   1.187 +//!                  		(3) Install version 9 of the resolver DLL.
   1.188 +//!							(4) Check ECom uses version 9 of the resolver.
   1.189 +//!							(5) Uninstall cachedcustomresolver.
   1.190 +//! NB: SWI behave differently on hw and winscw. In hw SWI can delete a DLL
   1.191 +//! 	while ECOM has the DLL loaded.
   1.192 +//!
   1.193 +//!@SYMTestExpectedResults	(1) Version 2 is installed successfully.
   1.194 +//!                  		(2) ECom instantiates the correct version, i.e. 2.
   1.195 +//!                  		(3) Version 9 is successfully installed.
   1.196 +//!                  		(4) ECom instantiate the correct version.
   1.197 +//!                  		(5) Uninstall is successful.
   1.198 +//!@SYMCR					CR1182
   1.199 +
   1.200 +	// Need a tef server with no capabilities to avoid platsec errors in listing custom resolvers
   1.201 +	RUN_TEST_STEP 100 TEFPlatSec SetCapabilities Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini MakeNoCapServer
   1.202 +	DELAY 2000
   1.203 +	LOAD_SUITE ecomswinocapserver
   1.204 +
   1.205 +	RUN_TEST_STEP 100 TE_EComSWITestSuite ResolverInstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini Install_CustomResolver2
   1.206 +	RUN_TEST_STEP 100 ecomswinocapserver UseCustomResolverStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CheckVersion2
   1.207 +	RUN_TEST_STEP 100 TE_EComSWITestSuite ResolverInstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini Install_CustomResolver9
   1.208 +	RUN_TEST_STEP 100 ecomswinocapserver UseCustomResolverStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CheckVersion9
   1.209 +	RUN_TEST_STEP 100 TE_EComSWITestSuite ResolverUninstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallCustomResolver
   1.210 +	RUN_TEST_STEP 100 ecomswinocapserver UseCustomResolverStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CheckVersion1
   1.211 +	DELAY 4000
   1.212 +	RUN_TEST_STEP 100 TEFPlatSec Cleanup Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini MakeNoCapServer
   1.213 +END_TESTCASE  SYSLIB-ECOM-CIT-4011 //CachedResolverUpgradeBySWI