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 |
|
17 // MOD_0017.001_SIM_ATK_TSY_[SET UP EVENT LIST - normal] |
|
18 // |
|
19 // Precondition: |
|
20 // - Detailed description can be found from Quality Center's Project: CoreSW_CASW/Module Tests/SIM ATK TSY/SimAtkTSY_testtool |
|
21 // |
|
22 // Script description: |
|
23 |
|
24 // Proactive command // |
|
25 /////////////////////// |
|
26 |
|
27 // Type (default 1, UpdateEventList) |
|
28 // Determines the command type: does the command contain a new event list or does it cancel |
|
29 // the previous event list. |
|
30 // 0 SetUpEventListTypeNotSet, value used in constructor. |
|
31 // 1 UpdateEventList, command contains a new event list that replaces any previous list. |
|
32 // 2 RemoveExistingEventList, command contains no event list. |
|
33 // Instead, remove any existing events from the list. |
|
34 |
|
35 // Events |
|
36 // Flags form the list of events in a SET UP EVENT LIST proactive command. Used with Type UpdateEventList. |
|
37 // Not all Events are passed to client. These event have value 0 in the list below. |
|
38 // 0x0000, MT call |
|
39 // 0x0000, Call connected |
|
40 // 0x0000, Call disconnected |
|
41 // 0x0000, Location status |
|
42 // 0x0010, User activity |
|
43 // 0x0020, Idle screen available |
|
44 // 0x0040, Card reader status |
|
45 // 0x0080, Language selection |
|
46 // 0x0100, Browser termination |
|
47 // 0x0200, Data available |
|
48 // 0x0400, Channel status |
|
49 // 0x0000, Access Technology Change |
|
50 // 0x1000, Display parameters changed |
|
51 // 0x2000 Local connection |
|
52 // Example: |
|
53 // Events 30 (User activity & idle screen available) |
|
54 // Events 0 (Call connected & disconnected) |
|
55 |
|
56 // Terminal Response // |
|
57 /////////////////////// |
|
58 |
|
59 // GeneralResult |
|
60 // General result of the proactive command. Default command performed successfully. |
|
61 |
|
62 // AdditionalInfo |
|
63 // Contains additional information associated with certain error codes set in GeneralResult. |
|
64 // If the value in iGeneralResult does not require any information then leave this field empty (default). |
|
65 |
|
66 // InfoType |
|
67 // If the value of GeneralResult requires additional information, set this to MeProblem. Otherwise set to |
|
68 // NoAdditionalInfo (default) |
|
69 |
|
70 [Test] |
|
71 title MOD_0017.001_SIM_ATK_TSY_[SET UP EVENT LIST - normal] |
|
72 |
|
73 create SimAtk simatk |
|
74 create SimAtkNotify notify |
|
75 simatk Connect RTelServer |
|
76 simatk Load PhoneTsy.tsy |
|
77 simatk Open DefaultPhone |
|
78 simatk Open SAT |
|
79 simatk Open IscControl |
|
80 |
|
81 // Load ISC XML -file |
|
82 simatk LoadIscTests SimAtk_SetUpEventList.xml |
|
83 |
|
84 |
|
85 // SEQ 1 |
|
86 notify UseObjectAddress simatk ESatNotifySetUpEventListPCmd |
|
87 simatk RunIscTestCase 17 101 |
|
88 waittestclass notify |
|
89 // Call connected not handled by client |
|
90 simatk CheckProactiveCommand Events 0 |
|
91 simatk SendTerminalResponse |
|
92 simatk WaitForRequest |
|
93 |
|
94 |
|
95 // SEQ 2 |
|
96 notify UseObjectAddress simatk ESatNotifySetUpEventListPCmd |
|
97 simatk RunIscTestCase 17 102 |
|
98 waittestclass notify |
|
99 // Call connected & disconnected not handled by client |
|
100 simatk CheckProactiveCommand Events 0 |
|
101 simatk SendTerminalResponse |
|
102 |
|
103 notify UseObjectAddress simatk ESatNotifySetUpEventListPCmd |
|
104 simatk SyncIscTestCase |
|
105 waittestclass notify |
|
106 // Call disconnected not handled by client |
|
107 simatk CheckProactiveCommand Events 0 |
|
108 simatk SendTerminalResponse |
|
109 simatk WaitForRequest |
|
110 |
|
111 |
|
112 // SEQ 3 |
|
113 notify UseObjectAddress simatk ESatNotifySetUpEventListPCmd |
|
114 simatk RunIscTestCase 17 103 |
|
115 waittestclass notify |
|
116 // Call connected & disconnected not handled by client |
|
117 simatk CheckProactiveCommand Events 0 |
|
118 simatk SendTerminalResponse |
|
119 |
|
120 notify UseObjectAddress simatk ESatNotifySetUpEventListPCmd |
|
121 simatk SyncIscTestCase |
|
122 waittestclass notify |
|
123 // Call disconnected not handled by client |
|
124 simatk CheckProactiveCommand Type 2 |
|
125 simatk SendTerminalResponse |
|
126 simatk WaitForRequest |
|
127 |
|
128 |
|
129 // SEQ 4 |
|
130 notify UseObjectAddress simatk ESatNotifySetUpEventListPCmd |
|
131 simatk RunIscTestCase 17 104 |
|
132 waittestclass notify |
|
133 // Call connected & disconnected not handled by client |
|
134 simatk CheckProactiveCommand Events 0 |
|
135 simatk SendTerminalResponse |
|
136 |
|
137 // Simulate power off by shutting down and reopening the SAT |
|
138 simatk Close SAT |
|
139 simatk Close DefaultPhone |
|
140 simatk Open DefaultPhone |
|
141 simatk Open SAT |
|
142 simatk SyncIscTestCase |
|
143 simatk WaitForRequest |
|
144 |
|
145 |
|
146 // close all |
|
147 simatk Close IscControl |
|
148 simatk Close SAT |
|
149 simatk Close DefaultPhone |
|
150 simatk Unload PhoneTsy.tsy |
|
151 simatk Close RTelServer |
|
152 delete notify |
|
153 delete simatk |
|
154 [Endtest] |
|