lbstest/lbstestproduct/lbsx3p/scripts/lbsx3pcancel.script
changeset 0 9cfd9a3ee49c
child 57 3267d9ea3e98
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 LOAD_SUITE LbsX3PTestServer -SharedData
       
    17 
       
    18 PRINT Run LbsX3PTestServer
       
    19 PRINT
       
    20 
       
    21 // Before we start LBS, select the test A-GPS integration module and network reg status txt file to use.
       
    22 PREFIX RUN_UTILS
       
    23 	MkDir c:\private\10282253\
       
    24 	MkDir c:\private\10282253\lbs\
       
    25 	MkDir c:\private\10282253\lbs\locmods\
       
    26 	CopyFile c:\testdata\configs\xtestmodule.ini c:\private\10282253\lbs\locmods\agpsintegmodule.ini
       
    27         CopyFile c:\testdata\configs\lbstestconfig.txt c:\config.txt 
       
    28 REMOVE_PREFIX
       
    29 
       
    30 PRINT Start LBS
       
    31 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_ResetDefaultAdmin 
       
    32 RUN_TEST_STEP 020 LbsX3PTestServer LbsStep_StartLbs
       
    33 
       
    34 START_TESTCASE LBS-X3P-Cancel-0001
       
    35 
       
    36 //!@SYMTestCaseID			LBS-X3P-Cancel-0001
       
    37 //!@SYMTestCaseDesc		Call RlbsTransmitPosition::CancelTransmitPosition() when no transmit is outstanding.
       
    38 //!					
       
    39 //!@SYMTestActions		1. Open sub-session
       
    40 //!					2. Do not request X3P
       
    41 //!					3. Attempt to cancel X3P
       
    42 //!					
       
    43 //!@SYMTestExpectedResults	CancelTransmitPosition() fails with KErrNotFound
       
    44 //!					
       
    45 //!@SYMPREQ				PREQ 163
       
    46 //!@SYMREQ				REQ 163.05
       
    47 //!					
       
    48 //!@SYMTestType			CIT
       
    49 //!@SYMTestPriority		2
       
    50 //!@SYMTestStatus			Not Implemented
       
    51 
       
    52 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler
       
    53 RUN_TEST_STEP 020 LbsX3PTestServer LbsStep_CreateVerifyPosInfos
       
    54 RUN_TEST_STEP 060 LbsX3PTestServer LbsX3PStep_Cancel c:\testdata\configs\lbsx3pcancel.ini LBS-X3P-Cancel-0001
       
    55 
       
    56 END_TESTCASE LBS-X3P-Cancel-0001
       
    57 
       
    58 
       
    59 START_TESTCASE LBS-X3P-Cancel-0002
       
    60 
       
    61 //!@SYMTestCaseID			LBS-X3P-Cancel-0002
       
    62 //!@SYMTestCaseDesc		Request X3P, then cancel request before MO-LR started ()
       
    63 //!					
       
    64 //!@SYMTestActions		1. Open a session with the transmit position server
       
    65 //!					2. Create a sub-session
       
    66 //!					3. Request current position be sent to a third party � RlbsTransmitPosition::TransmitPosition() 
       
    67 //!					   giving a valid destination Id (email/phone number).
       
    68 //!					4. RLbsTransmitPosition::CancelTransmitPosition()
       
    69 //!					5. Wait for request to complete
       
    70 //!					
       
    71 //!@SYMTestExpectedResults	No panic. X3P request completes with KErrCancel 
       
    72 //!					
       
    73 //!@SYMPREQ				PREQ 163
       
    74 //!@SYMREQ				REQ 163.05
       
    75 //!					
       
    76 //!@SYMTestType			CIT
       
    77 //!@SYMTestPriority		2
       
    78 //!@SYMTestStatus			Not Implemented
       
    79 
       
    80 //	May not be possible to implement. Need to get the cancel in after the NRH sends the request to the NG, 
       
    81 //	but before the protocol module sends the MOLR to the network.
       
    82 
       
    83 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler
       
    84 RUN_TEST_STEP 020 LbsX3PTestServer LbsStep_CreateVerifyPosInfos
       
    85 RUN_TEST_STEP 060 LbsX3PTestServer LbsX3PStep_Cancel c:\testdata\configs\lbsx3pcancel.ini LBS-X3P-Cancel-0002
       
    86 
       
    87 END_TESTCASE LBS-X3P-Cancel-0002
       
    88 
       
    89 
       
    90 START_TESTCASE LBS-X3P-Cancel-0003
       
    91 
       
    92 //!@SYMTestCaseID			LBS-X3P-Cancel-0003
       
    93 //!@SYMTestCaseDesc		Request X3P, then cancel request before MO-LR started ()
       
    94 //!					
       
    95 //!@SYMTestActions		1. Tell NetSim that next request should have a time delay (needed)
       
    96 //!					2. Request current position be sent to a third party � RlbsTransmitPosition::TransmitPosition()
       
    97 //!					3. Wait for notification from NetSim that MOLR has been sent
       
    98 //!					4. RLbsTransmitPosition::CancelTransmitPosition()
       
    99 //!					
       
   100 //!@SYMTestExpectedResults	No panic. X3P request completes with KErrNone or KErrCancel in CActive::Cancel() 
       
   101 //!					
       
   102 //!@SYMPREQ				PREQ 163
       
   103 //!@SYMREQ				REQ 163.05
       
   104 //!					
       
   105 //!@SYMTestType			CIT
       
   106 //!@SYMTestPriority		1
       
   107 //!@SYMTestStatus			Not Implemented
       
   108 
       
   109 //	ISSUE: Jarek mentioned using the timelag feature in NetSim for the MOLR, but not sure why that would be needed?
       
   110 
       
   111 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler
       
   112 RUN_TEST_STEP 020 LbsX3PTestServer LbsStep_CreateVerifyPosInfos 
       
   113 RUN_TEST_STEP 060 LbsX3PTestServer LbsX3PStep_Cancel c:\testdata\configs\lbsx3pcancel.ini LBS-X3P-Cancel-0003
       
   114 
       
   115 END_TESTCASE LBS-X3P-Cancel-0003
       
   116 
       
   117 
       
   118 START_TESTCASE LBS-X3P-Cancel-0004
       
   119 
       
   120 //!@SYMTestCaseID			LBS-X3P-Cancel-0004
       
   121 //!@SYMTestCaseDesc		Request X3P, then cancel request after location request received
       
   122 //!					
       
   123 //!@SYMTestActions		1. Request current position be sent to a third party � RlbsTransmitPosition::TransmitPosition()
       
   124 //!					2. Wait for notification of Location Request from network (sent in response to MOLR)
       
   125 //!					3. RLbsTransmitPosition::CancelTransmitPosition()
       
   126 //!					
       
   127 //!@SYMTestExpectedResults	No panic. X3P request completes with KErrNone or KErrCancel in CActive::Cancel()
       
   128 //!					
       
   129 //!@SYMPREQ				PREQ 163
       
   130 //!@SYMREQ				REQ 163.05
       
   131 //!					
       
   132 //!@SYMTestType			CIT
       
   133 //!@SYMTestPriority		1
       
   134 //!@SYMTestStatus			Not Implemented
       
   135 
       
   136 //	ISSUE: Jarek mentioned using the timelag feature in NetSim for the MOLR, but not sure why that would be needed?
       
   137 
       
   138 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler
       
   139 RUN_TEST_STEP 020 LbsX3PTestServer LbsStep_CreateVerifyPosInfos 
       
   140 RUN_TEST_STEP 060 LbsX3PTestServer LbsX3PStep_Cancel c:\testdata\configs\lbsx3pcancel.ini LBS-X3P-Cancel-0004
       
   141 
       
   142 END_TESTCASE LBS-X3P-Cancel-0004
       
   143 
       
   144 
       
   145 START_TESTCASE LBS-X3P-Cancel-0005
       
   146 
       
   147 //!@SYMTestCaseID			LBS-X3P-Cancel-0005
       
   148 //!@SYMTestCaseDesc		Request X3P, then cancel request after responding to location request
       
   149 //!					
       
   150 //!@SYMTestActions		1. Request current position be sent to a third party � RlbsTransmitPosition::TransmitPosition()
       
   151 //!					2. Wait for notification of response to Location Request from network 
       
   152 //!					3. RLbsTransmitPosition::CancelTransmitPosition()
       
   153 //!					
       
   154 //!@SYMTestExpectedResults	No panic. X3P request completes with KErrNone or KErrCancel in CActive::Cancel()
       
   155 //!					
       
   156 //!@SYMPREQ				PREQ 163
       
   157 //!@SYMREQ				REQ 163.05
       
   158 //!					
       
   159 //!@SYMTestType			CIT
       
   160 //!@SYMTestPriority		1
       
   161 //!@SYMTestStatus			Not Implemented
       
   162 
       
   163 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler
       
   164 RUN_TEST_STEP 020 LbsX3PTestServer LbsStep_CreateVerifyPosInfos 
       
   165 RUN_TEST_STEP 060 LbsX3PTestServer LbsX3PStep_Cancel c:\testdata\configs\lbsx3pcancel.ini LBS-X3P-Cancel-0005
       
   166 
       
   167 END_TESTCASE LBS-X3P-Cancel-0005
       
   168 
       
   169 
       
   170 START_TESTCASE LBS-X3P-Cancel-0006
       
   171 
       
   172 //!@SYMTestCaseID			LBS-X3P-Cancel-0006
       
   173 //!@SYMTestCaseDesc		Request X3P, then cancel request after protocol module closed MOLR but before it sent X3P complete to NRH
       
   174 //!					
       
   175 //!@SYMTestActions		1. Request current position be sent to a third party � RlbsTransmitPosition::TransmitPosition()
       
   176 //!					
       
   177 //!@SYMTestExpectedResults	No panic. X3P request completes with KErrNone or KErrCancel in CActive::Cancel()
       
   178 //!					
       
   179 //!@SYMPREQ				PREQ 163
       
   180 //!@SYMREQ				REQ 163.05
       
   181 //!					
       
   182 //!@SYMTestType			CIT
       
   183 //!@SYMTestPriority		1
       
   184 //!@SYMTestStatus			Not Implemented
       
   185 
       
   186 //	ISSUES: Currently not possible to implement. Think it would require new functionality (to insert a time lag) in NetSim
       
   187 
       
   188 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler
       
   189 RUN_TEST_STEP 020 LbsX3PTestServer LbsStep_CreateVerifyPosInfos 
       
   190 RUN_TEST_STEP 060 LbsX3PTestServer LbsX3PStep_Cancel c:\testdata\configs\lbsx3pcancel.ini LBS-X3P-Cancel-0006
       
   191 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_VerifyPosInfos
       
   192 
       
   193 END_TESTCASE LBS-X3P-Cancel-0006
       
   194 
       
   195 
       
   196 START_TESTCASE LBS-X3P-Cancel-0007
       
   197 
       
   198 //!@SYMTestCaseID			LBS-X3P-Cancel-0007
       
   199 //!@SYMTestCaseDesc		
       
   200 //!					
       
   201 //!@SYMTestActions		1. Request current position be sent to a third party - RlbsTransmitPosition::TransmitPosition()
       
   202 //!					2. Try to cancel Active object using Cancel function and in the cancel function call CancelTransmitPostion()
       
   203 //!					
       
   204 //!@SYMTestExpectedResults	TransmitPosition should be canceled without any problem
       
   205 //!					
       
   206 //!@SYMPREQ				PREQ 163
       
   207 //!@SYMREQ				REQ 163.05
       
   208 //!					
       
   209 //!@SYMTestType			CIT
       
   210 //!@SYMTestPriority		1
       
   211 //!@SYMTestStatus			Not Implemented
       
   212 
       
   213 //	ISSUES: Currently not possible to implement. Think it would require new functionality (to insert a time lag) in NetSim
       
   214 
       
   215 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler
       
   216 RUN_TEST_STEP 020 LbsX3PTestServer LbsStep_CreateVerifyPosInfos 
       
   217 RUN_TEST_STEP 060 LbsX3PTestServer LbsX3PStep_Cancel c:\testdata\configs\lbsx3pcancel.ini LBS-X3P-Cancel-0007
       
   218 
       
   219 END_TESTCASE LBS-X3P-Cancel-0007
       
   220 
       
   221 
       
   222 START_TESTCASE LBS-X3P-Cancel-0008
       
   223 
       
   224 //!@SYMTestCaseID			LBS-X3P-Cancel-0008
       
   225 //!@SYMTestCaseDesc		
       
   226 //!					
       
   227 //!@SYMTestActions		1. Create two transmit Positional objects
       
   228 //!					2. Call TransmitPosition from the first one
       
   229 //!					3. Try canceling on the second TransmitPosition object
       
   230 //!					
       
   231 //!@SYMTestExpectedResults	Transmit Postion should complete properly on first one. Cancel on second one should not have any effect
       
   232 //!					
       
   233 //!@SYMPREQ				PREQ 163
       
   234 //!@SYMREQ				REQ 163.05
       
   235 //!					
       
   236 //!@SYMTestType			CIT
       
   237 //!@SYMTestPriority		1
       
   238 //!@SYMTestStatus			Not Implemented
       
   239 
       
   240 //	ISSUES: Currently not possible to implement. Think it would require new functionality (to insert a time lag) in NetSim
       
   241 
       
   242 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler
       
   243 RUN_TEST_STEP 020 LbsX3PTestServer LbsStep_CreateVerifyPosInfos 
       
   244 RUN_TEST_STEP 060 LbsX3PTestServer LbsX3PStep_Cancel c:\testdata\configs\lbsx3pcancel.ini LBS-X3P-Cancel-0008
       
   245 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_VerifyPosInfos
       
   246 
       
   247 END_TESTCASE LBS-X3P-Cancel-0008
       
   248 
       
   249 
       
   250 START_TESTCASE LBS-X3P-Cancel-0009
       
   251 
       
   252 //!@SYMTestCaseID			LBS-X3P-Cancel-0009
       
   253 //!@SYMTestCaseDesc		
       
   254 //!					
       
   255 //!@SYMTestActions		1. Create two transmit Positional objects
       
   256 //!					2. Call TransmitPosition from the first one
       
   257 //!					3. Try canceling on the second TransmitPosition object using Active Object->Cancel() function
       
   258 //!					
       
   259 //!@SYMTestExpectedResults	Transmit Postion should complete properly on first one. Cancel on second one should not have any effect
       
   260 //!					
       
   261 //!@SYMPREQ				PREQ 163
       
   262 //!@SYMREQ				REQ 163.05
       
   263 //!					
       
   264 //!@SYMTestType			CIT
       
   265 //!@SYMTestPriority		1
       
   266 //!@SYMTestStatus			Not Implemented
       
   267 
       
   268 //	ISSUES: Currently not possible to implement. Think it would require new functionality (to insert a time lag) in NetSim
       
   269 
       
   270 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler
       
   271 RUN_TEST_STEP 020 LbsX3PTestServer LbsStep_CreateVerifyPosInfos 
       
   272 RUN_TEST_STEP 060 LbsX3PTestServer LbsX3PStep_Cancel c:\testdata\configs\lbsx3pcancel.ini LBS-X3P-Cancel-0009
       
   273 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_VerifyPosInfos
       
   274 
       
   275 END_TESTCASE LBS-X3P-Cancel-0009
       
   276 
       
   277 
       
   278 START_TESTCASE LBS-X3P-Cancel-0010
       
   279 
       
   280 //!@SYMTestCaseID			LBS-X3P-Cancel-0010
       
   281 //!@SYMTestCaseDesc		Request X3P, then cancel after network has provided MoLrResult
       
   282 //!					
       
   283 //!@SYMTestActions		1. Request current position be sent to a third party � RlbsTransmitPosition::TransmitPosition()
       
   284 //!				2. Wait for NetSim's notification that MOLR result has been sent to LBS
       
   285 //!				3. RLbsTransmitPosition::CancelTransmitPosition()
       
   286 //!					
       
   287 //!@SYMTestExpectedResults	No panic. X3P request completes with KErrNone or KErrCancel in CActive::Cancel()
       
   288 //!					
       
   289 //!@SYMPREQ				PREQ 163
       
   290 //!@SYMREQ				REQ 163.05
       
   291 //!					
       
   292 //!@SYMTestType			CIT
       
   293 //!@SYMTestPriority		1
       
   294 //!@SYMTestStatus			Not Implemented
       
   295 
       
   296 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler
       
   297 RUN_TEST_STEP 020 LbsX3PTestServer LbsStep_CreateVerifyPosInfos 
       
   298 RUN_TEST_STEP 060 LbsX3PTestServer LbsX3PStep_Cancel c:\testdata\configs\lbsx3pcancel.ini LBS-X3P-Cancel-0011
       
   299 
       
   300 END_TESTCASE LBS-X3P-Cancel-0010
       
   301 
       
   302 //This test added at end because it caused the next test fail. 
       
   303 //Cancelling at More assistance data callback causes Network Gateway to ask for assistance data which affects next test
       
   304 
       
   305 START_TESTCASE LBS-X3P-Cancel-0011
       
   306 
       
   307 //!@SYMTestCaseID			LBS-X3P-Cancel-0011
       
   308 //!@SYMTestCaseDesc		Cancel X3P when we get NotifyMeasurementReportRequestMoreAssitanceData callback from NetSim	
       
   309 //!					
       
   310 //!@SYMTestActions		1. Set modDataIn.iAssDataTestMode = TModuleDataIn::EModuleTestModeAssDataOn_SomeDataNotAvailable so that
       
   311 //!					   Lbs system will ask for more assistance data to get position
       
   312 //!					2. Call TransmitPostion
       
   313 //!					3. Wait for NotifyMeasurementReportRequestMoreAssitanceData callback from NetSim
       
   314 //!					4. Call CancelTransmitPosition() to cancel X3P
       
   315 //!
       
   316 //!@SYMTestExpectedResults	No panic. X3P request completes with KErrNone or KErrCancel in CActive::Cancel()
       
   317 //!					
       
   318 //!@SYMPREQ				PREQ 163
       
   319 //!@SYMREQ				REQ 163.05
       
   320 //!					
       
   321 //!@SYMTestType			CIT
       
   322 //!@SYMTestPriority		1
       
   323 //!@SYMTestStatus			Not Implemented
       
   324 
       
   325 
       
   326 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler
       
   327 RUN_TEST_STEP 020 LbsX3PTestServer LbsStep_CreateVerifyPosInfos 
       
   328 RUN_TEST_STEP 120 LbsX3PTestServer LbsX3PStep_Cancel c:\testdata\configs\lbsx3pcancel.ini LBS-X3P-Cancel-0010
       
   329 //RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_VerifyPosInfos
       
   330 
       
   331 END_TESTCASE LBS-X3P-Cancel-0011
       
   332 
       
   333 
       
   334 PRINT Stop LBS
       
   335 RUN_TEST_STEP 020 LbsX3PTestServer LbsStep_StopLbs
       
   336 
       
   337 // Re-select the real A-GPS integration module.
       
   338 RUN_UTILS DeleteFile c:\private\10282253\lbs\locmods\agpsintegmodule.ini
       
   339 
       
   340 // Delete network registration status text file
       
   341 RUN_UTILS DeleteFile c:\config.txt