|
1 // |
|
2 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 // All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of "Eclipse Public License v1.0" |
|
6 // which accompanies this distribution, and is available |
|
7 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 // |
|
9 // Initial Contributors: |
|
10 // Nokia Corporation - initial contribution. |
|
11 // |
|
12 // Contributors: |
|
13 // |
|
14 // Description: |
|
15 // |
|
16 //! @File |
|
17 //! @SYMTestSuiteName lbsclientconcurrent |
|
18 //! @SYMScriptTestEnvironment TestExecute |
|
19 // Copyright (c) Symbian Software Ltd 2009. |
|
20 |
|
21 RUN_UTILS DeleteFile c:\private\101f401d\Logdbu.dat |
|
22 |
|
23 LOAD_SUITE LbsClientTestServer |
|
24 |
|
25 PRINT Run LbsClientTestServer |
|
26 PRINT |
|
27 |
|
28 // Before we start LBS, select the test A-GPS integration module and network reg status txt file to use. |
|
29 PREFIX RUN_UTILS |
|
30 MkDir c:\private\10282253\ |
|
31 MkDir c:\private\10282253\lbs\ |
|
32 MkDir c:\private\10282253\lbs\locmods\ |
|
33 CopyFile c:\testdata\configs\xtestmodule.ini c:\private\10282253\lbs\locmods\agpsintegmodule.ini |
|
34 |
|
35 DeleteFile c:\private\10202be9\1028224b.cre |
|
36 DeleteFile c:\private\10202be9\persists\1028224b.cre |
|
37 REMOVE_PREFIX |
|
38 |
|
39 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_ResetDefaultAdmin |
|
40 |
|
41 |
|
42 START_TESTCASE LBS-Client-Concurrent-0001 |
|
43 //! @SYMTestCaseID LBS-Client-Concurrent-0001 |
|
44 //! @SYMTestCaseDesc Simultaneous NPUD and GLNPA from same client |
|
45 //! @SYMTestPriority Medium |
|
46 //! @SYMTestActions 1. Issue NPUD |
|
47 //! 2. Issue GLKPA |
|
48 //! @SYMTestExpectedResults NPUD and LastKnown Pos Area complete with no errors on both clients |
|
49 //! @SYMTestType CIT |
|
50 //! @SYMCreationDate 04/4/2009 |
|
51 //! @SymTestReq REQ11527 |
|
52 //! @SYMAuthor juanmr |
|
53 RUN_UTILS CopyFile c:\testdata\configs\lbsclientlastknownposareacommon.txt c:\config.txt |
|
54 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_StartLbs |
|
55 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetAutonomousMode |
|
56 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetUpPsy c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent |
|
57 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_CreateVerifyPosInfos c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent |
|
58 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_Concurrent c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent-0000 |
|
59 CONCURRENT |
|
60 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_Concurrent c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent-0001 |
|
61 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_Concurrent c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent-0001 |
|
62 CONSECUTIVE |
|
63 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_StopLbs |
|
64 END_TESTCASE LBS-Client-Concurrent-0001 |
|
65 |
|
66 DELAY 5000 |
|
67 |
|
68 START_TESTCASE LBS-Client-Concurrent-0002 |
|
69 //! @SYMTestCaseID LBS-Client-Concurrent-0002 |
|
70 //! @SYMTestCaseDesc Simultaneous GLKP and GLKPA from same client |
|
71 //! @SYMTestPriority Medium |
|
72 //! @SYMTestActions 1. Issue GLKP |
|
73 //! 2. Issue GLKPA |
|
74 //! @SYMTestExpectedResults LastKnownPosition and LastKnownPosArea complete with no errors on both clients |
|
75 //! @SYMTestType CIT |
|
76 //! @SYMCreationDate 04/4/2009 |
|
77 //! @SymTestReq REQ11527 |
|
78 //! @SYMAuthor juanmr |
|
79 RUN_UTILS CopyFile c:\testdata\configs\lbsclientlastknownposareacommon.txt c:\config.txt |
|
80 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_StartLbs |
|
81 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetAutonomousMode |
|
82 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetUpPsy c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent |
|
83 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_CreateVerifyPosInfos c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent |
|
84 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_Concurrent c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent-0000 |
|
85 CONCURRENT |
|
86 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_Concurrent c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent-0002 |
|
87 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_Concurrent c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent-0002 |
|
88 CONSECUTIVE |
|
89 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_StopLbs |
|
90 END_TESTCASE LBS-Client-Concurrent-0002 |
|
91 |
|
92 DELAY 5000 |
|
93 |
|
94 START_TESTCASE LBS-Client-Concurrent-0003 |
|
95 //! @SYMTestCaseID LBS-Client-Concurrent-0003 |
|
96 //! @SYMTestCaseDesc Two concurrent clients request GLKPA, one of them cancels |
|
97 //! @SYMTestPriority Medium |
|
98 //! @SYMTestActions 1. Issue GLKPA |
|
99 //! 2. one of the tests (0031) issues CancelGLKPA, the other does not. |
|
100 //! @SYMTestExpectedResults LastKnownPosArea complete with no errors on the client that did not cancel. |
|
101 //! @SYMTestType CIT |
|
102 //! @SYMCreationDate 04/4/2009 |
|
103 //! @SymTestReq REQ11527 |
|
104 //! @SYMAuthor juanmr |
|
105 RUN_UTILS CopyFile c:\testdata\configs\lbsclientlastknownposareacommon.txt c:\config.txt |
|
106 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_StartLbs |
|
107 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetAutonomousMode |
|
108 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetUpPsy c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent |
|
109 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_CreateVerifyPosInfos c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent |
|
110 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_Concurrent c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent-0000 |
|
111 CONCURRENT |
|
112 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_Concurrent c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent-0003 |
|
113 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_Concurrent c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent-0031 |
|
114 CONSECUTIVE |
|
115 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_StopLbs |
|
116 END_TESTCASE LBS-Client-Concurrent-0003 |
|
117 |
|
118 DELAY 5000 |
|
119 |
|
120 START_TESTCASE LBS-Client-Concurrent-0004 |
|
121 //! @SYMTestCaseID LBS-Client-Concurrent-0004 |
|
122 //! @SYMTestCaseDesc Two clients clear the Location Monitor database simultaneously |
|
123 //! @SYMTestPriority Medium |
|
124 //! @SYMTestActions 1. Request database deletion |
|
125 //! @SYMTestExpectedResults The database is deleted without panics or crashes. |
|
126 //! @SYMTestType CIT |
|
127 //! @SYMCreationDate 04/4/2009 |
|
128 //! @SymTestReq REQ11527 |
|
129 //! @SYMAuthor juanmr |
|
130 RUN_UTILS CopyFile c:\testdata\configs\lbsclientlastknownposareacommon.txt c:\config.txt |
|
131 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_StartLbs |
|
132 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetAutonomousMode |
|
133 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetUpPsy c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent |
|
134 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_CreateVerifyPosInfos c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent |
|
135 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_Concurrent c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent-0000 |
|
136 CONCURRENT |
|
137 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_Concurrent c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent-0004 |
|
138 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_Concurrent c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent-0004 |
|
139 CONSECUTIVE |
|
140 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_StopLbs |
|
141 END_TESTCASE LBS-Client-Concurrent-0004 |
|
142 |
|
143 DELAY 5000 |
|
144 |
|
145 START_TESTCASE LBS-Client-Concurrent-0005 |
|
146 //! @SYMTestCaseID LBS-Client-Concurrent-0005 |
|
147 //! @SYMTestCaseDesc Two clients clear the Location Monitor database, one of them cancels |
|
148 //! @SYMTestPriority Medium |
|
149 //! @SYMTestActions 1. Request database deletion |
|
150 //! 2. One of the tests (0041) issues CancelGLKPA, the other does not. |
|
151 //! @SYMTestExpectedResults The database is deleted without panics or crashes. |
|
152 //! @SYMTestType CIT |
|
153 //! @SYMCreationDate 04/4/2009 |
|
154 //! @SymTestReq REQ11527 |
|
155 //! @SYMAuthor juanmr |
|
156 RUN_UTILS CopyFile c:\testdata\configs\lbsclientlastknownposareacommon.txt c:\config.txt |
|
157 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_StartLbs |
|
158 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetAutonomousMode |
|
159 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetUpPsy c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent |
|
160 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_CreateVerifyPosInfos c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent |
|
161 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_Concurrent c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent-0000 |
|
162 CONCURRENT |
|
163 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_Concurrent c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent-0004 |
|
164 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_Concurrent c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent-0041 |
|
165 CONSECUTIVE |
|
166 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_StopLbs |
|
167 END_TESTCASE LBS-Client-Concurrent-0005 |
|
168 |
|
169 DELAY 5000 |
|
170 |
|
171 START_TESTCASE LBS-Client-Concurrent-0006 |
|
172 //! @SYMTestCaseID LBS-Client-Concurrent-0006 |
|
173 //! @SYMTestCaseDesc Two clients clear the Location Monitor database, both cancel |
|
174 //! @SYMTestPriority Medium |
|
175 //! @SYMTestActions 1. Request database deletion |
|
176 //! 2. Issue CancelGLKPA. |
|
177 //! @SYMTestExpectedResults The database is deleted (depending on scheduling) without panics or crashes. |
|
178 //! @SYMTestType CIT |
|
179 //! @SYMCreationDate 04/4/2009 |
|
180 //! @SymTestReq REQ11527 |
|
181 //! @SYMAuthor juanmr |
|
182 RUN_UTILS CopyFile c:\testdata\configs\lbsclientlastknownposareacommon.txt c:\config.txt |
|
183 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_StartLbs |
|
184 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetAutonomousMode |
|
185 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetUpPsy c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent |
|
186 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_CreateVerifyPosInfos c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent |
|
187 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_Concurrent c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent-0000 |
|
188 CONCURRENT |
|
189 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_Concurrent c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent-0041 |
|
190 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_Concurrent c:\testdata\configs\lbsclientconcurrent.ini LBS-Client-Concurrent-0041 |
|
191 CONSECUTIVE |
|
192 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_StopLbs |
|
193 END_TESTCASE LBS-Client-Concurrent-0006 |
|
194 |
|
195 DELAY 5000 |