lbstest/lbstestproduct/LbsROMspecificSuites/scripts/lbsstandaloneprivacysuite.script
changeset 0 9cfd9a3ee49c
child 45 15a2125aa2f3
equal deleted inserted replaced
-1:000000000000 0:9cfd9a3ee49c
       
     1 //
       
     2 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description:
       
    15 //
       
    16 //! @File
       
    17 //! @SYMTestSuiteName         lbsstandaloneprivacysuitevariant2.script
       
    18 //! @SYMScriptTestEnvironment
       
    19 
       
    20 PRINT Run all LbsRomSuiteTestServer Suite Tests
       
    21 
       
    22 LOAD_SUITE LbsRomSuiteTestServer -SharedData
       
    23 
       
    24 //Before we start LBS, select the test A-GPS integration module and network reg status txt file to use.
       
    25 PREFIX RUN_UTILS
       
    26 	MkDir c:\private\10282253\
       
    27 	MkDir c:\private\10282253\lbs\
       
    28 	MkDir c:\private\10282253\lbs\locmods\
       
    29 	CopyFile c:\testdata\configs\xtestmodule.ini c:\private\10282253\lbs\locmods\agpsintegmodule.ini
       
    30     CopyFile c:\testdata\configs\lbstestconfig.txt c:\config.txt
       
    31 REMOVE_PREFIX
       
    32 
       
    33 // Selecting the default admin values will ensure the AGPS module requests assistance data.
       
    34 //RUN_TEST_STEP 010 LbsRomSuiteTestServer LbsStep_ResetDefaultAdmin
       
    35 
       
    36 // This step is used to configure lbs and root to be transient processes 
       
    37 // and also the processes that are startedup by root
       
    38 RUN_TEST_STEP 030 LbsRomSuiteTestServer LbsStep_SetupStandalonePrivacyMode
       
    39 
       
    40 // - Instead of using a privacy request which actually starts up the LBS, we directly
       
    41 // start lbs which in turn brings up the root process [configured in the above step]
       
    42 RUN_TEST_STEP 030 LbsRomSuiteTestServer LbsStep_StartLbs
       
    43 
       
    44 
       
    45 
       
    46 START_TESTCASE                LBS-STANDALONEPRIVACY-CHECKLOCMONITOR-0001
       
    47 //! @SYMTestCaseID              LBS-STANDALONEPRIVACY-CHECKLOCMONITOR-0001
       
    48 //! @SYMTestCaseDesc            To check if both the Epos Location Server and the Location Monitor are transient under  this configuration and are started on demand when a client application opens a session with the Epos Location Server.
       
    49 //! @SYMTestPriority            Critical
       
    50 //! @SYMTestActions             1.  Start LBS - which brings up the root process.
       
    51 //!                             2.  Check if the location monitor process is running [ie. if it has been started by root].
       
    52 //!                             3.  Open a session and subsession with the EPos Location server.
       
    53 //!                             4.  Check if the location monitor process gets startup by the epos location server.
       
    54 //!                             5.  Close the session and subsession and wait until the location server dies.
       
    55 //!                             6.  Verify that the location monitor process no longer exists.
       
    56 //! @SYMTestExpectedResults     1. The test must check that the Location Monitor has NOT been started by the root.
       
    57 //!                             2. process. The the test connects a client to the Location Server and then verifies that
       
    58 //!                             the Location Monitor has been started.
       
    59 //!                             3. Finally, the test disconnects the client and verifies that the Location Monitor process is
       
    60 //!                             no longer loaded.
       
    61 //! @SYMTestType                CIT
       
    62 //! @SYMCreationDate            31/3/2009
       
    63 //! @SYMAuthor                  arunkumarpandian
       
    64 //! @SYMTestStatus              3. Released
       
    65 RUN_TEST_STEP 100 LbsRomSuiteTestServer PositionerTestStep c:\testdata\configs\lbsromspecificsuite.ini LBS-STANDALONEPRIVACY--CHECKLOCMONITOR-0001
       
    66 END_TESTCASE                  LBS-STANDALONEPRIVACY--CHECKLOCMONITOR-0001
       
    67 
       
    68 
       
    69 
       
    70 DELAY 2000
       
    71 //PRINT Stop LBS
       
    72 RUN_TEST_STEP 020 LbsRomSuiteTestServer LbsStep_StopLbs
       
    73 
       
    74 // Re-select the real A-GPS integration module.
       
    75 RUN_UTILS DeleteFile c:\private\10282253\lbs\locmods\agpsintegmodule.ini
       
    76 
       
    77 // Delete network registration status text file
       
    78 RUN_UTILS DeleteFile c:\config.txt
       
    79 
       
    80 PRINT LbsRomSuiteTestServer Completed
       
    81 
       
    82 
       
    83