lbstest/lbstestproduct/lbsclient/scripts/lbsclientlastknownposareasources.script
changeset 0 9cfd9a3ee49c
child 57 3267d9ea3e98
equal deleted inserted replaced
-1:000000000000 0:9cfd9a3ee49c
       
     1 //
       
     2 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description:
       
    15 //
       
    16 //
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 LOAD_SUITE LbsClientTestServer -SharedData
       
    22 
       
    23 
       
    24 RUN_UTILS CopyFile c:\testdata\configs\lbsclientlastknownposareasources.txt c:\config.txt
       
    25 
       
    26 
       
    27 ////////////////////////////////////// MOLR TA
       
    28 LOAD_SUITE LbsHybridMOLRTestServer -SharedData
       
    29 
       
    30 
       
    31 // Before we start LBS, select the test A-GPS integration module to use.
       
    32 // Make sure the default profile is used, rather than one from the c drive
       
    33 PREFIX RUN_UTILS
       
    34 	DeleteFile c:\private\10282253\lbs\lbsprofile.ini
       
    35 	MkDir c:\private\10282253\
       
    36 	MkDir c:\private\10282253\lbs\
       
    37 	MkDir c:\private\10282253\lbs\locmods\
       
    38 //	CopyFile c:\testdata\configs\xtestmodule.ini c:\private\10282253\lbs\locmods\agpsintegmodule.ini
       
    39         CopyFile c:\testdata\configs\ctagpsnpetestmoduledatasource.ini  c:\private\10282253\lbs\locmods\agpsintegmodule.ini
       
    40 //	CopyFile c:\testdata\configs\lbstestconfig.txt c:\config.txt
       
    41 
       
    42 REMOVE_PREFIX
       
    43 
       
    44 // Reset admin (reset will give us the EGpsPreferTerminalBased).
       
    45 RUN_TEST_STEP 010 LbsHybridMOLRTestServer LbsStep_ResetDefaultAdmin
       
    46 
       
    47 // Use hybrid protocol module
       
    48 RUN_TEST_STEP 010 LbsHybridMOLRTestServer LbsStep_SetupProtocolStub
       
    49 
       
    50 // Use hybrid protocol module
       
    51 RUN_TEST_STEP 010 LbsHybridMOLRTestServer LbsStep_SetupRoamSelfLocate
       
    52 
       
    53 RUN_TEST_STEP 030 LbsHybridMOLRTestServer LbsStep_StartLbs
       
    54 
       
    55 START_TESTCASE                LBS-Client-LastKnownPosAreaSources-0001
       
    56 //! @SYMTestCaseID              LBS-Client-LastKnownPosAreaSources-0001
       
    57 //! @SYMTestCaseDesc            1. Client generates MOLR request 
       
    58 //!				2. GPS Module generates an accurate position in UE Assisted State 
       
    59 //!				3. Position is saved to Last Known pos database
       
    60 //! @SYMTestPriority            Medium
       
    61 //! @SYMTestActions             See test step Sequence inline comments
       
    62 //! @SYMTestExpectedResults     Sequence as per specified by FSM and UML Seq diagram is Followed
       
    63 //! @SYMTestType                CIT
       
    64 //! @SYMCreationDate            1/4/1009
       
    65 //! @SYMAuthor                  oad
       
    66 RUN_TEST_STEP 010 LbsHybridMOLRTestServer LbsStep_InstallScheduler
       
    67 RUN_TEST_STEP 020 LbsHybridMOLRTestServer LbsStep_SetUpPsy c:\testdata\configs\lbs_molr.ini LBS-MOLR
       
    68 // Configure Hybrid AGps module options
       
    69 RUN_TEST_STEP 120 LbsHybridMOLRTestServer LbsStep_ConfigHybridModule c:\testdata\configs\lbs_molr.ini UEAssistedMOLRGpsOk
       
    70 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_InstallScheduler
       
    71 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_LastKnownPosAreaSources c:\testdata\configs\lbsclientlastknownposareasources.ini LBS-Client-LastKnownPosAreaSources-1001
       
    72 RUN_TEST_STEP 120 LbsHybridMOLRTestServer LbsHybridUEAssistedMOLRGPSOk
       
    73 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_LastKnownPosAreaSources c:\testdata\configs\lbsclientlastknownposareasources.ini LBS-Client-LastKnownPosAreaSources-0001
       
    74 END_TESTCASE                  LBS-Client-LastKnownPosAreaSources-0001
       
    75 RUN_TEST_STEP 030 LbsHybridMOLRTestServer LbsStep_StopLbs
       
    76 
       
    77 
       
    78 DELAY 5000
       
    79 
       
    80 
       
    81 /////////////////////////////////////// Cell Based
       
    82 
       
    83 
       
    84 //Before we start LBS, select the test A-GPS integration module and network reg status txt file to use.
       
    85 PREFIX RUN_UTILS
       
    86 	MkDir c:\private\10282253\
       
    87 	MkDir c:\private\10282253\lbs\
       
    88 	MkDir c:\private\10282253\lbs\locmods\
       
    89 	CopyFile c:\testdata\configs\xtestmodule.ini c:\private\10282253\lbs\locmods\agpsintegmodule.ini
       
    90 //        CopyFile c:\testdata\configs\lbstestconfig.txt c:\config.txt
       
    91 	DeleteFile c:\private\10202be9\1028224b.cre 
       
    92  	DeleteFile c:\private\10202be9\persists\1028224b.cre 
       
    93 
       
    94 REMOVE_PREFIX
       
    95 
       
    96 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_ResetDefaultAdmin 
       
    97 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_StartLbs
       
    98 
       
    99 
       
   100 START_TESTCASE LBS-Client-LastKnownPosAreaSources-0002
       
   101 //!@SYMTestCaseID			LBS-Client-LastKnownPosAreaSources-0002
       
   102 //!@SYMTestCaseDesc			Request a cell-based location
       
   103 //!@SYMTestActions			
       
   104 //!					1) Open a sub-session using RPositioner::Open() and specifying the network modules module id
       
   105 //!					2) Request Location Update.
       
   106 //!					3) Wait for location request to complete.
       
   107 //!					4) Verify that the location request is logged with appropriate details.  
       
   108 //!					5) Verify that location is saved by location monitor                                                                                                                                                               
       
   109 //!
       
   110 //!@SYMTestExpectedResults		Reference (cell-based) location retrieved and details logged
       
   111 //!
       
   112 //!@SYMTestType				CIT
       
   113 //!@SYMTestPriority			medium
       
   114 //!@SYMTestStatus			Implemented
       
   115 
       
   116 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_InstallScheduler
       
   117 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_LastKnownPosAreaSources c:\testdata\configs\lbsclientlastknownposareasources.ini LBS-Client-LastKnownPosAreaSources-1001
       
   118 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetUpPsy c:\testdata\configs\LbsClientCellbasedNPUD.ini LBS-CLIENT-CELLBASEDNPUD
       
   119 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_ClearLog
       
   120 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_CreateVerifyPosInfos  c:\testdata\configs\LbsClientCellbasedNPUD.ini LBS-NotifyPosUpdate-CellBased
       
   121 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_CellBasedNotifyPosUpdate c:\testdata\configs\LbsClientCellbasedNPUD.ini LBS-NotifyPosUpdate-CellBased-0001
       
   122 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_VerifyPosInfos
       
   123 //RUN_TEST_STEP 020 LbsClientTestServer LbsStep_VerifyLogInfo c:\testdata\configs\LbsClientCellbasedNPUD.ini LBS-NotifyPosUpdate-CellBased-0001
       
   124 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_LastKnownPosAreaSources c:\testdata\configs\lbsclientlastknownposareasources.ini LBS-Client-LastKnownPosAreaSources-0003
       
   125 END_TESTCASE LBS-Client-LastKnownPosAreaSources-0002
       
   126 
       
   127 DELAY 5000
       
   128 
       
   129 /////////////////////////////////////// BT
       
   130 LOAD_SUITE ctlbsbtgpspsytestserver
       
   131 
       
   132 
       
   133 START_TESTCASE                LBS-Client-LastKnownPosAreaSources-0003
       
   134 //! @SYMTestCaseID              LBS-Client-LastKnownPosAreaSources-0003
       
   135 //! @SYMTestCaseDesc            Tests to ensure the BT PSY is able to deal with a device list which contains a number of devices.  The PSY should be able to connect to and receive a location request from the only available BT device at the top of the list.  The PSY should not need to edit the device list or look at the unavailable devices at the end of the list.  The device in the list is listed as a known device so the PSY should be able to connect directly to the device.
       
   136 //! @SYMTestActions             1. Test should add a number of BT devices to the device list.  One available BT device should be added to the top of the list.  This device should be an available BT device with the device type of valid.
       
   137 //!                             2. Test makes a location request and should get a position returned back to it.
       
   138 //!                             3. Test checks the list to ensure no changes have been made.
       
   139 //!				4. Test verifies that position has been saved by location monitor
       
   140 //! @SYMTestExpectedResults     Test should receive location update and should not make changes to the device list.
       
   141 //! @SYMTestType                CIT
       
   142 //! @SYMCreationDate            8/12/2008
       
   143 //! @SYMAuthor                  JosephSpracklen
       
   144 //! @SYMTestStatus              3. Released
       
   145 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_InstallScheduler
       
   146 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_LastKnownPosAreaSources c:\testdata\configs\lbsclientlastknownposareasources.ini LBS-Client-LastKnownPosAreaSources-1001
       
   147 RUN_TEST_STEP 100 ctlbsbtgpspsytestserver SetupBTGPSDeviceList c:\testdata\configs\setupdevicelist.ini LocRequest02Pre
       
   148 RUN_TEST_STEP 100 ctlbsbtgpspsytestserver BtGpsPsyLocationRequestStep
       
   149 RUN_TEST_STEP 100 ctlbsbtgpspsytestserver CheckBTGPSDeviceList c:\testdata\configs\setupdevicelist.ini LocRequest02Post
       
   150 RUN_TEST_STEP 100 ctlbsbtgpspsytestserver DeleteBTGPSDeviceList
       
   151 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_LastKnownPosAreaSources c:\testdata\configs\lbsclientlastknownposareasources.ini LBS-Client-LastKnownPosAreaSources-0005
       
   152 END_TESTCASE                  LBS-Client-LastKnownPosAreaSources-0003
       
   153 
       
   154 PREFIX RUN_UTILS
       
   155 	DeleteFile c:\config.txt
       
   156 REMOVE_PREFIX