0
|
1 |
//* Copyright (c) 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 the License "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 |
|
|
15 |
|
|
16 |
// Precondition:
|
|
17 |
// - Detailed description can be found from Quality Center's Project: CoreSW_CASW/Module Tests/SIM ATK TSY/SimAtkTSY_testtool
|
|
18 |
//
|
|
19 |
// Script description:
|
|
20 |
|
|
21 |
// LoadIcon
|
|
22 |
// SimType. Type of SIM used as reference
|
|
23 |
// SAT
|
|
24 |
// GCF
|
|
25 |
// ImageNumber. Which icon to load when record contains descriptions for several icons.
|
|
26 |
// 1...X
|
|
27 |
// RecordId. Which record loaded from ef_img
|
|
28 |
// 1...X
|
|
29 |
// Example Load image 1 from record 2 and use SATTS SIM data as reference: LoadIcon SAT 1 2
|
|
30 |
|
|
31 |
[Test]
|
|
32 |
title MOD_1006.001_SIM_ATK_TSY_[ICONS - SATTS]
|
|
33 |
|
|
34 |
create SimAtk simatk
|
|
35 |
|
|
36 |
// open all
|
|
37 |
simatk Connect RTelServer
|
|
38 |
simatk Load PhoneTsy.tsy
|
|
39 |
simatk Open DefaultPhone
|
|
40 |
simatk Open SAT
|
|
41 |
simatk Open IscControl
|
|
42 |
|
|
43 |
// Load ISC XML -file
|
|
44 |
simatk LoadIscTests SimAtk_Icons_custom.xml
|
|
45 |
|
|
46 |
// SEQ 1: Image 1 from Record 1
|
|
47 |
simatk RunIscTestCase 1006 101
|
|
48 |
simatk SyncIscTestCase
|
|
49 |
simatk CheckIcon LoadIcon SAT 1 1
|
|
50 |
simatk SyncIscTestCase
|
|
51 |
simatk WaitForRequest
|
|
52 |
|
|
53 |
// SEQ 2: Image 1 from Record 2
|
|
54 |
simatk RunIscTestCase 1006 102
|
|
55 |
simatk SyncIscTestCase
|
|
56 |
// Allow KerrNotFound. Record contain no image descriptions.
|
|
57 |
allownextresult -1
|
|
58 |
simatk CheckIcon LoadIcon SAT 1 2
|
|
59 |
simatk WaitForRequest
|
|
60 |
|
|
61 |
// SEQ 3: Image 1 from Record 3
|
|
62 |
simatk RunIscTestCase 1006 103
|
|
63 |
simatk SyncIscTestCase
|
|
64 |
// Allow KErrOverflow. Image loaded from SIM is intentionally larger than expected.
|
|
65 |
allownextresult -9
|
|
66 |
simatk CheckIcon LoadIcon SAT 1 3
|
|
67 |
simatk WaitForRequest
|
|
68 |
|
|
69 |
// SEQ 4: Image 2 from Record 3
|
|
70 |
simatk RunIscTestCase 1006 104
|
|
71 |
simatk SyncIscTestCase
|
|
72 |
simatk CheckIcon LoadIcon SAT 2 3
|
|
73 |
simatk SyncIscTestCase
|
|
74 |
simatk WaitForRequest
|
|
75 |
|
|
76 |
// SEQ 5: Image 1 from Record 4
|
|
77 |
simatk RunIscTestCase 1006 105
|
|
78 |
simatk SyncIscTestCase
|
|
79 |
simatk CheckIcon LoadIcon SAT 1 4
|
|
80 |
simatk SyncIscTestCase
|
|
81 |
simatk WaitForRequest
|
|
82 |
|
|
83 |
// SEQ 6: Image 2 from Record 4
|
|
84 |
simatk RunIscTestCase 1006 106
|
|
85 |
simatk SyncIscTestCase
|
|
86 |
simatk CheckIcon LoadIcon SAT 2 4
|
|
87 |
simatk SyncIscTestCase
|
|
88 |
simatk WaitForRequest
|
|
89 |
|
|
90 |
// SEQ 7: Image 3 from Record 4
|
|
91 |
simatk RunIscTestCase 1006 107
|
|
92 |
simatk SyncIscTestCase
|
|
93 |
// Allow KErrNotFound. BW image received when color icon is expected.
|
|
94 |
allownextresult -1
|
|
95 |
simatk CheckIcon LoadIcon SAT 3 4
|
|
96 |
simatk WaitForRequest
|
|
97 |
|
|
98 |
// SEQ 8: Image 1 from Record 5
|
|
99 |
simatk RunIscTestCase 1006 108
|
|
100 |
simatk SyncIscTestCase
|
|
101 |
// Allow KErrNotFound. Request icon instance file does not exist.
|
|
102 |
allownextresult -1
|
|
103 |
simatk CheckIcon LoadIcon SAT 1 5
|
|
104 |
simatk WaitForRequest
|
|
105 |
|
|
106 |
// SEQ 9: Image 2 from Record 5
|
|
107 |
simatk RunIscTestCase 1006 109
|
|
108 |
simatk SyncIscTestCase
|
|
109 |
simatk CheckIcon LoadIcon SAT 2 5
|
|
110 |
simatk SyncIscTestCase
|
|
111 |
simatk WaitForRequest
|
|
112 |
|
|
113 |
// SEQ 10: Image 1 from Record 6
|
|
114 |
simatk RunIscTestCase 1006 110
|
|
115 |
simatk SyncIscTestCase
|
|
116 |
simatk CheckIcon LoadIcon SAT 1 6
|
|
117 |
simatk SyncIscTestCase
|
|
118 |
simatk WaitForRequest
|
|
119 |
|
|
120 |
// SEQ 11: Image 2 from Record 6
|
|
121 |
simatk RunIscTestCase 1006 111
|
|
122 |
simatk SyncIscTestCase
|
|
123 |
simatk CheckIcon LoadIcon SAT 2 6
|
|
124 |
simatk SyncIscTestCase
|
|
125 |
simatk WaitForRequest
|
|
126 |
|
|
127 |
// SEQ 12: Image 1 from Record 7
|
|
128 |
simatk RunIscTestCase 1006 112
|
|
129 |
simatk SyncIscTestCase
|
|
130 |
simatk CheckIcon LoadIcon SAT 1 7
|
|
131 |
simatk SyncIscTestCase
|
|
132 |
simatk WaitForRequest
|
|
133 |
|
|
134 |
// SEQ 13: Image 1 from Record 8
|
|
135 |
simatk RunIscTestCase 1006 113
|
|
136 |
simatk SyncIscTestCase
|
|
137 |
simatk CheckIcon LoadIcon SAT 1 8
|
|
138 |
simatk SyncIscTestCase
|
|
139 |
simatk WaitForRequest
|
|
140 |
|
|
141 |
// SEQ 14: Image 1 from Record 9
|
|
142 |
simatk RunIscTestCase 1006 114
|
|
143 |
simatk SyncIscTestCase
|
|
144 |
simatk CheckIcon LoadIcon SAT 1 9
|
|
145 |
simatk SyncIscTestCase
|
|
146 |
simatk WaitForRequest
|
|
147 |
|
|
148 |
// SEQ 15: Image 1 from Record 10
|
|
149 |
simatk RunIscTestCase 1006 115
|
|
150 |
simatk SyncIscTestCase
|
|
151 |
simatk CheckIcon LoadIcon SAT 1 10
|
|
152 |
simatk SyncIscTestCase
|
|
153 |
simatk WaitForRequest
|
|
154 |
|
|
155 |
// SEQ 16: Image 1 from Record 11
|
|
156 |
simatk RunIscTestCase 1006 116
|
|
157 |
simatk SyncIscTestCase
|
|
158 |
simatk CheckIcon LoadIcon SAT 1 11
|
|
159 |
simatk SyncIscTestCase
|
|
160 |
simatk WaitForRequest
|
|
161 |
|
|
162 |
// SEQ 17: Image 1 from Record 12
|
|
163 |
simatk RunIscTestCase 1006 117
|
|
164 |
simatk SyncIscTestCase
|
|
165 |
simatk CheckIcon LoadIcon SAT 1 12
|
|
166 |
simatk SyncIscTestCase
|
|
167 |
simatk WaitForRequest
|
|
168 |
|
|
169 |
// SEQ 18: Image 2 from Record 12
|
|
170 |
simatk RunIscTestCase 1006 118
|
|
171 |
simatk SyncIscTestCase
|
|
172 |
simatk CheckIcon LoadIcon SAT 2 12
|
|
173 |
simatk SyncIscTestCase
|
|
174 |
simatk WaitForRequest
|
|
175 |
|
|
176 |
// SEQ 19: Image 3 from Record 12
|
|
177 |
simatk RunIscTestCase 1006 119
|
|
178 |
simatk SyncIscTestCase
|
|
179 |
simatk CheckIcon LoadIcon SAT 3 12
|
|
180 |
simatk SyncIscTestCase
|
|
181 |
simatk WaitForRequest
|
|
182 |
|
|
183 |
// SEQ 20: Image 1 from Record 13
|
|
184 |
simatk RunIscTestCase 1006 120
|
|
185 |
simatk SyncIscTestCase
|
|
186 |
// Allow KerrNotFound. Instance 1 in Record is intentionally invalid.
|
|
187 |
allownextresult -1
|
|
188 |
simatk CheckIcon LoadIcon SAT 1 13
|
|
189 |
simatk WaitForRequest
|
|
190 |
|
|
191 |
// SEQ 21: Image 2 from Record 13
|
|
192 |
simatk RunIscTestCase 1006 121
|
|
193 |
simatk SyncIscTestCase
|
|
194 |
simatk CheckIcon LoadIcon SAT 2 13
|
|
195 |
simatk SyncIscTestCase
|
|
196 |
simatk WaitForRequest
|
|
197 |
|
|
198 |
// SEQ 22: Image 3 from Record 13
|
|
199 |
simatk RunIscTestCase 1006 122
|
|
200 |
simatk SyncIscTestCase
|
|
201 |
// Allow KerrNotFound. Instance 3 in Record is intentionally invalid.
|
|
202 |
allownextresult -1
|
|
203 |
simatk CheckIcon LoadIcon SAT 3 13
|
|
204 |
simatk WaitForRequest
|
|
205 |
|
|
206 |
// SEQ 23: Image 1 from Record 14
|
|
207 |
simatk RunIscTestCase 1006 123
|
|
208 |
simatk SyncIscTestCase
|
|
209 |
// Allow KerrNotFound. Instance 1 in Record is intentionally invalid.
|
|
210 |
allownextresult -1
|
|
211 |
simatk CheckIcon LoadIcon SAT 1 14
|
|
212 |
simatk WaitForRequest
|
|
213 |
|
|
214 |
// SEQ 24: Image 2 from Record 14
|
|
215 |
simatk RunIscTestCase 1006 124
|
|
216 |
simatk SyncIscTestCase
|
|
217 |
// Allow KerrNotFound. Instance 1 in Record is intentionally invalid.
|
|
218 |
allownextresult -1
|
|
219 |
simatk CheckIcon LoadIcon SAT 2 14
|
|
220 |
simatk WaitForRequest
|
|
221 |
|
|
222 |
// SEQ 25: Image 1 from Record 15
|
|
223 |
simatk RunIscTestCase 1006 125
|
|
224 |
simatk SyncIscTestCase
|
|
225 |
simatk CheckIcon LoadIcon SAT 1 15
|
|
226 |
simatk SyncIscTestCase
|
|
227 |
simatk WaitForRequest
|
|
228 |
|
|
229 |
// close all
|
|
230 |
simatk Close IscControl
|
|
231 |
simatk Close SAT
|
|
232 |
simatk Close DefaultPhone
|
|
233 |
simatk Unload PhoneTsy.tsy
|
|
234 |
simatk Close RTelServer
|
|
235 |
delete simatk
|
|
236 |
[Endtest]
|
|
237 |
|
|
238 |
[Test]
|
|
239 |
title MOD_1006.002_SIM_ATK_TSY_[ICONS - GCF]
|
|
240 |
|
|
241 |
create SimAtk simatk
|
|
242 |
|
|
243 |
// open all
|
|
244 |
simatk Connect RTelServer
|
|
245 |
simatk Load PhoneTsy.tsy
|
|
246 |
simatk Open DefaultPhone
|
|
247 |
simatk Open SAT
|
|
248 |
simatk Open IscControl
|
|
249 |
|
|
250 |
// Load ISC XML -file
|
|
251 |
simatk LoadIscTests SimAtk_Icons_custom.xml
|
|
252 |
|
|
253 |
// SEQ 1: Image 1 from Record 1
|
|
254 |
simatk RunIscTestCase 1006 201
|
|
255 |
simatk SyncIscTestCase
|
|
256 |
simatk CheckIcon LoadIcon GCF 1 1
|
|
257 |
simatk SyncIscTestCase
|
|
258 |
simatk WaitForRequest
|
|
259 |
|
|
260 |
// SEQ 2: Image 1 from Record 2
|
|
261 |
simatk RunIscTestCase 1006 202
|
|
262 |
simatk SyncIscTestCase
|
|
263 |
simatk CheckIcon LoadIcon GCF 1 2
|
|
264 |
simatk SyncIscTestCase
|
|
265 |
simatk WaitForRequest
|
|
266 |
|
|
267 |
// SEQ 3: Image 1 from Record 3
|
|
268 |
simatk RunIscTestCase 1006 203
|
|
269 |
simatk SyncIscTestCase
|
|
270 |
simatk CheckIcon LoadIcon GCF 1 3
|
|
271 |
simatk SyncIscTestCase
|
|
272 |
simatk WaitForRequest
|
|
273 |
|
|
274 |
// SEQ 4: Image 1 from Record 4
|
|
275 |
simatk RunIscTestCase 1006 204
|
|
276 |
simatk SyncIscTestCase
|
|
277 |
simatk CheckIcon LoadIcon GCF 1 4
|
|
278 |
simatk SyncIscTestCase
|
|
279 |
simatk WaitForRequest
|
|
280 |
|
|
281 |
// SEQ 5: Image 1 from Record 5
|
|
282 |
simatk RunIscTestCase 1006 205
|
|
283 |
simatk SyncIscTestCase
|
|
284 |
simatk CheckIcon LoadIcon GCF 1 5
|
|
285 |
simatk SyncIscTestCase
|
|
286 |
simatk WaitForRequest
|
|
287 |
|
|
288 |
// close all
|
|
289 |
simatk Close IscControl
|
|
290 |
simatk Close SAT
|
|
291 |
simatk Close DefaultPhone
|
|
292 |
simatk Unload PhoneTsy.tsy
|
|
293 |
simatk Close RTelServer
|
|
294 |
delete simatk
|
|
295 |
[Endtest]
|