os/ossrv/lowlevellibsandfws/pluginfw/TestExecute/EComSWITests/scripts/TE_EComSWITestARM.script
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // @file
    15 // 
    16 //
    17 
    18 PRINT Run ECom SWI Install-Plugin Te_EComSWISuite Suite Tests
    19 
    20 LOAD_SUITE TE_EComSWITestSuite
    21 LOAD_SUITE TEFPlatSec
    22 
    23 DELAY 3000
    24 
    25 
    26 START_TESTCASE SYSLIB-ECOM-CIT-1889 
    27 //!@file
    28 //!@SYMTestCaseID 			SYSLIB-ECOM-CIT-1889
    29 //!@SYMTestCaseDesc  		Verify that an ECom Plugin can be Installed, Queried and Used
    30 //!                  		When it is Installed using Software Installer (SWI)
    31 //!@SYMTestPriority  		High
    32 //!@SYMTestActions   		(1) An ECom plugin which as packaged up into a .SIS is Installed Using SWI.
    33 //!                  		(2)	The installed is queried for details of the plugins Implementation.
    34 //!                  		(3) The test tries to Call ReturnInt(),a method implemented by the ECom plugin
    35 //!							(4) The ECom plugin is uninstallesd suing SWI
    36 //!
    37 //!@SYMTestExpectedResults	(1) The plugin is installed.
    38 //!                  		(2)	The information provided by ListImplementationL macthes the expected data.
    39 //!                  		(3)	ReturnInt() returns 123456789	
    40 //!                  		(4)	ECom unregisters plugin	
    41 	RUN_TEST_STEP 100 TE_EComSWITestSuite InstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini Install_ARMSISP1
    42 	DELAY 3000
    43 	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P1
    44 	DELAY 500
    45 	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin1
    46 	DELAY 3000
    47 	RUN_TEST_STEP 100 TE_EComSWITestSuite UninstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallARMP1
    48 	DELAY 3000
    49 	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P1_UNINSTALL
    50 	
    51 END_TESTCASE SYSLIB-ECOM-CIT-1889
    52 
    53 START_TESTCASE SYSLIB-ECOM-CIT-1890
    54 //!@file
    55 //!@SYMTestCaseID 			SYSLIB-ECOM-CIT-1890
    56 //!@SYMTestCaseDesc 		Verify that an ECom plugin that exists in the ROM (Z:) can be upgraded and downgraded
    57 //!                 		by a plugin installed and unistalled on the RAM (C:\)  using SWI
    58 //!                 
    59 //!@SYMTestPriority 		High
    60 //!@SYMTestActions  		
    61 //!                 		(1)	ListImplmentaion is called on plugin v1.
    62 //!                	 		(2)	CreatListImplmentaionL is called on Plugin v1 method ReturnInt().
    63 //!							(3)	ECom Plugin is upgraded to  Version 2
    64 //!                			(4)	ListImplmentaion is called on plugin v2.
    65 //!                 		(5)	ReturnInt(), a method provided by the plugin is called on Plugin v2.
    66 //!                 		(6)	Plugin V2 is Uninstalled
    67 //!                 		(7)	ListImplmentaion is called on plugin v1.
    68 //!                 
    69 //!@SYMTestExpectedResults	(1) Plugin v1 exists on Z:\ drive and the specifed plugin attributes are returned.
    70 //!                 		(2)	Int value is  returned from ReturnInt(), Plugin v1.
    71 //!                 		(3)	Ecom server now deregisteres v1 and registers v2.
    72 //!                 		(4) Plugin v2 exists on C:\ drive and the specifed plugin attributes are returned.
    73 //!                 		(5)	Int value is  returned from ReturnInt(), Plugin v2.
    74 //!                 		(6)	Ecom server now deregisteres v2 and registers v1. Also no plugin v2 files exist.
    75 //!                 		(7)	Plugin attribute information for v1 is returned.
    76 
    77 
    78 	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P3
    79 	DELAY 500
    80 	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin3
    81 	DELAY 3000
    82 	RUN_TEST_STEP 100 TE_EComSWITestSuite InstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini InstallUpgrade_ARMSISP3
    83 	DELAY 3000
    84 	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P3_UPGRADE
    85 	DELAY 500
    86 	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin3Upgrade
    87 	DELAY 3000
    88 	RUN_TEST_STEP 100 TE_EComSWITestSuite UninstallStepPackageName Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallUpgradeARMP3
    89 	DELAY 3000
    90 	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P3
    91 	DELAY 3000
    92 	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin3
    93 	DELAY 500
    94 	
    95 END_TESTCASE SYSLIB-ECOM-CIT-1890
    96 
    97 
    98 
    99 START_TESTCASE SYSLIB-ECOM-CIT-1891
   100 //!@file
   101 //!@SYMTestCaseID 	 		SYSLIB-ECOM-CIT-1891
   102 //!@SYMTestCaseDesc  		Verify that and Invalid ECom Plugin whose rss file has an incorrect dll  
   103 //!                  		UID can be installed using SWI, but does not wok.
   104 //!@SYMTestPriority  		High
   105 //!@SYMTestActions   		(1) ECom Plugin is Installed
   106 //!                  		(2)	Plugin queried for available implementation
   107 //!                  		(3) Plugin is Uninstalled
   108 //!                  
   109 //!@SYMTestExpectedResults 	(1) The files are installed.
   110 //!                  		(2)	Query returns no implementations are available.
   111 //!                  		(3)	The files are removed
   112 
   113 
   114 
   115 	RUN_TEST_STEP 100 TE_EComSWITestSuite InstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini Install_ARMSISP2
   116 	DELAY 3000
   117 	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P2
   118 	DELAY 500
   119 	RUN_TEST_STEP 100 TE_EComSWITestSuite UninstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallARMP2
   120 
   121 END_TESTCASE SYSLIB-ECOM-CIT-1891
   122 
   123 
   124 START_TESTCASE SYSLIB-ECOM-CIT-1919
   125 //!@file
   126 //!@SYMTestCaseID 			SYSLIB-ECOM-CIT-1919
   127 //!@SYMTestCaseDesc 		Verify that an ECom plugin once installed on C: can be upgraded and downgraded
   128 //!                 		by a plugin installed and unistalled from the MMC using SWI
   129 //!                 
   130 //!@SYMTestPriority 		High
   131 //!@SYMTestActions  		(1) ECom Plugin Version 1 is Installed on C:\ using SWI.
   132 //!                 		(2)	ListImplmentaion is called on plugin v1.
   133 //!                 		(3)	ReturnInt(), a method provided by the plugin is called on Plugin v1.
   134 //!                	 		(4)	ECom Plugin is upgraded to  Version 2 and is Installed on MMC card using SWI
   135 //!                 		(5)	ListImplmentaion is called on plugin v2.
   136 //!                 		(6)	ReturnInt(), a method provided by the plugin is called on Plugin v2.
   137 //!                 		(7)	Plugin V2 is Uninstalled
   138 //!                 		(8)	ListImplmentaion is called to verify that plugin has been downgraded to v1
   139 //!                 		(9) Plugin v1 is Uninstalled
   140 //!                 
   141 //!@SYMTestExpectedResults	(1) Plugin v1 files exist on the C:\ drive.
   142 //!                 		(2)	Plugin attribute information for v1 is returned.
   143 //!                 		(3)	Int value is  returned from ReturnInt(), Plugin v1.
   144 //!                 		(4)	Ecom server now deregisteres v1 and registers v2.  Also Plugin v2 files
   145 //!								exist on the MMC drive.
   146 //!                 		(5) Plugin attribute information for v1 is returned.
   147 //!                 		(6)	Int value is  returned from ReturnInt(), Plugin v2.
   148 //!                 		(7)	Ecom server now deregisteres v2 and registers v1. Also no plugin v2 files exist.
   149 //!                 		(8)	Plugin attribute information for v1 is returned.
   150 //!                 		(9)	Plugin v1 is uninstalled and no plugin files exist.
   151 
   152 
   153 
   154 
   155 	RUN_TEST_STEP 100 TE_EComSWITestSuite InstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini Install_ARMSISP1
   156 	DELAY 3000
   157 	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P1
   158 	DELAY 500
   159 	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin1
   160 	DELAY 3000
   161 	RUN_TEST_STEP 100 TE_EComSWITestSuite InstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini InstallUpgrade_ARMSISP1
   162 	DELAY 3000
   163 	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_UPGRADE_P1_ARM
   164 	DELAY 500
   165 	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin1Upgrade
   166 	DELAY 3000
   167 	RUN_TEST_STEP 100 TE_EComSWITestSuite UninstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallUpgradeARMP1
   168 	DELAY 3000
   169 	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_UPGRADE_P1_UNINSTALL
   170 	DELAY 3000
   171 	RUN_TEST_STEP 100 TE_EComSWITestSuite UninstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallARMP1
   172 	DELAY 3000
   173 	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P1_UNINSTALL
   174 	
   175 	
   176 END_TESTCASE SYSLIB-ECOM-CIT-1919
   177 
   178 START_TESTCASE  SYSLIB-ECOM-CIT-4011 //CachedResolverUpgradeBySWI
   179 //!@SYMTestCaseID 			SYSLIB-ECOM-CIT-4011
   180 //!@SYMTestCaseDesc  		Verify custom resolver caching do not interfere with SWI upgrading the resolver DLL.
   181 //!@SYMTestPriority  		High
   182 //!@SYMTestActions   		(1) Install version 2 of cachedcustomresolver so that the resolver is in RW drive.
   183 //!                  		(2) Use the resolver to get it in cache.
   184 //!                  		(3) Install version 9 of the resolver DLL.
   185 //!							(4) Check ECom uses version 9 of the resolver.
   186 //!							(5) Uninstall cachedcustomresolver.
   187 //! NB: SWI behave differently on hw and winscw. In hw SWI can delete a DLL
   188 //! 	while ECOM has the DLL loaded.
   189 //!
   190 //!@SYMTestExpectedResults	(1) Version 2 is installed successfully.
   191 //!                  		(2) ECom instantiates the correct version, i.e. 2.
   192 //!                  		(3) Version 9 is successfully installed.
   193 //!                  		(4) ECom instantiate the correct version.
   194 //!                  		(5) Uninstall is successful.
   195 //!@SYMCR					CR1182
   196 
   197 	// Need a tef server with no capabilities to avoid platsec errors in listing custom resolvers
   198 	RUN_TEST_STEP 100 TEFPlatSec SetCapabilities Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini MakeNoCapServer
   199 	DELAY 2000
   200 	LOAD_SUITE ecomswinocapserver
   201 
   202 	RUN_TEST_STEP 100 TE_EComSWITestSuite ResolverInstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini Install_CustomResolver2
   203 	RUN_TEST_STEP 100 ecomswinocapserver UseCustomResolverStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CheckVersion2
   204 	RUN_TEST_STEP 100 TE_EComSWITestSuite ResolverInstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini Install_CustomResolver9
   205 	RUN_TEST_STEP 100 ecomswinocapserver UseCustomResolverStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CheckVersion9
   206 	RUN_TEST_STEP 100 TE_EComSWITestSuite ResolverUninstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallCustomResolver
   207 	RUN_TEST_STEP 100 ecomswinocapserver UseCustomResolverStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CheckVersion1
   208 	DELAY 4000
   209 	RUN_TEST_STEP 100 TEFPlatSec Cleanup Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini MakeNoCapServer
   210 END_TESTCASE  SYSLIB-ECOM-CIT-4011 //CachedResolverUpgradeBySWI