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 |
// Proactive command //
|
|
16 |
///////////////////////
|
|
17 |
|
|
18 |
// Address
|
|
19 |
// Enter the address string inside the quotes
|
|
20 |
// TypeOfNumber (Optional, default = 1, UnknownNumber)
|
|
21 |
// 0 TypeOfNumberNotSet, initialization value used within constructor(s).
|
|
22 |
// 1 UnknownNumber, the user or the network has no knowledge of the type of network.
|
|
23 |
// 2 InternationalNumber, international number.
|
|
24 |
// 3 NationalNumber, national number.
|
|
25 |
// 4 NetworkSpecificNumber, administration/service number specific to the serving network,
|
|
26 |
// e.g. used to access an operator.
|
|
27 |
// 5 DedicatedNumber, called dedicated access / short code in GSM/WCDMA. Corresponds to
|
|
28 |
// TMobileTON::ESubscriberNumber in ETel MM API.
|
|
29 |
// 6 AlphanumericNumber, alphanumeric number.
|
|
30 |
// 7 EAbbreviatedNumber, abbreviated number.
|
|
31 |
// NumberingPlan (Optional, default = 1, UnknownNumberingPlan)
|
|
32 |
// 0 NumberingPlanNotSet, initialization value used within constructor(s).
|
|
33 |
// 1 UnknownNumberingPlan, the user or the network has no knowledge of the numbering plan.
|
|
34 |
// 2 IsdnNumberPlan, ISDN / telephony numbering plan.
|
|
35 |
// 3 DataNumberPlan, data numbering plan.
|
|
36 |
// 4 TelexNumberPlan, telex numbering plan.
|
|
37 |
// 5 ServiceCentreSpecificPlan1, The service centre specific plan is used to indicate a numbering
|
|
38 |
// plan specific to External Short Message Entities attached to the SMS centre.
|
|
39 |
// 6 ServiceCentreSpecificPlan2, the service centre specific plan is used to indicate a numbering
|
|
40 |
// plan specific to External Short Message Entities attached to the SMS centre.
|
|
41 |
// 7 NationalNumberPlan, national numbering plan.
|
|
42 |
// 8 PrivateNumberPlan, private numbering plan.
|
|
43 |
// 9 ERMESNumberPlan, ERMES numbering plan.
|
|
44 |
// Example (String "+012340123456p1p2", InternationalNumber, IsdnNumberPlan):
|
|
45 |
// Address "+012340123456p1p2" 2 2
|
|
46 |
|
|
47 |
// AlphaId (Optional)
|
|
48 |
// AlphaId used in confirmation phase. Enter the text inside the quotes or as unicode hex digits.
|
|
49 |
// Example: AlphaId "abc" or AlphaId 61 62 63
|
|
50 |
|
|
51 |
// AlphaIdCallSetUpPhase (Optional)
|
|
52 |
// Enter the text inside the quotes or as unicode hex digits.
|
|
53 |
// Example: AlphaIdCallSetUpPhase "abc" or AlphaIdCallSetUpPhase 61 62 63
|
|
54 |
|
|
55 |
// CapabilityConfigParams (Optional)
|
|
56 |
// Enter the parameters as hex digits.
|
|
57 |
// Example: CapabilityConfigParams 61 62 63
|
|
58 |
|
|
59 |
// Duration (Optional, default = "No duration has been provided" )
|
|
60 |
// TimeUnit, unit used to encode the duration
|
|
61 |
// 0 TimeUnitNotSet. Initialization value used within constructor(s).
|
|
62 |
// 1 No duration has been provided. The ME should default to general beep.
|
|
63 |
// 2 The duration is expressed in minutes.
|
|
64 |
// 3 The duration is expressed in seconds.
|
|
65 |
// 4 The duration is expressed in tenths of seconds.
|
|
66 |
// NumOfUnits
|
|
67 |
// Valid range is 1 to 255
|
|
68 |
// Example 10 minutes: Duration 2 10
|
|
69 |
|
|
70 |
// IconId (Optional, default = IconId 0 0)
|
|
71 |
// IconId used in confirmation phase.
|
|
72 |
// IconQualifier
|
|
73 |
// 0 NotSet
|
|
74 |
// 1 NoIconId
|
|
75 |
// 2 SelfExplanatory
|
|
76 |
// 3 NotSelfExplanatory
|
|
77 |
// IconIdentifier
|
|
78 |
// Id number
|
|
79 |
// Example SelfExplanatory ID 5: IconId 2 5
|
|
80 |
|
|
81 |
// IconIdCallSetUpPhase (Optional, default = IconIdCallSetUpPhase 0 0)
|
|
82 |
// IconQualifier
|
|
83 |
// 0 NotSet
|
|
84 |
// 1 NoIconId
|
|
85 |
// 2 SelfExplanatory
|
|
86 |
// 3 NotSelfExplanatory
|
|
87 |
// IconIdentifier
|
|
88 |
// Id number
|
|
89 |
// Example SelfExplanatory ID 5: IconIdCallSetUpPhase 2 5
|
|
90 |
|
|
91 |
// SubAddress (Optional)
|
|
92 |
// Enter the subaddress inside the quotes or as unicode hex digits.
|
|
93 |
// Example: SubAddress "abc" or SubAddress 61 62 63
|
|
94 |
|
|
95 |
// Type (Optional, default = OnlyIfNotBusy)
|
|
96 |
// 0 SetUpCallTypeNotSet, value used in constructor.
|
|
97 |
// 1 OnlyIfNotBusy, only make the call if line is not busy.
|
|
98 |
// 2 OnlyIfNotBusyWithRedial, only make the call if line is not busy.
|
|
99 |
// Redial if call cannot be made the first time.
|
|
100 |
// 3 HoldOtherCalls, put other calls on hold then make the call.
|
|
101 |
// 4 HoldOtherCallsWithRedial, put other calls on hold then make the call.
|
|
102 |
// Redial if call cannot be made the first time.
|
|
103 |
// 5 DisconnectOtherCalls, disconnect other calls then make the call.
|
|
104 |
// 6 DisconnectOtherCallsWithRedial, disconnect other calls then make the call.
|
|
105 |
// Redial if call cannot be made the first time.
|
|
106 |
|
|
107 |
// Terminal Response //
|
|
108 |
///////////////////////
|
|
109 |
|
|
110 |
// GeneralResult
|
|
111 |
// General result of the proactive command. Default command performed successfully.
|
|
112 |
|
|
113 |
// GeneralResult2
|
|
114 |
// General result of the proactive command. Default command performed successfully.
|
|
115 |
|
|
116 |
// AdditionalInfo
|
|
117 |
// Enter the text inside the quotes or as unicode hex digits
|
|
118 |
|
|
119 |
// AdditionalInfo2
|
|
120 |
// Enter the text inside the quotes or as unicode hex digits
|
|
121 |
|
|
122 |
// InfoType
|
|
123 |
// If the value of iGeneralResult requires additional information,
|
|
124 |
// set this to MeProblem (2). Otherwise set to
|
|
125 |
// NoAdditionalInfo (1). Default no additional info.
|
|
126 |
|
|
127 |
// InfoType2
|
|
128 |
// If the value of iGeneralResult requires additional information,
|
|
129 |
// set this to MeProblem (2). Otherwise set to
|
|
130 |
// NoAdditionalInfo (1). Default no additional info.
|
|
131 |
|
|
132 |
// UssdString
|
|
133 |
// Enter the text inside the quotes or as unicode hex digits. Example: UssdString "abc" or UssdString 61 62 63
|
|
134 |
|
|
135 |
|
|
136 |
[Test]
|
|
137 |
title MOD_0014.001_SIM_ATK_TSY_[SET UP CALL - normal]
|
|
138 |
|
|
139 |
create SimAtk simatk
|
|
140 |
create SimAtkNotify notify
|
|
141 |
|
|
142 |
// open all
|
|
143 |
simatk Connect RTelServer
|
|
144 |
simatk Load PhoneTsy.tsy
|
|
145 |
simatk Open DefaultPhone
|
|
146 |
simatk Open SAT
|
|
147 |
simatk Open IscControl
|
|
148 |
|
|
149 |
// Load ISC XML -file
|
|
150 |
simatk LoadIscTests SimAtk_SetUpCall.xml
|
|
151 |
|
|
152 |
// SEQ 1.1
|
|
153 |
notify UseObjectAddress simatk ESatNotifySetUpCallPCmd
|
|
154 |
simatk RunIscTestCase 14 101
|
|
155 |
waittestclass notify
|
|
156 |
// SimAtkTsy adds '+'-sign to international calls
|
|
157 |
simatk CheckProactiveCommand Address "+012340123456p1p2" 2 2 AlphaId "Not busy"
|
|
158 |
simatk SendTerminalResponse
|
|
159 |
simatk WaitForRequest
|
|
160 |
|
|
161 |
|
|
162 |
// SEQ 1.2
|
|
163 |
notify UseObjectAddress simatk ESatNotifySetUpCallPCmd
|
|
164 |
simatk RunIscTestCase 14 102
|
|
165 |
waittestclass notify
|
|
166 |
// SimAtkTsy adds '+'-sign to international calls
|
|
167 |
simatk CheckProactiveCommand Address "+012340123456p1p2" 2 2 AlphaId "Not busy"
|
|
168 |
simatk SendTerminalResponse GeneralResult PCmdNotAcceptedByUser
|
|
169 |
simatk WaitForRequest
|
|
170 |
|
|
171 |
// SEQ 1.3
|
|
172 |
notify UseObjectAddress simatk ESatNotifySetUpCallPCmd
|
|
173 |
simatk RunIscTestCase 14 103
|
|
174 |
waittestclass notify
|
|
175 |
// SimAtkTsy adds '+'-sign to international calls
|
|
176 |
simatk CheckProactiveCommand Address "+012340123456p1p2" 2 2 Type 2 AlphaId "Not busy with redial"
|
|
177 |
// AdditionalInfo contains Cause information element returned by the network
|
|
178 |
simatk SendTerminalResponse GeneralResult NetworkUnableToProcessCmd InfoType SatNetworkErrorInfo AdditionalInfo 91
|
|
179 |
simatk WaitForRequest
|
|
180 |
|
|
181 |
// SEQ 1.4
|
|
182 |
notify UseObjectAddress simatk ESatNotifySetUpCallPCmd
|
|
183 |
simatk RunIscTestCase 14 104
|
|
184 |
waittestclass notify
|
|
185 |
// SimAtkTsy adds '+'-sign to international calls
|
|
186 |
simatk CheckProactiveCommand Address "+012340123456p1p2" 2 2 Type 3 AlphaId "On hold"
|
|
187 |
simatk SendTerminalResponse
|
|
188 |
simatk WaitForRequest
|
|
189 |
|
|
190 |
// SEQ 1.5
|
|
191 |
notify UseObjectAddress simatk ESatNotifySetUpCallPCmd
|
|
192 |
simatk RunIscTestCase 14 105
|
|
193 |
waittestclass notify
|
|
194 |
// SimAtkTsy adds '+'-sign to international calls
|
|
195 |
simatk CheckProactiveCommand Address "+012340123456p1p2" 2 2 Type 5 AlphaId "Disconnect"
|
|
196 |
simatk SendTerminalResponse
|
|
197 |
simatk WaitForRequest
|
|
198 |
|
|
199 |
// SEQ 1.6
|
|
200 |
notify UseObjectAddress simatk ESatNotifySetUpCallPCmd
|
|
201 |
simatk RunIscTestCase 14 106
|
|
202 |
waittestclass notify
|
|
203 |
// SimAtkTsy adds '+'-sign to international calls
|
|
204 |
simatk CheckProactiveCommand Address "+012340123456p1p2" 2 2 AlphaId "Not busy"
|
|
205 |
simatk SendTerminalResponse GeneralResult MeUnableToProcessCmd InfoType MeProblem AdditionalInfo MeBusyOnCall
|
|
206 |
simatk WaitForRequest
|
|
207 |
|
|
208 |
// SEQ 1.7
|
|
209 |
notify UseObjectAddress simatk ESatNotifySetUpCallPCmd
|
|
210 |
simatk RunIscTestCase 14 107
|
|
211 |
waittestclass notify
|
|
212 |
// SimAtkTsy adds '+'-sign to international calls
|
|
213 |
simatk CheckProactiveCommand Address "+012340123456p1p2" 2 2 Type 3 AlphaId "On hold"
|
|
214 |
simatk SendTerminalResponse GeneralResult NetworkUnableToProcessCmd InfoType MeProblem AdditionalInfo NoSpecificMeProblem
|
|
215 |
simatk WaitForRequest
|
|
216 |
|
|
217 |
// SEQ 1.8
|
|
218 |
notify UseObjectAddress simatk ESatNotifySetUpCallPCmd
|
|
219 |
simatk RunIscTestCase 14 108
|
|
220 |
waittestclass notify
|
|
221 |
// SimAtkTsy adds '+'-sign to international calls
|
|
222 |
simatk CheckProactiveCommand Address "+012340123456p1p2" 2 2 AlphaId "Capability config" CapabilityConfigParams 01 A0
|
|
223 |
simatk SendTerminalResponse
|
|
224 |
simatk WaitForRequest
|
|
225 |
|
|
226 |
// SEQ 1.9
|
|
227 |
notify UseObjectAddress simatk ESatNotifySetUpCallPCmd
|
|
228 |
simatk RunIscTestCase 14 109
|
|
229 |
waittestclass notify
|
|
230 |
// SimAtkTsy adds '+'-sign to international calls
|
|
231 |
simatk CheckProactiveCommand Address "+012345678901234567890123456789*#*#*#*#*#012345678901234567890123456789*#*#*#*#*#" 2 2 Type 2
|
|
232 |
simatk SendTerminalResponse
|
|
233 |
simatk WaitForRequest
|
|
234 |
|
|
235 |
// SEQ 1.10
|
|
236 |
notify UseObjectAddress simatk ESatNotifySetUpCallPCmd
|
|
237 |
simatk RunIscTestCase 14 110
|
|
238 |
waittestclass notify
|
|
239 |
// SimAtkTsy adds '+'-sign to international calls
|
|
240 |
simatk CheckProactiveCommand Address "+01" 2 2 Type 2 AlphaId "Three types are defined: - set up a call, but only if not currently busy on another call; - set up a call, putting all other calls (if any) on hold; - set up a call, disconnecting all other calls (if any) first. For each of these types, "
|
|
241 |
simatk SendTerminalResponse
|
|
242 |
simatk WaitForRequest
|
|
243 |
|
|
244 |
// SEQ 1.11B
|
|
245 |
notify UseObjectAddress simatk ESatNotifySetUpCallPCmd
|
|
246 |
simatk RunIscTestCase 14 111
|
|
247 |
allownextresult -20
|
|
248 |
waittestclass notify
|
|
249 |
simatk WaitForRequest
|
|
250 |
|
|
251 |
// SEQ 1.12
|
|
252 |
notify UseObjectAddress simatk ESatNotifySetUpCallPCmd
|
|
253 |
simatk RunIscTestCase 14 112
|
|
254 |
waittestclass notify
|
|
255 |
// SimAtkTsy adds '+'-sign to international calls
|
|
256 |
simatk CheckProactiveCommand Address "+012340123456p1p2" 2 2 Type 2 AlphaId "Duration" Duration 3 10
|
|
257 |
simatk SendTerminalResponse GeneralResult NetworkUnableToProcessCmd InfoType SatNetworkErrorInfo AdditionalInfo 91
|
|
258 |
simatk WaitForRequest
|
|
259 |
|
|
260 |
// close all
|
|
261 |
simatk Close IscControl
|
|
262 |
simatk Close SAT
|
|
263 |
simatk Unload PhoneTsy.tsy
|
|
264 |
simatk Close RTelServer
|
|
265 |
delete simatk
|
|
266 |
delete notify
|
|
267 |
[Endtest]
|
|
268 |
|
|
269 |
[Test]
|
|
270 |
title MOD_0014.002_SIM_ATK_TSY_[SET UP CALL - second alpha identifier]
|
|
271 |
|
|
272 |
create SimAtk simatk
|
|
273 |
create SimAtkNotify notify
|
|
274 |
|
|
275 |
// open all
|
|
276 |
simatk Connect RTelServer
|
|
277 |
simatk Load PhoneTsy.tsy
|
|
278 |
simatk Open DefaultPhone
|
|
279 |
simatk Open SAT
|
|
280 |
simatk Open IscControl
|
|
281 |
|
|
282 |
// Load ISC XML -file
|
|
283 |
simatk LoadIscTests SimAtk_SetUpCall.xml
|
|
284 |
|
|
285 |
// SEQ 2.1
|
|
286 |
notify UseObjectAddress simatk ESatNotifySetUpCallPCmd
|
|
287 |
simatk RunIscTestCase 14 201
|
|
288 |
waittestclass notify
|
|
289 |
// SimAtkTsy adds '+'-sign to international calls
|
|
290 |
simatk CheckProactiveCommand Address "+012340123456p1p2" 2 2 AlphaId "CONFIRMATION" AlphaIdCallSetUpPhase "CALL"
|
|
291 |
simatk SendTerminalResponse
|
|
292 |
simatk WaitForRequest
|
|
293 |
|
|
294 |
// close all
|
|
295 |
simatk Close IscControl
|
|
296 |
simatk Close SAT
|
|
297 |
simatk Unload PhoneTsy.tsy
|
|
298 |
simatk Close RTelServer
|
|
299 |
delete simatk
|
|
300 |
delete notify
|
|
301 |
[Endtest]
|
|
302 |
|
|
303 |
[Test]
|
|
304 |
title MOD_0014.003_SIM_ATK_TSY_[SET UP CALL - display of icons (Sequence B)]
|
|
305 |
|
|
306 |
create SimAtk simatk
|
|
307 |
create SimAtkNotify notify
|
|
308 |
|
|
309 |
// open all
|
|
310 |
simatk Connect RTelServer
|
|
311 |
simatk Load PhoneTsy.tsy
|
|
312 |
simatk Open DefaultPhone
|
|
313 |
simatk Open SAT
|
|
314 |
simatk Open IscControl
|
|
315 |
|
|
316 |
// Load ISC XML -file
|
|
317 |
simatk LoadIscTests SimAtk_SetUpCall.xml
|
|
318 |
|
|
319 |
// SEQ 3.1B
|
|
320 |
notify UseObjectAddress simatk ESatNotifySetUpCallPCmd
|
|
321 |
simatk RunIscTestCase 14 301
|
|
322 |
waittestclass notify
|
|
323 |
// SimAtkTsy adds '+'-sign to international calls
|
|
324 |
simatk CheckProactiveCommand Address "+012340123456p1p2" 2 2 AlphaId "Set up call Icon 3.1.1" IconId 3 1
|
|
325 |
simatk SendTerminalResponse GeneralResult SuccessRequestedIconNotDisplayed
|
|
326 |
simatk WaitForRequest
|
|
327 |
|
|
328 |
// SEQ 3.2B
|
|
329 |
notify UseObjectAddress simatk ESatNotifySetUpCallPCmd
|
|
330 |
simatk RunIscTestCase 14 302
|
|
331 |
waittestclass notify
|
|
332 |
// SimAtkTsy adds '+'-sign to international calls
|
|
333 |
simatk CheckProactiveCommand Address "+012340123456p1p2" 2 2 AlphaId "Set up call Icon 3.2.1" IconId 2 1
|
|
334 |
simatk SendTerminalResponse GeneralResult SuccessRequestedIconNotDisplayed
|
|
335 |
simatk WaitForRequest
|
|
336 |
|
|
337 |
// SEQ 3.3B
|
|
338 |
notify UseObjectAddress simatk ESatNotifySetUpCallPCmd
|
|
339 |
simatk RunIscTestCase 14 303
|
|
340 |
waittestclass notify
|
|
341 |
// SimAtkTsy adds '+'-sign to international calls
|
|
342 |
simatk CheckProactiveCommand Address "+012340123456p1p2" 2 2 AlphaId "Set up call Icon 3.3.1" IconId 3 2
|
|
343 |
simatk SendTerminalResponse GeneralResult SuccessRequestedIconNotDisplayed
|
|
344 |
simatk WaitForRequest
|
|
345 |
|
|
346 |
// SEQ 3.4B
|
|
347 |
notify UseObjectAddress simatk ESatNotifySetUpCallPCmd
|
|
348 |
simatk RunIscTestCase 14 304
|
|
349 |
waittestclass notify
|
|
350 |
// SimAtkTsy adds '+'-sign to international calls
|
|
351 |
simatk CheckProactiveCommand Address "+012340123456p1p2" 2 2 AlphaId "Set up call Icon 3.4.1" IconId 2 1 AlphaIdCallSetUpPhase "Set up call Icon 3.4.2" IconIdCallSetUpPhase 2 1
|
|
352 |
simatk SendTerminalResponse GeneralResult SuccessRequestedIconNotDisplayed
|
|
353 |
simatk WaitForRequest
|
|
354 |
|
|
355 |
// close all
|
|
356 |
simatk Close IscControl
|
|
357 |
simatk Close SAT
|
|
358 |
simatk Unload PhoneTsy.tsy
|
|
359 |
simatk Close RTelServer
|
|
360 |
delete simatk
|
|
361 |
delete notify
|
|
362 |
[Endtest]
|