os/ossrv/lowlevellibsandfws/pluginfw/TestExecute/EComSWITests/scripts/TE_EComSWITestARM.script
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
18 PRINT Run ECom SWI Install-Plugin Te_EComSWISuite Suite Tests
20 LOAD_SUITE TE_EComSWITestSuite
26 START_TESTCASE SYSLIB-ECOM-CIT-1889
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
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
43 RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P1
45 RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin1
47 RUN_TEST_STEP 100 TE_EComSWITestSuite UninstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallARMP1
49 RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P1_UNINSTALL
51 END_TESTCASE SYSLIB-ECOM-CIT-1889
53 START_TESTCASE SYSLIB-ECOM-CIT-1890
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
59 //!@SYMTestPriority High
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.
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.
78 RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P3
80 RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin3
82 RUN_TEST_STEP 100 TE_EComSWITestSuite InstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini InstallUpgrade_ARMSISP3
84 RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P3_UPGRADE
86 RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin3Upgrade
88 RUN_TEST_STEP 100 TE_EComSWITestSuite UninstallStepPackageName Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallUpgradeARMP3
90 RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P3
92 RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin3
95 END_TESTCASE SYSLIB-ECOM-CIT-1890
99 START_TESTCASE SYSLIB-ECOM-CIT-1891
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
109 //!@SYMTestExpectedResults (1) The files are installed.
110 //! (2) Query returns no implementations are available.
111 //! (3) The files are removed
115 RUN_TEST_STEP 100 TE_EComSWITestSuite InstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini Install_ARMSISP2
117 RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P2
119 RUN_TEST_STEP 100 TE_EComSWITestSuite UninstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallARMP2
121 END_TESTCASE SYSLIB-ECOM-CIT-1891
124 START_TESTCASE SYSLIB-ECOM-CIT-1919
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
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
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.
155 RUN_TEST_STEP 100 TE_EComSWITestSuite InstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini Install_ARMSISP1
157 RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P1
159 RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin1
161 RUN_TEST_STEP 100 TE_EComSWITestSuite InstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini InstallUpgrade_ARMSISP1
163 RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_UPGRADE_P1_ARM
165 RUN_TEST_STEP 100 TE_EComSWITestSuite CheckCreateImpl_ImpId_DtorId_Step Z:\TEF_EComSWI\ECom-SWI-UsePlugin.ini UsePlugin1Upgrade
167 RUN_TEST_STEP 100 TE_EComSWITestSuite UninstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallUpgradeARMP1
169 RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_UPGRADE_P1_UNINSTALL
171 RUN_TEST_STEP 100 TE_EComSWITestSuite UninstallStep Z:\TEF_EComSWI\ECom-SWI-Install.ini UnInstallARMP1
173 RUN_TEST_STEP 100 TE_EComSWITestSuite CheckListImplUidStep Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini CHECK_P1_UNINSTALL
176 END_TESTCASE SYSLIB-ECOM-CIT-1919
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.
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.
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
200 LOAD_SUITE ecomswinocapserver
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
209 RUN_TEST_STEP 100 TEFPlatSec Cleanup Z:\TEF_EComSWI\ECom-SWI-CheckPlugin.ini MakeNoCapServer
210 END_TESTCASE SYSLIB-ECOM-CIT-4011 //CachedResolverUpgradeBySWI