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 // ********************************* |
|
22 // CheckProactiveCommand parameters: |
|
23 // ********************************* |
|
24 // RefreshType (Mandatory) |
|
25 // 0 //// not set |
|
26 // 1 ///< SIM or USIM Initialization and Full File Change Notification. |
|
27 // 2 ///< SIM or USIM File Change Notification. |
|
28 // 3 ///< SIM or USIM Initialization and File Change Notification. |
|
29 // 4 ///< SIM or USIM Initialization. |
|
30 // 5 ///< GSM SIM or UICC Reset. |
|
31 // 6 ///< USIM Application Reset. |
|
32 // 7 ///< 3G Session Reset. |
|
33 |
|
34 // FileList (optional) |
|
35 // empty or missing == no files |
|
36 // Eg. FileList 6F38 6F33 6F22 |
|
37 |
|
38 // AID (Optional) |
|
39 // empty or missing == not set |
|
40 // Eg. AID A0 00 00 00 01 A1 A2 A3 |
|
41 |
|
42 [Test] |
|
43 title MOD_0008.001_SIM_ATK_TSY_[REFRESH - normal] |
|
44 |
|
45 create SimAtk simatk |
|
46 create SimAtkNotify notify1 |
|
47 create SimAtkNotify notify2 |
|
48 |
|
49 // open all |
|
50 simatk Connect RTelServer |
|
51 simatk Load PhoneTsy.tsy |
|
52 simatk Open DefaultPhone |
|
53 simatk Open SAT |
|
54 simatk Open IscControl |
|
55 |
|
56 simatk LoadIscTests SimAtk_Refresh.xml |
|
57 |
|
58 // Seq 1.1 |
|
59 print "Start seq 1.1" |
|
60 notify1 UseObjectAddress simatk ESatNotifyRefreshRequiredParam |
|
61 notify2 UseObjectAddress simatk ESatNotifyRefreshPCmd |
|
62 simatk RunIscTestCase 8 101 |
|
63 waittestclass notify1 |
|
64 // check type of refresh |
|
65 simatk CheckProactiveCommand RefreshType 04 |
|
66 // Send RefreshAllowed |
|
67 simatk SendTerminalResponse CommandType ESatNotifyRefreshRequiredParam |
|
68 // wait until PCMD is received |
|
69 waittestclass notify2 |
|
70 //Send terminal response for proactive command |
|
71 simatk SendTerminalResponse CommandType ESatNotifyRefreshPCmd |
|
72 // wait until ISC test case is completed |
|
73 simatk WaitForRequest |
|
74 |
|
75 // Seq 1.2 |
|
76 print "Start seq 1.2" |
|
77 notify1 UseObjectAddress simatk ESatNotifyRefreshRequiredParam |
|
78 notify2 UseObjectAddress simatk ESatNotifyRefreshPCmd |
|
79 simatk RunIscTestCase 8 102 |
|
80 waittestclass notify1 |
|
81 // check type of refresh |
|
82 simatk CheckProactiveCommand RefreshType 02 FileList 6F3B |
|
83 // Send RefreshAllowed |
|
84 simatk SendTerminalResponse CommandType ESatNotifyRefreshRequiredParam |
|
85 // wait until PCMD is received |
|
86 waittestclass notify2 |
|
87 //Send terminal response for proactive command |
|
88 simatk SendTerminalResponse CommandType ESatNotifyRefreshPCmd GeneralResult 03 |
|
89 // wait until ISC test case is completed |
|
90 simatk WaitForRequest |
|
91 |
|
92 // Seq 1.3 |
|
93 print "Start seq 1.3" |
|
94 notify1 UseObjectAddress simatk ESatNotifyRefreshRequiredParam |
|
95 notify2 UseObjectAddress simatk ESatNotifyRefreshPCmd |
|
96 simatk RunIscTestCase 8 103 |
|
97 waittestclass notify1 |
|
98 // check type of refresh |
|
99 simatk CheckProactiveCommand RefreshType 03 FileList 6F30 |
|
100 // Send RefreshAllowed |
|
101 simatk SendTerminalResponse CommandType ESatNotifyRefreshRequiredParam |
|
102 // wait until PCMD is received |
|
103 waittestclass notify2 |
|
104 //Send terminal response for proactive command |
|
105 simatk SendTerminalResponse CommandType ESatNotifyRefreshPCmd |
|
106 // wait until ISC test case is completed |
|
107 simatk WaitForRequest |
|
108 |
|
109 // Seq 1.4 |
|
110 print "Start seq 1.4" |
|
111 notify1 UseObjectAddress simatk ESatNotifyRefreshRequiredParam |
|
112 notify2 UseObjectAddress simatk ESatNotifyRefreshPCmd |
|
113 simatk RunIscTestCase 8 104 |
|
114 waittestclass notify1 |
|
115 // check type of refresh |
|
116 simatk CheckProactiveCommand RefreshType 01 |
|
117 // Send RefreshAllowed |
|
118 simatk SendTerminalResponse CommandType ESatNotifyRefreshRequiredParam |
|
119 // wait until PCMD is received |
|
120 waittestclass notify2 |
|
121 //Send terminal response for proactive command |
|
122 simatk SendTerminalResponse CommandType ESatNotifyRefreshPCmd |
|
123 // wait until ISC test case is completed |
|
124 simatk WaitForRequest |
|
125 |
|
126 // Seq 1.5 |
|
127 print "Start seq 1.5" |
|
128 notify1 UseObjectAddress simatk ESatNotifyRefreshRequiredParam |
|
129 notify2 UseObjectAddress simatk ESatNotifyRefreshPCmd |
|
130 simatk RunIscTestCase 8 105 |
|
131 waittestclass notify1 |
|
132 // check type of refresh |
|
133 simatk CheckProactiveCommand RefreshType 05 |
|
134 // Send RefreshAllowed |
|
135 simatk SendTerminalResponse CommandType ESatNotifyRefreshRequiredParam |
|
136 // wait until PCMD is received |
|
137 waittestclass notify2 |
|
138 //Send terminal response for proactive command |
|
139 simatk SendTerminalResponse CommandType ESatNotifyRefreshPCmd SessionEnd 0 |
|
140 // wait until ISC test case is completed |
|
141 simatk WaitForRequest |
|
142 |
|
143 // Seq 1.6 is not implemented. From the refresh point of view it is simlar than Seq 1.1. |
|
144 print "Seq 1.6 is not implemented. From the refresh point of view it is simlar than Seq 1.1." |
|
145 |
|
146 // close all |
|
147 simatk Close IscControl |
|
148 simatk Close SAT |
|
149 simatk Unload PhoneTsy.tsy |
|
150 simatk Close RTelServer |
|
151 delete simatk |
|
152 delete notify1 |
|
153 delete notify2 |
|
154 [Endtest] |
|
155 |
|
156 [Test] |
|
157 title MOD_0008.002_SIM_ATK_TSY_[REFRESH - IMSI changing procedure] |
|
158 |
|
159 create SimAtk simatk |
|
160 create SimAtkNotify refreshRequired |
|
161 create SimAtkNotify refresh |
|
162 |
|
163 // open all |
|
164 simatk Connect RTelServer |
|
165 simatk Load PhoneTsy.tsy |
|
166 simatk Open DefaultPhone |
|
167 simatk Open SAT |
|
168 simatk Open IscControl |
|
169 |
|
170 simatk LoadIscTests SimAtk_Refresh.xml |
|
171 |
|
172 // Seq 2.1 |
|
173 refreshRequired UseObjectAddress simatk ESatNotifyRefreshRequiredParam |
|
174 refresh UseObjectAddress simatk ESatNotifyRefreshPCmd |
|
175 simatk RunIscTestCase 8 201 |
|
176 waittestclass refreshRequired |
|
177 // check type of refresh |
|
178 simatk CheckProactiveCommand RefreshType 03 FileList 6F07 6F7E 6F20 |
|
179 // Send RefreshAllowed |
|
180 simatk SendTerminalResponse CommandType ESatNotifyRefreshRequiredParam |
|
181 // wait until PCMD is received |
|
182 waittestclass refresh |
|
183 //Send terminal response for proactive command |
|
184 simatk SendTerminalResponse CommandType ESatNotifyRefreshPCmd |
|
185 // wait until ISC test case is completed |
|
186 simatk WaitForRequest |
|
187 |
|
188 // Seq 2.2 |
|
189 refreshRequired UseObjectAddress simatk ESatNotifyRefreshRequiredParam |
|
190 refresh UseObjectAddress simatk ESatNotifyRefreshPCmd |
|
191 simatk RunIscTestCase 8 202 |
|
192 waittestclass refreshRequired |
|
193 // check type of refresh |
|
194 simatk CheckProactiveCommand RefreshType 01 |
|
195 // Send RefreshAllowed |
|
196 simatk SendTerminalResponse CommandType ESatNotifyRefreshRequiredParam |
|
197 // wait until PCMD is received |
|
198 waittestclass refresh |
|
199 //Send terminal response for proactive command |
|
200 simatk SendTerminalResponse CommandType ESatNotifyRefreshPCmd GeneralResult RefreshAdditionEFRead |
|
201 // wait until ISC test case is completed |
|
202 simatk WaitForRequest |
|
203 |
|
204 // Seq 2.3 |
|
205 refreshRequired UseObjectAddress simatk ESatNotifyRefreshRequiredParam |
|
206 refresh UseObjectAddress simatk ESatNotifyRefreshPCmd |
|
207 simatk RunIscTestCase 8 203 |
|
208 waittestclass refreshRequired |
|
209 // check type of refresh |
|
210 simatk CheckProactiveCommand RefreshType 05 |
|
211 // Send RefreshAllowed |
|
212 simatk SendTerminalResponse CommandType ESatNotifyRefreshRequiredParam |
|
213 // wait until PCMD is received |
|
214 waittestclass refresh |
|
215 //Send terminal response for proactive command |
|
216 simatk SendTerminalResponse CommandType ESatNotifyRefreshPCmd SessionEnd 0 |
|
217 // wait until ISC test case is completed |
|
218 simatk WaitForRequest |
|
219 |
|
220 // close all |
|
221 simatk Close IscControl |
|
222 simatk Close SAT |
|
223 simatk Unload PhoneTsy.tsy |
|
224 simatk Close RTelServer |
|
225 delete simatk |
|
226 delete refreshRequired |
|
227 delete refresh |
|
228 [Endtest] |
|