// 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:
// Script file for WriteDeviceData capability tests.
// @internalAll
// 
//
LOAD_SUITE TestWListBListUriServer_Cap 


START_TESTCASE	IWS-WLBL-CIT-POS-0038-0001
//WriteCap_Update_Uri_FavouriteName

//! @file			Cap_00000000_TestWListBListUri.script
//! @SYMTestCaseID		IWS-WLBL-CIT-POS-0038-0001
//! @SYMTestCaseDesc 		Shouldn't be able to update the favourite name of an uri, the application must have WriteDeviceData capability.
//! @SYMFssID			
//! @SYMTestStatus 		Implemented
//! @SYMTestPriority 		Critical
//! @SYMTestActions 		Try to update the favourite name of an uri when application has WriteDeviceData capability.
//! @SYMTestExpectedResults 	The operation must pass.
//! @SYMTestType 		CIT
RUN_TEST_STEP 	100 	TestWListBListUriServer_Cap     TestUpdateUriFavNameStep 	c:\testdata\ini\TestWListBListUriSuite.ini  WriteCap_Update_Uri_FavouriteName_1
END_TESTCASE 	IWS-WLBL-CIT-POS-0038-0001


START_TESTCASE	IWS-WLBL-CIT-POS-0029-0001
//WriteCap_Domain_Match_Uri_WhiteList

//! @file			Cap_00000000_TestWListBListUri.script
//! @SYMTestCaseID		IWS-WLBL-CIT-POS-0029-0001
//! @SYMTestCaseDesc 		Shouldn't be able to search/match a specific uri when the application does not have ReadDeviceData
//! @SYMFssID			
//! @SYMTestStatus 		Implemented
//! @SYMTestPriority 		Critical
//! @SYMTestActions 		Try to match a specific uri when application has WriteDeviceData capability.
//! @SYMTestExpectedResults 	It should fail with KErrPermissionDenied error as expected.
//! @SYMTestType 		CIT
RUN_TEST_STEP 	100 	TestWListBListUriServer_Cap     TestMatchUriStep 	c:\testdata\ini\TestWListBListUriSuite.ini  WriteCap_Domain_Match_Uri_WhiteList_1
END_TESTCASE 	IWS-WLBL-CIT-POS-0029-0001


START_TESTCASE	IWS-WLBL-CIT-POS-0029-0002
//WriteCap_Get_All_WhiteList_Uris

//! @file			Cap_00000000_TestWListBListUri.script
//! @SYMTestCaseID		IWS-WLBL-CIT-POS-0029-0002
//! @SYMTestCaseDesc 		Shouldn't be able to find/match  uris using service-type/list-type when the application does not have ReadDeviceData
//! @SYMFssID			
//! @SYMTestStatus 		Implemented
//! @SYMTestPriority 		Critical
//! @SYMTestActions 		Try to find/match uris  using service-type/list-type when application has WriteDeviceData capability.
//! @SYMTestExpectedResults 	It should fail with KErrPermissionDenied error as expected.
//! @SYMTestType 		CIT
RUN_TEST_STEP 	100 	TestWListBListUriServer_Cap     TestMatchUriTypeStep    c:\testdata\ini\TestWListBListUriSuite.ini  WriteCap_Get_All_WhiteList_Uris_1
END_TESTCASE 	IWS-WLBL-CIT-POS-0029-0002


START_TESTCASE	IWS-WLBL-CAP_00000020_TESTWLISTBLISTURI-0001
//WriteCap_Get_ListType_WhiteListed_Uri

//! @file			Cap_00000000_TestWListBListUri.script
//! @SYMTestCaseID		IWS-WLBL-CAP_00000020_TESTWLISTBLISTURI-0001
//! @SYMTestCaseDesc 		It doesn't require any capability to find the list-type of a specific uri.
//! @SYMFssID			
//! @SYMTestStatus 		Implemented
//! @SYMTestPriority 		Critical
//! @SYMTestActions 		Try to find the list-type of a specific uri when application has WriteDeviceData capability.
//! @SYMTestExpectedResults 	The operation must pass.
//! @SYMTestType 		CIT
RUN_TEST_STEP 	100 	TestWListBListUriServer_Cap     TestUriListTypeStep    c:\testdata\ini\TestWListBListUriSuite.ini  WriteCap_Get_ListType_WhiteListed_Uri_1
END_TESTCASE 	IWS-WLBL-CAP_00000020_TESTWLISTBLISTURI-0001

START_TESTCASE	IWS-WLBL-TLD-CIT-NEG-0004-0003
//WriteCap_Tld_WhiteList_Uris

//! @file			Cap_00000000_TestWListBListUri.script
//! @SYMTestCaseID		IWS-WLBL-TLD-CIT-NEG-0004-0003
//! @SYMTestCaseDesc 		Shouldn't be able to query tld info when the application does not have ReadDeviceData
//! @SYMFssID			
//! @SYMTestStatus 		Implemented
//! @SYMTestPriority 		Critical
//! @SYMTestActions 		Try to find query tld info when application has WriteDeviceData capability.
//! @SYMTestExpectedResults 	It should fail with KErrPermissionDenied error as expected.
//! @SYMREQ						REQ11666
//! @SYMTestType 		CIT
RUN_TEST_STEP 	100 	TestWListBListUriServer_Cap     TestTldPolicyStep    c:\testdata\ini\TestWListBListUriSuite.ini  WriteCap_Tld_WhiteList_Uris_1
END_TESTCASE 	IWS-WLBL-TLD-CIT-NEG-0004-0003

START_TESTCASE	IWS-WLBL-CIT-POS-0038-0002
//WriteCap_Update_Uri_ListType

//! @file			Cap_00000000_TestWListBListUri.script
//! @SYMTestCaseID		IWS-WLBL-CIT-POS-0038-0002
//! @SYMTestCaseDesc 		To update the listtype of an uri, the application must have WriteDeviceData capability.
//! @SYMFssID			
//! @SYMTestStatus 		Implemented
//! @SYMTestPriority 		Critical
//! @SYMTestActions 		Try to update the list-type of an uri when application has WriteDeviceData capability.
//! @SYMTestExpectedResults 	The operation must pass.
//! @SYMTestType 		CIT
RUN_TEST_STEP 	100 	TestWListBListUriServer_Cap     TestUpdateUriListTypeStep 	c:\testdata\ini\TestWListBListUriSuite.ini  WriteCap_Update_Uri_ListType_1
END_TESTCASE 	IWS-WLBL-CIT-POS-0038-0002


START_TESTCASE	IWS-WLBL-CAP_00000020_TESTWLISTBLISTURI-0002
//WriteCap_Find_Uris_Count

//! @file			Cap_00000000_TestWListBListUri.script
//! @SYMTestCaseID		IWS-WLBL-CAP_00000020_TESTWLISTBLISTURI-0002
//! @SYMTestCaseDesc 		It doesn't require any capability to find the count of matching uris using service-type/list-type.
//! @SYMFssID			
//! @SYMTestStatus 		Implemented
//! @SYMTestPriority 		Critical
//! @SYMTestActions 		Try to find the count of matching uris  using service-type/list-type when application has WriteDeviceData capability.
//! @SYMTestExpectedResults 	The operation must pass.
//! @SYMTestType 		CIT
RUN_TEST_STEP 	100 	TestWListBListUriServer_Cap     TestUriCountStep 	c:\testdata\ini\TestWListBListUriSuite.ini  WriteCap_Find_Uris_Count_1
END_TESTCASE 	IWS-WLBL-CAP_00000020_TESTWLISTBLISTURI-0001

START_TESTCASE	IWS-WLBL-CIT-POS-0038-0003
//WriteCap_Add_Uri_WhiteList

//! @file			Cap_00000000_TestWListBListUri.script
//! @SYMTestCaseID		IWS-WLBL-CIT-POS-0038-0003
//! @SYMTestCaseDesc 		To add an uri to database, the application must have WriteDeviceData capability.
//! @SYMFssID			
//! @SYMTestStatus 		Implemented
//! @SYMTestPriority 		Critical
//! @SYMTestActions 		Try to add an uri to database when application has WriteDeviceData capability.
//! @SYMTestExpectedResults 	The operation must pass.
//! @SYMTestType 		CIT
RUN_TEST_STEP 	100 	TestWListBListUriServer_Cap     TestAddUriStep 	c:\testdata\ini\TestWListBListUriSuite.ini  WriteCap_Add_Uri_WhiteList_1
END_TESTCASE 	IWS-WLBL-CIT-POS-0038-0003


START_TESTCASE	IWS-WLBL-CIT-POS-0038-0004
//WriteCap_Remove_ReadWrite_Uri_WhiteList

//! @file			Cap_00000000_TestWListBListUri.script
//! @SYMTestCaseID		IWS-WLBL-CIT-POS-0038-0004
//! @SYMTestCaseDesc 		To remove an uri from database, the application must have WriteDeviceData capability.
//! @SYMFssID			
//! @SYMTestStatus 		Implemented
//! @SYMTestPriority 		Critical
//! @SYMTestActions 		Try to remove an uri from database when application has WriteDeviceData capability.
//! @SYMTestExpectedResults 	The operation must pass.
//! @SYMTestType 		CIT
RUN_TEST_STEP 	100 	TestWListBListUriServer_Cap     TestRemoveUriStep 	c:\testdata\ini\TestWListBListUriSuite.ini  WriteCap_Remove_ReadWrite_Uri_WhiteList_1
END_TESTCASE 	IWS-WLBL-CIT-POS-0038-0004
