lbstest/lbstestproduct/lbsmtlr/scripts/lbsmtlr.script
changeset 0 9cfd9a3ee49c
equal deleted inserted replaced
-1:000000000000 0:9cfd9a3ee49c
       
     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 PRINT TO DO: need to add correct PREQ/REQ numbers to these test cases:
       
    17 PRINT *** DELETE LBS LOG ***
       
    18 RUN_UTILS DeleteFile c:\private\101f401d\Logdbu.dat
       
    19 
       
    20 LOAD_SUITE LbsMTLRTestServer -SharedData
       
    21 
       
    22 PRINT Run LbsMTLRTestServer
       
    23 PRINT
       
    24 
       
    25 // Before we start LBS, select the test A-GPS integration module and network reg status txt file to use.
       
    26 PRINT select the test A-GPS integration module to use (copy .ini file to appropriate place)
       
    27 PREFIX RUN_UTILS
       
    28 	MkDir c:\private\10282253\
       
    29 	MkDir c:\private\10282253\lbs\
       
    30 	MkDir c:\private\10282253\lbs\locmods\
       
    31 	CopyFile c:\testdata\configs\xtestmodule.ini c:\private\10282253\lbs\locmods\agpsintegmodule.ini
       
    32         CopyFile c:\testdata\configs\lbstestprofile.ini c:\private\10282253\lbs\lbsprofile.ini 
       
    33         CopyFile c:\testdata\configs\lbstestconfig.txt c:\config.txt
       
    34 	DeleteFile c:\private\10202be9\persists\1028224b.cre
       
    35 REMOVE_PREFIX
       
    36 
       
    37 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_ResetDefaultAdmin
       
    38 RUN_TEST_STEP 030 LbsMTLRTestServer LbsStep_SetPrivacyHandler c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr
       
    39 
       
    40 RUN_TEST_STEP 030 LbsMTLRTestServer LbsStep_StartLbs
       
    41 
       
    42 
       
    43 START_TESTCASE LBS-MTLR-PrivCntr-0001
       
    44 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-0001
       
    45 //!@SYMTestCaseDesc		'Notify and Accept' request from network accepted
       
    46 //!					This case also tests the logging API by verifying the relevant logs are written, can be read
       
    47 //!					and as are expected. A self locate log, and external log and an assistance log.
       
    48 //!
       
    49 //!@SYMTestActions		
       
    50 //!					1. Register as the privacy observer app. 
       
    51 //!					2. Change admin settings (use EExternalLocateOn) to allow MT-LRs and wait for this to propogate (verify). 				
       
    52 //!					3. Configure netSim (use ERequestAdviceNotify) and kick off an privacy request of type 'notify the user and automatically accept'.  
       
    53 //!					4. When privacy controller is called (with ProcessNetworkLocationRequest()), accept the request (use RespondNetworkLocationRequest() ).
       
    54 //!					5. Verify that 'accept' response is sent to the network
       
    55 //!					6. When response to privacy request has been sent to network, kick off a network location request (via NetSim)
       
    56 //!					7. Confirm that privacy controller callbacks ProcessNetworkPositionUpdate() and ProcessRequestComplete() are called
       
    57 //!					8. Confirm that location is sent to network
       
    58 //!
       
    59 //!@SYMTestExpectedResults	Privacy request accepted and location sent to network
       
    60 //!@SYMPREQ					PREQ 436
       
    61 //!@SYMREQ					REQ 436.04
       
    62 //!@SYMREQ					REQ 436.05
       
    63 //!@SYMREQ					REQ 436.06
       
    64 //!@SYMREQ					REQ 436.13
       
    65 //!
       
    66 //!@SYMPREQ					PREQ 162
       
    67 //!@SYMREQ					162.05
       
    68 //!@SYMREQ					162.06
       
    69 //!
       
    70 //!@SYMPREQ					PREQ 89
       
    71 //!@SYMREQ					REQ 89.03
       
    72 //!@SYMREQ					REQ 89.04
       
    73 //!@SYMREQ					REQ 89.06
       
    74 //!@SYMREQ					REQ 89.07
       
    75 //!@SYMREQ					REQ 89.09
       
    76 //!
       
    77 //!@SYMTestType				CIT
       
    78 //!@SYMTestPriority			1
       
    79 //!@SYMTestStatus				Implemented. 
       
    80 
       
    81 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
    82 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_ClearLog
       
    83 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
    84 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-0001
       
    85 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-0001
       
    86 
       
    87 END_TESTCASE LBS-MTLR-PrivCntr-0001
       
    88 
       
    89 START_TESTCASE LBS-MTLR-PrivCntr-0002
       
    90 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-0002
       
    91 //!@SYMTestCaseDesc		'Verify, Accept if no response' request from network accepted
       
    92 //!
       
    93 //!@SYMTestActions		
       
    94 //!					1. Register as the privacy observer app. 
       
    95 //!					2. Change admin settings (use EExternalLocateOn) to allow MT-LRs and wait for this to propogate (verify). 				
       
    96 //!					3. Configure netSim (use ERequestAdviceVerify) and kick off an privacy request of type 'verify, accept'.  
       
    97 //!					4. When privacy controller is called (with ProcessNetworkLocationRequest()), accept the request (use RespondNetworkLocationRequest() ).
       
    98 //!					5. Verify that 'accept' response is sent to the network
       
    99 //!					6. When response to privacy request has been sent to network, kick off a network location request (via NetSim)
       
   100 //!					7. Confirm that privacy controller callbacks ProcessNetworkPositionUpdate() and ProcessRequestComplete() are called
       
   101 //!					8. Confirm that location is sent to network
       
   102 //!
       
   103 //!@SYMTestExpectedResults	Privacy request accepted and location sent to network
       
   104 //!@SYMPREQ					PREQ 436
       
   105 //!@SYMREQ					
       
   106 //!
       
   107 //!@SYMPREQ					PREQ 162
       
   108 //!@SYMREQ	
       
   109 //!
       
   110 //!@SYMPREQ					PREQ 89
       
   111 //!@SYMREQ		
       
   112 //!
       
   113 //!@SYMTestType				CIT
       
   114 //!@SYMTestPriority			1
       
   115 //!@SYMTestStatus				Implemented. 
       
   116 
       
   117 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
   118 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
   119 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-0002
       
   120 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
   121 
       
   122 END_TESTCASE LBS-MTLR-PrivCntr-0002
       
   123 
       
   124 START_TESTCASE LBS-MTLR-PrivCntr-0003
       
   125 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-0003
       
   126 //!@SYMTestCaseDesc		'Verify, Accept if no response' request from network rejected
       
   127 //!
       
   128 //!@SYMTestActions		
       
   129 //!					1. Register as the privacy observer app. 
       
   130 //!					2. Change admin settings (use EExternalLocateOn) to allow MT-LRs and wait for this to propogate (verify). 				
       
   131 //!					3. Configure netSim (use ERequestAdviceVerify) and kick off an privacy request of type 'verify, accept'.  
       
   132 //!					4. When privacy controller is called (with ProcessNetworkLocationRequest()), reject the request (use RespondNetworkLocationRequest() ).
       
   133 //!					5. When privacy controller is called with ProcessRequestComplete(), verify that the reason is KErrNone
       
   134 //!					6. Verify that 'rejected' response is sent to the network
       
   135 //!
       
   136 //!@SYMTestExpectedResults	Privacy request rejected
       
   137 //!@SYMPREQ					PREQ 436
       
   138 //!@SYMREQ					
       
   139 //!
       
   140 //!@SYMPREQ					PREQ 162
       
   141 //!@SYMREQ	
       
   142 //!
       
   143 //!@SYMPREQ					PREQ 89
       
   144 //!@SYMREQ		
       
   145 //!
       
   146 //!@SYMTestType				CIT
       
   147 //!@SYMTestPriority			1
       
   148 //!@SYMTestStatus				Implemented. 
       
   149 
       
   150 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
   151 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
   152 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-0003
       
   153 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
   154 
       
   155 END_TESTCASE LBS-MTLR-PrivCntr-0003
       
   156 
       
   157 
       
   158 //START_TESTCASE LBS-MTLR-PrivCntr-0004
       
   159 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-0004
       
   160 //!@SYMTestCaseDesc		'Verify, Accept if no response' request from network ignored
       
   161 //!
       
   162 //!@SYMTestActions		
       
   163 //!					1. Register as the privacy observer app. 
       
   164 //!					2. Change admin settings (use EExternalLocateOn) to allow MT-LRs and wait for this to propogate (verify). 				
       
   165 //!					3. Configure netSim (use ERequestAdviceVerify) and kick off an privacy request of type 'verify, accept'.  
       
   166 //!					4. When privacy controller is called (with ProcessNetworkLocationRequest()), ignore the request (use RespondNetworkLocationRequest() ).
       
   167 //!					5. Verify that 'accepted' response is sent to the network
       
   168 //!					6. When response to privacy request has been sent to network, kick off a network location request (via NetSim)
       
   169 //!					7. Confirm that privacy controller callbacks ProcessNetworkPositionUpdate() and ProcessRequestComplete() are called
       
   170 //!					8. Confirm that location is sent to network
       
   171 //!
       
   172 //!@SYMTestExpectedResults	Undefined.
       
   173 //!@SYMPREQ					PREQ 436
       
   174 //!@SYMREQ					
       
   175 //!
       
   176 //!@SYMPREQ					PREQ 162
       
   177 //!@SYMREQ	
       
   178 //!
       
   179 //!@SYMPREQ					PREQ 89
       
   180 //!@SYMREQ		
       
   181 //!
       
   182 //!@SYMTestType				CIT
       
   183 //!@SYMTestPriority			1
       
   184 //!@SYMTestStatus				Implemented, Not Supported
       
   185 
       
   186 //RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
   187 //RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
   188 //RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-0004
       
   189 //RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
   190 
       
   191 //END_TESTCASE LBS-MTLR-PrivCntr-0004
       
   192 
       
   193 START_TESTCASE LBS-MTLR-PrivCntr-0006
       
   194 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-0006
       
   195 //!@SYMTestCaseDesc		'Verify, Accept if no response' allowed to timeout
       
   196 //!
       
   197 //!@SYMTestActions		
       
   198 //!					1. Register as the privacy observer app. 
       
   199 //!					2. Change admin settings (use EExternalLocateOn) to allow MT-LRs and wait for this to propogate (verify). 				
       
   200 //!					3. Configure netSim (use ERequestAdviceVerify) and kick off an privacy request of type 'verify, accept'.  
       
   201 //!					4. When privacy controller is called (with ProcessNetworkLocationRequest()), do not respond
       
   202 //!					5. Verify that 'accepted' response is sent to the network
       
   203 //!					6. When response to privacy request has been sent to network, kick off a network location request (via NetSim)
       
   204 //!					7. Confirm that privacy controller callbacks ProcessNetworkPositionUpdate() and ProcessRequestComplete() are called
       
   205 //!					8. Confirm that location is sent to network
       
   206 //!
       
   207 //!@SYMTestExpectedResults	Privacy request is accepted and location is sent to network
       
   208 //!@SYMPREQ					PREQ 436
       
   209 //!@SYMREQ					
       
   210 //!
       
   211 //!@SYMPREQ					PREQ 162
       
   212 //!@SYMREQ	
       
   213 //!
       
   214 //!@SYMPREQ					PREQ 89
       
   215 //!@SYMREQ		
       
   216 //!
       
   217 //!@SYMTestType				CIT
       
   218 //!@SYMTestPriority			1
       
   219 //!@SYMTestStatus				Implemented. 
       
   220 
       
   221 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
   222 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos 	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
   223 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-0006
       
   224 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
   225 
       
   226 END_TESTCASE LBS-MTLR-PrivCntr-0006
       
   227 
       
   228 START_TESTCASE LBS-MTLR-PrivCntr-0007
       
   229 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-0007
       
   230 //!@SYMTestCaseDesc		Cancel location request before final result
       
   231 //!
       
   232 //!@SYMTestActions		
       
   233 //!					1. Register as the privacy observer app. 
       
   234 //!					2. Change admin settings (use EExternalLocateOn) to allow MT-LRs and wait for this to propogate (verify). 
       
   235 //!					3. Configure netSim (use ERequestAdviceVerify) and kick off an privacy request of type 'verify, accept'.  
       
   236 //!					4. When privacy controller is called (with ProcessNetworkLocationRequest()), accept the 
       
   237 //!					   request (use RespondNetworkLocationRequest() ).
       
   238 //!					5. Verify that 'accepted' response is sent to the network
       
   239 //!					6. When response to privacy request has been sent to network, kick off a network location request (via NetSim)
       
   240 //!					7. When ProcessNetworkPositionUpdate() is called for the first time (reference location), cancel the request 
       
   241 //!					8. When privacy controller is called with ProcessRequestComplete(), verify that the reason is KErrNone
       
   242 //!					9. Confirm that location is NOT sent to network
       
   243 
       
   244 //!
       
   245 //!@SYMTestExpectedResults	Location is never passed to network
       
   246 //!@SYMPREQ					PREQ 436
       
   247 //!@SYMREQ					
       
   248 //!
       
   249 //!@SYMPREQ					PREQ 162
       
   250 //!@SYMREQ	
       
   251 //!
       
   252 //!@SYMPREQ					PREQ 89
       
   253 //!@SYMREQ		
       
   254 //!
       
   255 //!@SYMTestType				CIT
       
   256 //!@SYMTestPriority			1
       
   257 //!@SYMTestStatus				Implemented. 
       
   258 
       
   259 PRINT This test case can only be run with the test AGPS module, since it requires the module to be configure to stall
       
   260 
       
   261 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
   262 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
   263 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-0007
       
   264 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
   265 
       
   266 END_TESTCASE LBS-MTLR-PrivCntr-0007
       
   267 
       
   268 START_TESTCASE LBS-MTLR-PrivCntr-0008
       
   269 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-0008
       
   270 //!@SYMTestCaseDesc			Negative test on RespondNetworkLocationRequest with incorrect parameter.
       
   271 //!
       
   272 //!@SYMTestActions		
       
   273 
       
   274 //!					1. Register as the privacy observer app. 
       
   275 //!					2. Change admin settings (use EExternalLocateOn) to allow MT-LRs and wait for this to propogate (verify). 
       
   276 //!					3. Configure netSim (use ERequestAdviceVerify) and kick off an privacy requestof type 'verify, accept' with a valid Id.  
       
   277 //!					4. When privacy controller is called (with ProcessNetworkLocationRequest()), respond to a 
       
   278 //!					   request (use RequestNetworkLocationRequest() ) passing an invalid ID.
       
   279 //!					5. Original privacy request with valid Id is processed 'as normal' (accepted and location request kicked off)
       
   280 //!					
       
   281 //!@SYMTestExpectedResults	
       
   282 //!					Location expected to be sent to network. Response to 'bad'  request is ignored
       
   283 //!
       
   284 //!@SYMPREQ				PREQ 436
       
   285 //!@SYMREQ				REQ 436.05
       
   286 //!@SYMREQ				REQ 436.06
       
   287 //!@SYMREQ				REQ 436.13
       
   288 //!					
       
   289 //!@SYMPREQ				PREQ 162
       
   290 //!@SYMREQ	
       
   291 //!					
       
   292 //!@SYMPREQ				PREQ 89
       
   293 //!@SYMREQ				REQ 89.04
       
   294 //!
       
   295 //!@SYMTestType				CIT
       
   296 //!@SYMTestPriority			1
       
   297 //!@SYMTestStatus			Implemented. Incomplete.
       
   298 
       
   299 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
   300 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
   301 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-0008
       
   302 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
   303 
       
   304 END_TESTCASE LBS-MTLR-PrivCntr-0008
       
   305 
       
   306 START_TESTCASE LBS-MTLR-PrivCntr-0009
       
   307 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-0009
       
   308 //!@SYMTestCaseDesc			Negative test on CancelNetworkLocationRequest with incorrect parameter.
       
   309 //!
       
   310 //!@SYMTestActions		
       
   311 //!					1. Register as the privacy observer app. 
       
   312 //!					2. Change admin settings (use EExternalLocateOn) to allow MT-LRs and wait for this to propogate (verify). 
       
   313 //!					3. Configure netSim (use ERequestAdviceVerify) and kick off an privacy requestof type 'verify, accept' with a valid Id.  
       
   314 //!					4. When privacy controller is called (with ProcessNetworkLocationRequest()), cancel a 
       
   315 //!					   request (use CancelNetworkLocationRequest() ) passing an invalid ID.
       
   316 //!					5. Original privacy request with valid Id is processed 'as normal' (accepted and location request kicked off)
       
   317 //!					
       
   318 //!@SYMTestExpectedResults	
       
   319 //!					Location expected to be sent to network. Cancelled 'bad' request is ignored
       
   320 //!
       
   321 //!
       
   322 //!@SYMPREQ				PREQ 436
       
   323 //!@SYMREQ				REQ 436.05
       
   324 //!@SYMREQ				REQ 436.06
       
   325 //!@SYMREQ				REQ 436.13
       
   326 //!					
       
   327 //!@SYMPREQ				PREQ 162
       
   328 //!@SYMREQ	
       
   329 //!					
       
   330 //!@SYMPREQ				PREQ 89
       
   331 //!@SYMREQ				REQ 89.04
       
   332 //!					
       
   333 //!@SYMTestType				CIT
       
   334 //!@SYMTestPriority			1
       
   335 //!@SYMTestStatus			Implemented. Incomplete.
       
   336 
       
   337 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
   338 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
   339 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-0009
       
   340 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
   341 
       
   342 END_TESTCASE LBS-MTLR-PrivCntr-0009
       
   343 
       
   344 START_TESTCASE LBS-MTLR-PrivCntr-0010
       
   345 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-0010
       
   346 //!@SYMTestCaseDesc			Negative test on CancelNetworkLocationRequest called directly after RespondNetworkLocationRequest, with a bad ID.
       
   347 //!
       
   348 //!@SYMTestActions		
       
   349 //!					1. Register as the privacy observer app. 
       
   350 //!					2. Change admin settings (use EExternalLocateOn) to allow MT-LRs and wait for this to propogate (verify). 
       
   351 //!					3. Configure netSim (use ERequestAdviceVerify) and kick off an privacy requestof type 'verify, accept' with a valid Id.  
       
   352 //!					4. When privacy controller is called (with ProcessNetworkLocationRequest()), accept a 
       
   353 //!					   request (use RequestNetworkLocationRequest() ) passing an invalid ID.
       
   354 //!					5. Also call CancelNetworkLocationRequest passing an invalid ID.
       
   355 //!					6. Original privacy request with valid Id is processed 'as normal' (accepted and location request kicked off)
       
   356 //!					
       
   357 //!@SYMTestExpectedResults	
       
   358 //!					Location sent to network as normal. Cancel/Response of 'bad' request ignored
       
   359 //!
       
   360 //!@SYMPREQ				PREQ 436
       
   361 //!@SYMREQ				REQ 436.05
       
   362 //!@SYMREQ				REQ 436.06
       
   363 //!@SYMREQ				REQ 436.13
       
   364 //!					
       
   365 //!@SYMPREQ				PREQ 162
       
   366 //!@SYMREQ	
       
   367 //!					
       
   368 //!@SYMPREQ				PREQ 89
       
   369 //!@SYMREQ				REQ 89.04
       
   370 //!					
       
   371 //!@SYMTestType				CIT
       
   372 //!@SYMTestPriority			1
       
   373 //!@SYMTestStatus			Implemented. Incomplete.
       
   374 
       
   375 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
   376 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
   377 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-0010
       
   378 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
   379 
       
   380 END_TESTCASE LBS-MTLR-PrivCntr-0010
       
   381 
       
   382 START_TESTCASE LBS-MTLR-PrivCntr-0011
       
   383 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-0011
       
   384 //!@SYMTestCaseDesc			Negative test on CancelNetworkLocationRequest called directly after ProcessNetworkLocationRequest
       
   385 //!
       
   386 //!@SYMTestActions		
       
   387 //!					1. Register as the privacy observer app. 
       
   388 //!					2. Change admin settings (use EExternalLocateOn) to allow MT-LRs and wait for this to propogate (verify). 
       
   389 //!					3. Configure netSim (use ERequestAdviceVerify) and kick off an privacy requestof type 'verify, accept' with a valid Id.  
       
   390 //!					4. When privacy controller is called (with ProcessNetworkLocationRequest()), accept a 
       
   391 //!					   request (use RequestNetworkLocationRequest() ) passing a valid ID.
       
   392 //!					5. After ProcessNetworkLocationRequest() callback completes, we cancel a request passing a bad ID inside
       
   393 //!					   ProcessNetworkPositionUpdate() during its first call for reference data.
       
   394 //!					
       
   395 //!@SYMTestExpectedResults
       
   396 //!					Location sent to network. Cancel of 'bad' request is ignored
       
   397 //!
       
   398 //!@SYMPREQ				PREQ 436
       
   399 //!@SYMREQ				REQ 436.05
       
   400 //!@SYMREQ				REQ 436.06
       
   401 //!@SYMREQ				REQ 436.13
       
   402 //!					
       
   403 //!@SYMPREQ				PREQ 162
       
   404 //!@SYMREQ	
       
   405 //!					
       
   406 //!@SYMPREQ				PREQ 89
       
   407 //!@SYMREQ				REQ 89.04
       
   408 //!					
       
   409 //!@SYMTestType				CIT
       
   410 //!@SYMTestPriority			1
       
   411 //!@SYMTestStatus			Implemented. Incomplete. 
       
   412 
       
   413 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
   414 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
   415 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-0011
       
   416 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
   417 
       
   418 END_TESTCASE LBS-MTLR-PrivCntr-0011
       
   419 
       
   420 
       
   421 START_TESTCASE LBS-MTLR-PrivCntr-0012
       
   422 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-0012
       
   423 //!@SYMTestCaseDesc		Location request received after privacy request rejected
       
   424 //!
       
   425 //!@SYMTestActions		
       
   426 //!					1. Register as the privacy observer app. 
       
   427 //!					2. Change admin settings (use EExternalLocateOn) to allow MT-LRs and wait for this to propogate (verify). 
       
   428 //!					3. Configure netSim (use ERequestAdviceVerify) and kick off an privacy request of type 'verify, accept'.  
       
   429 //!					4. When privacy controller is called (with ProcessNetworkLocationRequest()), reject the request (use RespondNetworkLocationRequest() ).
       
   430 //!					5. Verify that 'rejected' response is sent to the network
       
   431 //!					6. Kick off a network location request (via NetSim)
       
   432 //!					7. Confirm that privacy controller callbacks ProcessNetworkPositionUpdate() is not called
       
   433 //!					8. When privacy controller is called with ProcessRequestComplete(), verify that the reason is KErrNone
       
   434 //!					9. Confirm that control failure is sent to network with reason KErrPermissionDenied
       
   435 //!
       
   436 //!@SYMTestExpectedResults		Control failure is sent with reason KErrPermissionDenied
       
   437 //!@SYMPREQ					PREQ 436
       
   438 //!@SYMREQ					
       
   439 //!
       
   440 //!@SYMPREQ					PREQ 162
       
   441 //!@SYMREQ		
       
   442 //!
       
   443 //!@SYMPREQ					PREQ 89
       
   444 //!@SYMREQ					REQ 89.04
       
   445 //!
       
   446 //!@SYMTestType				CIT
       
   447 //!@SYMTestPriority			2
       
   448 //!@SYMTestStatus				Implemented. 
       
   449 
       
   450 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
   451 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
   452 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-0012
       
   453 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
   454 
       
   455 END_TESTCASE LBS-MTLR-PrivCntr-0012
       
   456 
       
   457 START_TESTCASE LBS-MTLR-PrivCntr-0013
       
   458 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-0013
       
   459 //!@SYMTestCaseDesc		Silent request
       
   460 //!
       
   461 //!@SYMTestActions		
       
   462 //!					1. Register as the privacy observer app. 
       
   463 //!					2. Change admin settings (use EExternalLocateOn) to allow MT-LRs and wait for this to propogate (verify). 				
       
   464 //!					3. Configure netSim and kick off a privacy request of type 'silent'(ERequestAdviceSilent).  
       
   465 //!					4. When privacy controller is called (with ProcessNetworkLocationRequest()), accept the request (use RespondNetworkLocationRequest() ).
       
   466 //!					5. Verify that 'accept' response is sent to the network
       
   467 //!					6. When response to privacy request has been sent to network, kick off a network location request (via NetSim)
       
   468 //!					7. Confirm that privacy controller callbacks ProcessNetworkPositionUpdate() and ProcessRequestComplete() are called
       
   469 //!					8. Confirm that location is sent to network
       
   470 //!
       
   471 //!@SYMTestExpectedResults		Privacy request is accepted and location is sent to network
       
   472 //!@SYMPREQ					PREQ 436
       
   473 //!@SYMREQ					
       
   474 //!
       
   475 //!@SYMPREQ					PREQ 162
       
   476 //!@SYMREQ		
       
   477 //!
       
   478 //!@SYMPREQ					PREQ 89
       
   479 //!@SYMREQ					REQ 89.04
       
   480 //!
       
   481 //!@SYMTestType				CIT
       
   482 //!@SYMTestPriority			2
       
   483 //!@SYMTestStatus				Implemented. 
       
   484 
       
   485 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
   486 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
   487 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-0013
       
   488 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
   489 
       
   490 END_TESTCASE LBS-MTLR-PrivCntr-0013
       
   491 
       
   492 START_TESTCASE LBS-MTLR-PrivCntr-0014
       
   493 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-0014
       
   494 //!@SYMTestCaseDesc		Request when external locate turned off in admin
       
   495 //!
       
   496 //!@SYMTestActions		
       
   497 //!					1. Register as the privacy observer app. 
       
   498 //!					2. Change admin settings (use EExternalLocateOff) to disallow MT-LRs and wait for this to propogate (verify). 				
       
   499 //!					3. Configure netSim and kick off a privacy request.  
       
   500 //!					4. Verify that the privacy controller callbacks are not called
       
   501 //!					5. Confirm that location is not sent to network
       
   502 //!
       
   503 //!@SYMTestExpectedResults		Privacy controller is never called and location not sent to network
       
   504 //!@SYMPREQ					PREQ 436
       
   505 //!@SYMREQ					
       
   506 //!
       
   507 //!@SYMPREQ					PREQ 162
       
   508 //!@SYMREQ		
       
   509 //!
       
   510 //!@SYMPREQ					PREQ 89
       
   511 //!@SYMREQ					REQ 89.04
       
   512 //!
       
   513 //!@SYMTestType				CIT
       
   514 //!@SYMTestPriority			2
       
   515 //!@SYMTestStatus				Implemented. 
       
   516 
       
   517 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
   518 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
   519 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-0014
       
   520 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
   521 
       
   522 END_TESTCASE LBS-MTLR-PrivCntr-0014
       
   523 
       
   524 START_TESTCASE LBS-MTLR-PrivCntr-0015
       
   525 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-0015
       
   526 //!@SYMTestCaseDesc		'Verify, Reject if no response' allowed to timeout
       
   527 //!
       
   528 //!@SYMTestActions		
       
   529 //!					1. Register as the privacy observer app. 
       
   530 //!					2. Change admin settings (use EExternalLocateOn) to allow MT-LRs and wait for this to propogate (verify). 				
       
   531 //!					3. Configure netSim (use ERequestAdviceVerify) and kick off an privacy request of type 'verify, accept'.  
       
   532 //!					4. When privacy controller is called (with ProcessNetworkLocationRequest()), do not respond
       
   533 //!					5. When privacy controller is called with ProcessRequestComplete(), verify that the reason is KErrNone
       
   534 //!					6. Verify that 'rejected' response is sent to the network
       
   535 //!
       
   536 //!@SYMTestExpectedResults	Privacy request is rejected and location is NOT sent to network
       
   537 //!@SYMPREQ					PREQ 436
       
   538 //!@SYMREQ					
       
   539 //!
       
   540 //!@SYMPREQ					PREQ 162
       
   541 //!@SYMREQ	
       
   542 //!
       
   543 //!@SYMPREQ					PREQ 89
       
   544 //!@SYMREQ		
       
   545 //!
       
   546 //!@SYMTestType				CIT
       
   547 //!@SYMTestPriority			1
       
   548 //!@SYMTestStatus				Implemented. 
       
   549 
       
   550 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
   551 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos 	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
   552 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-0015
       
   553 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
   554 
       
   555 END_TESTCASE LBS-MTLR-PrivCntr-0015
       
   556 
       
   557 START_TESTCASE LBS-MTLR-PrivCntr-0016
       
   558 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-0016
       
   559 //!@SYMTestCaseDesc		Request when external locate turned to 'off but notify' in admin
       
   560 //!
       
   561 //!@SYMTestActions		
       
   562 //!					1. Register as the privacy observer app. 
       
   563 //!					2. Change admin settings (use EExternalLocateOffButNotify) so external locate set to 'offbutnotify' and wait for this to propogate (verify). 				
       
   564 //!					3. Configure netSim and kick off a privacy request of type 'notify/reject' (ERequestAdviceNotify).
       
   565 //!					4. When privacy controller is called (with ProcessNetworkLocationRequest()), check that the notification type has been changed to ENotifyLocationRejected.
       
   566 //!					4a. Make sure that Session Complete is sent to the Privacy Controller.
       
   567 //!					5. Don't accept the request (the NRH should reply for you).
       
   568 //!					6. Verify that 'reject' response is sent to the network
       
   569 //!					7. There should be no other privacy controller callbacks.
       
   570 //!
       
   571 //!@SYMTestExpectedResults		Privacy controller is called but the NRH rejects the request; no location is sent to the network.
       
   572 //!@SYMPREQ					PREQ 436
       
   573 //!@SYMREQ					
       
   574 //!
       
   575 //!@SYMPREQ					PREQ 162
       
   576 //!@SYMREQ		
       
   577 //!
       
   578 //!@SYMPREQ					PREQ 89
       
   579 //!@SYMREQ					REQ 89.04
       
   580 //!
       
   581 //!@SYMTestType				CIT
       
   582 //!@SYMTestPriority			2
       
   583 //!@SYMTestStatus				Implemented. 
       
   584 
       
   585 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
   586 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
   587 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-0016
       
   588 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
   589 
       
   590 END_TESTCASE LBS-MTLR-PrivCntr-0016
       
   591 
       
   592 START_TESTCASE LBS-MTLR-PrivCntr-0017
       
   593 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-0017
       
   594 //!@SYMTestCaseDesc		Request when external locate turned to 'on but always verify' in admin
       
   595 //!
       
   596 //!@SYMTestActions		
       
   597 //!					1. Register as the privacy observer app. 
       
   598 //!					2. Change admin settings (use EExternalLocateOnButAlwaysVerify) and wait for this to propogate (verify). 				
       
   599 //!					3. Configure netSim and kick off a privacy request of type 'verify' (ERequestAdviceVerify).
       
   600 //!					4. When privacy controller is called (with ProcessNetworkLocationRequest()), check that the notification type has not been changed
       
   601 //!					5. Accept the request (use RespondNetworkLocationRequest() ).
       
   602 //!					6. Verify that 'accept' response is sent to the network
       
   603 //!					7. When response to privacy request has been sent to network, kick off a network location request (via NetSim)
       
   604 //!					8. Confirm that privacy controller callbacks ProcessNetworkPositionUpdate() and ProcessRequestComplete() are called
       
   605 //!					9. Confirm that location is sent to network
       
   606 //!
       
   607 //!@SYMTestExpectedResults		Privacy controller is called as usual and location sent to network
       
   608 //!@SYMPREQ					PREQ 436
       
   609 //!@SYMREQ					
       
   610 //!
       
   611 //!@SYMPREQ					PREQ 162
       
   612 //!@SYMREQ		
       
   613 //!
       
   614 //!@SYMPREQ					PREQ 89
       
   615 //!@SYMREQ					REQ 89.04
       
   616 //!
       
   617 //!@SYMTestType				CIT
       
   618 //!@SYMTestPriority			2
       
   619 //!@SYMTestStatus				Implemented. 
       
   620 
       
   621 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
   622 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
   623 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-0017
       
   624 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
   625 
       
   626 END_TESTCASE LBS-MTLR-PrivCntr-0017
       
   627 
       
   628 START_TESTCASE LBS-MTLR-PrivCntr-0018
       
   629 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-0018
       
   630 //!@SYMTestCaseDesc		        Cancel Network location request in the RespondNetworkLocationRequest()
       
   631 //!
       
   632 //!@SYMTestActions		
       
   633 //!                           1. Register as the privacy observer app.
       
   634 //!					2. Change admin settings (use EExternalLocateOn) to allow MT-LRs and wait for this to propogate (verify).
       
   635 //!					3. Configure netSim (use ERequestAdviceNotify) and kick off an privacy request of type 'notify the user and automatically accept'.  
       
   636 //!					4. When privacy controller is called (with ProcessNetworkLocationRequest()), cancel the request (use CancelNetworkLocationRequest() ).
       
   637 //!                           5. Verify network receive 'reject' response from LBS in NotifyReleaseLcsLocationNotification() and do not start Network
       
   638 //!					6. Confirm that privacy controller callbacks ProcessNetworkPositionUpdate() are not called and ProcessRequestComplete() called with KErrNone
       
   639 //!
       
   640 //!@SYMTestExpectedResults		Privacy controller is canceled 
       
   641 //!@SYMPREQ					PREQ 436
       
   642 //!@SYMREQ					
       
   643 //!
       
   644 //!@SYMPREQ					PREQ 162
       
   645 //!@SYMREQ		
       
   646 //!
       
   647 //!@SYMPREQ					PREQ 89
       
   648 //!@SYMREQ					REQ 89.04
       
   649 //!
       
   650 //!@SYMTestType				CIT
       
   651 //!@SYMTestPriority			2
       
   652 //!@SYMTestStatus				Implemented. 
       
   653 
       
   654 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
   655 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
   656 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-0018
       
   657 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
   658 
       
   659 END_TESTCASE LBS-MTLR-PrivCntr-0018
       
   660 
       
   661 START_TESTCASE LBS-MTLR-PrivCntr-0019
       
   662 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-0019
       
   663 //!@SYMTestCaseDesc		CancelNetworkLocationRequest with bad session id.
       
   664 //!
       
   665 //!@SYMTestActions		
       
   666 //!					1. Register as the privacy observer app. 
       
   667 //!					2. Change admin settings (use EExternalLocateOn) to allow MT-LRs and wait for this to propogate (verify). 
       
   668 //!					3. Configure netSim (use ERequestAdviceVerify) and kick off an privacy requestof type 'verify, accept' with a valid Id.  
       
   669 //!					4. When privacy controller is called (with ProcessNetworkLocationRequest()), cancel a 
       
   670 //!					   request (use CancelNetworkLocationRequest() ) passing an invalid ID.
       
   671 //!					5. Original privacy request with valid Id is ignored
       
   672 //!					6. Expect original request to timeout and be automatically accepted. Cancelled (bad) request should be ignored.
       
   673 //!					
       
   674 //!@SYMTestExpectedResults	
       
   675 //!					Location sent to network. Cancel of 'bad' id ignored
       
   676 //!
       
   677 //!
       
   678 //!@SYMPREQ				PREQ 436
       
   679 //!@SYMREQ				REQ 436.05
       
   680 //!@SYMREQ				REQ 436.06
       
   681 //!@SYMREQ				REQ 436.13
       
   682 //!					
       
   683 //!@SYMPREQ				PREQ 162
       
   684 //!@SYMREQ	
       
   685 //!					
       
   686 //!@SYMPREQ				PREQ 89
       
   687 //!@SYMREQ				REQ 89.04
       
   688 //!					
       
   689 //!@SYMTestType				CIT
       
   690 //!@SYMTestPriority			1
       
   691 //!@SYMTestStatus			Implemented. 
       
   692 
       
   693 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
   694 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
   695 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-0019
       
   696 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
   697 
       
   698 END_TESTCASE LBS-MTLR-PrivCntr-0019
       
   699 
       
   700 START_TESTCASE LBS-MTLR-PrivCntr-0020
       
   701 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-0020
       
   702 //!@SYMTestCaseDesc		        Cancel Network location request after after accepting. This relates to defect INC102106[QAT98]
       
   703 //!
       
   704 //!@SYMTestActions		
       
   705 //!                           	1. Register as the privacy observer app.
       
   706 //!			    	2. Change admin settings (use EExternalLocateOn) to allow MT-LRs and wait for this to propogate (verify).
       
   707 //!				3. Configure netSim (use ERequestAdviceNotify) and kick off an privacy request of type 'notify the user and automatically accept'.  
       
   708 //!				4. When privacy controller is called (with ProcessNetworkLocationRequest()), accept the request.
       
   709 //!				5. When receiving NotifyReleaseLcsLocationNotification,  cancel the request (use CancelNetworkLocationRequest() )
       
   710 //!
       
   711 //!@SYMTestExpectedResults		Privacy controller is canceled 
       
   712 //!
       
   713 //!@SYMTestType				CIT
       
   714 //!@SYMTestPriority			2
       
   715 //!@SYMTestStatus				Implemented. 
       
   716 
       
   717 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
   718 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
   719 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-0020
       
   720 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
   721 
       
   722 END_TESTCASE LBS-MTLR-PrivCntr-0020
       
   723 
       
   724 START_TESTCASE LBS-MTLR-PrivCntr-SilentReject-0001
       
   725 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-SilentReject-0001
       
   726 //!@SYMTestCaseDesc			Silent/Reject request behaviourmode = 'custom1'
       
   727 //!					Note: this behaviour seems odd (accepting a 'silent reject'), but is apparently what 'customer1' wanted!
       
   728 //!@SYMTestActions		
       
   729 //!					1. Register as the privacy observer app. 
       
   730 //!					2. Change admin settings (use EExternalLocateOn) to allow MT-LRs and wait for this to propogate (verify). 				
       
   731 //!					3. Configure netSim and kick off a privacy request of type 'silent/reject'(ERequestAdviceSilent/ERequestActionReject).  
       
   732 //!					4. When privacy controller is called (with ProcessNetworkLocationRequest()), accept the request (use RespondNetworkLocationRequest() ).
       
   733 //!					5. Verify that 'accept' response is sent to the network
       
   734 //!					6. When response to privacy request has been sent to network, kick off a network location request (via NetSim)
       
   735 //!					7. Confirm that privacy controller callbacks ProcessNetworkPositionUpdate() and ProcessRequestComplete() are called
       
   736 //!					8. Confirm that location is sent to network
       
   737 //!
       
   738 //!@SYMTestExpectedResults		Privacy request is accepted and location is sent to network
       
   739 //!@SYMPREQ					PREQ 436
       
   740 //!@SYMREQ					
       
   741 //!
       
   742 //!@SYMPREQ					PREQ 162
       
   743 //!@SYMREQ		
       
   744 //!
       
   745 //!@SYMPREQ					PREQ 89
       
   746 //!@SYMREQ					REQ 89.04
       
   747 //!
       
   748 //!@SYMTestType				CIT
       
   749 //!@SYMTestPriority			2
       
   750 //!@SYMTestStatus				Implemented. 
       
   751 
       
   752 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
   753 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
   754 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-SilentReject-0001
       
   755 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
   756 
       
   757 END_TESTCASE LBS-MTLR-PrivCntr-SilentReject-0001
       
   758 
       
   759 START_TESTCASE LBS-MTLR-PrivCntr-Emergency-0001
       
   760 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-Emergency-0001
       
   761 //!@SYMTestCaseDesc		Emergency request of type 'accept and notify' is accepted by privacy controller
       
   762 //!
       
   763 //!@SYMTestActions		
       
   764 //!					1. Register as the privacy observer app. 
       
   765 //!					2. Change admin settings (use EExternalLocateOn) to allow Emergency MT-LRs and wait for this to propogate (verify). 				
       
   766 //!					3. Configure netSim (use SetEmergenyStatus) and kick off an emergency privacy request of type 'notify the user and automatically accept'(ERequestAdviceNotify).  
       
   767 //!					4. When privacy controller is called (with ProcessNetworkLocationRequest()), accept the request (use RespondNetworkLocationRequest() ).
       
   768 //!					5. Verify that 'accept' response is sent to the network
       
   769 //!					6. When response to privacy request has been sent to network, kick off a network location request (via NetSim)
       
   770 //!					7. Confirm that privacy controller callbacks ProcessNetworkPositionUpdate() and ProcessRequestComplete() are called
       
   771 //!					8. Confirm that location is sent to network
       
   772 //!
       
   773 //!@SYMTestExpectedResults	Privacy request is accepted and location is sent to network
       
   774 //!@SYMPREQ					PREQ 436
       
   775 //!@SYMREQ					
       
   776 //!
       
   777 //!@SYMPREQ					PREQ 162
       
   778 //!@SYMREQ		
       
   779 //!
       
   780 //!@SYMPREQ					PREQ 89
       
   781 //!@SYMREQ					REQ 89.04
       
   782 //!
       
   783 //!@SYMTestType				CIT
       
   784 //!@SYMTestPriority			1
       
   785 //!@SYMTestStatus				Implemented. 
       
   786 
       
   787 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
   788 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
   789 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Emergency-0001
       
   790 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
   791 
       
   792 END_TESTCASE LBS-MTLR-PrivCntr-Emergency-0001
       
   793 
       
   794 
       
   795 START_TESTCASE LBS-MTLR-PrivCntr-Emergency-0002
       
   796 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-Emergency-0002
       
   797 //!@SYMTestCaseDesc		Emergency request of type 'accept and notify' is rejected by privacy controller
       
   798 //!
       
   799 //!@SYMTestActions		
       
   800 //!					1. Register as the privacy observer app. 
       
   801 //!					2. Change admin settings (use EExternalLocateOn) to allow Emergency MT-LRs and wait for this to propogate (verify). 				
       
   802 //!					3. Configure netSim (use SetEmergenyStatus) and kick off an emergency privacy requestof type 'accept and notify'(ERequestAdviceNotify).  
       
   803 //!					4. When privacy controller is called (with ProcessNetworkLocationRequest()), reject the request (use RespondNetworkLocationRequest() ).
       
   804 //!					5. Verify that 'accept' response is sent to the network (despite the priv controller rejecting it)
       
   805 //!					6. When response to privacy request has been sent to network, kick off a network location request (via NetSim)
       
   806 //!					7. Confirm that privacy controller callbacks ProcessNetworkPositionUpdate() and ProcessRequestComplete() are called
       
   807 //!					8. Confirm that location is sent to network
       
   808 //!
       
   809 //!@SYMTestExpectedResults	Privacy request is accepted and location is sent to network
       
   810 //!@SYMPREQ					PREQ 436
       
   811 //!@SYMREQ					
       
   812 //!
       
   813 //!@SYMPREQ					PREQ 162
       
   814 //!@SYMREQ		
       
   815 //!
       
   816 //!@SYMPREQ					PREQ 89
       
   817 //!@SYMREQ					REQ 89.04
       
   818 //!
       
   819 //!@SYMTestType				CIT
       
   820 //!@SYMTestPriority			1
       
   821 //!@SYMTestStatus				Implemented. 
       
   822 
       
   823 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
   824 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
   825 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Emergency-0002
       
   826 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
   827 
       
   828 END_TESTCASE LBS-MTLR-PrivCntr-Emergency-0002
       
   829 
       
   830 
       
   831 START_TESTCASE LBS-MTLR-PrivCntr-Emergency-0003
       
   832 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-Emergency-0003
       
   833 //!@SYMTestCaseDesc		Emergency request of type 'verify, reject' is rejected by privacy controller
       
   834 //!
       
   835 //!@SYMTestActions		
       
   836 //!					1. Register as the privacy observer app. 
       
   837 //!					2. Change admin settings (use EExternalLocateOn) to allow Emergency MT-LRs and wait for this to propogate (verify). 				
       
   838 //!					3. Configure netSim (use SetEmergenyStatus) and kick off an emergency privacy requestof type 'verify/reject' (ERequestAdviceVerify + ERequestActionReject).  
       
   839 //!					4. When privacy controller is called (with ProcessNetworkLocationRequest()), verify that the notification type has been changed to 'accept/notify'  
       
   840 //!					5. Reject the request (use RespondNetworkLocationRequest() ).
       
   841 //!					6. Verify that 'accept' response is sent to the network (despite the priv controller rejecting it)
       
   842 //!					7. When response to privacy request has been sent to network, kick off a network location request (via NetSim)
       
   843 //!					8. Confirm that privacy controller callbacks ProcessNetworkPositionUpdate() and ProcessRequestComplete() are called
       
   844 //!					9. Confirm that location is sent to network
       
   845 //!
       
   846 //!@SYMTestExpectedResults	Privacy request is accepted and location is sent to network
       
   847 //!@SYMPREQ					PREQ 436
       
   848 //!@SYMREQ					
       
   849 //!
       
   850 //!@SYMPREQ					PREQ 162
       
   851 //!@SYMREQ		
       
   852 //!
       
   853 //!@SYMPREQ					PREQ 89
       
   854 //!@SYMREQ					REQ 89.04
       
   855 //!
       
   856 //!@SYMTestType				CIT
       
   857 //!@SYMTestPriority			1
       
   858 //!@SYMTestStatus				Implemented. 
       
   859 
       
   860 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
   861 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
   862 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Emergency-0003
       
   863 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
   864 
       
   865 END_TESTCASE LBS-MTLR-PrivCntr-Emergency-0003
       
   866 
       
   867 
       
   868 START_TESTCASE LBS-MTLR-PrivCntr-Emergency-0004
       
   869 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-Emergency-0004
       
   870 //!@SYMTestCaseDesc		Privacy controller attempts to cancel Emergency request
       
   871 //!
       
   872 //!@SYMTestActions		
       
   873 //!					1. Register as the privacy observer app. 
       
   874 //!					2. Change admin settings (use EExternalLocateOn) to allow Emergency MT-LRs and wait for this to propogate (verify). 				
       
   875 //!					3. Configure netSim (use SetEmergenyStatus) and kick off an emergency privacy request of type 'notify/accept' (ERequestAdviceNotify + ERequestActionAllow).  
       
   876 //!					4. When privacy controller is called (with ProcessNetworkLocationRequest()), verify the notification type
       
   877 //!					5. Cancel the request (use CancelNetworkLocationRequest())
       
   878 //!					6. Verify that 'accept' response is sent to the network (despite the priv controller cancelling it)
       
   879 //!					7. When response to privacy request has been sent to network, kick off a network location request (via NetSim)
       
   880 //!					8. Confirm that privacy controller callbacks ProcessNetworkPositionUpdate() and ProcessRequestComplete() are called
       
   881 //!					9. Confirm that location is sent to network
       
   882 //!
       
   883 //!@SYMTestExpectedResults		Privacy request is accepted and location is sent to network
       
   884 //!@SYMPREQ					PREQ 436
       
   885 //!@SYMREQ					
       
   886 //!
       
   887 //!@SYMPREQ					PREQ 162
       
   888 //!@SYMREQ		
       
   889 //!
       
   890 //!@SYMPREQ					PREQ 89
       
   891 //!@SYMREQ					REQ 89.04
       
   892 //!
       
   893 //!@SYMTestType				CIT
       
   894 //!@SYMTestPriority			1
       
   895 //!@SYMTestStatus				Implemented. 
       
   896 
       
   897 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
   898 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
   899 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Emergency-0004
       
   900 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
   901 
       
   902 END_TESTCASE LBS-MTLR-PrivCntr-Emergency-0004
       
   903 
       
   904 START_TESTCASE LBS-MTLR-PrivCntr-Emergency-0005
       
   905 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-Emergency-0005
       
   906 //!@SYMTestCaseDesc		Emergency request of type 'verify, allow' is ignored by privacy controller
       
   907 //!
       
   908 //!@SYMTestActions		
       
   909 //!					1. Register as the privacy observer app. 
       
   910 //!					2. Change admin settings (use EExternalLocateOn) to allow Emergency MT-LRs and wait for this to propogate (verify). 				
       
   911 //!					3. Configure netSim (use SetEmergenyStatus) and kick off an emergency privacy request of type 'verify/allow'(ERequestAdviceVerify + ERequestActionAllow).  
       
   912 //!					4. When privacy controller is called (with ProcessNetworkLocationRequest()), verify that the notification type has been changed to 'accept/notify'  
       
   913 //!					5. Do not respond to the privacy request.
       
   914 //!					6. Verify that 'accept' response is sent to the network (despite the priv controller rejecting it)
       
   915 //!					7. When response to privacy request has been sent to network, kick off a network location request (via NetSim)
       
   916 //!					8. Confirm that privacy controller callbacks ProcessNetworkPositionUpdate() and ProcessRequestComplete() are called
       
   917 //!					9. Confirm that location is sent to network
       
   918 //!
       
   919 //!@SYMTestExpectedResults	Privacy request is accepted and location is sent to network
       
   920 //!@SYMPREQ					PREQ 436
       
   921 //!@SYMREQ					
       
   922 //!
       
   923 //!@SYMPREQ					PREQ 162
       
   924 //!@SYMREQ		
       
   925 //!
       
   926 //!@SYMPREQ					PREQ 89
       
   927 //!@SYMREQ					REQ 89.04
       
   928 //!
       
   929 //!@SYMTestType				CIT
       
   930 //!@SYMTestPriority			1
       
   931 //!@SYMTestStatus				Implemented. 
       
   932 
       
   933 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
   934 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
   935 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Emergency-0005
       
   936 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
   937 
       
   938 END_TESTCASE LBS-MTLR-PrivCntr-Emergency-0005
       
   939 
       
   940 
       
   941 START_TESTCASE LBS-MTLR-PrivCntr-Emergency-0006
       
   942 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-Emergency-0006
       
   943 //!@SYMTestCaseDesc		Emergency request of type 'silent' accepted by privacy controller
       
   944 //!
       
   945 //!@SYMTestActions		
       
   946 //!					1. Register as the privacy observer app. 
       
   947 //!					2. Change admin settings (use EExternalLocateOn) to allow Emergency MT-LRs and wait for this to propogate (verify). 				
       
   948 //!					3. Configure netSim (use SetEmergenyStatus) and kick off an emergency privacy request of type 'silent'(ERequestAdviceSilent).  
       
   949 //!					4. When ProcessNetworkLocationRequest() called, accept it and kick off a network location request (via NetSim).
       
   950 //!					5. Verify that 'accept' response is sent to the network.
       
   951 //!					6. Confirm that privacy controller callbacks ProcessNetworkPositionUpdate() and ProcessRequestComplete() are called
       
   952 //!					7. Confirm that location is sent to network
       
   953 //!
       
   954 //!@SYMTestExpectedResults	Privacy request is accepted and location is sent to network
       
   955 //!@SYMPREQ					PREQ 436
       
   956 //!@SYMREQ					
       
   957 //!
       
   958 //!@SYMPREQ					PREQ 162
       
   959 //!@SYMREQ		
       
   960 //!
       
   961 //!@SYMPREQ					PREQ 89
       
   962 //!@SYMREQ					REQ 89.04
       
   963 //!
       
   964 //!@SYMTestType				CIT
       
   965 //!@SYMTestPriority			1
       
   966 //!@SYMTestStatus				Implemented. 
       
   967 
       
   968 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
   969 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
   970 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Emergency-0006
       
   971 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
   972 
       
   973 END_TESTCASE LBS-MTLR-PrivCntr-Emergency-0006
       
   974 
       
   975 // This test case is commented out because the privacy controller
       
   976 // no longer reads the admin setting for emergency privacy requests.
       
   977 // Instead it just accepts or rejects based on the RequestAction() sent
       
   978 // in from the network.
       
   979 //START_TESTCASE LBS-MTLR-PrivCntr-Emergency-0007
       
   980 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-Emergency-0007
       
   981 //!@SYMTestCaseDesc		Emergency request when emergency locate turned off in admin
       
   982 //!
       
   983 //!@SYMTestActions		
       
   984 //!					1. Register as the privacy observer app. 
       
   985 //!					2. Change admin settings (use EExternalLocateOff) to disallow Emergency MT-LRs and wait for this to propogate (verify). 				
       
   986 //!					3. Configure netSim (use SetEmergenyStatus) and kick off an emergency privacy request.  
       
   987 //!					4. Verify that the privacy controller callbacks are not called
       
   988 //!					5. Confirm that location is not sent to network
       
   989 //!
       
   990 //!@SYMTestExpectedResults		Privacy controller is never called and location not sent to network
       
   991 //!@SYMPREQ					PREQ 436
       
   992 //!@SYMREQ					
       
   993 //!
       
   994 //!@SYMPREQ					PREQ 162
       
   995 //!@SYMREQ		
       
   996 //!
       
   997 //!@SYMPREQ					PREQ 89
       
   998 //!@SYMREQ					REQ 89.04
       
   999 //!
       
  1000 //!@SYMTestType				CIT
       
  1001 //!@SYMTestPriority			2
       
  1002 //!@SYMTestStatus				Incomplete. 
       
  1003 
       
  1004 //RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
  1005 //RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
  1006 //RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Emergency-0007
       
  1007 //RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
  1008 
       
  1009 //END_TESTCASE LBS-MTLR-PrivCntr-Emergency-0007
       
  1010 
       
  1011 START_TESTCASE LBS-MTLR-PrivCntr-Emergency-0008
       
  1012 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-Emergency-0008
       
  1013 //!@SYMTestCaseDesc		Emergency request of type 'verify, reject' is rejected by privacy controller while emergencylocate set to 'OnButAlwaysVerify'
       
  1014 //!
       
  1015 //!@SYMTestActions		
       
  1016 //!					1. Register as the privacy observer app. 
       
  1017 //!					2. Change admin settings (use EExternalLocateOnButVerify) to allow Emergency MT-LRs and wait for this to propogate (verify). 				
       
  1018 //!					3. Configure netSim (use SetEmergenyStatus) and kick off an emergency privacy requestof type 'verify/reject' (ERequestAdviceVerify + ERequestActionReject).  
       
  1019 //!					4. When privacy controller is called (with ProcessNetworkLocationRequest()), verify that the notification type has been changed to 'accept/notify'  
       
  1020 //!					5. Reject the request (use RespondNetworkLocationRequest() ).
       
  1021 //!					6. Verify that 'accept' response is sent to the network (despite the priv controller rejecting it)
       
  1022 //!					7. When response to privacy request has been sent to network, kick off a network location request (via NetSim)
       
  1023 //!					8. Confirm that privacy controller callbacks ProcessNetworkPositionUpdate() and ProcessRequestComplete() are called
       
  1024 //!					9. Confirm that location is sent to network
       
  1025 //!
       
  1026 //!@SYMTestExpectedResults	'OnButVerify' setting has no effect when using privacy controller. Privacy request is accepted and location is sent to network
       
  1027 //!@SYMPREQ					PREQ 436
       
  1028 //!@SYMREQ					
       
  1029 //!
       
  1030 //!@SYMPREQ					PREQ 162
       
  1031 //!@SYMREQ		
       
  1032 //!
       
  1033 //!@SYMPREQ					PREQ 89
       
  1034 //!@SYMREQ					REQ 89.04
       
  1035 //!
       
  1036 //!@SYMTestType				CIT
       
  1037 //!@SYMTestPriority			2
       
  1038 //!@SYMTestStatus				Implemented. 
       
  1039 
       
  1040 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
  1041 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
  1042 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Emergency-0008
       
  1043 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
  1044 
       
  1045 END_TESTCASE LBS-MTLR-PrivCntr-Emergency-0008
       
  1046 
       
  1047 // NOTE: Commented out because 'roaming' not currently supported in LBS
       
  1048 // This is LBS-MTLR-PrivCntr-0001, but while Roaming
       
  1049 //START_TESTCASE LBS-MTLR-PrivCntr-Roaming-0001
       
  1050 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-Roaming-0001
       
  1051 //!@SYMTestCaseDesc		While roaming. 'Notify and Accept' request from network accepted. ExternalLocateOn for roaming.   
       
  1052 //!
       
  1053 //!@SYMTestActions		
       
  1054 //!					1. Register as the privacy observer app. 
       
  1055 //!					2. Change admin settings (use EExternalLocateOn) to allow MT-LRs and wait for this to propogate (verify). 				
       
  1056 //!					3. Configure netSim (set 'Roaming' + use ERequestAdviceNotify) and kick off an privacy request of type 'notify the user and automatically accept'.  
       
  1057 //!					4. When privacy controller is called (with ProcessNetworkLocationRequest()), accept the request (use RespondNetworkLocationRequest() ).
       
  1058 //!					5. Verify that 'accept' response is sent to the network
       
  1059 //!					6. When response to privacy request has been sent to network, kick off a network location request (via NetSim)
       
  1060 //!					7. Confirm that privacy controller callbacks ProcessNetworkPositionUpdate() and ProcessRequestComplete() are called
       
  1061 //!					8. Confirm that location is sent to network
       
  1062 //!
       
  1063 //!@SYMTestExpectedResults	Privacy request accepted and location sent to network
       
  1064 //!@SYMPREQ					PREQ 436
       
  1065 //!@SYMREQ					REQ 436.04
       
  1066 //!@SYMREQ					REQ 436.05
       
  1067 //!@SYMREQ					REQ 436.06
       
  1068 //!@SYMREQ					REQ 436.13
       
  1069 //!
       
  1070 //!@SYMPREQ					PREQ 162
       
  1071 //!@SYMREQ					162.05
       
  1072 //!@SYMREQ					162.06
       
  1073 //!
       
  1074 //!@SYMPREQ					PREQ 89
       
  1075 //!@SYMREQ					REQ 89.04
       
  1076 //!
       
  1077 //!@SYMTestType				CIT
       
  1078 //!@SYMTestPriority			1
       
  1079 //!@SYMTestStatus				Implemented. 
       
  1080 
       
  1081 //RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
  1082 //RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
  1083 //RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Roaming-0001
       
  1084 //RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
  1085 
       
  1086 //END_TESTCASE LBS-MTLR-PrivCntr-Roaming-0001
       
  1087 
       
  1088 // NOTE: Commented out because 'roaming' not currently supported in LBS
       
  1089 // This is LBS-MTLR-PrivCntr-0014, but while Roaming
       
  1090 //START_TESTCASE LBS-MTLR-PrivCntr-Roaming-0002
       
  1091 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-Roaming-0002
       
  1092 //!@SYMTestCaseDesc		While roaming. Request when ExternalLocateOff for roaming.
       
  1093 //!
       
  1094 //!@SYMTestActions		
       
  1095 //!					1. Register as the privacy observer app. 
       
  1096 //!					2. Change admin settings (use EExternalLocateOff) to disallow MT-LRs on Roaming network and wait for this to propogate (verify). 				
       
  1097 //!					3. Configure netSim (Roaming etc) and kick off a privacy request.  
       
  1098 //!					4. Verify that the privacy controller callbacks are not called
       
  1099 //!					5. Confirm that location is not sent to network
       
  1100 //!
       
  1101 //!@SYMTestExpectedResults		Privacy controller is never called and location not sent to network
       
  1102 //!@SYMPREQ					PREQ 436
       
  1103 //!@SYMREQ					
       
  1104 //!
       
  1105 //!@SYMPREQ					PREQ 162
       
  1106 //!@SYMREQ		
       
  1107 //!
       
  1108 //!@SYMPREQ					PREQ 89
       
  1109 //!@SYMREQ					REQ 89.04
       
  1110 //!
       
  1111 //!@SYMTestType				CIT
       
  1112 //!@SYMTestPriority			2
       
  1113 //!@SYMTestStatus				Implemented. 
       
  1114 
       
  1115 //RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
  1116 //RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
  1117 //RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Roaming-0002
       
  1118 //RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
  1119 
       
  1120 //END_TESTCASE LBS-MTLR-PrivCntr-Roaming-0002
       
  1121 
       
  1122 
       
  1123 // NOTE: Commented out because 'roaming' not currently supported in LBS
       
  1124 //This is LBS-MTLR-PrivCntr-Emergency-0001 but while roaming:
       
  1125 //START_TESTCASE LBS-MTLR-PrivCntr-Emergency-Roaming-0001
       
  1126 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-Emergency-Roaming-0001
       
  1127 //!@SYMTestCaseDesc		While roaming, Emergency request of type 'accept and notify' is accepted by privacy controller. 
       
  1128 //!					EEmergencyLocateOn for Roaming. 
       
  1129 //!
       
  1130 //!@SYMTestActions		
       
  1131 //!					1. Register as the privacy observer app. 
       
  1132 //!					2. Change admin settings (use EEmergencyLocateOn, EExternalLocateOff for roaming, both Off for home) to allow Emergency MT-LRs on Roaming Network and wait for this to propogate (verify).  				
       
  1133 //!					3. Configure netSim (use SetEmergenyStatus) and kick off an emergency privacy request of type 'notify the user and automatically accept'(ERequestAdviceNotify).  
       
  1134 //!					4. When privacy controller is called (with ProcessNetworkLocationRequest()), accept the request (use RespondNetworkLocationRequest() ).
       
  1135 //!					5. Verify that 'accept' response is sent to the network
       
  1136 //!					6. When response to privacy request has been sent to network, kick off a network location request (via NetSim)
       
  1137 //!					7. Confirm that privacy controller callbacks ProcessNetworkPositionUpdate() and ProcessRequestComplete() are called
       
  1138 //!					8. Confirm that location is sent to network
       
  1139 //!
       
  1140 //!@SYMTestExpectedResults	Privacy request is accepted and location is sent to network
       
  1141 //!@SYMPREQ					PREQ 436
       
  1142 //!@SYMREQ					
       
  1143 //!
       
  1144 //!@SYMPREQ					PREQ 162
       
  1145 //!@SYMREQ		
       
  1146 //!
       
  1147 //!@SYMPREQ					PREQ 89
       
  1148 //!@SYMREQ					REQ 89.04
       
  1149 //!
       
  1150 //!@SYMTestType				CIT
       
  1151 //!@SYMTestPriority			1
       
  1152 //!@SYMTestStatus				Implemented. 
       
  1153 
       
  1154 //RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
  1155 //RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
  1156 //RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Emergency-Roaming-0001
       
  1157 //RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
  1158 
       
  1159 //END_TESTCASE LBS-MTLR-PrivCntr-Emergency-Roaming-0001
       
  1160 
       
  1161 
       
  1162 // NOTE: Commented out because 'roaming' not currently supported in LBS
       
  1163 //This is LBS-MTLR-PrivCntr-Emergency-0007 but while roaming:
       
  1164 //START_TESTCASE LBS-MTLR-PrivCntr-Emergency-Roaming-0002
       
  1165 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-Emergency-Roaming-0002
       
  1166 //!@SYMTestCaseDesc		While roaming; Emergency request when EmergencyLocateOff for roaming networks 
       
  1167 //!
       
  1168 //!@SYMTestActions		
       
  1169 //!					1. Register as the privacy observer app. 
       
  1170 //!					2. Change admin settings (use EExternalLocateOff for Roaming) to disallow Emergency MT-LRs and wait for this to propogate (verify). 				
       
  1171 //!					3. Configure netSim (use SetEmergenyStatus) and kick off an emergency privacy request.  
       
  1172 //!					4. Verify that the privacy controller callbacks are not called
       
  1173 //!					5. Confirm that location is not sent to network
       
  1174 //!
       
  1175 //!@SYMTestExpectedResults		Privacy controller is never called and location not sent to network
       
  1176 //!@SYMPREQ					PREQ 436
       
  1177 //!@SYMREQ					
       
  1178 //!
       
  1179 //!@SYMPREQ					PREQ 162
       
  1180 //!@SYMREQ		
       
  1181 //!
       
  1182 //!@SYMPREQ					PREQ 89
       
  1183 //!@SYMREQ					REQ 89.04
       
  1184 //!
       
  1185 //!@SYMTestType				CIT
       
  1186 //!@SYMTestPriority			2
       
  1187 //!@SYMTestStatus				Incomplete. 
       
  1188 
       
  1189 //RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
  1190 //RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
  1191 //RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Emergency-Roaming-0002
       
  1192 //RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
  1193 
       
  1194 //END_TESTCASE LBS-MTLR-PrivCntr-Emergency-Roaming-0002
       
  1195 
       
  1196 START_TESTCASE LBS-MTLR-Quality-Profile-0001
       
  1197 //!@SYMTestCaseID			LBS-MTLR-Quality-Profile-0001
       
  1198 //!@SYMTestCaseDesc		Request a location update from Network by setting required quality profile Id in admin
       
  1199 //!
       
  1200 //!@SYMTestActions		
       
  1201 //!					1. Register as the privacy observer app. 
       
  1202 //!					2. Change admin settings (use KSettingQualityProfileExternalLocate) to allow MT-LR uses quality profile and wait for this to propogate (verify). 				
       
  1203 //!					3. Configure netSim (use ERequestAdviceNotify) and set MAXTime to zero by calling SetQuality function
       
  1204 //!                                         *Note: Ensure ntework uses qualityprofile while requesting a location.
       
  1205 //!                                     4. kick off an privacy request of type 'notify the user and automatically accept'.  
       
  1206 //!					5. When privacy controller is called (with ProcessNetworkLocationRequest()), accept the request (use RespondNetworkLocationRequest() ).
       
  1207 //!					6. Verify that 'accept' response is sent to the network
       
  1208 //!					7. When response to privacy request has been sent to network, kick off a network location request (via NetSim)
       
  1209 //!					8. Confirm that privacy controller callbacks ProcessNetworkPositionUpdate() and ProcessRequestComplete() are called
       
  1210 //!					9. Confirm that location is sent to network
       
  1211 //!
       
  1212 //!@SYMTestExpectedResults	Privacy request accepted and location sent to network with the specified accuracy
       
  1213 //!@SYMPREQ					PREQ 436
       
  1214 //!@SYMREQ					REQ 436.04
       
  1215 //!@SYMREQ					REQ 436.05
       
  1216 //!@SYMREQ					REQ 436.06
       
  1217 //!@SYMREQ					REQ 436.13
       
  1218 //!
       
  1219 //!@SYMPREQ					PREQ 162
       
  1220 //!@SYMREQ					162.05
       
  1221 //!@SYMREQ					162.06
       
  1222 //!
       
  1223 //!@SYMPREQ					PREQ 89
       
  1224 //!@SYMREQ					REQ 89.04
       
  1225 //!
       
  1226 //!@SYMTestType				CIT
       
  1227 //!@SYMTestPriority			1
       
  1228 //!@SYMTestStatus				Implemented. 
       
  1229 
       
  1230 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
  1231 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Quality-Profile-0001
       
  1232 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Quality-Profile-0001
       
  1233 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
  1234 
       
  1235 END_TESTCASE LBS-MTLR-Quality-Profile-0001
       
  1236 
       
  1237 
       
  1238 START_TESTCASE LBS-MTLR-Timeout-0001
       
  1239 //!@SYMTestCaseID			LBS-MTLR-Timeout-0001
       
  1240 //!@SYMTestCaseDesc		Request a location update from Network by setting required quality profile Id in admin
       
  1241 //!
       
  1242 //!@SYMTestActions		
       
  1243 //!					1. Register as the privacy observer app. 
       
  1244 //!					2. Change admin settings (use KSettingQualityProfileExternalLocate) to allow MT-LR uses quality profile and wait for this to propogate (verify). 				
       
  1245 //!					3. Configure netSim (use ERequestAdviceNotify and do not provide valid quality params in request)
       
  1246 //!                                         *Note: Above ensures ntework uses qualityprofile while requesting a location.
       
  1247 //!                                     4. kick off an privacy request of type 'notify the user and automatically accept'.  
       
  1248 //!					5. When privacy controller is called (with ProcessNetworkLocationRequest()), accept the request (use RespondNetworkLocationRequest() ).
       
  1249 //!					6. Verify that 'accept' response is sent to the network
       
  1250 //!					7. When response to privacy request has been sent to network, kick off a network location request (via NetSim)
       
  1251 //!					8. Confirm that privacy controller callbacks ProcessNetworkPositionUpdate() and ProcessRequestComplete() are called
       
  1252 //!					9. Confirm that location is sent to network
       
  1253 //!
       
  1254 //!@SYMTestExpectedResults	Privacy request accepted and location sent to network with the specified accuracy
       
  1255 //!@SYMPREQ					PREQ 436
       
  1256 //!@SYMREQ					REQ 436.04
       
  1257 //!@SYMREQ					REQ 436.05
       
  1258 //!@SYMREQ					REQ 436.06
       
  1259 //!@SYMREQ					REQ 436.13
       
  1260 //!
       
  1261 //!@SYMPREQ					PREQ 162
       
  1262 //!@SYMREQ					162.05
       
  1263 //!@SYMREQ					162.06
       
  1264 //!
       
  1265 //!@SYMPREQ					PREQ 89
       
  1266 //!@SYMREQ					REQ 89.04
       
  1267 //!
       
  1268 //!@SYMTestType				CIT
       
  1269 //!@SYMTestPriority			1
       
  1270 //!@SYMTestStatus				Implemented. 
       
  1271 
       
  1272 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
  1273 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Timeout-0001
       
  1274 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Timeout-0001
       
  1275 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
  1276 
       
  1277 END_TESTCASE LBS-MTLR-Timeout-0001
       
  1278 
       
  1279 START_TESTCASE LBS-MTLR-PrivCntr-AlwaysVerify-Timeout-0001
       
  1280 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-AlwaysVerify-Timeout-0001
       
  1281 //!@SYMTestCaseDesc			Privacy request of type 'notify/reject timesout. External locate turned to 'on but always verify' in admin. Behaviourmode = 'custom1'
       
  1282 //!
       
  1283 //!@SYMTestActions		
       
  1284 //!					1. Register as the privacy observer app. 
       
  1285 //!					2. Change admin settings (use EExternalLocateOnButAlwaysVerify) and wait for this to propogate (verify). 				
       
  1286 //!					3. Configure netSim and kick off a privacy request of type 'notify/reject' (ERequestAdviceNotify/ERequestActionReject).
       
  1287 //!					4. When privacy controller is called (with ProcessNetworkLocationRequest()), check the notification type 
       
  1288 //!					5. Do not respond to request (so it timesout)
       
  1289 //!					6. Verify that 'reject' response is sent to the network
       
  1290 //!
       
  1291 //!@SYMTestExpectedResults		Privacy request is rejected
       
  1292 //!@SYMPREQ					PREQ 436
       
  1293 //!@SYMREQ					
       
  1294 //!
       
  1295 //!@SYMPREQ					PREQ 162
       
  1296 //!@SYMREQ		
       
  1297 //!
       
  1298 //!@SYMPREQ					PREQ 89
       
  1299 //!@SYMREQ					REQ 89.04
       
  1300 //!
       
  1301 //!@SYMTestType				CIT
       
  1302 //!@SYMTestPriority			2
       
  1303 //!@SYMTestStatus				Implemented. 
       
  1304 
       
  1305 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
  1306 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
  1307 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-AlwaysVerify-Timeout-0001
       
  1308 
       
  1309 END_TESTCASE LBS-MTLR-PrivCntr-AlwaysVerify-Timeout-0001
       
  1310 
       
  1311 
       
  1312 
       
  1313 
       
  1314 START_TESTCASE LBS-MTLR-PrivCntr-AlwaysVerify-Timeout-0002
       
  1315 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-AlwaysVerify-Timeout-0002
       
  1316 //!@SYMTestCaseDesc			Privacy request of type 'notify/allow' timesout. External locate turned to 'on but always verify' in admin. Behaviourmode = 'custom1'
       
  1317 //!
       
  1318 //!@SYMTestActions		
       
  1319 //!					1. Register as the privacy observer app. 
       
  1320 //!					2. Change admin settings (use EExternalLocateOnButAlwaysVerify) and wait for this to propogate (verify). 				
       
  1321 //!					3. Configure netSim and kick off a privacy request of type 'notify/allow' ERequestAdviceNotify + ERequestActionAllow).
       
  1322 //!					4. When privacy controller is called (with ProcessNetworkLocationRequest()), check the notification type 
       
  1323 //!					5. Do not respond to request (so it timesout)
       
  1324 //!					6. Verify that 'accept' response is sent to the network
       
  1325 //!
       
  1326 //!@SYMTestExpectedResults		Privacy request is accepted
       
  1327 //!@SYMPREQ					PREQ 436
       
  1328 //!@SYMREQ					
       
  1329 //!
       
  1330 //!@SYMPREQ					PREQ 162
       
  1331 //!@SYMREQ		
       
  1332 //!
       
  1333 //!@SYMPREQ					PREQ 89
       
  1334 //!@SYMREQ					REQ 89.04
       
  1335 //!
       
  1336 //!@SYMTestType				CIT
       
  1337 //!@SYMTestPriority			2
       
  1338 //!@SYMTestStatus				Implemented. 
       
  1339 
       
  1340 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
  1341 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
  1342 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-AlwaysVerify-Timeout-0002
       
  1343 
       
  1344 END_TESTCASE LBS-MTLR-PrivCntr-AlwaysVerify-Timeout-0002
       
  1345 
       
  1346 
       
  1347 // We need to re-start LBS with a profile ini containing a valid profile for 'profile not in use' id and 'profile not in use' id in admin cenrep
       
  1348 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_StopLbs
       
  1349 
       
  1350 PREFIX RUN_UTILS
       
  1351 CopyFile c:\testdata\configs\lbstestprofile_valid_profilenotinuse.ini c:\private\10282253\lbs\lbsprofile.ini 
       
  1352 CopyFile c:\private\10202be9\1028224b.cre c:\private\10202be9\1028224B.cre.save
       
  1353 DeleteFile c:\private\10202be9\1028224b.cre 
       
  1354 DeleteFile c:\private\10202be9\persists\1028224b.cre 
       
  1355 CopyFile c:\testdata\1028224b_custom1behaviour_noextprofileinuse.cre c:\private\10202be9\persists\1028224b.cre
       
  1356 CopyFile c:\testdata\1028224b_custom1behaviour_noextprofileinuse.cre c:\private\10202be9\1028224B.cre
       
  1357 REMOVE_PREFIX
       
  1358 
       
  1359 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_ResetDefaultAdmin
       
  1360 RUN_TEST_STEP 030 LbsMTLRTestServer LbsStep_SetPrivacyHandler c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr
       
  1361 RUN_TEST_STEP 030 LbsMTLRTestServer LbsStep_StartLbs
       
  1362 
       
  1363 START_TESTCASE LBS-MTLR-Quality-Profile-0005
       
  1364 //!@SYMTestCaseID			LBS-MTLR-Quality-Profile-0005
       
  1365 //!@SYMTestCaseDesc			'custom1' behaviour mode. Privacy + Location Request from Network with quality profile = "quality profile not in use" Id in admin
       
  1366 //!					profile details for "quality profile not in use" id exists in profile .ini file
       
  1367 //!@SYMTestActions		
       
  1368 //!					1. Register as the privacy observer app. 
       
  1369 //!					2. Change admin settings (use KSettingQualityProfileExternalLocate) to indicate that MT-LR should not use a quality profile and wait for this to propogate (verify). 				
       
  1370 //!					3. Configure netSim (use ERequestAdviceNotify and invalid quality params)
       
  1371 //!                                     4. kick off an privacy request of type 'notify the user and automatically accept'.  
       
  1372 //!					5. When privacy controller is called (with ProcessNetworkLocationRequest()), accept the request
       
  1373 //!					6. Verify that 'accept' response is sent to the network
       
  1374 //!					7. When response to privacy request has been sent to network, kick off a network location request
       
  1375 //!					8. Confirm that privacy controller callbacks ProcessNetworkPositionUpdate() and ProcessRequestComplete() are called with KErrNone
       
  1376 //!					9. Confirm that location is sent to network
       
  1377 //!
       
  1378 //!@SYMTestExpectedResults		Privacy request accepted and location sent to network
       
  1379 //!
       
  1380 //!@SYMPREQ					PREQ 436
       
  1381 //!@SYMREQ					REQ 436.04
       
  1382 //!@SYMREQ					REQ 436.05
       
  1383 //!@SYMREQ					REQ 436.06
       
  1384 //!@SYMREQ					REQ 436.13
       
  1385 //!
       
  1386 //!@SYMPREQ					PREQ 162
       
  1387 //!@SYMREQ					162.05
       
  1388 //!@SYMREQ					162.06
       
  1389 //!
       
  1390 //!@SYMPREQ					PREQ 89
       
  1391 //!@SYMREQ					REQ 89.04
       
  1392 //!
       
  1393 //!@SYMTestType				CIT
       
  1394 //!@SYMTestPriority			2
       
  1395 //!@SYMTestStatus			Implemented. 
       
  1396 
       
  1397 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
  1398 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Quality-Profile-0005
       
  1399 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Quality-Profile-0005
       
  1400 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
  1401 
       
  1402 END_TESTCASE LBS-MTLR-Quality-Profile-0005
       
  1403 
       
  1404 // Tidy up after LBS-MTLR-Quality-Profile-0005:
       
  1405 PRINT Stop LBS
       
  1406 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_StopLbs
       
  1407 PREFIX RUN_UTILS
       
  1408 DeleteFile c:\private\10202be9\1028224b.cre 
       
  1409 DeleteFile c:\private\10202be9\persists\1028224b.cre
       
  1410 CopyFile c:\private\10202be9\1028224B.cre.save c:\private\10202be9\1028224B.cre
       
  1411 CopyFile c:\private\10202be9\1028224B.cre.save c:\private\10202be9\persists\1028224B.cre
       
  1412 DeleteFile c:\private\10202be9\1028224B.cre.save
       
  1413 REMOVE_PREFIX
       
  1414 
       
  1415 
       
  1416 // Move the admin cenrep file out of the way and replace with a test version (original behaviour + profilenotinuse). Also use profile.ini with no entry for 'profilenotinuse' id
       
  1417 PREFIX RUN_UTILS
       
  1418 CopyFile c:\testdata\configs\lbstestprofile.ini c:\private\10282253\lbs\lbsprofile.ini 
       
  1419 CopyFile c:\private\10202be9\1028224b.cre c:\private\10202be9\1028224B.cre.save
       
  1420 DeleteFile c:\private\10202be9\1028224b.cre 
       
  1421 DeleteFile c:\private\10202be9\persists\1028224b.cre 
       
  1422 CopyFile c:\testdata\1028224b_originalbehaviour_noextprofileinuse.cre c:\private\10202be9\1028224B.cre
       
  1423 CopyFile c:\testdata\1028224b_originalbehaviour_noextprofileinuse.cre c:\private\10202be9\persists\1028224B.cre
       
  1424 REMOVE_PREFIX
       
  1425 
       
  1426 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_ResetDefaultAdmin
       
  1427 RUN_TEST_STEP 030 LbsMTLRTestServer LbsStep_SetPrivacyHandler c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr
       
  1428 RUN_TEST_STEP 030 LbsMTLRTestServer LbsStep_StartLbs
       
  1429 
       
  1430 START_TESTCASE LBS-MTLR-Quality-Profile-0006
       
  1431 //!@SYMTestCaseID			LBS-MTLR-Quality-Profile-0006
       
  1432 //!@SYMTestCaseDesc			'Vanilla' behaviour mode. Privacy + Location Request from Network with quality profile = "quality profile not in use" Id in admin
       
  1433 //!
       
  1434 //!@SYMTestActions		
       
  1435 //!					1. Register as the privacy observer app. 
       
  1436 //!					2. Change admin settings (use KSettingQualityProfileExternalLocate) to indicate that MT-LR should not use a quality profile and wait for this to propogate (verify). 				
       
  1437 //!					3. Configure netSim (use ERequestAdviceNotify and valid quality params)
       
  1438 //!                                     4. kick off an privacy request of type 'notify the user and automatically accept'.  
       
  1439 //!					5. When privacy controller is called (with ProcessNetworkLocationRequest()), accept the request
       
  1440 //!					6. Verify that 'accept' response is sent to the network
       
  1441 //!					7. When response to privacy request has been sent to network, kick off a network location request
       
  1442 //!					8. Confirm that privacy controller callbacks ProcessNetworkPositionUpdate() and ProcessRequestComplete() are called with KErrNone
       
  1443 //!					9. Confirm that location is sent to network
       
  1444 //!
       
  1445 //!@SYMTestExpectedResults		Privacy request accepted and location sent to network
       
  1446 //!
       
  1447 //!@SYMPREQ					PREQ 436
       
  1448 //!@SYMREQ					REQ 436.04
       
  1449 //!@SYMREQ					REQ 436.05
       
  1450 //!@SYMREQ					REQ 436.06
       
  1451 //!@SYMREQ					REQ 436.13
       
  1452 //!
       
  1453 //!@SYMPREQ					PREQ 162
       
  1454 //!@SYMREQ					162.05
       
  1455 //!@SYMREQ					162.06
       
  1456 //!
       
  1457 //!@SYMPREQ					PREQ 89
       
  1458 //!@SYMREQ					REQ 89.04
       
  1459 //!
       
  1460 //!@SYMTestType				CIT
       
  1461 //!@SYMTestPriority			1
       
  1462 //!@SYMTestStatus			Implemented. 
       
  1463 
       
  1464 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
  1465 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Quality-Profile-0006
       
  1466 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Quality-Profile-0006
       
  1467 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
  1468 
       
  1469 END_TESTCASE LBS-MTLR-Quality-Profile-0006
       
  1470 
       
  1471 START_TESTCASE LBS-MTLR-Quality-Profile-0007
       
  1472 //!@SYMTestCaseID			LBS-MTLR-Quality-Profile-0007
       
  1473 //!@SYMTestCaseDesc			'Vanilla' behaviour mode. Privacy + Location Request from Network with quality profile = "quality profile not in use" Id in admin
       
  1474 //!					Not all quality params supplied by network
       
  1475 //!@SYMTestActions		
       
  1476 //!					1. Register as the privacy observer app. 
       
  1477 //!					2. Change admin settings (use KSettingQualityProfileExternalLocate) to indicate that MT-LR should not use a quality profile and wait for this to propogate (verify). 				
       
  1478 //!					3. Configure netSim (use ERequestAdviceNotify and valid quality params)
       
  1479 //!                                     4. kick off an privacy request of type 'notify the user and automatically accept'.  
       
  1480 //!					5. When privacy controller is called (with ProcessNetworkLocationRequest()), accept the request
       
  1481 //!					6. Verify that 'accept' response is sent to the network
       
  1482 //!					7. When response to privacy request has been sent to network, kick off a network location request, with invalid quality params
       
  1483 //!					8. Confirm that privacy controller callbacks ProcessNetworkPositionUpdate() and ProcessRequestComplete() are called with appropriate error
       
  1484 //!					9. Confirm that location is sent to network
       
  1485 //!
       
  1486 //!@SYMTestExpectedResults		Privacy request accepted, location request rejected
       
  1487 //!
       
  1488 //!@SYMPREQ					PREQ 436
       
  1489 //!@SYMREQ					REQ 436.04
       
  1490 //!@SYMREQ					REQ 436.05
       
  1491 //!@SYMREQ					REQ 436.06
       
  1492 //!@SYMREQ					REQ 436.13
       
  1493 //!
       
  1494 //!@SYMPREQ					PREQ 162
       
  1495 //!@SYMREQ					162.05
       
  1496 //!@SYMREQ					162.06
       
  1497 //!
       
  1498 //!@SYMPREQ					PREQ 89
       
  1499 //!@SYMREQ					REQ 89.04
       
  1500 //!
       
  1501 //!@SYMTestType				CIT
       
  1502 //!@SYMTestPriority			2
       
  1503 //!@SYMTestStatus			Implemented. 
       
  1504 
       
  1505 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
  1506 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Quality-Profile-0007
       
  1507 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Quality-Profile-0007
       
  1508 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_VerifyLogInfo
       
  1509 
       
  1510 END_TESTCASE LBS-MTLR-Quality-Profile-0007
       
  1511 
       
  1512 
       
  1513 START_TESTCASE LBS-MTLR-PrivCntr-SilentReject-0002
       
  1514 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-SilentReject-0002
       
  1515 //!@SYMTestCaseDesc			Silent request,  behaviourmode = 'vanilla'
       
  1516 //!
       
  1517 //!@SYMTestActions		
       
  1518 //!					1. Register as the privacy observer app. 
       
  1519 //!					2. Change admin settings (use EExternalLocateOn) to allow MT-LRs and wait for this to propogate (verify). 				
       
  1520 //!					3. Configure netSim and kick off a privacy request of type 'silent'(ERequestAdviceSilent) and Reject (ERequestActionReject)  
       
  1521 //!					4. Verify that 'reject' response is sent to the network
       
  1522 //!					
       
  1523 //!
       
  1524 //!@SYMTestExpectedResults		Privacy request is rejected
       
  1525 //!@SYMPREQ					PREQ 436
       
  1526 //!@SYMREQ					
       
  1527 //!
       
  1528 //!@SYMPREQ					PREQ 162
       
  1529 //!@SYMREQ		
       
  1530 //!
       
  1531 //!@SYMPREQ					PREQ 89
       
  1532 //!@SYMREQ					REQ 89.04
       
  1533 //!
       
  1534 //!@SYMTestType				CIT
       
  1535 //!@SYMTestPriority			1
       
  1536 //!@SYMTestStatus				Implemented. 
       
  1537 
       
  1538 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
  1539 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
  1540 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-SilentReject-0002
       
  1541 
       
  1542 
       
  1543 END_TESTCASE LBS-MTLR-PrivCntr-SilentReject-0002
       
  1544 
       
  1545 START_TESTCASE LBS-MTLR-PrivCntr-AlwaysVerify-Timeout-0003
       
  1546 //!@SYMTestCaseID			LBS-MTLR-PrivCntr-AlwaysVerify-Timeout-0003
       
  1547 //!@SYMTestCaseDesc			Privacy request (ERequestAdviceNotify + ERequestActionAllow) timesout. External locate turned to 'on but always verify' in admin. Behaviourmode = 'vanilla'
       
  1548 //!
       
  1549 //!@SYMTestActions		
       
  1550 //!					1. Register as the privacy observer app. 
       
  1551 //!					2. Change admin settings (use EExternalLocateOnButAlwaysVerify) and wait for this to propogate (verify). 				
       
  1552 //!					3. Configure netSim and kick off a privacy request of type 'verify' (ERequestAdviceVerify).
       
  1553 //!					4. When privacy controller is called (with ProcessNetworkLocationRequest()), check that the notification type has not been changed
       
  1554 //!					5. Do not respond to request (so it timesout)
       
  1555 //!					6. Verify that 'reject' response is sent to the network
       
  1556 //!
       
  1557 //!@SYMTestExpectedResults		Privacy request is rejected
       
  1558 //!@SYMPREQ					PREQ 436
       
  1559 //!@SYMREQ					
       
  1560 //!
       
  1561 //!@SYMPREQ					PREQ 162
       
  1562 //!@SYMREQ		
       
  1563 //!
       
  1564 //!@SYMPREQ					PREQ 89
       
  1565 //!@SYMREQ					REQ 89.04
       
  1566 //!
       
  1567 //!@SYMTestType				CIT
       
  1568 //!@SYMTestPriority			2
       
  1569 //!@SYMTestStatus				Implemented. 
       
  1570 
       
  1571 RUN_TEST_STEP 010 LbsMTLRTestServer LbsStep_InstallScheduler
       
  1572 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_CreateVerifyPosInfos	c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-Position
       
  1573 RUN_TEST_STEP 120 LbsMTLRTestServer LbsMTLRPrivCntrlStep_Main c:\testdata\configs\lbsmtlr.ini LBS-MTLR-Priv-Cntr-AlwaysVerify-Timeout-0003
       
  1574 
       
  1575 END_TESTCASE LBS-MTLR-PrivCntr-AlwaysVerify-Timeout-0003
       
  1576 
       
  1577 
       
  1578 RUN_TEST_STEP 020 LbsMTLRTestServer LbsStep_StopLbs
       
  1579 PREFIX RUN_UTILS 
       
  1580 DeleteFile c:\private\10202be9\1028224b.cre 
       
  1581 DeleteFile c:\private\10202be9\persists\1028224b.cre
       
  1582 CopyFile c:\private\10202be9\1028224B.cre.save c:\private\10202be9\1028224B.cre
       
  1583 CopyFile c:\private\10202be9\1028224B.cre.save c:\private\10202be9\persists\1028224B.cre
       
  1584 DeleteFile c:\private\10202be9\1028224B.cre.save
       
  1585 REMOVE_PREFIX
       
  1586 
       
  1587 // Re-select the lbsprofile.ini .
       
  1588 RUN_UTILS DeleteFile c:\private\10282253\lbs\lbsprofile.ini
       
  1589 
       
  1590 // Re-select the real A-GPS integration module.
       
  1591 PRINT Re-select the real A-GPS integration module.
       
  1592 RUN_UTILS DeleteFile c:\private\10282253\lbs\locmods\agpsintegmodule.ini
       
  1593 
       
  1594 // Delete network registration status text file
       
  1595 RUN_UTILS DeleteFile c:\config.txt