os/ossrv/lowlevellibsandfws/pluginfw/TestExecute/EComSWITests/scripts/TE_EComSWITestWINSCW.script
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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-0001
    27 //!@file
    28 //!@SYMTestCaseID 			SYSLIB-ECOM-CIT-1889-0001
    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 
    42  
    43 	
    44 	RUN_TEST_STEP 100 TE_EComSWITestSuite InstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini Install_WINSCWSISP1
    45 	DELAY 3000
    46 	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P1
    47 	DELAY 500
    48 	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin1
    49 	DELAY 180000
    50 	RUN_TEST_STEP 100 TE_EComSWITestSuite UninstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallWinP1
    51 	DELAY 3000
    52 	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P1_UNINSTALL
    53 	
    54 END_TESTCASE SYSLIB-ECOM-CIT-1889-0001
    55 
    56 
    57 START_TESTCASE SYSLIB-ECOM-CIT-1890-0001
    58 //!@SYMTestCaseID 			SYSLIB-ECOM-CIT-1890-0001
    59 //!@SYMTestCaseDesc 		Verify that an ECom plugin that exists in the ROM (Z:) can be upgraded and downgraded
    60 //!                 		by a plugin installed and unistalled on the RAM (C:\)  using SWI
    61 //!                 
    62 //!@SYMTestPriority 		High
    63 //!@SYMTestActions  		
    64 //!                 		(1)	ListImplmentaion is called on plugin v1.
    65 //!                	 		(2)	CreatListImplmentaionL is called on Plugin v1 method ReturnInt().
    66 //!							(3)	ECom Plugin is upgraded to  Version 2
    67 //!                			(4)	ListImplmentaion is called on plugin v2.
    68 //!                 		(5)	ReturnInt(), a method provided by the plugin is called on Plugin v2.
    69 //!                 		(6)	Plugin V2 is Uninstalled
    70 //!                 		(7)	ListImplmentaion is called on plugin v1.
    71 //!                 
    72 //!@SYMTestExpectedResults	(1) Plugin v1 exists on Z:\ drive and the specifed plugin attributes are returned.
    73 //!                 		(2)	Int value is  returned from ReturnInt(), Plugin v1.
    74 //!                 		(3)	Ecom server now deregisteres v1 and registers v2.
    75 //!                 		(4) Plugin v2 exists on C:\ drive and the specifed plugin attributes are returned.
    76 //!                 		(5)	Int value is  returned from ReturnInt(), Plugin v2.
    77 //!                 		(6)	Ecom server now deregisteres v2 and registers v1. Also no plugin v2 files exist.
    78 //!                 		(7)	Plugin attribute information for v1 is returned.
    79 
    80 
    81 
    82 
    83 
    84 	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P3
    85 	DELAY 500
    86 	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin3
    87 	DELAY 3000
    88 	RUN_TEST_STEP 100 TE_EComSWITestSuite InstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini InstallUpgrade_WINSCWSISP3
    89 	DELAY 3000
    90 	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P3_UPGRADE
    91 	DELAY 500
    92 	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin3Upgrade
    93 	DELAY 180000
    94 	RUN_TEST_STEP 100 TE_EComSWITestSuite UninstallStepPackageName Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallUpgradeWinP3
    95 	DELAY 3000
    96 	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P3
    97 	DELAY 3000
    98 	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin3
    99 	DELAY 500
   100 	
   101 END_TESTCASE SYSLIB-ECOM-CIT-1890-0001
   102 
   103 
   104 START_TESTCASE SYSLIB-ECOM-CIT-1891-0001
   105 //!@file
   106 //!@SYMTestCaseID 	 		SYSLIB-ECOM-CIT-1891-0001
   107 //!@SYMTestCaseDesc  		Verify that and Invalid ECom Plugin whose rss file has an incorrect dll  
   108 //!                  		UID can be installed using SWI, but does not wok.
   109 //!@SYMTestPriority  		High
   110 //!@SYMTestActions   		(1) ECom Plugin is Installed
   111 //!                  		(2)	Plugin queried for available implementation
   112 //!                  		(3) Plugin is Uninstalled
   113 //!                  
   114 //!@SYMTestExpectedResults 	(1) The files are installed.
   115 //!                  		(2)	Query returns no implementations are available.
   116 //!                  		(3)	The files are removed
   117 
   118 
   119 
   120 	RUN_TEST_STEP 100 TE_EComSWITestSuite InstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini Install_WINSCWSISP2
   121 	DELAY 3000
   122 	RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P2
   123 	DELAY 500
   124 	RUN_TEST_STEP 100 TE_EComSWITestSuite UninstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallWinP2
   125 
   126 END_TESTCASE SYSLIB-ECOM-CIT-1891-0001
   127 
   128 START_TESTCASE SYSLIB-ECOM-CIT-4011-0001 //CachedResolverUpgradeBySWI
   129 //!@SYMTestCaseID 			SYSLIB-ECOM-CIT-4011-0001
   130 //!@SYMTestCaseDesc  		Verify custom resolver caching do not interfere with SWI upgrading the resolver DLL.
   131 //!@SYMTestPriority  		High
   132 //!@SYMTestActions   		(1) Install version 2 of cachedcustomresolver so that the resolver is in RW drive.
   133 //!                  		(2) Try to upgrade to version 9 while DLL is loaded.
   134 //!                  		(3) Use the resolver to get it in cache.
   135 //!                  		(4) Install version 9 of the resolver DLL.
   136 //!							(5) Check ECom uses version 9 of the resolver.
   137 //!							(6) Uninstall cachedcustomresolver.
   138 //! 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 
   139 //! not necessary to run this particular test on winscw as we do not end up with the DLL upgraded or
   140 //!     both the DLL and the .rsc upgraded. This may be a limitation of Windows.
   141 //!     Any how cachedcustomresolver is completely uninstalled and version 2 reinstalled 
   142 //!		to ensure we have the correct files.
   143 //!
   144 //!@SYMTestExpectedResults	(1) Version 2 is installed successfully.
   145 //!                  		(2) SWI fails with KErrAccessDenied
   146 //!                  		(3) ECom instantiates the correct version, i.e. 2.
   147 //!                  		(4) Version 9 is successfully installed.
   148 //!                  		(5) ECom instantiate the correct version.
   149 //!                  		(6) Uninstall is successful.
   150 //!@SYMCR					CR1182
   151 
   152 
   153 	// Need a tef server with no capabilities to avoid platsec errors in listing custom resolvers
   154 	RUN_TEST_STEP 100 TEFPlatSec SetCapabilities Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini MakeNoCapServer
   155 	DELAY 2000
   156 	LOAD_SUITE ecomswinocapserver
   157 
   158 	RUN_TEST_STEP 100 TE_EComSWITestSuite ResolverInstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini Install_CustomResolver2
   159 	RUN_TEST_STEP 100 ecomswinocapserver UseCustomResolverStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CheckVersion2
   160 	//RUN_TEST_STEP 100 TE_EComSWITestSuite ResolverInstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini FailInstall_CustomResolver9
   161 	RUN_TEST_STEP 100 TE_EComSWITestSuite ResolverUninstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallCustomResolver
   162 	RUN_TEST_STEP 100 TE_EComSWITestSuite ResolverInstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini Install_CustomResolver2
   163 	RUN_TEST_STEP 100 ecomswinocapserver UseCustomResolverStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CheckVersion2
   164 	RUN_TEST_STEP 100 TE_EComSWITestSuite ResolverInstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini Install_CustomResolver9
   165 	RUN_TEST_STEP 100 ecomswinocapserver UseCustomResolverStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CheckVersion9
   166 	RUN_TEST_STEP 100 TE_EComSWITestSuite ResolverUninstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallCustomResolver
   167 	RUN_TEST_STEP 100 ecomswinocapserver UseCustomResolverStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CheckVersion1
   168 	DELAY 4000
   169 	RUN_TEST_STEP 100 TEFPlatSec Cleanup Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini MakeNoCapServer
   170 END_TESTCASE  SYSLIB-ECOM-CIT-4011-0001 //CachedResolverUpgradeBySWI