|
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 //! @file |
|
17 // SWIS unit (integration) tests |
|
18 PRINT Run all SWIS tests |
|
19 LOAD_SUITE tuiscriptadaptors |
|
20 |
|
21 //! @SYMTestCaseID API-SEC-UISA-Hugecontroller-I-FH-0001 |
|
22 //! @SYMTestCaseDesc Installs a file with a very large controller |
|
23 //! @SYMTestPriority Medium |
|
24 //! @SYMTestActions Installs a file with a very large controller |
|
25 //! @SYMTestExpectedResults File installs sucessfully |
|
26 //! @SYMDevelopedForRelease Yankee |
|
27 |
|
28 START_TESTCASE API-SEC-UISA-Hugecontroller-I-FH-0001 |
|
29 |
|
30 RUN_TEST_STEP 100 tuiscriptadaptors InstallFHStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini hugecontroller |
|
31 RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini u_hugecontroller |
|
32 |
|
33 END_TESTCASE API-SEC-UISA-Hugecontroller-I-FH-0001 |
|
34 |
|
35 |
|
36 //! @SYMTestCaseID API-SEC-UISA-InsufficientSpace-I-FH-0001 |
|
37 //! @SYMTestCaseDesc Tries to install a SISX file onto a drive with insufficient free space. |
|
38 //! @SYMTestPriority Medium |
|
39 //! @SYMTestActions Fill target drive to leave very little space free, then try to install SISX file requiring more space |
|
40 //! than available to install data files. |
|
41 //! @SYMTestExpectedResults Installation fails |
|
42 //! @SYMDevelopedForRelease Yankee |
|
43 |
|
44 START_TESTCASE API-SEC-UISA-InsufficientSpace-I-FH-0001 |
|
45 |
|
46 // Create temporary file to leave very little space free on the target drive |
|
47 // Note that this can only work if the drive has less than KMaxTInt bytes free. Drive X is used on the emulator |
|
48 // and drive E on hardware. |
|
49 RUN_TEST_STEP 100 tuiscriptadaptors FillDrive z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptorsFH.ini almostfilldrive |
|
50 |
|
51 RUN_TEST_STEP_RESULT -26 100 tuiscriptadaptors InstallFHStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptorsFH.ini diskfull |
|
52 RUN_TEST_STEP_RESULT -1 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptorsFH.ini u_diskfull |
|
53 |
|
54 // Delete space hogging file for both drive X (used in emulator test) and drive E (used in hardware test); one will fail but this |
|
55 // isn't counted in the summary as a test failure. |
|
56 RUN_UTILS DeleteFile e:\BigTempFile |
|
57 RUN_UTILS DeleteFile x:\BigTempFile |
|
58 |
|
59 END_TESTCASE API-SEC-UISA-InsufficientSpace-I-FH-0001 |
|
60 |
|
61 |
|
62 //! @SYMTestCaseID API-SEC-UISA-DriveNotReady-I-FH-0001 |
|
63 //! @SYMTestCaseDesc Tries to install a SISX file onto drive q, which is not present |
|
64 //! @SYMTestPriority Medium |
|
65 //! @SYMTestActions Tries to install a SISX file onto drive q, which is not present |
|
66 //! @SYMTestExpectedResults Installation fails with -10146 |
|
67 //! @SYMDevelopedForRelease Yankee |
|
68 |
|
69 START_TESTCASE API-SEC-UISA-DriveNotReady-I-FH-0001 |
|
70 |
|
71 RUN_TEST_STEP_RESULT -10146 100 tuiscriptadaptors InstallFHStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini drivenotready |
|
72 RUN_TEST_STEP_RESULT -1 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini u_drivenotready |
|
73 |
|
74 END_TESTCASE API-SEC-UISA-DriveNotReady-I-FH-0001 |
|
75 |
|
76 |
|
77 //! @SYMTestCaseID API-SEC-UISA-InvalidSisxFile-I-FH-0001 |
|
78 //! @SYMTestCaseDesc Tries to install a script file as a SISX file |
|
79 //! @SYMTestPriority Medium |
|
80 //! @SYMTestActions Tries to install a script file as a SISX file |
|
81 //! @SYMTestExpectedResults Installation fails, appropriate dialog displayed, and error returned. |
|
82 //! @SYMDevelopedForRelease Yankee |
|
83 |
|
84 START_TESTCASE API-SEC-UISA-InvalidSisxFile-I-FH-0001 |
|
85 |
|
86 RUN_TEST_STEP_RESULT -20 100 tuiscriptadaptors InstallFHStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini invalidsisxfile |
|
87 |
|
88 END_TESTCASE API-SEC-UISA-InvalidSisxFile-I-FH-0001 |
|
89 |
|
90 |
|
91 //! @SYMTestCaseID API-SEC-UISA-InvalidFileName-I-FH-0001 |
|
92 //! @SYMTestCaseDesc Tries to install a sis file containing a filename destination which is invalid |
|
93 //! @SYMTestPriority Medium |
|
94 //! @SYMTestActions Tries to install a sis file containing a filename destination which is invalid |
|
95 //! @SYMTestExpectedResults SISX file fails to install, appropriate dialog displayed. |
|
96 //! @SYMDevelopedForRelease Yankee |
|
97 |
|
98 START_TESTCASE API-SEC-UISA-InvalidFileName-I-FH-0001 |
|
99 |
|
100 RUN_TEST_STEP_RESULT -10146 100 tuiscriptadaptors InstallFHStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini invalidfilename |
|
101 RUN_TEST_STEP_RESULT -1 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini u_invalidfilename |
|
102 |
|
103 END_TESTCASE API-SEC-UISA-InvalidFileName-I-FH-0001 |
|
104 |
|
105 |
|
106 //! @SYMTestCaseID API-SEC-UISA-DisplayText-I-FH-0001 |
|
107 //! @SYMTestCaseDesc Display a text file and install/uninstall it |
|
108 //! @SYMTestPriority Medium |
|
109 //! @SYMTestActions Display text file and install/uninstall it |
|
110 //! @SYMTestExpectedResults Display text file dialog called, file [un]installed |
|
111 //! @SYMDevelopedForRelease Yankee |
|
112 |
|
113 START_TESTCASE API-SEC-UISA-DisplayText-I-FH-0001 |
|
114 |
|
115 RUN_TEST_STEP 100 tuiscriptadaptors InstallFHStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini testdisplayinstall |
|
116 RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini u_testdisplayinstall |
|
117 |
|
118 RUN_TEST_STEP 100 tuiscriptadaptors InstallFHStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini testdisplayonly |
|
119 RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini u_testdisplayonly |
|
120 |
|
121 END_TESTCASE API-SEC-UISA-DisplayText-I-FH-0001 |
|
122 |
|
123 |
|
124 //! @SYMTestCaseID API-SEC-UISA-SimpleTest-I-FH-0001 |
|
125 //! @SYMTestCaseDesc Install text file in a simple unsigned SISX package |
|
126 //! @SYMTestPriority Critical |
|
127 //! @SYMTestActions Install a simple unsigned package |
|
128 //! @SYMTestExpectedResults Text file is installed |
|
129 //! @SYMDevelopedForRelease Yankee |
|
130 |
|
131 START_TESTCASE API-SEC-UISA-SimpleTest-I-FH-0001 |
|
132 |
|
133 /// Simple file installation from a compressed SIS file |
|
134 // Be sure that the registry entries are deleted because they may have been left |
|
135 // from previous failed test cases |
|
136 RUN_UTILS DeleteFile C:\Documents\InstTest\file1.txt |
|
137 RUN_TEST_STEP 100 tuiscriptadaptors InstallFHStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini simple |
|
138 RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini u_simple |
|
139 /// Simple file installation from a non-compressed SIS file |
|
140 RUN_UTILS DeleteFile C:\Documents\InstTest\file1.txt |
|
141 RUN_TEST_STEP 100 tuiscriptadaptors InstallFHStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini simplenc |
|
142 RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini u_simplenc |
|
143 /// Bad language selection, installation aborted |
|
144 RUN_UTILS DeleteFile C:\Documents\InstTest\file1.txt |
|
145 RUN_TEST_STEP_RESULT -3 100 tuiscriptadaptors InstallFHStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini badlangsel |
|
146 /// Bad drive selection, installation aborted |
|
147 RUN_UTILS DeleteFile C:\Documents\InstTest\file1.txt |
|
148 RUN_TEST_STEP_RESULT -3 100 tuiscriptadaptors InstallFHStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini baddrivesel |
|
149 |
|
150 END_TESTCASE API-SEC-UISA-SimpleTest-I-FH-0001 |
|
151 |
|
152 |
|
153 //! @SYMTestCaseID API-SEC-LOGOTEST-0006 |
|
154 //! @SYMTestStatus 3. Released |
|
155 |
|
156 START_TESTCASE API-SEC-LOGOTEST-0006 |
|
157 |
|
158 // Installation of a SIS file that contains a logo. |
|
159 RUN_TEST_STEP 100 tuiscriptadaptors InstallFHStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini logo |
|
160 RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini u_logo |
|
161 |
|
162 END_TESTCASE API-SEC-LOGOTEST-0006 |
|
163 |
|
164 |
|
165 // embeded tests |
|
166 |
|
167 //! @SYMTestCaseID API-SEC-UISA-EmbeddedSISFiles-I-FH-0001 |
|
168 //! @SYMTestCaseDesc Install package with embedded packages |
|
169 //! @SYMTestPriority High |
|
170 //! @SYMTestActions Install package and embedded packages |
|
171 //! @SYMTestExpectedResults Package and embedded packages installed |
|
172 //! @SYMDevelopedForRelease Yankee |
|
173 |
|
174 START_TESTCASE API-SEC-UISA-EmbeddedSISFiles-I-FH-0001 |
|
175 |
|
176 RUN_TEST_STEP 100 tuiscriptadaptors InstallFHStep z:\tswi\tuiscriptadaptors\scripts\testembedded.ini embed1 |
|
177 RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\testembedded.ini u_embed1 |
|
178 |
|
179 RUN_TEST_STEP 100 tuiscriptadaptors InstallFHStep z:\tswi\tuiscriptadaptors\scripts\testembedded.ini embed1nc |
|
180 RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\testembedded.ini u_embed1nc |
|
181 |
|
182 RUN_TEST_STEP 100 tuiscriptadaptors InstallFHStep z:\tswi\tuiscriptadaptors\scripts\testembedded.ini embed2 |
|
183 RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\testembedded.ini u_embed2 |
|
184 |
|
185 END_TESTCASE API-SEC-UISA-EmbeddedSISFiles-I-FH-0001 |
|
186 |
|
187 |
|
188 //! @SYMTestCaseID API-SEC-UISA-SignedTest-I-FH-0001 |
|
189 //! @SYMTestCaseDesc Install simple SIS file with 1 signature |
|
190 //! @SYMTestPriority Critical |
|
191 //! @SYMTestActions Files from a signed package are installed/uninstalled |
|
192 //! @SYMTestExpectedResults Files are installed/uninstalled |
|
193 //! @SYMDevelopedForRelease Yankee |
|
194 // Signed SIS tests |
|
195 |
|
196 START_TESTCASE API-SEC-UISA-SignedTest-I-FH-0001 |
|
197 |
|
198 RUN_TEST_STEP 100 tuiscriptadaptors InstallFHStep z:\tswi\tuiscriptadaptors\scripts\signed.ini longname_rsa_l1 |
|
199 RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\signed.ini u_longname_rsa_l1 |
|
200 RUN_TEST_STEP 100 tuiscriptadaptors InstallFHStep z:\tswi\tuiscriptadaptors\scripts\signed.ini optionsnc_rsa_l2 |
|
201 RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\signed.ini u_optionsnc_rsa_l2 |
|
202 |
|
203 END_TESTCASE API-SEC-UISA-SignedTest-I-FH-0001 |
|
204 |
|
205 |
|
206 //! @SYMTestCaseID API-SEC-UISA-MissingDepTest-I-FH-0001 |
|
207 //! @SYMTestCaseDesc Install SIS file with missing dependency |
|
208 //! @SYMTestPriority High |
|
209 //! @SYMTestActions Missing dependency prevents SIS package installation |
|
210 //! @SYMTestExpectedResults Files are not installed |
|
211 //! @SYMDevelopedForRelease Yankee |
|
212 // Missing dependency tests |
|
213 |
|
214 START_TESTCASE API-SEC-UISA-MissingDepTest-I-FH-0001 |
|
215 |
|
216 RUN_TEST_STEP_RESULT -10136 100 tuiscriptadaptors InstallFHStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini baddepend |
|
217 |
|
218 END_TESTCASE API-SEC-UISA-MissingDepTest-I-FH-0001 |
|
219 |
|
220 |
|
221 //! @SYMTestCaseID API-SEC-UISA-Sids-I-FH-0001 |
|
222 //! @SYMTestCaseDesc Test installation of two executables with the same SID |
|
223 //! @SYMTestPriority Medium |
|
224 //! @SYMTestActions Tries to install various combinations of executables with the same SID |
|
225 //! @SYMTestExpectedResults Only one executable with a certain SID will be allowed on the device at once |
|
226 //! @SYMDevelopedForRelease Yankee |
|
227 |
|
228 START_TESTCASE API-SEC-UISA-Sids-I-FH-0001 |
|
229 |
|
230 RUN_TEST_STEP 100 tuiscriptadaptors InstallFHStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini testsidcheck_A |
|
231 RUN_TEST_STEP_RESULT -11 100 tuiscriptadaptors InstallFHStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini testsidcheck_B_fail |
|
232 RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini u_testsidcheck_A |
|
233 |
|
234 RUN_TEST_STEP 100 tuiscriptadaptors InstallFHStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini testsidcheck_B |
|
235 RUN_TEST_STEP_RESULT -11 100 tuiscriptadaptors InstallFHStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini testsidcheck_A_fail |
|
236 RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini u_testsidcheck_B |
|
237 |
|
238 END_TESTCASE API-SEC-UISA-Sids-I-FH-0001 |
|
239 |
|
240 |
|
241 // Ensure that SWIS shuts down after the above tests to make sure heap checks run |
|
242 RUN_TEST_STEP 5 tuiscriptadaptors SwisNotRunning |