datasourcemodules/networkpositioningmodule/test/scripts/te_lbsnetpsysuite.script
changeset 0 9cfd9a3ee49c
child 48 81c9bee26a45
equal deleted inserted replaced
-1:000000000000 0:9cfd9a3ee49c
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // The script for the Lbs Net PSY Test Suite
       
    15 // 
       
    16 //
       
    17 
       
    18 //! @File
       
    19 //! @SYMTestSuiteName         LBS-NetPsySuite
       
    20 //! @SYMScriptTestEnvironment TestExecute using te_lbsnetpsysuite.script
       
    21 
       
    22 //While loading the suite, we shutdown the whole LBS leaving the root process only.
       
    23 LOAD_SUITE te_lbsnetpsysuite
       
    24 
       
    25 
       
    26 PRINT RUN ALL te_lbsnetpsysuite TESTS
       
    27 
       
    28 
       
    29 START_TESTCASE                	LBS-NetPsySuite-NotifyPositionUpdate-Section0
       
    30 //! @SYMTestCaseID              LBS-NetPsySuite-NotifyPositionUpdate-Section0
       
    31 //! @SYMTestCaseDesc            Runs several pos update scenarios, which completes normally.
       
    32 //! @SYMTestActions             SIMPLE POSITION UPDATE
       
    33 //!				1. Create the positioner and update request listener.
       
    34 //!                             2. The update request listener starts listening. 
       
    35 //!				3. The positioner issues NPUD.
       
    36 //!				4. Start the active scheduler for some time.
       
    37 //!				5. Check that default update request is received with newClient flag set to ETrue.
       
    38 //!				6. Create and issue the simple pos update.
       
    39 //!				7. Start the active scheduler for some time.
       
    40 //!				8. Check the pos update	is received and equal to the sent one.
       
    41 //!
       
    42 //!				TWO SIMPLE POSITION UPDATES
       
    43 //!				9. Create the second positioner.
       
    44 //!				10. The update request listener starts listening. 
       
    45 //!				11. The first positioner issues NPUD.
       
    46 //!				12. Start the active scheduler for some time.
       
    47 //!				13. Check that default update request is received.
       
    48 //!				14. The second positioner issues NPUD.
       
    49 //!				15. Start the active scheduler for some time.
       
    50 //!				16. Check that no new update request is received.
       
    51 //!				17. Create and issue the simple pos update.
       
    52 //!				18. Start the active scheduler for some time.
       
    53 //!				19. Check the pos update is received and equal to the sent one for both positioners.
       
    54 //!				20. Delete the second positioner.
       
    55 //!				
       
    56 //!				CANCEL A POSITION UPDATE
       
    57 //!				21. The update request listener starts listening.
       
    58 //!				22. The positioner issues NPUD.
       
    59 //!				23. Start the active scheduler for some time.
       
    60 //!				24. Check that default update request is received.
       
    61 //!				25. The positioner cancels the NPUD.
       
    62 //!				26. Start the active scheduler for some time.
       
    63 //!				27. Check that a cancel update request is received.
       
    64 //!				28. Check that the positioner NPUD is completed with KErrCancel.
       
    65 //!				29. Create and issue the simple pos update.
       
    66 //!			
       
    67 //!				PARTIAL UPDATE
       
    68 //!				30. Set the positioner to accept partial updates.
       
    69 //!				31. Set the update timeout to KWarmDownInterval.
       
    70 //!				32. The update request listener starts listening.
       
    71 //!				33. The positioner issues NPUD.
       
    72 //!				34. Start the active scheduler for some time.
       
    73 //!				35. Check that the update request is received with the timeout set to KWarmDownInterval.
       
    74 //!				36. Create and issue the partial pos update.
       
    75 //!				37. Start the active scheduler for some time.
       
    76 //!				38. Check the pos update is received and equal to the sent one.
       
    77 //!				39. Start the active scheduler wait forKWarmDownInterval to make warm down timer working.
       
    78 //!				
       
    79 //!				TEST METHODS WHICH ARE NEVER CALLED IN THE PRODUCTION CODE
       
    80 //!				40. Simulate the timer errors.  
       
    81 //!
       
    82 //!				CLEANUP
       
    83 //!				41. Delete the positioner and update request listener.
       
    84 //!
       
    85 //!
       
    86 //! @SYMTestExpectedResults     The expected pos update requests and pos updates are received.
       
    87 //! @SYMTestPriority            High
       
    88 //! @SYMTestType                UT
       
    89 //! @SYMTestStatus              Released
       
    90 //! @SYMPREQ                    PREQ 1662
       
    91 //! @SYMREQ                     REQ 11248, REQ 11250, REQ 11253, REQ 11255, REQ 11256, REQ 11257, REQ 11485, REQ 11487, REQ 11490, REQ 11491, REQ 11492, REQ 8827, REQ 8828, REQ 8831
       
    92 //! @SYMCreationDate            20/10/2008
       
    93 //! @SYMAuthor                  NicolayB
       
    94 RUN_TEST_STEP 100 te_lbsnetpsysuite NotifyPositionUpdate c:\testdata\configs\te_lbsnetpsy.ini Section0
       
    95 END_TESTCASE                  	LBS-NetPsySuite-NotifyPositionUpdate-Section0
       
    96 
       
    97 
       
    98 START_TESTCASE                	LBS-NetPsySuite-NotifyPositionUpdateTiming-Section0
       
    99 //! @SYMTestCaseID              LBS-NetPsySuite-NotifyPositionUpdateTiming-Section0
       
   100 //! @SYMTestCaseDesc            Runs several pos update scenarios with the accent on the timing issues.
       
   101 //! @SYMTestActions             HANDLING THE OLD POSITION UPDATE
       
   102 //!				1. Create the positioner and update request listener. 
       
   103 //!				2. The update request listener starts listening. 
       
   104 //!				3. The positioner issues NPUD.
       
   105 //!				4. Start the active scheduler for some time.
       
   106 //!				5. Check that default update request is received with newClient flag set to ETrue.
       
   107 //!				6. Create and issue the pos update with the actual time < target time.
       
   108 //!				7. Check that no position update is received by the positioner.
       
   109 //!				8. The update request listener starts listening. 
       
   110 //!				9. The positioner cancels the request.
       
   111 //!				10. Start the active scheduler for some time.
       
   112 //!				11. Check that a cancel request is received.
       
   113 //!
       
   114 //!				SETTING MAXAGE AND USING CACHED UPDATE
       
   115 //!				12. Set the MaxAge for the positioner to some time ago.				
       
   116 //!				13. The update request listener starts listening.
       
   117 //!				14. The positioner issues NPUD.
       
   118 //!				15. Start the active scheduler for some time.
       
   119 //!				16. Check the cached FNP update is received and equal to the sent one.
       
   120 //!				17. Check that an update request is not received.
       
   121 //!				18. Cancel listening for the update requests.
       
   122 //!				19. Restore the MaxAge to 0.
       
   123 //!
       
   124 //!				SETTING MAXAGE, NO CACHED UPDATE
       
   125 //!				20. Set the MaxAge for the positioner to now.				
       
   126 //!				21. The update request listener starts listening.
       
   127 //!				22. The positioner issues NPUD.
       
   128 //!				23. Start the active scheduler for some time.
       
   129 //!				24. Check that default update request is received.
       
   130 //!				25. Create and issue the simple pos update.
       
   131 //!				26. Start the active scheduler for some time.
       
   132 //!				27. Check the pos update is received and equal to the sent one.
       
   133 //!				28. Restore the MaxAge to 0.
       
   134 //!
       
   135 //!				SIMPLE TRACKING SCENARIO
       
   136 //!				29. Check that the tracking flag overriden.
       
   137 //!				30. The positioner starts tracking.
       
   138 //!				31. Start the active scheduler for some time.
       
   139 //!				32. The positioner issues NPUD.
       
   140 //!				33. Start the active scheduler for some time.
       
   141 //!				34. Create and issue the simple pos update.
       
   142 //!				35. Start the active scheduler for some time.
       
   143 //!				36. Check the pos update is received and equal to the sent one.
       
   144 //!				37. The positioner stops tracking.
       
   145 //!
       
   146 //!				TRACKING SCENARIO WITH LATE REQUEST
       
   147 //!				38. The positioner starts tracking.
       
   148 //!				39. Start the active scheduler for some time.
       
   149 //!				40. The positioner issues NPUD.
       
   150 //!				41. Start the active scheduler for some time.
       
   151 //!				42. Create and issue the simple pos update.
       
   152 //!				43. Start the active scheduler for some time.
       
   153 //!				44. Check the pos update is received and equal to the sent one.
       
   154 //!				45. Start the active scheduler for some time.
       
   155 //!				46. The positioner issues NPUD.
       
   156 //!				47. Start the active scheduler for some time.
       
   157 //!				48. Create and issue the simple pos update.
       
   158 //!				49. Start the active scheduler for some time.
       
   159 //!				50. Check the pos update is received and equal to the sent one.
       
   160 //!				51. The positioner stops tracking.
       
   161 //!
       
   162 //!				CLEANUP
       
   163 //!				52. Delete the positioner and update request listener.				
       
   164 //!
       
   165 //!
       
   166 //! @SYMTestExpectedResults     The expected pos update requests and pos updates are received.
       
   167 //! @SYMTestPriority            High
       
   168 //! @SYMTestType                UT
       
   169 //! @SYMTestStatus              Released
       
   170 //! @SYMPREQ                    PREQ 1662
       
   171 //! @SYMREQ                     REQ 11248, REQ 11249, REQ 11253, REQ 11254, REQ 11255, REQ 11487, REQ 11488, REQ 11489, REQ 11492, REQ 8827, REQ 8828, REQ 8829 
       
   172 //! @SYMCreationDate            20/10/2008
       
   173 //! @SYMAuthor                  NicolayB
       
   174 RUN_TEST_STEP 100 te_lbsnetpsysuite NotifyPositionUpdateTiming c:\testdata\configs\te_lbsnetpsy.ini Section0
       
   175 END_TESTCASE                  	LBS-NetPsySuite-NotifyPositionUpdateTiming-Section0
       
   176 
       
   177 
       
   178 START_TESTCASE                	LBS-NetPsySuite-NotifyPositionUpdateErr-Section0
       
   179 //! @SYMTestCaseID              LBS-NetPsySuite-NotifyPositionUpdateErr-Section0
       
   180 //! @SYMTestCaseDesc            Runs several pos update scenarios with errors.
       
   181 //! @SYMTestActions             SIMPLE POSITION UPDATE ERROR
       
   182 //!				1. Create the positioner and update request listener. 
       
   183 //!                             2. The update request listener starts listening. 
       
   184 //!				3. The positioner issues NPUD.
       
   185 //!				4. Start the active scheduler for some time.
       
   186 //!				5. Check that default update request is received with newClient flag set to ETrue.
       
   187 //!				6. Create and issue the error pos update.
       
   188 //!				7. Start the active scheduler for some time.
       
   189 //!				8. Check the pos update	error is received and equal to the sent one.
       
   190 //!
       
   191 //!
       
   192 //!				CPOSITIONER CREATION/DESTRUCTION WITH MEMORY LEAKS
       
   193 //!				9. Inject the heap error for the Nth(N==0 first) memory allocation.
       
   194 //!				10. Try to create the positioner and then delete it.
       
   195 //!				11. Check wheter a memory allocation fails during the positioner creation.
       
   196 //!				12. If alloc failure occured outside the factory method, stop the test.
       
   197 //!				13. If alloc failure occured inside the factory method and no leave occured, the positioner must be created.
       
   198 //!				14. Increment N and go to step 16.
       
   199 //!
       
   200 //!				SIMPLE POSITION UPDATE WITH OOM WHILE CALLING NotifyPositionUpdate
       
   201 //!				15. The update request listener starts listening.
       
   202 //!				16. Inject the heap error for the Nth(N==0 first) memory allocation.
       
   203 //!				17. The positioner issues NPUD.
       
   204 //!				18. Check wheter a memory allocation fails during the positioner creation.
       
   205 //!				19. Start the active scheduler for some time.
       
   206 //!				20. If alloc failure occured outside the NPUD, stop the test.
       
   207 //!				21. If the pos update request is received, check that the pos update is received.
       
   208 //!				22. If the pos update request is not received, check that the pos update is not received.
       
   209 //!
       
   210 //!				CLEANUP
       
   211 //!				23. Delete the positioner and update request listener.		
       
   212 //!
       
   213 //! @SYMTestExpectedResults     The errors are handled correctly and the methods fail with the appropriate err codes.
       
   214 //! @SYMTestPriority            High
       
   215 //! @SYMTestType                UT
       
   216 //! @SYMTestStatus              Released
       
   217 //! @SYMPREQ                    PREQ 1662
       
   218 //! @SYMREQ                     REQ 11248, REQ 11487, REQ 11492, REQ 8827, REQ 8828
       
   219 //! @SYMCreationDate            21/10/2008
       
   220 //! @SYMAuthor                  NicolayB
       
   221 RUN_TEST_STEP 300 te_lbsnetpsysuite NotifyPositionUpdateErr c:\testdata\configs\te_lbsnetpsy.ini Section0
       
   222 END_TESTCASE                  	LBS-NetPsySuite-NotifyPositionUpdateErr-Section0
       
   223 
       
   224 START_TESTCASE                	LBS-NetPsySuite-ModuleInfo-Section0
       
   225 //! @SYMTestCaseID              LBS-NetPsySuite-ModuleInfo-Section0
       
   226 //! @SYMTestCaseDesc            Runs the scenarios where the module info is get.
       
   227 //! @SYMTestActions             1. Create the positioner and assign the positioner, which will receive the notifications.
       
   228 //!				2. Issue the module status updates.
       
   229 //!				3. Check that the information is received by the positioner.
       
   230 //!				4. Repeat 2-3 with various sets of parameters.
       
   231 //!
       
   232 //!
       
   233 //! @SYMTestExpectedResults     The expected module info updates are received.
       
   234 //! @SYMTestPriority            High
       
   235 //! @SYMTestType                UT
       
   236 //! @SYMTestStatus              Released
       
   237 //! @SYMPREQ                    PREQ 1662
       
   238 //! @SYMREQ                     REQ 11260, REQ 11261, REQ 11270, REQ 11487, REQ 11492, REQ 8827, REQ 8832, REQ 8833
       
   239 //! @SYMCreationDate            21/10/2008
       
   240 //! @SYMAuthor                  NicolayB
       
   241 RUN_TEST_STEP 100 te_lbsnetpsysuite ModuleInfo c:\testdata\configs\te_lbsnetpsy.ini Section0
       
   242 END_TESTCASE                  	LBS-NetPsySuite-ModuleInfo-Section0
       
   243 
       
   244 
       
   245 START_TESTCASE                	LBS-NetPsySuite-NotifyPositionUpdate-Section1
       
   246 //! @SYMTestCaseID              LBS-NetPsySuite-NotifyPositionUpdate-Section1
       
   247 //! @SYMTestCaseDesc            Runs several pos update scenarios, which completes normally.
       
   248 //! @SYMTestActions             See LBS-NetPsySuite-NotifyPositionUpdate-Section0 actions.
       
   249 //! @SYMTestExpectedResults     The expected pos update requests and pos updates are received.
       
   250 //! @SYMTestPriority            High
       
   251 //! @SYMTestType                UT
       
   252 //! @SYMTestStatus              Released
       
   253 //! @SYMPREQ                    PREQ 1662
       
   254 //! @SYMREQ                     REQ 11248, REQ 11250, REQ 11253, REQ 11255, REQ 11256, REQ 11257, REQ 11485, REQ 11487, REQ 11490, REQ 11491, REQ 11492, REQ 8827, REQ 8828, REQ 8831
       
   255 //! @SYMCreationDate            21/10/2008
       
   256 //! @SYMAuthor                  NicolayB
       
   257 RUN_TEST_STEP 100 te_lbsnetpsysuite NotifyPositionUpdate c:\testdata\configs\te_lbsnetpsy.ini Section1
       
   258 END_TESTCASE                  	LBS-NetPsySuite-NotifyPositionUpdate-Section1
       
   259 
       
   260 
       
   261 
       
   262 START_TESTCASE                	LBS-NetPsySuite-NotifyPositionUpdateTiming-Section1
       
   263 //! @SYMTestCaseID              LBS-NetPsySuite-NotifyPositionUpdateTiming-Section1
       
   264 //! @SYMTestCaseDesc            Runs several pos update scenarios with the accent on the timing issues.
       
   265 //! @SYMTestActions             See LBS-NetPsySuite-NotifyPositionUpdateTiming-Section0 actions.
       
   266 //! @SYMTestExpectedResults     The expected pos update requests and pos updates are received.
       
   267 //! @SYMTestPriority            High
       
   268 //! @SYMTestType                UT
       
   269 //! @SYMTestStatus              Released
       
   270 //! @SYMPREQ                    PREQ 1662
       
   271 //! @SYMREQ                     REQ 11248, REQ 11249, REQ 11253, REQ 11254, REQ 11255, REQ 11487, REQ 11488, REQ 11489, REQ 11492, REQ 8827, REQ 8828, REQ 8829 
       
   272 //! @SYMCreationDate            21/10/2008
       
   273 //! @SYMAuthor                  NicolayB
       
   274 RUN_TEST_STEP 100 te_lbsnetpsysuite NotifyPositionUpdateTiming c:\testdata\configs\te_lbsnetpsy.ini Section1
       
   275 END_TESTCASE                  	LBS-NetPsySuite-NotifyPositionUpdateTiming-Section1
       
   276 
       
   277 
       
   278 START_TESTCASE                	LBS-NetPsySuite-NotifyPositionUpdateErr-Section1
       
   279 //! @SYMTestCaseID              LBS-NetPsySuite-NotifyPositionUpdateErr-Section1
       
   280 //! @SYMTestCaseDesc            Runs several pos update scenarios with errors.
       
   281 //! @SYMTestActions             See LBS-NetPsySuite-NotifyPositionUpdateErr-Section0 actions.
       
   282 //! @SYMTestExpectedResults     The errors are handled correctly and the methods fail with the appropriate err codes.
       
   283 //! @SYMTestPriority            High
       
   284 //! @SYMTestType                UT
       
   285 //! @SYMTestStatus              Released
       
   286 //! @SYMPREQ                    PREQ 1662
       
   287 //! @SYMREQ                     REQ 11248, REQ 11487, REQ 11492, REQ 8827, REQ 8828
       
   288 //! @SYMCreationDate            21/10/2008
       
   289 //! @SYMAuthor                  NicolayB
       
   290 RUN_TEST_STEP 300 te_lbsnetpsysuite NotifyPositionUpdateErr c:\testdata\configs\te_lbsnetpsy.ini Section1
       
   291 END_TESTCASE                  	LBS-NetPsySuite-NotifyPositionUpdateErr-Section1
       
   292 
       
   293 
       
   294 
       
   295 START_TESTCASE                	LBS-NetPsySuite-ModuleInfo-Section1
       
   296 //! @SYMTestCaseID              LBS-NetPsySuite-ModuleInfo-Section1
       
   297 //! @SYMTestCaseDesc            Runs the scenarios where the module info is get.
       
   298 //! @SYMTestActions             See the LBS-NetPsySuite-ModuleInfo-Section0 actions.
       
   299 //! @SYMTestExpectedResults     The expected module info updates are received.
       
   300 //! @SYMTestPriority            High
       
   301 //! @SYMTestType                UT
       
   302 //! @SYMTestStatus              Released
       
   303 //! @SYMPREQ                    PREQ 1662
       
   304 //! @SYMREQ                     REQ 11260, REQ 11261, REQ 11270, REQ 11487, REQ 11492, REQ 8827, REQ 8832, REQ 8833
       
   305 //! @SYMCreationDate            21/10/2008
       
   306 //! @SYMAuthor                  NicolayB
       
   307 RUN_TEST_STEP 100 te_lbsnetpsysuite ModuleInfo c:\testdata\configs\te_lbsnetpsy.ini Section1
       
   308 END_TESTCASE                  	LBS-NetPsySuite-ModuleInfo-Section1
       
   309 
       
   310 
       
   311 START_TESTCASE                	LBS-NetPsySuite-NotifyPositionUpdate-Section2
       
   312 //! @SYMTestCaseID              LBS-NetPsySuite-NotifyPositionUpdate-Section2
       
   313 //! @SYMTestCaseDesc            Runs several pos update scenarios, which completes normally.
       
   314 //! @SYMTestActions             See LBS-NetPsySuite-NotifyPositionUpdate-Section0 actions.
       
   315 //! @SYMTestExpectedResults     The expected pos update requests and pos updates are received.
       
   316 //! @SYMTestPriority            High
       
   317 //! @SYMTestType                UT
       
   318 //! @SYMTestStatus              Released
       
   319 //! @SYMPREQ                    PREQ 1662
       
   320 //! @SYMREQ                     REQ 11248, REQ 11250, REQ 11253, REQ 11255, REQ 11256, REQ 11257, REQ 11485, REQ 11487, REQ 11490, REQ 11491, REQ 11492, REQ 8827, REQ 8828, REQ 8831
       
   321 //! @SYMCreationDate            21/10/2008
       
   322 //! @SYMAuthor                  NicolayB
       
   323 RUN_TEST_STEP 100 te_lbsnetpsysuite NotifyPositionUpdate c:\testdata\configs\te_lbsnetpsy.ini Section2
       
   324 END_TESTCASE                  	LBS-NetPsySuite-NotifyPositionUpdate-Section2
       
   325 
       
   326 
       
   327 
       
   328 START_TESTCASE                	LBS-NetPsySuite-NotifyPositionUpdateTiming-Section2
       
   329 //! @SYMTestCaseID              LBS-NetPsySuite-NotifyPositionUpdateTiming-Section2
       
   330 //! @SYMTestCaseDesc            Runs several pos update scenarios with the accent on the timing issues.
       
   331 //! @SYMTestActions             See LBS-NetPsySuite-NotifyPositionUpdateTiming-Section0 actions.
       
   332 //! @SYMTestExpectedResults     The expected pos update requests and pos updates are received.
       
   333 //! @SYMTestPriority            High
       
   334 //! @SYMTestType                UT
       
   335 //! @SYMTestStatus              Released
       
   336 //! @SYMPREQ                    PREQ 1662
       
   337 //! @SYMREQ                     REQ 11248, REQ 11249, REQ 11253, REQ 11254, REQ 11255, REQ 11487, REQ 11488, REQ 11489, REQ 11492, REQ 8827, REQ 8828, REQ 8829 
       
   338 //! @SYMCreationDate            21/10/2008
       
   339 //! @SYMAuthor                  NicolayB
       
   340 RUN_TEST_STEP 100 te_lbsnetpsysuite NotifyPositionUpdateTiming c:\testdata\configs\te_lbsnetpsy.ini Section2
       
   341 END_TESTCASE                  	LBS-NetPsySuite-NotifyPositionUpdateTiming-Section2
       
   342 
       
   343 
       
   344 START_TESTCASE                	LBS-NetPsySuite-NotifyPositionUpdateErr-Section2
       
   345 //! @SYMTestCaseID              LBS-NetPsySuite-NotifyPositionUpdateErr-Section2
       
   346 //! @SYMTestCaseDesc            Runs several pos update scenarios with errors.
       
   347 //! @SYMTestActions             See LBS-NetPsySuite-NotifyPositionUpdateErr-Section0 actions.
       
   348 //! @SYMTestExpectedResults     The errors are handled correctly and the methods fail with the appropriate err codes.
       
   349 //! @SYMTestPriority            High
       
   350 //! @SYMTestType                UT
       
   351 //! @SYMTestStatus              Released
       
   352 //! @SYMPREQ                    PREQ 1662
       
   353 //! @SYMREQ                     REQ 11248, REQ 11487, REQ 11492, REQ 8827, REQ 8828
       
   354 //! @SYMCreationDate            21/10/2008
       
   355 //! @SYMAuthor                  NicolayB
       
   356 RUN_TEST_STEP 300 te_lbsnetpsysuite NotifyPositionUpdateErr c:\testdata\configs\te_lbsnetpsy.ini Section2
       
   357 END_TESTCASE                  	LBS-NetPsySuite-NotifyPositionUpdateErr-Section2
       
   358 
       
   359 
       
   360 
       
   361 PRINT COMPLETE ALL te_lbsnetpsysuite TESTS
       
   362 
       
   363 
       
   364