//
// Copyright (c) 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:
//
//
PRINT Run all validation tests Suite Tests

//
LOAD_SUITE Te_commsdat -SharedData
//


START_TESTCASE			COMINF-commsdat-validation-0101
//! @SYMTestCaseID		COMINF-commsdat-validation-0101

//CED -i Z:\testdata\configs\te_commsdat.cfg
CED -i Z:\testdata\configs\te_commsdat_correct_bearer.cfg
RUN_TEST_STEP 100 Te_commsdat commsdat100Step
RUN_TEST_STEP 100 Te_commsdat commsdat101Step
RUN_TEST_STEP 100 Te_commsdat commsdat102Step
RUN_TEST_STEP 100 Te_commsdat commsdat103Step
RUN_TEST_STEP 100 Te_commsdat commsdat104Step

//This teststep tries to store a ConnectionPref record with ranking=1 so teh previous
//DB has to be deleted to enable the store...
CED -i Z:\testdata\configs\te_commsdat_correct_bearer.cfg
RUN_TEST_STEP 100 Te_commsdat commsdat105Step
RUN_TEST_STEP 100 Te_commsdat commsdat106Step
END_TESTCASE			COMINF-commsdat-validation-0101


//ConnPref validation
//there isn't enough space to continue the numbering so the next validation test step number is 332
//reset the database
PRINT IfAuthName needs to be replaced
PRINT in systemtest.cfg
PRINT
CED -i Z:\testdata\configs\systemtest.cfg

START_TESTCASE			COMINF-commsdat-validation-0102
//! @SYMTestCaseID		COMINF-commsdat-validation-0102
RUN_TEST_STEP 100 Te_commsdat commsdat332Step
END_TESTCASE			COMINF-commsdat-validation-0101

START_TESTCASE			COMINF-commsdat-validation-0103
//! @SYMTestCaseID		COMINF-commsdat-validation-0103
RUN_TEST_STEP 100 Te_commsdat commsdat333Step
END_TESTCASE			COMINF-commsdat-validation-0103

START_TESTCASE			COMINF-commsdat-validation-0104
//! @SYMTestCaseID		COMINF-commsdat-validation-0104
RUN_TEST_STEP 100 Te_commsdat commsdat334Step
END_TESTCASE			COMINF-commsdat-validation-0104

START_TESTCASE			COMINF-commsdat-validation-0105
//! @SYMTestCaseID		COMINF-commsdat-validation-0105
RUN_TEST_STEP 100 Te_commsdat commsdat335Step
END_TESTCASE			COMINF-commsdat-validation-0105

START_TESTCASE			COMINF-commsdat-validation-0106
//! @SYMTestCaseID		COMINF-commsdat-validation-0106
RUN_TEST_STEP 100 Te_commsdat commsdat336Step
END_TESTCASE			COMINF-commsdat-validation-0106

START_TESTCASE			COMINF-commsdat-validation-0107
//! @SYMTestCaseID		COMINF-commsdat-validation-0107
RUN_TEST_STEP 100 Te_commsdat commsdat337Step
END_TESTCASE			COMINF-commsdat-validation-0107

//reset the database
CED -i Z:\testdata\configs\systemtest.cfg

//Changing the default IAP field in the ConnPref record
//TestStep priority: HIGH
START_TESTCASE			COMINF-commsdat-validation-0108
//! @SYMTestCaseID		COMINF-commsdat-validation-0108
RUN_TEST_STEP 100 Te_commsdat commsdat338Step
END_TESTCASE			COMINF-commsdat-validation-0108

//Changing the default IAP field in the ConnPref record
//TestStep priority: HIGH
START_TESTCASE			COMINF-commsdat-validation-0109
//! @SYMTestCaseID		COMINF-commsdat-validation-0109
RUN_TEST_STEP 100 Te_commsdat commsdat339Step
END_TESTCASE			COMINF-commsdat-validation-0109

//Changing the default IAP field in the ConnPref record
//TestStep priority: HIGH
START_TESTCASE			COMINF-commsdat-validation-0110
//! @SYMTestCaseID		COMINF-commsdat-validation-0110
RUN_TEST_STEP 100 Te_commsdat commsdat340Step
END_TESTCASE			COMINF-commsdat-validation-0110

//Changing the default IAP field in the ConnPref record
//TestStep priority: HIGH
START_TESTCASE			COMINF-commsdat-validation-0111
//! @SYMTestCaseID		COMINF-commsdat-validation-0111
RUN_TEST_STEP 100 Te_commsdat commsdat341Step
END_TESTCASE			COMINF-commsdat-validation-0111

//reset the database
CED -i Z:\testdata\configs\systemtest.cfg

START_TESTCASE			COMINF-commsdat-validation-0112
//! @SYMTestCaseID		COMINF-commsdat-validation-0112
RUN_TEST_STEP 100 Te_commsdat commsdat342Step
END_TESTCASE			COMINF-commsdat-validation-0112

START_TESTCASE			COMINF-commsdat-validation-0113
//! @SYMTestCaseID		COMINF-commsdat-validation-0113
RUN_TEST_STEP 100 Te_commsdat commsdat343Step
END_TESTCASE			COMINF-commsdat-validation-0113

//reset the database
CED -i Z:\testdata\configs\systemtest.cfg

START_TESTCASE			COMINF-commsdat-validation-0114
//! @SYMTestCaseID		COMINF-commsdat-validation-0114
RUN_TEST_STEP 100 Te_commsdat commsdat344Step
END_TESTCASE			COMINF-commsdat-validation-0114

//reset the database
CED -i Z:\testdata\configs\systemtest.cfg

START_TESTCASE			COMINF-commsdat-validation-0115
//! @SYMTestCaseID		COMINF-commsdat-validation-0115
RUN_TEST_STEP 100 Te_commsdat commsdat345Step
END_TESTCASE			COMINF-commsdat-validation-0115

//reset the database
CED -i Z:\testdata\configs\te_commsdat_nokia_hw_empty.cfg

//Using some special configuration file
//In this case the - defaultIAP in the ConnPref record is 0
//                 - there is no IAP record in the config file

START_TESTCASE			COMINF-commsdat-validation-0116
//! @SYMTestCaseID		COMINF-commsdat-validation-0116
RUN_TEST_STEP 100 Te_commsdat commsdat346Step
END_TESTCASE			COMINF-commsdat-validation-0116

//reset the database
CED -i Z:\testdata\configs\systemtest.cfg

START_TESTCASE			COMINF-commsdat-validation-0117
//! @SYMTestCaseID		COMINF-commsdat-validation-0117
RUN_TEST_STEP 100 Te_commsdat commsdat347Step
END_TESTCASE			COMINF-commsdat-validation-0117


//IAP validation
//reset the database
CED -i Z:\testdata\configs\emuh4pannap.cfg

START_TESTCASE			COMINF-commsdat-validation-0118
//! @SYMTestCaseID		COMINF-commsdat-validation-0118
RUN_TEST_STEP 100 Te_commsdat commsdat348Step
END_TESTCASE			COMINF-commsdat-validation-0118

START_TESTCASE			COMINF-commsdat-validation-0119
//! @SYMTestCaseID		COMINF-commsdat-validation-0119
RUN_TEST_STEP 100 Te_commsdat commsdat349Step
END_TESTCASE			COMINF-commsdat-validation-0119

//reset the database
CED -i Z:\testdata\configs\systemtest.cfg

START_TESTCASE			COMINF-commsdat-validation-0120
//! @SYMTestCaseID		COMINF-commsdat-validation-0120
RUN_TEST_STEP 100 Te_commsdat commsdat350Step
END_TESTCASE			COMINF-commsdat-validation-0120

START_TESTCASE			COMINF-commsdat-validation-0121
//! @SYMTestCaseID		COMINF-commsdat-validation-0121
RUN_TEST_STEP 100 Te_commsdat commsdat351Step
END_TESTCASE			COMINF-commsdat-validation-0121

START_TESTCASE			COMINF-commsdat-validation-0122
//! @SYMTestCaseID		COMINF-commsdat-validation-0122
RUN_TEST_STEP 100 Te_commsdat commsdat352Step
END_TESTCASE			COMINF-commsdat-validation-0122

START_TESTCASE			COMINF-commsdat-validation-0123
//! @SYMTestCaseID		COMINF-commsdat-validation-0123
RUN_TEST_STEP 100 Te_commsdat commsdat353Step
END_TESTCASE			COMINF-commsdat-validation-0123

START_TESTCASE			COMINF-commsdat-validation-0124
//! @SYMTestCaseID		COMINF-commsdat-validation-0124
RUN_TEST_STEP 100 Te_commsdat commsdat354Step
END_TESTCASE			COMINF-commsdat-validation-0124

START_TESTCASE			COMINF-commsdat-validation-0125
//! @SYMTestCaseID		COMINF-commsdat-validation-0125
RUN_TEST_STEP 100 Te_commsdat commsdat355Step
END_TESTCASE			COMINF-commsdat-validation-0125

START_TESTCASE			COMINF-commsdat-validation-0126
//! @SYMTestCaseID		COMINF-commsdat-validation-0126
RUN_TEST_STEP 100 Te_commsdat commsdat356Step
END_TESTCASE			COMINF-commsdat-validation-0126

START_TESTCASE			COMINF-commsdat-validation-0127
//! @SYMTestCaseID		COMINF-commsdat-validation-0127
RUN_TEST_STEP 100 Te_commsdat commsdat357Step
END_TESTCASE			COMINF-commsdat-validation-0127

START_TESTCASE			COMINF-commsdat-validation-0128
//! @SYMTestCaseID		COMINF-commsdat-validation-0128
RUN_TEST_STEP 100 Te_commsdat commsdat358Step
END_TESTCASE			COMINF-commsdat-validation-0128

START_TESTCASE			COMINF-commsdat-validation-0129
//! @SYMTestCaseID		COMINF-commsdat-validation-0129
RUN_TEST_STEP 100 Te_commsdat commsdat359Step
END_TESTCASE			COMINF-commsdat-validation-0129

START_TESTCASE			COMINF-commsdat-validation-0130
//! @SYMTestCaseID		COMINF-commsdat-validation-0130
RUN_TEST_STEP 100 Te_commsdat commsdat360Step
END_TESTCASE			COMINF-commsdat-validation-0130

START_TESTCASE			COMINF-commsdat-validation-0131
//! @SYMTestCaseID		COMINF-commsdat-validation-0131
RUN_TEST_STEP 100 Te_commsdat commsdat361Step
END_TESTCASE			COMINF-commsdat-validation-0131

START_TESTCASE			COMINF-commsdat-validation-0132
//! @SYMTestCaseID		COMINF-commsdat-validation-0132
RUN_TEST_STEP 100 Te_commsdat commsdat362Step
END_TESTCASE			COMINF-commsdat-validation-0132

//reset the database
CED -i Z:\testdata\configs\emuh4pannap.cfg

//LanService validation

START_TESTCASE			COMINF-commsdat-validation-0133
//! @SYMTestCaseID		COMINF-commsdat-validation-0133
RUN_TEST_STEP 100 Te_commsdat commsdat363Step
END_TESTCASE			COMINF-commsdat-validation-0133

START_TESTCASE			COMINF-commsdat-validation-0134
//! @SYMTestCaseID		COMINF-commsdat-validation-0134
RUN_TEST_STEP 100 Te_commsdat commsdat364Step
END_TESTCASE			COMINF-commsdat-validation-0134

//reset the database
CED -i Z:\testdata\configs\systemtest.cfg

//Proxies validation

START_TESTCASE			COMINF-commsdat-validation-0135
//! @SYMTestCaseID		COMINF-commsdat-validation-0135
RUN_TEST_STEP 100 Te_commsdat commsdat365Step
END_TESTCASE			COMINF-commsdat-validation-0135

START_TESTCASE			COMINF-commsdat-validation-0136
//! @SYMTestCaseID		COMINF-commsdat-validation-0136
RUN_TEST_STEP 100 Te_commsdat commsdat366Step
END_TESTCASE			COMINF-commsdat-validation-0136

//reset the database
CED -i Z:\testdata\configs\systemtest.cfg

//IAP validation

START_TESTCASE			COMINF-commsdat-validation-0137
//! @SYMTestCaseID		COMINF-commsdat-validation-0137
RUN_TEST_STEP 100 Te_commsdat commsdat367Step
END_TESTCASE			COMINF-commsdat-validation-0137

START_TESTCASE			COMINF-commsdat-validation-0138
//! @SYMTestCaseID		COMINF-commsdat-validation-0138
RUN_TEST_STEP 100 Te_commsdat commsdat368Step
END_TESTCASE			COMINF-commsdat-validation-0138

//Tier validation

START_TESTCASE			COMINF-commsdat-validation-0139
//! @SYMTestCaseID		COMINF-commsdat-validation-0139
RUN_TEST_STEP 100 Te_commsdat commsdat369Step
END_TESTCASE			COMINF-commsdat-validation-0139

START_TESTCASE			COMINF-commsdat-validation-0140
//! @SYMTestCaseID		COMINF-commsdat-validation-0140
RUN_TEST_STEP 100 Te_commsdat commsdat370Step
END_TESTCASE			COMINF-commsdat-validation-0140

START_TESTCASE			COMINF-commsdat-validation-0141
//! @SYMTestCaseID		COMINF-commsdat-validation-0141
RUN_TEST_STEP 100 Te_commsdat commsdat371Step
END_TESTCASE			COMINF-commsdat-validation-0141

START_TESTCASE			COMINF-commsdat-validation-0142
//! @SYMTestCaseID		COMINF-commsdat-validation-0142
RUN_TEST_STEP 100 Te_commsdat commsdat372Step
END_TESTCASE			COMINF-commsdat-validation-0142

//IPProto AP re-use test steps

//reset the database
CED -i Z:\testdata\configs\te_commsdat_nokia_hw_empty.cfg

START_TESTCASE			COMINF-commsdat-validation-0150
//! @SYMTestCaseID		COMINF-commsdat-validation-0150
RUN_TEST_STEP 100 Te_commsdat commsdat380Step
END_TESTCASE			COMINF-commsdat-validation-0150

//reset the database
CED -i Z:\testdata\configs\systemtest.cfg

START_TESTCASE			COMINF-commsdat-validation-0151
//! @SYMTestCaseID		COMINF-commsdat-validation-0151
RUN_TEST_STEP 100 Te_commsdat commsdat381Step
END_TESTCASE			COMINF-commsdat-validation-0151

START_TESTCASE			COMINF-commsdat-validation-0152
//! @SYMTestCaseID		COMINF-commsdat-validation-0152
RUN_TEST_STEP 100 Te_commsdat commsdat382Step
END_TESTCASE			COMINF-commsdat-validation-0152

START_TESTCASE			COMINF-commsdat-validation-0153
//! @SYMTestCaseID		COMINF-commsdat-validation-0153
RUN_TEST_STEP 100 Te_commsdat commsdat383Step
END_TESTCASE			COMINF-commsdat-validation-0153

//reset the database
CED -i Z:\testdata\configs\te_commsdat_uiq_proxies.cfg

START_TESTCASE			COMINF-commsdat-validation-0154
//! @SYMTestCaseID		COMINF-commsdat-validation-0154
RUN_TEST_STEP 100 Te_commsdat commsdat384Step
END_TESTCASE			COMINF-commsdat-validation-0154



LOAD_SUITE te_cedSuite

CED -i Z:\testdata\configs\cfg-with-iaps.cfg

START_TESTCASE			COMINF-commsdat-validation-0155
//! @SYMTestCaseID		COMINF-commsdat-validation-0155
PRINT This step here is to check whether a ConnectionPreferences record
PRINT with multiple bearers in it is stored corretly when there is available IAP
PRINT only for the 2nd bearer.
CED -i Z:\testdata\configs\cfg-with-iaps.cfg -d -v
RUN_TEST_STEP 100 te_cedSuite cedCheck
END_TESTCASE			COMINF-commsdat-validation-0155

CED -i Z:\testdata\configs\systemtest.cfg

START_TESTCASE			COMINF-commsdat-validation-0156
//! @SYMTestCaseID		COMINF-commsdat-validation-0156
RUN_TEST_STEP 100 Te_commsdat commsdat107Step
END_TESTCASE			COMINF-commsdat-validation-0156


//reset the database
CED -i Z:\testdata\configs\systemtest.cfg

START_TESTCASE			COMINF-commsdat-validation-0157
//! @SYMTestCaseID		COMINF-commsdat-validation-0157
RUN_TEST_STEP 100 Te_commsdat commsdat385Step
END_TESTCASE			COMINF-commsdat-validation-0157

PRINT Complete_te_commsdat_Validation_Tests

