|
1 // Copyright (c) 2008-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 //! @File |
|
17 //! @SYMTestSuiteName lbsclienttracking.script |
|
18 //! @SYMScriptTestEnvironment |
|
19 |
|
20 LOAD_SUITE LbsClientTestServer -SharedData |
|
21 |
|
22 PRINT Run LbsClientTestServer |
|
23 PRINT |
|
24 |
|
25 // Select the test A-GPS hybrid integration module and register onto the home network. |
|
26 PREFIX RUN_UTILS |
|
27 MkDir c:\private\10282253\ |
|
28 MkDir c:\private\10282253\lbs\ |
|
29 MkDir c:\private\10282253\lbs\locmods\ |
|
30 CopyFile c:\testdata\configs\ctagpsnpetestmoduledatasource.ini c:\private\10282253\lbs\locmods\agpsintegmodule.ini |
|
31 DeleteFile c:\private\10202be9\1028224b.cre |
|
32 DeleteFile c:\private\10202be9\persists\1028224b.cre |
|
33 CopyFile c:\testdata\configs\lbstestconfig.txt c:\config.txt |
|
34 DeleteFile c:\private\10282253\lbs\lbsprofile.ini |
|
35 REMOVE_PREFIX |
|
36 |
|
37 // Reset the admin to ensure we are preferred terminal mode. |
|
38 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_ResetDefaultAdmin |
|
39 |
|
40 // Now start LBS. |
|
41 RUN_TEST_STEP 030 LbsClientTestServer LbsStep_StartLbs |
|
42 |
|
43 |
|
44 // Carry out the tests. |
|
45 START_TESTCASE LBS-Client-Tracking-0001 |
|
46 |
|
47 //!@SYMTestCaseID LBS-Client-Tracking-0001 |
|
48 //!@SYMTestCaseDesc Tracking in partial mode, with accurate and partial updates. |
|
49 //! |
|
50 //!@SYMTestActions 1. Start a tracking session with partial updates off. |
|
51 //! 2. After receiving first accurate fix, switch on partial updates. |
|
52 //! 3. Continue tracking whilst receiving accurate and partial updates. |
|
53 //! |
|
54 //!@SYMTestExpectedResults Updates should be received at each interval as below: |
|
55 //! |
|
56 //! Ref pos, KErrNone, before interval |
|
57 //! Gps pos (accurate), KErrNone, after n * intervals |
|
58 //! Gps pos (accurate), KErrNone, after interval |
|
59 //! Gps pos (partial), KPositionPartialUpdate, after interval |
|
60 //! |
|
61 //!@SYMREQ DEF110546 |
|
62 //! |
|
63 //!@SYMTestType CIT |
|
64 //!@SYMTestPriority 1 |
|
65 //!@SYMTestStatus Implemented |
|
66 |
|
67 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_InstallScheduler |
|
68 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetUpPsy c:\testdata\configs\lbsclienttracking.ini LBS-CLIENT-TRACKING |
|
69 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_ConfigHybridModule c:\testdata\configs\lbsclienttracking.ini LBS-TRACKING-001 |
|
70 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_Tracking c:\testdata\configs\lbsclienttracking.ini LBS-TRACKING-001 |
|
71 |
|
72 END_TESTCASE LBS-Client-Tracking-0001 |
|
73 |
|
74 |
|
75 START_TESTCASE LBS-Client-Tracking-0002 |
|
76 |
|
77 //!@SYMTestCaseID LBS-Client-Tracking-0002 |
|
78 //!@SYMTestCaseDesc Tracking in partial mode, with accurate updates. |
|
79 //! |
|
80 //!@SYMTestActions 1. Start a tracking session with partial updates off. |
|
81 //! 2. After receiving first accurate fix, switch on partial updates. |
|
82 //! 3. Continue tracking whilst receiving accurate updates. |
|
83 //! |
|
84 //!@SYMTestExpectedResults Updates should be received at each interval as below: |
|
85 //! |
|
86 //! Ref pos, KErrNone, before interval |
|
87 //! Gps pos (accurate), KErrNone, after n * intervals |
|
88 //! Gps pos (accurate), KErrNone, after interval |
|
89 //! Gps pos (accurate), KErrNone, after interval |
|
90 //! |
|
91 //! |
|
92 //!@SYMREQ DEF110546 |
|
93 //! |
|
94 //!@SYMTestType CIT |
|
95 //!@SYMTestPriority 1 |
|
96 //!@SYMTestStatus Implemented |
|
97 |
|
98 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_InstallScheduler |
|
99 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetUpPsy c:\testdata\configs\lbsclienttracking.ini LBS-CLIENT-TRACKING |
|
100 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_ConfigHybridModule c:\testdata\configs\lbsclienttracking.ini LBS-TRACKING-002 |
|
101 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_Tracking c:\testdata\configs\lbsclienttracking.ini LBS-TRACKING-002 |
|
102 |
|
103 END_TESTCASE LBS-Client-Tracking-0002 |
|
104 |
|
105 |
|
106 START_TESTCASE LBS-Client-Tracking-0003 |
|
107 |
|
108 //!@SYMTestCaseID LBS-Client-Tracking-0003 |
|
109 //!@SYMTestCaseDesc Tracking in partial update mode, with partial updates. |
|
110 //! |
|
111 //!@SYMTestActions 1. Start a tracking session with partial updates off. |
|
112 //! 2. After receiving first accurate fix, switch on partial updates. |
|
113 //! 3. Continue tracking whilst receiving partial updates. |
|
114 //! |
|
115 //!@SYMTestExpectedResults Updates should be received at each interval as below: |
|
116 //! |
|
117 //! Ref pos, KErrNone, before interval |
|
118 //! Gps pos (accurate), KErrNone, after n * intervals |
|
119 //! Gps pos (NAN), KPositionPartialUpdate, after interval |
|
120 //! Gps pos (NAN), KPositionPartialUpdate, after interval |
|
121 //! |
|
122 //!@SYMREQ DEF110546 |
|
123 //! |
|
124 //!@SYMTestType CIT |
|
125 //!@SYMTestPriority 1 |
|
126 //!@SYMTestStatus Implemented |
|
127 |
|
128 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_InstallScheduler |
|
129 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetUpPsy c:\testdata\configs\lbsclienttracking.ini LBS-CLIENT-TRACKING |
|
130 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_ConfigHybridModule c:\testdata\configs\lbsclienttracking.ini LBS-TRACKING-003 |
|
131 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_Tracking c:\testdata\configs\lbsclienttracking.ini LBS-TRACKING-003 |
|
132 |
|
133 END_TESTCASE LBS-Client-Tracking-0003 |
|
134 |
|
135 |
|
136 START_TESTCASE LBS-Client-Tracking-0004 |
|
137 |
|
138 //!@SYMTestCaseID LBS-Client-Tracking-0004 |
|
139 //!@SYMTestCaseDesc Tracking in partial update mode, with inaccurate updates. |
|
140 //! |
|
141 //!@SYMTestActions 1. Start a tracking session with partial updates off. |
|
142 //! 2. After receiving first accurate fix, switch on partial updates. |
|
143 //! 3. Continue tracking whilst receiving inaccurate updates. |
|
144 //! |
|
145 //!@SYMTestExpectedResults Updates should be received at each interval as below: |
|
146 //! |
|
147 //! Ref pos, KErrNone, before interval |
|
148 //! Gps pos (accurate), KErrNone, after n * intervals |
|
149 //! Gps pos (inaccurate), KPositionPartialUpdate, after interval |
|
150 //! Gps pos (inaccurate), KPositionPartialUpdate, after interval |
|
151 //! |
|
152 //!@SYMREQ DEF110546 |
|
153 //! |
|
154 //!@SYMTestType CIT |
|
155 //!@SYMTestPriority 1 |
|
156 //!@SYMTestStatus Implemented |
|
157 |
|
158 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_InstallScheduler |
|
159 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetUpPsy c:\testdata\configs\lbsclienttracking.ini LBS-CLIENT-TRACKING |
|
160 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_ConfigHybridModule c:\testdata\configs\lbsclienttracking.ini LBS-TRACKING-004 |
|
161 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_Tracking c:\testdata\configs\lbsclienttracking.ini LBS-TRACKING-004 |
|
162 |
|
163 END_TESTCASE LBS-Client-Tracking-0004 |
|
164 |
|
165 |
|
166 START_TESTCASE LBS-Client-Tracking-0005 |
|
167 |
|
168 //!@SYMTestCaseID LBS-Client-Tracking-0005 |
|
169 //!@SYMTestCaseDesc Tracking in partial update mode, with no updates. |
|
170 //! |
|
171 //!@SYMTestActions 1. Start a tracking session with partial updates off. |
|
172 //! 2. After receiving first accurate fix, switch on partial updates. |
|
173 //! 3. Continue tracking whilst the A-GPS module does not return any updates. |
|
174 //! |
|
175 //!@SYMTestExpectedResults Updates should be received at each interval as below: |
|
176 //! |
|
177 //! Ref pos, KErrNone, before interval |
|
178 //! Gps pos (accurate), KErrNone, after n * intervals |
|
179 //! Gps pos (accurate), KErrNone, after interval |
|
180 //! Gps pos (not delivered), KErrTimedOut, after interval |
|
181 //! |
|
182 //!@SYMREQ DEF110546 |
|
183 //! |
|
184 //!@SYMTestType CIT |
|
185 //!@SYMTestPriority 1 |
|
186 //!@SYMTestStatus Implemented |
|
187 |
|
188 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_InstallScheduler |
|
189 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetUpPsy c:\testdata\configs\lbsclienttracking.ini LBS-CLIENT-TRACKINGs |
|
190 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_ConfigHybridModule c:\testdata\configs\lbsclienttracking.ini LBS-TRACKING-005 |
|
191 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_Tracking c:\testdata\configs\lbsclienttracking.ini LBS-TRACKING-005 |
|
192 |
|
193 END_TESTCASE LBS-Client-Tracking-0005 |
|
194 |
|
195 START_TESTCASE LBS-Client-Tracking-0006 |
|
196 |
|
197 //!@SYMTestCaseID LBS-Client-Tracking-0006 |
|
198 //!@SYMTestCaseDesc Tracking in partial update mode, with a futile error returned |
|
199 //! before the next interval. But the next udpate after that should |
|
200 //! still happen as if the GPS module had not returned futile. |
|
201 //! |
|
202 //!@SYMTestActions 1. Start a tracking session with partial updates off. |
|
203 //! 2. After receiving first accurate fix, switch on partial updates. |
|
204 //! 3. Receive a normal tracking partial update. |
|
205 //! 4. Receive a NaN update before the next interval. This is |
|
206 //! caused by the GPS module returning an update with |
|
207 //! KPositionCalculationFutile before the next interval. |
|
208 //! 5. Continue tracking whilst receiving partial updates. |
|
209 //! |
|
210 //!@SYMTestExpectedResults Updates should be received at each interval as below: |
|
211 //! |
|
212 //! Ref pos, KErrNone, before interval |
|
213 //! Gps pos (accurate), KErrNone, after n * intervals |
|
214 //! Gps pos (inaccurate), KPositionPartialUpdate, after interval |
|
215 //! Gps pos (NaN), KPositionQualityLoss, before interval |
|
216 //! Gps pos (inaccurate), KPositionPartialUpdate, after interval |
|
217 //! |
|
218 //!@SYMREQ DEF111247 |
|
219 //! |
|
220 //!@SYMTestType CIT |
|
221 //!@SYMTestPriority 1 |
|
222 //!@SYMTestStatus Implemented |
|
223 |
|
224 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_InstallScheduler |
|
225 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetUpPsy c:\testdata\configs\lbsclienttracking.ini LBS-CLIENT-TRACKING |
|
226 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_ConfigHybridModule c:\testdata\configs\lbsclienttracking.ini LBS-TRACKING-006 |
|
227 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_Tracking c:\testdata\configs\lbsclienttracking.ini LBS-TRACKING-006 |
|
228 |
|
229 END_TESTCASE LBS-Client-Tracking-0006 |
|
230 |
|
231 START_TESTCASE LBS-Client-Tracking-0007 |
|
232 |
|
233 //!@SYMTestCaseID LBS-Client-Tracking-0007 |
|
234 //!@SYMTestCaseDesc Tracking with an inaccurate position returned after timeout with KPositionQualityLoss. |
|
235 //! |
|
236 //!@SYMTestActions 1. Start a tracking session with partial updates off. |
|
237 //! 2. Receive an accurate position |
|
238 //! 3. Timeout and return the inaccurate position with KPositionQualityLoss |
|
239 //! |
|
240 //!@SYMTestExpectedResults Updates should be received at each interval as below: |
|
241 //! |
|
242 //! Ref pos, KErrNone, before interval |
|
243 //! Gps pos (accurate), KErrNone, after n * intervals |
|
244 //! Gps pos (inaccurate), KPositionQualityLoss, after timeout |
|
245 //! |
|
246 //!@SYMREQ INC112270 |
|
247 //! |
|
248 //!@SYMTestType CIT |
|
249 //!@SYMTestPriority 1 |
|
250 //!@SYMTestStatus Implemented |
|
251 |
|
252 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_InstallScheduler |
|
253 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetUpPsy c:\testdata\configs\lbsclienttracking.ini LBS-CLIENT-TRACKING |
|
254 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_ConfigHybridModule c:\testdata\configs\lbsclienttracking.ini LBS-TRACKING-007 |
|
255 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_Tracking c:\testdata\configs\lbsclienttracking.ini LBS-TRACKING-007 |
|
256 |
|
257 END_TESTCASE LBS-Client-Tracking-0007 |
|
258 |
|
259 RUN_TEST_STEP 030 LbsClientTestServer LbsStep_StopLbs |
|
260 |
|
261 // Re-select the real A-GPS integration module. |
|
262 RUN_UTILS DeleteFile c:\private\10282253\lbs\locmods\agpsintegmodule.ini |
|
263 |
|
264 // Delete network registration status text file |
|
265 RUN_UTILS DeleteFile c:\config.txt |
|
266 |