lbstest/lbstestproduct/lbsclock/scripts/lbsclock.script
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:35:25 +0100
branchRCL_3
changeset 55 c92d4f3c47c5
parent 0 9cfd9a3ee49c
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201027 Kit: 201035

// Copyright (c) 2006-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 LbsClockTestServer -SharedData

PRINT Run LbsClockTestServer
PRINT

//Before we start LBS, select the test A-GPS integration module and network reg status txt file 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\lbstestconfig.txt c:\config.txt
 	// Re-select the profile ini
 	DeleteFile c:\private\10282253\lbs\lbsprofile.ini
REMOVE_PREFIX

// Selecting the default admin values will ensure the AGPS module requests assistance data.
RUN_TEST_STEP 010 LbsClockTestServer LbsStep_ResetDefaultAdmin

RUN_TEST_STEP 030 LbsClockTestServer LbsStep_StartLbs
RUN_TEST_STEP 010 LbsClockTestServer LbsStep_SetAutonomousMode

START_TESTCASE LBS-Clock-0018

//!@SYMTestCaseID			LBS-Clock-0018
//!@SYMTestCaseDesc			Automatic clock adjust with the Auto Clock API switched on.
//!
//!@SYMTestActions			1. Switch on the Auto Clock API from the admin KSettingClockAdjust setting.
//!							2. Request and process a position update.
//!
//!@SYMTestExpectedResults	Verify the time is set correctly in step 3, the following approach is
//!							taken to verify time is updated correctly:
//!								a. Record current time.
//!								b. Put clock forward by 2 hours.
//!								c. Sync the clock back to the actual time by carrying out a position update which
//!									in turn will re-adjust the clock via the location manager and its integration module.
//!									During the sync keep updating the record of current time, by an fixed interval, to allow later verification in step d.
//!								d. Ensure the time before and after adjust is roughly equal by 5 seconds.
//!								e. Repeat steps a - d and ensure time in d are equal by 2 seconds. 
//!
//!@SYMPREQ					PREQ 1616
//!@SYMREQ					REQ 1616.04
//!@SYMREQ					REQ 1616.06
//!@SYMREQ					REQ 1616.07
//!@SYMREQ					REQ 1616.10
//!@SYMREQ					REQ 1616.11
//!
//!@SYMTestType				CIT
//!@SYMTestPriority			1
//!@SYMTestStatus			Implemented.

RUN_TEST_STEP 010 LbsClockTestServer LbsStep_InstallScheduler
RUN_TEST_STEP 020 LbsClockTestServer LbsStep_SetUpPsy c:\testdata\configs\lbsclock.ini  LBS-Clock
RUN_TEST_STEP 010 LbsClockTestServer LbsStep_CreateVerifyPosInfos c:\testdata\configs\lbsclock.ini LBS-Clock-0020
RUN_TEST_STEP 020 LbsClockTestServer LbsClockStep_Main c:\testdata\configs\lbsclock.ini LBS-Clock-0020
RUN_TEST_STEP 010 LbsClockTestServer LbsStep_VerifyLogInfo

END_TESTCASE LBS-Clock-0018


START_TESTCASE LBS-Clock-0019

//!@SYMTestCaseID			LBS-Clock-0019
//!@SYMTestCaseDesc			Automatic clock adjust with the Auto Clock API switched on (adjust clock back).
//!
//!@SYMTestActions			1. Switch on the Auto Clock API from the admin KSettingClockAdjust setting.
//!							2. Request and process a position update.
//!
//!@SYMTestExpectedResults	Verify the time is set correctly in step 3, the following approach is
//!							taken to verify time is updated correctly:
//!								a. Record current time.
//!								b. Put clock back by 2 hours.
//!								c. Sync the clock back to the actual time by carrying out a position update which
//!									in turn will re-adjust the clock via the location manager and its integration module.
//!									During the sync keep updating the record of current time, by an fixed interval, to allow later verification in step d.
//!								d. Ensure the time before and after adjust is roughly equal by 5 seconds.
//!								e. Repeat steps a - d and ensure time in d are equal by 2 seconds. 
//!
//!@SYMPREQ					PREQ 1616
//!@SYMREQ					REQ 1616.04
//!@SYMREQ					REQ 1616.06
//!@SYMREQ					REQ 1616.07
//!@SYMREQ					REQ 1616.11
//!
//!@SYMTestType				CIT
//!@SYMTestPriority			1
//!@SYMTestStatus			Implemented.

RUN_TEST_STEP 010 LbsClockTestServer LbsStep_InstallScheduler
RUN_TEST_STEP 020 LbsClockTestServer LbsStep_SetUpPsy c:\testdata\configs\lbsclock.ini  LBS-Clock
RUN_TEST_STEP 010 LbsClockTestServer LbsStep_CreateVerifyPosInfos c:\testdata\configs\lbsclock.ini LBS-Clock-0021
RUN_TEST_STEP 020 LbsClockTestServer LbsClockStep_Main c:\testdata\configs\lbsclock.ini LBS-Clock-0021
RUN_TEST_STEP 010 LbsClockTestServer LbsStep_VerifyLogInfo

END_TESTCASE LBS-Clock-0019

PRINT Stop LBS
RUN_TEST_STEP 020 LbsClockTestServer 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