//! @File
//! @SYMTestSuiteName	SF-LBS-HYBRIDMOLR-PARTIAL
//! @SYMScriptTestEnvironment TEF
//
//
//Copyright (c) 2007-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:

LOAD_SUITE SfLbsHybridMOLRTestServer -SharedData

PRINT Run SfLbsHybridMOLRTestServer


// Before we start LBS, select the test Hybrid A-GPS integration module to use.
// Make sure the default profile is used, rather than one from the c drive
PREFIX RUN_UTILS
DeleteFile c:\private\10282253\lbs\lbsprofile.ini
MkDir c:\private\10282253\
MkDir c:\private\10282253\lbs\
MkDir c:\private\10282253\lbs\locmods\
CopyFile c:\testdata\configs\ctagpshybridmoduledatasource.ini c:\private\10282253\lbs\locmods\agpsintegmodule.ini
CopyFile c:\testdata\configs\lbstestconfig.txt c:\config.txt

DeleteFile c:\private\10202be9\1028224b.cre
DeleteFile c:\private\10202be9\persists\1028224b.cre
REMOVE_PREFIX

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

// Use hybrid protocol module.
RUN_TEST_STEP 010 SfLbsHybridMOLRTestServer LbsStep_SetupProtocolStub

// Ensure Self Locate API is on for roaming
RUN_TEST_STEP 010 SfLbsHybridMOLRTestServer LbsStep_SetupRoamSelfLocate

// Start up LBS.
RUN_TEST_STEP 030 SfLbsHybridMOLRTestServer LbsStep_StartLbs



START_TESTCASE                SFLBS-HybridMOLR-UEAssistedMOLR-Partial-0001
//! @SYMTestCaseID              SFLBS-HybridMOLR-UEAssistedMOLR-Partial-0001
//! @SYMTestCaseDesc            Client generates MOLR request
//!                             GPS Module generates partial measurements in UE Based  UE Assisted State
//!                             Client terminates the MOLR request while in UE Assisted State
//!                             See: lbshybridmolr/documentation/MOLR.htm#MOLR_UE-Based_Partial_Update
//! @SYMTestPriority            Critical
//! @SYMTestActions             See test step Sequence inline comments
//! @SYMTestExpectedResults     Sequence as per specified by FSM and UML Seq diagram is Followed
//! @SYMTestType                CIT
//! @SYMCreationDate            28/8/2008
//! @SYMAuthor                  alans
//! @SYMTestStatus              3. Released
RUN_TEST_STEP 010 SfLbsHybridMOLRTestServer LbsStep_InstallScheduler
RUN_TEST_STEP 020 SfLbsHybridMOLRTestServer LbsStep_SetUpPsy c:\testdata\configs\sf_lbs_molr.ini LBS-MOLR
// Configure Hybrid AGps module options
RUN_TEST_STEP 20 SfLbsHybridMOLRTestServer LbsStep_ConfigHybridModule c:\testdata\configs\sf_lbs_molr.ini UEAssistedMolrPartial
RUN_TEST_STEP 480 SfLbsHybridMOLRTestServer LbsHybridUEAssistedMOLRPartial c:\testdata\configs\sf_lbs_molr.ini UEAssistedMolrPartial
END_TESTCASE                  SFLBS-HybridMOLR-UEAssistedMOLR-Partial-0001
// Shutdown LBS.
RUN_TEST_STEP 020 SfLbsHybridMOLRTestServer LbsStep_StopLbs
// Re-select the real A-GPS integration module.
RUN_UTILS DeleteFile c:\private\10282253\lbs\locmods\agpsintegmodule.ini
// Delete network registration status text file
RUN_UTILS DeleteFile c:\config.txt


