bluetoothapitest/bluetoothsvs/T_BTSdpAPI/scripts/BTSDP-Agent-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			21/09/2006
       
    28 ///////////////////////////////////////////////////////////////////////////////
       
    29 
       
    30 RUN_UTILS	MkDir	${SYSDRIVE}\bluetooth\
       
    31 RUN_UTILS	MkDir	${SYSDRIVE}\bluetooth\sdp\
       
    32 RUN_UTILS	MkDir	${SYSDRIVE}\bluetooth\sdp\T_SdpAgent\
       
    33 
       
    34 LOAD_SUITE	UCCControlTE
       
    35 LOAD_SUITE	T_BTSdpAPI	-SharedData
       
    36 DELAY		2000
       
    37 
       
    38 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncService
       
    39 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartTDService
       
    40 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini BuildRunActiveSlave
       
    41 
       
    42 DELAY		10000
       
    43 
       
    44 // ****************************************************************************
       
    45 // Set up BT Addresses
       
    46 // ****************************************************************************
       
    47 
       
    48 START_TESTCASE BTSDP-Agent-PublicApi-Passive-Master-SetBTAddresses
       
    49 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
    50 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
    51 			SHARED_ACTIVE_SCHEDULER
       
    52 			CREATE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
    53 			CREATE_OBJECT	TRfcommSockAddr	TRfcommSockAddr1	
       
    54 			CREATE_OBJECT	CBluetoothSocket	CBluetoothSessionSocket	
       
    55 			COMMAND		CBluetoothSocket1	RSocketServerConnect
       
    56 			COMMAND		CBluetoothSocket1	NewL		BTSDP-Agent-PublicApi-Passive-SetBTAddresses-0001command3NewL
       
    57 			COMMAND		TRfcommSockAddr1	Construct
       
    58 			COMMAND		TRfcommSockAddr1	SetFamily		BTSDP-Agent-PublicApi-Passive-SetBTAddresses-0001command6SetFamily
       
    59 			COMMAND		TRfcommSockAddr1	SetPort		BTSDP-Agent-PublicApi-Passive-SetBTAddresses-0001command7SetPort
       
    60 			COMMAND		CBluetoothSocket1	Bind		BTSDP-Agent-PublicApi-Passive-SetBTAddresses-0001command9Bind
       
    61 			COMMAND		CBluetoothSocket1	Listen		BTSDP-Agent-PublicApi-Passive-SetBTAddresses-0001command10Listen
       
    62 			COMMAND		CBluetoothSessionSocket	SetRsocketServerFromCBTSocket		BTSDP-Agent-PublicApi-Passive-SetBTAddresses-0001command12SetRsocketServerFromCBTSocket
       
    63 			COMMAND		CBluetoothSessionSocket	NewL		BTSDP-Agent-PublicApi-Passive-SetBTAddresses-0001command13NewL
       
    64 			STORE	CBluetoothSocket1	
       
    65 			STORE	CBluetoothSessionSocket	
       
    66 			STORE_ACTIVE_SCHEDULER
       
    67 	END_TEST_BLOCK
       
    68 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult	
       
    69 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase		
       
    70 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
    71 			SHARED_ACTIVE_SCHEDULER
       
    72 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
    73 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSessionSocket	
       
    74 			CREATE_OBJECT	TBTDevAddr	TBTDevAddrLocal	
       
    75 			COMMAND		TBTDevAddrLocal	Construct
       
    76 			COMMAND		TBTDevAddrLocal	OpenHostResolver		BTSDP-Agent-PublicApi-Passive-SetBTAddresses-0002command3OpenHostResolver
       
    77 			COMMAND		TBTDevAddrLocal	SetHostNameL		BTSDP-Agent-PublicApi-Passive-SetBTAddresses-0002command4SetHostNameL
       
    78 			COMMAND		TBTDevAddrLocal	SetDiscoverable
       
    79 			STORE	CBluetoothSocket1	
       
    80 			STORE	CBluetoothSessionSocket	
       
    81 			STORE	TBTDevAddrLocal	
       
    82 			STORE_ACTIVE_SCHEDULER
       
    83 	END_TEST_BLOCK
       
    84 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult		
       
    85 END_TESTCASE BTSDP-Agent-PublicApi-Passive-Master-SetBTAddresses
       
    86 
       
    87 
       
    88 // ****************************************************************************
       
    89 // T_RSdpAgent
       
    90 // ****************************************************************************	
       
    91 
       
    92 START_TESTCASE BTSDP-Agent-PublicApi-Passive-Master-0301
       
    93 //! @SYMTestCaseID				BTSDP-Agent-PublicApi-Passive-Master-0301
       
    94 //! @SYMAPI						RSdpDatabase, RSdp, CSdpAttrValueInt
       
    95 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
    96 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
    97 //!													RSdp(), Connect() from RSdp
       
    98 //!													NewIntL() from CSdpAttrValueInt
       
    99 //! @SYMTestActions				1. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   100 //!								2. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   101 //!								3. Creates a new service record, with a single service class, in the SDP database.
       
   102 //!								   Verify the resulting err code is KErrNone.
       
   103 //!								4. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   104 //!								   Verify the resulting err code is KErrNone.
       
   105 //! 							5. Continue with the stored objects of last test case. 
       
   106 //!								6. Delete service record created in previous test case.
       
   107 //!								7. Close the client process. Close the SDP database subsession.
       
   108 //! @SYMTestStatus				Implemented
       
   109 //! @SYMTestPriority			Critical
       
   110 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   111 //! @SYMTestType				CIT
       
   112 
       
   113 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   114 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
   115 			SHARED_ACTIVE_SCHEDULER
       
   116 			CREATE_OBJECT	RSdpDatabase	database1	
       
   117 			CREATE_OBJECT	RSdp	rsdp	
       
   118 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
   119 			COMMAND		attrValueInt	NewIntL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command2NewIntL
       
   120 			COMMAND		rsdp	Constructor
       
   121 			COMMAND		rsdp	Connect
       
   122 			OUTSTANDING
       
   123 			COMMAND		database1	Constructor
       
   124 			COMMAND		database1	Open		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command8Open
       
   125 			COMMAND		database1	CreateServiceRecordL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command9CreateServiceRecordL
       
   126 			COMMAND		database1	CreateServiceRecordL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command10CreateServiceRecordL
       
   127 			COMMAND		database1	CreateServiceRecordL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command11CreateServiceRecordL
       
   128 			COMMAND		database1	UpdateAttributeL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command12UpdateAttributeL
       
   129 			COMMAND		attrValueInt	NewIntL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command14NewIntL
       
   130 			COMMAND		database1	UpdateAttributeL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command16UpdateAttributeL
       
   131 			STORE	database1	
       
   132 			STORE	rsdp	
       
   133 			STORE_ACTIVE_SCHEDULER
       
   134 	END_TEST_BLOCK
       
   135 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   136 
       
   137 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   138 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   139 
       
   140 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   141 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
   142 			SHARED_ACTIVE_SCHEDULER
       
   143 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   144 			RESTORE_OBJECT	RSdp	rsdp	
       
   145 			COMMAND		database1	DeleteRecordL
       
   146 			COMMAND		database1	DeleteRecordL
       
   147 			COMMAND		database1	DeleteRecordL
       
   148 			COMMAND		database1	Close
       
   149 			COMMAND		rsdp	Close
       
   150 			STORE_ACTIVE_SCHEDULER
       
   151 	END_TEST_BLOCK
       
   152 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   153 
       
   154 END_TESTCASE   BTSDP-Agent-PublicApi-Passive-Master-0301
       
   155 
       
   156 START_TESTCASE BTSDP-Agent-PublicApi-Passive-Master-0302
       
   157 //! @SYMTestCaseID				BTSDP-Agent-PublicApi-Passive-Master-0302
       
   158 //! @SYMAPI						RSdpDatabase, RSdp, CSdpAttrValueInt
       
   159 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   160 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
   161 //!													RSdp(), Connect() from RSdp
       
   162 //!													NewIntL() from CSdpAttrValueInt
       
   163 //! @SYMTestActions				1. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   164 //!								2. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   165 //!								3. Creates a new service record, with a single service class, in the SDP database.
       
   166 //!								   Verify the resulting err code is KErrNone.
       
   167 //!								4. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   168 //!								   Verify the resulting err code is KErrNone.
       
   169 //! 							5. Continue with the stored objects of last test case. 
       
   170 //!								6. Delete service record created in previous test case.
       
   171 //!								7. Close the client process. Close the SDP database subsession.
       
   172 //! @SYMTestStatus				Implemented
       
   173 //! @SYMTestPriority			Critical
       
   174 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   175 //! @SYMTestType				CIT
       
   176 
       
   177 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   178 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
   179 			SHARED_ACTIVE_SCHEDULER
       
   180 			CREATE_OBJECT	RSdpDatabase	database1	
       
   181 			CREATE_OBJECT	RSdp	rsdp	
       
   182 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
   183 			COMMAND		attrValueInt	NewIntL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command2NewIntL
       
   184 			COMMAND		rsdp	Constructor
       
   185 			COMMAND		rsdp	Connect
       
   186 			OUTSTANDING
       
   187 			COMMAND		database1	Constructor
       
   188 			COMMAND		database1	Open		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command8Open
       
   189 			COMMAND		database1	CreateServiceRecordL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command9CreateServiceRecordL
       
   190 			COMMAND		database1	CreateServiceRecordL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command10CreateServiceRecordL
       
   191 			COMMAND		database1	CreateServiceRecordL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command11CreateServiceRecordL
       
   192 			COMMAND		database1	UpdateAttributeL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command12UpdateAttributeL
       
   193 			COMMAND		attrValueInt	NewIntL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command14NewIntL
       
   194 			COMMAND		database1	UpdateAttributeL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command16UpdateAttributeL
       
   195 			STORE	database1	
       
   196 			STORE	rsdp	
       
   197 			STORE_ACTIVE_SCHEDULER
       
   198 	END_TEST_BLOCK
       
   199 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   200 
       
   201 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   202 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   203 
       
   204 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   205 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
   206 			SHARED_ACTIVE_SCHEDULER
       
   207 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   208 			RESTORE_OBJECT	RSdp	rsdp	
       
   209 			COMMAND		database1	DeleteRecordL
       
   210 			COMMAND		database1	DeleteRecordL
       
   211 			COMMAND		database1	DeleteRecordL
       
   212 			COMMAND		database1	Close
       
   213 			COMMAND		rsdp	Close
       
   214 			STORE_ACTIVE_SCHEDULER
       
   215 	END_TEST_BLOCK
       
   216 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   217 
       
   218 END_TESTCASE   BTSDP-Agent-PublicApi-Passive-Master-0302
       
   219 
       
   220 START_TESTCASE BTSDP-Agent-PublicApi-Passive-Master-0303
       
   221 //! @SYMTestCaseID				BTSDP-Agent-PublicApi-Passive-Master-0303
       
   222 //! @SYMAPI						RSdpDatabase, RSdp, CSdpAttrValueInt
       
   223 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   224 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
   225 //!													RSdp(), Connect() from RSdp
       
   226 //!													NewIntL() from CSdpAttrValueInt
       
   227 //! @SYMTestActions				1. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   228 //!								2. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   229 //!								3. Creates a new service record, with a single service class, in the SDP database.
       
   230 //!								   Verify the resulting err code is KErrNone.
       
   231 //!								4. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   232 //!								   Verify the resulting err code is KErrNone.
       
   233 //! 							5. Continue with the stored objects of last test case. 
       
   234 //!								6. Delete service record created in previous test case.
       
   235 //!								7. Close the client process. Close the SDP database subsession.
       
   236 //! @SYMTestStatus				Implemented
       
   237 //! @SYMTestPriority			Critical
       
   238 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   239 //! @SYMTestType				CIT
       
   240 
       
   241 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   242 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
   243 			SHARED_ACTIVE_SCHEDULER
       
   244 			CREATE_OBJECT	RSdpDatabase	database1	
       
   245 			CREATE_OBJECT	RSdp	rsdp	
       
   246 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
   247 			COMMAND		attrValueInt	NewIntL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command2NewIntL
       
   248 			COMMAND		rsdp	Constructor
       
   249 			COMMAND		rsdp	Connect
       
   250 			OUTSTANDING
       
   251 			COMMAND		database1	Constructor
       
   252 			COMMAND		database1	Open		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command8Open
       
   253 			COMMAND		database1	CreateServiceRecordL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command9CreateServiceRecordL
       
   254 			COMMAND		database1	CreateServiceRecordL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command10CreateServiceRecordL
       
   255 			COMMAND		database1	CreateServiceRecordL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command11CreateServiceRecordL
       
   256 			COMMAND		database1	UpdateAttributeL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command12UpdateAttributeL
       
   257 			COMMAND		attrValueInt	NewIntL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command14NewIntL
       
   258 			COMMAND		database1	UpdateAttributeL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command16UpdateAttributeL
       
   259 			STORE	database1	
       
   260 			STORE	rsdp	
       
   261 			STORE_ACTIVE_SCHEDULER
       
   262 	END_TEST_BLOCK
       
   263 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   264 
       
   265 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   266 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   267 
       
   268 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   269 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
   270 			SHARED_ACTIVE_SCHEDULER
       
   271 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   272 			RESTORE_OBJECT	RSdp	rsdp	
       
   273 			COMMAND		database1	DeleteRecordL
       
   274 			COMMAND		database1	DeleteRecordL
       
   275 			COMMAND		database1	DeleteRecordL
       
   276 			COMMAND		database1	Close
       
   277 			COMMAND		rsdp	Close
       
   278 			STORE_ACTIVE_SCHEDULER
       
   279 	END_TEST_BLOCK
       
   280 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   281 
       
   282 END_TESTCASE   BTSDP-Agent-PublicApi-Passive-Master-0303
       
   283 
       
   284 START_TESTCASE BTSDP-Agent-PublicApi-Passive-Master-0304
       
   285 //! @SYMTestCaseID				BTSDP-Agent-PublicApi-Passive-Master-0304
       
   286 //! @SYMAPI						RSdpDatabase, RSdp, CSdpAttrValueInt
       
   287 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   288 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
   289 //!													RSdp(), Connect() from RSdp
       
   290 //!													NewIntL() from CSdpAttrValueInt
       
   291 //! @SYMTestActions				1. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   292 //!								2. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   293 //!								3. Creates a new service record, with a single service class, in the SDP database.
       
   294 //!								   Verify the resulting err code is KErrNone.
       
   295 //!								4. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   296 //!								   Verify the resulting err code is KErrNone.
       
   297 //! 							5. Continue with the stored objects of last test case. 
       
   298 //!								6. Delete service record created in previous test case.
       
   299 //!								7. Close the client process. Close the SDP database subsession.
       
   300 //! @SYMTestStatus				Implemented
       
   301 //! @SYMTestPriority			Critical
       
   302 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   303 //! @SYMTestType				CIT
       
   304 
       
   305 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   306 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
   307 			SHARED_ACTIVE_SCHEDULER
       
   308 			CREATE_OBJECT	RSdpDatabase	database1	
       
   309 			CREATE_OBJECT	RSdp	rsdp	
       
   310 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
   311 			COMMAND		attrValueInt	NewIntL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command2NewIntL
       
   312 			COMMAND		rsdp	Constructor
       
   313 			COMMAND		rsdp	Connect
       
   314 			OUTSTANDING
       
   315 			COMMAND		database1	Constructor
       
   316 			COMMAND		database1	Open		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command8Open
       
   317 			COMMAND		database1	CreateServiceRecordL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command9CreateServiceRecordL
       
   318 			COMMAND		database1	CreateServiceRecordL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command10CreateServiceRecordL
       
   319 			COMMAND		database1	CreateServiceRecordL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command11CreateServiceRecordL
       
   320 			COMMAND		database1	UpdateAttributeL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command12UpdateAttributeL
       
   321 			COMMAND		attrValueInt	NewIntL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command14NewIntL
       
   322 			COMMAND		database1	UpdateAttributeL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0001command16UpdateAttributeL
       
   323 			STORE	database1	
       
   324 			STORE	rsdp	
       
   325 			STORE_ACTIVE_SCHEDULER
       
   326 	END_TEST_BLOCK
       
   327 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   328 
       
   329 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   330 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   331 
       
   332 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   333 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
   334 			SHARED_ACTIVE_SCHEDULER
       
   335 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   336 			RESTORE_OBJECT	RSdp	rsdp	
       
   337 			COMMAND		database1	DeleteRecordL
       
   338 			COMMAND		database1	DeleteRecordL
       
   339 			COMMAND		database1	DeleteRecordL
       
   340 			COMMAND		database1	Close
       
   341 			COMMAND		rsdp	Close
       
   342 			STORE_ACTIVE_SCHEDULER
       
   343 	END_TEST_BLOCK
       
   344 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   345 
       
   346 END_TESTCASE   BTSDP-Agent-PublicApi-Passive-Master-0304
       
   347 
       
   348 
       
   349 START_TESTCASE BTSDP-Agent-PublicApi-Passive-Master-0306
       
   350 //! @SYMTestCaseID				BTSDP-Agent-PublicApi-Passive-Master-0306
       
   351 //! @SYMAPI						RSdpDatabase
       
   352 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   353 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
   354 //!													RSdp(), Connect() from RSdp
       
   355 //!													NewIntL() from CSdpAttrValueInt
       
   356 //! @SYMTestActions				1. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   357 //!								2. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   358 //!								3. Creates a new service record, with a single service class, in the SDP database.
       
   359 //!								   Verify the resulting err code is KErrNone.
       
   360 //!								4. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   361 //!								   Verify the resulting err code is KErrNone.
       
   362 //! 							5. Continue with the stored objects of last test case. 
       
   363 //!								6. Delete service record created in previous test case.
       
   364 //!								7. Close the client process. Close the SDP database subsession.
       
   365 //! @SYMTestStatus				Implemented
       
   366 //! @SYMTestPriority			Critical
       
   367 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
   368 //! @SYMTestType				CIT
       
   369 
       
   370 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   371 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
   372 			SHARED_ACTIVE_SCHEDULER
       
   373 			CREATE_OBJECT	RSdpDatabase	database1	
       
   374 			CREATE_OBJECT	RSdp	rsdp	
       
   375 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
   376 			COMMAND		attrValueInt	NewIntL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0002command2NewIntL
       
   377 			COMMAND		rsdp	Constructor
       
   378 			COMMAND		rsdp	Connect
       
   379 			OUTSTANDING
       
   380 			COMMAND		database1	Constructor
       
   381 			COMMAND		database1	Open		BTSDP-Agent-PublicApi-Passive-SetupPassive-0002command8Open
       
   382 			COMMAND		database1	CreateServiceRecordL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0002command9CreateServiceRecordL
       
   383 			COMMAND		database1	UpdateAttributeL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0002command10UpdateAttributeL
       
   384 			COMMAND		attrValueInt	NewIntL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0002command12NewIntL
       
   385 			COMMAND		database1	UpdateAttributeL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0002command14UpdateAttributeL
       
   386 			STORE	database1	
       
   387 			STORE	rsdp	
       
   388 			STORE_ACTIVE_SCHEDULER
       
   389 	END_TEST_BLOCK
       
   390 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   391 
       
   392 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   393 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   394 
       
   395 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   396 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
   397 			SHARED_ACTIVE_SCHEDULER
       
   398 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   399 			RESTORE_OBJECT	RSdp	rsdp	
       
   400 			COMMAND		database1	DeleteRecordL
       
   401 			COMMAND		database1	Close
       
   402 			COMMAND		rsdp	Close
       
   403 			STORE_ACTIVE_SCHEDULER
       
   404 	END_TEST_BLOCK
       
   405 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   406 
       
   407 
       
   408 END_TESTCASE   BTSDP-Agent-PublicApi-Passive-Master-0306
       
   409 
       
   410 
       
   411 START_TESTCASE BTSDP-Agent-PublicApi-Passive-Master-0307
       
   412 //! @SYMTestCaseID				BTSDP-Agent-PublicApi-Passive-Master-0307
       
   413 //! @SYMAPI						RSdpDatabase
       
   414 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   415 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
   416 //!													RSdp(), Connect() from RSdp
       
   417 //!													NewIntL() from CSdpAttrValueInt
       
   418 //! @SYMTestActions				1. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   419 //!								2. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   420 //!								3. Creates a new service record, with a single service class, in the SDP database.
       
   421 //!								   Verify the resulting err code is KErrNone.
       
   422 //!								4. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   423 //!								   Verify the resulting err code is KErrNone.
       
   424 //! 							5. Continue with the stored objects of last test case. 
       
   425 //!								6. Delete service record created in previous test case.
       
   426 //!								7. Close the client process. Close the SDP database subsession.
       
   427 //! @SYMTestStatus				Implemented
       
   428 //! @SYMTestPriority			Critical
       
   429 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
   430 //! @SYMTestType				CIT
       
   431 
       
   432 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   433 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
   434 			SHARED_ACTIVE_SCHEDULER
       
   435 			CREATE_OBJECT	RSdpDatabase	database1	
       
   436 			CREATE_OBJECT	RSdp	rsdp	
       
   437 			CREATE_OBJECT	CElementParser	celementparser1	
       
   438 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
   439 			COMMAND		attrValueDEA	NewDEAL
       
   440 			COMMAND		attrValueDEA	BuildUintL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0003command3BuildUintL
       
   441 			COMMAND		celementparser1	NewL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0003command5NewL
       
   442 			COMMAND		celementparser1	ParseElementsL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0003command6ParseElementsL
       
   443 			COMMAND		celementparser1	Builder		BTSDP-Agent-PublicApi-Passive-SetupPassive-0003command7Builder
       
   444 			COMMAND		rsdp	Constructor
       
   445 			COMMAND		rsdp	Connect
       
   446 			OUTSTANDING
       
   447 			COMMAND		database1	Constructor
       
   448 			COMMAND		database1	Open		BTSDP-Agent-PublicApi-Passive-SetupPassive-0003command13Open
       
   449 			COMMAND		database1	CreateServiceRecordL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0003command14CreateServiceRecordL
       
   450 			COMMAND		database1	UpdateAttributeL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0003command15UpdateAttributeL
       
   451 			STORE	database1	
       
   452 			STORE	rsdp	
       
   453 			STORE_ACTIVE_SCHEDULER
       
   454 	END_TEST_BLOCK
       
   455 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   456 
       
   457 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   458 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   459 
       
   460 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   461 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
   462 			SHARED_ACTIVE_SCHEDULER
       
   463 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   464 			RESTORE_OBJECT	RSdp	rsdp	
       
   465 			COMMAND		database1	DeleteRecordL
       
   466 			COMMAND		database1	Close
       
   467 			COMMAND		rsdp	Close
       
   468 			STORE_ACTIVE_SCHEDULER
       
   469 	END_TEST_BLOCK
       
   470 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   471 
       
   472 END_TESTCASE   BTSDP-Agent-PublicApi-Passive-Master-0307
       
   473 
       
   474 //START_TESTCASE BTSDP-Agent-PublicApi-Passive-Master-0308
       
   475 //! @SYMTestCaseID				BTSDP-Agent-PublicApi-Passive-Master-0308
       
   476 //! @SYMAPI						RSdpDatabase
       
   477 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   478 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
   479 //!													RSdp(), Connect() from RSdp
       
   480 //!													NewIntL() from CSdpAttrValueInt
       
   481 //! @SYMTestActions				1. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   482 //!								2. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   483 //!								3. Creates a new service record, with a single service class, in the SDP database.
       
   484 //!								   Verify the resulting err code is KErrNone.
       
   485 //!								4. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   486 //!								   Verify the resulting err code is KErrNone.
       
   487 //! 							5. Continue with the stored objects of last test case. 
       
   488 //!								6. Delete service record created in previous test case.
       
   489 //!								7. Close the client process. Close the SDP database subsession.
       
   490 //! @SYMTestStatus				Implemented
       
   491 //! @SYMTestPriority			Critical
       
   492 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
   493 //! @SYMTestType				CIT
       
   494 
       
   495 //	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   496 //	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
   497 //			SHARED_ACTIVE_SCHEDULER
       
   498 //			CREATE_OBJECT	RSdpDatabase	database1	
       
   499 //			CREATE_OBJECT	RSdp	rsdp	
       
   500 //			CREATE_OBJECT	CElementParser	celementparser1	
       
   501 //			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
   502 //			COMMAND		attrValueDEA	NewDEAL
       
   503 //			COMMAND		attrValueDEA	BuildUintL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0003command3BuildUintL
       
   504 //			COMMAND		celementparser1	NewL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0003command5NewL
       
   505 //			COMMAND		celementparser1	ParseElementsL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0003command6ParseElementsL
       
   506 //			COMMAND		celementparser1	Builder		BTSDP-Agent-PublicApi-Passive-SetupPassive-0003command7Builder
       
   507 //			COMMAND		rsdp	Constructor
       
   508 //			COMMAND		rsdp	Connect
       
   509 //			OUTSTANDING
       
   510 //			COMMAND		database1	Constructor
       
   511 //			COMMAND		database1	Open		BTSDP-Agent-PublicApi-Passive-SetupPassive-0003command13Open
       
   512 //			COMMAND		database1	CreateServiceRecordL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0003command14CreateServiceRecordL
       
   513 //			COMMAND		database1	UpdateAttributeL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0003command15UpdateAttributeL
       
   514 //			STORE	database1	
       
   515 //			STORE	rsdp	
       
   516 //			STORE_ACTIVE_SCHEDULER
       
   517 //	END_TEST_BLOCK
       
   518 //	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   519 
       
   520 //	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   521 //	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   522 
       
   523 //	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   524 //	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
   525 //			SHARED_ACTIVE_SCHEDULER
       
   526 //			RESTORE_OBJECT	RSdpDatabase	database1	
       
   527 //			RESTORE_OBJECT	RSdp	rsdp	
       
   528 //			COMMAND		database1	DeleteRecordL
       
   529 //			COMMAND		database1	Close
       
   530 //			COMMAND		rsdp	Close
       
   531 //			STORE_ACTIVE_SCHEDULER
       
   532 //	END_TEST_BLOCK
       
   533 //	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   534 //END_TESTCASE   BTSDP-Agent-PublicApi-Passive-Master-0308
       
   535 
       
   536 
       
   537 START_TESTCASE BTSDP-Agent-PublicApi-Passive-Master-0309
       
   538 //! @SYMTestCaseID				BTSDP-Agent-PublicApi-Passive-Master-0309
       
   539 //! @SYMAPI						RSdpDatabase
       
   540 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   541 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
   542 //!													RSdp(), Connect() from RSdp
       
   543 //!													NewL(), ParseElementsL(), Builder() from CElementParser
       
   544 //!													NewDEAL(), BuildUintL() from CSdpAttrValueDEA
       
   545 //! @SYMTestActions				1. Create new AttrValueDEA object. Verify the resulting err code is KErrNone.
       
   546 //!								2. Build a new Uint element to AttrValueDEA list. Verify the resulting err code is KErrNone.
       
   547 //!								3. Construct a ElementParser with AttrValueDEA of step 2. Verify the resulting err code is KErrNone.
       
   548 //!								4. Parse the data of "testdata.txt". The results will be put into AttrValueDEA as AttrValues.
       
   549 //!								   Verify the resulting err code is KErrNone.
       
   550 //!								5. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   551 //!								6. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   552 //!								7. Creates a new service record, with a single service class, in the SDP database.
       
   553 //!								   Verify the resulting err code is KErrNone.
       
   554 //!								8. Creates a service record attribute with the AttrValueDEA of step 2.
       
   555 //!								   Verify the resulting err code is KErrNone.
       
   556 //! 							9. Continue with the stored objects of last test case. 
       
   557 //!								10. Delete service record created in previous test case.
       
   558 //!								11. Close the client process. Close the SDP database subsession.
       
   559 //! @SYMTestStatus				Implemented
       
   560 //! @SYMTestPriority			Critical
       
   561 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
   562 //! @SYMTestType				CIT
       
   563 
       
   564 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   565 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
   566 			SHARED_ACTIVE_SCHEDULER
       
   567 			CREATE_OBJECT	RSdpDatabase	database1	
       
   568 			CREATE_OBJECT	RSdp	rsdp	
       
   569 			CREATE_OBJECT	CElementParser	celementparser1	
       
   570 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
   571 			COMMAND		attrValueDEA	NewDEAL
       
   572 			COMMAND		attrValueDEA	BuildUintL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0003command3BuildUintL
       
   573 			COMMAND		celementparser1	NewL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0003command5NewL
       
   574 			COMMAND		celementparser1	ParseElementsL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0003command6ParseElementsL
       
   575 			COMMAND		celementparser1	Builder		BTSDP-Agent-PublicApi-Passive-SetupPassive-0003command7Builder
       
   576 			COMMAND		rsdp	Constructor
       
   577 			COMMAND		rsdp	Connect
       
   578 			OUTSTANDING
       
   579 			COMMAND		database1	Constructor
       
   580 			COMMAND		database1	Open		BTSDP-Agent-PublicApi-Passive-SetupPassive-0003command13Open
       
   581 			COMMAND		database1	CreateServiceRecordL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0003command14CreateServiceRecordL
       
   582 			COMMAND		database1	UpdateAttributeL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0003command15UpdateAttributeL
       
   583 			STORE	database1	
       
   584 			STORE	rsdp	
       
   585 			STORE_ACTIVE_SCHEDULER
       
   586 	END_TEST_BLOCK
       
   587 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   588 
       
   589 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   590 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   591 
       
   592 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   593 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
   594 			SHARED_ACTIVE_SCHEDULER
       
   595 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   596 			RESTORE_OBJECT	RSdp	rsdp	
       
   597 			COMMAND		database1	DeleteRecordL
       
   598 			COMMAND		database1	Close
       
   599 			COMMAND		rsdp	Close
       
   600 			STORE_ACTIVE_SCHEDULER
       
   601 	END_TEST_BLOCK
       
   602 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   603 END_TESTCASE   BTSDP-Agent-PublicApi-Passive-Master-0309
       
   604 
       
   605 START_TESTCASE BTSDP-Agent-PublicApi-Passive-Master-0310
       
   606 //! @SYMTestCaseID				BTSDP-Agent-PublicApi-Passive-Master-0310
       
   607 //! @SYMAPI						RSdpDatabase
       
   608 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   609 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
   610 //!													RSdp(), Connect() from RSdp
       
   611 //!													NewL(), ParseElementsL(), Builder() from CElementParser
       
   612 //!													NewDEAL(), BuildUintL() from CSdpAttrValueDEA
       
   613 //! @SYMTestActions				1. Create new AttrValueDEA object. Verify the resulting err code is KErrNone.
       
   614 //!								2. Build a new Uint element to AttrValueDEA list. Verify the resulting err code is KErrNone.
       
   615 //!								3. Construct a ElementParser with AttrValueDEA of step 2. Verify the resulting err code is KErrNone.
       
   616 //!								4. Parse the data of "testdata.txt". The results will be put into AttrValueDEA as AttrValues.
       
   617 //!								   Verify the resulting err code is KErrNone.
       
   618 //!								5. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   619 //!								6. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   620 //!								7. Creates a new service record, with a single service class, in the SDP database.
       
   621 //!								   Verify the resulting err code is KErrNone.
       
   622 //!								8. Creates a service record attribute with the AttrValueDEA of step 2.
       
   623 //!								   Verify the resulting err code is KErrNone.
       
   624 //! 							9. Continue with the stored objects of last test case. 
       
   625 //!								10. Delete service record created in previous test case.
       
   626 //!								11. Close the client process. Close the SDP database subsession.
       
   627 //! @SYMTestStatus				Implemented
       
   628 //! @SYMTestPriority			Critical
       
   629 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
   630 //! @SYMTestType				CIT
       
   631 
       
   632 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   633 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
   634 			SHARED_ACTIVE_SCHEDULER
       
   635 			CREATE_OBJECT	RSdpDatabase	database1	
       
   636 			CREATE_OBJECT	RSdp	rsdp	
       
   637 			CREATE_OBJECT	CElementParser	celementparser1	
       
   638 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
   639 			COMMAND		attrValueDEA	NewDEAL
       
   640 			COMMAND		attrValueDEA	BuildUintL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0003command3BuildUintL
       
   641 			COMMAND		celementparser1	NewL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0003command5NewL
       
   642 			COMMAND		celementparser1	ParseElementsL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0003command6ParseElementsL
       
   643 			COMMAND		celementparser1	Builder		BTSDP-Agent-PublicApi-Passive-SetupPassive-0003command7Builder
       
   644 			COMMAND		rsdp	Constructor
       
   645 			COMMAND		rsdp	Connect
       
   646 			OUTSTANDING
       
   647 			COMMAND		database1	Constructor
       
   648 			COMMAND		database1	Open		BTSDP-Agent-PublicApi-Passive-SetupPassive-0003command13Open
       
   649 			COMMAND		database1	CreateServiceRecordL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0003command14CreateServiceRecordL
       
   650 			COMMAND		database1	UpdateAttributeL		BTSDP-Agent-PublicApi-Passive-SetupPassive-0003command15UpdateAttributeL
       
   651 			STORE	database1	
       
   652 			STORE	rsdp	
       
   653 			STORE_ACTIVE_SCHEDULER
       
   654 	END_TEST_BLOCK
       
   655 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   656 
       
   657 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   658 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   659 
       
   660 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   661 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
   662 			SHARED_ACTIVE_SCHEDULER
       
   663 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   664 			RESTORE_OBJECT	RSdp	rsdp	
       
   665 			COMMAND		database1	DeleteRecordL
       
   666 			COMMAND		database1	Close
       
   667 			COMMAND		rsdp	Close
       
   668 			STORE_ACTIVE_SCHEDULER
       
   669 	END_TEST_BLOCK
       
   670 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   671 END_TESTCASE   BTSDP-Agent-PublicApi-Passive-Master-0310
       
   672 
       
   673 
       
   674 START_TESTCASE BTSDP-PublicApi-AttrValBool-Passive-Master-0001
       
   675 //! @SYMTestCaseID				BTSDP-PublicApi-AttrValBool-Passive-Master-0001
       
   676 //! @SYMAPI						RSdpDatabase
       
   677 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   678 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
   679 //!													RSdp(), Connect() from RSdp
       
   680 //!													NewBoolL() from CSdpAttrValueBoolean
       
   681 //! @SYMTestActions				1. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   682 //!								2. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   683 //!								3. Creates a new service record, with a single service class, in the SDP database.
       
   684 //!								   Verify the resulting err code is KErrNone.
       
   685 //!								4. Creates service record attributes with CSdpAttrValueBoolean.
       
   686 //!								   Verify the resulting err code is KErrNone.
       
   687 //!								5. Continue with the stored objects of last test case. Delete the service record. 
       
   688 //!								6. Close the client process. Close the SDP database subsession.
       
   689 //! @SYMTestStatus				Implemented
       
   690 //! @SYMTestPriority			Critical
       
   691 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
   692 //! @SYMTestType				CIT
       
   693 
       
   694 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   695 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
   696 			SHARED_ACTIVE_SCHEDULER
       
   697 			CREATE_OBJECT	RSdpDatabase	database1	
       
   698 			CREATE_OBJECT	RSdp	rsdp	
       
   699 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBool	
       
   700 			COMMAND		attrValueBool	NewBoolL		BTSDP-PublicApi-AttrValBool-Passive-0001-0001command2NewBoolL
       
   701 			COMMAND		rsdp	Constructor
       
   702 			COMMAND		rsdp	Connect
       
   703 			OUTSTANDING
       
   704 			COMMAND		database1	Constructor
       
   705 			COMMAND		database1	Open		BTSDP-PublicApi-AttrValBool-Passive-0001-0001command8Open
       
   706 			COMMAND		database1	CreateServiceRecordL		BTSDP-PublicApi-AttrValBool-Passive-0001-0001command9CreateServiceRecordL
       
   707 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrValBool-Passive-0001-0001command10UpdateAttributeL
       
   708 			COMMAND		attrValueBool	NewBoolL		BTSDP-PublicApi-AttrValBool-Passive-0001-0001command12NewBoolL
       
   709 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrValBool-Passive-0001-0001command14UpdateAttributeL
       
   710 			STORE	database1	
       
   711 			STORE	rsdp	
       
   712 			STORE_ACTIVE_SCHEDULER
       
   713 	END_TEST_BLOCK
       
   714 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   715 
       
   716 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   717 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   718 
       
   719 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   720 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
   721 			SHARED_ACTIVE_SCHEDULER
       
   722 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   723 			RESTORE_OBJECT	RSdp	rsdp	
       
   724 			COMMAND		database1	DeleteRecordL
       
   725 			COMMAND		database1	Close
       
   726 			COMMAND		rsdp	Close
       
   727 			STORE_ACTIVE_SCHEDULER
       
   728 	END_TEST_BLOCK
       
   729 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   730 END_TESTCASE   BTSDP-PublicApi-AttrValBool-Passive-Master-0001
       
   731 
       
   732 
       
   733 START_TESTCASE BTSDP-PublicApi-AttrValBool-Passive-Master-0002
       
   734 //! @SYMTestCaseID				BTSDP-PublicApi-AttrValBool-Passive-Master-0002
       
   735 //! @SYMAPI						RSdpDatabase
       
   736 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   737 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
   738 //!													RSdp(), Connect() from RSdp
       
   739 //!													NewBoolL() from CSdpAttrValueBoolean
       
   740 //! @SYMTestActions				1. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   741 //!								2. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   742 //!								3. Creates a new service record, with a single service class, in the SDP database.
       
   743 //!								   Verify the resulting err code is KErrNone.
       
   744 //!								4. Creates service record attributes with CSdpAttrValueBoolean.
       
   745 //!								   Verify the resulting err code is KErrNone.
       
   746 //!								5. Continue with the stored objects of last test case. Delete the service record. 
       
   747 //!								6. Close the client process. Close the SDP database subsession.
       
   748 //! @SYMTestPriority			Critical
       
   749 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
   750 //! @SYMTestType				CIT
       
   751 
       
   752 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   753 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
   754 			SHARED_ACTIVE_SCHEDULER
       
   755 			CREATE_OBJECT	RSdpDatabase	database1	
       
   756 			CREATE_OBJECT	RSdp	rsdp	
       
   757 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBool	
       
   758 			COMMAND		attrValueBool	NewBoolL		BTSDP-PublicApi-AttrValBool-Passive-0002-0001command2NewBoolL
       
   759 			COMMAND		rsdp	Constructor
       
   760 			COMMAND		rsdp	Connect
       
   761 			OUTSTANDING
       
   762 			COMMAND		database1	Constructor
       
   763 			COMMAND		database1	Open		BTSDP-PublicApi-AttrValBool-Passive-0002-0001command8Open
       
   764 			COMMAND		database1	CreateServiceRecordL		BTSDP-PublicApi-AttrValBool-Passive-0002-0001command9CreateServiceRecordL
       
   765 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrValBool-Passive-0002-0001command10UpdateAttributeL
       
   766 			COMMAND		attrValueBool	Bool		BTSDP-PublicApi-AttrValBool-Passive-0002-0001command12Bool
       
   767 			COMMAND		attrValueBool	~
       
   768 			COMMAND		attrValueBool	NewBoolL		BTSDP-PublicApi-AttrValBool-Passive-0002-0001command14NewBoolL
       
   769 			COMMAND		attrValueBool	Type		BTSDP-PublicApi-AttrValBool-Passive-0002-0001command15Type
       
   770 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrValBool-Passive-0002-0001command17UpdateAttributeL
       
   771 			STORE	database1	
       
   772 			STORE	rsdp	
       
   773 			STORE_ACTIVE_SCHEDULER
       
   774 	END_TEST_BLOCK
       
   775 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   776 
       
   777 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   778 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   779 
       
   780 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   781 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
   782 			SHARED_ACTIVE_SCHEDULER
       
   783 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   784 			RESTORE_OBJECT	RSdp	rsdp	
       
   785 			COMMAND		database1	DeleteRecordL
       
   786 			COMMAND		database1	Close
       
   787 			COMMAND		rsdp	Close
       
   788 			STORE_ACTIVE_SCHEDULER
       
   789 	END_TEST_BLOCK
       
   790 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult		
       
   791 END_TESTCASE   BTSDP-PublicApi-AttrValBool-Passive-Master-0002
       
   792 
       
   793 
       
   794 START_TESTCASE BTSDP-PublicApi-AttrValBool-Passive-Master-0003
       
   795 //! @SYMTestCaseID				BTSDP-PublicApi-AttrValBool-Passive-Master-0003
       
   796 //! @SYMAPI						RSdpDatabase
       
   797 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   798 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
   799 //!													RSdp(), Connect() from RSdp
       
   800 //!													NewBoolL() from CSdpAttrValueBoolean
       
   801 //! @SYMTestActions				1. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   802 //!								2. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   803 //!								3. Creates a new service record, with a single service class, in the SDP database.
       
   804 //!								   Verify the resulting err code is KErrNone.
       
   805 //!								4. Creates service record attributes with CSdpAttrValueBoolean.
       
   806 //!								   Verify the resulting err code is KErrNone.
       
   807 //!								5. Continue with the stored objects of last test case. Delete the service record. 
       
   808 //!								6. Close the client process. Close the SDP database subsession.
       
   809 //! @SYMTestStatus				Implemented
       
   810 //! @SYMTestPriority			Critical
       
   811 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
   812 //! @SYMTestType				CIT
       
   813 
       
   814 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   815 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
   816 			SHARED_ACTIVE_SCHEDULER
       
   817 			CREATE_OBJECT	RSdpDatabase	database1	
       
   818 			CREATE_OBJECT	RSdp	rsdp	
       
   819 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBool1	
       
   820 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBool2	
       
   821 			COMMAND		attrValueBool1	NewBoolL		BTSDP-PublicApi-AttrValBool-Passive-0003-0001command2NewBoolL
       
   822 			COMMAND		attrValueBool1	DataSize		BTSDP-PublicApi-AttrValBool-Passive-0003-0001command3DataSize
       
   823 			COMMAND		attrValueBool2	NewBoolL		BTSDP-PublicApi-AttrValBool-Passive-0003-0001command5NewBoolL
       
   824 			COMMAND		attrValueBool2	DataSize		BTSDP-PublicApi-AttrValBool-Passive-0003-0001command6DataSize
       
   825 			COMMAND		rsdp	Constructor
       
   826 			COMMAND		rsdp	Connect
       
   827 			OUTSTANDING
       
   828 			COMMAND		database1	Constructor
       
   829 			COMMAND		database1	Open		BTSDP-PublicApi-AttrValBool-Passive-0003-0001command12Open
       
   830 			COMMAND		database1	CreateServiceRecordL		BTSDP-PublicApi-AttrValBool-Passive-0003-0001command13CreateServiceRecordL
       
   831 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrValBool-Passive-0003-0001command14UpdateAttributeL
       
   832 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrValBool-Passive-0003-0001command15UpdateAttributeL
       
   833 			STORE	database1	
       
   834 			STORE	rsdp	
       
   835 			STORE_ACTIVE_SCHEDULER
       
   836 	END_TEST_BLOCK
       
   837 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   838 
       
   839 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   840 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   841 
       
   842 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   843 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
   844 			SHARED_ACTIVE_SCHEDULER
       
   845 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   846 			RESTORE_OBJECT	RSdp	rsdp	
       
   847 			COMMAND		database1	DeleteRecordL
       
   848 			COMMAND		database1	Close
       
   849 			COMMAND		rsdp	Close
       
   850 			STORE_ACTIVE_SCHEDULER
       
   851 	END_TEST_BLOCK
       
   852 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult		
       
   853 END_TESTCASE   BTSDP-PublicApi-AttrValBool-Passive-Master-0003
       
   854 
       
   855 
       
   856 START_TESTCASE BTSDP-PublicApi-AttrValBool-Passive-Master-0004
       
   857 //! @SYMTestCaseID				BTSDP-PublicApi-AttrValBool-Passive-Master-0004
       
   858 //! @SYMAPI						RSdpDatabase
       
   859 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   860 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
   861 //!													RSdp(), Connect() from RSdp
       
   862 //!													NewBoolL() from CSdpAttrValueBoolean
       
   863 //!													NewDEAL(), AppendValueL() from CSdpAttrValueDEA
       
   864 //! @SYMTestActions				1. Construct two boolean values and a DEA-list. Append the boolean values into DEA-list.
       
   865 //!								2. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   866 //!								3. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   867 //!								4. Creates a new service record, with a single service class, in the SDP database.
       
   868 //!								   Verify the resulting err code is KErrNone.
       
   869 //!								5. Creates a service record attribute with the DEA-list of step 1.
       
   870 //!								   Verify the resulting err code is KErrNone.
       
   871 //!								6. Continue with the stored objects of last test case. Delete the service record. 
       
   872 //!								7. Close the client process. Close the SDP database subsession.
       
   873 //! @SYMTestStatus				Implemented
       
   874 //! @SYMTestPriority			Critical
       
   875 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
   876 //! @SYMTestType				CIT
       
   877 
       
   878 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   879 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
   880 			SHARED_ACTIVE_SCHEDULER
       
   881 			CREATE_OBJECT	RSdpDatabase	database1	
       
   882 			CREATE_OBJECT	RSdp	rsdp	
       
   883 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBool1	
       
   884 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBool2	
       
   885 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
   886 			COMMAND		attrValueBool1	NewBoolL		BTSDP-PublicApi-AttrValBool-Passive-0004-0001command2NewBoolL
       
   887 			COMMAND		attrValueBool2	NewBoolL		BTSDP-PublicApi-AttrValBool-Passive-0004-0001command4NewBoolL
       
   888 			COMMAND		attrValueDEA	NewDEAL
       
   889 			COMMAND		attrValueDEA	AppendValueL		BTSDP-PublicApi-AttrValBool-Passive-0004-0001command7AppendValueL
       
   890 			COMMAND		attrValueDEA	AppendValueL		BTSDP-PublicApi-AttrValBool-Passive-0004-0001command8AppendValueL
       
   891 			COMMAND		attrValueBool1	NewBoolL		BTSDP-PublicApi-AttrValBool-Passive-0004-0001command10NewBoolL
       
   892 			COMMAND		attrValueBool2	NewBoolL		BTSDP-PublicApi-AttrValBool-Passive-0004-0001command12NewBoolL
       
   893 			COMMAND		rsdp	Constructor
       
   894 			COMMAND		rsdp	Connect
       
   895 			OUTSTANDING
       
   896 			COMMAND		database1	Constructor
       
   897 			COMMAND		database1	Open		BTSDP-PublicApi-AttrValBool-Passive-0004-0001command18Open
       
   898 			COMMAND		database1	CreateServiceRecordL		BTSDP-PublicApi-AttrValBool-Passive-0004-0001command19CreateServiceRecordL
       
   899 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrValBool-Passive-0004-0001command20UpdateAttributeL
       
   900 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrValBool-Passive-0004-0001command21UpdateAttributeL
       
   901 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrValBool-Passive-0004-0001command22UpdateAttributeL
       
   902 			STORE	database1	
       
   903 			STORE	rsdp	
       
   904 			STORE_ACTIVE_SCHEDULER
       
   905 	END_TEST_BLOCK
       
   906 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   907 
       
   908 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   909 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   910 
       
   911 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   912 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
   913 			SHARED_ACTIVE_SCHEDULER
       
   914 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   915 			RESTORE_OBJECT	RSdp	rsdp	
       
   916 			COMMAND		database1	DeleteRecordL
       
   917 			COMMAND		database1	Close
       
   918 			COMMAND		rsdp	Close
       
   919 			STORE_ACTIVE_SCHEDULER
       
   920 	END_TEST_BLOCK
       
   921 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   922 END_TESTCASE   BTSDP-PublicApi-AttrValBool-Passive-Master-0004
       
   923 
       
   924 
       
   925 START_TESTCASE BTSDP-PublicApi-AttrValBool-Passive-Master-0005
       
   926 //! @SYMTestCaseID				BTSDP-PublicApi-AttrValBool-Passive-Master-0005
       
   927 //! @SYMAPI						RSdpDatabase
       
   928 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   929 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
   930 //!													RSdp(), Connect() from RSdp
       
   931 //!													NewBoolL() from CSdpAttrValueBoolean
       
   932 //!													NewNilL() from CSdpAttrValueNil
       
   933 //!													NewDEAL(), AppendValueL() from CSdpAttrValueDEA
       
   934 //! @SYMTestActions				1. Construct a boolean value, a Nil value, and a DEA-list. Append the two values into DEA-list.
       
   935 //!								2. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   936 //!								3. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   937 //!								4. Creates a new service record, with a single service class, in the SDP database.
       
   938 //!								   Verify the resulting err code is KErrNone.
       
   939 //!								5. Creates a service record attribute with the DEA-list of step 1.
       
   940 //!								   Verify the resulting err code is KErrNone.
       
   941 //!								6. Continue with the stored objects of last test case. Delete the service record. 
       
   942 //!								7. Close the client process. Close the SDP database subsession.
       
   943 //! @SYMTestStatus				Implemented
       
   944 //! @SYMTestPriority			Critical
       
   945 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
   946 //! @SYMTestType				CIT
       
   947 
       
   948 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   949 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
   950 			SHARED_ACTIVE_SCHEDULER
       
   951 			CREATE_OBJECT	RSdpDatabase	database1	
       
   952 			CREATE_OBJECT	RSdp	rsdp	
       
   953 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBool1	
       
   954 			CREATE_OBJECT	CSdpAttrValueNil	attrValueNil1	
       
   955 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
   956 			COMMAND		attrValueBool1	NewBoolL		BTSDP-PublicApi-AttrValBool-Passive-0005-0001command2NewBoolL
       
   957 			COMMAND		attrValueNil1	NewNilL
       
   958 			COMMAND		attrValueDEA	NewDEAL
       
   959 			COMMAND		attrValueDEA	AppendValueL		BTSDP-PublicApi-AttrValBool-Passive-0005-0001command7AppendValueL
       
   960 			COMMAND		attrValueDEA	AppendValueL		BTSDP-PublicApi-AttrValBool-Passive-0005-0001command8AppendValueL
       
   961 			COMMAND		rsdp	Constructor
       
   962 			COMMAND		rsdp	Connect
       
   963 			OUTSTANDING
       
   964 			COMMAND		database1	Constructor
       
   965 			COMMAND		database1	Open		BTSDP-PublicApi-AttrValBool-Passive-0005-0001command14Open
       
   966 			COMMAND		database1	CreateServiceRecordL		BTSDP-PublicApi-AttrValBool-Passive-0005-0001command15CreateServiceRecordL
       
   967 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrValBool-Passive-0005-0001command16UpdateAttributeL
       
   968 			STORE	database1	
       
   969 			STORE	rsdp	
       
   970 			STORE_ACTIVE_SCHEDULER
       
   971 	END_TEST_BLOCK
       
   972 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   973 
       
   974 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   975 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   976 
       
   977 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   978 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
   979 			SHARED_ACTIVE_SCHEDULER
       
   980 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   981 			RESTORE_OBJECT	RSdp	rsdp	
       
   982 			COMMAND		database1	DeleteRecordL
       
   983 			COMMAND		database1	Close
       
   984 			COMMAND		rsdp	Close
       
   985 			STORE_ACTIVE_SCHEDULER
       
   986 	END_TEST_BLOCK
       
   987 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult		
       
   988 END_TESTCASE   BTSDP-PublicApi-AttrValBool-Passive-Master-0005
       
   989 
       
   990 
       
   991 START_TESTCASE BTSDP-PublicApi-AttrValNil-Passive-Master-0101
       
   992 //! @SYMTestCaseID				BTSDP-PublicApi-AttrValNil-Passive-Master-0101
       
   993 //! @SYMAPI						RSdpDatabase
       
   994 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   995 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
   996 //!													RSdp(), Connect() from RSdp
       
   997 //!													NewNilL() from CSdpAttrValueNil
       
   998 //!													NewBoolL() from CSdpAttrValueBoolean
       
   999 //!													NewDEAL(), AppendValueL() from CSdpAttrValueDEA
       
  1000 //!													NewDESL(), AppendValueL() from CSdpAttrValueDES
       
  1001 //! @SYMTestActions				1. Construct a Nil value, and a DEA-list. Append the two values into DEA-list.
       
  1002 //!								2. Construct a DES-List and append the DEA-List of step 1.
       
  1003 //!								3. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1004 //!								4. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1005 //!								5. Creates a new service record, with a single service class, in the SDP database.
       
  1006 //!								   Verify the resulting err code is KErrNone.
       
  1007 //!								6. Creates a service record attribute with the DES-list of step 2.
       
  1008 //!								   Verify the resulting err code is KErrNone.
       
  1009 //!								7. Continue with the stored objects of last test case. Delete the service record. 
       
  1010 //!								8. Close the client process. Close the SDP database subsession.
       
  1011 //! @SYMTestStatus				Implemented
       
  1012 //! @SYMTestPriority			Critical
       
  1013 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
  1014 //! @SYMTestType				CIT
       
  1015 
       
  1016 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1017 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  1018 			SHARED_ACTIVE_SCHEDULER
       
  1019 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1020 			CREATE_OBJECT	RSdp	rsdp	
       
  1021 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBool1	
       
  1022 			CREATE_OBJECT	CSdpAttrValueNil	attrValueNil1	
       
  1023 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
  1024 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  1025 			COMMAND		attrValueBool1	NewBoolL		BTSDP-PublicApi-AttrValNil-Passive-0101-0001command2NewBoolL
       
  1026 			COMMAND		attrValueNil1	NewNilL
       
  1027 			COMMAND		attrValueDEA	NewDEAL
       
  1028 			COMMAND		attrValueDEA	AppendValueL		BTSDP-PublicApi-AttrValNil-Passive-0101-0001command7AppendValueL
       
  1029 			COMMAND		attrValueDEA	AppendValueL		BTSDP-PublicApi-AttrValNil-Passive-0101-0001command8AppendValueL
       
  1030 			COMMAND		attrValueDES	NewDESL
       
  1031 			COMMAND		attrValueDES	AppendValueL		BTSDP-PublicApi-AttrValNil-Passive-0101-0001command11AppendValueL
       
  1032 			COMMAND		rsdp	Constructor
       
  1033 			COMMAND		rsdp	Connect
       
  1034 			OUTSTANDING
       
  1035 			COMMAND		database1	Constructor
       
  1036 			COMMAND		database1	Open		BTSDP-PublicApi-AttrValNil-Passive-0101-0001command17Open
       
  1037 			COMMAND		database1	CreateServiceRecordL		BTSDP-PublicApi-AttrValNil-Passive-0101-0001command18CreateServiceRecordL
       
  1038 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrValNil-Passive-0101-0001command19UpdateAttributeL
       
  1039 			STORE	database1	
       
  1040 			STORE	rsdp	
       
  1041 			STORE_ACTIVE_SCHEDULER
       
  1042 	END_TEST_BLOCK
       
  1043 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1044 
       
  1045 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1046 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1047 
       
  1048 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1049 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  1050 			SHARED_ACTIVE_SCHEDULER
       
  1051 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1052 			RESTORE_OBJECT	RSdp	rsdp	
       
  1053 			COMMAND		database1	DeleteRecordL
       
  1054 			COMMAND		database1	Close
       
  1055 			COMMAND		rsdp	Close
       
  1056 			STORE_ACTIVE_SCHEDULER
       
  1057 	END_TEST_BLOCK
       
  1058 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult		
       
  1059 END_TESTCASE   BTSDP-PublicApi-AttrValNil-Passive-Master-0101
       
  1060 
       
  1061 START_TESTCASE BTSDP-PublicApi-AttrValNil-Passive-Master-0102
       
  1062 //! @SYMTestCaseID				BTSDP-PublicApi-AttrValNil-Passive-Master-0102
       
  1063 //! @SYMAPI						RSdpDatabase
       
  1064 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1065 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
  1066 //!													RSdp(), Connect() from RSdp
       
  1067 //!													NewNilL() from CSdpAttrValueNil
       
  1068 //! @SYMTestActions				1. Construct two Nil values.
       
  1069 //!								2  Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1070 //!								3. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1071 //!								4. Creates a new service record, with a single service class, in the SDP database.
       
  1072 //!								   Verify the resulting err code is KErrNone.
       
  1073 //!								5. Create some service record attributes with the Nil values of step 1.
       
  1074 //!								   Verify the resulting err code is KErrNone.
       
  1075 //!								6. Continue with the stored objects of last test case. Delete the service record. 
       
  1076 //!								7. Close the client process. Close the SDP database subsession.
       
  1077 //! @SYMTestStatus				Implemented
       
  1078 //! @SYMTestPriority			Critical
       
  1079 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
  1080 //! @SYMTestType				CIT
       
  1081 
       
  1082 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1083 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  1084 			SHARED_ACTIVE_SCHEDULER
       
  1085 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1086 			CREATE_OBJECT	RSdp	rsdp	
       
  1087 			CREATE_OBJECT	CSdpAttrValueNil	attrValueNil1	
       
  1088 			CREATE_OBJECT	CSdpAttrValueNil	attrValueNil2	
       
  1089 			COMMAND		attrValueNil1	NewNilL
       
  1090 			COMMAND		attrValueNil1	DataSize		BTSDP-PublicApi-AttrValNil-Passive-0102-0001command3DataSize
       
  1091 			COMMAND		attrValueNil2	NewNilL
       
  1092 			COMMAND		attrValueNil2	DataSize		BTSDP-PublicApi-AttrValNil-Passive-0102-0001command6DataSize
       
  1093 			COMMAND		rsdp	Constructor
       
  1094 			COMMAND		rsdp	Connect
       
  1095 			OUTSTANDING
       
  1096 			COMMAND		database1	Constructor
       
  1097 			COMMAND		database1	Open		BTSDP-PublicApi-AttrValNil-Passive-0102-0001command12Open
       
  1098 			COMMAND		database1	CreateServiceRecordL		BTSDP-PublicApi-AttrValNil-Passive-0102-0001command13CreateServiceRecordL
       
  1099 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrValNil-Passive-0102-0001command14UpdateAttributeL
       
  1100 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrValNil-Passive-0102-0001command15UpdateAttributeL
       
  1101 			COMMAND		attrValueNil1	Type		BTSDP-PublicApi-AttrValNil-Passive-0102-0001command17Type
       
  1102 			COMMAND		attrValueNil2	Type		BTSDP-PublicApi-AttrValNil-Passive-0102-0001command19Type
       
  1103 			STORE	database1	
       
  1104 			STORE	rsdp	
       
  1105 			STORE_ACTIVE_SCHEDULER
       
  1106 	END_TEST_BLOCK
       
  1107 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1108 
       
  1109 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1110 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1111 
       
  1112 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1113 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  1114 			SHARED_ACTIVE_SCHEDULER
       
  1115 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1116 			RESTORE_OBJECT	RSdp	rsdp	
       
  1117 			ASYNC_DELAY	10000
       
  1118 			COMMAND		database1	DeleteRecordL
       
  1119 			COMMAND		database1	Close
       
  1120 			COMMAND		rsdp	Close
       
  1121 			STORE_ACTIVE_SCHEDULER
       
  1122 	END_TEST_BLOCK
       
  1123 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1124 END_TESTCASE   BTSDP-PublicApi-AttrValNil-Passive-Master-0102
       
  1125 
       
  1126 START_TESTCASE BTSDP-PublicApi-AttrValNil-Passive-Master-0103
       
  1127 //! @SYMTestCaseID				BTSDP-PublicApi-AttrValNil-Passive-Master-0103
       
  1128 //! @SYMAPI						RSdpDatabase
       
  1129 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1130 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
  1131 //!													RSdp(), Connect() from RSdp
       
  1132 //!													NewNilL() from CSdpAttrValueNil
       
  1133 //!													NewDEAL(), AppendValueL() from CSdpAttrValueDEA
       
  1134 //! @SYMTestActions				1. Construct two Nil values
       
  1135 //!								2. Construct a DEA-List and append the Nil values into it.
       
  1136 //!								3. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1137 //!								4. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1138 //!								5. Creates a new service record, with a single service class, in the SDP database.
       
  1139 //!								   Verify the resulting err code is KErrNone.
       
  1140 //!								6. Creates a service record attribute with the DEA-list of step 2.
       
  1141 //!								   Verify the resulting err code is KErrNone.
       
  1142 //!								7. Continue with the stored objects of last test case. Delete the service record. 
       
  1143 //!								8. Close the client process. Close the SDP database subsession.
       
  1144 //! @SYMTestStatus				Implemented
       
  1145 //! @SYMTestPriority			Critical
       
  1146 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
  1147 //! @SYMTestType				CIT
       
  1148 
       
  1149 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1150 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  1151 			SHARED_ACTIVE_SCHEDULER
       
  1152 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1153 			CREATE_OBJECT	RSdp	rsdp	
       
  1154 			CREATE_OBJECT	CSdpAttrValueNil	attrValueNil1	
       
  1155 			CREATE_OBJECT	CSdpAttrValueNil	attrValueNil2	
       
  1156 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
  1157 			COMMAND		attrValueNil1	NewNilL
       
  1158 			COMMAND		attrValueNil2	NewNilL
       
  1159 			COMMAND		attrValueDEA	NewDEAL
       
  1160 			COMMAND		attrValueDEA	AppendValueL		BTSDP-PublicApi-AttrValNil-Passive-0103-0001command7AppendValueL
       
  1161 			COMMAND		attrValueDEA	AppendValueL		BTSDP-PublicApi-AttrValNil-Passive-0103-0001command8AppendValueL
       
  1162 			COMMAND		attrValueNil1	NewNilL
       
  1163 			COMMAND		attrValueNil2	NewNilL
       
  1164 			COMMAND		rsdp	Constructor
       
  1165 			COMMAND		rsdp	Connect
       
  1166 			OUTSTANDING
       
  1167 			COMMAND		database1	Constructor
       
  1168 			COMMAND		database1	Open		BTSDP-PublicApi-AttrValNil-Passive-0103-0001command18Open
       
  1169 			COMMAND		database1	CreateServiceRecordL		BTSDP-PublicApi-AttrValNil-Passive-0103-0001command19CreateServiceRecordL
       
  1170 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrValNil-Passive-0103-0001command20UpdateAttributeL
       
  1171 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrValNil-Passive-0103-0001command21UpdateAttributeL
       
  1172 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrValNil-Passive-0103-0001command22UpdateAttributeL
       
  1173 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrValNil-Passive-0103-0001command23UpdateAttributeL
       
  1174 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrValNil-Passive-0103-0001command24UpdateAttributeL
       
  1175 			STORE	database1	
       
  1176 			STORE	rsdp	
       
  1177 			STORE_ACTIVE_SCHEDULER
       
  1178 	END_TEST_BLOCK
       
  1179 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1180 
       
  1181 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1182 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1183 
       
  1184 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1185 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  1186 			SHARED_ACTIVE_SCHEDULER
       
  1187 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1188 			RESTORE_OBJECT	RSdp	rsdp	
       
  1189 			COMMAND		database1	DeleteRecordL
       
  1190 			COMMAND		database1	Close
       
  1191 			COMMAND		rsdp	Close
       
  1192 			STORE_ACTIVE_SCHEDULER
       
  1193 	END_TEST_BLOCK
       
  1194 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult	
       
  1195 END_TESTCASE   BTSDP-PublicApi-AttrValNil-Passive-Master-0103
       
  1196 
       
  1197 START_TESTCASE BTSDP-PublicApi-AttrValNil-Passive-Master-0104
       
  1198 //! @SYMTestCaseID				BTSDP-PublicApi-AttrValNil-Passive-Master-0104
       
  1199 //! @SYMAPI						RSdpDatabase
       
  1200 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1201 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
  1202 //!													RSdp(), Connect() from RSdp
       
  1203 //!													NewNilL() from CSdpAttrValueNil
       
  1204 //!													NewBoolL() from CSdpAttrValueBoolean
       
  1205 //!													NewDEAL(), AppendValueL() from CSdpAttrValueDEA
       
  1206 //!													NewDESL(), AppendValueL() from CSdpAttrValueDES
       
  1207 //! @SYMTestActions				1. Construct two Nil values, one Boolean value, two DEA-lists, and two DES-lists.
       
  1208 //!								2. Use the objects of step 1 to create database entries.
       
  1209 //!								3. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1210 //!								4. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1211 //!								5. Creates a new service record, with a single service class, in the SDP database.
       
  1212 //!								   Verify the resulting err code is KErrNone.
       
  1213 //!								6. Creates a service record attribute with the DES-list of step 2.
       
  1214 //!								   Verify the resulting err code is KErrNone.
       
  1215 //!								7. Continue with the stored objects of last test case. Delete the service record. 
       
  1216 //!								8. Close the client process. Close the SDP database subsession.
       
  1217 //! @SYMTestStatus				Implemented
       
  1218 //! @SYMTestPriority			Critical
       
  1219 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
  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-Agent-PublicApi-Passive-Master.ini
       
  1224 			SHARED_ACTIVE_SCHEDULER
       
  1225 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1226 			CREATE_OBJECT	RSdp	rsdp	
       
  1227 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBool1	
       
  1228 			CREATE_OBJECT	CSdpAttrValueNil	attrValueNil1	
       
  1229 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
  1230 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA2	
       
  1231 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  1232 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES2	
       
  1233 			CREATE_OBJECT	CSdpAttrValueNil	attrValueNil2	
       
  1234 			COMMAND		attrValueBool1	NewBoolL		BTSDP-PublicApi-AttrValNil-Passive-0104-0001command2NewBoolL
       
  1235 			COMMAND		attrValueNil1	NewNilL
       
  1236 			COMMAND		attrValueNil2	NewNilL
       
  1237 			COMMAND		attrValueDEA	NewDEAL
       
  1238 			COMMAND		attrValueDEA	AppendValueL		BTSDP-PublicApi-AttrValNil-Passive-0104-0001command9AppendValueL
       
  1239 			COMMAND		attrValueDEA	AppendValueL		BTSDP-PublicApi-AttrValNil-Passive-0104-0001command10AppendValueL
       
  1240 			COMMAND		attrValueDES	NewDESL
       
  1241 			COMMAND		attrValueDES	AppendValueL		BTSDP-PublicApi-AttrValNil-Passive-0104-0001command13AppendValueL
       
  1242 			COMMAND		attrValueDEA2	NewDEAL
       
  1243 			COMMAND		attrValueDEA2	AppendValueL		BTSDP-PublicApi-AttrValNil-Passive-0104-0001command16AppendValueL
       
  1244 			COMMAND		attrValueDEA2	AppendValueL		BTSDP-PublicApi-AttrValNil-Passive-0104-0001command17AppendValueL
       
  1245 			COMMAND		attrValueDES2	NewDESL
       
  1246 			COMMAND		attrValueDES2	AppendValueL		BTSDP-PublicApi-AttrValNil-Passive-0104-0001command20AppendValueL
       
  1247 			COMMAND		rsdp	Constructor
       
  1248 			COMMAND		rsdp	Connect
       
  1249 			OUTSTANDING
       
  1250 			COMMAND		database1	Constructor
       
  1251 			COMMAND		database1	Open		BTSDP-PublicApi-AttrValNil-Passive-0104-0001command26Open
       
  1252 			COMMAND		database1	CreateServiceRecordL		BTSDP-PublicApi-AttrValNil-Passive-0104-0001command27CreateServiceRecordL
       
  1253 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrValNil-Passive-0104-0001command28UpdateAttributeL
       
  1254 			STORE	database1	
       
  1255 			STORE	rsdp	
       
  1256 			STORE_ACTIVE_SCHEDULER
       
  1257 	END_TEST_BLOCK
       
  1258 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1259 
       
  1260 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1261 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1262 
       
  1263 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1264 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  1265 			SHARED_ACTIVE_SCHEDULER
       
  1266 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1267 			RESTORE_OBJECT	RSdp	rsdp	
       
  1268 			COMMAND		database1	DeleteRecordL
       
  1269 			COMMAND		database1	Close
       
  1270 			COMMAND		rsdp	Close
       
  1271 			STORE_ACTIVE_SCHEDULER
       
  1272 	END_TEST_BLOCK
       
  1273 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1274 END_TESTCASE   BTSDP-PublicApi-AttrValNil-Passive-Master-0104
       
  1275 
       
  1276 START_TESTCASE BTSDP-PublicApi-AttrValNil-Passive-Master-0105
       
  1277 //! @SYMTestCaseID				BTSDP-PublicApi-AttrValNil-Passive-Master-0105
       
  1278 //! @SYMAPI						RSdpDatabase
       
  1279 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1280 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
  1281 //!													RSdp(), Connect() from RSdp
       
  1282 //!													NewNilL() from CSdpAttrValueNil
       
  1283 //!													NewBoolL() from CSdpAttrValueBoolean
       
  1284 //!													NewIntL() from CSdpAttrValueInt
       
  1285 //!													NewStringL() from CSdpAttrValueString
       
  1286 //!													NewUintL() from CSdpAttrValueUint
       
  1287 //!													NewURLL() from CSdpAttrValueURL
       
  1288 //!													NewUUIDL() from CSdpAttrValueUUID
       
  1289 //!													NewDEAL(), AppendValueL() from CSdpAttrValueDEA
       
  1290 //!													NewDESL(), AppendValueL() from CSdpAttrValueDES
       
  1291 //! @SYMTestActions				1. Construct various attribute value objects.
       
  1292 //!								2. Use the objects of step 1 to create database entries.
       
  1293 //!								3. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1294 //!								4. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1295 //!								5. Creates a new service record, with a single service class, in the SDP database.
       
  1296 //!								   Verify the resulting err code is KErrNone.
       
  1297 //!								6. Creates a service record attribute with the DES-list of step 2.
       
  1298 //!								   Verify the resulting err code is KErrNone.
       
  1299 //!								7. Continue with the stored objects of last test case. Delete the service record. 
       
  1300 //!								8. Close the client process. Close the SDP database subsession.
       
  1301 //! @SYMTestStatus				Implemented
       
  1302 //! @SYMTestPriority			Critical
       
  1303 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
  1304 //! @SYMTestType				CIT
       
  1305 
       
  1306 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1307 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  1308 			SHARED_ACTIVE_SCHEDULER
       
  1309 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1310 			CREATE_OBJECT	RSdp	rsdp	
       
  1311 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBool	
       
  1312 			CREATE_OBJECT	CSdpAttrValueNil	attrValueNil	
       
  1313 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
  1314 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA2	
       
  1315 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  1316 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES2	
       
  1317 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
  1318 			CREATE_OBJECT	CSdpAttrValueString	attrValueString	
       
  1319 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint	
       
  1320 			CREATE_OBJECT	CSdpAttrValueURL	attrValueURL	
       
  1321 			CREATE_OBJECT	CSdpAttrValueUUID	attrValueUUID	
       
  1322 			COMMAND		attrValueBool	NewBoolL		BTSDP-PublicApi-AttrValNil-Passive-0105-0001command2NewBoolL
       
  1323 			COMMAND		attrValueNil	NewNilL
       
  1324 			COMMAND		attrValueInt	NewIntL		BTSDP-PublicApi-AttrValNil-Passive-0105-0001command6NewIntL
       
  1325 			COMMAND		attrValueString	NewStringL		BTSDP-PublicApi-AttrValNil-Passive-0105-0001command8NewStringL
       
  1326 			COMMAND		attrValueUint	NewUintL		BTSDP-PublicApi-AttrValNil-Passive-0105-0001command10NewUintL
       
  1327 			COMMAND		attrValueURL	NewURLL		BTSDP-PublicApi-AttrValNil-Passive-0105-0001command12NewURLL
       
  1328 			COMMAND		attrValueUUID	NewUUIDL		BTSDP-PublicApi-AttrValNil-Passive-0105-0001command14NewUUIDL
       
  1329 			COMMAND		attrValueDEA	NewDEAL
       
  1330 			COMMAND		attrValueDEA	AppendValueL		BTSDP-PublicApi-AttrValNil-Passive-0105-0001command17AppendValueL
       
  1331 			COMMAND		attrValueDEA	AppendValueL		BTSDP-PublicApi-AttrValNil-Passive-0105-0001command18AppendValueL
       
  1332 			COMMAND		attrValueDES	NewDESL
       
  1333 			COMMAND		attrValueDES	AppendValueL		BTSDP-PublicApi-AttrValNil-Passive-0105-0001command21AppendValueL
       
  1334 			COMMAND		attrValueDES	AppendValueL		BTSDP-PublicApi-AttrValNil-Passive-0105-0001command22AppendValueL
       
  1335 			COMMAND		attrValueDES	AppendValueL		BTSDP-PublicApi-AttrValNil-Passive-0105-0001command23AppendValueL
       
  1336 			COMMAND		attrValueDEA2	NewDEAL
       
  1337 			COMMAND		attrValueDEA2	AppendValueL		BTSDP-PublicApi-AttrValNil-Passive-0105-0001command26AppendValueL
       
  1338 			COMMAND		attrValueDEA2	AppendValueL		BTSDP-PublicApi-AttrValNil-Passive-0105-0001command27AppendValueL
       
  1339 			COMMAND		attrValueDEA2	AppendValueL		BTSDP-PublicApi-AttrValNil-Passive-0105-0001command28AppendValueL
       
  1340 			COMMAND		attrValueDES2	NewDESL
       
  1341 			COMMAND		attrValueDES2	AppendValueL		BTSDP-PublicApi-AttrValNil-Passive-0105-0001command31AppendValueL
       
  1342 			COMMAND		attrValueDES2	AppendValueL		BTSDP-PublicApi-AttrValNil-Passive-0105-0001command32AppendValueL
       
  1343 			COMMAND		rsdp	Constructor
       
  1344 			COMMAND		rsdp	Connect
       
  1345 			OUTSTANDING
       
  1346 			COMMAND		database1	Constructor
       
  1347 			COMMAND		database1	Open		BTSDP-PublicApi-AttrValNil-Passive-0105-0001command38Open
       
  1348 			COMMAND		database1	CreateServiceRecordL		BTSDP-PublicApi-AttrValNil-Passive-0105-0001command39CreateServiceRecordL
       
  1349 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrValNil-Passive-0105-0001command40UpdateAttributeL
       
  1350 			STORE	database1	
       
  1351 			STORE	rsdp	
       
  1352 			STORE_ACTIVE_SCHEDULER
       
  1353 	END_TEST_BLOCK
       
  1354 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1355 
       
  1356 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1357 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1358 
       
  1359 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1360 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  1361 			SHARED_ACTIVE_SCHEDULER
       
  1362 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1363 			RESTORE_OBJECT	RSdp	rsdp	
       
  1364 			COMMAND		database1	DeleteRecordL
       
  1365 			COMMAND		database1	Close
       
  1366 			COMMAND		rsdp	Close
       
  1367 			STORE_ACTIVE_SCHEDULER
       
  1368 	END_TEST_BLOCK
       
  1369 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult	
       
  1370 END_TESTCASE   BTSDP-PublicApi-AttrValNil-Passive-Master-0105
       
  1371 
       
  1372 START_TESTCASE BTSDP-PublicApi-AttrValNil-Passive-Master-0106
       
  1373 //! @SYMTestCaseID				BTSDP-PublicApi-AttrValNil-Passive-Master-0106
       
  1374 //! @SYMAPI						RSdpDatabase
       
  1375 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1376 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
  1377 //!													RSdp(), Connect() from RSdp
       
  1378 //!													NewNilL() from CSdpAttrValueNil
       
  1379 //!													NewBoolL() from CSdpAttrValueBoolean
       
  1380 //!													NewIntL() from CSdpAttrValueInt
       
  1381 //!													NewStringL() from CSdpAttrValueString
       
  1382 //!													NewUintL() from CSdpAttrValueUint
       
  1383 //!													NewURLL() from CSdpAttrValueURL
       
  1384 //!													NewUUIDL() from CSdpAttrValueUUID
       
  1385 //!													NewDEAL(), AppendValueL() from CSdpAttrValueDEA
       
  1386 //!													NewDESL(), AppendValueL() from CSdpAttrValueDES
       
  1387 //! @SYMTestActions				1. Construct various attribute value objects.
       
  1388 //!								2. Use the objects of step 1 to create database entries.
       
  1389 //!								3. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1390 //!								4. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1391 //!								5. Creates a new service record, with a single service class, in the SDP database.
       
  1392 //!								   Verify the resulting err code is KErrNone.
       
  1393 //!								6. Creates a service record attribute with the DES-list of step 2.
       
  1394 //!								   Verify the resulting err code is KErrNone.
       
  1395 //!								7. Continue with the stored objects of last test case. Delete the service record. 
       
  1396 //!								8. Close the client process. Close the SDP database subsession.
       
  1397 //! @SYMTestStatus				Implemented
       
  1398 //! @SYMTestPriority			Critical
       
  1399 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
  1400 //! @SYMTestType				CIT
       
  1401 
       
  1402 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1403 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  1404 			SHARED_ACTIVE_SCHEDULER
       
  1405 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1406 			CREATE_OBJECT	RSdp	rsdp	
       
  1407 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBool	
       
  1408 			CREATE_OBJECT	CSdpAttrValueNil	attrValueNil	
       
  1409 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
  1410 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  1411 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
  1412 			CREATE_OBJECT	CSdpAttrValueString	attrValueString	
       
  1413 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint	
       
  1414 			CREATE_OBJECT	CSdpAttrValueURL	attrValueURL	
       
  1415 			CREATE_OBJECT	CSdpAttrValueUUID	attrValueUUID	
       
  1416 			COMMAND		attrValueBool	NewBoolL		BTSDP-PublicApi-AttrValNil-Passive-0106-0001command2NewBoolL
       
  1417 			COMMAND		attrValueNil	NewNilL
       
  1418 			COMMAND		attrValueInt	NewIntL		BTSDP-PublicApi-AttrValNil-Passive-0106-0001command6NewIntL
       
  1419 			COMMAND		attrValueString	NewStringL		BTSDP-PublicApi-AttrValNil-Passive-0106-0001command8NewStringL
       
  1420 			COMMAND		attrValueUint	NewUintL		BTSDP-PublicApi-AttrValNil-Passive-0106-0001command10NewUintL
       
  1421 			COMMAND		attrValueURL	NewURLL		BTSDP-PublicApi-AttrValNil-Passive-0106-0001command12NewURLL
       
  1422 			COMMAND		attrValueUUID	NewUUIDL		BTSDP-PublicApi-AttrValNil-Passive-0106-0001command14NewUUIDL
       
  1423 			COMMAND		attrValueDEA	NewDEAL
       
  1424 			COMMAND		attrValueDEA	BuildBooleanL		BTSDP-PublicApi-AttrValNil-Passive-0106-0001command17BuildBooleanL
       
  1425 			COMMAND		attrValueDES	NewDESL
       
  1426 			COMMAND		attrValueDES	BuildIntL		BTSDP-PublicApi-AttrValNil-Passive-0106-0001command20BuildIntL
       
  1427 			COMMAND		rsdp	Constructor
       
  1428 			COMMAND		rsdp	Connect
       
  1429 			OUTSTANDING
       
  1430 			COMMAND		database1	Constructor
       
  1431 			COMMAND		database1	Open		BTSDP-PublicApi-AttrValNil-Passive-0106-0001command26Open
       
  1432 			COMMAND		database1	CreateServiceRecordL		BTSDP-PublicApi-AttrValNil-Passive-0106-0001command27CreateServiceRecordL
       
  1433 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrValNil-Passive-0106-0001command28UpdateAttributeL
       
  1434 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrValNil-Passive-0106-0001command29UpdateAttributeL
       
  1435 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrValNil-Passive-0106-0001command30UpdateAttributeL
       
  1436 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrValNil-Passive-0106-0001command31UpdateAttributeL
       
  1437 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrValNil-Passive-0106-0001command32UpdateAttributeL
       
  1438 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrValNil-Passive-0106-0001command33UpdateAttributeL
       
  1439 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrValNil-Passive-0106-0001command34UpdateAttributeL
       
  1440 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrValNil-Passive-0106-0001command35UpdateAttributeL
       
  1441 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrValNil-Passive-0106-0001command36UpdateAttributeL
       
  1442 			STORE	database1	
       
  1443 			STORE	rsdp	
       
  1444 			STORE_ACTIVE_SCHEDULER
       
  1445 	END_TEST_BLOCK
       
  1446 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1447 
       
  1448 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1449 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1450 
       
  1451 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1452 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  1453 			SHARED_ACTIVE_SCHEDULER
       
  1454 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1455 			RESTORE_OBJECT	RSdp	rsdp	
       
  1456 			COMMAND		database1	DeleteRecordL
       
  1457 			COMMAND		database1	Close
       
  1458 			COMMAND		rsdp	Close
       
  1459 			STORE_ACTIVE_SCHEDULER
       
  1460 	END_TEST_BLOCK
       
  1461 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult	
       
  1462 END_TESTCASE   BTSDP-PublicApi-AttrValNil-Passive-Master-0106
       
  1463 
       
  1464 
       
  1465 
       
  1466 START_TESTCASE BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0201
       
  1467 //! @SYMTestCaseID				BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0201
       
  1468 //! @SYMAPI						RSdpDatabase
       
  1469 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1470 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
  1471 //!													RSdp(), Connect() from RSdp
       
  1472 //!													NewNilL() from CSdpAttrValueNil
       
  1473 //!													NewBoolL() from CSdpAttrValueBoolean
       
  1474 //!													NewIntL() from CSdpAttrValueInt
       
  1475 //!													NewStringL() from CSdpAttrValueString
       
  1476 //!													NewUintL() from CSdpAttrValueUint
       
  1477 //!													NewURLL() from CSdpAttrValueURL
       
  1478 //!													NewUUIDL() from CSdpAttrValueUUID
       
  1479 //!													NewDEAL(), AppendValueL() from CSdpAttrValueDEA
       
  1480 //!													NewDESL(), AppendValueL() from CSdpAttrValueDES
       
  1481 //! @SYMTestActions				1. Construct various attribute value objects.
       
  1482 //!								2. Use the objects of step 1 to create database entries.
       
  1483 //!								3. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1484 //!								4. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1485 //!								5. Creates a new service record, with a single service class, in the SDP database.
       
  1486 //!								   Verify the resulting err code is KErrNone.
       
  1487 //!								6. Creates a service record attribute with the DES-list of step 2.
       
  1488 //!								   Verify the resulting err code is KErrNone.
       
  1489 //!								7. Continue with the stored objects of last test case. Delete the service record. 
       
  1490 //!								8. Close the client process. Close the SDP database subsession.
       
  1491 //! @SYMTestStatus				Implemented
       
  1492 //! @SYMTestPriority			Critical
       
  1493 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
  1494 //! @SYMTestType				CIT
       
  1495 
       
  1496 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1497 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  1498 			SHARED_ACTIVE_SCHEDULER
       
  1499 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1500 			CREATE_OBJECT	RSdp	rsdp	
       
  1501 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBool	
       
  1502 			CREATE_OBJECT	CSdpAttrValueNil	attrValueNil	
       
  1503 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
  1504 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  1505 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
  1506 			CREATE_OBJECT	CSdpAttrValueString	attrValueString	
       
  1507 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint	
       
  1508 			CREATE_OBJECT	CSdpAttrValueURL	attrValueURL	
       
  1509 			CREATE_OBJECT	CSdpAttrValueUUID	attrValueUUID	
       
  1510 			COMMAND		attrValueBool	NewBoolL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command2NewBoolL
       
  1511 			COMMAND		attrValueNil	NewNilL
       
  1512 			COMMAND		attrValueInt	NewIntL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command6NewIntL
       
  1513 			COMMAND		attrValueString	NewStringL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command8NewStringL
       
  1514 			COMMAND		attrValueUint	NewUintL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command10NewUintL
       
  1515 			COMMAND		attrValueURL	NewURLL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command12NewURLL
       
  1516 			COMMAND		attrValueUUID	NewUUIDL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command14NewUUIDL
       
  1517 			COMMAND		attrValueDEA	NewDEAL
       
  1518 			COMMAND		attrValueDEA	BuildBooleanL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command17BuildBooleanL
       
  1519 			COMMAND		attrValueDES	NewDESL
       
  1520 			COMMAND		attrValueDES	BuildIntL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command20BuildIntL
       
  1521 			COMMAND		rsdp	Constructor
       
  1522 			COMMAND		rsdp	Connect
       
  1523 			OUTSTANDING
       
  1524 			COMMAND		database1	Constructor
       
  1525 			COMMAND		database1	Open		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command26Open
       
  1526 			COMMAND		database1	CreateServiceRecordL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command27CreateServiceRecordL
       
  1527 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command28UpdateAttributeL
       
  1528 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command29UpdateAttributeL
       
  1529 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command30UpdateAttributeL
       
  1530 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command31UpdateAttributeL
       
  1531 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command32UpdateAttributeL
       
  1532 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command33UpdateAttributeL
       
  1533 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command34UpdateAttributeL
       
  1534 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command35UpdateAttributeL
       
  1535 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command36UpdateAttributeL
       
  1536 			STORE	database1	
       
  1537 			STORE	rsdp	
       
  1538 			STORE_ACTIVE_SCHEDULER
       
  1539 	END_TEST_BLOCK
       
  1540 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1541 
       
  1542 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1543 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1544 
       
  1545 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1546 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  1547 			SHARED_ACTIVE_SCHEDULER
       
  1548 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1549 			RESTORE_OBJECT	RSdp	rsdp	
       
  1550 			COMMAND		database1	DeleteRecordL
       
  1551 			COMMAND		database1	Close
       
  1552 			COMMAND		rsdp	Close
       
  1553 			STORE_ACTIVE_SCHEDULER
       
  1554 	END_TEST_BLOCK
       
  1555 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult	
       
  1556 END_TESTCASE   BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0201
       
  1557 
       
  1558 START_TESTCASE BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0202
       
  1559 //! @SYMTestCaseID				BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0202
       
  1560 //! @SYMAPI						RSdpDatabase
       
  1561 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1562 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
  1563 //!													RSdp(), Connect() from RSdp
       
  1564 //!													NewNilL() from CSdpAttrValueNil
       
  1565 //!													NewBoolL() from CSdpAttrValueBoolean
       
  1566 //!													NewIntL() from CSdpAttrValueInt
       
  1567 //!													NewStringL() from CSdpAttrValueString
       
  1568 //!													NewUintL() from CSdpAttrValueUint
       
  1569 //!													NewURLL() from CSdpAttrValueURL
       
  1570 //!													NewUUIDL() from CSdpAttrValueUUID
       
  1571 //!													NewDEAL(), AppendValueL() from CSdpAttrValueDEA
       
  1572 //!													NewDESL(), AppendValueL() from CSdpAttrValueDES
       
  1573 //! @SYMTestActions				1. Construct various attribute value objects.
       
  1574 //!								2. Use the objects of step 1 to create database entries.
       
  1575 //!								3. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1576 //!								4. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1577 //!								5. Creates a new service record, with a single service class, in the SDP database.
       
  1578 //!								   Verify the resulting err code is KErrNone.
       
  1579 //!								6. Creates a service record attribute with the DES-list of step 2.
       
  1580 //!								   Verify the resulting err code is KErrNone.
       
  1581 //!								7. Continue with the stored objects of last test case. Delete the service record. 
       
  1582 //!								8. Close the client process. Close the SDP database subsession.
       
  1583 //! @SYMTestStatus				Implemented
       
  1584 //! @SYMTestPriority			Critical
       
  1585 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
  1586 //! @SYMTestType				CIT
       
  1587 
       
  1588 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1589 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  1590 			SHARED_ACTIVE_SCHEDULER
       
  1591 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1592 			CREATE_OBJECT	RSdp	rsdp	
       
  1593 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBool	
       
  1594 			CREATE_OBJECT	CSdpAttrValueNil	attrValueNil	
       
  1595 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
  1596 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  1597 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
  1598 			CREATE_OBJECT	CSdpAttrValueString	attrValueString	
       
  1599 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint	
       
  1600 			CREATE_OBJECT	CSdpAttrValueURL	attrValueURL	
       
  1601 			CREATE_OBJECT	CSdpAttrValueUUID	attrValueUUID	
       
  1602 			COMMAND		attrValueBool	NewBoolL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command2NewBoolL
       
  1603 			COMMAND		attrValueNil	NewNilL
       
  1604 			COMMAND		attrValueInt	NewIntL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command6NewIntL
       
  1605 			COMMAND		attrValueString	NewStringL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command8NewStringL
       
  1606 			COMMAND		attrValueUint	NewUintL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command10NewUintL
       
  1607 			COMMAND		attrValueURL	NewURLL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command12NewURLL
       
  1608 			COMMAND		attrValueUUID	NewUUIDL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command14NewUUIDL
       
  1609 			COMMAND		attrValueDEA	NewDEAL
       
  1610 			COMMAND		attrValueDEA	BuildBooleanL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command17BuildBooleanL
       
  1611 			COMMAND		attrValueDES	NewDESL
       
  1612 			COMMAND		attrValueDES	BuildIntL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command20BuildIntL
       
  1613 			COMMAND		rsdp	Constructor
       
  1614 			COMMAND		rsdp	Connect
       
  1615 			OUTSTANDING
       
  1616 			COMMAND		database1	Constructor
       
  1617 			COMMAND		database1	Open		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command26Open
       
  1618 			COMMAND		database1	CreateServiceRecordL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command27CreateServiceRecordL
       
  1619 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command28UpdateAttributeL
       
  1620 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command29UpdateAttributeL
       
  1621 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command30UpdateAttributeL
       
  1622 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command31UpdateAttributeL
       
  1623 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command32UpdateAttributeL
       
  1624 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command33UpdateAttributeL
       
  1625 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command34UpdateAttributeL
       
  1626 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command35UpdateAttributeL
       
  1627 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0201-0001command36UpdateAttributeL
       
  1628 			STORE	database1	
       
  1629 			STORE	rsdp	
       
  1630 			STORE_ACTIVE_SCHEDULER
       
  1631 	END_TEST_BLOCK
       
  1632 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1633 
       
  1634 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1635 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1636 
       
  1637 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1638 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-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 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1648 END_TESTCASE   BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0202
       
  1649 
       
  1650 
       
  1651 START_TESTCASE BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0203
       
  1652 //! @SYMTestCaseID				BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0203
       
  1653 //! @SYMAPI						RSdpDatabase
       
  1654 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1655 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
  1656 //!													RSdp(), Connect() from RSdp
       
  1657 //!													NewNilL() from CSdpAttrValueNil
       
  1658 //!													NewBoolL() from CSdpAttrValueBoolean
       
  1659 //!													NewIntL() from CSdpAttrValueInt
       
  1660 //!													NewStringL() from CSdpAttrValueString
       
  1661 //!													NewUintL() from CSdpAttrValueUint
       
  1662 //!													NewURLL() from CSdpAttrValueURL
       
  1663 //!													NewUUIDL() from CSdpAttrValueUUID
       
  1664 //!													NewDEAL(), AppendValueL() from CSdpAttrValueDEA
       
  1665 //!													NewDESL(), AppendValueL() from CSdpAttrValueDES
       
  1666 //! @SYMTestActions				1. Construct various attribute value objects.
       
  1667 //!								2. Use the objects of step 1 to create database entries.
       
  1668 //!								3. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1669 //!								4. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1670 //!								5. Creates a new service record, with a single service class, in the SDP database.
       
  1671 //!								   Verify the resulting err code is KErrNone.
       
  1672 //!								6. Creates a service record attribute with the DES-list of step 2.
       
  1673 //!								   Verify the resulting err code is KErrNone.
       
  1674 //!								7. Continue with the stored objects of last test case. Delete the service record. 
       
  1675 //!								8. Close the client process. Close the SDP database subsession.
       
  1676 //! @SYMTestStatus				Implemented
       
  1677 //! @SYMTestPriority			Critical
       
  1678 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
  1679 //! @SYMTestType				CIT
       
  1680 
       
  1681 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1682 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  1683 			SHARED_ACTIVE_SCHEDULER
       
  1684 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1685 			CREATE_OBJECT	RSdp	rsdp	
       
  1686 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBool	
       
  1687 			CREATE_OBJECT	CSdpAttrValueNil	attrValueNil	
       
  1688 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
  1689 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  1690 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
  1691 			CREATE_OBJECT	CSdpAttrValueString	attrValueString	
       
  1692 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint	
       
  1693 			CREATE_OBJECT	CSdpAttrValueURL	attrValueURL	
       
  1694 			CREATE_OBJECT	CSdpAttrValueUUID	attrValueUUID	
       
  1695 			COMMAND		attrValueBool	NewBoolL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command2NewBoolL
       
  1696 			COMMAND		attrValueNil	NewNilL
       
  1697 			COMMAND		attrValueInt	NewIntL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command6NewIntL
       
  1698 			COMMAND		attrValueString	NewStringL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command8NewStringL
       
  1699 			COMMAND		attrValueUint	NewUintL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command10NewUintL
       
  1700 			COMMAND		attrValueURL	NewURLL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command12NewURLL
       
  1701 			COMMAND		attrValueUUID	NewUUIDL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command14NewUUIDL
       
  1702 			COMMAND		attrValueDEA	NewDEAL
       
  1703 			COMMAND		attrValueDEA	BuildBooleanL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command17BuildBooleanL
       
  1704 			COMMAND		attrValueDES	NewDESL
       
  1705 			COMMAND		attrValueDES	BuildIntL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command20BuildIntL
       
  1706 			COMMAND		rsdp	Constructor
       
  1707 			COMMAND		rsdp	Connect
       
  1708 			OUTSTANDING
       
  1709 			COMMAND		database1	Constructor
       
  1710 			COMMAND		database1	Open		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command26Open
       
  1711 			COMMAND		database1	CreateServiceRecordL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command27CreateServiceRecordL
       
  1712 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command28UpdateAttributeL
       
  1713 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command29UpdateAttributeL
       
  1714 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command30UpdateAttributeL
       
  1715 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command31UpdateAttributeL
       
  1716 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command32UpdateAttributeL
       
  1717 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command33UpdateAttributeL
       
  1718 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command34UpdateAttributeL
       
  1719 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command35UpdateAttributeL
       
  1720 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command36UpdateAttributeL
       
  1721 			STORE	database1	
       
  1722 			STORE	rsdp	
       
  1723 			STORE_ACTIVE_SCHEDULER
       
  1724 	END_TEST_BLOCK
       
  1725 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1726 
       
  1727 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1728 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1729 
       
  1730 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1731 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  1732 			SHARED_ACTIVE_SCHEDULER
       
  1733 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1734 			RESTORE_OBJECT	RSdp	rsdp	
       
  1735 			COMMAND		database1	DeleteRecordL
       
  1736 			COMMAND		database1	Close
       
  1737 			COMMAND		rsdp	Close
       
  1738 			STORE_ACTIVE_SCHEDULER
       
  1739 	END_TEST_BLOCK
       
  1740 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult	
       
  1741 END_TESTCASE   BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0203
       
  1742 
       
  1743 
       
  1744 START_TESTCASE BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0204
       
  1745 //! @SYMTestCaseID				BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0204
       
  1746 //! @SYMAPI						RSdpDatabase
       
  1747 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1748 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
  1749 //!													RSdp(), Connect() from RSdp
       
  1750 //!													NewNilL() from CSdpAttrValueNil
       
  1751 //!													NewBoolL() from CSdpAttrValueBoolean
       
  1752 //!													NewIntL() from CSdpAttrValueInt
       
  1753 //!													NewStringL() from CSdpAttrValueString
       
  1754 //!													NewUintL() from CSdpAttrValueUint
       
  1755 //!													NewURLL() from CSdpAttrValueURL
       
  1756 //!													NewUUIDL() from CSdpAttrValueUUID
       
  1757 //!													NewDEAL(), AppendValueL() from CSdpAttrValueDEA
       
  1758 //!													NewDESL(), AppendValueL() from CSdpAttrValueDES
       
  1759 //! @SYMTestActions				1. Construct various attribute value objects.
       
  1760 //!								2. Use the objects of step 1 to create database entries.
       
  1761 //!								3. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1762 //!								4. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1763 //!								5. Creates a new service record, with a single service class, in the SDP database.
       
  1764 //!								   Verify the resulting err code is KErrNone.
       
  1765 //!								6. Creates a service record attribute with the DES-list of step 2.
       
  1766 //!								   Verify the resulting err code is KErrNone.
       
  1767 //!								7. Continue with the stored objects of last test case. Delete the service record. 
       
  1768 //!								8. Close the client process. Close the SDP database subsession.
       
  1769 //! @SYMTestStatus				Implemented
       
  1770 //! @SYMTestPriority			Critical
       
  1771 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
  1772 //! @SYMTestType				CIT
       
  1773 
       
  1774 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1775 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  1776 			SHARED_ACTIVE_SCHEDULER
       
  1777 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1778 			CREATE_OBJECT	RSdp	rsdp	
       
  1779 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBool	
       
  1780 			CREATE_OBJECT	CSdpAttrValueNil	attrValueNil	
       
  1781 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
  1782 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  1783 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
  1784 			CREATE_OBJECT	CSdpAttrValueString	attrValueString	
       
  1785 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint	
       
  1786 			CREATE_OBJECT	CSdpAttrValueURL	attrValueURL	
       
  1787 			CREATE_OBJECT	CSdpAttrValueUUID	attrValueUUID	
       
  1788 			COMMAND		attrValueBool	NewBoolL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command2NewBoolL
       
  1789 			COMMAND		attrValueNil	NewNilL
       
  1790 			COMMAND		attrValueInt	NewIntL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command6NewIntL
       
  1791 			COMMAND		attrValueString	NewStringL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command8NewStringL
       
  1792 			COMMAND		attrValueUint	NewUintL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command10NewUintL
       
  1793 			COMMAND		attrValueURL	NewURLL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command12NewURLL
       
  1794 			COMMAND		attrValueUUID	NewUUIDL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command14NewUUIDL
       
  1795 			COMMAND		attrValueDEA	NewDEAL
       
  1796 			COMMAND		attrValueDEA	BuildBooleanL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command17BuildBooleanL
       
  1797 			COMMAND		attrValueDES	NewDESL
       
  1798 			COMMAND		attrValueDES	BuildIntL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command20BuildIntL
       
  1799 			COMMAND		rsdp	Constructor
       
  1800 			COMMAND		rsdp	Connect
       
  1801 			OUTSTANDING
       
  1802 			COMMAND		database1	Constructor
       
  1803 			COMMAND		database1	Open		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command26Open
       
  1804 			COMMAND		database1	CreateServiceRecordL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command27CreateServiceRecordL
       
  1805 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command28UpdateAttributeL
       
  1806 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command29UpdateAttributeL
       
  1807 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command30UpdateAttributeL
       
  1808 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command31UpdateAttributeL
       
  1809 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command32UpdateAttributeL
       
  1810 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command33UpdateAttributeL
       
  1811 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command34UpdateAttributeL
       
  1812 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command35UpdateAttributeL
       
  1813 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0202-0001command36UpdateAttributeL
       
  1814 			STORE	database1	
       
  1815 			STORE	rsdp	
       
  1816 			STORE_ACTIVE_SCHEDULER
       
  1817 	END_TEST_BLOCK
       
  1818 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1819 
       
  1820 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1821 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1822 
       
  1823 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1824 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  1825 			SHARED_ACTIVE_SCHEDULER
       
  1826 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1827 			RESTORE_OBJECT	RSdp	rsdp	
       
  1828 			COMMAND		database1	DeleteRecordL
       
  1829 			COMMAND		database1	Close
       
  1830 			COMMAND		rsdp	Close
       
  1831 			STORE_ACTIVE_SCHEDULER
       
  1832 	END_TEST_BLOCK
       
  1833 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult	
       
  1834 END_TESTCASE   BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0204
       
  1835 
       
  1836 
       
  1837 START_TESTCASE BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0205
       
  1838 //! @SYMTestCaseID				BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0205
       
  1839 //! @SYMAPI						RSdpDatabase
       
  1840 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1841 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
  1842 //!													RSdp(), Connect() from RSdp
       
  1843 //!													NewNilL() from CSdpAttrValueNil
       
  1844 //!													NewBoolL() from CSdpAttrValueBoolean
       
  1845 //!													NewUintL() from CSdpAttrValueUint
       
  1846 //!													NewDESL(), AppendValueL() from CSdpAttrValueDES
       
  1847 //! @SYMTestActions				1. Construct various attribute value objects.
       
  1848 //!								2. Use the objects of step 1 to create database entries.
       
  1849 //!								3. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1850 //!								4. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1851 //!								5. Creates a new service record, with a single service class, in the SDP database.
       
  1852 //!								   Verify the resulting err code is KErrNone.
       
  1853 //!								6. Creates a service record attribute with the DES-list of step 2.
       
  1854 //!								   Verify the resulting err code is KErrNone.
       
  1855 //!								7. Continue with the stored objects of last test case. Delete the service record. 
       
  1856 //!								8. Close the client process. Close the SDP database subsession.
       
  1857 //! @SYMTestStatus				Implemented
       
  1858 //! @SYMTestPriority			Critical
       
  1859 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
  1860 //! @SYMTestType				CIT
       
  1861 
       
  1862 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1863 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  1864 			SHARED_ACTIVE_SCHEDULER
       
  1865 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1866 			CREATE_OBJECT	RSdp	rsdp	
       
  1867 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBool	
       
  1868 			CREATE_OBJECT	CSdpAttrValueNil	attrValueNil	
       
  1869 			CREATE_OBJECT	CSdpAttrValueNil	attrValueNil2	
       
  1870 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  1871 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBool2	
       
  1872 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES2	
       
  1873 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint	
       
  1874 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint2	
       
  1875 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint3	
       
  1876 			COMMAND		attrValueBool	NewBoolL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command2NewBoolL
       
  1877 			COMMAND		attrValueBool2	NewBoolL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command4NewBoolL
       
  1878 			COMMAND		attrValueNil	NewNilL
       
  1879 			COMMAND		attrValueNil2	NewNilL
       
  1880 			COMMAND		attrValueUint	NewUintL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command10NewUintL
       
  1881 			COMMAND		attrValueUint2	NewUintL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command12NewUintL
       
  1882 			COMMAND		attrValueUint3	NewUintL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command14NewUintL
       
  1883 			COMMAND		attrValueDES	NewDESL
       
  1884 			COMMAND		attrValueDES	BuildBooleanL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command17BuildBooleanL
       
  1885 			COMMAND		attrValueDES2	NewDESL
       
  1886 			COMMAND		attrValueDES2	BuildIntL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command20BuildIntL
       
  1887 			COMMAND		rsdp	Constructor
       
  1888 			COMMAND		rsdp	Connect
       
  1889 			OUTSTANDING
       
  1890 			COMMAND		database1	Constructor
       
  1891 			COMMAND		database1	Open		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command26Open
       
  1892 			COMMAND		database1	CreateServiceRecordL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command27CreateServiceRecordL
       
  1893 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command28UpdateAttributeL
       
  1894 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command29UpdateAttributeL
       
  1895 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command30UpdateAttributeL
       
  1896 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command31UpdateAttributeL
       
  1897 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command32UpdateAttributeL
       
  1898 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command33UpdateAttributeL
       
  1899 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command34UpdateAttributeL
       
  1900 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command35UpdateAttributeL
       
  1901 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command36UpdateAttributeL
       
  1902 			STORE	database1	
       
  1903 			STORE	rsdp	
       
  1904 			STORE_ACTIVE_SCHEDULER
       
  1905 	END_TEST_BLOCK
       
  1906 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1907 
       
  1908 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1909 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1910 
       
  1911 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1912 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  1913 			SHARED_ACTIVE_SCHEDULER
       
  1914 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1915 			RESTORE_OBJECT	RSdp	rsdp	
       
  1916 			COMMAND		database1	DeleteRecordL
       
  1917 			COMMAND		database1	Close
       
  1918 			COMMAND		rsdp	Close
       
  1919 			STORE_ACTIVE_SCHEDULER
       
  1920 	END_TEST_BLOCK
       
  1921 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1922 END_TESTCASE   BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0205
       
  1923 
       
  1924 
       
  1925 START_TESTCASE BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0206
       
  1926 //! @SYMTestCaseID				BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0206
       
  1927 //! @SYMAPI						RSdpDatabase
       
  1928 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1929 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
  1930 //!													RSdp(), Connect() from RSdp
       
  1931 //!													NewNilL() from CSdpAttrValueNil
       
  1932 //!													NewBoolL() from CSdpAttrValueBoolean
       
  1933 //!													NewUintL() from CSdpAttrValueUint
       
  1934 //!													NewDESL(), AppendValueL() from CSdpAttrValueDES
       
  1935 //! @SYMTestActions				1. Construct a Nil value, and a DEA-list. Append the two values into DEA-list.
       
  1936 //!								2. Construct a DES-List and append the DEA-List of step 1.
       
  1937 //!								3. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1938 //!								4. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1939 //!								5. Creates a new service record, with a single service class, in the SDP database.
       
  1940 //!								   Verify the resulting err code is KErrNone.
       
  1941 //!								6. Creates a service record attribute with the DES-list of step 2.
       
  1942 //!								   Verify the resulting err code is KErrNone.
       
  1943 //!								7. Continue with the stored objects of last test case. Delete the service record. 
       
  1944 //!								8. Close the client process. Close the SDP database subsession.
       
  1945 //! @SYMTestStatus				Implemented
       
  1946 //! @SYMTestPriority			Critical
       
  1947 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
  1948 //! @SYMTestType				CIT
       
  1949 
       
  1950 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1951 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  1952 			SHARED_ACTIVE_SCHEDULER
       
  1953 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1954 			CREATE_OBJECT	RSdp	rsdp	
       
  1955 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBool	
       
  1956 			CREATE_OBJECT	CSdpAttrValueNil	attrValueNil	
       
  1957 			CREATE_OBJECT	CSdpAttrValueNil	attrValueNil2	
       
  1958 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  1959 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBool2	
       
  1960 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES2	
       
  1961 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint	
       
  1962 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint2	
       
  1963 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint3	
       
  1964 			COMMAND		attrValueBool	NewBoolL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command2NewBoolL
       
  1965 			COMMAND		attrValueBool2	NewBoolL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command4NewBoolL
       
  1966 			COMMAND		attrValueNil	NewNilL
       
  1967 			COMMAND		attrValueNil2	NewNilL
       
  1968 			COMMAND		attrValueUint	NewUintL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command10NewUintL
       
  1969 			COMMAND		attrValueUint2	NewUintL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command12NewUintL
       
  1970 			COMMAND		attrValueUint3	NewUintL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command14NewUintL
       
  1971 			COMMAND		attrValueDES	NewDESL
       
  1972 			COMMAND		attrValueDES	BuildBooleanL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command17BuildBooleanL
       
  1973 			COMMAND		attrValueDES2	NewDESL
       
  1974 			COMMAND		attrValueDES2	BuildIntL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command20BuildIntL
       
  1975 			COMMAND		rsdp	Constructor
       
  1976 			COMMAND		rsdp	Connect
       
  1977 			OUTSTANDING
       
  1978 			COMMAND		database1	Constructor
       
  1979 			COMMAND		database1	Open		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command26Open
       
  1980 			COMMAND		database1	CreateServiceRecordL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command27CreateServiceRecordL
       
  1981 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command28UpdateAttributeL
       
  1982 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command29UpdateAttributeL
       
  1983 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command30UpdateAttributeL
       
  1984 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command31UpdateAttributeL
       
  1985 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command32UpdateAttributeL
       
  1986 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command33UpdateAttributeL
       
  1987 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command34UpdateAttributeL
       
  1988 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command35UpdateAttributeL
       
  1989 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0203-0001command36UpdateAttributeL
       
  1990 			STORE	database1	
       
  1991 			STORE	rsdp	
       
  1992 			STORE_ACTIVE_SCHEDULER
       
  1993 	END_TEST_BLOCK
       
  1994 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1995 
       
  1996 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1997 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1998 
       
  1999 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2000 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  2001 			SHARED_ACTIVE_SCHEDULER
       
  2002 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  2003 			RESTORE_OBJECT	RSdp	rsdp	
       
  2004 			COMMAND		database1	DeleteRecordL
       
  2005 			COMMAND		database1	Close
       
  2006 			COMMAND		rsdp	Close
       
  2007 			STORE_ACTIVE_SCHEDULER
       
  2008 	END_TEST_BLOCK
       
  2009 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2010 END_TESTCASE   BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0206
       
  2011 
       
  2012 
       
  2013 START_TESTCASE BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0207
       
  2014 //! @SYMTestCaseID				BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0207
       
  2015 //! @SYMAPI						RSdpDatabase
       
  2016 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  2017 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
  2018 //!													RSdp(), Connect() from RSdp
       
  2019 //!													NewBoolL() from CSdpAttrValueBoolean
       
  2020 //!													NewIntL() from CSdpAttrValueInt
       
  2021 //!													NewUintL() from CSdpAttrValueUint
       
  2022 //!													NewDESL(), AppendValueL() from CSdpAttrValueDES
       
  2023 //! @SYMTestActions				1. Construct a Nil value, and a DEA-list. Append the two values into DEA-list.
       
  2024 //!								2. Construct a DES-List and append the DEA-List of step 1.
       
  2025 //!								3. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  2026 //!								4. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  2027 //!								5. Creates a new service record, with a single service class, in the SDP database.
       
  2028 //!								   Verify the resulting err code is KErrNone.
       
  2029 //!								6. Creates a service record attribute with the DES-list of step 2.
       
  2030 //!								   Verify the resulting err code is KErrNone.
       
  2031 //!								7. Continue with the stored objects of last test case. Delete the service record. 
       
  2032 //!								8. Close the client process. Close the SDP database subsession.
       
  2033 //! @SYMTestStatus				Implemented
       
  2034 //! @SYMTestPriority			Critical
       
  2035 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
  2036 //! @SYMTestType				CIT
       
  2037 
       
  2038 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2039 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  2040 			SHARED_ACTIVE_SCHEDULER
       
  2041 			CREATE_OBJECT	RSdpDatabase	database1	
       
  2042 			CREATE_OBJECT	RSdp	rsdp	
       
  2043 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBool	
       
  2044 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
  2045 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt2	
       
  2046 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  2047 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBool2	
       
  2048 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES2	
       
  2049 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint	
       
  2050 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint2	
       
  2051 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint3	
       
  2052 			COMMAND		attrValueBool	NewBoolL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command2NewBoolL
       
  2053 			COMMAND		attrValueBool2	NewBoolL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command4NewBoolL
       
  2054 			COMMAND		attrValueInt	NewIntL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command6NewIntL
       
  2055 			COMMAND		attrValueInt2	NewIntL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command8NewIntL
       
  2056 			COMMAND		attrValueUint	NewUintL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command10NewUintL
       
  2057 			COMMAND		attrValueUint2	NewUintL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command12NewUintL
       
  2058 			COMMAND		attrValueUint3	NewUintL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command14NewUintL
       
  2059 			COMMAND		attrValueDES	NewDESL
       
  2060 			COMMAND		attrValueDES	BuildBooleanL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command17BuildBooleanL
       
  2061 			COMMAND		attrValueDES2	NewDESL
       
  2062 			COMMAND		attrValueDES2	BuildIntL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command20BuildIntL
       
  2063 			COMMAND		rsdp	Constructor
       
  2064 			COMMAND		rsdp	Connect
       
  2065 			OUTSTANDING
       
  2066 			COMMAND		database1	Constructor
       
  2067 			COMMAND		database1	Open		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command26Open
       
  2068 			COMMAND		database1	CreateServiceRecordL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command27CreateServiceRecordL
       
  2069 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command28UpdateAttributeL
       
  2070 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command29UpdateAttributeL
       
  2071 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command30UpdateAttributeL
       
  2072 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command31UpdateAttributeL
       
  2073 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command32UpdateAttributeL
       
  2074 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command33UpdateAttributeL
       
  2075 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command34UpdateAttributeL
       
  2076 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command35UpdateAttributeL
       
  2077 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command36UpdateAttributeL
       
  2078 			STORE	database1	
       
  2079 			STORE	rsdp	
       
  2080 			STORE_ACTIVE_SCHEDULER
       
  2081 	END_TEST_BLOCK
       
  2082 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2083 
       
  2084 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2085 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2086 
       
  2087 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2088 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  2089 			SHARED_ACTIVE_SCHEDULER
       
  2090 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  2091 			RESTORE_OBJECT	RSdp	rsdp	
       
  2092 			COMMAND		database1	DeleteRecordL
       
  2093 			COMMAND		database1	Close
       
  2094 			COMMAND		rsdp	Close
       
  2095 			STORE_ACTIVE_SCHEDULER
       
  2096 	END_TEST_BLOCK
       
  2097 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2098 END_TESTCASE   BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0207
       
  2099 
       
  2100 
       
  2101 
       
  2102 START_TESTCASE BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0208
       
  2103 //! @SYMTestCaseID				BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0208
       
  2104 //! @SYMAPI						RSdpDatabase
       
  2105 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  2106 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
  2107 //!													RSdp(), Connect() from RSdp
       
  2108 //!													NewBoolL() from CSdpAttrValueBoolean
       
  2109 //!													NewIntL() from CSdpAttrValueInt
       
  2110 //!													NewUintL() from CSdpAttrValueUint
       
  2111 //!													NewDESL(), AppendValueL() from CSdpAttrValueDES
       
  2112 //! @SYMTestActions				1. Construct various attribute value objects.
       
  2113 //!								2. Use the objects of step 1 to create database entries.
       
  2114 //!								3. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  2115 //!								4. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  2116 //!								5. Creates a new service record, with a single service class, in the SDP database.
       
  2117 //!								   Verify the resulting err code is KErrNone.
       
  2118 //!								6. Creates a service record attribute with the DES-list of step 2.
       
  2119 //!								   Verify the resulting err code is KErrNone.
       
  2120 //!								7. Continue with the stored objects of last test case. Delete the service record. 
       
  2121 //!								8. Close the client process. Close the SDP database subsession.
       
  2122 //! @SYMTestStatus				Implemented
       
  2123 //! @SYMTestPriority			Critical
       
  2124 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
  2125 //! @SYMTestType				CIT
       
  2126 
       
  2127 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2128 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  2129 			SHARED_ACTIVE_SCHEDULER
       
  2130 			CREATE_OBJECT	RSdpDatabase	database1	
       
  2131 			CREATE_OBJECT	RSdp	rsdp	
       
  2132 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBool	
       
  2133 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
  2134 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt2	
       
  2135 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  2136 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBool2	
       
  2137 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES2	
       
  2138 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint	
       
  2139 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint2	
       
  2140 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint3	
       
  2141 			COMMAND		attrValueBool	NewBoolL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command2NewBoolL
       
  2142 			COMMAND		attrValueBool2	NewBoolL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command4NewBoolL
       
  2143 			COMMAND		attrValueInt	NewIntL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command6NewIntL
       
  2144 			COMMAND		attrValueInt2	NewIntL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command8NewIntL
       
  2145 			COMMAND		attrValueUint	NewUintL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command10NewUintL
       
  2146 			COMMAND		attrValueUint2	NewUintL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command12NewUintL
       
  2147 			COMMAND		attrValueUint3	NewUintL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command14NewUintL
       
  2148 			COMMAND		attrValueDES	NewDESL
       
  2149 			COMMAND		attrValueDES	BuildBooleanL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command17BuildBooleanL
       
  2150 			COMMAND		attrValueDES2	NewDESL
       
  2151 			COMMAND		attrValueDES2	BuildIntL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command20BuildIntL
       
  2152 			COMMAND		rsdp	Constructor
       
  2153 			COMMAND		rsdp	Connect
       
  2154 			OUTSTANDING
       
  2155 			COMMAND		database1	Constructor
       
  2156 			COMMAND		database1	Open		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command26Open
       
  2157 			COMMAND		database1	CreateServiceRecordL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command27CreateServiceRecordL
       
  2158 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command28UpdateAttributeL
       
  2159 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command29UpdateAttributeL
       
  2160 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command30UpdateAttributeL
       
  2161 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command31UpdateAttributeL
       
  2162 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command32UpdateAttributeL
       
  2163 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command33UpdateAttributeL
       
  2164 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command34UpdateAttributeL
       
  2165 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command35UpdateAttributeL
       
  2166 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0204-0001command36UpdateAttributeL
       
  2167 			STORE	database1	
       
  2168 			STORE	rsdp	
       
  2169 			STORE_ACTIVE_SCHEDULER
       
  2170 	END_TEST_BLOCK
       
  2171 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2172 
       
  2173 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2174 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2175 
       
  2176 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2177 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  2178 			SHARED_ACTIVE_SCHEDULER
       
  2179 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  2180 			RESTORE_OBJECT	RSdp	rsdp	
       
  2181 			COMMAND		database1	DeleteRecordL
       
  2182 			COMMAND		database1	Close
       
  2183 			COMMAND		rsdp	Close
       
  2184 			STORE_ACTIVE_SCHEDULER
       
  2185 	END_TEST_BLOCK
       
  2186 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2187 END_TESTCASE   BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0208
       
  2188 
       
  2189 
       
  2190 
       
  2191 START_TESTCASE BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0209
       
  2192 //! @SYMTestCaseID				BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0209
       
  2193 //! @SYMAPI						RSdpDatabase
       
  2194 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  2195 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
  2196 //!													RSdp(), Connect() from RSdp
       
  2197 //!													NewIntL() from CSdpAttrValueInt
       
  2198 //!													NewStringL() from CSdpAttrValueString
       
  2199 //!													NewURLL() from CSdpAttrValueURL
       
  2200 //!													NewUUIDL() from CSdpAttrValueUUID
       
  2201 //!													NewDEAL(), AppendValueL() from CSdpAttrValueDEA
       
  2202 //! @SYMTestActions				1. Construct various attribute value objects.
       
  2203 //!								2. Use the objects of step 1 to create database entries.
       
  2204 //!								3. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  2205 //!								4. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  2206 //!								5. Creates a new service record, with a single service class, in the SDP database.
       
  2207 //!								   Verify the resulting err code is KErrNone.
       
  2208 //!								6. Creates a service record attribute with the DES-list of step 2.
       
  2209 //!								   Verify the resulting err code is KErrNone.
       
  2210 //!								7. Continue with the stored objects of last test case. Delete the service record. 
       
  2211 //!								8. Close the client process. Close the SDP database subsession.
       
  2212 //! @SYMTestStatus				Implemented
       
  2213 //! @SYMTestPriority			Critical
       
  2214 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
  2215 //! @SYMTestType				CIT
       
  2216 
       
  2217 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2218 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  2219 			SHARED_ACTIVE_SCHEDULER
       
  2220 			CREATE_OBJECT	RSdpDatabase	database1	
       
  2221 			CREATE_OBJECT	RSdp	rsdp	
       
  2222 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
  2223 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt2	
       
  2224 			CREATE_OBJECT	CSdpAttrValueString	attrValueString	
       
  2225 			CREATE_OBJECT	CSdpAttrValueString	attrValueString2	
       
  2226 			CREATE_OBJECT	CSdpAttrValueURL	attrValueURL	
       
  2227 			CREATE_OBJECT	CSdpAttrValueURL	attrValueURL2	
       
  2228 			CREATE_OBJECT	CSdpAttrValueUUID	attrValueUUID	
       
  2229 			CREATE_OBJECT	CSdpAttrValueUUID	attrValueUUID2	
       
  2230 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
  2231 			COMMAND		attrValueDEA	NewDEAL
       
  2232 			COMMAND		attrValueDEA	BuildBooleanL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command3BuildBooleanL
       
  2233 			COMMAND		attrValueDEA	BuildIntL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command4BuildIntL
       
  2234 			COMMAND		attrValueInt	NewIntL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command6NewIntL
       
  2235 			COMMAND		attrValueString	NewStringL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command8NewStringL
       
  2236 			COMMAND		attrValueString2	NewStringL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command10NewStringL
       
  2237 			COMMAND		attrValueURL	NewURLL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command12NewURLL
       
  2238 			COMMAND		attrValueURL2	NewURLL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command14NewURLL
       
  2239 			COMMAND		attrValueUUID	NewUUIDL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command16NewUUIDL
       
  2240 			COMMAND		attrValueUUID2	NewUUIDL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command18NewUUIDL
       
  2241 			COMMAND		attrValueInt2	NewIntL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command20NewIntL
       
  2242 			COMMAND		rsdp	Constructor
       
  2243 			COMMAND		rsdp	Connect
       
  2244 			OUTSTANDING
       
  2245 			COMMAND		database1	Constructor
       
  2246 			COMMAND		database1	Open		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command26Open
       
  2247 			COMMAND		database1	CreateServiceRecordL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command27CreateServiceRecordL
       
  2248 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command28UpdateAttributeL
       
  2249 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command29UpdateAttributeL
       
  2250 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command30UpdateAttributeL
       
  2251 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command31UpdateAttributeL
       
  2252 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command32UpdateAttributeL
       
  2253 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command33UpdateAttributeL
       
  2254 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command34UpdateAttributeL
       
  2255 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command35UpdateAttributeL
       
  2256 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command36UpdateAttributeL
       
  2257 			STORE	database1	
       
  2258 			STORE	rsdp	
       
  2259 			STORE_ACTIVE_SCHEDULER
       
  2260 	END_TEST_BLOCK
       
  2261 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2262 
       
  2263 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2264 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2265 
       
  2266 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2267 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  2268 			SHARED_ACTIVE_SCHEDULER
       
  2269 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  2270 			RESTORE_OBJECT	RSdp	rsdp	
       
  2271 			COMMAND		database1	DeleteRecordL
       
  2272 			COMMAND		database1	Close
       
  2273 			COMMAND		rsdp	Close
       
  2274 			STORE_ACTIVE_SCHEDULER
       
  2275 	END_TEST_BLOCK
       
  2276 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2277 END_TESTCASE   BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0209
       
  2278 
       
  2279 
       
  2280 START_TESTCASE BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0210
       
  2281 //! @SYMTestCaseID				BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0210
       
  2282 //! @SYMAPI						RSdpDatabase
       
  2283 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  2284 //!								Uses API elements: 	RSdpDatabase(), Open(), CreateServiceRecordL(), DeleteRecordL(), Close(), UpdateAttributeL() from RSdpDatabase
       
  2285 //!													RSdp(), Connect() from RSdp
       
  2286 //!													NewIntL() from CSdpAttrValueInt
       
  2287 //!													NewStringL() from CSdpAttrValueString
       
  2288 //!													NewURLL() from CSdpAttrValueURL
       
  2289 //!													NewUUIDL() from CSdpAttrValueUUID
       
  2290 //!													NewDEAL(), AppendValueL() from CSdpAttrValueDEA
       
  2291 //! @SYMTestActions				1. Construct various attribute value objects.
       
  2292 //!								2. Use the objects of step 1 to create database entries.
       
  2293 //!								3. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  2294 //!								4. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  2295 //!								5. Creates a new service record, with a single service class, in the SDP database.
       
  2296 //!								   Verify the resulting err code is KErrNone.
       
  2297 //!								6. Creates a service record attribute with the DES-list of step 2.
       
  2298 //!								   Verify the resulting err code is KErrNone.
       
  2299 //!								7. Continue with the stored objects of last test case. Delete the service record. 
       
  2300 //!								8. Close the client process. Close the SDP database subsession.
       
  2301 //! @SYMTestStatus				Implemented
       
  2302 //! @SYMTestPriority			Critical
       
  2303 //! @SYMTestExpectedResults  	RSdp and RSdpDatabase sessions successfully closed and objects destructed
       
  2304 //! @SYMTestType				CIT
       
  2305 
       
  2306 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2307 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  2308 			SHARED_ACTIVE_SCHEDULER
       
  2309 			CREATE_OBJECT	RSdpDatabase	database1	
       
  2310 			CREATE_OBJECT	RSdp	rsdp	
       
  2311 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
  2312 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt2	
       
  2313 			CREATE_OBJECT	CSdpAttrValueString	attrValueString	
       
  2314 			CREATE_OBJECT	CSdpAttrValueString	attrValueString2	
       
  2315 			CREATE_OBJECT	CSdpAttrValueURL	attrValueURL	
       
  2316 			CREATE_OBJECT	CSdpAttrValueURL	attrValueURL2	
       
  2317 			CREATE_OBJECT	CSdpAttrValueUUID	attrValueUUID	
       
  2318 			CREATE_OBJECT	CSdpAttrValueUUID	attrValueUUID2	
       
  2319 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
  2320 			COMMAND		attrValueDEA	NewDEAL
       
  2321 			COMMAND		attrValueDEA	BuildBooleanL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command3BuildBooleanL
       
  2322 			COMMAND		attrValueDEA	BuildIntL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command4BuildIntL
       
  2323 			COMMAND		attrValueInt	NewIntL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command6NewIntL
       
  2324 			COMMAND		attrValueString	NewStringL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command8NewStringL
       
  2325 			COMMAND		attrValueString2	NewStringL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command10NewStringL
       
  2326 			COMMAND		attrValueURL	NewURLL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command12NewURLL
       
  2327 			COMMAND		attrValueURL2	NewURLL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command14NewURLL
       
  2328 			COMMAND		attrValueUUID	NewUUIDL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command16NewUUIDL
       
  2329 			COMMAND		attrValueUUID2	NewUUIDL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command18NewUUIDL
       
  2330 			COMMAND		attrValueInt2	NewIntL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command20NewIntL
       
  2331 			COMMAND		rsdp	Constructor
       
  2332 			COMMAND		rsdp	Connect
       
  2333 			OUTSTANDING
       
  2334 			COMMAND		database1	Constructor
       
  2335 			COMMAND		database1	Open		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command26Open
       
  2336 			COMMAND		database1	CreateServiceRecordL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command27CreateServiceRecordL
       
  2337 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command28UpdateAttributeL
       
  2338 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command29UpdateAttributeL
       
  2339 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command30UpdateAttributeL
       
  2340 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command31UpdateAttributeL
       
  2341 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command32UpdateAttributeL
       
  2342 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command33UpdateAttributeL
       
  2343 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command34UpdateAttributeL
       
  2344 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command35UpdateAttributeL
       
  2345 			COMMAND		database1	UpdateAttributeL		BTSDP-PublicApi-AttrIdMatchList-Passive-0205-0001command36UpdateAttributeL
       
  2346 			STORE	database1	
       
  2347 			STORE	rsdp	
       
  2348 			STORE_ACTIVE_SCHEDULER
       
  2349 	END_TEST_BLOCK
       
  2350 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2351 
       
  2352 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2353 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2354 
       
  2355 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2356 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Passive-Master.ini
       
  2357 			SHARED_ACTIVE_SCHEDULER
       
  2358 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  2359 			RESTORE_OBJECT	RSdp	rsdp	
       
  2360 			COMMAND		database1	DeleteRecordL
       
  2361 			COMMAND		database1	Close
       
  2362 			COMMAND		rsdp	Close
       
  2363 			STORE_ACTIVE_SCHEDULER
       
  2364 	END_TEST_BLOCK
       
  2365 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2366 END_TESTCASE   BTSDP-PublicApi-AttrIdMatchList-Passive-Master-0210
       
  2367 
       
  2368 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveExecutionResultActiveSlave
       
  2369 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StopTDService
       
  2370 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StopSyncService
       
  2371 
       
  2372 
       
  2373 
       
  2374 
       
  2375