|
1 // Copyright (c) 2006-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 "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 LOAD_SUITE LbsX3PTestServer -SharedData |
|
17 |
|
18 PRINT Run LbsX3PTestServer |
|
19 PRINT |
|
20 |
|
21 //Before we start LBS, select the test A-GPS integration module and network reg status txt file to use. |
|
22 PREFIX RUN_UTILS |
|
23 MkDir c:\private\10282253\ |
|
24 MkDir c:\private\10282253\lbs\ |
|
25 MkDir c:\private\10282253\lbs\locmods\ |
|
26 CopyFile c:\testdata\configs\xtestmodule.ini c:\private\10282253\lbs\locmods\agpsintegmodule.ini |
|
27 CopyFile c:\testdata\configs\lbstestconfig.txt c:\config.txt |
|
28 REMOVE_PREFIX |
|
29 |
|
30 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_ResetDefaultAdmin |
|
31 RUN_TEST_STEP 030 LbsX3PTestServer LbsStep_StartLbs |
|
32 |
|
33 START_TESTCASE LBS-X3P-OpenClose-0001 |
|
34 |
|
35 //!@SYMTestCaseID LBS-X3P-OpenClose-0001 |
|
36 //!@SYMTestCaseDesc Connect multiple clients to Transmit Position server |
|
37 //! |
|
38 //!@SYMTestActions 1. Connect to multiple servers |
|
39 //! 3. Disconnect from all servers |
|
40 //! |
|
41 //!@SYMTestExpectedResults Connect and Closes all complete successfully. |
|
42 //! |
|
43 //!@SYMPREQ PREQ163 |
|
44 //!@SYMTestType CIT |
|
45 //!@SYMTestPriority 2 |
|
46 //!@SYMTestStatus Implemented |
|
47 |
|
48 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler |
|
49 RUN_TEST_STEP 060 LbsX3PTestServer LbsX3PStep_OpenClose c:\testdata\configs\lbsx3popenclose.ini LBS-X3P-ConnectClose-0001 |
|
50 |
|
51 END_TESTCASE LBS-X3P-OpenClose-0001 |
|
52 |
|
53 |
|
54 START_TESTCASE LBS-X3P-OpenClose-0002 |
|
55 |
|
56 //!@SYMTestCaseID LBS-X3P-OpenClose-0002 |
|
57 //!@SYMTestCaseDesc Connect multiple clients to Transmit Position server |
|
58 //! |
|
59 //!@SYMTestActions 1. Connect to transmit Position Server |
|
60 //! 3. Close the server |
|
61 //! |
|
62 //!@SYMTestExpectedResults Connect and Close should complete successfully. |
|
63 //! |
|
64 //!@SYMPREQ PREQ163 |
|
65 //!@SYMTestType CIT |
|
66 //!@SYMTestPriority 2 |
|
67 //!@SYMTestStatus Implemented |
|
68 |
|
69 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler |
|
70 RUN_TEST_STEP 060 LbsX3PTestServer LbsX3PStep_OpenClose c:\testdata\configs\lbsx3popenclose.ini LBS-X3P-ConnectClose-0002 |
|
71 |
|
72 END_TESTCASE LBS-X3P-OpenClose-0002 |
|
73 |
|
74 |
|
75 START_TESTCASE LBS-X3P-OpenClose-0003 |
|
76 |
|
77 //!@SYMTestCaseID LBS-X3P-OpenClose-0003 |
|
78 //!@SYMTestCaseDesc Connect multiple clients to Transmit Position server |
|
79 //! |
|
80 //!@SYMTestActions 1. Connect to transmit Position Server |
|
81 //! 2. Connect to the same server again |
|
82 //! |
|
83 //!@SYMTestExpectedResults Second Connect() should panic. |
|
84 //! |
|
85 //!@SYMPREQ PREQ163 |
|
86 //!@SYMTestType CIT |
|
87 //!@SYMTestPriority 2 |
|
88 //!@SYMTestStatus Implemented |
|
89 |
|
90 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler |
|
91 RUN_TEST_STEP !PanicCode=5 060 LbsX3PTestServer LbsX3PStep_OpenClose c:\testdata\configs\lbsx3popenclose.ini LBS-X3P-ConnectClose-0003 |
|
92 |
|
93 END_TESTCASE LBS-X3P-OpenClose-0003 |
|
94 |
|
95 |
|
96 START_TESTCASE LBS-X3P-OpenClose-0004 |
|
97 |
|
98 //!@SYMTestCaseID LBS-X3P-OpenClose-0004 |
|
99 //!@SYMTestCaseDesc Create multiple transmit server sub-sessions |
|
100 //! |
|
101 //!@SYMTestActions 1. Connect to server |
|
102 //! 2. create multiple sessions |
|
103 //! 3. Close all subsession and then server |
|
104 //! |
|
105 //!@SYMTestExpectedResults All open close should work fine |
|
106 //! |
|
107 //!@SYMPREQ PREQ163 |
|
108 //!@SYMTestType CIT |
|
109 //!@SYMTestPriority 2 |
|
110 //!@SYMTestStatus Implemented |
|
111 |
|
112 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler |
|
113 RUN_TEST_STEP 060 LbsX3PTestServer LbsX3PStep_OpenClose c:\testdata\configs\lbsx3popenclose.ini LBS-X3P-OpenClose-0001 |
|
114 |
|
115 END_TESTCASE LBS-X3P-OpenClose-0004 |
|
116 |
|
117 |
|
118 START_TESTCASE LBS-X3P-OpenClose-0005 |
|
119 |
|
120 //!@SYMTestCaseID LBS-X3P-OpenClose-0005 |
|
121 //!@SYMTestCaseDesc Create multiple transmit server sub-sessions |
|
122 //! |
|
123 //!@SYMTestActions 1.Connect to server |
|
124 //! 2.Create a single RLbsTransmitPosition objects and open a sub-session on it |
|
125 //! 3.Attempt to open the sub-session again. |
|
126 //! |
|
127 //!@SYMTestExpectedResults Second open() panics |
|
128 //! |
|
129 //!@SYMPREQ PREQ163 |
|
130 //!@SYMTestType CIT |
|
131 //!@SYMTestPriority 2 |
|
132 //!@SYMTestStatus Implemented |
|
133 |
|
134 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler |
|
135 RUN_TEST_STEP !PanicCode=5 060 LbsX3PTestServer LbsX3PStep_OpenClose c:\testdata\configs\lbsx3popenclose.ini LBS-X3P-OpenClose-0002 |
|
136 |
|
137 END_TESTCASE LBS-X3P-OpenClose-0005 |
|
138 |
|
139 |
|
140 START_TESTCASE LBS-X3P-OpenClose-0006 |
|
141 |
|
142 //!@SYMTestCaseID LBS-X3P-OpenClose-0006 |
|
143 //!@SYMTestCaseDesc Disconnect from Transmit Position server while there is a sub-session open |
|
144 //! |
|
145 //!@SYMTestActions 1.RLbsTransmitPositionServer::Connect() |
|
146 //! 2.RLbsTransmitPosition::Open() |
|
147 //! 3.RLbsTransmitPositionServer::Close() |
|
148 //! |
|
149 //!@SYMTestExpectedResults Close should be fine (). |
|
150 //! |
|
151 //!@SYMPREQ PREQ163 |
|
152 //!@SYMTestType CIT |
|
153 //!@SYMTestPriority 2 |
|
154 //!@SYMTestStatus Implemented |
|
155 |
|
156 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler |
|
157 RUN_TEST_STEP 120 LbsX3PTestServer LbsX3PStep_OpenClose c:\testdata\configs\lbsx3popenclose.ini LBS-X3P-OpenClose-0003 |
|
158 |
|
159 END_TESTCASE LBS-X3P-OpenClose-0006 |
|
160 |
|
161 |
|
162 START_TESTCASE LBS-X3P-OpenClose-0007 |
|
163 |
|
164 //!@SYMTestCaseID LBS-X3P-OpenClose-0007 |
|
165 //!@SYMTestCaseDesc Multiple clients and multiple sub-sessions per client |
|
166 //! |
|
167 //!@SYMTestActions 1.Create multiple RLbsTransmitPositionServer objects and connect to them |
|
168 //! RLbsTransmitPositionServer::Connect() |
|
169 //! 2.For each connection, create multiple sub-sessions (RLbsTransmitPosition objects) and open them: |
|
170 //! RLbsTransmitPosition::Open() |
|
171 //! 3.Close all sub-sessions and disconnect from all servers: |
|
172 //! RLbsTransmitPositionServer::Close() |
|
173 //! |
|
174 //!@SYMTestExpectedResults No panics/errors |
|
175 //! |
|
176 //!@SYMPREQ PREQ163 |
|
177 //!@SYMTestType CIT |
|
178 //!@SYMTestPriority 2 |
|
179 //!@SYMTestStatus Implemented |
|
180 |
|
181 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler |
|
182 RUN_TEST_STEP 060 LbsX3PTestServer LbsX3PStep_OpenClose c:\testdata\configs\lbsx3popenclose.ini LBS-X3P-OpenClose-0004 |
|
183 |
|
184 END_TESTCASE LBS-X3P-OpenClose-0007 |
|
185 |
|
186 |
|
187 START_TESTCASE LBS-X3P-OpenClose-0008 |
|
188 |
|
189 //!@SYMTestCaseID LBS-X3P-OpenClose-0008 |
|
190 //!@SYMTestCaseDesc Do not connect to server and try to open session |
|
191 //! |
|
192 //!@SYMTestActions 1. Create a server object but do not connect to server |
|
193 //! 2. Try to open a session |
|
194 //! |
|
195 //!@SYMTestExpectedResults Opening session should panic |
|
196 //! |
|
197 //!@SYMPREQ PREQ163 |
|
198 //!@SYMTestType CIT |
|
199 //!@SYMTestPriority 2 |
|
200 //!@SYMTestStatus Implemented |
|
201 |
|
202 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler |
|
203 RUN_TEST_STEP !PanicCode=6 060 LbsX3PTestServer LbsX3PStep_OpenClose c:\testdata\configs\lbsx3popenclose.ini LBS-X3P-OpenClose-0005 |
|
204 |
|
205 END_TESTCASE LBS-X3P-OpenClose-0008 |
|
206 |
|
207 |
|
208 START_TESTCASE LBS-X3P-OpenClose-0009 |
|
209 |
|
210 //!@SYMTestCaseID LBS-X3P-OpenClose-0009 |
|
211 //!@SYMTestCaseDesc Closing session without opening it |
|
212 //! |
|
213 //!@SYMTestActions 1. Create a RLbsTransmitPosition object but do not open session |
|
214 //! 2. Try to close session with this object |
|
215 //! |
|
216 //!@SYMTestExpectedResults --TBD |
|
217 //! |
|
218 //!@SYMPREQ PREQ163 |
|
219 //!@SYMTestType CIT |
|
220 //!@SYMTestPriority 2 |
|
221 //!@SYMTestStatus Implemented |
|
222 |
|
223 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler |
|
224 RUN_TEST_STEP 060 LbsX3PTestServer LbsX3PStep_OpenClose c:\testdata\configs\lbsx3popenclose.ini LBS-X3P-OpenClose-0006 |
|
225 |
|
226 END_TESTCASE LBS-X3P-OpenClose-0009 |
|
227 |
|
228 |
|
229 START_TESTCASE LBS-X3P-OpenClose-0010 |
|
230 |
|
231 //!@SYMTestCaseID LBS-X3P-OpenClose-0010 |
|
232 //!@SYMTestCaseDesc Get the version of Transmit Position server |
|
233 //! |
|
234 //!@SYMTestActions 1. Connect to server |
|
235 //! 2. Get the version of server |
|
236 //! |
|
237 //!@SYMTestExpectedResults Should return valid version |
|
238 //! |
|
239 //!@SYMPREQ PREQ163 |
|
240 //!@SYMTestType CIT |
|
241 //!@SYMTestPriority 2 |
|
242 //!@SYMTestStatus Implemented |
|
243 |
|
244 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler |
|
245 RUN_TEST_STEP 060 LbsX3PTestServer LbsX3PStep_OpenClose c:\testdata\configs\lbsx3popenclose.ini LBS-X3P-Version-0001 |
|
246 |
|
247 END_TESTCASE LBS-X3P-OpenClose-0010 |
|
248 |
|
249 |
|
250 PRINT Stop LBS |
|
251 RUN_TEST_STEP 020 LbsX3PTestServer LbsStep_StopLbs |
|
252 |
|
253 // Re-select the real A-GPS integration module. |
|
254 RUN_UTILS DeleteFile c:\private\10282253\lbs\locmods\agpsintegmodule.ini |
|
255 |
|
256 // Delete network registration status text file |
|
257 RUN_UTILS DeleteFile c:\config.txt |