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