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 // Proactive command // |
|
22 /////////////////////// |
|
23 |
|
24 // AlphaId (Optional) |
|
25 // Enter the text inside the quotes or as unicode hex digits. Example: AlphaId "abc" or AlphaId 61 62 63 |
|
26 |
|
27 // Address |
|
28 // Enter the destination number inside the quotes |
|
29 // TypeOfNumber (Optional, default = 1, UnknownNumber) |
|
30 // 0 TypeOfNumberNotSet, initialization value used within constructor(s). |
|
31 // 1 UnknownNumber, the user or the network has no knowledge of the type of network. |
|
32 // 2 InternationalNumber, international number. |
|
33 // 3 NationalNumber, national number. |
|
34 // 4 NetworkSpecificNumber, administration/service number specific to the serving network, |
|
35 // e.g. used to access an operator. |
|
36 // 5 DedicatedNumber, called dedicated access / short code in GSM/WCDMA. Corresponds to |
|
37 // TMobileTON::ESubscriberNumber in ETel MM API. |
|
38 // 6 AlphanumericNumber, alphanumeric number. |
|
39 // 7 EAbbreviatedNumber, abbreviated number. |
|
40 // NumberingPlan (Optional, default = 1, UnknownNumberingPlan) |
|
41 // 0 NumberingPlanNotSet, initialization value used within constructor(s). |
|
42 // 1 UnknownNumberingPlan, the user or the network has no knowledge of the numbering plan. |
|
43 // 2 IsdnNumberPlan, ISDN / telephony numbering plan. |
|
44 // 3 DataNumberPlan, data numbering plan. |
|
45 // 4 TelexNumberPlan, telex numbering plan. |
|
46 // 5 ServiceCentreSpecificPlan1, The service centre specific plan is used to indicate a numbering |
|
47 // plan specific to External Short Message Entities attached to the SMS centre. |
|
48 // 6 ServiceCentreSpecificPlan2, the service centre specific plan is used to indicate a numbering |
|
49 // plan specific to External Short Message Entities attached to the SMS centre. |
|
50 // 7 NationalNumberPlan, national numbering plan. |
|
51 // 8 PrivateNumberPlan, private numbering plan. |
|
52 // 9 ERMESNumberPlan, ERMES numbering plan. |
|
53 // Example (Number "123456789", InternationalNumber, DataNumberPlan): |
|
54 // Address "123456789" 2 3 |
|
55 // NOTE! Address field has two different functionalities in SendSm-command. If proactive command provides |
|
56 // SMSC, the address field is used to validate the SMSC. However, if SMSC is missing from proactive command, |
|
57 // the address field is used as a phone's default SMSC and it shall be used when sending SM with |
|
58 // "no logging" -function. |
|
59 |
|
60 // IconId (Optional, default = IconId 0 0) |
|
61 // IconQualifier |
|
62 // 0 NotSet |
|
63 // 1 NoIconId |
|
64 // 2 SelfExplanatory |
|
65 // 3 NotSelfExplanatory |
|
66 // IconIdentifier |
|
67 // Id number |
|
68 // Example SelfExplanatory ID 5: IconId 2 5 |
|
69 |
|
70 // SmsTpdu |
|
71 // Messages SMSTPDU block in hexadecimal numbers |
|
72 // Example: SmsTpdu 01 00 09 91 10 32 54... |
|
73 |
|
74 // SmsResult (Optional, default = 0, KErrNone ) |
|
75 // Defines expected return value for SendMessageNoLogging method |
|
76 // Example: SmsResult -8302 |
|
77 |
|
78 |
|
79 // Terminal Response // |
|
80 /////////////////////// |
|
81 |
|
82 // GeneralResult |
|
83 // General result of the proactive command. Default command performed successfully. |
|
84 |
|
85 // AdditionalInfo |
|
86 // Enter the text inside the quotes or as unicode hex digits |
|
87 |
|
88 // InfoType |
|
89 // If the value of iGeneralResult requires additional information, |
|
90 // set this to MeProblem (2). Otherwise set to |
|
91 // NoAdditionalInfo (1). Default no additional info. |
|
92 |
|
93 |
|
94 [Test] |
|
95 title MOD_0011.001_SIM_ATK_TSY_[SEND SHORT MESSAGE - normal] |
|
96 |
|
97 create SimAtk simatk |
|
98 create SimAtkNotify notify |
|
99 |
|
100 // open all |
|
101 simatk Connect RTelServer |
|
102 simatk Load PhoneTsy.tsy |
|
103 simatk Open DefaultPhone |
|
104 simatk Open SAT |
|
105 simatk Open IscControl |
|
106 simatk Open SmsMessaging |
|
107 |
|
108 // Load ISC XML -file |
|
109 simatk LoadIscTests SimAtk_SendSm.xml |
|
110 |
|
111 // SEQ 1.1 |
|
112 notify UseObjectAddress simatk ESatNotifySendSmPCmd |
|
113 simatk RunIscTestCase 11 101 |
|
114 waittestclass notify |
|
115 simatk CheckProactiveCommand Address "112233445566778" 2 2 AlphaId "Send SM" SmsTpdu 01 00 09 91 10 32 54 76 F8 40 F4 0C 54 65 73 74 20 4D 65 73 73 61 67 65 |
|
116 simatk SendTerminalResponse |
|
117 simatk WaitForRequest |
|
118 |
|
119 // SEQ 1.2 |
|
120 notify UseObjectAddress simatk ESatNotifySendSmPCmd |
|
121 simatk RunIscTestCase 11 102 |
|
122 waittestclass notify |
|
123 simatk CheckProactiveCommand Address "112233445566778" 2 2 AlphaId "Send SM" SmsTpdu 01 00 09 91 10 32 54 76 F8 40 F0 07 D3 B2 9B 0C 9A 36 01 |
|
124 simatk SendTerminalResponse |
|
125 simatk WaitForRequest |
|
126 |
|
127 // SEQ 1.3 |
|
128 notify UseObjectAddress simatk ESatNotifySendSmPCmd |
|
129 simatk RunIscTestCase 11 103 |
|
130 waittestclass notify |
|
131 simatk CheckProactiveCommand Address "112233445566778" 2 2 AlphaId "Short Message" SmsTpdu 01 00 09 91 10 32 54 76 F8 40 F0 0D 53 F4 5B 4E 07 35 CB F3 79 F8 5C 06 |
|
132 simatk SendTerminalResponse |
|
133 simatk WaitForRequest |
|
134 |
|
135 // SEQ 1.4 |
|
136 notify UseObjectAddress simatk ESatNotifySendSmPCmd |
|
137 simatk RunIscTestCase 11 104 |
|
138 waittestclass notify |
|
139 simatk CheckProactiveCommand Address "112233445566778" 2 2 AlphaId "The address data object holds the RP_Destination_Address" SmsTpdu 01 00 09 91 10 32 54 76 F8 40 F0 A0 D4 FB 1B 44 CF C3 CB 73 50 58 5E 06 91 CB E6 B4 BB 4C D6 81 5A A0 20 68 8E 7E CB E9 A0 76 79 3E 0F 9F CB 20 FA 1B 24 2E 83 E6 65 37 1D 44 7F 83 E8 E8 32 C8 5D A6 DF DF F2 35 28 ED 06 85 DD A0 69 73 DA 9A 56 85 CD 24 15 D4 2E CF E7 E1 73 99 05 7A CB 41 61 37 68 DA 9C B6 86 CF 66 33 E8 24 82 DA E5 F9 3C 7C 2E B3 40 77 74 59 5E 06 D1 D1 65 50 7D 5E 96 83 C8 61 7A 18 34 0E BB 41 E2 32 08 1E 9E CF CB 64 10 5D 1E 76 CF E1 |
|
140 simatk SendTerminalResponse |
|
141 simatk WaitForRequest |
|
142 |
|
143 // SEQ 1.5 |
|
144 notify UseObjectAddress simatk ESatNotifySendSmPCmd |
|
145 simatk RunIscTestCase 11 105 |
|
146 waittestclass notify |
|
147 simatk CheckProactiveCommand Address "112233445566778" 2 2 AlphaId "The address data object holds the RP Destination Address" SmsTpdu 01 00 09 91 10 32 54 76 F8 40 F0 A0 D4 FB 1B 44 CF C3 CB 73 50 58 5E 06 91 CB E6 B4 BB 4C D6 81 5A A0 20 68 8E 7E CB E9 A0 76 79 3E 0F 9F CB 20 FA 1B 24 2E 83 E6 65 37 1D 44 7F 83 E8 E8 32 C8 5D A6 DF DF F2 35 28 ED 06 85 DD A0 69 73 DA 9A 56 85 CD 24 15 D4 2E CF E7 E1 73 99 05 7A CB 41 61 37 68 DA 9C B6 86 CF 66 33 E8 24 82 DA E5 F9 3C 7C 2E B3 40 77 74 59 5E 06 D1 D1 65 50 7D 5E 96 83 C8 61 7A 18 34 0E BB 41 E2 32 08 1E 9E CF CB 64 10 5D 1E 76 CF E1 |
|
148 simatk SendTerminalResponse |
|
149 simatk WaitForRequest |
|
150 |
|
151 // SEQ 1.6 |
|
152 notify UseObjectAddress simatk ESatNotifySendSmPCmd |
|
153 simatk RunIscTestCase 11 106 |
|
154 waittestclass notify |
|
155 // PCMD does not provide smsc |
|
156 simatk CheckProactiveCommand Address "1234" 1 1 AlphaId "Two types are defined: - A short message to be sent to the network in an SMS-SUBMIT message, or an SMS-COMMAND message, where the user data can be passed transparently; - A short message to be sent to the network in an SMS-SUBMIT " SmsTpdu 01 00 02 91 10 40 F0 01 20 |
|
157 simatk SendTerminalResponse |
|
158 simatk WaitForRequest |
|
159 |
|
160 // SEQ 1.7 |
|
161 notify UseObjectAddress simatk ESatNotifySendSmPCmd |
|
162 simatk RunIscTestCase 11 107 |
|
163 waittestclass notify |
|
164 simatk CheckProactiveCommand Address "112233445566778" 2 2 AlphaId "" SmsTpdu 01 00 09 91 10 32 54 76 F8 40 F4 0C 54 65 73 74 20 4D 65 73 73 61 67 65 |
|
165 simatk SendTerminalResponse |
|
166 simatk WaitForRequest |
|
167 |
|
168 // SEQ 1.8 |
|
169 notify UseObjectAddress simatk ESatNotifySendSmPCmd |
|
170 simatk RunIscTestCase 11 108 |
|
171 waittestclass notify |
|
172 simatk CheckProactiveCommand Address "112233445566778" 2 2 SmsTpdu 01 00 09 91 10 32 54 76 F8 40 F4 0C 54 65 73 74 20 4D 65 73 73 61 67 65 |
|
173 simatk SendTerminalResponse |
|
174 simatk WaitForRequest |
|
175 |
|
176 // close all |
|
177 simatk Close SmsMessaging |
|
178 simatk Close IscControl |
|
179 simatk Close SAT |
|
180 simatk Unload PhoneTsy.tsy |
|
181 simatk Close RTelServer |
|
182 delete simatk |
|
183 delete notify |
|
184 [Endtest] |
|
185 |
|
186 [Test] |
|
187 title MOD_0011.002_SIM_ATK_TSY_[SEND SHORT MESSAGE - UCS2 support] |
|
188 |
|
189 create SimAtk simatk |
|
190 create SimAtkNotify notify |
|
191 |
|
192 // open all |
|
193 simatk Connect RTelServer |
|
194 simatk Load PhoneTsy.tsy |
|
195 simatk Open DefaultPhone |
|
196 simatk Open SAT |
|
197 simatk Open IscControl |
|
198 simatk Open SmsMessaging |
|
199 |
|
200 // Load ISC XML -file |
|
201 simatk LoadIscTests SimAtk_SendSm.xml |
|
202 |
|
203 // SEQ 2.1 |
|
204 notify UseObjectAddress simatk ESatNotifySendSmPCmd |
|
205 simatk RunIscTestCase 11 201 |
|
206 waittestclass notify |
|
207 // Text in hex: "Hello" in Russia |
|
208 // Note! There seems to be a bug in the spec (3GPP TS 51.010-4 V4.2.0 (2006-09)) |
|
209 // Second byte of SMS-TPDU (TP-MR, message reference)of command is zero, not 1 a |
|
210 // specified in the spec (SMS-PP SEND SHORT MESSAGE Message 2.1) |
|
211 simatk CheckProactiveCommand Address "112233445566778" 2 2 AlphaId "Send SM" SmsTpdu 01 00 09 91 10 32 54 76 F8 40 08 18 04 17 04 14 04 20 04 10 04 12 04 21 04 22 04 12 04 23 04 19 04 22 04 15 |
|
212 simatk SendTerminalResponse |
|
213 simatk WaitForRequest |
|
214 |
|
215 // close all |
|
216 simatk Close SmsMessaging |
|
217 simatk Close IscControl |
|
218 simatk Close SAT |
|
219 simatk Unload PhoneTsy.tsy |
|
220 simatk Close RTelServer |
|
221 delete simatk |
|
222 delete notify |
|
223 [Endtest] |
|
224 |
|
225 [Test] |
|
226 title MOD_0011.003_SIM_ATK_TSY_[SEND SHORT MESSAGE - icon support] |
|
227 |
|
228 create SimAtk simatk |
|
229 create SimAtkNotify notify |
|
230 |
|
231 // open all |
|
232 simatk Connect RTelServer |
|
233 simatk Load PhoneTsy.tsy |
|
234 simatk Open DefaultPhone |
|
235 simatk Open SAT |
|
236 simatk Open IscControl |
|
237 simatk Open SmsMessaging |
|
238 |
|
239 // Load ISC XML -file |
|
240 simatk LoadIscTests SimAtk_SendSm.xml |
|
241 |
|
242 // SEQ 3.1a |
|
243 notify UseObjectAddress simatk ESatNotifySendSmPCmd |
|
244 simatk RunIscTestCase 11 3011 |
|
245 waittestclass notify |
|
246 simatk CheckProactiveCommand IconId 2 1 Address "112233445566778" 2 2 AlphaId "NO ICON" SmsTpdu 01 00 09 91 10 32 54 76 F8 40 F4 0C 54 65 73 74 20 4D 65 73 73 61 67 65 |
|
247 simatk SendTerminalResponse |
|
248 simatk WaitForRequest |
|
249 |
|
250 // SEQ 3.1b |
|
251 notify UseObjectAddress simatk ESatNotifySendSmPCmd |
|
252 simatk RunIscTestCase 11 3012 |
|
253 waittestclass notify |
|
254 simatk CheckProactiveCommand IconId 2 1 Address "112233445566778" 2 2 AlphaId "NO ICON" SmsTpdu 01 00 09 91 10 32 54 76 F8 40 F4 0C 54 65 73 74 20 4D 65 73 73 61 67 65 |
|
255 simatk SendTerminalResponse GeneralResult SuccessRequestedIconNotDisplayed |
|
256 simatk WaitForRequest |
|
257 |
|
258 // SEQ 3.2a |
|
259 notify UseObjectAddress simatk ESatNotifySendSmPCmd |
|
260 simatk RunIscTestCase 11 3021 |
|
261 waittestclass notify |
|
262 simatk CheckProactiveCommand IconId 3 1 Address "112233445566778" 2 2 AlphaId "Send SM" SmsTpdu 01 00 09 91 10 32 54 76 F8 40 F4 0C 54 65 73 74 20 4D 65 73 73 61 67 65 |
|
263 simatk SendTerminalResponse |
|
264 simatk WaitForRequest |
|
265 |
|
266 // SEQ 3.2b |
|
267 notify UseObjectAddress simatk ESatNotifySendSmPCmd |
|
268 simatk RunIscTestCase 11 3022 |
|
269 waittestclass notify |
|
270 simatk CheckProactiveCommand IconId 3 1 Address "112233445566778" 2 2 AlphaId "Send SM" SmsTpdu 01 00 09 91 10 32 54 76 F8 40 F4 0C 54 65 73 74 20 4D 65 73 73 61 67 65 |
|
271 simatk SendTerminalResponse GeneralResult SuccessRequestedIconNotDisplayed |
|
272 simatk WaitForRequest |
|
273 |
|
274 // close all |
|
275 simatk Close SmsMessaging |
|
276 simatk Close IscControl |
|
277 simatk Close SAT |
|
278 simatk Unload PhoneTsy.tsy |
|
279 simatk Close RTelServer |
|
280 delete simatk |
|
281 delete notify |
|
282 [Endtest] |
|