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 |
// 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_1011.001_SIM_ATK_TSY_[SEND SHORT MESSAGE - normal, packing required - with header data]
|
|
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_custom.xml
|
|
110 |
|
|
111 |
notify UseObjectAddress simatk ESatNotifySendSmPCmd
|
|
112 |
simatk RunIscTestCase 1011 101
|
|
113 |
waittestclass notify
|
|
114 |
|
|
115 |
// PCmd doesn't include SMSC Address
|
|
116 |
// so address is included and used as a phone's default SMSC and it shall be used when sending SM with
|
|
117 |
// "no logging" -function.
|
|
118 |
simatk CheckProactiveCommand Address "358508771010" 2 2 AlphaId "Env. msg 01..." SmsTpdu 51 00 0B 81 10 91 56 68 07 F7 00 00 A7 0C 05 00 03 00 01 01 A8 E5 39 BD 0C
|
|
119 |
simatk SendTerminalResponse
|
|
120 |
simatk WaitForRequest
|
|
121 |
|
|
122 |
// close all
|
|
123 |
simatk Close SmsMessaging
|
|
124 |
simatk Close IscControl
|
|
125 |
simatk Close SAT
|
|
126 |
simatk Unload PhoneTsy.tsy
|
|
127 |
simatk Close RTelServer
|
|
128 |
delete simatk
|
|
129 |
delete notify
|
|
130 |
[Endtest]
|
|
131 |
|
|
132 |
// MOD_1011.002_SIM_ATK_TSY_[SEND SHORT MESSAGE - normal, invalid user data length]
|
|
133 |
//
|
|
134 |
// Precondition:
|
|
135 |
// - Detailed description can be found from Quality Center's Project: CoreSW_CASW/Module Tests/SIM ATK TSY/SimAtkTSY_testtool
|
|
136 |
//
|
|
137 |
// Script description:
|
|
138 |
// - This test case is implemented for verirying SUB 403-8042: SAT:Validity check of address field in SEND SMS proacive command.
|
|
139 |
// Invalid user data length is used in TPDU (given in xml-file), test case should return value KErrCorrupt (-20)
|
|
140 |
|
|
141 |
[Test]
|
|
142 |
title MOD_1011.002_SIM_ATK_TSY_[SEND SHORT MESSAGE - normal, invalid user data length]
|
|
143 |
|
|
144 |
create SimAtk simatk
|
|
145 |
create SimAtkNotify notify
|
|
146 |
|
|
147 |
// open all
|
|
148 |
simatk Connect RTelServer
|
|
149 |
simatk Load PhoneTsy.tsy
|
|
150 |
simatk Open DefaultPhone
|
|
151 |
simatk Open SAT
|
|
152 |
simatk Open IscControl
|
|
153 |
simatk Open SmsMessaging
|
|
154 |
|
|
155 |
// Load ISC XML -file
|
|
156 |
simatk LoadIscTests SimAtk_SendSm_custom.xml
|
|
157 |
|
|
158 |
notify UseObjectAddress simatk ESatNotifySendSmPCmd
|
|
159 |
simatk RunIscTestCase 1011 102
|
|
160 |
allownextresult -20
|
|
161 |
waittestclass notify
|
|
162 |
simatk WaitForRequest
|
|
163 |
|
|
164 |
// close all
|
|
165 |
simatk Close SmsMessaging
|
|
166 |
simatk Close IscControl
|
|
167 |
simatk Close SAT
|
|
168 |
simatk Unload PhoneTsy.tsy
|
|
169 |
simatk Close RTelServer
|
|
170 |
delete simatk
|
|
171 |
delete notify
|
|
172 |
[Endtest]
|
|
173 |
|
|
174 |
// MOD_1011.003_SIM_ATK_TSY_[SEND SHORT MESSAGE - normal, with validity period]
|
|
175 |
//
|
|
176 |
// Precondition:
|
|
177 |
// - Detailed description can be found from Quality Center's Project: CoreSW_CASW/Module Tests/SIM ATK TSY/SimAtkTSY_testtool
|
|
178 |
//
|
|
179 |
// Script description:
|
|
180 |
// - This test case verifies that different validity period formats are handled correctly.
|
|
181 |
|
|
182 |
[Test]
|
|
183 |
title MOD_1011.003_SIM_ATK_TSY_[SEND SHORT MESSAGE - normal, with validity period]
|
|
184 |
|
|
185 |
create SimAtk simatk
|
|
186 |
create SimAtkNotify notify
|
|
187 |
|
|
188 |
// open all
|
|
189 |
simatk Connect RTelServer
|
|
190 |
simatk Load PhoneTsy.tsy
|
|
191 |
simatk Open DefaultPhone
|
|
192 |
simatk Open SAT
|
|
193 |
simatk Open IscControl
|
|
194 |
simatk Open SmsMessaging
|
|
195 |
|
|
196 |
// Load ISC XML -file
|
|
197 |
simatk LoadIscTests SimAtk_SendSm_custom.xml
|
|
198 |
|
|
199 |
// Validity period relative
|
|
200 |
notify UseObjectAddress simatk ESatNotifySendSmPCmd
|
|
201 |
simatk RunIscTestCase 1011 103
|
|
202 |
allownextresult 0
|
|
203 |
waittestclass notify
|
|
204 |
simatk SendTerminalResponse
|
|
205 |
simatk WaitForRequest
|
|
206 |
|
|
207 |
// Validity period enhanced
|
|
208 |
notify UseObjectAddress simatk ESatNotifySendSmPCmd
|
|
209 |
simatk RunIscTestCase 1011 104
|
|
210 |
allownextresult 0
|
|
211 |
waittestclass notify
|
|
212 |
simatk SendTerminalResponse
|
|
213 |
simatk WaitForRequest
|
|
214 |
|
|
215 |
// Validity period absolute
|
|
216 |
notify UseObjectAddress simatk ESatNotifySendSmPCmd
|
|
217 |
simatk RunIscTestCase 1011 105
|
|
218 |
allownextresult 0
|
|
219 |
waittestclass notify
|
|
220 |
simatk SendTerminalResponse
|
|
221 |
simatk WaitForRequest
|
|
222 |
|
|
223 |
// close all
|
|
224 |
simatk Close SmsMessaging
|
|
225 |
simatk Close IscControl
|
|
226 |
simatk Close SAT
|
|
227 |
simatk Unload PhoneTsy.tsy
|
|
228 |
simatk Close RTelServer
|
|
229 |
delete simatk
|
|
230 |
delete notify
|
|
231 |
[Endtest]
|