1 // |
|
2 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 // All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of the License "Eclipse Public License v1.0" |
|
6 // which accompanies this distribution, and is available |
|
7 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 // |
|
9 // Initial Contributors: |
|
10 // Nokia Corporation - initial contribution. |
|
11 // |
|
12 // Contributors: |
|
13 // |
|
14 // Description: |
|
15 // |
|
16 // Integration tests for Post manufacture installation of a Layered Execution |
|
17 // Environment run on hardware only. This is because a LEE must register a MIME |
|
18 // type recognizer in order to be invoked by the SIF. A MIME type recognizer is |
|
19 // an ECOM plug-in that cannot be uninstalled properly on the WINSCW Emulator. |
|
20 // This is because Windows locks dlls being loaded and therefore uninstallation |
|
21 // of an ECOM plug-in fails. |
|
22 // However, if you really want to launch the test below, please ensure that: |
|
23 // 1) folder \epoc32\release\winscw\udeb\z\resource\plugins doesn't contain |
|
24 // the following files: files testnonnativeplugin2.rsc, tsifpkgrec.rsc |
|
25 // 2) folder \epoc32\release\winscw\udeb doesn't contain the following files: |
|
26 // files testnonnativeplugin2.dll, tsifpkgrec.dll |
|
27 // 3) z:\resource\swicertstore.dat allows for installation of packages with |
|
28 // the TrustedUI and ProtServ capabilities. In order to do this, please overwrite |
|
29 // this file with security\swi\test\tsisfile\data\signedsis\swicertstore.dat |
|
30 |
|
31 PRINT Run integration tests for Post manufacture installation of a Layered Execution Environment |
|
32 |
|
33 // Delete the SCR Database file |
|
34 LOAD_SUITE tscr |
|
35 RUN_TEST_STEP 100 tscr SCRDeleteDbFile z:\tusif\tscr\tscr.ini db_file |
|
36 |
|
37 LOAD_SUITE tUsifSuite |
|
38 |
|
39 //################################################################################ |
|
40 // This test case installs a Layered Execution Environment and in turn uses |
|
41 // it to install a non-native package. Finally, the test uninstalls both packages. |
|
42 //################################################################################ |
|
43 //! @SYMTestCaseID API-SEC-USIF-tsifswtypeintegration-0001 |
|
44 //! @SYMTestStatus 3. Released |
|
45 |
|
46 START_TESTCASE API-SEC-USIF-tsifswtypeintegration-0001 |
|
47 |
|
48 // Install the LEE |
|
49 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifySwTypePackageNonExistence |
|
50 RUN_TEST_STEP !Result=-10303 100 tUsifSuite SifInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini NonNativeInstallByFileName |
|
51 RUN_TEST_STEP 100 tUsifSuite SifInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini InstallSwTypeByFileName |
|
52 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifySwTypePackageExistence |
|
53 |
|
54 // Wait 3 seconds in order to let AppArc discover the MIME type recognizer we have just installed as part of LEE |
|
55 DELAY 3000 |
|
56 |
|
57 // Install and uninstall the non-native package |
|
58 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifyNonNativePackageNonExistence |
|
59 RUN_TEST_STEP 100 tUsifSuite SifInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini NonNativeInstallByFileName |
|
60 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifyNonNativePackageExistence |
|
61 RUN_TEST_STEP 100 tUsifSuite SifUninstallStep z:\tusif\tswtype\tsifswtypeintegration.ini NonNativeUninstallByNameAndVendor |
|
62 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifyNonNativePackageNonExistence |
|
63 |
|
64 // Uninstall the LEE |
|
65 RUN_TEST_STEP 100 tUsifSuite SifUninstallStep z:\tusif\tswtype\tsifswtypeintegration.ini UninstallSwTypeByNameAndVendor |
|
66 RUN_TEST_STEP !Result=-10303 100 tUsifSuite SifInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini NonNativeInstallByFileName |
|
67 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifySwTypePackageNonExistence |
|
68 |
|
69 END_TESTCASE API-SEC-USIF-tsifswtypeintegration-0001 |
|
70 |
|
71 |
|
72 //#################################################################################### |
|
73 // This test case installs a base package containing a Layered Execution Environment |
|
74 // and in turn uses it to install and uninstall a non-native package. Then, it |
|
75 // installs an upgrade package of the LEE and in turn uses it to install and uninstall |
|
76 // the non-native package again. Finally, the test uninstalls the LEE. |
|
77 //#################################################################################### |
|
78 //! @SYMTestCaseID API-SEC-USIF-tsifswtypeintegration-0002 |
|
79 //! @SYMTestStatus 3. Released |
|
80 |
|
81 START_TESTCASE API-SEC-USIF-tsifswtypeintegration-0002 |
|
82 |
|
83 // Install the LEE |
|
84 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifySwTypePackageNonExistence |
|
85 RUN_TEST_STEP !Result=-10303 100 tUsifSuite SifInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini NonNativeInstallByFileName |
|
86 RUN_TEST_STEP 100 tUsifSuite SifInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini InstallSwTypeByFileName |
|
87 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifySwTypePackageExistence |
|
88 |
|
89 // Wait 3 seconds in order to let AppArc discover the MIME type recognizer we have just installed |
|
90 DELAY 3000 |
|
91 |
|
92 // Install and uninstall the non-native package |
|
93 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifyNonNativePackageNonExistence |
|
94 RUN_TEST_STEP 100 tUsifSuite SifInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini NonNativeInstallByFileName |
|
95 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifyNonNativePackageExistence |
|
96 RUN_TEST_STEP 100 tUsifSuite SifUninstallStep z:\tusif\tswtype\tsifswtypeintegration.ini NonNativeUninstallByNameAndVendor |
|
97 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifyNonNativePackageNonExistence |
|
98 |
|
99 // Upgrade the LEE |
|
100 RUN_TEST_STEP 100 tUsifSuite SifInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini InstallUpgradeSwTypeByFileName |
|
101 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifyUpgradeSwTypePackageExistence |
|
102 |
|
103 // Wait 3 seconds in order to let AppArc re-discover the MIME type recognizer we have just installed |
|
104 DELAY 3000 |
|
105 |
|
106 // Install and uninstall the non-native package |
|
107 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifyNonNativePackageNonExistence |
|
108 RUN_TEST_STEP 100 tUsifSuite SifInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini NonNativeInstallByFileName |
|
109 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifyNonNativePackageExistence |
|
110 RUN_TEST_STEP 100 tUsifSuite SifUninstallStep z:\tusif\tswtype\tsifswtypeintegration.ini NonNativeUninstallByNameAndVendor |
|
111 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifyNonNativePackageNonExistence |
|
112 |
|
113 // Uninstall the LEE |
|
114 RUN_TEST_STEP 100 tUsifSuite SifUninstallStep z:\tusif\tswtype\tsifswtypeintegration.ini UninstallSwTypeByNameAndVendor |
|
115 RUN_TEST_STEP !Result=-10303 100 tUsifSuite SifInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini NonNativeInstallByFileName |
|
116 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifySwTypePackageNonExistence |
|
117 |
|
118 END_TESTCASE API-SEC-USIF-tsifswtypeintegration-0002 |
|
119 |
|
120 //################################################################################ |
|
121 // This test case installs a Layered Execution Environment. Then this LEE is |
|
122 // backuped and restored and in turn used to install and uninstall a non-native |
|
123 // package. Finally, the test uninstalls the LEE. |
|
124 //################################################################################ |
|
125 //! @SYMTestCaseID API-SEC-USIF-tsifswtypeintegration-0003 |
|
126 //! @SYMTestStatus 3. Released |
|
127 |
|
128 START_TESTCASE API-SEC-USIF-tsifswtypeintegration-0003 |
|
129 |
|
130 LOAD_SUITE tbackuprestore |
|
131 |
|
132 // Make sure the test directory exists |
|
133 RUN_UTILS MkDir c:\tswi\ |
|
134 RUN_UTILS MkDir c:\tswi\tbackuprestore\ |
|
135 |
|
136 // Install the LEE |
|
137 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifySwTypePackageNonExistence |
|
138 RUN_TEST_STEP !Result=-10303 100 tUsifSuite SifInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini NonNativeInstallByFileName |
|
139 RUN_TEST_STEP 100 tUsifSuite SifInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini InstallSwTypeByFileName |
|
140 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifySwTypePackageExistence |
|
141 |
|
142 // Wait 3 seconds in order to let AppArc discover the MIME type recognizer we have just installed as part of LEE |
|
143 DELAY 3000 |
|
144 |
|
145 // Backup the LEE |
|
146 RUN_TEST_STEP 100 tbackuprestore BACKUP z:\tusif\tswtype\tsifswtypeintegration.ini BackupRestoreSoftwareType |
|
147 |
|
148 // Uninstall the LEE |
|
149 RUN_TEST_STEP 100 tUsifSuite SifUninstallStep z:\tusif\tswtype\tsifswtypeintegration.ini UninstallSwTypeByNameAndVendor |
|
150 RUN_TEST_STEP !Result=-10303 100 tUsifSuite SifInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini NonNativeInstallByFileName |
|
151 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifySwTypePackageNonExistence |
|
152 |
|
153 // Restore the LEE |
|
154 RUN_TEST_STEP 100 tbackuprestore RESTORE z:\tusif\tswtype\tsifswtypeintegration.ini BackupRestoreSoftwareType |
|
155 |
|
156 // Wait 3 seconds in order to let AppArc discover the MIME type recognizer we have just restored as a part of the LEE |
|
157 DELAY 3000 |
|
158 |
|
159 // Install and uninstall the non-native package |
|
160 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifyNonNativePackageNonExistence |
|
161 RUN_TEST_STEP 100 tUsifSuite SifInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini NonNativeInstallByFileName |
|
162 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifyNonNativePackageExistence |
|
163 RUN_TEST_STEP 100 tUsifSuite SifUninstallStep z:\tusif\tswtype\tsifswtypeintegration.ini NonNativeUninstallByNameAndVendor |
|
164 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifyNonNativePackageNonExistence |
|
165 |
|
166 // Uninstall the LEE |
|
167 RUN_TEST_STEP 100 tUsifSuite SifUninstallStep z:\tusif\tswtype\tsifswtypeintegration.ini UninstallSwTypeByNameAndVendor |
|
168 RUN_TEST_STEP !Result=-10303 100 tUsifSuite SifInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini NonNativeInstallByFileName |
|
169 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifySwTypePackageNonExistence |
|
170 |
|
171 END_TESTCASE API-SEC-USIF-tsifswtypeintegration-0003 |
|
172 |
|
173 |
|
174 //################################################################################## |
|
175 // This test case installs a Layered Execution Environment and in turn uses it to |
|
176 // install a non-native package. Then, the test uninstalls the LEE so the non-native |
|
177 // package becomes orphaned. Finally, the test installs the LEE again in order to |
|
178 // uninstall the non-native plugin and the LEE. |
|
179 //################################################################################## |
|
180 //! @SYMTestCaseID API-SEC-USIF-tsifswtypeintegration-0004 |
|
181 //! @SYMTestStatus 3. Released |
|
182 |
|
183 START_TESTCASE API-SEC-USIF-tsifswtypeintegration-0004 |
|
184 |
|
185 // Install the LEE |
|
186 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifySwTypePackageNonExistence |
|
187 RUN_TEST_STEP !Result=-10303 100 tUsifSuite SifInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini NonNativeInstallByFileName |
|
188 RUN_TEST_STEP 100 tUsifSuite SifInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini InstallSwTypeByFileName |
|
189 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifySwTypePackageExistence |
|
190 |
|
191 // Wait 3 seconds in order to let AppArc discover the MIME type recognizer we have just installed as part of LEE |
|
192 DELAY 3000 |
|
193 |
|
194 // Install the non-native package |
|
195 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifyNonNativePackageNonExistence |
|
196 RUN_TEST_STEP 100 tUsifSuite SifInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini NonNativeInstallByFileName |
|
197 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifyNonNativePackageExistence |
|
198 |
|
199 // Uninstall the LEE |
|
200 RUN_TEST_STEP 100 tUsifSuite SifUninstallStep z:\tusif\tswtype\tsifswtypeintegration.ini UninstallSwTypeByNameAndVendor |
|
201 RUN_TEST_STEP !Result=-10303 100 tUsifSuite SifInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini NonNativeInstallByFileName |
|
202 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifySwTypePackageNonExistence |
|
203 |
|
204 // Install the LEE again |
|
205 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifySwTypePackageNonExistence |
|
206 RUN_TEST_STEP !Result=-10303 100 tUsifSuite SifInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini NonNativeInstallByFileName |
|
207 RUN_TEST_STEP 100 tUsifSuite SifInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini InstallSwTypeByFileName |
|
208 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifySwTypePackageExistence |
|
209 |
|
210 // Wait 3 seconds in order to let AppArc discover the MIME type recognizer we have just installed as part of LEE |
|
211 DELAY 3000 |
|
212 |
|
213 // Uninstall the non-native package |
|
214 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifyNonNativePackageExistence |
|
215 RUN_TEST_STEP 100 tUsifSuite SifUninstallStep z:\tusif\tswtype\tsifswtypeintegration.ini NonNativeUninstallByNameAndVendor |
|
216 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifyNonNativePackageNonExistence |
|
217 |
|
218 // Uninstall the LEE |
|
219 RUN_TEST_STEP 100 tUsifSuite SifUninstallStep z:\tusif\tswtype\tsifswtypeintegration.ini UninstallSwTypeByNameAndVendor |
|
220 RUN_TEST_STEP !Result=-10303 100 tUsifSuite SifInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini NonNativeInstallByFileName |
|
221 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifySwTypePackageNonExistence |
|
222 |
|
223 END_TESTCASE API-SEC-USIF-tsifswtypeintegration-0004 |
|
224 |
|
225 |
|
226 //################################################################################## |
|
227 // Tests the default uninstaller. The test case installs a Layered Execution |
|
228 // Environment (LEE) and uses it to install a non-native package. The LEE is then |
|
229 // uninstalled. It then tries to uninstall the non-native package using the default |
|
230 // uninstaller provided in SIF Utils Library |
|
231 //################################################################################## |
|
232 //! @SYMTestCaseID API-SEC-USIF-tsifswtypeintegration-0005 |
|
233 //! @SYMTestStatus 3. Released |
|
234 |
|
235 START_TESTCASE API-SEC-USIF-tsifswtypeintegration-0005 |
|
236 |
|
237 // Install the LEE |
|
238 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifySwTypePackageNonExistence |
|
239 RUN_TEST_STEP 100 tUsifSuite SifInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini InstallSwTypeByFileName |
|
240 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifySwTypePackageExistence |
|
241 |
|
242 // Wait 3 seconds in order to let AppArc discover the MIME type recognizer we have just installed as part of LEE |
|
243 DELAY 3000 |
|
244 |
|
245 // Install the non-native package |
|
246 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifyNonNativePackageNonExistence |
|
247 RUN_TEST_STEP 100 tUsifSuite SifInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini NonNativeInstallByFileName |
|
248 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifyNonNativePackageExistence |
|
249 |
|
250 // Uninstall the LEE |
|
251 RUN_TEST_STEP 100 tUsifSuite SifUninstallStep z:\tusif\tswtype\tsifswtypeintegration.ini UninstallSwTypeByNameAndVendor |
|
252 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifySwTypePackageNonExistence |
|
253 |
|
254 // Uninstall the non-native package |
|
255 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifyNonNativePackageExistence |
|
256 RUN_TEST_STEP 100 tUsifSuite SifUninstallStep z:\tusif\tswtype\tsifswtypeintegration.ini NonNativeUninstallByNameAndVendorNoOpaque |
|
257 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifyNonNativePackageNonExistence |
|
258 |
|
259 END_TESTCASE API-SEC-USIF-tsifswtypeintegration-0005 |
|
260 |
|
261 |
|
262 //################################################################################## |
|
263 // This test case installs a Layered Execution Environment and in turn uses it to |
|
264 // install a non-native package through the RApaLsSession::StartDocument() API. |
|
265 // Then, the test uninstalls the LEE so the non-native package becomes orphaned. |
|
266 // Finally, the test installs the LEE again in order to uninstall the non-native |
|
267 // plugin and the LEE. |
|
268 //################################################################################## |
|
269 //! @SYMTestCaseID API-SEC-USIF-tsifswtypeintegration-0006 |
|
270 //! @SYMTestStatus 3. Released |
|
271 |
|
272 START_TESTCASE API-SEC-USIF-tsifswtypeintegration-0006 |
|
273 |
|
274 // Install the LEE |
|
275 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifySwTypePackageNonExistence |
|
276 RUN_TEST_STEP !Result=-10303 100 tUsifSuite SifInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini NonNativeInstallByFileName |
|
277 RUN_TEST_STEP 100 tUsifSuite SifInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini InstallSwTypeByFileName |
|
278 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifySwTypePackageExistence |
|
279 |
|
280 // Wait 3 seconds in order to let AppArc discover the MIME type recognizer we have just installed as part of LEE |
|
281 DELAY 3000 |
|
282 |
|
283 // Install the non-native package |
|
284 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifyNonNativePackageNonExistence |
|
285 RUN_TEST_STEP 100 tUsifSuite SifGenericBrowserInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini GenericBrowserInstallByFileName |
|
286 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifyNonNativePackageExistence |
|
287 |
|
288 // Uninstall the non-native package |
|
289 RUN_TEST_STEP 100 tUsifSuite SifUninstallStep z:\tusif\tswtype\tsifswtypeintegration.ini NonNativeUninstallByNameAndVendor |
|
290 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifyNonNativePackageNonExistence |
|
291 |
|
292 // Uninstall the LEE |
|
293 RUN_TEST_STEP 100 tUsifSuite SifUninstallStep z:\tusif\tswtype\tsifswtypeintegration.ini UninstallSwTypeByNameAndVendor |
|
294 RUN_TEST_STEP !Result=-10303 100 tUsifSuite SifInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini NonNativeInstallByFileName |
|
295 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifySwTypePackageNonExistence |
|
296 |
|
297 END_TESTCASE API-SEC-USIF-tsifswtypeintegration-0006 |
|
298 |
|
299 |
|
300 //################################################################################## |
|
301 // Tests the actvation of package after uninstalling LEE . The test case installs a |
|
302 // Layered Execution Environment (LEE) and uses it to install a non-native package. |
|
303 // Then uninstall LEE and try to activat SCOMO state and then uninstall non-native |
|
304 // package using the default uninstaller provided in SIF Utils Library |
|
305 //################################################################################## |
|
306 START_TESTCASE SEC-USIF-tsifswtypeintegration-0007 |
|
307 |
|
308 // Install the LEE |
|
309 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifySwTypePackageNonExistence |
|
310 RUN_TEST_STEP 100 tUsifSuite SifInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini InstallSwTypeByFileName |
|
311 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifySwTypePackageExistence |
|
312 |
|
313 // Wait 3 seconds in order to let AppArc discover the MIME type recognizer we have just installed as part of LEE |
|
314 DELAY 3000 |
|
315 |
|
316 // Install the non-native package |
|
317 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifyNonNativePackageNonExistence |
|
318 RUN_TEST_STEP 100 tUsifSuite SifInstallStep z:\tusif\tswtype\tsifswtypeintegration.ini NonNativeInstallByFileName |
|
319 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifyNonNativePackageExistence |
|
320 |
|
321 // Uninstall the LEE |
|
322 RUN_TEST_STEP 100 tUsifSuite SifUninstallStep z:\tusif\tswtype\tsifswtypeintegration.ini UninstallSwTypeByNameAndVendor |
|
323 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifySwTypePackageNonExistence |
|
324 |
|
325 //Activate SCOMO state |
|
326 RUN_TEST_STEP !Result=-1 100 tUsifSuite SifActivateStep z:\tusif\tswtype\tsifswtypeintegration.ini ActivateTestPackage |
|
327 |
|
328 // Uninstall the non-native package |
|
329 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifyNonNativePackageExistence |
|
330 RUN_TEST_STEP 100 tUsifSuite SifUninstallStep z:\tusif\tswtype\tsifswtypeintegration.ini NonNativeUninstallByNameAndVendorNoOpaque |
|
331 RUN_TEST_STEP 100 tUsifSuite SifCommonVerificationStep z:\tusif\tswtype\tsifswtypeintegration.ini VerifyNonNativePackageNonExistence |
|
332 |
|
333 END_TESTCASE SEC-USIF-tsifswtypeintegration-0007 |
|
334 |
|
335 // Wait 3 seconds in order to let the SIF server shutdown itself |
|
336 DELAY 3000 |
|
337 |
|
338 PRINT Complate_te_Sif_Tests |
|