//! @File
//! @SYMTestSuiteName	SF-LBS-HYBRIDX3P-UEBASED
//! @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 SfLbsHybridX3PTestServer -SharedData

PRINT Run SfLbsHybridX3PTestServer

// Before we start LBS, select the test A-GPS integration module to use.
PREFIX RUN_UTILS
	MkDir c:\private\10282253\
	MkDir c:\private\10282253\lbs\
	MkDir c:\private\10282253\lbs\locmods\
//	CopyFile c:\testdata\configs\xtestmodule.ini c:\private\10282253\lbs\locmods\agpsintegmodule.ini
        CopyFile c:\testdata\configs\ctagpshybridmoduledatasource.ini  c:\private\10282253\lbs\locmods\agpsintegmodule.ini
	CopyFile c:\testdata\configs\lbstestconfig.txt c:\config.txt
REMOVE_PREFIX

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

// Select MTLR privacy controller.
RUN_TEST_STEP 010 SfLbsHybridX3PTestServer LbsStep_SetPrivacyHandler c:\testdata\configs\sf_lbs_x3p.ini PrivHandler

// Use hybrid protocol module
RUN_TEST_STEP 010 SfLbsHybridX3PTestServer LbsStep_SetupProtocolStub

RUN_TEST_STEP 030 SfLbsHybridX3PTestServer LbsStep_StartLbs

START_TESTCASE SFLBS-HybridX3P-UEBasedX3P-0001
//!@SYMTestCaseID SFLBS-HybridX3P-UEBasedX3P-0001
//!@SYMTestCaseDesc	Client generates X3P request
//!			GPS Module generates an accurate position in UE Based Mode
//!			See: lbshybridx3p/documentation/X3P.htm#Hybrid_LBS_UE-Based_X3P
//!@SYMTestActions	See test step Sequence inline comments
//!@SYMTestExpectedResults	Sequence as per specified by FSM and UML Seq diagram is Followed
//!
//!@SYMTestType				CIT
//!@SYMTestPriority			Critical
//!@SYMTestStatus			3. Released
RUN_TEST_STEP 010 SfLbsHybridX3PTestServer LbsStep_InstallScheduler
RUN_TEST_STEP 020 SfLbsHybridX3PTestServer LbsStep_SetUpPsy c:\testdata\configs\sf_lbs_x3p.ini LBS-X3P
// Configure Hybrid AGps module options
RUN_TEST_STEP 120 SfLbsHybridX3PTestServer LbsStep_ConfigHybridModule c:\testdata\configs\sf_lbs_x3p.ini UEBasedX3P
RUN_TEST_STEP 120 SfLbsHybridX3PTestServer LbsUEBasedX3P
END_TESTCASE SFLBS-HybridX3P-UEBasedX3P-0001

RUN_TEST_STEP 100 SfLbsHybridX3PTestServer LbsStep_StopLbs

RUN_UTILS DeleteFile c:\private\10282253\lbs\locmods\agpsintegmodule.ini
