// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
// @File
// 
//

//! @SYMTestSuiteName		LBS-HYBRID-MOLR-SELFVALUES
//! @SYMScriptTestEnvironment	This test can be run either on emulator or on hardware.
//! @SYMScriptPurpose		This test Validate value to prove that the test values are read from lbsprofile.
//! @SYMScriptDependencies	lbsprofile_values.ini
//! @SYMScriptInfo		see uebased_molr_self.script for details
//! @SYMScriptAutomation	testexecute
//! @SYMScriptAuthor		Jean-Noel Marc Denis meneghetti
//! @SYMScriptCreationDate	16/07/2008

LOAD_SUITE LbsHybridMOLRTestServer -SharedData

PRINT Run LbsHybridMOLRTestServer


// Before we start LBS, select the test A-GPS integration module to use.
PREFIX RUN_UTILS

// delete admin cenrep persist 
DeleteFile c:\private\10202be9\persists\1028224b.cre
// delete roots cenrep persist 
DeleteFile c:\private\10202be9\persists\10282266.cre
DeleteFile c:\private\10282253\lbs\locmods\agpsintegmodule.ini


MkDir c:\private\10282253\
MkDir c:\private\10282253\lbs\
MkDir c:\private\10282253\lbs\locmods\
CopyFile c:\testdata\configs\ctagpsnpetestmoduledatasource.ini c:\private\10282253\lbs\locmods\agpsintegmodule.ini
CopyFile c:\testdata\configs\lbstestconfig.txt c:\config.txt
CopyFile c:\testdata\configs\lbsprofile_values.ini c:\private\10282253\lbs\lbsprofile.ini
REMOVE_PREFIX

// Reset admin (reset will give us the EGpsPreferTerminalBased).
RUN_TEST_STEP 010 LbsHybridMOLRTestServer LbsStep_ResetDefaultAdmin

// Use hybrid protocol module
RUN_TEST_STEP 010 LbsHybridMOLRTestServer LbsStep_SetupProtocolStub

// Use hybrid protocol module
RUN_TEST_STEP 010 LbsHybridMOLRTestServer LbsStep_SetupRoamSelfLocate

RUN_TEST_STEP 030 LbsHybridMOLRTestServer LbsStep_StartLbs



START_TESTCASE                LBS-HybridMOLR-UEBasedMOLR-Self-0002
//! @SYMTestCaseID              LBS-HybridMOLR-UEBasedMOLR-Self-0002
//! @SYMTestCaseDesc            Client generates MOLR request
//!                             GPS Module generates an accurate position in UE Based State
//!                             See: lbshybridmolr/documentation/MOLR.htm#Hybrid_UE-BasedMO-LRSelf
//! @SYMTestPriority            Low
//! @SYMTestActions             See test step Sequence inline comments
//! @SYMTestExpectedResults     Sequence as per specified by FSM and UML Seq diagram is Followed
//! @SYMTestType                CIT
//! @SYMCreationDate            16/7/2008
//! @SYMAuthor                  jeannoelm
//! @SYMTESTSTATUS              Implemented.
//! @SYMPREQ                    PREQ1624
//! @SYMREQ                     REQ1624.xyz
RUN_TEST_STEP 010 LbsHybridMOLRTestServer LbsStep_InstallScheduler

RUN_TEST_STEP 020 LbsHybridMOLRTestServer LbsStep_SetUpPsy c:\testdata\configs\lbs_molr.ini LBS-MOLR

// Configure Hybrid AGps module options
RUN_TEST_STEP 120 LbsHybridMOLRTestServer LbsStep_ConfigHybridModule c:\testdata\configs\lbs_molr.ini UEBasedMOLRSelf

RUN_TEST_STEP 120 LbsHybridMOLRTestServer LbsUEBasedMOLRSelfInternalValueTest

END_TESTCASE LBS-HybridMOLR-UEBasedMOLR-Self-0002

RUN_TEST_STEP 020 LbsHybridMOLRTestServer LbsStep_StopLbs

// Clean lbsprofile
RUN_UTILS DeleteFile c:\private\10282253\lbs\lbsprofile.ini

