bluetoothapitest/bluetoothsvs/T_BTSdpAPI/scripts/BTSDP-Lists-PublicApi-Passive-Master.script
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 //
       
     2 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description:
       
    15 //
       
    16 ///////////////////////////////////////////////////////////////////////////////
       
    17 //! @file
       
    18 //! @SYMTestSuiteName			T_BTSdpAPI
       
    19 //! @SYMScriptTestEnvironment	This test script requires a basic ROM with bluetooth dongle.
       
    20 //! @SYMScriptDescription		Tests all public elements of the CSdpAgent class
       
    21 //! 							as a means of confidence that the API works as expected. 
       
    22 //!								The purpose is to provide a regression test suite of PublishedAll APIs for 
       
    23 //!								BT SDP related classes.
       
    24 //! 							Negative testing is performed to confirm that correct errors are returned 
       
    25 //!								when incorrect parameters are given. The tests are fully automated.
       
    26 //! @SYMAuthor					Symbio
       
    27 //! @SYMCreationDate			16/01/2006
       
    28 ///////////////////////////////////////////////////////////////////////////////
       
    29 
       
    30 RUN_UTILS	MkDir	${SYSDRIVE}\bluetooth\
       
    31 RUN_UTILS	MkDir	${SYSDRIVE}\bluetooth\sdp\
       
    32 
       
    33 LOAD_SUITE	UCCControlTE
       
    34 LOAD_SUITE	T_BTSdpAPI	-SharedData
       
    35 DELAY		2000
       
    36 
       
    37 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncService
       
    38 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartTDService
       
    39 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini BuildRunListsActiveSlave
       
    40 
       
    41 DELAY		10000
       
    42 
       
    43 // ****************************************************************************
       
    44 // Set up BT Addresses
       
    45 // ****************************************************************************
       
    46 
       
    47 START_TESTCASE BTSDP-Lists-PublicApi-Passive-SetBTAddresses
       
    48 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
    49 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
    50 			SHARED_ACTIVE_SCHEDULER
       
    51 			CREATE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
    52 			CREATE_OBJECT	TRfcommSockAddr	TRfcommSockAddr1	
       
    53 			CREATE_OBJECT	CBluetoothSocket	CBluetoothSessionSocket	
       
    54 			COMMAND		CBluetoothSocket1	RSocketServerConnect
       
    55 			COMMAND		CBluetoothSocket1	NewL		BTSDP-Lists-PublicApi-Passive-SetBTAddresses-0001command3NewL
       
    56 			COMMAND		TRfcommSockAddr1	Construct
       
    57 			COMMAND		TRfcommSockAddr1	SetFamily		BTSDP-Lists-PublicApi-Passive-SetBTAddresses-0001command6SetFamily
       
    58 			COMMAND		TRfcommSockAddr1	SetPort		BTSDP-Lists-PublicApi-Passive-SetBTAddresses-0001command7SetPort
       
    59 			COMMAND		CBluetoothSocket1	Bind		BTSDP-Lists-PublicApi-Passive-SetBTAddresses-0001command9Bind
       
    60 			COMMAND		CBluetoothSocket1	Listen		BTSDP-Lists-PublicApi-Passive-SetBTAddresses-0001command10Listen
       
    61 			COMMAND		CBluetoothSessionSocket	SetRsocketServerFromCBTSocket		BTSDP-Lists-PublicApi-Passive-SetBTAddresses-0001command12SetRsocketServerFromCBTSocket
       
    62 			COMMAND		CBluetoothSessionSocket	NewL		BTSDP-Lists-PublicApi-Passive-SetBTAddresses-0001command13NewL
       
    63 			STORE	CBluetoothSocket1	
       
    64 			STORE	CBluetoothSessionSocket	
       
    65 			STORE_ACTIVE_SCHEDULER
       
    66 	END_TEST_BLOCK
       
    67 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult	
       
    68 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase		
       
    69 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
    70 			SHARED_ACTIVE_SCHEDULER
       
    71 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
    72 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSessionSocket	
       
    73 			CREATE_OBJECT	TBTDevAddr	TBTDevAddrLocal	
       
    74 			COMMAND		TBTDevAddrLocal	Construct
       
    75 			COMMAND		TBTDevAddrLocal	OpenHostResolver		BTSDP-Lists-PublicApi-Passive-SetBTAddresses-0002command3OpenHostResolver
       
    76 			COMMAND		TBTDevAddrLocal	SetHostNameL		BTSDP-Lists-PublicApi-Passive-SetBTAddresses-0002command4SetHostNameL
       
    77 			COMMAND		TBTDevAddrLocal	SetDiscoverable
       
    78 			STORE	CBluetoothSocket1	
       
    79 			STORE	CBluetoothSessionSocket	
       
    80 			STORE	TBTDevAddrLocal	
       
    81 	END_TEST_BLOCK
       
    82 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult		
       
    83 END_TESTCASE BTSDP-Lists-PublicApi-Passive-SetBTAddresses
       
    84 
       
    85 
       
    86 // ****************************************************************************
       
    87 // Database Side - CSdpAttrVAlueString API tests
       
    88 // ****************************************************************************	
       
    89 
       
    90 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1001
       
    91 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1001
       
    92 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueString
       
    93 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
    94 //!								Uses API elements: 	NewStringL() from CSdpAttrValueString
       
    95 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
    96 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
    97 //! @SYMTestActions				1. Create a CSdpAttrValueString object
       
    98 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
    99 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
   100 //!								4. Create a new service record, with a single service class, in the SDP database.
       
   101 //!								   Verify the resulting err code is KErrNone.
       
   102 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   103 //!								   Verify the resulting err code is KErrNone.
       
   104 //!								6. Clean the database
       
   105 //! @SYMTestStatus				Implemented
       
   106 //! @SYMTestPriority			Low
       
   107 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   108 //! @SYMTestType				CIT
       
   109 
       
   110 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   111 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
   112 			SHARED_ACTIVE_SCHEDULER
       
   113 			CREATE_OBJECT	RSdpDatabase	database1	
       
   114 			CREATE_OBJECT	RSdp	rsdp	
       
   115 			CREATE_OBJECT	CSdpAttrValueString	attrValueString	
       
   116 			COMMAND		attrValueString	NewStringL		BTSDP-Lists-PublicApi-Passive-1001-0001command2NewStringL
       
   117 			COMMAND		rsdp	Constructor
       
   118 			COMMAND		rsdp	Connect
       
   119 			OUTSTANDING
       
   120 			COMMAND		database1	Constructor
       
   121 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1001-0001command8Open
       
   122 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1001-0001command9CreateServiceRecordL
       
   123 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1001-0001command10UpdateAttributeL
       
   124 			STORE	database1	
       
   125 			STORE	rsdp	
       
   126 			STORE_ACTIVE_SCHEDULER
       
   127 	END_TEST_BLOCK
       
   128 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   129 
       
   130 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   131 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   132 
       
   133 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
   134 			SHARED_ACTIVE_SCHEDULER
       
   135 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   136 			RESTORE_OBJECT	RSdp	rsdp	
       
   137 			ASYNC_DELAY	1000000
       
   138 			COMMAND		database1	DeleteRecordL
       
   139 			COMMAND		database1	Close
       
   140 			COMMAND		rsdp	Close
       
   141 			STORE_ACTIVE_SCHEDULER
       
   142 	END_TEST_BLOCK
       
   143 
       
   144 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1001
       
   145 
       
   146 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1002
       
   147 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1002
       
   148 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueString
       
   149 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   150 //!								Uses API elements: 	NewStringL() and DataSize() from CSdpAttrValueString
       
   151 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
   152 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
   153 //! @SYMTestActions				1. Create a CSdpAttrValueString object and verify its data size
       
   154 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
   155 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
   156 //!								4. Create a new service record, with a single service class, in the SDP database.
       
   157 //!								   Verify the resulting err code is KErrNone.
       
   158 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   159 //!								   Verify the resulting err code is KErrNone.
       
   160 //!								6. Clean the database
       
   161 //! @SYMTestStatus				Implemented
       
   162 //! @SYMTestPriority			Low
       
   163 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   164 //! @SYMTestType				CIT
       
   165 
       
   166 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   167 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
   168 			SHARED_ACTIVE_SCHEDULER
       
   169 			CREATE_OBJECT	RSdpDatabase	database1	
       
   170 			CREATE_OBJECT	RSdp	rsdp	
       
   171 			CREATE_OBJECT	CSdpAttrValueString	attrValueString	
       
   172 			COMMAND		attrValueString	NewStringL		BTSDP-Lists-PublicApi-Passive-1002-0001command2NewStringL
       
   173 			COMMAND		attrValueString	DataSize		BTSDP-Lists-PublicApi-Passive-1002-0001command3DataSize
       
   174 			COMMAND		rsdp	Constructor
       
   175 			COMMAND		rsdp	Connect
       
   176 			OUTSTANDING
       
   177 			COMMAND		database1	Constructor
       
   178 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1002-0001command9Open
       
   179 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1002-0001command10CreateServiceRecordL
       
   180 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1002-0001command11UpdateAttributeL
       
   181 			STORE	database1	
       
   182 			STORE	rsdp	
       
   183 			STORE_ACTIVE_SCHEDULER
       
   184 	END_TEST_BLOCK
       
   185 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   186 
       
   187 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   188 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   189 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
   190 			SHARED_ACTIVE_SCHEDULER
       
   191 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   192 			RESTORE_OBJECT	RSdp	rsdp	
       
   193 			COMMAND		database1	DeleteRecordL
       
   194 			COMMAND		database1	Close
       
   195 			COMMAND		rsdp	Close
       
   196 			STORE_ACTIVE_SCHEDULER
       
   197 	END_TEST_BLOCK
       
   198 
       
   199 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1002
       
   200 
       
   201 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1003
       
   202 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1003
       
   203 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueString
       
   204 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   205 //!								Uses API elements: 	NewStringL() and Des() from CSdpAttrValueString
       
   206 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
   207 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
   208 //! @SYMTestActions				1. Create a CSdpAttrValueString object
       
   209 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
   210 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
   211 //!								4. Create a new service record, with a single service class, in the SDP database.
       
   212 //!								   Verify the resulting err code is KErrNone.
       
   213 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   214 //!								   Verify the resulting err code is KErrNone.
       
   215 //!								6. Create a new service record, CSdpAttrValueString and verify its data value.
       
   216 //!								7. Update the service record.
       
   217 //!								8. Clean the database
       
   218 //! @SYMTestStatus				Implemented
       
   219 //! @SYMTestPriority			Low
       
   220 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   221 //! @SYMTestType				CIT
       
   222 
       
   223 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   224 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
   225 			SHARED_ACTIVE_SCHEDULER
       
   226 			CREATE_OBJECT	RSdpDatabase	database1	
       
   227 			CREATE_OBJECT	RSdp	rsdp	
       
   228 			CREATE_OBJECT	CSdpAttrValueString	attrValueString	
       
   229 			COMMAND		attrValueString	NewStringL		BTSDP-Lists-PublicApi-Passive-1003-0001command2NewStringL
       
   230 			COMMAND		rsdp	Constructor
       
   231 			COMMAND		rsdp	Connect
       
   232 			OUTSTANDING
       
   233 			COMMAND		database1	Constructor
       
   234 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1003-0001command8Open
       
   235 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1003-0001command9CreateServiceRecordL
       
   236 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1003-0001command10UpdateAttributeL
       
   237 			COMMAND		attrValueString	NewStringL		BTSDP-Lists-PublicApi-Passive-1003-0001command12NewStringL
       
   238 			COMMAND		attrValueString	Des		BTSDP-Lists-PublicApi-Passive-1003-0001command13Des
       
   239 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1003-0001command15UpdateAttributeL
       
   240 			STORE	database1	
       
   241 			STORE	rsdp	
       
   242 			STORE_ACTIVE_SCHEDULER
       
   243 	END_TEST_BLOCK
       
   244 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   245 
       
   246 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   247 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   248 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
   249 			SHARED_ACTIVE_SCHEDULER
       
   250 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   251 			RESTORE_OBJECT	RSdp	rsdp	
       
   252 			COMMAND		database1	DeleteRecordL
       
   253 			COMMAND		database1	Close
       
   254 			COMMAND		rsdp	Close
       
   255 			STORE_ACTIVE_SCHEDULER
       
   256 	END_TEST_BLOCK
       
   257 
       
   258 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1003
       
   259 
       
   260 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1004
       
   261 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1004
       
   262 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueString
       
   263 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   264 //!								Uses API elements: 	NewStringL() and Type() from CSdpAttrValueString
       
   265 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
   266 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
   267 //! @SYMTestActions				1. Create a CSdpAttrValueString object
       
   268 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
   269 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
   270 //!								4. Create a new service record, with a single service class, in the SDP database.
       
   271 //!								   Verify the resulting err code is KErrNone.
       
   272 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   273 //!								   Verify the resulting err code is KErrNone.
       
   274 //!								6. Create a new service record, CSdpAttrValueString and verify its type and return KErrNone if successful.
       
   275 //!								7. Update the service record.
       
   276 //!								8. Clean the database
       
   277 //! @SYMTestStatus				Implemented
       
   278 //! @SYMTestPriority			Low
       
   279 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   280 //! @SYMTestType				CIT
       
   281 
       
   282 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   283 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
   284 			SHARED_ACTIVE_SCHEDULER
       
   285 			CREATE_OBJECT	RSdpDatabase	database1	
       
   286 			CREATE_OBJECT	RSdp	rsdp	
       
   287 			CREATE_OBJECT	CSdpAttrValueString	attrValueString	
       
   288 			COMMAND		attrValueString	NewStringL		BTSDP-Lists-PublicApi-Passive-1004-0001command2NewStringL
       
   289 			COMMAND		rsdp	Constructor
       
   290 			COMMAND		rsdp	Connect
       
   291 			OUTSTANDING
       
   292 			COMMAND		database1	Constructor
       
   293 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1004-0001command8Open
       
   294 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1004-0001command9CreateServiceRecordL
       
   295 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1004-0001command10UpdateAttributeL
       
   296 			COMMAND		attrValueString	NewStringL		BTSDP-Lists-PublicApi-Passive-1004-0001command12NewStringL
       
   297 			COMMAND		attrValueString	Type		BTSDP-Lists-PublicApi-Passive-1004-0001command13Type
       
   298 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1004-0001command15UpdateAttributeL
       
   299 			STORE	database1	
       
   300 			STORE	rsdp	
       
   301 			STORE_ACTIVE_SCHEDULER
       
   302 	END_TEST_BLOCK
       
   303 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   304 
       
   305 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   306 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   307 
       
   308 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
   309 			SHARED_ACTIVE_SCHEDULER
       
   310 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   311 			RESTORE_OBJECT	RSdp	rsdp	
       
   312 			COMMAND		database1	DeleteRecordL
       
   313 			COMMAND		database1	Close
       
   314 			COMMAND		rsdp	Close
       
   315 			STORE_ACTIVE_SCHEDULER
       
   316 	END_TEST_BLOCK
       
   317 
       
   318 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1004
       
   319 
       
   320 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1005
       
   321 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1005
       
   322 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueString
       
   323 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   324 //!								Uses API elements: 	NewStringL() and DoesIntFit() from CSdpAttrValueString
       
   325 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
   326 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
   327 //! @SYMTestActions				1. Create a CSdpAttrValueString object and verify if the attribute can be stored in an integer value.
       
   328 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
   329 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
   330 //!								4. Create a new service record, with a single service class, in the SDP database.
       
   331 //!								   Verify the resulting err code is KErrNone.
       
   332 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   333 //!								   Verify the resulting err code is KErrNone.
       
   334 //!								6. Clean the database
       
   335 //! @SYMTestStatus				Implemented
       
   336 //! @SYMTestPriority			Low
       
   337 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   338 //! @SYMTestType				CIT
       
   339 
       
   340 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   341 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
   342 			SHARED_ACTIVE_SCHEDULER
       
   343 			CREATE_OBJECT	RSdpDatabase	database1	
       
   344 			CREATE_OBJECT	RSdp	rsdp	
       
   345 			CREATE_OBJECT	CSdpAttrValueString	attrValueString	
       
   346 			COMMAND		attrValueString	NewStringL		BTSDP-Lists-PublicApi-Passive-1005-0001command2NewStringL
       
   347 			COMMAND		attrValueString	DoesIntFit		BTSDP-Lists-PublicApi-Passive-1005-0001command3DoesIntFit
       
   348 			COMMAND		rsdp	Constructor
       
   349 			COMMAND		rsdp	Connect
       
   350 			OUTSTANDING
       
   351 			COMMAND		database1	Constructor
       
   352 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1005-0001command9Open
       
   353 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1005-0001command10CreateServiceRecordL
       
   354 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1005-0001command11UpdateAttributeL
       
   355 			STORE	database1	
       
   356 			STORE	rsdp	
       
   357 			STORE_ACTIVE_SCHEDULER
       
   358 	END_TEST_BLOCK
       
   359 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   360 
       
   361 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   362 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   363 
       
   364 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
   365 			SHARED_ACTIVE_SCHEDULER
       
   366 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   367 			RESTORE_OBJECT	RSdp	rsdp	
       
   368 			COMMAND		database1	DeleteRecordL
       
   369 			COMMAND		database1	Close
       
   370 			COMMAND		rsdp	Close
       
   371 			STORE_ACTIVE_SCHEDULER
       
   372 	END_TEST_BLOCK
       
   373 
       
   374 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1005
       
   375 
       
   376 
       
   377 // ****************************************************************************
       
   378 // Database side - CSdpAttrVAlueDES API tests
       
   379 // ****************************************************************************	
       
   380 
       
   381 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1006
       
   382 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1006
       
   383 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrVAlueDES
       
   384 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   385 //!								Uses API elements: 	NewDESL() and DataSize() from CSdpAttrValueDES
       
   386 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
   387 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
   388 //! @SYMTestActions				1. Create a CSdpAttrValueDES list and verify its sizes.
       
   389 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
   390 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
   391 //!								4. Create a new service record, with a single service class, in the SDP database.
       
   392 //!								   Verify the resulting err code is KErrNone.
       
   393 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   394 //!								   Verify the resulting err code is KErrNone.
       
   395 //!								6. Clean the database
       
   396 //! @SYMTestStatus				Implemented
       
   397 //! @SYMTestPriority			Low
       
   398 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   399 //! @SYMTestType				CIT
       
   400 
       
   401 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   402 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
   403 			SHARED_ACTIVE_SCHEDULER
       
   404 			CREATE_OBJECT	RSdpDatabase	database1	
       
   405 			CREATE_OBJECT	RSdp	rsdp	
       
   406 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES1	
       
   407 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES2	
       
   408 			COMMAND		attrValueDES1	NewDESL
       
   409 			COMMAND		attrValueDES2	NewDESL		BTSDP-Lists-PublicApi-Passive-1006-0001command4NewDESL
       
   410 			COMMAND		attrValueDES2	DataSize		BTSDP-Lists-PublicApi-Passive-1006-0001command5DataSize
       
   411 			COMMAND		rsdp	Constructor
       
   412 			COMMAND		rsdp	Connect
       
   413 			OUTSTANDING
       
   414 			COMMAND		database1	Constructor
       
   415 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1006-0001command11Open
       
   416 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1006-0001command12CreateServiceRecordL
       
   417 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1006-0001command13UpdateAttributeL
       
   418 			STORE	database1	
       
   419 			STORE	rsdp	
       
   420 			STORE_ACTIVE_SCHEDULER
       
   421 	END_TEST_BLOCK
       
   422 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   423 
       
   424 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   425 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   426 
       
   427 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
   428 			SHARED_ACTIVE_SCHEDULER
       
   429 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   430 			RESTORE_OBJECT	RSdp	rsdp	
       
   431 			COMMAND		database1	DeleteRecordL
       
   432 			COMMAND		database1	Close
       
   433 			COMMAND		rsdp	Close
       
   434 			STORE_ACTIVE_SCHEDULER
       
   435 	END_TEST_BLOCK
       
   436 
       
   437 
       
   438 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1006
       
   439 
       
   440 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1007
       
   441 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1007
       
   442 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrVAlueDES
       
   443 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   444 //!								Uses API elements: 	NewDESL() and DataSize() from CSdpAttrValueDES
       
   445 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
   446 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
   447 //! @SYMTestActions				1. Create a CSdpAttrValueDES list and verify its sizes.
       
   448 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
   449 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
   450 //!								4. Create a new service record, with a single service class, in the SDP database.
       
   451 //!								   Verify the resulting err code is KErrNone.
       
   452 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   453 //!								   Verify the resulting err code is KErrNone.
       
   454 //!								6. Clean the database
       
   455 //! @SYMTestStatus				Implemented
       
   456 //! @SYMTestPriority			Low
       
   457 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   458 //! @SYMTestType				CIT
       
   459 
       
   460 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   461 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
   462 			SHARED_ACTIVE_SCHEDULER
       
   463 			CREATE_OBJECT	RSdpDatabase	database1	
       
   464 			CREATE_OBJECT	RSdp	rsdp	
       
   465 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
   466 			COMMAND		attrValueDES	NewDESL
       
   467 			COMMAND		attrValueDES	DataSize		BTSDP-Lists-PublicApi-Passive-1007-0001command3DataSize
       
   468 			COMMAND		rsdp	Constructor
       
   469 			COMMAND		rsdp	Connect
       
   470 			OUTSTANDING
       
   471 			COMMAND		database1	Constructor
       
   472 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1007-0001command9Open
       
   473 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1007-0001command10CreateServiceRecordL
       
   474 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1007-0001command11UpdateAttributeL
       
   475 			STORE	database1	
       
   476 			STORE	rsdp	
       
   477 			STORE_ACTIVE_SCHEDULER
       
   478 	END_TEST_BLOCK
       
   479 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   480 
       
   481 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   482 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   483 
       
   484 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
   485 			SHARED_ACTIVE_SCHEDULER
       
   486 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   487 			RESTORE_OBJECT	RSdp	rsdp	
       
   488 			COMMAND		database1	DeleteRecordL
       
   489 			COMMAND		database1	Close
       
   490 			COMMAND		rsdp	Close
       
   491 			STORE_ACTIVE_SCHEDULER
       
   492 	END_TEST_BLOCK
       
   493 
       
   494 
       
   495 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1007
       
   496 
       
   497 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1008
       
   498 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1008
       
   499 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrVAlueDES
       
   500 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   501 //!								Uses API elements: 	NewDESL(), StartListL(), BuildDEAL(), BuildBooleanL(), EndListL() and BuildDESL() from CSdpAttrValueDES
       
   502 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
   503 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
   504 //! @SYMTestActions				1. Create a CSdpAttrValueDES and add some elements in the list.
       
   505 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
   506 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
   507 //!								4. Create a new service record, with a single service class, in the SDP database.
       
   508 //!								   Verify the resulting err code is KErrNone.
       
   509 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   510 //!								   Verify the resulting err code is KErrNone.
       
   511 //!								6. Clean the database
       
   512 //! @SYMTestStatus				Implemented
       
   513 //! @SYMTestPriority			Low
       
   514 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   515 //! @SYMTestType				CIT
       
   516 
       
   517 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   518 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
   519 			SHARED_ACTIVE_SCHEDULER
       
   520 			CREATE_OBJECT	RSdpDatabase	database1	
       
   521 			CREATE_OBJECT	RSdp	rsdp	
       
   522 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
   523 			COMMAND		attrValueDES	NewDESL
       
   524 			COMMAND		attrValueDES	StartListL
       
   525 			COMMAND		attrValueDES	BuildDEAL
       
   526 			COMMAND		attrValueDES	StartListL
       
   527 			COMMAND		attrValueDES	BuildBooleanL		BTSDP-Lists-PublicApi-Passive-1008-0001command6BuildBooleanL
       
   528 			COMMAND		attrValueDES	EndListL
       
   529 			COMMAND		attrValueDES	BuildDESL
       
   530 			COMMAND		attrValueDES	StartListL
       
   531 			COMMAND		attrValueDES	BuildBooleanL		BTSDP-Lists-PublicApi-Passive-1008-0001command10BuildBooleanL
       
   532 			COMMAND		attrValueDES	EndListL
       
   533 			COMMAND		attrValueDES	EndListL
       
   534 			COMMAND		rsdp	Constructor
       
   535 			COMMAND		rsdp	Connect
       
   536 			OUTSTANDING
       
   537 			COMMAND		database1	Constructor
       
   538 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1008-0001command18Open
       
   539 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1008-0001command19CreateServiceRecordL
       
   540 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1008-0001command20UpdateAttributeL
       
   541 			STORE	database1	
       
   542 			STORE	rsdp	
       
   543 			STORE_ACTIVE_SCHEDULER
       
   544 	END_TEST_BLOCK
       
   545 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   546 
       
   547 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   548 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   549 
       
   550 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
   551 			SHARED_ACTIVE_SCHEDULER
       
   552 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   553 			RESTORE_OBJECT	RSdp	rsdp	
       
   554 			COMMAND		database1	DeleteRecordL
       
   555 			COMMAND		database1	Close
       
   556 			COMMAND		rsdp	Close
       
   557 			STORE_ACTIVE_SCHEDULER
       
   558 	END_TEST_BLOCK
       
   559 
       
   560 
       
   561 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1008
       
   562 
       
   563 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1009
       
   564 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1009
       
   565 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrVAlueDES
       
   566 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   567 //!								Uses API elements: 	NewDESL(), StartListL(), BuildDEAL(), BuildNilL(), BuildDESL(), BuildBooleanL(),
       
   568 //!													and EndListL() from CSdpAttrValueDES
       
   569 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
   570 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
   571 //! @SYMTestActions				1. Create a CSdpAttrValueDES and add some elements in the list.
       
   572 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
   573 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
   574 //!								4. Create a new service record, with a single service class, in the SDP database.
       
   575 //!								   Verify the resulting err code is KErrNone.
       
   576 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   577 //!								   Verify the resulting err code is KErrNone.
       
   578 //!								6. Clean the database
       
   579 //! @SYMTestStatus				Implemented
       
   580 //! @SYMTestPriority			Low
       
   581 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   582 //! @SYMTestType				CIT
       
   583 
       
   584 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   585 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
   586 			SHARED_ACTIVE_SCHEDULER
       
   587 			CREATE_OBJECT	RSdpDatabase	database1	
       
   588 			CREATE_OBJECT	RSdp	rsdp	
       
   589 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
   590 			COMMAND		attrValueDES	NewDESL
       
   591 			COMMAND		attrValueDES	StartListL
       
   592 			COMMAND		attrValueDES	BuildDEAL
       
   593 			COMMAND		attrValueDES	StartListL
       
   594 			COMMAND		attrValueDES	BuildNilL
       
   595 			COMMAND		attrValueDES	EndListL
       
   596 			COMMAND		attrValueDES	BuildDESL
       
   597 			COMMAND		attrValueDES	StartListL
       
   598 			COMMAND		attrValueDES	BuildBooleanL		BTSDP-Lists-PublicApi-Passive-1009-0001command10BuildBooleanL
       
   599 			COMMAND		attrValueDES	EndListL
       
   600 			COMMAND		attrValueDES	EndListL
       
   601 			COMMAND		rsdp	Constructor
       
   602 			COMMAND		rsdp	Connect
       
   603 			OUTSTANDING
       
   604 			COMMAND		database1	Constructor
       
   605 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1009-0001command18Open
       
   606 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1009-0001command19CreateServiceRecordL
       
   607 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1009-0001command20UpdateAttributeL
       
   608 			STORE	database1	
       
   609 			STORE	rsdp	
       
   610 			STORE_ACTIVE_SCHEDULER
       
   611 	END_TEST_BLOCK
       
   612 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   613 
       
   614 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   615 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   616 
       
   617 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
   618 			SHARED_ACTIVE_SCHEDULER
       
   619 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   620 			RESTORE_OBJECT	RSdp	rsdp	
       
   621 			COMMAND		database1	DeleteRecordL
       
   622 			COMMAND		database1	Close
       
   623 			COMMAND		rsdp	Close
       
   624 			STORE_ACTIVE_SCHEDULER
       
   625 	END_TEST_BLOCK
       
   626 
       
   627 
       
   628 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1009
       
   629 
       
   630 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1010
       
   631 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1010
       
   632 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrVAlueDES
       
   633 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   634 //!								Uses API elements: 	NewDESL() and StartListL(), BuildDEAL(), BuildBooleanL(), BuildNilL(), BuildStringL() 
       
   635 //!													and EndListL() from CSdpAttrValueDES
       
   636 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
   637 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
   638 //! @SYMTestActions				1. Create a CSdpAttrValueDES list.
       
   639 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
   640 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
   641 //!								4. Create a new service record, with a single service class, in the SDP database.
       
   642 //!								   Verify the resulting err code is KErrNone.
       
   643 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   644 //!								   Verify the resulting err code is KErrNone.
       
   645 //!								6. Add some elements in the list and update the record in the database.
       
   646 //!								7. Clean the database
       
   647 //! @SYMTestStatus				Implemented
       
   648 //! @SYMTestPriority			Low
       
   649 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   650 //! @SYMTestType				CIT
       
   651 
       
   652 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   653 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
   654 			SHARED_ACTIVE_SCHEDULER
       
   655 			CREATE_OBJECT	RSdpDatabase	database1	
       
   656 			CREATE_OBJECT	RSdp	rsdp	
       
   657 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
   658 			COMMAND		attrValueDES	NewDESL
       
   659 			COMMAND		rsdp	Constructor
       
   660 			COMMAND		rsdp	Connect
       
   661 			OUTSTANDING
       
   662 			COMMAND		database1	Constructor
       
   663 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1010-0001command8Open
       
   664 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1010-0001command9CreateServiceRecordL
       
   665 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1010-0001command10UpdateAttributeL
       
   666 			COMMAND		attrValueDES	StartListL
       
   667 			COMMAND		attrValueDES	BuildDEAL
       
   668 			COMMAND		attrValueDES	StartListL
       
   669 			COMMAND		attrValueDES	BuildBooleanL		BTSDP-Lists-PublicApi-Passive-1010-0001command15BuildBooleanL
       
   670 			COMMAND		attrValueDES	BuildNilL
       
   671 			COMMAND		attrValueDES	EndListL
       
   672 			COMMAND		attrValueDES	BuildDESL
       
   673 			COMMAND		attrValueDES	StartListL
       
   674 			COMMAND		attrValueDES	BuildStringL		BTSDP-Lists-PublicApi-Passive-1010-0001command20BuildStringL
       
   675 			COMMAND		attrValueDES	EndListL
       
   676 			COMMAND		attrValueDES	EndListL
       
   677 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1010-0001command24UpdateAttributeL
       
   678 			STORE	database1	
       
   679 			STORE	rsdp	
       
   680 			STORE_ACTIVE_SCHEDULER
       
   681 	END_TEST_BLOCK
       
   682 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   683 
       
   684 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   685 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   686 
       
   687 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
   688 			SHARED_ACTIVE_SCHEDULER
       
   689 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   690 			RESTORE_OBJECT	RSdp	rsdp	
       
   691 			COMMAND		database1	DeleteRecordL
       
   692 			COMMAND		database1	Close
       
   693 			COMMAND		rsdp	Close
       
   694 			STORE_ACTIVE_SCHEDULER
       
   695 	END_TEST_BLOCK
       
   696 
       
   697 
       
   698 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1010
       
   699 
       
   700 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1011
       
   701 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1011
       
   702 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrVAlueDES
       
   703 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   704 //!								Uses API elements: 	NewDESL(), StartListL(), BuildDESL(), BuildBooleanL(), BuildUUIDL(), EndListL() and DataSize() from CSdpAttrValueDES
       
   705 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
   706 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
   707 //! @SYMTestActions				1. Create a CSdpAttrValueDES and add some elements in the list. Verify the list sizes.
       
   708 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
   709 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
   710 //!								4. Create a new service record, with a single service class, in the SDP database.
       
   711 //!								   Verify the resulting err code is KErrNone.
       
   712 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   713 //!								   Verify the resulting err code is KErrNone.
       
   714 //!								6. Clean the database
       
   715 //! @SYMTestStatus				Implemented
       
   716 //! @SYMTestPriority			Low
       
   717 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   718 //! @SYMTestType				CIT
       
   719 
       
   720 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   721 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
   722 			SHARED_ACTIVE_SCHEDULER
       
   723 			CREATE_OBJECT	RSdpDatabase	database1	
       
   724 			CREATE_OBJECT	RSdp	rsdp	
       
   725 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
   726 			COMMAND		attrValueDES	NewDESL
       
   727 			COMMAND		attrValueDES	StartListL
       
   728 			COMMAND		attrValueDES	BuildDESL
       
   729 			COMMAND		attrValueDES	StartListL
       
   730 			COMMAND		attrValueDES	BuildBooleanL		BTSDP-Lists-PublicApi-Passive-1011-0001command6BuildBooleanL
       
   731 			COMMAND		attrValueDES	EndListL
       
   732 			COMMAND		attrValueDES	StartListL
       
   733 			COMMAND		attrValueDES	BuildDEAL
       
   734 			COMMAND		attrValueDES	StartListL
       
   735 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-Lists-PublicApi-Passive-1011-0001command11BuildUUIDL
       
   736 			COMMAND		attrValueDES	EndListL
       
   737 			COMMAND		attrValueDES	EndListL
       
   738 			COMMAND		attrValueDES	DataSize		BTSDP-Lists-PublicApi-Passive-1011-0001command14DataSize
       
   739 			COMMAND		rsdp	Constructor
       
   740 			COMMAND		rsdp	Connect
       
   741 			OUTSTANDING
       
   742 			COMMAND		database1	Constructor
       
   743 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1011-0001command20Open
       
   744 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1011-0001command21CreateServiceRecordL
       
   745 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1011-0001command22UpdateAttributeL
       
   746 			STORE	database1	
       
   747 			STORE	rsdp	
       
   748 			STORE_ACTIVE_SCHEDULER
       
   749 	END_TEST_BLOCK
       
   750 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   751 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   752 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   753 
       
   754 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
   755 			SHARED_ACTIVE_SCHEDULER
       
   756 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   757 			RESTORE_OBJECT	RSdp	rsdp	
       
   758 			COMMAND		database1	DeleteRecordL
       
   759 			COMMAND		database1	Close
       
   760 			COMMAND		rsdp	Close
       
   761 			STORE_ACTIVE_SCHEDULER
       
   762 	END_TEST_BLOCK
       
   763 
       
   764 
       
   765 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1011
       
   766 
       
   767 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1012
       
   768 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1012
       
   769 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueString and CSdpAttrVAlueDES
       
   770 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   771 //!								Uses API elements: 	NewDESL(), StartListL(), BuildDEAL(), BuildIntL(), BuildBooleanL() and EndListL() from CSdpAttrValueDES
       
   772 //!													NewStringL() from CSdpAttrValueString
       
   773 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
   774 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
   775 //! @SYMTestActions				1. Create a CSdpAttrValueString list and add some elements in the list.
       
   776 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
   777 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
   778 //!								4. Create a new service record, with a single service class, in the SDP database.
       
   779 //!								   Verify the resulting err code is KErrNone.
       
   780 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   781 //!								   Verify the resulting err code is KErrNone.
       
   782 //!								6. Clean the database
       
   783 //! @SYMTestStatus				Implemented
       
   784 //! @SYMTestPriority			Low
       
   785 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   786 //! @SYMTestType				CIT
       
   787 
       
   788 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   789 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
   790 			SHARED_ACTIVE_SCHEDULER
       
   791 			CREATE_OBJECT	RSdpDatabase	database1	
       
   792 			CREATE_OBJECT	RSdp	rsdp	
       
   793 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
   794 			COMMAND		attrValueDES	NewDESL
       
   795 			COMMAND		attrValueDES	StartListL
       
   796 			COMMAND		attrValueDES	BuildDEAL
       
   797 			COMMAND		attrValueDES	StartListL
       
   798 			COMMAND		attrValueDES	BuildIntL		BTSDP-Lists-PublicApi-Passive-1012-0001command6BuildIntL
       
   799 			COMMAND		attrValueDES	EndListL
       
   800 			COMMAND		attrValueDES	BuildDESL
       
   801 			COMMAND		attrValueDES	StartListL
       
   802 			COMMAND		attrValueDES	BuildBooleanL		BTSDP-Lists-PublicApi-Passive-1012-0001command10BuildBooleanL
       
   803 			COMMAND		attrValueDES	EndListL
       
   804 			COMMAND		attrValueDES	EndListL
       
   805 			COMMAND		rsdp	Constructor
       
   806 			COMMAND		rsdp	Connect
       
   807 			OUTSTANDING
       
   808 			COMMAND		database1	Constructor
       
   809 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1012-0001command18Open
       
   810 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1012-0001command19CreateServiceRecordL
       
   811 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1012-0001command20UpdateAttributeL
       
   812 			STORE	database1	
       
   813 			STORE	rsdp	
       
   814 			STORE_ACTIVE_SCHEDULER
       
   815 	END_TEST_BLOCK
       
   816 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   817 
       
   818 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   819 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   820 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
   821 			SHARED_ACTIVE_SCHEDULER
       
   822 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   823 			RESTORE_OBJECT	RSdp	rsdp	
       
   824 			COMMAND		database1	DeleteRecordL
       
   825 			COMMAND		database1	Close
       
   826 			COMMAND		rsdp	Close
       
   827 			STORE_ACTIVE_SCHEDULER
       
   828 	END_TEST_BLOCK
       
   829 
       
   830 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1012
       
   831 
       
   832 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1013
       
   833 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1013
       
   834 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrVAlueDES
       
   835 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   836 //!								Uses API elements: 	NewDESL(), BuildDEAL(), StartListL(), BuildUintL() and EndListL() from CSdpAttrValueDES
       
   837 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
   838 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
   839 //! @SYMTestActions				1. Create a CSdpAttrValueDES and add some elements in the list.
       
   840 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
   841 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
   842 //!								4. Create a new service record, with a single service class, in the SDP database.
       
   843 //!								   Verify the resulting err code is KErrNone.
       
   844 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   845 //!								   Verify the resulting err code is KErrNone.
       
   846 //!								6. Clean the database
       
   847 //! @SYMTestStatus				Implemented
       
   848 //! @SYMTestPriority			Low
       
   849 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   850 //! @SYMTestType				CIT
       
   851 
       
   852 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   853 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
   854 			SHARED_ACTIVE_SCHEDULER
       
   855 			CREATE_OBJECT	RSdpDatabase	database1	
       
   856 			CREATE_OBJECT	RSdp	rsdp	
       
   857 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
   858 			COMMAND		attrValueDES	NewDESL
       
   859 			COMMAND		rsdp	Constructor
       
   860 			COMMAND		rsdp	Connect
       
   861 			OUTSTANDING
       
   862 			COMMAND		database1	Constructor
       
   863 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1013-0001command8Open
       
   864 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1013-0001command9CreateServiceRecordL
       
   865 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1013-0001command10UpdateAttributeL
       
   866 			COMMAND		attrValueDES	StartListL
       
   867 			COMMAND		attrValueDES	BuildDEAL
       
   868 			COMMAND		attrValueDES	StartListL
       
   869 			COMMAND		attrValueDES	BuildUintL		BTSDP-Lists-PublicApi-Passive-1013-0001command15BuildUintL
       
   870 			COMMAND		attrValueDES	EndListL
       
   871 			COMMAND		attrValueDES	EndListL
       
   872 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1013-0001command19UpdateAttributeL
       
   873 			STORE	database1	
       
   874 			STORE	rsdp	
       
   875 			STORE_ACTIVE_SCHEDULER
       
   876 	END_TEST_BLOCK
       
   877 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   878 
       
   879 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   880 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   881 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
   882 			SHARED_ACTIVE_SCHEDULER
       
   883 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   884 			RESTORE_OBJECT	RSdp	rsdp	
       
   885 			COMMAND		database1	DeleteRecordL
       
   886 			COMMAND		database1	Close
       
   887 			COMMAND		rsdp	Close
       
   888 			STORE_ACTIVE_SCHEDULER
       
   889 	END_TEST_BLOCK
       
   890 
       
   891 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1013
       
   892 
       
   893 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1014
       
   894 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1014
       
   895 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrVAlueDES and CSdpAttrValueDEA
       
   896 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   897 //!								Uses API elements: 	NewDESL(), StartListL(), BuildDEAL(), BuildURLL() and EndListL() from CSdpAttrValueDES
       
   898 //!													NewDEAL() and BuildStringL() from CSdpAttrValueDEA
       
   899 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
   900 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
   901 //! @SYMTestActions				1. Create a CSdpAttrValueDEA and add some elements in the list.
       
   902 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
   903 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
   904 //!								4. Create a new service record, with a single service class, in the SDP database.
       
   905 //!								   Verify the resulting err code is KErrNone.
       
   906 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   907 //!								   Verify the resulting err code is KErrNone.
       
   908 //!								6. Clean the database
       
   909 //! @SYMTestStatus				Implemented
       
   910 //! @SYMTestPriority			Low
       
   911 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   912 //! @SYMTestType				CIT
       
   913 
       
   914 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   915 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
   916 			SHARED_ACTIVE_SCHEDULER
       
   917 			CREATE_OBJECT	RSdpDatabase	database1	
       
   918 			CREATE_OBJECT	RSdp	rsdp	
       
   919 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
   920 			COMMAND		attrValueDES	NewDESL
       
   921 			COMMAND		attrValueDES	StartListL
       
   922 			COMMAND		attrValueDES	BuildDEAL
       
   923 			COMMAND		attrValueDES	StartListL
       
   924 			COMMAND		attrValueDES	BuildURLL		BTSDP-Lists-PublicApi-Passive-1014-0001command6BuildURLL
       
   925 			COMMAND		attrValueDES	BuildURLL		BTSDP-Lists-PublicApi-Passive-1014-0001command7BuildURLL
       
   926 			COMMAND		attrValueDES	EndListL
       
   927 			COMMAND		attrValueDES	EndListL
       
   928 			COMMAND		rsdp	Constructor
       
   929 			COMMAND		rsdp	Connect
       
   930 			OUTSTANDING
       
   931 			COMMAND		database1	Constructor
       
   932 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1014-0001command15Open
       
   933 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1014-0001command16CreateServiceRecordL
       
   934 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1014-0001command17UpdateAttributeL
       
   935 			STORE	database1	
       
   936 			STORE	rsdp	
       
   937 			STORE_ACTIVE_SCHEDULER
       
   938 	END_TEST_BLOCK
       
   939 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   940 
       
   941 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   942 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   943 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
   944 			SHARED_ACTIVE_SCHEDULER
       
   945 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   946 			RESTORE_OBJECT	RSdp	rsdp	
       
   947 			COMMAND		database1	DeleteRecordL
       
   948 			COMMAND		database1	Close
       
   949 			COMMAND		rsdp	Close
       
   950 			STORE_ACTIVE_SCHEDULER
       
   951 	END_TEST_BLOCK
       
   952 
       
   953 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1014
       
   954 
       
   955 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1015
       
   956 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1015
       
   957 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrVAlueDES
       
   958 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   959 //!								Uses API elements: 	NewDESL(), StartListL(), BuildDESL(), BuildBooleanL(), BuildNilL(), BuildUUIDL(),
       
   960 //!													BuildStringL(), BuildIntL(), BuildURLL(), BuildIntL() and EndListL() from CSdpAttrValueDES
       
   961 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
   962 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
   963 //! @SYMTestActions				1. Create a CSdpAttrValueDES and add some elements in the list.
       
   964 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
   965 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
   966 //!								4. Create a new service record, with a single service class, in the SDP database.
       
   967 //!								   Verify the resulting err code is KErrNone.
       
   968 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   969 //!								   Verify the resulting err code is KErrNone.
       
   970 //!								6. Clean the database
       
   971 //! @SYMTestStatus				Implemented
       
   972 //! @SYMTestPriority			Low
       
   973 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   974 //! @SYMTestType				CIT
       
   975 
       
   976 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   977 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
   978 			SHARED_ACTIVE_SCHEDULER
       
   979 			CREATE_OBJECT	RSdpDatabase	database1	
       
   980 			CREATE_OBJECT	RSdp	rsdp	
       
   981 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
   982 			COMMAND		attrValueDES	NewDESL
       
   983 			COMMAND		attrValueDES	StartListL
       
   984 			COMMAND		attrValueDES	BuildDESL
       
   985 			COMMAND		attrValueDES	StartListL
       
   986 			COMMAND		attrValueDES	BuildBooleanL		BTSDP-Lists-PublicApi-Passive-1015-0001command6BuildBooleanL
       
   987 			COMMAND		attrValueDES	BuildNilL
       
   988 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-Lists-PublicApi-Passive-1015-0001command8BuildUUIDL
       
   989 			COMMAND		attrValueDES	BuildStringL		BTSDP-Lists-PublicApi-Passive-1015-0001command9BuildStringL
       
   990 			COMMAND		attrValueDES	BuildIntL		BTSDP-Lists-PublicApi-Passive-1015-0001command10BuildIntL
       
   991 			COMMAND		attrValueDES	BuildURLL		BTSDP-Lists-PublicApi-Passive-1015-0001command11BuildURLL
       
   992 			COMMAND		attrValueDES	BuildUintL		BTSDP-Lists-PublicApi-Passive-1015-0001command12BuildUintL
       
   993 			COMMAND		attrValueDES	EndListL
       
   994 			COMMAND		attrValueDES	EndListL
       
   995 			COMMAND		rsdp	Constructor
       
   996 			COMMAND		rsdp	Connect
       
   997 			OUTSTANDING
       
   998 			COMMAND		database1	Constructor
       
   999 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1015-0001command20Open
       
  1000 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1015-0001command21CreateServiceRecordL
       
  1001 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1015-0001command22UpdateAttributeL
       
  1002 			STORE	database1	
       
  1003 			STORE	rsdp	
       
  1004 			STORE_ACTIVE_SCHEDULER
       
  1005 	END_TEST_BLOCK
       
  1006 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1007 
       
  1008 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1009 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1010 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1011 			SHARED_ACTIVE_SCHEDULER
       
  1012 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1013 			RESTORE_OBJECT	RSdp	rsdp	
       
  1014 			COMMAND		database1	DeleteRecordL
       
  1015 			COMMAND		database1	Close
       
  1016 			COMMAND		rsdp	Close
       
  1017 			STORE_ACTIVE_SCHEDULER
       
  1018 	END_TEST_BLOCK
       
  1019 
       
  1020 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1015
       
  1021 
       
  1022 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1016
       
  1023 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1016
       
  1024 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrVAlueDES
       
  1025 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1026 //!								Uses API elements: 	NewDESL() and BuildEncodedL() from CSdpAttrValueDES
       
  1027 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  1028 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  1029 //! @SYMTestActions				1. Create a CSdpAttrValueDES and add an encoded element in the list.
       
  1030 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  1031 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1032 //!								4. Create a new service record, with a single service class, in the SDP database.
       
  1033 //!								   Verify the resulting err code is KErrNone.
       
  1034 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1035 //!								   Verify the resulting err code is KErrNone.
       
  1036 //!								6. Create a CSdpAttrValueDES and add an unsigned integer element in the list.
       
  1037 //!								7. Add the CSdpAttrValueDES to the database.
       
  1038 //!								8. Clean the database
       
  1039 //! @SYMTestStatus				Implemented
       
  1040 //! @SYMTestPriority			Low
       
  1041 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1042 //! @SYMTestType				CIT
       
  1043 
       
  1044 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1045 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1046 			SHARED_ACTIVE_SCHEDULER
       
  1047 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1048 			CREATE_OBJECT	RSdp	rsdp	
       
  1049 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES1	
       
  1050 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES2	
       
  1051 			COMMAND		attrValueDES1	NewDESL
       
  1052 			COMMAND		attrValueDES2	NewDESL		BTSDP-Lists-PublicApi-Passive-1016-0001command4NewDESL
       
  1053 			COMMAND		attrValueDES2	BuildEncodedL		BTSDP-Lists-PublicApi-Passive-1016-0001command5BuildEncodedL
       
  1054 			COMMAND		rsdp	Constructor
       
  1055 			COMMAND		rsdp	Connect
       
  1056 			OUTSTANDING
       
  1057 			COMMAND		database1	Constructor
       
  1058 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1016-0001command11Open
       
  1059 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1016-0001command12CreateServiceRecordL
       
  1060 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1016-0001command13UpdateAttributeL
       
  1061 			STORE	database1	
       
  1062 			STORE	rsdp	
       
  1063 			STORE_ACTIVE_SCHEDULER
       
  1064 	END_TEST_BLOCK
       
  1065 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1066 
       
  1067 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1068 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1069 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1070 			SHARED_ACTIVE_SCHEDULER
       
  1071 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1072 			RESTORE_OBJECT	RSdp	rsdp	
       
  1073 			COMMAND		database1	DeleteRecordL
       
  1074 			COMMAND		database1	Close
       
  1075 			COMMAND		rsdp	Close
       
  1076 			STORE_ACTIVE_SCHEDULER
       
  1077 	END_TEST_BLOCK
       
  1078 
       
  1079 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1016
       
  1080 
       
  1081 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1017
       
  1082 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1017
       
  1083 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrVAlueDES
       
  1084 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1085 //!								Uses API elements: 	NewDESL(), StartListL(), BuildDEAL(), BuildNilL(), BuildStringL(), BuildUUIDL(), BuildIntL() and EndListL() 
       
  1086 //!													from CSdpAttrValueDES
       
  1087 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  1088 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  1089 //! @SYMTestActions				1. Create a CSdpAttrValueDES and add some elements in the list.
       
  1090 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  1091 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1092 //!								4. Create a new service record, with a single service class, in the SDP database.
       
  1093 //!								   Verify the resulting err code is KErrNone.
       
  1094 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1095 //!								   Verify the resulting err code is KErrNone.
       
  1096 //!								6. Create a CSdpAttrValueDES and add a signed integer element in the list.
       
  1097 //!								8. Clean the database
       
  1098 //! @SYMTestStatus				Implemented
       
  1099 //! @SYMTestPriority			Low
       
  1100 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1101 //! @SYMTestType				CIT
       
  1102 
       
  1103 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1104 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1105 			SHARED_ACTIVE_SCHEDULER
       
  1106 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1107 			CREATE_OBJECT	RSdp	rsdp	
       
  1108 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  1109 			COMMAND		attrValueDES	NewDESL
       
  1110 			COMMAND		attrValueDES	StartListL
       
  1111 			COMMAND		attrValueDES	BuildDEAL
       
  1112 			COMMAND		attrValueDES	StartListL
       
  1113 			COMMAND		attrValueDES	BuildNilL
       
  1114 			COMMAND		attrValueDES	BuildStringL		BTSDP-Lists-PublicApi-Passive-1017-0001command7BuildStringL
       
  1115 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-Lists-PublicApi-Passive-1017-0001command8BuildUUIDL
       
  1116 			COMMAND		attrValueDES	BuildIntL		BTSDP-Lists-PublicApi-Passive-1017-0001command9BuildIntL
       
  1117 			COMMAND		attrValueDES	EndListL
       
  1118 			COMMAND		attrValueDES	EndListL
       
  1119 			COMMAND		rsdp	Constructor
       
  1120 			COMMAND		rsdp	Connect
       
  1121 			OUTSTANDING
       
  1122 			COMMAND		database1	Constructor
       
  1123 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1017-0001command17Open
       
  1124 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1017-0001command18CreateServiceRecordL
       
  1125 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1017-0001command19UpdateAttributeL
       
  1126 			STORE	database1	
       
  1127 			STORE	rsdp	
       
  1128 			STORE_ACTIVE_SCHEDULER
       
  1129 	END_TEST_BLOCK
       
  1130 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1131 
       
  1132 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1133 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1134 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1135 			SHARED_ACTIVE_SCHEDULER
       
  1136 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1137 			RESTORE_OBJECT	RSdp	rsdp	
       
  1138 			COMMAND		database1	DeleteRecordL
       
  1139 			COMMAND		database1	Close
       
  1140 			COMMAND		rsdp	Close
       
  1141 			STORE_ACTIVE_SCHEDULER
       
  1142 	END_TEST_BLOCK
       
  1143 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1017
       
  1144 
       
  1145 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1018
       
  1146 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1018
       
  1147 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrVAlueDES
       
  1148 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1149 //!								Uses API elements: 	NewDESL() and BuildUnknownL() from CSdpAttrValueDES
       
  1150 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  1151 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  1152 //! @SYMTestActions				1. Create a CSdpAttrValueDES and add a user-defined element in the list.
       
  1153 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  1154 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1155 //!								4. Create a new service record, with a single service class, in the SDP database.
       
  1156 //!								   Verify the resulting err code is KErrNone.
       
  1157 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1158 //!								   Verify the resulting err code is KErrNone.
       
  1159 //!								6. Clean the database
       
  1160 //! @SYMTestStatus				Implemented
       
  1161 //! @SYMTestPriority			Low
       
  1162 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1163 //! @SYMTestType				CIT
       
  1164 
       
  1165 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1166 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1167 			SHARED_ACTIVE_SCHEDULER
       
  1168 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1169 			CREATE_OBJECT	RSdp	rsdp	
       
  1170 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES1	
       
  1171 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES2	
       
  1172 			COMMAND		attrValueDES1	NewDESL
       
  1173 			COMMAND		attrValueDES2	NewDESL		BTSDP-Lists-PublicApi-Passive-1018-0001command4NewDESL
       
  1174 			COMMAND		attrValueDES2	BuildUnknownL		BTSDP-Lists-PublicApi-Passive-1018-0001command5BuildUnknownL
       
  1175 			COMMAND		rsdp	Constructor
       
  1176 			COMMAND		rsdp	Connect
       
  1177 			OUTSTANDING
       
  1178 			COMMAND		database1	Constructor
       
  1179 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1018-0001command11Open
       
  1180 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1018-0001command12CreateServiceRecordL
       
  1181 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1018-0001command13UpdateAttributeL
       
  1182 			STORE	database1	
       
  1183 			STORE	rsdp	
       
  1184 			STORE_ACTIVE_SCHEDULER
       
  1185 	END_TEST_BLOCK
       
  1186 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1187 
       
  1188 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1189 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1190 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1191 			SHARED_ACTIVE_SCHEDULER
       
  1192 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1193 			RESTORE_OBJECT	RSdp	rsdp	
       
  1194 			COMMAND		database1	DeleteRecordL
       
  1195 			COMMAND		database1	Close
       
  1196 			COMMAND		rsdp	Close
       
  1197 			STORE_ACTIVE_SCHEDULER
       
  1198 	END_TEST_BLOCK
       
  1199 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1018
       
  1200 
       
  1201 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1019
       
  1202 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1019
       
  1203 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrVAlueDES
       
  1204 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1205 //!								Uses API elements: 	NewDESL(), DataSize(), Type() and AppendValueL() from CSdpAttrValueDES
       
  1206 //!													NewUintL() from CSdpAttrValueUint
       
  1207 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  1208 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  1209 //! @SYMTestActions				1. Create a CSdpAttrValueDES list and add some elements in the list. Verify the list type and sizes.
       
  1210 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  1211 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1212 //!								4. Create a new service record, with a single service class, in the SDP database.
       
  1213 //!								   Verify the resulting err code is KErrNone.
       
  1214 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1215 //!								   Verify the resulting err code is KErrNone.
       
  1216 //!								6. Clean the database
       
  1217 //! @SYMTestStatus				Implemented
       
  1218 //! @SYMTestPriority			Low
       
  1219 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1220 //! @SYMTestType				CIT
       
  1221 
       
  1222 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1223 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1224 			SHARED_ACTIVE_SCHEDULER
       
  1225 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1226 			CREATE_OBJECT	RSdp	rsdp	
       
  1227 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES1	
       
  1228 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES2	
       
  1229 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint	
       
  1230 			COMMAND		attrValueUint	NewUintL		BTSDP-Lists-PublicApi-Passive-1019-0001command2NewUintL
       
  1231 			COMMAND		attrValueDES1	NewDESL
       
  1232 			COMMAND		attrValueDES2	NewDESL		BTSDP-Lists-PublicApi-Passive-1019-0001command6NewDESL
       
  1233 			COMMAND		attrValueDES2	AppendValueL		BTSDP-Lists-PublicApi-Passive-1019-0001command7AppendValueL
       
  1234 			COMMAND		attrValueDES2	Type		BTSDP-Lists-PublicApi-Passive-1019-0001command8Type
       
  1235 			COMMAND		attrValueDES2	DataSize		BTSDP-Lists-PublicApi-Passive-1019-0001command9DataSize
       
  1236 			COMMAND		rsdp	Constructor
       
  1237 			COMMAND		rsdp	Connect
       
  1238 			OUTSTANDING
       
  1239 			COMMAND		database1	Constructor
       
  1240 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1019-0001command15Open
       
  1241 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1019-0001command16CreateServiceRecordL
       
  1242 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1019-0001command17UpdateAttributeL
       
  1243 			STORE	database1	
       
  1244 			STORE	rsdp	
       
  1245 			STORE_ACTIVE_SCHEDULER
       
  1246 	END_TEST_BLOCK
       
  1247 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1248 
       
  1249 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1250 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1251 
       
  1252 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1253 			SHARED_ACTIVE_SCHEDULER
       
  1254 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1255 			RESTORE_OBJECT	RSdp	rsdp	
       
  1256 			COMMAND		database1	DeleteRecordL
       
  1257 			COMMAND		database1	Close
       
  1258 			COMMAND		rsdp	Close
       
  1259 			STORE_ACTIVE_SCHEDULER
       
  1260 	END_TEST_BLOCK
       
  1261 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1019
       
  1262 
       
  1263 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1020
       
  1264 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1020
       
  1265 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrVAlueDES
       
  1266 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1267 //!								Uses API elements: 	NewDESL(), BuildDESL(), StartListL(), BuildBooleanL(), BuildStringL(), BuildURLL(), BuildNilL(),
       
  1268 //!													BuildIntL(), BuildDEAL(), BuildUUIDL(), BuildUintL(), DataSize() and EndListL()from CSdpAttrValueDES
       
  1269 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  1270 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  1271 //! @SYMTestActions				1. Create a CSdpAttrValueDES and some elements in the list. Verify the list sizes.
       
  1272 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  1273 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1274 //!								4. Create a new service record, with a single service class, in the SDP database.
       
  1275 //!								   Verify the resulting err code is KErrNone.
       
  1276 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1277 //!								   Verify the resulting err code is KErrNone.
       
  1278 //!								6. Clean the database
       
  1279 //! @SYMTestStatus				Implemented
       
  1280 //! @SYMTestPriority			Low
       
  1281 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1282 //! @SYMTestType				CIT
       
  1283 
       
  1284 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1285 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1286 			SHARED_ACTIVE_SCHEDULER
       
  1287 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1288 			CREATE_OBJECT	RSdp	rsdp	
       
  1289 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  1290 			COMMAND		attrValueDES	NewDESL
       
  1291 			COMMAND		attrValueDES	StartListL
       
  1292 			COMMAND		attrValueDES	BuildDESL
       
  1293 			COMMAND		attrValueDES	StartListL
       
  1294 			COMMAND		attrValueDES	BuildBooleanL		BTSDP-Lists-PublicApi-Passive-1020-0001command6BuildBooleanL
       
  1295 			COMMAND		attrValueDES	BuildStringL		BTSDP-Lists-PublicApi-Passive-1020-0001command7BuildStringL
       
  1296 			COMMAND		attrValueDES	BuildNilL
       
  1297 			COMMAND		attrValueDES	BuildIntL		BTSDP-Lists-PublicApi-Passive-1020-0001command9BuildIntL
       
  1298 			COMMAND		attrValueDES	EndListL
       
  1299 			COMMAND		attrValueDES	StartListL
       
  1300 			COMMAND		attrValueDES	BuildDEAL
       
  1301 			COMMAND		attrValueDES	StartListL
       
  1302 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-Lists-PublicApi-Passive-1020-0001command14BuildUUIDL
       
  1303 			COMMAND		attrValueDES	BuildUintL		BTSDP-Lists-PublicApi-Passive-1020-0001command15BuildUintL
       
  1304 			COMMAND		attrValueDES	BuildURLL		BTSDP-Lists-PublicApi-Passive-1020-0001command16BuildURLL
       
  1305 			COMMAND		attrValueDES	EndListL
       
  1306 			COMMAND		attrValueDES	EndListL
       
  1307 			COMMAND		attrValueDES	DataSize		BTSDP-Lists-PublicApi-Passive-1020-0001command19DataSize
       
  1308 			COMMAND		rsdp	Constructor
       
  1309 			COMMAND		rsdp	Connect
       
  1310 			OUTSTANDING
       
  1311 			COMMAND		database1	Constructor
       
  1312 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1020-0001command25Open
       
  1313 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1020-0001command26CreateServiceRecordL
       
  1314 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1020-0001command27UpdateAttributeL
       
  1315 			STORE	database1	
       
  1316 			STORE	rsdp	
       
  1317 			STORE_ACTIVE_SCHEDULER
       
  1318 	END_TEST_BLOCK
       
  1319 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1320 
       
  1321 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1322 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1323 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1324 			SHARED_ACTIVE_SCHEDULER
       
  1325 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1326 			RESTORE_OBJECT	RSdp	rsdp	
       
  1327 			COMMAND		database1	DeleteRecordL
       
  1328 			COMMAND		database1	Close
       
  1329 			COMMAND		rsdp	Close
       
  1330 			STORE_ACTIVE_SCHEDULER
       
  1331 	END_TEST_BLOCK
       
  1332 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1020
       
  1333 
       
  1334 // ****************************************************************************
       
  1335 // Database side - CSdpAttrVAlueDEA API tests
       
  1336 // ****************************************************************************	
       
  1337 
       
  1338 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1021
       
  1339 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1021
       
  1340 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueDEA
       
  1341 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1342 //!								Uses API elements: 	NewDEAL() and DataSize() from CSdpAttrValueDEA
       
  1343 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  1344 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  1345 //! @SYMTestActions				1. Create a CSdpAttrValueDEA list and verify its sizes.
       
  1346 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  1347 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1348 //!								4. Create a new service record, with a single service class, in the SDP database.
       
  1349 //!								   Verify the resulting err code is KErrNone.
       
  1350 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1351 //!								   Verify the resulting err code is KErrNone.
       
  1352 //!								6. Clean the database
       
  1353 //! @SYMTestStatus				Implemented
       
  1354 //! @SYMTestPriority			Low
       
  1355 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1356 //! @SYMTestType				CIT
       
  1357 
       
  1358 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1359 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1360 			SHARED_ACTIVE_SCHEDULER
       
  1361 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1362 			CREATE_OBJECT	RSdp	rsdp	
       
  1363 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA1	
       
  1364 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA2	
       
  1365 			COMMAND		attrValueDEA1	NewDEAL
       
  1366 			COMMAND		attrValueDEA2	NewDEAL		BTSDP-Lists-PublicApi-Passive-1021-0001command4NewDEAL
       
  1367 			COMMAND		attrValueDEA2	DataSize		BTSDP-Lists-PublicApi-Passive-1021-0001command5DataSize
       
  1368 			COMMAND		rsdp	Constructor
       
  1369 			COMMAND		rsdp	Connect
       
  1370 			OUTSTANDING
       
  1371 			COMMAND		database1	Constructor
       
  1372 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1021-0001command11Open
       
  1373 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1021-0001command12CreateServiceRecordL
       
  1374 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1021-0001command13UpdateAttributeL
       
  1375 			STORE	database1	
       
  1376 			STORE	rsdp	
       
  1377 			STORE_ACTIVE_SCHEDULER
       
  1378 	END_TEST_BLOCK
       
  1379 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1380 
       
  1381 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1382 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1383 
       
  1384 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1385 			SHARED_ACTIVE_SCHEDULER
       
  1386 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1387 			RESTORE_OBJECT	RSdp	rsdp	
       
  1388 			COMMAND		database1	DeleteRecordL
       
  1389 			COMMAND		database1	Close
       
  1390 			COMMAND		rsdp	Close
       
  1391 			STORE_ACTIVE_SCHEDULER
       
  1392 	END_TEST_BLOCK
       
  1393 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1021
       
  1394 
       
  1395 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1022
       
  1396 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1022
       
  1397 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueDEA
       
  1398 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1399 //!								Uses API elements: 	NewDEAL() and DataSize() from CSdpAttrValueDEA
       
  1400 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  1401 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  1402 //! @SYMTestActions				1. Create a CSdpAttrValueDEA list and verify its sizes.
       
  1403 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  1404 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1405 //!								4. Create a new service record, with a single service class, in the SDP database.
       
  1406 //!								   Verify the resulting err code is KErrNone.
       
  1407 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1408 //!								   Verify the resulting err code is KErrNone.
       
  1409 //!								6. Clean the database
       
  1410 //! @SYMTestStatus				Implemented
       
  1411 //! @SYMTestPriority			Low
       
  1412 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1413 //! @SYMTestType				CIT
       
  1414 
       
  1415 
       
  1416 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1417 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1418 			SHARED_ACTIVE_SCHEDULER
       
  1419 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1420 			CREATE_OBJECT	RSdp	rsdp	
       
  1421 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
  1422 			COMMAND		attrValueDEA	NewDEAL
       
  1423 			COMMAND		attrValueDEA	DataSize		BTSDP-Lists-PublicApi-Passive-1022-0001command3DataSize
       
  1424 			COMMAND		rsdp	Constructor
       
  1425 			COMMAND		rsdp	Connect
       
  1426 			OUTSTANDING
       
  1427 			COMMAND		database1	Constructor
       
  1428 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1022-0001command9Open
       
  1429 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1022-0001command10CreateServiceRecordL
       
  1430 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1022-0001command11UpdateAttributeL
       
  1431 			STORE	database1	
       
  1432 			STORE	rsdp	
       
  1433 			STORE_ACTIVE_SCHEDULER
       
  1434 	END_TEST_BLOCK
       
  1435 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1436 
       
  1437 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1438 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1439 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1440 			SHARED_ACTIVE_SCHEDULER
       
  1441 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1442 			RESTORE_OBJECT	RSdp	rsdp	
       
  1443 			COMMAND		database1	DeleteRecordL
       
  1444 			COMMAND		database1	Close
       
  1445 			COMMAND		rsdp	Close
       
  1446 			STORE_ACTIVE_SCHEDULER
       
  1447 	END_TEST_BLOCK
       
  1448 
       
  1449 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1022
       
  1450 
       
  1451 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1023
       
  1452 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1023
       
  1453 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueDEA
       
  1454 //! @SYMAuthor					Symbio
       
  1455 //! @SYMCreationDate			05/12/2006
       
  1456 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1457 //!								Uses API elements: 	NewDEAL(), StartListL(), BuildDEAL(), BuildBooleanL(), EndListL() and BuildDESL() from CSdpAttrValueDEA
       
  1458 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  1459 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  1460 //! @SYMTestActions				1. Create a CSdpAttrValueDEA and add some elements in the list.
       
  1461 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  1462 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1463 //!								4. Create a new service record, with a single service class, in the SDP database.
       
  1464 //!								   Verify the resulting err code is KErrNone.
       
  1465 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1466 //!								   Verify the resulting err code is KErrNone.
       
  1467 //!								6. Clean the database
       
  1468 //! @SYMTestStatus				Implemented
       
  1469 //! @SYMTestPriority			Low
       
  1470 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1471 //! @SYMTestType				CIT
       
  1472 
       
  1473 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1474 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1475 			SHARED_ACTIVE_SCHEDULER
       
  1476 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1477 			CREATE_OBJECT	RSdp	rsdp	
       
  1478 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
  1479 			COMMAND		attrValueDEA	NewDEAL
       
  1480 			COMMAND		attrValueDEA	StartListL
       
  1481 			COMMAND		attrValueDEA	BuildDEAL
       
  1482 			COMMAND		attrValueDEA	StartListL
       
  1483 			COMMAND		attrValueDEA	BuildBooleanL		BTSDP-Lists-PublicApi-Passive-1023-0001command6BuildBooleanL
       
  1484 			COMMAND		attrValueDEA	EndListL
       
  1485 			COMMAND		attrValueDEA	BuildDESL
       
  1486 			COMMAND		attrValueDEA	StartListL
       
  1487 			COMMAND		attrValueDEA	BuildBooleanL		BTSDP-Lists-PublicApi-Passive-1023-0001command10BuildBooleanL
       
  1488 			COMMAND		attrValueDEA	EndListL
       
  1489 			COMMAND		attrValueDEA	EndListL
       
  1490 			COMMAND		rsdp	Constructor
       
  1491 			COMMAND		rsdp	Connect
       
  1492 			OUTSTANDING
       
  1493 			COMMAND		database1	Constructor
       
  1494 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1023-0001command18Open
       
  1495 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1023-0001command19CreateServiceRecordL
       
  1496 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1023-0001command20UpdateAttributeL
       
  1497 			STORE	database1	
       
  1498 			STORE	rsdp	
       
  1499 			STORE_ACTIVE_SCHEDULER
       
  1500 	END_TEST_BLOCK
       
  1501 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1502 
       
  1503 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1504 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1505 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1506 			SHARED_ACTIVE_SCHEDULER
       
  1507 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1508 			RESTORE_OBJECT	RSdp	rsdp	
       
  1509 			COMMAND		database1	DeleteRecordL
       
  1510 			COMMAND		database1	Close
       
  1511 			COMMAND		rsdp	Close
       
  1512 			STORE_ACTIVE_SCHEDULER
       
  1513 	END_TEST_BLOCK
       
  1514 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1023
       
  1515 
       
  1516 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1024
       
  1517 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1024
       
  1518 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueDEA
       
  1519 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1520 //!								Uses API elements: 	NewDEAL(), StartListL(), BuildDEAL(), BuildNilL(), BuildDESL(), BuildBooleanL(),
       
  1521 //!													and EndListL() from CSdpAttrValueDEA
       
  1522 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  1523 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  1524 //! @SYMTestActions				1. Create a CSdpAttrValueDEA and add some elements in the list.
       
  1525 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  1526 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1527 //!								4. Create a new service record, with a single service class, in the SDP database.
       
  1528 //!								   Verify the resulting err code is KErrNone.
       
  1529 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1530 //!								   Verify the resulting err code is KErrNone.
       
  1531 //!								6. Clean the database
       
  1532 //! @SYMTestStatus				Implemented
       
  1533 //! @SYMTestPriority			Low
       
  1534 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1535 //! @SYMTestType				CIT
       
  1536 
       
  1537 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1538 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1539 			SHARED_ACTIVE_SCHEDULER
       
  1540 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1541 			CREATE_OBJECT	RSdp	rsdp	
       
  1542 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
  1543 			COMMAND		attrValueDEA	NewDEAL
       
  1544 			COMMAND		attrValueDEA	StartListL
       
  1545 			COMMAND		attrValueDEA	BuildDEAL
       
  1546 			COMMAND		attrValueDEA	StartListL
       
  1547 			COMMAND		attrValueDEA	BuildNilL
       
  1548 			COMMAND		attrValueDEA	EndListL
       
  1549 			COMMAND		attrValueDEA	BuildDESL
       
  1550 			COMMAND		attrValueDEA	StartListL
       
  1551 			COMMAND		attrValueDEA	BuildBooleanL		BTSDP-Lists-PublicApi-Passive-1024-0001command10BuildBooleanL
       
  1552 			COMMAND		attrValueDEA	EndListL
       
  1553 			COMMAND		attrValueDEA	EndListL
       
  1554 			COMMAND		rsdp	Constructor
       
  1555 			COMMAND		rsdp	Connect
       
  1556 			OUTSTANDING
       
  1557 			COMMAND		database1	Constructor
       
  1558 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1024-0001command18Open
       
  1559 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1024-0001command19CreateServiceRecordL
       
  1560 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1024-0001command20UpdateAttributeL
       
  1561 			STORE	database1	
       
  1562 			STORE	rsdp	
       
  1563 			STORE_ACTIVE_SCHEDULER
       
  1564 	END_TEST_BLOCK
       
  1565 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1566 
       
  1567 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1568 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1569 
       
  1570 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1571 			SHARED_ACTIVE_SCHEDULER
       
  1572 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1573 			RESTORE_OBJECT	RSdp	rsdp	
       
  1574 			COMMAND		database1	DeleteRecordL
       
  1575 			COMMAND		database1	Close
       
  1576 			COMMAND		rsdp	Close
       
  1577 			STORE_ACTIVE_SCHEDULER
       
  1578 	END_TEST_BLOCK
       
  1579 
       
  1580 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1024
       
  1581 
       
  1582 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1025
       
  1583 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1025
       
  1584 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueDEA
       
  1585 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1586 //!								Uses API elements: 	NewDEAL() and StartListL(), BuildDEAL(), BuildBooleanL(), BuildNilL(), BuildStringL() 
       
  1587 //!													and EndListL() from CSdpAttrValueDEA
       
  1588 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  1589 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  1590 //! @SYMTestActions				1. Create a CSdpAttrValueDEA list.
       
  1591 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  1592 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1593 //!								4. Create a new service record, with a single service class, in the SDP database.
       
  1594 //!								   Verify the resulting err code is KErrNone.
       
  1595 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1596 //!								   Verify the resulting err code is KErrNone.
       
  1597 //!								6. Add some elements in the list and update the record in the database.
       
  1598 //!								7. Clean the database
       
  1599 //! @SYMTestStatus				Implemented
       
  1600 //! @SYMTestPriority			Low
       
  1601 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1602 //! @SYMTestType				CIT
       
  1603 
       
  1604 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1605 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1606 			SHARED_ACTIVE_SCHEDULER
       
  1607 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1608 			CREATE_OBJECT	RSdp	rsdp	
       
  1609 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
  1610 			COMMAND		attrValueDEA	NewDEAL
       
  1611 			COMMAND		rsdp	Constructor
       
  1612 			COMMAND		rsdp	Connect
       
  1613 			OUTSTANDING
       
  1614 			COMMAND		database1	Constructor
       
  1615 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1025-0001command8Open
       
  1616 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1025-0001command9CreateServiceRecordL
       
  1617 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1025-0001command10UpdateAttributeL
       
  1618 			COMMAND		attrValueDEA	StartListL
       
  1619 			COMMAND		attrValueDEA	BuildDEAL
       
  1620 			COMMAND		attrValueDEA	StartListL
       
  1621 			COMMAND		attrValueDEA	BuildBooleanL		BTSDP-Lists-PublicApi-Passive-1025-0001command15BuildBooleanL
       
  1622 			COMMAND		attrValueDEA	BuildNilL
       
  1623 			COMMAND		attrValueDEA	EndListL
       
  1624 			COMMAND		attrValueDEA	BuildDESL
       
  1625 			COMMAND		attrValueDEA	StartListL
       
  1626 			COMMAND		attrValueDEA	BuildStringL		BTSDP-Lists-PublicApi-Passive-1025-0001command20BuildStringL
       
  1627 			COMMAND		attrValueDEA	EndListL
       
  1628 			COMMAND		attrValueDEA	EndListL
       
  1629 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1025-0001command24UpdateAttributeL
       
  1630 			STORE	database1	
       
  1631 			STORE	rsdp	
       
  1632 			STORE_ACTIVE_SCHEDULER
       
  1633 	END_TEST_BLOCK
       
  1634 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1635 
       
  1636 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1637 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1638 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1639 			SHARED_ACTIVE_SCHEDULER
       
  1640 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1641 			RESTORE_OBJECT	RSdp	rsdp	
       
  1642 			COMMAND		database1	DeleteRecordL
       
  1643 			COMMAND		database1	Close
       
  1644 			COMMAND		rsdp	Close
       
  1645 			STORE_ACTIVE_SCHEDULER
       
  1646 	END_TEST_BLOCK
       
  1647 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1025
       
  1648 
       
  1649 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1026
       
  1650 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1026
       
  1651 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueDEA
       
  1652 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1653 //!								Uses API elements: 	NewDEAL(), StartListL(), BuildDESL(), BuildBooleanL(), BuildUUIDL(), EndListL() and DataSize() from CSdpAttrValueDEA
       
  1654 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  1655 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  1656 //! @SYMTestActions				1. Create a CSdpAttrValueDEA and add some elements in the list. Verify the list sizes.
       
  1657 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  1658 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1659 //!								4. Create a new service record, with a single service class, in the SDP database.
       
  1660 //!								   Verify the resulting err code is KErrNone.
       
  1661 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1662 //!								   Verify the resulting err code is KErrNone.
       
  1663 //!								6. Clean the database
       
  1664 //! @SYMTestStatus				Implemented
       
  1665 //! @SYMTestPriority			Low
       
  1666 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1667 //! @SYMTestType				CIT
       
  1668 
       
  1669 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1670 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1671 			SHARED_ACTIVE_SCHEDULER
       
  1672 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1673 			CREATE_OBJECT	RSdp	rsdp	
       
  1674 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
  1675 			COMMAND		attrValueDEA	NewDEAL
       
  1676 			COMMAND		attrValueDEA	StartListL
       
  1677 			COMMAND		attrValueDEA	BuildDESL
       
  1678 			COMMAND		attrValueDEA	StartListL
       
  1679 			COMMAND		attrValueDEA	BuildBooleanL		BTSDP-Lists-PublicApi-Passive-1026-0001command6BuildBooleanL
       
  1680 			COMMAND		attrValueDEA	EndListL
       
  1681 			COMMAND		attrValueDEA	StartListL
       
  1682 			COMMAND		attrValueDEA	BuildDEAL
       
  1683 			COMMAND		attrValueDEA	StartListL
       
  1684 			COMMAND		attrValueDEA	BuildUUIDL		BTSDP-Lists-PublicApi-Passive-1026-0001command11BuildUUIDL
       
  1685 			COMMAND		attrValueDEA	EndListL
       
  1686 			COMMAND		attrValueDEA	EndListL
       
  1687 			COMMAND		attrValueDEA	DataSize		BTSDP-Lists-PublicApi-Passive-1026-0001command14DataSize
       
  1688 			COMMAND		rsdp	Constructor
       
  1689 			COMMAND		rsdp	Connect
       
  1690 			OUTSTANDING
       
  1691 			COMMAND		database1	Constructor
       
  1692 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1026-0001command20Open
       
  1693 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1026-0001command21CreateServiceRecordL
       
  1694 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1026-0001command22UpdateAttributeL
       
  1695 			STORE	database1	
       
  1696 			STORE	rsdp	
       
  1697 			STORE_ACTIVE_SCHEDULER
       
  1698 	END_TEST_BLOCK
       
  1699 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1700 
       
  1701 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1702 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1703 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1704 			SHARED_ACTIVE_SCHEDULER
       
  1705 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1706 			RESTORE_OBJECT	RSdp	rsdp	
       
  1707 			COMMAND		database1	DeleteRecordL
       
  1708 			COMMAND		database1	Close
       
  1709 			COMMAND		rsdp	Close
       
  1710 			STORE_ACTIVE_SCHEDULER
       
  1711 	END_TEST_BLOCK
       
  1712 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1026
       
  1713 
       
  1714 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1027
       
  1715 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1027
       
  1716 //! @SYMAPI						RSdp, RSdpDatabase and CSdpAttrValueDEA
       
  1717 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1718 //!								Uses API elements: 	NewDEAL(), StartListL(), BuildDEAL(), BuildIntL(), BuildBooleanL() and EndListL() from CSdpAttrValueDEA
       
  1719 //!													NewStringL() from CSdpAttrValueString
       
  1720 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  1721 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  1722 //! @SYMTestActions				1. Create a CSdpAttrValueString list and add some elements in the list.
       
  1723 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  1724 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1725 //!								4. Create a new service record, with a single service class, in the SDP database.
       
  1726 //!								   Verify the resulting err code is KErrNone.
       
  1727 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1728 //!								   Verify the resulting err code is KErrNone.
       
  1729 //!								6. Clean the database
       
  1730 //! @SYMTestStatus				Implemented
       
  1731 //! @SYMTestPriority			Low
       
  1732 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1733 //! @SYMTestType				CIT
       
  1734 
       
  1735 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1736 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1737 			SHARED_ACTIVE_SCHEDULER
       
  1738 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1739 			CREATE_OBJECT	RSdp	rsdp	
       
  1740 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
  1741 			COMMAND		attrValueDEA	NewDEAL
       
  1742 			COMMAND		attrValueDEA	StartListL
       
  1743 			COMMAND		attrValueDEA	BuildDEAL
       
  1744 			COMMAND		attrValueDEA	StartListL
       
  1745 			COMMAND		attrValueDEA	BuildIntL		BTSDP-Lists-PublicApi-Passive-1027-0001command6BuildIntL
       
  1746 			COMMAND		attrValueDEA	EndListL
       
  1747 			COMMAND		attrValueDEA	BuildDESL
       
  1748 			COMMAND		attrValueDEA	StartListL
       
  1749 			COMMAND		attrValueDEA	BuildBooleanL		BTSDP-Lists-PublicApi-Passive-1027-0001command10BuildBooleanL
       
  1750 			COMMAND		attrValueDEA	EndListL
       
  1751 			COMMAND		attrValueDEA	EndListL
       
  1752 			COMMAND		rsdp	Constructor
       
  1753 			COMMAND		rsdp	Connect
       
  1754 			OUTSTANDING
       
  1755 			COMMAND		database1	Constructor
       
  1756 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1027-0001command18Open
       
  1757 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1027-0001command19CreateServiceRecordL
       
  1758 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1027-0001command20UpdateAttributeL
       
  1759 			STORE	database1	
       
  1760 			STORE	rsdp	
       
  1761 			STORE_ACTIVE_SCHEDULER
       
  1762 	END_TEST_BLOCK
       
  1763 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1764 
       
  1765 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1766 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1767 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1768 			SHARED_ACTIVE_SCHEDULER
       
  1769 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1770 			RESTORE_OBJECT	RSdp	rsdp	
       
  1771 			COMMAND		database1	DeleteRecordL
       
  1772 			COMMAND		database1	Close
       
  1773 			COMMAND		rsdp	Close
       
  1774 			STORE_ACTIVE_SCHEDULER
       
  1775 	END_TEST_BLOCK
       
  1776 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1027
       
  1777 
       
  1778 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1028
       
  1779 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1028
       
  1780 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueDEA
       
  1781 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1782 //!								Uses API elements: 	NewDEAL(), BuildDEAL(), StartListL(), BuildUintL() and EndListL() from CSdpAttrValueDEA
       
  1783 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  1784 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  1785 //! @SYMTestActions				1. Create a CSdpAttrValueDEA and add some elements in the list.
       
  1786 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  1787 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1788 //!								4. Create a new service record, with a single service class, in the SDP database.
       
  1789 //!								   Verify the resulting err code is KErrNone.
       
  1790 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1791 //!								   Verify the resulting err code is KErrNone.
       
  1792 //!								6. Clean the database
       
  1793 //! @SYMTestStatus				Implemented
       
  1794 //! @SYMTestPriority			Low
       
  1795 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1796 //! @SYMTestType				CIT
       
  1797 
       
  1798 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1799 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1800 			SHARED_ACTIVE_SCHEDULER
       
  1801 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1802 			CREATE_OBJECT	RSdp	rsdp	
       
  1803 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
  1804 			COMMAND		attrValueDEA	NewDEAL
       
  1805 			COMMAND		rsdp	Constructor
       
  1806 			COMMAND		rsdp	Connect
       
  1807 			OUTSTANDING
       
  1808 			COMMAND		database1	Constructor
       
  1809 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1028-0001command8Open
       
  1810 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1028-0001command9CreateServiceRecordL
       
  1811 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1028-0001command10UpdateAttributeL
       
  1812 			COMMAND		attrValueDEA	StartListL
       
  1813 			COMMAND		attrValueDEA	BuildDEAL
       
  1814 			COMMAND		attrValueDEA	StartListL
       
  1815 			COMMAND		attrValueDEA	BuildUintL		BTSDP-Lists-PublicApi-Passive-1028-0001command15BuildUintL
       
  1816 			COMMAND		attrValueDEA	EndListL
       
  1817 			COMMAND		attrValueDEA	EndListL
       
  1818 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1028-0001command19UpdateAttributeL
       
  1819 			STORE	database1	
       
  1820 			STORE	rsdp	
       
  1821 			STORE_ACTIVE_SCHEDULER
       
  1822 	END_TEST_BLOCK
       
  1823 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1824 
       
  1825 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1826 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1827 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1828 			SHARED_ACTIVE_SCHEDULER
       
  1829 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1830 			RESTORE_OBJECT	RSdp	rsdp	
       
  1831 			COMMAND		database1	DeleteRecordL
       
  1832 			COMMAND		database1	Close
       
  1833 			COMMAND		rsdp	Close
       
  1834 			STORE_ACTIVE_SCHEDULER
       
  1835 	END_TEST_BLOCK
       
  1836 
       
  1837 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1028
       
  1838 
       
  1839 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1029
       
  1840 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1029
       
  1841 //! @SYMAPI						RSdp, RSdpDatabase and CSdpAttrValueDEA
       
  1842 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1843 //!								Uses API elements: 	NewDEAL(), StartListL(), BuildDEAL(), BuildURLL() and EndListL() from CSdpAttrValueDEA
       
  1844 //!													NewDEAL() and BuildStringL() from CSdpAttrValueDEA
       
  1845 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  1846 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  1847 //! @SYMTestActions				1. Create a CSdpAttrValueDEA and add some elements in the list.
       
  1848 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  1849 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1850 //!								4. Create a new service record, with a single service class, in the SDP database.
       
  1851 //!								   Verify the resulting err code is KErrNone.
       
  1852 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1853 //!								   Verify the resulting err code is KErrNone.
       
  1854 //!								6. Clean the database
       
  1855 //! @SYMTestStatus				Implemented
       
  1856 //! @SYMTestPriority			Low
       
  1857 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1858 //! @SYMTestType				CIT
       
  1859 
       
  1860 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1861 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1862 			SHARED_ACTIVE_SCHEDULER
       
  1863 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1864 			CREATE_OBJECT	RSdp	rsdp	
       
  1865 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
  1866 			COMMAND		attrValueDEA	NewDEAL
       
  1867 			COMMAND		attrValueDEA	StartListL
       
  1868 			COMMAND		attrValueDEA	BuildDEAL
       
  1869 			COMMAND		attrValueDEA	StartListL
       
  1870 			COMMAND		attrValueDEA	BuildURLL		BTSDP-Lists-PublicApi-Passive-1029-0001command6BuildURLL
       
  1871 			COMMAND		attrValueDEA	BuildURLL		BTSDP-Lists-PublicApi-Passive-1029-0001command7BuildURLL
       
  1872 			COMMAND		attrValueDEA	EndListL
       
  1873 			COMMAND		attrValueDEA	EndListL
       
  1874 			COMMAND		rsdp	Constructor
       
  1875 			COMMAND		rsdp	Connect
       
  1876 			OUTSTANDING
       
  1877 			COMMAND		database1	Constructor
       
  1878 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1029-0001command15Open
       
  1879 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1029-0001command16CreateServiceRecordL
       
  1880 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1029-0001command17UpdateAttributeL
       
  1881 			STORE	database1	
       
  1882 			STORE	rsdp	
       
  1883 			STORE_ACTIVE_SCHEDULER
       
  1884 	END_TEST_BLOCK
       
  1885 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1886 
       
  1887 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1888 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1889 
       
  1890 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1891 			SHARED_ACTIVE_SCHEDULER
       
  1892 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1893 			RESTORE_OBJECT	RSdp	rsdp	
       
  1894 			COMMAND		database1	DeleteRecordL
       
  1895 			COMMAND		database1	Close
       
  1896 			COMMAND		rsdp	Close
       
  1897 			STORE_ACTIVE_SCHEDULER
       
  1898 	END_TEST_BLOCK
       
  1899 
       
  1900 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1029
       
  1901 
       
  1902 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1030
       
  1903 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1030
       
  1904 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueDEA
       
  1905 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1906 //!								Uses API elements: 	NewDEAL(), StartListL(), BuildDESL(), BuildBooleanL(), BuildNilL(), BuildUUIDL(),
       
  1907 //!													BuildStringL(), BuildIntL(), BuildURLL(), BuildIntL() and EndListL() from CSdpAttrValueDEA
       
  1908 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  1909 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  1910 //! @SYMTestActions				1. Create a CSdpAttrValueDEA and add some elements in the list.
       
  1911 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  1912 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1913 //!								4. Create a new service record, with a single service class, in the SDP database.
       
  1914 //!								   Verify the resulting err code is KErrNone.
       
  1915 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1916 //!								   Verify the resulting err code is KErrNone.
       
  1917 //!								6. Clean the database
       
  1918 //! @SYMTestStatus				Implemented
       
  1919 //! @SYMTestPriority			Low
       
  1920 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1921 //! @SYMTestType				CIT
       
  1922 
       
  1923 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1924 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1925 			SHARED_ACTIVE_SCHEDULER
       
  1926 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1927 			CREATE_OBJECT	RSdp	rsdp	
       
  1928 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
  1929 			COMMAND		attrValueDEA	NewDEAL
       
  1930 			COMMAND		attrValueDEA	StartListL
       
  1931 			COMMAND		attrValueDEA	BuildDESL
       
  1932 			COMMAND		attrValueDEA	StartListL
       
  1933 			COMMAND		attrValueDEA	BuildBooleanL		BTSDP-Lists-PublicApi-Passive-1030-0001command6BuildBooleanL
       
  1934 			COMMAND		attrValueDEA	BuildNilL
       
  1935 			COMMAND		attrValueDEA	BuildUUIDL		BTSDP-Lists-PublicApi-Passive-1030-0001command8BuildUUIDL
       
  1936 			COMMAND		attrValueDEA	BuildStringL		BTSDP-Lists-PublicApi-Passive-1030-0001command9BuildStringL
       
  1937 			COMMAND		attrValueDEA	BuildIntL		BTSDP-Lists-PublicApi-Passive-1030-0001command10BuildIntL
       
  1938 			COMMAND		attrValueDEA	BuildURLL		BTSDP-Lists-PublicApi-Passive-1030-0001command11BuildURLL
       
  1939 			COMMAND		attrValueDEA	BuildUintL		BTSDP-Lists-PublicApi-Passive-1030-0001command12BuildUintL
       
  1940 			COMMAND		attrValueDEA	EndListL
       
  1941 			COMMAND		attrValueDEA	EndListL
       
  1942 			COMMAND		rsdp	Constructor
       
  1943 			COMMAND		rsdp	Connect
       
  1944 			OUTSTANDING
       
  1945 			COMMAND		database1	Constructor
       
  1946 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1030-0001command20Open
       
  1947 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1030-0001command21CreateServiceRecordL
       
  1948 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1030-0001command22UpdateAttributeL
       
  1949 			STORE	database1	
       
  1950 			STORE	rsdp	
       
  1951 			STORE_ACTIVE_SCHEDULER
       
  1952 	END_TEST_BLOCK
       
  1953 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1954 
       
  1955 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1956 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1957 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1958 			SHARED_ACTIVE_SCHEDULER
       
  1959 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1960 			RESTORE_OBJECT	RSdp	rsdp	
       
  1961 			COMMAND		database1	DeleteRecordL
       
  1962 			COMMAND		database1	Close
       
  1963 			COMMAND		rsdp	Close
       
  1964 			STORE_ACTIVE_SCHEDULER
       
  1965 	END_TEST_BLOCK
       
  1966 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1030
       
  1967 
       
  1968 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1031
       
  1969 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1031
       
  1970 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueDEA
       
  1971 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1972 //!								Uses API elements: 	NewDEAL() and BuildEncodedL() from CSdpAttrValueDEA
       
  1973 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  1974 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  1975 //! @SYMTestActions				1. Create a CSdpAttrValueDEA and add an encoded element in the list.
       
  1976 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  1977 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1978 //!								4. Create a new service record, with a single service class, in the SDP database.
       
  1979 //!								   Verify the resulting err code is KErrNone.
       
  1980 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1981 //!								   Verify the resulting err code is KErrNone.
       
  1982 //!								6. Create a CSdpAttrValueDEA and add an unsigned integer element in the list.
       
  1983 //!								7. Add the CSdpAttrValueDEA to the database.
       
  1984 //!								8. Clean the database
       
  1985 //! @SYMTestStatus				Implemented
       
  1986 //! @SYMTestPriority			Low
       
  1987 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1988 //! @SYMTestType				CIT
       
  1989 
       
  1990 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1991 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  1992 			SHARED_ACTIVE_SCHEDULER
       
  1993 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1994 			CREATE_OBJECT	RSdp	rsdp	
       
  1995 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA1	
       
  1996 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA2	
       
  1997 			COMMAND		attrValueDEA1	NewDEAL
       
  1998 			COMMAND		attrValueDEA2	NewDEAL		BTSDP-Lists-PublicApi-Passive-1031-0001command4NewDEAL
       
  1999 			COMMAND		attrValueDEA2	BuildEncodedL		BTSDP-Lists-PublicApi-Passive-1031-0001command5BuildEncodedL
       
  2000 			COMMAND		rsdp	Constructor
       
  2001 			COMMAND		rsdp	Connect
       
  2002 			OUTSTANDING
       
  2003 			COMMAND		database1	Constructor
       
  2004 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1031-0001command11Open
       
  2005 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1031-0001command12CreateServiceRecordL
       
  2006 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1031-0001command13UpdateAttributeL
       
  2007 			STORE	database1	
       
  2008 			STORE	rsdp	
       
  2009 			STORE_ACTIVE_SCHEDULER
       
  2010 	END_TEST_BLOCK
       
  2011 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2012 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2013 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2014 
       
  2015 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2016 			SHARED_ACTIVE_SCHEDULER
       
  2017 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  2018 			RESTORE_OBJECT	RSdp	rsdp	
       
  2019 			COMMAND		database1	DeleteRecordL
       
  2020 			COMMAND		database1	Close
       
  2021 			COMMAND		rsdp	Close
       
  2022 			STORE_ACTIVE_SCHEDULER
       
  2023 	END_TEST_BLOCK
       
  2024 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1031
       
  2025 
       
  2026 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1032
       
  2027 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1032
       
  2028 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueDEA
       
  2029 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  2030 //!								Uses API elements: 	NewDEAL(), StartListL(), BuildDEAL(), BuildNilL(), BuildStringL(), BuildUUIDL(), BuildIntL() and EndListL() 
       
  2031 //!													from CSdpAttrValueDEA
       
  2032 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  2033 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  2034 //! @SYMTestActions				1. Create a CSdpAttrValueDEA and add some elements in the list.
       
  2035 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  2036 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  2037 //!								4. Create a new service record, with a single service class, in the SDP database.
       
  2038 //!								   Verify the resulting err code is KErrNone.
       
  2039 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  2040 //!								   Verify the resulting err code is KErrNone.
       
  2041 //!								6. Create a CSdpAttrValueDEA and add a signed integer element in the list.
       
  2042 //!								8. Clean the database
       
  2043 //! @SYMTestStatus				Implemented
       
  2044 //! @SYMTestPriority			Low
       
  2045 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  2046 //! @SYMTestType				CIT
       
  2047 
       
  2048 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2049 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2050 			SHARED_ACTIVE_SCHEDULER
       
  2051 			CREATE_OBJECT	RSdpDatabase	database1	
       
  2052 			CREATE_OBJECT	RSdp	rsdp	
       
  2053 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
  2054 			COMMAND		attrValueDEA	NewDEAL
       
  2055 			COMMAND		attrValueDEA	StartListL
       
  2056 			COMMAND		attrValueDEA	BuildDEAL
       
  2057 			COMMAND		attrValueDEA	StartListL
       
  2058 			COMMAND		attrValueDEA	BuildNilL
       
  2059 			COMMAND		attrValueDEA	BuildStringL		BTSDP-Lists-PublicApi-Passive-1032-0001command7BuildStringL
       
  2060 			COMMAND		attrValueDEA	BuildUUIDL		BTSDP-Lists-PublicApi-Passive-1032-0001command8BuildUUIDL
       
  2061 			COMMAND		attrValueDEA	BuildIntL		BTSDP-Lists-PublicApi-Passive-1032-0001command9BuildIntL
       
  2062 			COMMAND		attrValueDEA	EndListL
       
  2063 			COMMAND		attrValueDEA	EndListL
       
  2064 			COMMAND		rsdp	Constructor
       
  2065 			COMMAND		rsdp	Connect
       
  2066 			OUTSTANDING
       
  2067 			COMMAND		database1	Constructor
       
  2068 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1032-0001command17Open
       
  2069 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1032-0001command18CreateServiceRecordL
       
  2070 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1032-0001command19UpdateAttributeL
       
  2071 			STORE	database1	
       
  2072 			STORE	rsdp	
       
  2073 			STORE_ACTIVE_SCHEDULER
       
  2074 	END_TEST_BLOCK
       
  2075 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2076 
       
  2077 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2078 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2079 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2080 			SHARED_ACTIVE_SCHEDULER
       
  2081 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  2082 			RESTORE_OBJECT	RSdp	rsdp	
       
  2083 			COMMAND		database1	DeleteRecordL
       
  2084 			COMMAND		database1	Close
       
  2085 			COMMAND		rsdp	Close
       
  2086 			STORE_ACTIVE_SCHEDULER
       
  2087 	END_TEST_BLOCK
       
  2088 
       
  2089 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1032
       
  2090 
       
  2091 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1033
       
  2092 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1033
       
  2093 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueDEA
       
  2094 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  2095 //!								Uses API elements: 	NewDEAL() and BuildUnknownL() from CSdpAttrValueDEA
       
  2096 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  2097 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  2098 //! @SYMTestActions				1. Create a CSdpAttrValueDEA and add a user-defined element in the list.
       
  2099 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  2100 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  2101 //!								4. Create a new service record, with a single service class, in the SDP database.
       
  2102 //!								   Verify the resulting err code is KErrNone.
       
  2103 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  2104 //!								   Verify the resulting err code is KErrNone.
       
  2105 //!								6. Clean the database
       
  2106 //! @SYMTestStatus				Implemented
       
  2107 //! @SYMTestPriority			Low
       
  2108 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  2109 //! @SYMTestType				CIT
       
  2110 
       
  2111 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2112 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2113 			SHARED_ACTIVE_SCHEDULER
       
  2114 			CREATE_OBJECT	RSdpDatabase	database1	
       
  2115 			CREATE_OBJECT	RSdp	rsdp	
       
  2116 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA1	
       
  2117 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA2	
       
  2118 			COMMAND		attrValueDEA1	NewDEAL
       
  2119 			COMMAND		attrValueDEA2	NewDEAL		BTSDP-Lists-PublicApi-Passive-1033-0001command4NewDEAL
       
  2120 			COMMAND		attrValueDEA2	BuildUnknownL		BTSDP-Lists-PublicApi-Passive-1033-0001command5BuildUnknownL
       
  2121 			COMMAND		rsdp	Constructor
       
  2122 			COMMAND		rsdp	Connect
       
  2123 			OUTSTANDING
       
  2124 			COMMAND		database1	Constructor
       
  2125 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1033-0001command11Open
       
  2126 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1033-0001command12CreateServiceRecordL
       
  2127 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1033-0001command13UpdateAttributeL
       
  2128 			STORE	database1	
       
  2129 			STORE	rsdp	
       
  2130 			STORE_ACTIVE_SCHEDULER
       
  2131 	END_TEST_BLOCK
       
  2132 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2133 
       
  2134 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2135 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2136 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2137 			SHARED_ACTIVE_SCHEDULER
       
  2138 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  2139 			RESTORE_OBJECT	RSdp	rsdp	
       
  2140 			COMMAND		database1	DeleteRecordL
       
  2141 			COMMAND		database1	Close
       
  2142 			COMMAND		rsdp	Close
       
  2143 			STORE_ACTIVE_SCHEDULER
       
  2144 	END_TEST_BLOCK
       
  2145 
       
  2146 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1033
       
  2147 
       
  2148 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1034
       
  2149 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1034
       
  2150 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueDEA
       
  2151 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  2152 //!								Uses API elements: 	NewDEAL(), DataSize(), Type() and AppendValueL() from CSdpAttrValueDEA
       
  2153 //!													NewUintL() from CSdpAttrValueUint
       
  2154 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  2155 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  2156 //! @SYMTestActions				1. Create a CSdpAttrValueDEA list and add some elements in the list. Verify the list type and sizes.
       
  2157 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  2158 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  2159 //!								4. Create a new service record, with a single service class, in the SDP database.
       
  2160 //!								   Verify the resulting err code is KErrNone.
       
  2161 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  2162 //!								   Verify the resulting err code is KErrNone.
       
  2163 //!								6. Clean the database
       
  2164 //! @SYMTestStatus				Implemented
       
  2165 //! @SYMTestPriority			Low
       
  2166 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  2167 //! @SYMTestType				CIT
       
  2168 
       
  2169 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2170 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2171 			SHARED_ACTIVE_SCHEDULER
       
  2172 			CREATE_OBJECT	RSdpDatabase	database1	
       
  2173 			CREATE_OBJECT	RSdp	rsdp	
       
  2174 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA1	
       
  2175 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA2	
       
  2176 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint	
       
  2177 			COMMAND		attrValueUint	NewUintL		BTSDP-Lists-PublicApi-Passive-1034-0001command2NewUintL
       
  2178 			COMMAND		attrValueDEA1	NewDEAL
       
  2179 			COMMAND		attrValueDEA2	NewDEAL		BTSDP-Lists-PublicApi-Passive-1034-0001command6NewDEAL
       
  2180 			COMMAND		attrValueDEA2	AppendValueL		BTSDP-Lists-PublicApi-Passive-1034-0001command7AppendValueL
       
  2181 			COMMAND		attrValueDEA2	Type		BTSDP-Lists-PublicApi-Passive-1034-0001command8Type
       
  2182 			COMMAND		attrValueDEA2	DataSize		BTSDP-Lists-PublicApi-Passive-1034-0001command9DataSize
       
  2183 			COMMAND		rsdp	Constructor
       
  2184 			COMMAND		rsdp	Connect
       
  2185 			OUTSTANDING
       
  2186 			COMMAND		database1	Constructor
       
  2187 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1034-0001command15Open
       
  2188 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1034-0001command16CreateServiceRecordL
       
  2189 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1034-0001command17UpdateAttributeL
       
  2190 			STORE	database1	
       
  2191 			STORE	rsdp	
       
  2192 			STORE_ACTIVE_SCHEDULER
       
  2193 	END_TEST_BLOCK
       
  2194 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2195 
       
  2196 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2197 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2198 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2199 			SHARED_ACTIVE_SCHEDULER
       
  2200 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  2201 			RESTORE_OBJECT	RSdp	rsdp	
       
  2202 			COMMAND		database1	DeleteRecordL
       
  2203 			COMMAND		database1	Close
       
  2204 			COMMAND		rsdp	Close
       
  2205 			STORE_ACTIVE_SCHEDULER
       
  2206 	END_TEST_BLOCK
       
  2207 
       
  2208 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1034
       
  2209 
       
  2210 
       
  2211 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1035
       
  2212 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1035
       
  2213 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueDEA
       
  2214 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  2215 //!								Uses API elements: 	NewDEAL(), BuildDESL(), StartListL(), BuildBooleanL(), BuildStringL(), BuildURLL(), BuildNilL(),
       
  2216 //!													BuildIntL(), BuildDEAL(), BuildUUIDL(), BuildUintL(), DataSize() and EndListL()from CSdpAttrValueDEA
       
  2217 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  2218 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  2219 //! @SYMTestActions				1. Create a CSdpAttrValueDEA and some elements in the list. Verify the list sizes.
       
  2220 //!								2. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  2221 //!								3. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  2222 //!								4. Create a new service record, with a single service class, in the SDP database.
       
  2223 //!								   Verify the resulting err code is KErrNone.
       
  2224 //!								5. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  2225 //!								   Verify the resulting err code is KErrNone.
       
  2226 //!								6. Clean the database
       
  2227 //! @SYMTestStatus				Implemented
       
  2228 //! @SYMTestPriority			Low
       
  2229 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  2230 //! @SYMTestType				CIT
       
  2231 
       
  2232 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2233 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2234 			SHARED_ACTIVE_SCHEDULER
       
  2235 			CREATE_OBJECT	RSdpDatabase	database1	
       
  2236 			CREATE_OBJECT	RSdp	rsdp	
       
  2237 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
  2238 			COMMAND		attrValueDEA	NewDEAL
       
  2239 			COMMAND		attrValueDEA	StartListL
       
  2240 			COMMAND		attrValueDEA	BuildDESL
       
  2241 			COMMAND		attrValueDEA	StartListL
       
  2242 			COMMAND		attrValueDEA	BuildBooleanL		BTSDP-Lists-PublicApi-Passive-1035-0001command6BuildBooleanL
       
  2243 			COMMAND		attrValueDEA	BuildStringL		BTSDP-Lists-PublicApi-Passive-1035-0001command7BuildStringL
       
  2244 			COMMAND		attrValueDEA	BuildNilL
       
  2245 			COMMAND		attrValueDEA	BuildIntL		BTSDP-Lists-PublicApi-Passive-1035-0001command9BuildIntL
       
  2246 			COMMAND		attrValueDEA	EndListL
       
  2247 			COMMAND		attrValueDEA	StartListL
       
  2248 			COMMAND		attrValueDEA	BuildDEAL
       
  2249 			COMMAND		attrValueDEA	StartListL
       
  2250 			COMMAND		attrValueDEA	BuildUUIDL		BTSDP-Lists-PublicApi-Passive-1035-0001command14BuildUUIDL
       
  2251 			COMMAND		attrValueDEA	BuildUintL		BTSDP-Lists-PublicApi-Passive-1035-0001command15BuildUintL
       
  2252 			COMMAND		attrValueDEA	BuildURLL		BTSDP-Lists-PublicApi-Passive-1035-0001command16BuildURLL
       
  2253 			COMMAND		attrValueDEA	EndListL
       
  2254 			COMMAND		attrValueDEA	EndListL
       
  2255 			COMMAND		attrValueDEA	DataSize		BTSDP-Lists-PublicApi-Passive-1035-0001command19DataSize
       
  2256 			COMMAND		rsdp	Constructor
       
  2257 			COMMAND		rsdp	Connect
       
  2258 			OUTSTANDING
       
  2259 			COMMAND		database1	Constructor
       
  2260 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1035-0001command25Open
       
  2261 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1035-0001command26CreateServiceRecordL
       
  2262 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1035-0001command27UpdateAttributeL
       
  2263 			STORE	database1	
       
  2264 			STORE	rsdp	
       
  2265 			STORE_ACTIVE_SCHEDULER
       
  2266 	END_TEST_BLOCK
       
  2267 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2268 
       
  2269 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2270 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2271 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2272 			SHARED_ACTIVE_SCHEDULER
       
  2273 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  2274 			RESTORE_OBJECT	RSdp	rsdp	
       
  2275 			COMMAND		database1	DeleteRecordL
       
  2276 			COMMAND		database1	Close
       
  2277 			COMMAND		rsdp	Close
       
  2278 			STORE_ACTIVE_SCHEDULER
       
  2279 	END_TEST_BLOCK
       
  2280 
       
  2281 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1035
       
  2282 
       
  2283 // ****************************************************************************
       
  2284 // Database side - CSdpAttrVAlueUUID API Test
       
  2285 // ****************************************************************************	
       
  2286 
       
  2287 START_TESTCASE BTSDP-Lists-PublicApi-Passive-Master-1036
       
  2288 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1036
       
  2289 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueUUID
       
  2290 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  2291 //!								Uses API elements: 	NewUUIDL() and UUID() from CSdpAttrValueUUID
       
  2292 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  2293 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  2294 //! @SYMTestActions				1. Create a 32-bit CSdpAttrValueUUID object with the maximum UUID value using NewUUIDL() function.
       
  2295 //!								2. Verify the object value using UUID() function. Test pass if expected value is as the input value
       
  2296 //!								3. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  2297 //!								4. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  2298 //!								5. Create a new service record, with a single service class, in the SDP database.
       
  2299 //!								   Verify the resulting err code is KErrNone.
       
  2300 //!								6. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  2301 //!								   Verify the resulting err code is KErrNone.
       
  2302 //!								7. Delete service record created in previous test case.
       
  2303 //!								8. Close the client process. Close the SDP database subsession.
       
  2304 //! @SYMTestStatus				Implemented
       
  2305 //! @SYMTestPriority			Low
       
  2306 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  2307 //! @SYMTestType				CIT 
       
  2308 
       
  2309 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase	
       
  2310 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2311 			SHARED_ACTIVE_SCHEDULER
       
  2312 			CREATE_OBJECT	RSdpDatabase	database	
       
  2313 			CREATE_OBJECT	RSdp	rsdp	
       
  2314 			CREATE_OBJECT	CSdpAttrValueUUID	attrValueUUID1	
       
  2315 			COMMAND		attrValueUUID1	NewUUIDL		BTSDP-Lists-PublicApi-Passive-1036-0001command2NewUUIDL
       
  2316 			COMMAND		attrValueUUID1	UUID		BTSDP-Lists-PublicApi-Passive-1036-0001command3UUID
       
  2317 			COMMAND		rsdp	Constructor
       
  2318 			COMMAND		rsdp	Connect
       
  2319 			OUTSTANDING
       
  2320 			COMMAND		database	Constructor
       
  2321 			COMMAND		database	Open		BTSDP-Lists-PublicApi-Passive-1036-0001command9Open
       
  2322 			COMMAND		database	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1036-0001command10CreateServiceRecordL
       
  2323 			COMMAND		database	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1036-0001command11UpdateAttributeL
       
  2324 			STORE	database	
       
  2325 			STORE	rsdp	
       
  2326 			STORE_ACTIVE_SCHEDULER
       
  2327 	END_TEST_BLOCK
       
  2328 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2329 
       
  2330 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2331 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2332 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2333 			SHARED_ACTIVE_SCHEDULER
       
  2334 			RESTORE_OBJECT	RSdpDatabase	database	
       
  2335 			RESTORE_OBJECT	RSdp	rsdp	
       
  2336 			ASYNC_DELAY	5000000
       
  2337 			COMMAND		database	DeleteRecordL
       
  2338 			COMMAND		database	Close
       
  2339 			COMMAND		rsdp	Close
       
  2340 			STORE_ACTIVE_SCHEDULER
       
  2341 	END_TEST_BLOCK
       
  2342 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1036
       
  2343 
       
  2344 START_TESTCASE BTSDP-Lists-PublicApi-Passive-Master-1037
       
  2345 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1037
       
  2346 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueUUID
       
  2347 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  2348 //!								Uses API elements: 	NewUUIDL(), UUID() from CSdpAttrValueUUID
       
  2349 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  2350 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  2351 //! @SYMTestActions				1. Create a 128-bit CSdpAttrValueUUID object with the UUID value using NewUUIDL() function.
       
  2352 //!								2. Verify the object value using UUID() function. Test pass if expected value is as the input value
       
  2353 //!								3. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  2354 //!								4. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  2355 //!								5. Create a new service record, with a single service class, in the SDP database.
       
  2356 //!								   Verify the resulting err code is KErrNone.
       
  2357 //!								6. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  2358 //!								   Verify the resulting err code is KErrNone.
       
  2359 //!								7. Delete service record created in previous test case.
       
  2360 //!								8. Close the client process. Close the SDP database subsession.
       
  2361 //! @SYMTestStatus				Implemented
       
  2362 //! @SYMTestPriority			Low
       
  2363 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
  2364 //! @SYMTestType				CIT
       
  2365 
       
  2366 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase	
       
  2367 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2368 			SHARED_ACTIVE_SCHEDULER
       
  2369 			CREATE_OBJECT	RSdpDatabase	database	
       
  2370 			CREATE_OBJECT	RSdp	rsdp	
       
  2371 			CREATE_OBJECT	CSdpAttrValueUUID	attrValueUUID1	
       
  2372 			COMMAND		attrValueUUID1	NewUUIDL		BTSDP-Lists-PublicApi-Passive-1037-0001command2NewUUIDL
       
  2373 			COMMAND		attrValueUUID1	UUID		BTSDP-Lists-PublicApi-Passive-1037-0001command3UUID
       
  2374 			COMMAND		rsdp	Constructor
       
  2375 			COMMAND		rsdp	Connect
       
  2376 			OUTSTANDING
       
  2377 			COMMAND		database	Constructor
       
  2378 			COMMAND		database	Open		BTSDP-Lists-PublicApi-Passive-1037-0001command9Open
       
  2379 			COMMAND		database	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1037-0001command10CreateServiceRecordL
       
  2380 			COMMAND		database	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1037-0001command11UpdateAttributeL
       
  2381 			STORE	database	
       
  2382 			STORE	rsdp	
       
  2383 			STORE_ACTIVE_SCHEDULER
       
  2384 	END_TEST_BLOCK
       
  2385 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2386 
       
  2387 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2388 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2389 
       
  2390 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2391 			SHARED_ACTIVE_SCHEDULER
       
  2392 			RESTORE_OBJECT	RSdpDatabase	database	
       
  2393 			RESTORE_OBJECT	RSdp	rsdp	
       
  2394 			COMMAND		database	DeleteRecordL
       
  2395 			COMMAND		database	Close
       
  2396 			COMMAND		rsdp	Close
       
  2397 			STORE_ACTIVE_SCHEDULER
       
  2398 	END_TEST_BLOCK
       
  2399 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1037
       
  2400 
       
  2401 START_TESTCASE BTSDP-Lists-PublicApi-Passive-Master-1038
       
  2402 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1038
       
  2403 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueUUID
       
  2404 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  2405 //!								Uses API elements: 	NewUUIDL(), DataSize() from CSdpAttrValueUUID
       
  2406 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  2407 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  2408 //! @SYMTestActions				1. Create a 32-bit CSdpAttrValueUUID object with the maximum UUID value using NewUUIDL() function.
       
  2409 //!								2. Verify the object size itself using DataSize() function
       
  2410 //!								3. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  2411 //!								4. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  2412 //!								5. Create a new service record, with a single service class, in the SDP database.
       
  2413 //!								   Verify the resulting err code is KErrNone.
       
  2414 //!								6. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  2415 //!								   Verify the resulting err code is KErrNone.
       
  2416 //!								7. Delete service record created in previous test case.
       
  2417 //!								8. Close the client process. Close the SDP database subsession.
       
  2418 //! @SYMTestStatus				Implemented
       
  2419 //! @SYMTestPriority			Critical
       
  2420 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
  2421 //! @SYMTestType				CIT
       
  2422 
       
  2423 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2424 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2425 			SHARED_ACTIVE_SCHEDULER
       
  2426 			CREATE_OBJECT	RSdpDatabase	database	
       
  2427 			CREATE_OBJECT	RSdp	rsdp	
       
  2428 			CREATE_OBJECT	CSdpAttrValueUUID	attrValueUUID1	
       
  2429 			COMMAND		attrValueUUID1	NewUUIDL		BTSDP-Lists-PublicApi-Passive-1038-0001command2NewUUIDL
       
  2430 			COMMAND		attrValueUUID1	DataSize		BTSDP-Lists-PublicApi-Passive-1038-0001command3DataSize
       
  2431 			COMMAND		rsdp	Constructor
       
  2432 			COMMAND		rsdp	Connect
       
  2433 			OUTSTANDING
       
  2434 			COMMAND		database	Constructor
       
  2435 			COMMAND		database	Open		BTSDP-Lists-PublicApi-Passive-1038-0001command9Open
       
  2436 			COMMAND		database	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1038-0001command10CreateServiceRecordL
       
  2437 			COMMAND		database	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1038-0001command11UpdateAttributeL
       
  2438 			STORE	database	
       
  2439 			STORE	rsdp	
       
  2440 			STORE_ACTIVE_SCHEDULER
       
  2441 	END_TEST_BLOCK
       
  2442 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2443 
       
  2444 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2445 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2446 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2447 			SHARED_ACTIVE_SCHEDULER
       
  2448 			RESTORE_OBJECT	RSdpDatabase	database	
       
  2449 			RESTORE_OBJECT	RSdp	rsdp	
       
  2450 			COMMAND		database	DeleteRecordL
       
  2451 			COMMAND		database	Close
       
  2452 			COMMAND		rsdp	Close
       
  2453 			STORE_ACTIVE_SCHEDULER
       
  2454 	END_TEST_BLOCK
       
  2455 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1038
       
  2456 
       
  2457 START_TESTCASE BTSDP-Lists-PublicApi-Passive-Master-1039
       
  2458 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1039
       
  2459 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueUUID
       
  2460 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  2461 //!								Uses API elements: 	NewUUIDL(), DataSize() from CSdpAttrValueUUID
       
  2462 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  2463 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  2464 //! @SYMTestActions				1. Create a 128-bit CSdpAttrValueUUID object with the UUID value using NewUUIDL() function.
       
  2465 //!								2. Verify the object size itself using DataSize() function
       
  2466 //!								3. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  2467 //!								4. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  2468 //!								5. Create a new service record, with a single service class, in the SDP database.
       
  2469 //!								   Verify the resulting err code is KErrNone.
       
  2470 //!								6. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  2471 //!								   Verify the resulting err code is KErrNone.
       
  2472 //!								7. Delete service record created in previous test case.
       
  2473 //!								8. Close the client process. Close the SDP database subsession.
       
  2474 //! @SYMTestStatus				Implemented
       
  2475 //! @SYMTestPriority			Critical
       
  2476 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
  2477 //! @SYMTestType				CIT
       
  2478 
       
  2479 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2480 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2481 			SHARED_ACTIVE_SCHEDULER
       
  2482 			CREATE_OBJECT	RSdpDatabase	database	
       
  2483 			CREATE_OBJECT	RSdp	rsdp	
       
  2484 			CREATE_OBJECT	CSdpAttrValueUUID	attrValueUUID1	
       
  2485 			COMMAND		attrValueUUID1	NewUUIDL		BTSDP-Lists-PublicApi-Passive-1039-0001command2NewUUIDL
       
  2486 			COMMAND		attrValueUUID1	DataSize		BTSDP-Lists-PublicApi-Passive-1039-0001command3DataSize
       
  2487 			COMMAND		rsdp	Constructor
       
  2488 			COMMAND		rsdp	Connect
       
  2489 			OUTSTANDING
       
  2490 			COMMAND		database	Constructor
       
  2491 			COMMAND		database	Open		BTSDP-Lists-PublicApi-Passive-1039-0001command9Open
       
  2492 			COMMAND		database	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1039-0001command10CreateServiceRecordL
       
  2493 			COMMAND		database	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1039-0001command11UpdateAttributeL
       
  2494 			STORE	database	
       
  2495 			STORE	rsdp	
       
  2496 			STORE_ACTIVE_SCHEDULER
       
  2497 	END_TEST_BLOCK
       
  2498 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2499 
       
  2500 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2501 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2502 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2503 			SHARED_ACTIVE_SCHEDULER
       
  2504 			RESTORE_OBJECT	RSdpDatabase	database	
       
  2505 			RESTORE_OBJECT	RSdp	rsdp	
       
  2506 			COMMAND		database	DeleteRecordL
       
  2507 			COMMAND		database	Close
       
  2508 			COMMAND		rsdp	Close
       
  2509 			STORE_ACTIVE_SCHEDULER
       
  2510 	END_TEST_BLOCK
       
  2511 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1039
       
  2512 
       
  2513 START_TESTCASE BTSDP-Lists-PublicApi-Passive-Master-1040
       
  2514 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1040
       
  2515 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueUUID
       
  2516 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  2517 //!								Uses API elements: 	NewUUIDL(), Type() from CSdpAttrValueUUID
       
  2518 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  2519 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  2520 //! @SYMTestActions				1. Create a 32-bit CSdpAttrValueUUID object with the maximum UUID value using NewUUIDL() function.
       
  2521 //!								2. Verify object type itself using Type()
       
  2522 //!								3. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  2523 //!								4. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  2524 //!								5. Create a new service record, with a single service class, in the SDP database.
       
  2525 //!								   Verify the resulting err code is KErrNone.
       
  2526 //!								6. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  2527 //!								   Verify the resulting err code is KErrNone.
       
  2528 //!								7. Delete service record created in previous test case.
       
  2529 //!								8. Close the client process. Close the SDP database subsession.
       
  2530 //! @SYMTestStatus				Implemented
       
  2531 //! @SYMTestPriority			Critical
       
  2532 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
  2533 //! @SYMTestType				CIT
       
  2534 
       
  2535 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2536 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2537 			SHARED_ACTIVE_SCHEDULER
       
  2538 			CREATE_OBJECT	RSdpDatabase	database	
       
  2539 			CREATE_OBJECT	RSdp	rsdp	
       
  2540 			CREATE_OBJECT	CSdpAttrValueUUID	attrValueUUID1	
       
  2541 			COMMAND		attrValueUUID1	NewUUIDL		BTSDP-Lists-PublicApi-Passive-1040-0001command2NewUUIDL
       
  2542 			COMMAND		attrValueUUID1	Type		BTSDP-Lists-PublicApi-Passive-1040-0001command3Type
       
  2543 			COMMAND		rsdp	Constructor
       
  2544 			COMMAND		rsdp	Connect
       
  2545 			OUTSTANDING
       
  2546 			COMMAND		database	Constructor
       
  2547 			COMMAND		database	Open		BTSDP-Lists-PublicApi-Passive-1040-0001command9Open
       
  2548 			COMMAND		database	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1040-0001command10CreateServiceRecordL
       
  2549 			COMMAND		database	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1040-0001command11UpdateAttributeL
       
  2550 			STORE	database	
       
  2551 			STORE	rsdp	
       
  2552 			STORE_ACTIVE_SCHEDULER
       
  2553 	END_TEST_BLOCK
       
  2554 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2555 
       
  2556 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2557 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2558 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2559 			SHARED_ACTIVE_SCHEDULER
       
  2560 			RESTORE_OBJECT	RSdpDatabase	database	
       
  2561 			RESTORE_OBJECT	RSdp	rsdp	
       
  2562 			COMMAND		database	DeleteRecordL
       
  2563 			COMMAND		database	Close
       
  2564 			COMMAND		rsdp	Close
       
  2565 			STORE_ACTIVE_SCHEDULER
       
  2566 	END_TEST_BLOCK
       
  2567 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1040
       
  2568 
       
  2569 START_TESTCASE BTSDP-Lists-PublicApi-Passive-Master-1041
       
  2570 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1041
       
  2571 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueUUID
       
  2572 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  2573 //!								Uses API elements: 	NewUUIDL(), Des() from CSdpAttrValueUUID
       
  2574 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  2575 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  2576 //! @SYMTestActions				1. Create a 32-bit CSdpAttrValueUUID object with the maximum UUID value using NewUUIDL() function.
       
  2577 //!								2. Verify object data value using Des()
       
  2578 //!								3. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  2579 //!								4. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  2580 //!								5. Create a new service record, with a single service class, in the SDP database.
       
  2581 //!								   Verify the resulting err code is KErrNone.
       
  2582 //!								6. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  2583 //!								   Verify the resulting err code is KErrNone.
       
  2584 //!								7. Delete service record created in previous test case.
       
  2585 //!								8. Close the client process. Close the SDP database subsession.
       
  2586 //! @SYMTestStatus				Implemented
       
  2587 //! @SYMTestPriority			Critical
       
  2588 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
  2589 //! @SYMTestType				CIT
       
  2590 
       
  2591 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2592 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2593 			SHARED_ACTIVE_SCHEDULER
       
  2594 			CREATE_OBJECT	RSdpDatabase	database	
       
  2595 			CREATE_OBJECT	RSdp	rsdp	
       
  2596 			CREATE_OBJECT	CSdpAttrValueUUID	attrValueUUID1	
       
  2597 			COMMAND		attrValueUUID1	NewUUIDL		BTSDP-Lists-PublicApi-Passive-1041-0001command2NewUUIDL
       
  2598 			COMMAND		attrValueUUID1	Des		BTSDP-Lists-PublicApi-Passive-1041-0001command3Des
       
  2599 			COMMAND		rsdp	Constructor
       
  2600 			COMMAND		rsdp	Connect
       
  2601 			OUTSTANDING
       
  2602 			COMMAND		database	Constructor
       
  2603 			COMMAND		database	Open		BTSDP-Lists-PublicApi-Passive-1041-0001command9Open
       
  2604 			COMMAND		database	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1041-0001command10CreateServiceRecordL
       
  2605 			COMMAND		database	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1041-0001command11UpdateAttributeL
       
  2606 			STORE	database	
       
  2607 			STORE	rsdp	
       
  2608 			STORE_ACTIVE_SCHEDULER
       
  2609 	END_TEST_BLOCK
       
  2610 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2611 
       
  2612 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2613 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2614 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2615 			SHARED_ACTIVE_SCHEDULER
       
  2616 			RESTORE_OBJECT	RSdpDatabase	database	
       
  2617 			RESTORE_OBJECT	RSdp	rsdp	
       
  2618 			COMMAND		database	DeleteRecordL
       
  2619 			COMMAND		database	Close
       
  2620 			COMMAND		rsdp	Close
       
  2621 			STORE_ACTIVE_SCHEDULER
       
  2622 	END_TEST_BLOCK
       
  2623 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1041
       
  2624 
       
  2625 START_TESTCASE BTSDP-Lists-PublicApi-Passive-Master-1042
       
  2626 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1042
       
  2627 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueUUID
       
  2628 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  2629 //!								Uses API elements: 	NewUUIDL(), Des() from CSdpAttrValueUUID
       
  2630 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  2631 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  2632 //! @SYMTestActions				1. Create a 128-bit CSdpAttrValueUUID object with the UUID value using NewUUIDL() function.
       
  2633 //!								2. Verify the object data value using Des() function.
       
  2634 //!								3. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  2635 //!								4. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  2636 //!								5. Create a new service record, with a single service class, in the SDP database.
       
  2637 //!								   Verify the resulting err code is KErrNone.
       
  2638 //!								6. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  2639 //!								   Verify the resulting err code is KErrNone.
       
  2640 //!								7. Delete service record created in previous test case.
       
  2641 //!								8. Close the client process. Close the SDP database subsession.
       
  2642 //! @SYMTestStatus				Implemented
       
  2643 //! @SYMTestPriority			Critical
       
  2644 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
  2645 //! @SYMTestType				CIT
       
  2646 
       
  2647 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2648 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2649 			SHARED_ACTIVE_SCHEDULER
       
  2650 			CREATE_OBJECT	RSdpDatabase	database	
       
  2651 			CREATE_OBJECT	RSdp	rsdp	
       
  2652 			CREATE_OBJECT	CSdpAttrValueUUID	attrValueUUID1	
       
  2653 			COMMAND		attrValueUUID1	NewUUIDL		BTSDP-Lists-PublicApi-Passive-1042-0001command2NewUUIDL
       
  2654 			COMMAND		attrValueUUID1	Des		BTSDP-Lists-PublicApi-Passive-1042-0001command3Des
       
  2655 			COMMAND		rsdp	Constructor
       
  2656 			COMMAND		rsdp	Connect
       
  2657 			OUTSTANDING
       
  2658 			COMMAND		database	Constructor
       
  2659 			COMMAND		database	Open		BTSDP-Lists-PublicApi-Passive-1042-0001command9Open
       
  2660 			COMMAND		database	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1042-0001command10CreateServiceRecordL
       
  2661 			COMMAND		database	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1042-0001command11UpdateAttributeL
       
  2662 			STORE	database	
       
  2663 			STORE	rsdp	
       
  2664 			STORE_ACTIVE_SCHEDULER
       
  2665 	END_TEST_BLOCK
       
  2666 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2667 
       
  2668 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2669 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2670 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2671 			SHARED_ACTIVE_SCHEDULER
       
  2672 			RESTORE_OBJECT	RSdpDatabase	database	
       
  2673 			RESTORE_OBJECT	RSdp	rsdp	
       
  2674 			COMMAND		database	DeleteRecordL
       
  2675 			COMMAND		database	Close
       
  2676 			COMMAND		rsdp	Close
       
  2677 			STORE_ACTIVE_SCHEDULER
       
  2678 	END_TEST_BLOCK
       
  2679 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1042
       
  2680 
       
  2681 START_TESTCASE BTSDP-Lists-PublicApi-Passive-Master-1043
       
  2682 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1043
       
  2683 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueUUID
       
  2684 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  2685 //!								Uses API elements: 	NewUUIDL(), Type(), DataSize(), DoesIntFit() from CSdpAttrValueUUID
       
  2686 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  2687 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  2688 //!	@SYMTestActions				1. Create a 32-bit CSdpAttrValueUUID object with the maximum UUID value using NewUUIDL() function.
       
  2689 //!								2. Verify object type itself using Type()
       
  2690 //!								3. Verify object size using DataSize()
       
  2691 //!								4. Verify object if fits integer using DoesIntFit()
       
  2692 //!								5. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  2693 //!								6. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  2694 //!								7. Create a new service record, with a single service class, in the SDP database.
       
  2695 //!								   Verify the resulting err code is KErrNone.
       
  2696 //!								8. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  2697 //!								   Verify the resulting err code is KErrNone.
       
  2698 //!								10. Delete service record created in previous test case.
       
  2699 //!								11. Close the client process. Close the SDP database subsession.
       
  2700 //! @SYMTestStatus				Implemented
       
  2701 //! @SYMTestPriority			Low
       
  2702 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
  2703 //! @SYMTestType				CIT
       
  2704 
       
  2705 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2706 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2707 			SHARED_ACTIVE_SCHEDULER
       
  2708 			CREATE_OBJECT	RSdpDatabase	database	
       
  2709 			CREATE_OBJECT	RSdp	rsdp	
       
  2710 			CREATE_OBJECT	CSdpAttrValueUUID	attrValueUUID1	
       
  2711 			COMMAND		attrValueUUID1	NewUUIDL		BTSDP-Lists-PublicApi-Passive-1043-0001command2NewUUIDL
       
  2712 			COMMAND		attrValueUUID1	Type		BTSDP-Lists-PublicApi-Passive-1043-0001command3Type
       
  2713 			COMMAND		attrValueUUID1	DataSize		BTSDP-Lists-PublicApi-Passive-1043-0001command4DataSize
       
  2714 			COMMAND		attrValueUUID1	DoesIntFit		BTSDP-Lists-PublicApi-Passive-1043-0001command5DoesIntFit
       
  2715 			COMMAND		rsdp	Constructor
       
  2716 			COMMAND		rsdp	Connect
       
  2717 			OUTSTANDING
       
  2718 			COMMAND		database	Constructor
       
  2719 			COMMAND		database	Open		BTSDP-Lists-PublicApi-Passive-1043-0001command11Open
       
  2720 			COMMAND		database	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1043-0001command12CreateServiceRecordL
       
  2721 			COMMAND		database	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1043-0001command13UpdateAttributeL
       
  2722 			STORE	database	
       
  2723 			STORE	rsdp	
       
  2724 			STORE_ACTIVE_SCHEDULER
       
  2725 	END_TEST_BLOCK
       
  2726 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2727 
       
  2728 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2729 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2730 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2731 			SHARED_ACTIVE_SCHEDULER
       
  2732 			RESTORE_OBJECT	RSdpDatabase	database	
       
  2733 			RESTORE_OBJECT	RSdp	rsdp	
       
  2734 			COMMAND		database	DeleteRecordL
       
  2735 			COMMAND		database	Close
       
  2736 			COMMAND		rsdp	Close
       
  2737 			STORE_ACTIVE_SCHEDULER
       
  2738 	END_TEST_BLOCK
       
  2739 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1043
       
  2740 
       
  2741 START_TESTCASE BTSDP-Lists-PublicApi-Passive-Master-1044
       
  2742 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1044
       
  2743 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueUUID
       
  2744 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  2745 //!								Uses API elements: 	NewUUIDL(), Des(), DataSize(), Type() from CSdpAttrValueUUID
       
  2746 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  2747 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  2748 //!	@SYMTestActions				1. Create a 128-bit CSdpAttrValueUUID object with the UUID value using NewUUIDL() function.
       
  2749 //!								2. Verify object data value using Des()
       
  2750 //!								3. Verify object data size using DataSize()
       
  2751 //!								4. Verify object type itself using Type()
       
  2752 //!								5. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  2753 //!								6. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  2754 //!								7. Create a new service record, with a single service class, in the SDP database.
       
  2755 //!								   Verify the resulting err code is KErrNone.
       
  2756 //!								8. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  2757 //!								   Verify the resulting err code is KErrNone.
       
  2758 //!								9. Delete service record created in previous test case.
       
  2759 //!								10. Close the client process. Close the SDP database subsession.
       
  2760 //! @SYMTestStatus				Implemented
       
  2761 //! @SYMTestPriority			Low
       
  2762 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
  2763 //! @SYMTestType				CIT
       
  2764 
       
  2765 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2766 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2767 			SHARED_ACTIVE_SCHEDULER
       
  2768 			CREATE_OBJECT	RSdpDatabase	database	
       
  2769 			CREATE_OBJECT	RSdp	rsdp	
       
  2770 			CREATE_OBJECT	CSdpAttrValueUUID	attrValueUUID1	
       
  2771 			COMMAND		attrValueUUID1	NewUUIDL		BTSDP-Lists-PublicApi-Passive-1044-0001command2NewUUIDL
       
  2772 			COMMAND		attrValueUUID1	Des		BTSDP-Lists-PublicApi-Passive-1044-0001command3Des
       
  2773 			COMMAND		attrValueUUID1	DataSize		BTSDP-Lists-PublicApi-Passive-1044-0001command4DataSize
       
  2774 			COMMAND		attrValueUUID1	Type		BTSDP-Lists-PublicApi-Passive-1044-0001command5Type
       
  2775 			COMMAND		rsdp	Constructor
       
  2776 			COMMAND		rsdp	Connect
       
  2777 			OUTSTANDING
       
  2778 			COMMAND		database	Constructor
       
  2779 			COMMAND		database	Open		BTSDP-Lists-PublicApi-Passive-1044-0001command11Open
       
  2780 			COMMAND		database	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1044-0001command12CreateServiceRecordL
       
  2781 			COMMAND		database	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1044-0001command13UpdateAttributeL
       
  2782 			STORE	database	
       
  2783 			STORE	rsdp	
       
  2784 			STORE_ACTIVE_SCHEDULER
       
  2785 	END_TEST_BLOCK
       
  2786 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2787 
       
  2788 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2789 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2790 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2791 			SHARED_ACTIVE_SCHEDULER
       
  2792 			RESTORE_OBJECT	RSdpDatabase	database	
       
  2793 			RESTORE_OBJECT	RSdp	rsdp	
       
  2794 			COMMAND		database	DeleteRecordL
       
  2795 			COMMAND		database	Close
       
  2796 			COMMAND		rsdp	Close
       
  2797 			STORE_ACTIVE_SCHEDULER
       
  2798 	END_TEST_BLOCK
       
  2799 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1044
       
  2800 
       
  2801 
       
  2802 // ****************************************************************************
       
  2803 // Database Side - TSdpIntBuf<8, 16, 32> API Test
       
  2804 // ****************************************************************************	
       
  2805 
       
  2806 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1045
       
  2807 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1045
       
  2808 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueDES, CSdpAttrValueInt, TSdpIntBuf<8>
       
  2809 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  2810 //!								Uses API elements: 	NewIntBuf() from TSdpIntBuf<8>,
       
  2811 //!													NewIntL() from CSdpAttrValueInt,
       
  2812 //!													NewDESL() and AppendValueL() from CSdpAttrValueDES
       
  2813 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  2814 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  2815 //! @SYMTestActions				1. Convert an integer to a 8-bit unsigned integer using NewIntBuf() function
       
  2816 //!								2. Construct a CSdpAttrValueInt object with the 8-bit unsigned integer
       
  2817 //!								3. Add the CSdpAttrValueInt value to CSdpAttrValueDES list
       
  2818 //!								4. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  2819 //!								5. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  2820 //!								6. Create a new service record, with a single service class, in the SDP database.
       
  2821 //!								   Verify the resulting err code is KErrNone.
       
  2822 //!								7. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  2823 //!								   Verify the resulting err code is KErrNone.
       
  2824 //!								8. Clean the database
       
  2825 //! @SYMTestStatus				Implemented
       
  2826 //! @SYMTestPriority			Low
       
  2827 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  2828 //! @SYMTestType				CIT
       
  2829 
       
  2830 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2831 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2832 			SHARED_ACTIVE_SCHEDULER
       
  2833 			CREATE_OBJECT	RSdpDatabase	database1	
       
  2834 			CREATE_OBJECT	RSdp	rsdp	
       
  2835 			CREATE_OBJECT	TSdpIntBuf8	attrIntBuf8	
       
  2836 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  2837 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
  2838 			COMMAND		attrIntBuf8	NewIntBuf		BTSDP-Lists-PublicApi-Passive-1045-0001command2NewIntBuf
       
  2839 			COMMAND		attrValueInt	NewIntL		BTSDP-Lists-PublicApi-Passive-1045-0001command4NewIntL
       
  2840 			COMMAND		attrValueDES	NewDESL
       
  2841 			COMMAND		attrValueDES	AppendValueL		BTSDP-Lists-PublicApi-Passive-1045-0001command7AppendValueL
       
  2842 			COMMAND		rsdp	Constructor
       
  2843 			COMMAND		rsdp	Connect
       
  2844 			OUTSTANDING
       
  2845 			COMMAND		database1	Constructor
       
  2846 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1045-0001command13Open
       
  2847 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1045-0001command14CreateServiceRecordL
       
  2848 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1045-0001command15UpdateAttributeL
       
  2849 			STORE	database1	
       
  2850 			STORE	rsdp	
       
  2851 			STORE_ACTIVE_SCHEDULER
       
  2852 	END_TEST_BLOCK
       
  2853 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2854 
       
  2855 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2856 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2857 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2858 			SHARED_ACTIVE_SCHEDULER
       
  2859 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  2860 			RESTORE_OBJECT	RSdp	rsdp	
       
  2861 			ASYNC_DELAY	1000000
       
  2862 			COMMAND		database1	DeleteRecordL
       
  2863 			COMMAND		database1	Close
       
  2864 			COMMAND		rsdp	Close
       
  2865 			STORE_ACTIVE_SCHEDULER
       
  2866 	END_TEST_BLOCK
       
  2867 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1045
       
  2868 
       
  2869 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1046
       
  2870 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1046
       
  2871 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueDES, CSdpAttrValueInt, TSdpIntBuf<16>
       
  2872 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  2873 //!								Uses API elements: 	NewIntBuf() from TSdpIntBuf<16>,
       
  2874 //!													NewIntL() from CSdpAttrValueInt,
       
  2875 //!													NewDESL() and AppendValueL() from CSdpAttrValueDES
       
  2876 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  2877 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  2878 //! @SYMTestActions				1. Convert an integer to a 16-bit unsigned integer using NewIntBuf() function
       
  2879 //!								2. Construct a CSdpAttrValueInt object with the 16-bit unsigned integer
       
  2880 //!								3. Add the CSdpAttrValueInt value to CSdpAttrValueDES list
       
  2881 //!								4. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  2882 //!								5. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  2883 //!								6. Create a new service record, with a single service class, in the SDP database.
       
  2884 //!								   Verify the resulting err code is KErrNone.
       
  2885 //!								7. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  2886 //!								   Verify the resulting err code is KErrNone.
       
  2887 //!								8. Clean the database
       
  2888 //! @SYMTestStatus				Implemented
       
  2889 //! @SYMTestPriority			Low
       
  2890 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  2891 //! @SYMTestType				CIT
       
  2892 
       
  2893 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase	
       
  2894 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2895 			SHARED_ACTIVE_SCHEDULER
       
  2896 			CREATE_OBJECT	RSdpDatabase	database1	
       
  2897 			CREATE_OBJECT	RSdp	rsdp	
       
  2898 			CREATE_OBJECT	TSdpIntBuf16	attrIntBuf16	
       
  2899 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  2900 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
  2901 			COMMAND		attrIntBuf16	NewIntBuf		BTSDP-Lists-PublicApi-Passive-1046-0001command2NewIntBuf
       
  2902 			COMMAND		attrValueInt	NewIntL		BTSDP-Lists-PublicApi-Passive-1046-0001command4NewIntL
       
  2903 			COMMAND		attrValueDES	NewDESL
       
  2904 			COMMAND		attrValueDES	AppendValueL		BTSDP-Lists-PublicApi-Passive-1046-0001command7AppendValueL
       
  2905 			COMMAND		rsdp	Constructor
       
  2906 			COMMAND		rsdp	Connect
       
  2907 			OUTSTANDING
       
  2908 			COMMAND		database1	Constructor
       
  2909 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1046-0001command13Open
       
  2910 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1046-0001command14CreateServiceRecordL
       
  2911 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1046-0001command15UpdateAttributeL
       
  2912 			STORE	database1	
       
  2913 			STORE	rsdp	
       
  2914 			STORE_ACTIVE_SCHEDULER
       
  2915 	END_TEST_BLOCK
       
  2916 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2917 
       
  2918 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2919 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2920 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2921 			SHARED_ACTIVE_SCHEDULER
       
  2922 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  2923 			RESTORE_OBJECT	RSdp	rsdp	
       
  2924 			COMMAND		database1	DeleteRecordL
       
  2925 			COMMAND		database1	Close
       
  2926 			COMMAND		rsdp	Close
       
  2927 			STORE_ACTIVE_SCHEDULER
       
  2928 	END_TEST_BLOCK
       
  2929 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1046
       
  2930 
       
  2931 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1047
       
  2932 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1047
       
  2933 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueDES, CSdpAttrValueInt, TSdpIntBuf<32>
       
  2934 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  2935 //!								Uses API elements: 	NewIntBuf() from TSdpIntBuf<32>,
       
  2936 //!													NewIntL() from CSdpAttrValueInt,
       
  2937 //!													NewDESL() and AppendValueL() from CSdpAttrValueDES
       
  2938 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  2939 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  2940 //! @SYMTestActions				1. Convert an integer to a 32-bit unsigned integer using NewIntBuf() function
       
  2941 //!								2. Construct a CSdpAttrValueInt object with the 32-bit unsigned integer
       
  2942 //!								3. Add the CSdpAttrValueInt value to CSdpAttrValueDES list
       
  2943 //!								4. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  2944 //!								5. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  2945 //!								6. Create a new service record, with a single service class, in the SDP database.
       
  2946 //!								   Verify the resulting err code is KErrNone.
       
  2947 //!								7. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  2948 //!								   Verify the resulting err code is KErrNone.
       
  2949 //!								8. Clean the database
       
  2950 //! @SYMTestStatus				Implemented
       
  2951 //! @SYMTestPriority			Low
       
  2952 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  2953 //! @SYMTestType				CIT
       
  2954 
       
  2955 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2956 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2957 			SHARED_ACTIVE_SCHEDULER
       
  2958 			CREATE_OBJECT	RSdpDatabase	database1	
       
  2959 			CREATE_OBJECT	RSdp	rsdp	
       
  2960 			CREATE_OBJECT	TSdpIntBuf32	attrIntBuf32	
       
  2961 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
  2962 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  2963 			COMMAND		attrIntBuf32	NewIntBuf		BTSDP-Lists-PublicApi-Passive-1047-0001command2NewIntBuf
       
  2964 			COMMAND		attrValueInt	NewIntL		BTSDP-Lists-PublicApi-Passive-1047-0001command4NewIntL
       
  2965 			COMMAND		attrValueDES	NewDESL
       
  2966 			COMMAND		attrValueDES	AppendValueL		BTSDP-Lists-PublicApi-Passive-1047-0001command7AppendValueL
       
  2967 			COMMAND		rsdp	Constructor
       
  2968 			COMMAND		rsdp	Connect
       
  2969 			OUTSTANDING
       
  2970 			COMMAND		database1	Constructor
       
  2971 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1047-0001command13Open
       
  2972 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1047-0001command14CreateServiceRecordL
       
  2973 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1047-0001command15UpdateAttributeL
       
  2974 			STORE	database1	
       
  2975 			STORE	rsdp	
       
  2976 			STORE_ACTIVE_SCHEDULER
       
  2977 	END_TEST_BLOCK
       
  2978 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2979 
       
  2980 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2981 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2982 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  2983 			SHARED_ACTIVE_SCHEDULER
       
  2984 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  2985 			RESTORE_OBJECT	RSdp	rsdp	
       
  2986 			COMMAND		database1	DeleteRecordL
       
  2987 			COMMAND		database1	Close
       
  2988 			COMMAND		rsdp	Close
       
  2989 			STORE_ACTIVE_SCHEDULER
       
  2990 	END_TEST_BLOCK
       
  2991 
       
  2992 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1047
       
  2993 
       
  2994 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1048
       
  2995 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1048
       
  2996 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueDEA, CSdpAttrValueUint, TSdpIntBuf<8>
       
  2997 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  2998 //!								Uses API elements: 	NewIntBuf() from TSdpIntBuf<8>,
       
  2999 //!													NewUintL() from CSdpAttrValueUint,
       
  3000 //!													NewDEAL() and AppendValueL() from CSdpAttrValueDEA
       
  3001 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  3002 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  3003 //! @SYMTestActions				1. Convert an integer to a 8-bit unsigned integer using NewIntBuf() function
       
  3004 //!								2. Construct a CSdpAttrValueUint object with the 8-bit unsigned integer
       
  3005 //!								3. Add the CSdpAttrValueUint value to CSdpAttrValueDES list
       
  3006 //!								4. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  3007 //!								5. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  3008 //!								6. Create a new service record, with a single service class, in the SDP database.
       
  3009 //!								   Verify the resulting err code is KErrNone.
       
  3010 //!								7. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  3011 //!								   Verify the resulting err code is KErrNone.
       
  3012 //!								8. Clean the database
       
  3013 //! @SYMTestStatus				Implemented
       
  3014 //! @SYMTestPriority			Low
       
  3015 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  3016 //! @SYMTestType				CIT
       
  3017 
       
  3018 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  3019 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  3020 			SHARED_ACTIVE_SCHEDULER
       
  3021 			CREATE_OBJECT	RSdpDatabase	database1	
       
  3022 			CREATE_OBJECT	RSdp	rsdp	
       
  3023 			CREATE_OBJECT	TSdpIntBuf8	attrIntBuf8	
       
  3024 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
  3025 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint	
       
  3026 			COMMAND		attrIntBuf8	NewIntBuf		BTSDP-Lists-PublicApi-Passive-1048-0001command2NewIntBuf
       
  3027 			COMMAND		rsdp	Constructor
       
  3028 			COMMAND		rsdp	Connect
       
  3029 			OUTSTANDING
       
  3030 			COMMAND		database1	Constructor
       
  3031 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1048-0001command8Open
       
  3032 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1048-0001command9CreateServiceRecordL
       
  3033 			COMMAND		attrValueUint	NewUintL		BTSDP-Lists-PublicApi-Passive-1048-0001command11NewUintL
       
  3034 			COMMAND		attrValueDEA	NewDEAL
       
  3035 			COMMAND		attrValueDEA	AppendValueL		BTSDP-Lists-PublicApi-Passive-1048-0001command14AppendValueL
       
  3036 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1048-0001command16UpdateAttributeL
       
  3037 			STORE	database1	
       
  3038 			STORE	rsdp	
       
  3039 			STORE_ACTIVE_SCHEDULER
       
  3040 	END_TEST_BLOCK
       
  3041 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  3042 
       
  3043 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  3044 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  3045 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  3046 			SHARED_ACTIVE_SCHEDULER
       
  3047 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  3048 			RESTORE_OBJECT	RSdp	rsdp	
       
  3049 			COMMAND		database1	DeleteRecordL
       
  3050 			COMMAND		database1	Close
       
  3051 			COMMAND		rsdp	Close
       
  3052 			STORE_ACTIVE_SCHEDULER
       
  3053 	END_TEST_BLOCK
       
  3054 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1048
       
  3055 
       
  3056 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1049
       
  3057 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1049
       
  3058 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueUint, TSdpIntBuf<16>
       
  3059 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  3060 //!								Uses API elements: 	NewIntBuf() from TSdpIntBuf<16>,
       
  3061 //!													NewUintL() from CSdpAttrValueUint,
       
  3062 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  3063 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  3064 //! @SYMTestActions				1. Convert an integer to a 16-bit unsigned integer using NewIntBuf() function
       
  3065 //!								2. Construct a CSdpAttrValueUint object with the 16-bit unsigned integer
       
  3066 //!								3. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  3067 //!								4. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  3068 //!								5. Create a new service record, with a single service class, in the SDP database.
       
  3069 //!								   Verify the resulting err code is KErrNone.
       
  3070 //!								6. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  3071 //!								   Verify the resulting err code is KErrNone.
       
  3072 //!								7. Clean the database
       
  3073 //! @SYMTestStatus				Implemented
       
  3074 //! @SYMTestPriority			Low
       
  3075 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  3076 //! @SYMTestType				CIT
       
  3077 
       
  3078 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  3079 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  3080 			SHARED_ACTIVE_SCHEDULER
       
  3081 			CREATE_OBJECT	RSdpDatabase	database1	
       
  3082 			CREATE_OBJECT	RSdp	rsdp	
       
  3083 			CREATE_OBJECT	TSdpIntBuf16	attrIntBuf16	
       
  3084 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint	
       
  3085 			COMMAND		attrIntBuf16	NewIntBuf		BTSDP-Lists-PublicApi-Passive-1049-0001command2NewIntBuf
       
  3086 			COMMAND		attrValueUint	NewUintL		BTSDP-Lists-PublicApi-Passive-1049-0001command4NewUintL
       
  3087 			COMMAND		rsdp	Constructor
       
  3088 			COMMAND		rsdp	Connect
       
  3089 			OUTSTANDING
       
  3090 			COMMAND		database1	Constructor
       
  3091 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1049-0001command10Open
       
  3092 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1049-0001command11CreateServiceRecordL
       
  3093 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1049-0001command12UpdateAttributeL
       
  3094 			STORE	database1	
       
  3095 			STORE	rsdp	
       
  3096 			STORE_ACTIVE_SCHEDULER
       
  3097 	END_TEST_BLOCK
       
  3098 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  3099 
       
  3100 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  3101 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  3102 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  3103 			SHARED_ACTIVE_SCHEDULER
       
  3104 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  3105 			RESTORE_OBJECT	RSdp	rsdp	
       
  3106 			COMMAND		database1	DeleteRecordL
       
  3107 			COMMAND		database1	Close
       
  3108 			COMMAND		rsdp	Close
       
  3109 			STORE_ACTIVE_SCHEDULER
       
  3110 	END_TEST_BLOCK
       
  3111 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1049
       
  3112 
       
  3113 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1050
       
  3114 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Passive-Master-1050
       
  3115 //! @SYMAPI						RSdp, RSdpDatabase, CSdpAttrValueDES, CSdpAttrValueUint, TSdpIntBuf<32>
       
  3116 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  3117 //!								Uses API elements: 	NewIntBuf() from TSdpIntBuf<16>,
       
  3118 //!													NewUintL() from CSdpAttrValueUint,
       
  3119 //!													Constructor(), Connect(), CreateServiceRecordL(), UpdateAttributeL() and Close() from RSdp
       
  3120 //!													Constructor(), Open(), DeleteRecord(), Close() from RSdpDatabase
       
  3121 //! @SYMTestActions				1. Convert an integer to a 32-bit unsigned integer using NewIntBuf() function
       
  3122 //!								2. Construct a CSdpAttrValueUint object with the 32-bit unsigned integer
       
  3123 //!								3. Add the CSdpAttrValueUint object to CSdpAttrValueDES list
       
  3124 //!								4. Connect a client process to the database. Verify the resulting err code is KErrNone.
       
  3125 //!								5. Open a SDP database subsession. Verify the resulting err code is KErrNone.
       
  3126 //!								6. Create a new service record, with a single service class, in the SDP database.
       
  3127 //!								   Verify the resulting err code is KErrNone.
       
  3128 //!								7. Update a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  3129 //!								   Verify the resulting err code is KErrNone.
       
  3130 //!								8. Clean the database
       
  3131 //! @SYMTestStatus				Implemented
       
  3132 //! @SYMTestPriority			Low
       
  3133 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  3134 //! @SYMTestType				CIT
       
  3135 
       
  3136 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase	
       
  3137 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  3138 			SHARED_ACTIVE_SCHEDULER
       
  3139 			CREATE_OBJECT	RSdpDatabase	database1	
       
  3140 			CREATE_OBJECT	RSdp	rsdp	
       
  3141 			CREATE_OBJECT	TSdpIntBuf32	attrIntBuf32	
       
  3142 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint	
       
  3143 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  3144 			COMMAND		attrIntBuf32	NewIntBuf		BTSDP-Lists-PublicApi-Passive-1050-0001command2NewIntBuf
       
  3145 			COMMAND		attrValueUint	NewUintL		BTSDP-Lists-PublicApi-Passive-1050-0001command4NewUintL
       
  3146 			COMMAND		attrValueDES	NewDESL
       
  3147 			COMMAND		attrValueDES	AppendValueL		BTSDP-Lists-PublicApi-Passive-1050-0001command7AppendValueL
       
  3148 			COMMAND		rsdp	Constructor
       
  3149 			COMMAND		rsdp	Connect
       
  3150 			OUTSTANDING
       
  3151 			COMMAND		database1	Constructor
       
  3152 			COMMAND		database1	Open		BTSDP-Lists-PublicApi-Passive-1050-0001command13Open
       
  3153 			COMMAND		database1	CreateServiceRecordL		BTSDP-Lists-PublicApi-Passive-1050-0001command14CreateServiceRecordL
       
  3154 			COMMAND		database1	UpdateAttributeL		BTSDP-Lists-PublicApi-Passive-1050-0001command15UpdateAttributeL
       
  3155 			STORE	database1	
       
  3156 			STORE	rsdp	
       
  3157 			STORE_ACTIVE_SCHEDULER
       
  3158 	END_TEST_BLOCK
       
  3159 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  3160 
       
  3161 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  3162 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  3163 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Passive-Master.ini
       
  3164 			SHARED_ACTIVE_SCHEDULER
       
  3165 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  3166 			RESTORE_OBJECT	RSdp	rsdp	
       
  3167 			COMMAND		database1	DeleteRecordL
       
  3168 			COMMAND		database1	Close
       
  3169 			COMMAND		rsdp	Close
       
  3170 			STORE_ACTIVE_SCHEDULER
       
  3171 	END_TEST_BLOCK
       
  3172 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-Master-1050
       
  3173 
       
  3174 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveExecutionResultListsActiveSlave
       
  3175 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StopTDService
       
  3176 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StopSyncService