bluetoothapitest/bluetoothsvs/T_BTSdpAPI/scripts/BTSDP-SearchPattern-PublicApi-Passive-Slave.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 RSdpDatabase 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			08/12/2006
       
    28 ///////////////////////////////////////////////////////////////////////////////
       
    29 
       
    30 RUN_UTILS	MkDir	${SYSDRIVE}\bluetooth\
       
    31 RUN_UTILS	MkDir	${SYSDRIVE}\bluetooth\sdp\
       
    32 RUN_UTILS	MkDir	${SYSDRIVE}\bluetooth\sdp\t_RSdpdatabase\
       
    33 
       
    34 LOAD_SUITE	T_BTSdpAPI	-SharedData
       
    35 DELAY		2000
       
    36 
       
    37 START_TESTCASE	BTSDP-SearchPattern-PublicApi-Passive-SetBTAddresses
       
    38 
       
    39 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
    40 			SHARED_ACTIVE_SCHEDULER
       
    41 			CREATE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
    42 			CREATE_OBJECT	TRfcommSockAddr	TRfcommSockAddr1	
       
    43 			CREATE_OBJECT	CBluetoothSocket	CBluetoothSessionSocket	
       
    44 			COMMAND		CBluetoothSocket1	RSocketServerConnect
       
    45 			COMMAND		CBluetoothSocket1	NewL		BTSDP-SearchPattern-PublicApi-Passive-SetBTAddresses-0001command3NewL
       
    46 			COMMAND		TRfcommSockAddr1	Construct
       
    47 			COMMAND		TRfcommSockAddr1	SetFamily		BTSDP-SearchPattern-PublicApi-Passive-SetBTAddresses-0001command6SetFamily
       
    48 			COMMAND		TRfcommSockAddr1	SetPort		BTSDP-SearchPattern-PublicApi-Passive-SetBTAddresses-0001command7SetPort
       
    49 			COMMAND		CBluetoothSocket1	Bind		BTSDP-SearchPattern-PublicApi-Passive-SetBTAddresses-0001command9Bind
       
    50 			COMMAND		CBluetoothSocket1	Listen		BTSDP-SearchPattern-PublicApi-Passive-SetBTAddresses-0001command10Listen
       
    51 			COMMAND		CBluetoothSessionSocket	SetRsocketServerFromCBTSocket		BTSDP-SearchPattern-PublicApi-Passive-SetBTAddresses-0001command12SetRsocketServerFromCBTSocket
       
    52 			COMMAND		CBluetoothSessionSocket	NewL		BTSDP-SearchPattern-PublicApi-Passive-SetBTAddresses-0001command13NewL
       
    53 			STORE	CBluetoothSocket1	
       
    54 			STORE	CBluetoothSessionSocket	
       
    55 			STORE_ACTIVE_SCHEDULER
       
    56 	END_TEST_BLOCK
       
    57 	START_SYNCHRONISED_TESTCASE BTSDP-SearchPattern-PublicApi-Active-SetBTAddresses-0001		
       
    58 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
    59 			SHARED_ACTIVE_SCHEDULER
       
    60 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
    61 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSessionSocket	
       
    62 			CREATE_OBJECT	TBTDevAddr	TBTDevAddrLocal	
       
    63 			COMMAND		TBTDevAddrLocal	Construct
       
    64 			COMMAND		TBTDevAddrLocal	OpenHostResolver		BTSDP-SearchPattern-PublicApi-Passive-SetBTAddresses-0002command3OpenHostResolver
       
    65 			COMMAND		TBTDevAddrLocal	SetHostNameL		BTSDP-SearchPattern-PublicApi-Passive-SetBTAddresses-0002command4SetHostNameL
       
    66 			COMMAND		TBTDevAddrLocal	SetDiscoverable
       
    67 			STORE	CBluetoothSocket1	
       
    68 			STORE	CBluetoothSessionSocket	
       
    69 			STORE	TBTDevAddrLocal	
       
    70 			STORE_ACTIVE_SCHEDULER
       
    71 	END_TEST_BLOCK
       
    72 	END_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-SetBTAddresses-0001
       
    73 END_TESTCASE	BTSDP-SearchPattern-PublicApi-Passive-SetBTAddresses
       
    74 
       
    75 // ****************************************************************************
       
    76 // T_RSdpdatabase
       
    77 // ****************************************************************************	
       
    78 
       
    79 START_TESTCASE BTSDP-AttrValURL-PublicApi-Passive-Slave-0501
       
    80 //! @SYMTestCaseID				BTSDP-AttrValURL-PublicApi-Passive-Slave-0501
       
    81 //! @SYMAPI						CSdpAttrValueURL, CSdpAttrValue, RSdp and RSdpDatabase
       
    82 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
    83 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
    84 //!													Constructor(), Connect(), Close() from RSdp
       
    85 //!													NewURLL(), Type(), Des(), DataSize(), DoesIntFit() from CSdpAttrValueURL
       
    86 //! @SYMTestActions				1. Create a CSdpAttrValueURL object with the URL value using NewURLL() function.
       
    87 //!								   Return KErrNone if successed
       
    88 //!								2. Verify the object type using Type() function. Test pass if expected type is ETypeURL
       
    89 //!								3. Use Des() function to retrieve CSdpAttrValueURL object's data pointer descriptor.
       
    90 //!								   Verify the result is as expected
       
    91 //!								4. Get the size of CSdpAttrValueURL object using DataSize() function.
       
    92 //!								   Verify the result is as expected
       
    93 //!								5. Verify that CSdpAttrValueURL object cannot hold integer value using DoesIntFit() function
       
    94 //!								   Verify the result is as expected
       
    95 //!								6. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
    96 //!								7. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
    97 //!								8. Creates a new service record, with a single service class, in the SDP database.
       
    98 //!								   Verify the resulting err code is KErrNone.
       
    99 //!								9. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   100 //!								   Verify the resulting err code is KErrNone.
       
   101 //!								10. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   102 //!								11. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   103 //!								12. Creates a new service record, with a single service class, in the SDP database.
       
   104 //!								   Verify the resulting err code is KErrNone.
       
   105 //!								13. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   106 //!								   Verify the resulting err code is KErrNone.
       
   107 //!								14. Continue with the stored objects of last test case. Delete the service record. 
       
   108 //!								15. Close the client process. Close the SDP database subsession.
       
   109 //! @SYMTestStatus				Implemented
       
   110 //! @SYMTestPriority			Low
       
   111 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   112 //! @SYMTestType				CIT
       
   113 
       
   114 	START_SYNCHRONISED_TESTCASE BTSDP-SearchPattern-PublicApi-Active-SetBTAddresses-0002
       
   115 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
   116 			SHARED_ACTIVE_SCHEDULER
       
   117 			CREATE_OBJECT	RSdpDatabase	database1	
       
   118 			CREATE_OBJECT	RSdp	rsdp	
       
   119 			CREATE_OBJECT	CSdpAttrValueURL	attrValueURL	
       
   120 			COMMAND		attrValueURL	NewURLL		BTSDP-AttrValURL-PublicApi-Passive-0501-0001command2NewURLL
       
   121 			COMMAND		attrValueURL	Type		BTSDP-AttrValURL-PublicApi-Passive-0501-0001command3Type
       
   122 			COMMAND		attrValueURL	Des		BTSDP-AttrValURL-PublicApi-Passive-0501-0001command4Des
       
   123 			COMMAND		attrValueURL	DataSize		BTSDP-AttrValURL-PublicApi-Passive-0501-0001command5DataSize
       
   124 			COMMAND		attrValueURL	DoesIntFit		BTSDP-AttrValURL-PublicApi-Passive-0501-0001command6DoesIntFit
       
   125 			COMMAND		rsdp	Constructor
       
   126 			COMMAND		rsdp	Connect
       
   127 			OUTSTANDING
       
   128 			COMMAND		database1	Constructor
       
   129 			COMMAND		database1	Open		BTSDP-AttrValURL-PublicApi-Passive-0501-0001command12Open
       
   130 			COMMAND		database1	CreateServiceRecordL		BTSDP-AttrValURL-PublicApi-Passive-0501-0001command13CreateServiceRecordL
       
   131 			COMMAND		database1	UpdateAttributeL		BTSDP-AttrValURL-PublicApi-Passive-0501-0001command14UpdateAttributeL
       
   132 			STORE	database1	
       
   133 			STORE	rsdp	
       
   134 			STORE_ACTIVE_SCHEDULER
       
   135 	END_TEST_BLOCK
       
   136 	END_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-SetBTAddresses-0002
       
   137 	START_SYNCHRONISED_TESTCASE	BTSDP-AttrValURL-PublicApi-Active-0301-0001
       
   138 	END_SYNCHRONISED_TESTCASE	BTSDP-AttrValURL-PublicApi-Active-0301-0001
       
   139 	START_SYNCHRONISED_TESTCASE BTSDP-AttrValURL-PublicApi-Active-0301-0002
       
   140 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
   141 			SHARED_ACTIVE_SCHEDULER
       
   142 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   143 			RESTORE_OBJECT	RSdp	rsdp	
       
   144 			ASYNC_DELAY	5000000
       
   145 			COMMAND		database1	DeleteRecordL
       
   146 			COMMAND		database1	Close
       
   147 			COMMAND		rsdp	Close
       
   148 			STORE_ACTIVE_SCHEDULER
       
   149 	END_TEST_BLOCK
       
   150 	END_SYNCHRONISED_TESTCASE	BTSDP-AttrValURL-PublicApi-Active-0301-0002
       
   151 
       
   152 END_TESTCASE   BTSDP-AttrValURL-PublicApi-Passive-Slave-0501
       
   153 
       
   154 
       
   155 START_TESTCASE BTSDP-AttrValURL-PublicApi-Passive-Slave-0502
       
   156 //! @SYMTestCaseID				BTSDP-AttrValURL-PublicApi-Passive-Slave-0502
       
   157 //! @SYMAPI						CSdpAttrValueURL, CSdpAttrValue, RSdp and RSdpDatabase
       
   158 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   159 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
   160 //!													Constructor(), Connect(), Close() from RSdp
       
   161 //!													NewURLL(), Type(), Des(), DataSize(), DoesIntFit() from CSdpAttrValueURL
       
   162 //! @SYMTestActions				1. Create a CSdpAttrValueURL object with the URL value using NewURLL() function.
       
   163 //!								   Return KErrNone if successed
       
   164 //!								2. Verify the object type using Type() function. Test pass if expected type is ETypeURL
       
   165 //!								3. Use Des() function to retrieve CSdpAttrValueURL object's data pointer descriptor.
       
   166 //!								   Verify the result is as expected
       
   167 //!								4. Get the size of CSdpAttrValueURL object using DataSize() function.
       
   168 //!								   Verify the result is as expected
       
   169 //!								5. Verify that CSdpAttrValueURL object cannot hold integer value using DoesIntFit() function
       
   170 //!								   Verify the result is as expected
       
   171 //!								6. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   172 //!								7. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   173 //!								8. Creates a new service record, with a single service class, in the SDP database.
       
   174 //!								   Verify the resulting err code is KErrNone.
       
   175 //!								9. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   176 //!								   Verify the resulting err code is KErrNone.
       
   177 //!								10. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   178 //!								11. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   179 //!								12. Creates a new service record, with a single service class, in the SDP database.
       
   180 //!								   Verify the resulting err code is KErrNone.
       
   181 //!								13. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   182 //!								   Verify the resulting err code is KErrNone.
       
   183 //!								14. Continue with the stored objects of last test case. Delete the service record. 
       
   184 //!								15. Close the client process. Close the SDP database subsession.
       
   185 //! @SYMTestStatus				Implemented
       
   186 //! @SYMTestPriority			Low
       
   187 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   188 //! @SYMTestType				CIT
       
   189 
       
   190 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
   191 			SHARED_ACTIVE_SCHEDULER
       
   192 			CREATE_OBJECT	RSdpDatabase	database1	
       
   193 			CREATE_OBJECT	RSdp	rsdp	
       
   194 			CREATE_OBJECT	CSdpAttrValueURL	attrValueURL	
       
   195 			COMMAND		attrValueURL	NewURLL		BTSDP-AttrValURL-PublicApi-Passive-0502-0001command2NewURLL
       
   196 			COMMAND		attrValueURL	Type		BTSDP-AttrValURL-PublicApi-Passive-0502-0001command3Type
       
   197 			COMMAND		attrValueURL	Des		BTSDP-AttrValURL-PublicApi-Passive-0502-0001command4Des
       
   198 			COMMAND		attrValueURL	DataSize		BTSDP-AttrValURL-PublicApi-Passive-0502-0001command5DataSize
       
   199 			COMMAND		attrValueURL	DoesIntFit		BTSDP-AttrValURL-PublicApi-Passive-0502-0001command6DoesIntFit
       
   200 			COMMAND		rsdp	Constructor
       
   201 			COMMAND		rsdp	Connect
       
   202 			OUTSTANDING
       
   203 			COMMAND		database1	Constructor
       
   204 			COMMAND		database1	Open		BTSDP-AttrValURL-PublicApi-Passive-0502-0001command12Open
       
   205 			COMMAND		database1	CreateServiceRecordL		BTSDP-AttrValURL-PublicApi-Passive-0502-0001command13CreateServiceRecordL
       
   206 			COMMAND		database1	UpdateAttributeL		BTSDP-AttrValURL-PublicApi-Passive-0502-0001command14UpdateAttributeL
       
   207 			STORE	database1	
       
   208 			STORE	rsdp	
       
   209 			STORE_ACTIVE_SCHEDULER
       
   210 	END_TEST_BLOCK
       
   211 	START_SYNCHRONISED_TESTCASE	BTSDP-AttrValURL-PublicApi-Active-0302-0001
       
   212 	END_SYNCHRONISED_TESTCASE	BTSDP-AttrValURL-PublicApi-Active-0302-0001
       
   213 	START_SYNCHRONISED_TESTCASE BTSDP-AttrValURL-PublicApi-Active-0302-0002
       
   214 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
   215 			SHARED_ACTIVE_SCHEDULER
       
   216 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   217 			RESTORE_OBJECT	RSdp	rsdp	
       
   218 			COMMAND		database1	DeleteRecordL
       
   219 			COMMAND		database1	Close
       
   220 			COMMAND		rsdp	Close
       
   221 			STORE_ACTIVE_SCHEDULER
       
   222 	END_TEST_BLOCK
       
   223 	END_SYNCHRONISED_TESTCASE	BTSDP-AttrValURL-PublicApi-Active-0302-0002
       
   224 
       
   225 END_TESTCASE   BTSDP-AttrValURL-PublicApi-Passive-Slave-0502
       
   226 
       
   227 
       
   228 START_TESTCASE BTSDP-AttrValURL-PublicApi-Passive-Slave-0503
       
   229 //! @SYMTestCaseID				BTSDP-AttrValURL-PublicApi-Passive-Slave-0503
       
   230 //! @SYMAPI						CSdpAttrValueURL, CSdpAttrValue, RSdp and RSdpDatabase
       
   231 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   232 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
   233 //!													Constructor(), Connect(), Close() from RSdp
       
   234 //!													NewURLL(), Type(), Des(), DataSize(), DoesIntFit() from CSdpAttrValueURL
       
   235 //! @SYMTestActions				1. Create a CSdpAttrValueURL object with the URL value using NewURLL() function.
       
   236 //!								   Return KErrNone if successed
       
   237 //!								2. Verify the object type using Type() function. Test pass if expected type is ETypeURL
       
   238 //!								3. Use Des() function to retrieve CSdpAttrValueURL object's data pointer descriptor.
       
   239 //!								   Verify the result is as expected
       
   240 //!								4. Get the size of CSdpAttrValueURL object using DataSize() function.
       
   241 //!								   Verify the result is as expected
       
   242 //!								5. Verify that CSdpAttrValueURL object cannot hold integer value using DoesIntFit() function
       
   243 //!								   Verify the result is as expected
       
   244 //!								6. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   245 //!								7. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   246 //!								8. Creates a new service record, with a single service class, in the SDP database.
       
   247 //!								   Verify the resulting err code is KErrNone.
       
   248 //!								9. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   249 //!								   Verify the resulting err code is KErrNone.
       
   250 //!								10. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   251 //!								11. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   252 //!								12. Creates a new service record, with a single service class, in the SDP database.
       
   253 //!								   Verify the resulting err code is KErrNone.
       
   254 //!								13. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   255 //!								   Verify the resulting err code is KErrNone.
       
   256 //!								14. Continue with the stored objects of last test case. Delete the service record. 
       
   257 //!								15. Close the client process. Close the SDP database subsession.
       
   258 //! @SYMTestStatus				Implemented
       
   259 //! @SYMTestPriority			Low
       
   260 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   261 //! @SYMTestType				CIT
       
   262 
       
   263 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
   264 			SHARED_ACTIVE_SCHEDULER
       
   265 			CREATE_OBJECT	RSdpDatabase	database1	
       
   266 			CREATE_OBJECT	RSdp	rsdp	
       
   267 			CREATE_OBJECT	CSdpAttrValueURL	attrValueURL	
       
   268 			COMMAND		attrValueURL	NewURLL		BTSDP-AttrValURL-PublicApi-Passive-0503-0001command2NewURLL
       
   269 			COMMAND		attrValueURL	Type		BTSDP-AttrValURL-PublicApi-Passive-0503-0001command3Type
       
   270 			COMMAND		attrValueURL	Des		BTSDP-AttrValURL-PublicApi-Passive-0503-0001command4Des
       
   271 			COMMAND		attrValueURL	DataSize		BTSDP-AttrValURL-PublicApi-Passive-0503-0001command5DataSize
       
   272 			COMMAND		attrValueURL	DoesIntFit		BTSDP-AttrValURL-PublicApi-Passive-0503-0001command6DoesIntFit
       
   273 			COMMAND		rsdp	Constructor
       
   274 			COMMAND		rsdp	Connect
       
   275 			OUTSTANDING
       
   276 			COMMAND		database1	Constructor
       
   277 			COMMAND		database1	Open		BTSDP-AttrValURL-PublicApi-Passive-0503-0001command12Open
       
   278 			COMMAND		database1	CreateServiceRecordL		BTSDP-AttrValURL-PublicApi-Passive-0503-0001command13CreateServiceRecordL
       
   279 			COMMAND		database1	UpdateAttributeL		BTSDP-AttrValURL-PublicApi-Passive-0503-0001command14UpdateAttributeL
       
   280 			STORE	database1	
       
   281 			STORE	rsdp	
       
   282 			STORE_ACTIVE_SCHEDULER
       
   283 	END_TEST_BLOCK
       
   284 	START_SYNCHRONISED_TESTCASE	BTSDP-AttrValURL-PublicApi-Active-0303-0001
       
   285 	END_SYNCHRONISED_TESTCASE	BTSDP-AttrValURL-PublicApi-Active-0303-0001
       
   286 	START_SYNCHRONISED_TESTCASE BTSDP-AttrValURL-PublicApi-Active-0303-0002
       
   287 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
   288 			SHARED_ACTIVE_SCHEDULER
       
   289 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   290 			RESTORE_OBJECT	RSdp	rsdp	
       
   291 			COMMAND		database1	DeleteRecordL
       
   292 			COMMAND		database1	Close
       
   293 			COMMAND		rsdp	Close
       
   294 			STORE_ACTIVE_SCHEDULER
       
   295 	END_TEST_BLOCK
       
   296 	END_SYNCHRONISED_TESTCASE	BTSDP-AttrValURL-PublicApi-Active-0303-0002
       
   297 
       
   298 END_TESTCASE   BTSDP-AttrValURL-PublicApi-Passive-Slave-0503
       
   299 
       
   300 
       
   301 START_TESTCASE BTSDP-AttrValURL-PublicApi-Passive-Slave-0504
       
   302 //! @SYMTestCaseID				BTSDP-AttrValURL-PublicApi-Passive-Slave-0504
       
   303 //! @SYMAPI						CSdpAttrValueURL, CSdpAttrValue, RSdp and RSdpDatabase
       
   304 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   305 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
   306 //!													Constructor(), Connect(), Close() from RSdp
       
   307 //!													NewURLL(), Type(), Des(), DataSize(), DoesIntFit() from CSdpAttrValueURL
       
   308 //! @SYMTestActions				1. Create a CSdpAttrValueURL object with the URL value using NewURLL() function.
       
   309 //!								   Return KErrNone if successed
       
   310 //!								2. Verify the object type using Type() function. Test pass if expected type is ETypeURL
       
   311 //!								3. Use Des() function to retrieve CSdpAttrValueURL object's data pointer descriptor.
       
   312 //!								   Verify the result is as expected
       
   313 //!								4. Get the size of CSdpAttrValueURL object using DataSize() function.
       
   314 //!								   Verify the result is as expected
       
   315 //!								5. Verify that CSdpAttrValueURL object cannot hold integer value using DoesIntFit() function
       
   316 //!								   Verify the result is as expected
       
   317 //!								6. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   318 //!								7. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   319 //!								8. Creates a new service record, with a single service class, in the SDP database.
       
   320 //!								   Verify the resulting err code is KErrNone.
       
   321 //!								9. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   322 //!								   Verify the resulting err code is KErrNone.
       
   323 //!								10. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   324 //!								11. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   325 //!								12. Creates a new service record, with a single service class, in the SDP database.
       
   326 //!								   Verify the resulting err code is KErrNone.
       
   327 //!								13. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   328 //!								   Verify the resulting err code is KErrNone.
       
   329 //!								14. Continue with the stored objects of last test case. Delete the service record. 
       
   330 //!								15. Close the client process. Close the SDP database subsession.
       
   331 //! @SYMTestStatus				Implemented
       
   332 //! @SYMTestPriority			Low
       
   333 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   334 //! @SYMTestType				CIT
       
   335 
       
   336 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
   337 			SHARED_ACTIVE_SCHEDULER
       
   338 			CREATE_OBJECT	RSdpDatabase	database1	
       
   339 			CREATE_OBJECT	RSdp	rsdp	
       
   340 			CREATE_OBJECT	CSdpAttrValueURL	attrValueURL	
       
   341 			COMMAND		attrValueURL	NewURLL		BTSDP-AttrValURL-PublicApi-Passive-0504-0001command2NewURLL
       
   342 			COMMAND		attrValueURL	Type		BTSDP-AttrValURL-PublicApi-Passive-0504-0001command3Type
       
   343 			COMMAND		attrValueURL	Des		BTSDP-AttrValURL-PublicApi-Passive-0504-0001command4Des
       
   344 			COMMAND		attrValueURL	DataSize		BTSDP-AttrValURL-PublicApi-Passive-0504-0001command5DataSize
       
   345 			COMMAND		attrValueURL	DoesIntFit		BTSDP-AttrValURL-PublicApi-Passive-0504-0001command6DoesIntFit
       
   346 			COMMAND		rsdp	Constructor
       
   347 			COMMAND		rsdp	Connect
       
   348 			OUTSTANDING
       
   349 			COMMAND		database1	Constructor
       
   350 			COMMAND		database1	Open		BTSDP-AttrValURL-PublicApi-Passive-0504-0001command12Open
       
   351 			COMMAND		database1	CreateServiceRecordL		BTSDP-AttrValURL-PublicApi-Passive-0504-0001command13CreateServiceRecordL
       
   352 			COMMAND		database1	UpdateAttributeL		BTSDP-AttrValURL-PublicApi-Passive-0504-0001command14UpdateAttributeL
       
   353 			STORE	database1	
       
   354 			STORE	rsdp	
       
   355 			STORE_ACTIVE_SCHEDULER
       
   356 	END_TEST_BLOCK
       
   357 	START_SYNCHRONISED_TESTCASE	BTSDP-AttrValURL-PublicApi-Active-0304-0001
       
   358 	END_SYNCHRONISED_TESTCASE	BTSDP-AttrValURL-PublicApi-Active-0304-0001
       
   359 	START_SYNCHRONISED_TESTCASE BTSDP-AttrValURL-PublicApi-Active-0304-0002
       
   360 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
   361 			SHARED_ACTIVE_SCHEDULER
       
   362 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   363 			RESTORE_OBJECT	RSdp	rsdp	
       
   364 			COMMAND		database1	DeleteRecordL
       
   365 			COMMAND		database1	Close
       
   366 			COMMAND		rsdp	Close
       
   367 			STORE_ACTIVE_SCHEDULER
       
   368 	END_TEST_BLOCK
       
   369 	END_SYNCHRONISED_TESTCASE	BTSDP-AttrValURL-PublicApi-Active-0304-0002
       
   370 
       
   371 END_TESTCASE   BTSDP-AttrValURL-PublicApi-Passive-Slave-0504
       
   372 
       
   373 
       
   374 START_TESTCASE BTSDP-AttrValURL-PublicApi-Passive-Slave-0505
       
   375 //! @SYMTestCaseID				BTSDP-AttrValURL-PublicApi-Passive-Slave-0505
       
   376 //! @SYMAPI						CSdpAttrValueURL, CSdpAttrValue, RSdp and RSdpDatabase
       
   377 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   378 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
   379 //!													Constructor(), Connect(), Close() from RSdp
       
   380 //!													NewURLL(), Type(), Des(), DataSize(), DoesIntFit() from CSdpAttrValueURL
       
   381 //! @SYMTestActions				1. Create a CSdpAttrValueURL object with the URL value using NewURLL() function.
       
   382 //!								   Return KErrNone if successed
       
   383 //!								2. Verify the object type using Type() function. Test pass if expected type is ETypeURL
       
   384 //!								3. Use Des() function to retrieve CSdpAttrValueURL object's data pointer descriptor.
       
   385 //!								   Verify the result is as expected
       
   386 //!								4. Get the size of CSdpAttrValueURL object using DataSize() function.
       
   387 //!								   Verify the result is as expected
       
   388 //!								5. Verify that CSdpAttrValueURL object cannot hold integer value using DoesIntFit() function
       
   389 //!								   Verify the result is as expected
       
   390 //!								6. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   391 //!								7. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   392 //!								8. Creates a new service record, with a single service class, in the SDP database.
       
   393 //!								   Verify the resulting err code is KErrNone.
       
   394 //!								9. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   395 //!								   Verify the resulting err code is KErrNone.
       
   396 //!								10. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   397 //!								11. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   398 //!								12. Creates a new service record, with a single service class, in the SDP database.
       
   399 //!								   Verify the resulting err code is KErrNone.
       
   400 //!								13. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   401 //!								   Verify the resulting err code is KErrNone.
       
   402 //!								14. Continue with the stored objects of last test case. Delete the service record. 
       
   403 //!								15. Close the client process. Close the SDP database subsession.
       
   404 //! @SYMTestStatus				Implemented
       
   405 //! @SYMTestPriority			Low
       
   406 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   407 //! @SYMTestType				CIT
       
   408 
       
   409 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
   410 			SHARED_ACTIVE_SCHEDULER
       
   411 			CREATE_OBJECT	RSdpDatabase	database1	
       
   412 			CREATE_OBJECT	RSdp	rsdp	
       
   413 			CREATE_OBJECT	CSdpAttrValueURL	attrValueURL	
       
   414 			COMMAND		attrValueURL	NewURLL		BTSDP-AttrValURL-PublicApi-Passive-0505-0001command2NewURLL
       
   415 			COMMAND		attrValueURL	Type		BTSDP-AttrValURL-PublicApi-Passive-0505-0001command3Type
       
   416 			COMMAND		attrValueURL	Des		BTSDP-AttrValURL-PublicApi-Passive-0505-0001command4Des
       
   417 			COMMAND		attrValueURL	DataSize		BTSDP-AttrValURL-PublicApi-Passive-0505-0001command5DataSize
       
   418 			COMMAND		attrValueURL	DoesIntFit		BTSDP-AttrValURL-PublicApi-Passive-0505-0001command6DoesIntFit
       
   419 			COMMAND		rsdp	Constructor
       
   420 			COMMAND		rsdp	Connect
       
   421 			OUTSTANDING
       
   422 			COMMAND		database1	Constructor
       
   423 			COMMAND		database1	Open		BTSDP-AttrValURL-PublicApi-Passive-0505-0001command12Open
       
   424 			COMMAND		database1	CreateServiceRecordL		BTSDP-AttrValURL-PublicApi-Passive-0505-0001command13CreateServiceRecordL
       
   425 			COMMAND		database1	UpdateAttributeL		BTSDP-AttrValURL-PublicApi-Passive-0505-0001command14UpdateAttributeL
       
   426 			STORE	database1	
       
   427 			STORE	rsdp	
       
   428 			STORE_ACTIVE_SCHEDULER
       
   429 	END_TEST_BLOCK
       
   430 	START_SYNCHRONISED_TESTCASE	BTSDP-AttrValURL-PublicApi-Active-0305-0001
       
   431 	END_SYNCHRONISED_TESTCASE	BTSDP-AttrValURL-PublicApi-Active-0305-0001
       
   432 	START_SYNCHRONISED_TESTCASE BTSDP-AttrValURL-PublicApi-Active-0305-0002
       
   433 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
   434 			SHARED_ACTIVE_SCHEDULER
       
   435 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   436 			RESTORE_OBJECT	RSdp	rsdp	
       
   437 			COMMAND		database1	DeleteRecordL
       
   438 			COMMAND		database1	Close
       
   439 			COMMAND		rsdp	Close
       
   440 			STORE_ACTIVE_SCHEDULER
       
   441 	END_TEST_BLOCK
       
   442 	END_SYNCHRONISED_TESTCASE	BTSDP-AttrValURL-PublicApi-Active-0305-0002
       
   443 
       
   444 END_TESTCASE   BTSDP-AttrValURL-PublicApi-Passive-Slave-0505
       
   445 
       
   446 
       
   447 
       
   448 
       
   449 START_TESTCASE BTSDP-ElementParser-PublicApi-Passive-Slave-0506
       
   450 //! @SYMTestCaseID				BTSDP-ElementParser-PublicApi-Passive-Slave-0506
       
   451 //! @SYMAPI						CElementParser, CSdpAttrValueDEA, RSdp and RSdpDatabase
       
   452 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   453 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
   454 //!													Constructor(), Connect(), Close() from RSdp
       
   455 //!													NewL(), Builder() from CElementParser
       
   456 //!													NewDEAL(), BuildStringL(), BuildBooleanL(), BuildURLL(), AcceptVisitorL() from CSdpAttrValueDEA
       
   457 //! @SYMTestActions				1. Create a list using NewDEAL() function and return KErrNone if successed
       
   458 //!								2. Add a string in the list using BuildStringL() function. Return KErrNone if successed
       
   459 //!								3. Add a boolean in the list using BuildBooleanL() function. Return KErrNone if successed
       
   460 //!								4. Add a URL in the list using BuildURLL() function. Return KErrNone if successed
       
   461 //!								5. Create a new CElementParser object with the CSdpAttrValueDEA object using NewL() function.
       
   462 //!								   Return KErrNone if successed
       
   463 //!								6. Call Builder() function and verify the result is as expected
       
   464 //!								7. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   465 //!								8. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   466 //!								9. Creates a new service record, with a single service class, in the SDP database.
       
   467 //!								   Verify the resulting err code is KErrNone.
       
   468 //!								10. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   469 //!								   Verify the resulting err code is KErrNone.
       
   470 //!								11. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   471 //!								12. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   472 //!								13. Creates a new service record, with a single service class, in the SDP database.
       
   473 //!								   Verify the resulting err code is KErrNone.
       
   474 //!								14. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   475 //!								   Verify the resulting err code is KErrNone.
       
   476 //!								15. Continue with the stored objects of last test case. Delete the service record. 
       
   477 //!								16. Close the client process. Close the SDP database subsession.
       
   478 //! @SYMTestStatus				Implemented
       
   479 //! @SYMTestPriority			Low
       
   480 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   481 //! @SYMTestType				CIT
       
   482 
       
   483 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
   484 			SHARED_ACTIVE_SCHEDULER
       
   485 			CREATE_OBJECT	RSdpDatabase	database1	
       
   486 			CREATE_OBJECT	RSdp	rsdp	
       
   487 			CREATE_OBJECT	CElementParser	celementparser1	
       
   488 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
   489 			COMMAND		attrValueDEA	NewDEAL
       
   490 			COMMAND		attrValueDEA	BuildStringL		BTSDP-ElementParser-PublicApi-Passive-0506-0001command3BuildStringL
       
   491 			COMMAND		attrValueDEA	BuildBooleanL		BTSDP-ElementParser-PublicApi-Passive-0506-0001command4BuildBooleanL
       
   492 			COMMAND		attrValueDEA	BuildURLL		BTSDP-ElementParser-PublicApi-Passive-0506-0001command5BuildURLL
       
   493 			COMMAND		celementparser1	NewL		BTSDP-ElementParser-PublicApi-Passive-0506-0001command7NewL
       
   494 			COMMAND		celementparser1	Builder		BTSDP-ElementParser-PublicApi-Passive-0506-0001command8Builder
       
   495 			COMMAND		attrValueDEA	AcceptVisitorL		BTSDP-ElementParser-PublicApi-Passive-0506-0001command10AcceptVisitorL
       
   496 			COMMAND		rsdp	Constructor
       
   497 			COMMAND		rsdp	Connect
       
   498 			OUTSTANDING
       
   499 			COMMAND		database1	Constructor
       
   500 			COMMAND		database1	Open		BTSDP-ElementParser-PublicApi-Passive-0506-0001command16Open
       
   501 			COMMAND		database1	CreateServiceRecordL		BTSDP-ElementParser-PublicApi-Passive-0506-0001command17CreateServiceRecordL
       
   502 			COMMAND		database1	UpdateAttributeL		BTSDP-ElementParser-PublicApi-Passive-0506-0001command18UpdateAttributeL
       
   503 			STORE	database1	
       
   504 			STORE	rsdp	
       
   505 			STORE_ACTIVE_SCHEDULER
       
   506 	END_TEST_BLOCK
       
   507 	START_SYNCHRONISED_TESTCASE	BTSDP-ElementParser-PublicApi-Active-0306-0001
       
   508 	END_SYNCHRONISED_TESTCASE	BTSDP-ElementParser-PublicApi-Active-0306-0001
       
   509 	START_SYNCHRONISED_TESTCASE BTSDP-ElementParser-PublicApi-Active-0306-0002
       
   510 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
   511 			SHARED_ACTIVE_SCHEDULER
       
   512 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   513 			RESTORE_OBJECT	RSdp	rsdp	
       
   514 			COMMAND		database1	DeleteRecordL
       
   515 			COMMAND		database1	Close
       
   516 			COMMAND		rsdp	Close
       
   517 			STORE_ACTIVE_SCHEDULER
       
   518 	END_TEST_BLOCK
       
   519 	END_SYNCHRONISED_TESTCASE	BTSDP-ElementParser-PublicApi-Active-0306-0002
       
   520 
       
   521 END_TESTCASE   BTSDP-ElementParser-PublicApi-Passive-Slave-0506
       
   522 
       
   523 
       
   524 START_TESTCASE BTSDP-ElementParser-PublicApi-Passive-Slave-0507
       
   525 //! @SYMTestCaseID				BTSDP-ElementParser-PublicApi-Passive-Slave-0507
       
   526 //! @SYMAPI						CElementParser, CSdpAttrValueDES, RSdp and RSdpDatabase
       
   527 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   528 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
   529 //!													Constructor(), Connect(), Close() from RSdp
       
   530 //!													NewL(), ParseElementsL(), Builder() from CElementParser
       
   531 //!													NewDESL(), BuildStringL(), BuildUintL(), DataSize() from CSdpAttrValueDES
       
   532 //! @SYMTestActions				1. Create a list using NewDESL() function and return KErrNone if successed
       
   533 //!								2. Add a string in the list using BuildStringL() function. Return KErrNone if successed
       
   534 //!								3. Add an unsigned integer in the list using BuildUintL() function. Return KErrNone if successed
       
   535 //!								4. Create a new CElementParser object with the CSdpAttrValueDES object using NewL() function.
       
   536 //!								   Return KErrNone if successed
       
   537 //!								5. Retrieve some data from an existent file using RFs and RFile objects
       
   538 //!								6. CElementParser object parses a data buffer is gotten in step 5 using ParseElementsL() and return number of bytes not consumed
       
   539 //!								   Return KErrNone if successed and verify the result is as expected
       
   540 //!								7. Call Builder() function and verify the result is as expected
       
   541 //!								8. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   542 //!								9. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   543 //!								10. Creates a new service record, with a single service class, in the SDP database.
       
   544 //!								   Verify the resulting err code is KErrNone.
       
   545 //!								11. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   546 //!								   Verify the resulting err code is KErrNone.
       
   547 //!								12. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   548 //!								13. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   549 //!								14. Creates a new service record, with a single service class, in the SDP database.
       
   550 //!								   Verify the resulting err code is KErrNone.
       
   551 //!								15. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   552 //!								   Verify the resulting err code is KErrNone.
       
   553 //!								16. Continue with the stored objects of last test case. Delete the service record. 
       
   554 //!								17. Close the client process. Close the SDP database subsession.
       
   555 //! @SYMTestStatus				Implemented
       
   556 //! @SYMTestPriority			Low
       
   557 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   558 //! @SYMTestType				CIT
       
   559 
       
   560 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
   561 			SHARED_ACTIVE_SCHEDULER
       
   562 			CREATE_OBJECT	RSdpDatabase	database1	
       
   563 			CREATE_OBJECT	RSdp	rsdp	
       
   564 			CREATE_OBJECT	CElementParser	celementparser1	
       
   565 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
   566 			COMMAND		attrValueDES	NewDESL
       
   567 			COMMAND		attrValueDES	BuildStringL		BTSDP-ElementParser-PublicApi-Passive-0507-0001command3BuildStringL
       
   568 			COMMAND		attrValueDES	BuildUintL		BTSDP-ElementParser-PublicApi-Passive-0507-0001command4BuildUintL
       
   569 			COMMAND		celementparser1	NewL		BTSDP-ElementParser-PublicApi-Passive-0507-0001command6NewL
       
   570 			COMMAND		celementparser1	ParseElementsL		BTSDP-ElementParser-PublicApi-Passive-0507-0001command7ParseElementsL
       
   571 			COMMAND		celementparser1	Builder		BTSDP-ElementParser-PublicApi-Passive-0507-0001command8Builder
       
   572 			COMMAND		attrValueDES	DataSize		BTSDP-ElementParser-PublicApi-Passive-0507-0001command10DataSize
       
   573 			COMMAND		rsdp	Constructor
       
   574 			COMMAND		rsdp	Connect
       
   575 			OUTSTANDING
       
   576 			COMMAND		database1	Constructor
       
   577 			COMMAND		database1	Open		BTSDP-ElementParser-PublicApi-Passive-0507-0001command16Open
       
   578 			COMMAND		database1	CreateServiceRecordL		BTSDP-ElementParser-PublicApi-Passive-0507-0001command17CreateServiceRecordL
       
   579 			COMMAND		database1	UpdateAttributeL		BTSDP-ElementParser-PublicApi-Passive-0507-0001command18UpdateAttributeL
       
   580 			STORE	database1	
       
   581 			STORE	rsdp	
       
   582 			STORE_ACTIVE_SCHEDULER
       
   583 	END_TEST_BLOCK
       
   584 	START_SYNCHRONISED_TESTCASE	BTSDP-ElementParser-PublicApi-Active-0307-0001
       
   585 	END_SYNCHRONISED_TESTCASE	BTSDP-ElementParser-PublicApi-Active-0307-0001
       
   586 	START_SYNCHRONISED_TESTCASE BTSDP-ElementParser-PublicApi-Active-0307-0002
       
   587 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
   588 			SHARED_ACTIVE_SCHEDULER
       
   589 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   590 			RESTORE_OBJECT	RSdp	rsdp	
       
   591 			COMMAND		database1	DeleteRecordL
       
   592 			COMMAND		database1	Close
       
   593 			COMMAND		rsdp	Close
       
   594 			STORE_ACTIVE_SCHEDULER
       
   595 	END_TEST_BLOCK
       
   596 	END_SYNCHRONISED_TESTCASE	BTSDP-ElementParser-PublicApi-Active-0307-0002
       
   597 
       
   598 END_TESTCASE   BTSDP-ElementParser-PublicApi-Passive-Slave-0507
       
   599 
       
   600 
       
   601 START_TESTCASE BTSDP-ElementParser-PublicApi-Passive-Slave-0508
       
   602 //! @SYMTestCaseID				BTSDP-ElementParser-PublicApi-Passive-Slave-0508
       
   603 //! @SYMAPI						CElementParser, CSdpAttrValueDEA, RSdp and RSdpDatabase
       
   604 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   605 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
   606 //!													Constructor(), Connect(), Close() from RSdp
       
   607 //!													NewL(), BufferedParseL(), Builder() from CElementParser
       
   608 //!													NewDEAL(), BuildUUIDL(), BuildUintL(), AcceptVisitorL() from CSdpAttrValueDEA
       
   609 //! @SYMTestActions				1. Create a list using NewDEAL() function and return KErrNone if successed
       
   610 //!								2. Add a UUID in the list using BuildUUIDL() function. Return KErrNone if successed
       
   611 //!								3. Add an unsigned integer in the list using BuildUintL() function. Return KErrNone if successed
       
   612 //!								4. Create a new CElementParser object with the CSdpAttrValueDEA object using NewL() function.
       
   613 //!								   Return KErrNone if successed
       
   614 //!								5. Retrieve some data from an existent file using RFs and RFile objects
       
   615 //!								6. CElementParser object parses an input buffer is gotten in step 5 using BufferedParseL() and return the result
       
   616 //!								   Return KErrNone if successed and verify the result is as expected
       
   617 //!								7. Call Builder() function and verify the result is as expected
       
   618 //!								8. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   619 //!								9. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   620 //!								10. Creates a new service record, with a single service class, in the SDP database.
       
   621 //!								   Verify the resulting err code is KErrNone.
       
   622 //!								11. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   623 //!								   Verify the resulting err code is KErrNone.
       
   624 //!								12. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   625 //!								13. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   626 //!								14. Creates a new service record, with a single service class, in the SDP database.
       
   627 //!								   Verify the resulting err code is KErrNone.
       
   628 //!								15. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   629 //!								   Verify the resulting err code is KErrNone.
       
   630 //!								16. Continue with the stored objects of last test case. Delete the service record. 
       
   631 //!								17. Close the client process. Close the SDP database subsession.
       
   632 //! @SYMTestStatus				Implemented
       
   633 //! @SYMTestPriority			Low
       
   634 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   635 //! @SYMTestType				CIT
       
   636 
       
   637 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
   638 			SHARED_ACTIVE_SCHEDULER
       
   639 			CREATE_OBJECT	RSdpDatabase	database1	
       
   640 			CREATE_OBJECT	RSdp	rsdp	
       
   641 			CREATE_OBJECT	CElementParser	celementparser1	
       
   642 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
   643 			COMMAND		attrValueDEA	NewDEAL
       
   644 			COMMAND		attrValueDEA	BuildUUIDL		BTSDP-ElementParser-PublicApi-Passive-0508-0001command3BuildUUIDL
       
   645 			COMMAND		attrValueDEA	BuildUintL		BTSDP-ElementParser-PublicApi-Passive-0508-0001command4BuildUintL
       
   646 			COMMAND		celementparser1	NewL		BTSDP-ElementParser-PublicApi-Passive-0508-0001command6NewL
       
   647 			COMMAND		celementparser1	BufferedParseL		BTSDP-ElementParser-PublicApi-Passive-0508-0001command7BufferedParseL
       
   648 			COMMAND		celementparser1	Builder		BTSDP-ElementParser-PublicApi-Passive-0508-0001command8Builder
       
   649 			COMMAND		attrValueDEA	AcceptVisitorL		BTSDP-ElementParser-PublicApi-Passive-0508-0001command10AcceptVisitorL
       
   650 			COMMAND		rsdp	Constructor
       
   651 			COMMAND		rsdp	Connect
       
   652 			OUTSTANDING
       
   653 			COMMAND		database1	Constructor
       
   654 			COMMAND		database1	Open		BTSDP-ElementParser-PublicApi-Passive-0508-0001command16Open
       
   655 			COMMAND		database1	CreateServiceRecordL		BTSDP-ElementParser-PublicApi-Passive-0508-0001command17CreateServiceRecordL
       
   656 			COMMAND		database1	UpdateAttributeL		BTSDP-ElementParser-PublicApi-Passive-0508-0001command18UpdateAttributeL
       
   657 			STORE	database1	
       
   658 			STORE	rsdp	
       
   659 			STORE_ACTIVE_SCHEDULER
       
   660 	END_TEST_BLOCK
       
   661 	START_SYNCHRONISED_TESTCASE	BTSDP-ElementParser-PublicApi-Active-0308-0001
       
   662 	END_SYNCHRONISED_TESTCASE	BTSDP-ElementParser-PublicApi-Active-0308-0001
       
   663 	START_SYNCHRONISED_TESTCASE BTSDP-ElementParser-PublicApi-Active-0308-0002
       
   664 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
   665 			SHARED_ACTIVE_SCHEDULER
       
   666 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   667 			RESTORE_OBJECT	RSdp	rsdp	
       
   668 			COMMAND		database1	DeleteRecordL
       
   669 			COMMAND		database1	Close
       
   670 			COMMAND		rsdp	Close
       
   671 			STORE_ACTIVE_SCHEDULER
       
   672 	END_TEST_BLOCK
       
   673 	END_SYNCHRONISED_TESTCASE	BTSDP-ElementParser-PublicApi-Active-0308-0002
       
   674 
       
   675 END_TESTCASE   BTSDP-ElementParser-PublicApi-Passive-Slave-0508
       
   676 
       
   677 
       
   678 START_TESTCASE BTSDP-ElementParser-PublicApi-Passive-Slave-0509
       
   679 //! @SYMTestCaseID				BTSDP-ElementParser-PublicApi-Passive-Slave-0509
       
   680 //! @SYMAPI						CElementParser, CSdpAttrValueDES, RSdp and RSdpDatabase
       
   681 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   682 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
   683 //!													Constructor(), Connect(), Close() from RSdp
       
   684 //!													NewL(), BufferedParseL(), Reset(), Builder() from CElementParser
       
   685 //!													NewDESL(), BuildUUIDL(), BuildUintL(), DataSize() from CSdpAttrValueDES
       
   686 //! @SYMTestActions				1. Create a list using NewDESL() function and return KErrNone if successed
       
   687 //!								2. Add a UUID in the list using BuildUUIDL() function. Return KErrNone if successed
       
   688 //!								3. Add an unsigned integer in the list using BuildUintL() function. Return KErrNone if successed
       
   689 //!								4. Create a new CElementParser object with the CSdpAttrValueDES object using NewL() function.
       
   690 //!								   Return KErrNone if successed
       
   691 //!								5. Retrieve some data from an existent file using RFs and RFile objects
       
   692 //!								6. CElementParser object parses an input buffer is gotten in step 5 using BufferedParseL() and return the result
       
   693 //!								   Return KErrNone if successed and verify the result is as expected
       
   694 //!								7. Reset CElementParser object's buffers using Reset() function
       
   695 //!								8. Call Builder() function and verify the result is as expected
       
   696 //!								9. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   697 //!								10. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   698 //!								11. Creates a new service record, with a single service class, in the SDP database.
       
   699 //!								   Verify the resulting err code is KErrNone.
       
   700 //!								12. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   701 //!								   Verify the resulting err code is KErrNone.
       
   702 //!								13. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   703 //!								14. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   704 //!								15. Creates a new service record, with a single service class, in the SDP database.
       
   705 //!								   Verify the resulting err code is KErrNone.
       
   706 //!								16. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   707 //!								   Verify the resulting err code is KErrNone.
       
   708 //!								17. Continue with the stored objects of last test case. Delete the service record. 
       
   709 //!								18. Close the client process. Close the SDP database subsession.
       
   710 //! @SYMTestStatus				Implemented
       
   711 //! @SYMTestPriority			Low
       
   712 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   713 //! @SYMTestType				CIT
       
   714 
       
   715 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
   716 			SHARED_ACTIVE_SCHEDULER
       
   717 			CREATE_OBJECT	RSdpDatabase	database1	
       
   718 			CREATE_OBJECT	RSdp	rsdp	
       
   719 			CREATE_OBJECT	CElementParser	celementparser1	
       
   720 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
   721 			COMMAND		attrValueDES	NewDESL
       
   722 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-ElementParser-PublicApi-Passive-0509-0001command3BuildUUIDL
       
   723 			COMMAND		attrValueDES	BuildUintL		BTSDP-ElementParser-PublicApi-Passive-0509-0001command4BuildUintL
       
   724 			COMMAND		celementparser1	NewL		BTSDP-ElementParser-PublicApi-Passive-0509-0001command6NewL
       
   725 			COMMAND		celementparser1	BufferedParseL		BTSDP-ElementParser-PublicApi-Passive-0509-0001command7BufferedParseL
       
   726 			COMMAND		celementparser1	Reset
       
   727 			COMMAND		celementparser1	Builder		BTSDP-ElementParser-PublicApi-Passive-0509-0001command9Builder
       
   728 			COMMAND		attrValueDES	DataSize		BTSDP-ElementParser-PublicApi-Passive-0509-0001command11DataSize
       
   729 			COMMAND		rsdp	Constructor
       
   730 			COMMAND		rsdp	Connect
       
   731 			OUTSTANDING
       
   732 			COMMAND		database1	Constructor
       
   733 			COMMAND		database1	Open		BTSDP-ElementParser-PublicApi-Passive-0509-0001command17Open
       
   734 			COMMAND		database1	CreateServiceRecordL		BTSDP-ElementParser-PublicApi-Passive-0509-0001command18CreateServiceRecordL
       
   735 			COMMAND		database1	UpdateAttributeL		BTSDP-ElementParser-PublicApi-Passive-0509-0001command19UpdateAttributeL
       
   736 			STORE	database1	
       
   737 			STORE	rsdp	
       
   738 			STORE_ACTIVE_SCHEDULER
       
   739 	END_TEST_BLOCK
       
   740 	START_SYNCHRONISED_TESTCASE	BTSDP-ElementParser-PublicApi-Active-0309-0001
       
   741 	END_SYNCHRONISED_TESTCASE	BTSDP-ElementParser-PublicApi-Active-0309-0001
       
   742 	START_SYNCHRONISED_TESTCASE BTSDP-ElementParser-PublicApi-Active-0309-0002
       
   743 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
   744 			SHARED_ACTIVE_SCHEDULER
       
   745 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   746 			RESTORE_OBJECT	RSdp	rsdp	
       
   747 			COMMAND		database1	DeleteRecordL
       
   748 			COMMAND		database1	Close
       
   749 			COMMAND		rsdp	Close
       
   750 			STORE_ACTIVE_SCHEDULER
       
   751 	END_TEST_BLOCK
       
   752 	END_SYNCHRONISED_TESTCASE	BTSDP-ElementParser-PublicApi-Active-0309-0002
       
   753 
       
   754 END_TESTCASE   BTSDP-ElementParser-PublicApi-Passive-Slave-0509
       
   755 
       
   756 
       
   757 START_TESTCASE BTSDP-ElementParser-PublicApi-Passive-Slave-0510
       
   758 //! @SYMTestCaseID				BTSDP-ElementParser-PublicApi-Passive-Slave-0510
       
   759 //! @SYMAPI						CElementParser, CSdpAttrValueDEA, RSdp and RSdpDatabase
       
   760 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   761 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
   762 //!													Constructor(), Connect(), Close() from RSdp
       
   763 //!													NewL(), BufferedParseL(), Reset() from CElementParser
       
   764 //!													NewDEAL(), BuildUUIDL(), BuildIntL(), BuildURLL() from CSdpAttrValueDEA
       
   765 //! @SYMTestActions				1. Create a list using NewDEAL() function and return KErrNone if successed
       
   766 //!								2. Add a UUID in the list using BuildUUIDL() function. Return KErrNone if successed
       
   767 //!								3. Add a signed integer in the list using BuildIntL() function. Return KErrNone if successed
       
   768 //!								4. Create another list using NewDESL() function and return KErrNone if successed
       
   769 //!								5. Add a UUID in the list using BuildUUIDL() function. Return KErrNone if successed
       
   770 //!								6. Add a NULL type of element using BuildNilL() function. Return KErrNone if successed
       
   771 //!								7. Add a URL in the list using BuildURLL() function. Return KErrNone if successed
       
   772 //!								8. Create a new CElementParser object with the CSdpAttrValueDEA object(in step 1) using NewL() function.
       
   773 //!								   Return KErrNone if successed
       
   774 //!								9. Retrieve some data from an existent file using RFs and RFile objects
       
   775 //!								10. CElementParser object parses an input buffer is gotten in step 9 using BufferedParseL() and return the result
       
   776 //!								   Return KErrNone if successed and verify the result is as expected
       
   777 //!								11. Use Reset() function to reset CElementParser object's buffers and the element builder, CSdpAttrValueDEA object used
       
   778 //!								12. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   779 //!								13. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   780 //!								14. Creates a new service record, with a single service class, in the SDP database.
       
   781 //!								   Verify the resulting err code is KErrNone.
       
   782 //!								15. Updates a service record attribute(in step 4) with a value encapsulated in a CSdpAttrValue.
       
   783 //!								   Verify the resulting err code is KErrNone.
       
   784 //!								16. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   785 //!								17. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   786 //!								18. Creates a new service record, with a single service class, in the SDP database.
       
   787 //!								   Verify the resulting err code is KErrNone.
       
   788 //!								19. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   789 //!								   Verify the resulting err code is KErrNone.
       
   790 //!								20. Continue with the stored objects of last test case. Delete the service record. 
       
   791 //!								21. Close the client process. Close the SDP database subsession.
       
   792 //! @SYMTestStatus				Implemented
       
   793 //! @SYMTestPriority			Low
       
   794 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   795 //! @SYMTestType				CIT
       
   796 
       
   797 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
   798 			SHARED_ACTIVE_SCHEDULER
       
   799 			CREATE_OBJECT	RSdpDatabase	database1	
       
   800 			CREATE_OBJECT	RSdp	rsdp	
       
   801 			CREATE_OBJECT	CElementParser	celementparser1	
       
   802 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA1	
       
   803 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA2	
       
   804 			COMMAND		attrValueDEA1	NewDEAL
       
   805 			COMMAND		attrValueDEA1	BuildUUIDL		BTSDP-ElementParser-PublicApi-Passive-0510-0001command3BuildUUIDL
       
   806 			COMMAND		attrValueDEA1	BuildIntL		BTSDP-ElementParser-PublicApi-Passive-0510-0001command4BuildIntL
       
   807 			COMMAND		attrValueDEA2	NewDEAL
       
   808 			COMMAND		attrValueDEA2	BuildUUIDL		BTSDP-ElementParser-PublicApi-Passive-0510-0001command7BuildUUIDL
       
   809 			COMMAND		attrValueDEA2	BuildNilL
       
   810 			COMMAND		attrValueDEA2	BuildURLL		BTSDP-ElementParser-PublicApi-Passive-0510-0001command9BuildURLL
       
   811 			COMMAND		celementparser1	NewL		BTSDP-ElementParser-PublicApi-Passive-0510-0001command11NewL
       
   812 			COMMAND		celementparser1	BufferedParseL		BTSDP-ElementParser-PublicApi-Passive-0510-0001command12BufferedParseL
       
   813 			COMMAND		celementparser1	Reset		BTSDP-ElementParser-PublicApi-Passive-0510-0001command13Reset
       
   814 			COMMAND		rsdp	Constructor
       
   815 			COMMAND		rsdp	Connect
       
   816 			OUTSTANDING
       
   817 			COMMAND		database1	Constructor
       
   818 			COMMAND		database1	Open		BTSDP-ElementParser-PublicApi-Passive-0510-0001command19Open
       
   819 			COMMAND		database1	CreateServiceRecordL		BTSDP-ElementParser-PublicApi-Passive-0510-0001command20CreateServiceRecordL
       
   820 			COMMAND		database1	UpdateAttributeL		BTSDP-ElementParser-PublicApi-Passive-0510-0001command21UpdateAttributeL
       
   821 			STORE	database1	
       
   822 			STORE	rsdp	
       
   823 			STORE_ACTIVE_SCHEDULER
       
   824 	END_TEST_BLOCK
       
   825 	START_SYNCHRONISED_TESTCASE	BTSDP-ElementParser-PublicApi-Active-0310-0001
       
   826 	END_SYNCHRONISED_TESTCASE	BTSDP-ElementParser-PublicApi-Active-0310-0001
       
   827 	START_SYNCHRONISED_TESTCASE BTSDP-ElementParser-PublicApi-Active-0310-0002
       
   828 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
   829 			SHARED_ACTIVE_SCHEDULER
       
   830 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   831 			RESTORE_OBJECT	RSdp	rsdp	
       
   832 			COMMAND		database1	DeleteRecordL
       
   833 			COMMAND		database1	Close
       
   834 			COMMAND		rsdp	Close
       
   835 			STORE_ACTIVE_SCHEDULER
       
   836 	END_TEST_BLOCK
       
   837 	END_SYNCHRONISED_TESTCASE	BTSDP-ElementParser-PublicApi-Active-0310-0002
       
   838 
       
   839 END_TESTCASE   BTSDP-ElementParser-PublicApi-Passive-Slave-0510
       
   840 
       
   841 
       
   842 START_TESTCASE BTSDP-ElementParser-PublicApi-Passive-Slave-0511
       
   843 //! @SYMTestCaseID				BTSDP-ElementParser-PublicApi-Passive-Slave-0511
       
   844 //! @SYMAPI						CElementParser, CSdpAttrValueDES, RSdp and RSdpDatabase
       
   845 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   846 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
   847 //!													Constructor(), Connect(), Close() from RSdp
       
   848 //!													NewL(), Builder() from CElementParser
       
   849 //!													NewDESL(), BuildUUIDL(), BuildNilL(), DataSize() from CSdpAttrValueDES
       
   850 //! @SYMTestActions				1. Create a list using NewDESL() function and return KErrNone if successed
       
   851 //!								2. Add a UUID in the list using BuildUUIDL() function. Return KErrNone if successed
       
   852 //!								3. Add a NULL type of element using BuildNilL() function. Return KErrNone if successed
       
   853 //!								4. Create a new CElementParser object with the CSdpAttrValueDES object using NewL() function.
       
   854 //!								   Return KErrNone if successed
       
   855 //!								5. Call Builder() function and verify the result is as expected
       
   856 //!								6. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   857 //!								7. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   858 //!								8. Creates a new service record, with a single service class, in the SDP database.
       
   859 //!								   Verify the resulting err code is KErrNone.
       
   860 //!								9. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   861 //!								   Verify the resulting err code is KErrNone.
       
   862 //!								10. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   863 //!								11. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   864 //!								12. Creates a new service record, with a single service class, in the SDP database.
       
   865 //!								   Verify the resulting err code is KErrNone.
       
   866 //!								13. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   867 //!								   Verify the resulting err code is KErrNone.
       
   868 //!								14. Continue with the stored objects of last test case. Delete the service record. 
       
   869 //!								15. Close the client process. Close the SDP database subsession.
       
   870 //! @SYMTestStatus				Implemented
       
   871 //! @SYMTestPriority			Low
       
   872 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   873 //! @SYMTestType				CIT
       
   874 
       
   875 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
   876 			SHARED_ACTIVE_SCHEDULER
       
   877 			CREATE_OBJECT	RSdpDatabase	database1	
       
   878 			CREATE_OBJECT	RSdp	rsdp	
       
   879 			CREATE_OBJECT	CElementParser	celementparser1	
       
   880 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
   881 			COMMAND		attrValueDES	NewDESL
       
   882 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-ElementParser-PublicApi-Passive-0511-0001command3BuildUUIDL
       
   883 			COMMAND		attrValueDES	BuildNilL
       
   884 			COMMAND		celementparser1	NewL		BTSDP-ElementParser-PublicApi-Passive-0511-0001command6NewL
       
   885 			COMMAND		celementparser1	Builder		BTSDP-ElementParser-PublicApi-Passive-0511-0001command7Builder
       
   886 			COMMAND		attrValueDES	DataSize		BTSDP-ElementParser-PublicApi-Passive-0511-0001command9DataSize
       
   887 			COMMAND		rsdp	Constructor
       
   888 			COMMAND		rsdp	Connect
       
   889 			OUTSTANDING
       
   890 			COMMAND		database1	Constructor
       
   891 			COMMAND		database1	Open		BTSDP-ElementParser-PublicApi-Passive-0511-0001command15Open
       
   892 			COMMAND		database1	CreateServiceRecordL		BTSDP-ElementParser-PublicApi-Passive-0511-0001command16CreateServiceRecordL
       
   893 			COMMAND		database1	UpdateAttributeL		BTSDP-ElementParser-PublicApi-Passive-0511-0001command17UpdateAttributeL
       
   894 			STORE	database1	
       
   895 			STORE	rsdp	
       
   896 			STORE_ACTIVE_SCHEDULER
       
   897 	END_TEST_BLOCK
       
   898 	START_SYNCHRONISED_TESTCASE	BTSDP-ElementParser-PublicApi-Active-0311-0001
       
   899 	END_SYNCHRONISED_TESTCASE	BTSDP-ElementParser-PublicApi-Active-0311-0001
       
   900 	START_SYNCHRONISED_TESTCASE BTSDP-ElementParser-PublicApi-Active-0311-0002
       
   901 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
   902 			SHARED_ACTIVE_SCHEDULER
       
   903 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   904 			RESTORE_OBJECT	RSdp	rsdp	
       
   905 			COMMAND		database1	DeleteRecordL
       
   906 			COMMAND		database1	Close
       
   907 			COMMAND		rsdp	Close
       
   908 			STORE_ACTIVE_SCHEDULER
       
   909 	END_TEST_BLOCK
       
   910 	END_SYNCHRONISED_TESTCASE	BTSDP-ElementParser-PublicApi-Active-0311-0002
       
   911 
       
   912 END_TESTCASE   BTSDP-ElementParser-PublicApi-Passive-Slave-0511
       
   913 
       
   914 
       
   915 START_TESTCASE BTSDP-ElementParser-PublicApi-Passive-Slave-0512
       
   916 //! @SYMTestCaseID				BTSDP-ElementParser-PublicApi-Passive-Slave-0512
       
   917 //! @SYMAPI						CElementParser, CSdpAttrValueDEA, RSdp and RSdpDatabase
       
   918 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   919 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
   920 //!													Constructor(), Connect(), Close() from RSdp
       
   921 //!													NewL(), SetBuilder() from CElementParser
       
   922 //!													NewDEAL(), BuildUUIDL(), BuildNilL(), BuildIntL() from CSdpAttrValueDEA
       
   923 //! @SYMTestActions				1. Create a list using NewDEAL() function and return KErrNone if successed
       
   924 //!								2. Add a UUID in the list using BuildUUIDL() function. Return KErrNone if successed
       
   925 //!								3. Add a NULL type of element using BuildNilL() function. Return KErrNone if successed
       
   926 //!								4. Add a signed integer in the list using BuildIntL() function. Return KErrNone if successed
       
   927 //!								5. Create a new CElementParser object with the CSdpAttrValueDEA object using NewL() function.
       
   928 //!								   Return KErrNone if successed
       
   929 //!								6. Call SetBuilder() function to parse CSdpAttrValueDES object
       
   930 //!								7. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   931 //!								8. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   932 //!								9. Creates a new service record, with a single service class, in the SDP database.
       
   933 //!								   Verify the resulting err code is KErrNone.
       
   934 //!								10. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   935 //!								   Verify the resulting err code is KErrNone.
       
   936 //!								11. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
   937 //!								12. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
   938 //!								13. Creates a new service record, with a single service class, in the SDP database.
       
   939 //!								   Verify the resulting err code is KErrNone.
       
   940 //!								14. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
   941 //!								   Verify the resulting err code is KErrNone.
       
   942 //!								15. Continue with the stored objects of last test case. Delete the service record. 
       
   943 //!								16. Close the client process. Close the SDP database subsession.
       
   944 //! @SYMTestStatus				Implemented
       
   945 //! @SYMTestPriority			Low
       
   946 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   947 //! @SYMTestType				CIT
       
   948 
       
   949 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
   950 			SHARED_ACTIVE_SCHEDULER
       
   951 			CREATE_OBJECT	RSdpDatabase	database1	
       
   952 			CREATE_OBJECT	RSdp	rsdp	
       
   953 			CREATE_OBJECT	CElementParser	celementparser1	
       
   954 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
   955 			COMMAND		attrValueDEA	NewDEAL
       
   956 			COMMAND		attrValueDEA	BuildUUIDL		BTSDP-ElementParser-PublicApi-Passive-0512-0001command3BuildUUIDL
       
   957 			COMMAND		attrValueDEA	BuildNilL
       
   958 			COMMAND		attrValueDEA	BuildIntL		BTSDP-ElementParser-PublicApi-Passive-0512-0001command5BuildIntL
       
   959 			COMMAND		celementparser1	NewL		BTSDP-ElementParser-PublicApi-Passive-0512-0001command7NewL
       
   960 			COMMAND		celementparser1	SetBuilder		BTSDP-ElementParser-PublicApi-Passive-0512-0001command8SetBuilder
       
   961 			COMMAND		rsdp	Constructor
       
   962 			COMMAND		rsdp	Connect
       
   963 			OUTSTANDING
       
   964 			COMMAND		database1	Constructor
       
   965 			COMMAND		database1	Open		BTSDP-ElementParser-PublicApi-Passive-0512-0001command14Open
       
   966 			COMMAND		database1	CreateServiceRecordL		BTSDP-ElementParser-PublicApi-Passive-0512-0001command15CreateServiceRecordL
       
   967 			COMMAND		database1	UpdateAttributeL		BTSDP-ElementParser-PublicApi-Passive-0512-0001command16UpdateAttributeL
       
   968 			STORE	database1	
       
   969 			STORE	rsdp	
       
   970 			STORE_ACTIVE_SCHEDULER
       
   971 	END_TEST_BLOCK
       
   972 	START_SYNCHRONISED_TESTCASE	BTSDP-ElementParser-PublicApi-Active-0312-0001
       
   973 	END_SYNCHRONISED_TESTCASE	BTSDP-ElementParser-PublicApi-Active-0312-0001
       
   974 	START_SYNCHRONISED_TESTCASE BTSDP-ElementParser-PublicApi-Active-0312-0002
       
   975 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
   976 			SHARED_ACTIVE_SCHEDULER
       
   977 			RESTORE_OBJECT	RSdpDatabase	database1	
       
   978 			RESTORE_OBJECT	RSdp	rsdp	
       
   979 			COMMAND		database1	DeleteRecordL
       
   980 			COMMAND		database1	Close
       
   981 			COMMAND		rsdp	Close
       
   982 			STORE_ACTIVE_SCHEDULER
       
   983 	END_TEST_BLOCK
       
   984 	END_SYNCHRONISED_TESTCASE	BTSDP-ElementParser-PublicApi-Active-0312-0002
       
   985 
       
   986 END_TESTCASE   BTSDP-ElementParser-PublicApi-Passive-Slave-0512
       
   987 
       
   988 
       
   989 
       
   990 
       
   991 START_TESTCASE BTSDP-SearchPattern-PublicApi-Passive-Slave-0513
       
   992 //! @SYMTestCaseID				BTSDP-SearchPattern-PublicApi-Passive-Slave-0513
       
   993 //! @SYMAPI						CSdpAttrValueDES, CSdpAttrValueURL, RSdp and RSdpDatabase
       
   994 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
   995 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
   996 //!													Constructor(), Connect(), Close() from RSdp
       
   997 //!													NewDESL(), BuildNilL(), BuildBooleanL() from CSdpAttrValueDES
       
   998 //!													NewURLL() from CSdpAttrValueURL
       
   999 //! @SYMTestActions				1. Create a list using NewDESL() function and return KErrNone if successed
       
  1000 //!								2. Add a NULL type of element using BuildNilL() function. Return KErrNone if successed
       
  1001 //!								3. Add a boolean value in the list using BuildBooleanL() function. Return KErrNone if successed
       
  1002 //!								4. Create a CSdpAttrValueURL object with a URL value using NewURLL() function.
       
  1003 //!								   Return KErrNone if successed
       
  1004 //!								5. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1005 //!								6. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1006 //!								7. Creates a new service record, with a single service class, in the SDP database.
       
  1007 //!								   Verify the resulting err code is KErrNone.
       
  1008 //!								8. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1009 //!								   Verify the resulting err code is KErrNone.
       
  1010 //!								9. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1011 //!								10. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1012 //!								11. Creates a new service record, with a single service class, in the SDP database.
       
  1013 //!								    Verify the resulting err code is KErrNone.
       
  1014 //!								12. Updates 2 service record attributes with 2 values encapsulated in CSdpAttrValue.
       
  1015 //!								    Verify the resulting err code is KErrNone.
       
  1016 //!								13. Continue with the stored objects of last test case. Delete the service record. 
       
  1017 //!								14. Close the client process. Close the SDP database subsession.
       
  1018 //! @SYMTestStatus				Implemented
       
  1019 //! @SYMTestPriority			Low
       
  1020 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1021 //! @SYMTestType				CIT
       
  1022 
       
  1023 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
  1024 			SHARED_ACTIVE_SCHEDULER
       
  1025 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1026 			CREATE_OBJECT	RSdp	rsdp	
       
  1027 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  1028 			CREATE_OBJECT	CSdpAttrValueURL	attrValueURL	
       
  1029 			COMMAND		attrValueDES	NewDESL
       
  1030 			COMMAND		attrValueDES	BuildNilL
       
  1031 			COMMAND		attrValueDES	BuildBooleanL		BTSDP-SearchPattern-PublicApi-Passive-0513-0001command4BuildBooleanL
       
  1032 			COMMAND		attrValueURL	NewURLL		BTSDP-SearchPattern-PublicApi-Passive-0513-0001command6NewURLL
       
  1033 			COMMAND		rsdp	Constructor
       
  1034 			COMMAND		rsdp	Connect
       
  1035 			OUTSTANDING
       
  1036 			COMMAND		database1	Constructor
       
  1037 			COMMAND		database1	Open		BTSDP-SearchPattern-PublicApi-Passive-0513-0001command12Open
       
  1038 			COMMAND		database1	CreateServiceRecordL		BTSDP-SearchPattern-PublicApi-Passive-0513-0001command13CreateServiceRecordL
       
  1039 			COMMAND		database1	UpdateAttributeL		BTSDP-SearchPattern-PublicApi-Passive-0513-0001command14UpdateAttributeL
       
  1040 			COMMAND		database1	UpdateAttributeL		BTSDP-SearchPattern-PublicApi-Passive-0513-0001command15UpdateAttributeL
       
  1041 			STORE	database1	
       
  1042 			STORE	rsdp	
       
  1043 			STORE_ACTIVE_SCHEDULER
       
  1044 	END_TEST_BLOCK
       
  1045 	START_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0313-0001
       
  1046 	END_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0313-0001
       
  1047 	START_SYNCHRONISED_TESTCASE BTSDP-SearchPattern-PublicApi-Active-0313-0002
       
  1048 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
  1049 			SHARED_ACTIVE_SCHEDULER
       
  1050 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1051 			RESTORE_OBJECT	RSdp	rsdp	
       
  1052 			COMMAND		database1	DeleteRecordL
       
  1053 			COMMAND		database1	Close
       
  1054 			COMMAND		rsdp	Close
       
  1055 			STORE_ACTIVE_SCHEDULER
       
  1056 	END_TEST_BLOCK
       
  1057 	END_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0313-0002
       
  1058 
       
  1059 END_TESTCASE   BTSDP-SearchPattern-PublicApi-Passive-Slave-0513
       
  1060 
       
  1061 
       
  1062 START_TESTCASE BTSDP-SearchPattern-PublicApi-Passive-Slave-0514
       
  1063 //! @SYMTestCaseID				BTSDP-SearchPattern-PublicApi-Passive-Slave-0514
       
  1064 //! @SYMAPI						CSdpAttrValueString, RSdp and RSdpDatabase
       
  1065 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1066 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
  1067 //!													Constructor(), Connect(), Close() from RSdp
       
  1068 //!													NewStringL() from CSdpAttrValueString
       
  1069 //! @SYMTestActions				1. Create a CSdpAttrValueString object with a string using NewStringL() function.
       
  1070 //!								   Return KErrNone if successed
       
  1071 //!								2. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1072 //!								3. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1073 //!								4. Creates a new service record, with a single service class, in the SDP database.
       
  1074 //!								   Verify the resulting err code is KErrNone.
       
  1075 //!								5. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1076 //!								   Verify the resulting err code is KErrNone.
       
  1077 //!								6. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1078 //!								7. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1079 //!								8. Creates a new service record, with a single service class, in the SDP database.
       
  1080 //!								   Verify the resulting err code is KErrNone.
       
  1081 //!								9. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1082 //!								   Verify the resulting err code is KErrNone.
       
  1083 //!								10. Continue with the stored objects of last test case. Delete the service record. 
       
  1084 //!								11. Close the client process. Close the SDP database subsession.
       
  1085 //! @SYMTestStatus				Implemented
       
  1086 //! @SYMTestPriority			Low
       
  1087 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1088 //! @SYMTestType				CIT
       
  1089 
       
  1090 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
  1091 			SHARED_ACTIVE_SCHEDULER
       
  1092 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1093 			CREATE_OBJECT	RSdp	rsdp	
       
  1094 			CREATE_OBJECT	CSdpAttrValueString	attrValueString	
       
  1095 			COMMAND		attrValueString	NewStringL		BTSDP-SearchPattern-PublicApi-Passive-0514-0001command2NewStringL
       
  1096 			COMMAND		rsdp	Constructor
       
  1097 			COMMAND		rsdp	Connect
       
  1098 			OUTSTANDING
       
  1099 			COMMAND		database1	Constructor
       
  1100 			COMMAND		database1	Open		BTSDP-SearchPattern-PublicApi-Passive-0514-0001command8Open
       
  1101 			COMMAND		database1	CreateServiceRecordL		BTSDP-SearchPattern-PublicApi-Passive-0514-0001command9CreateServiceRecordL
       
  1102 			COMMAND		database1	UpdateAttributeL		BTSDP-SearchPattern-PublicApi-Passive-0514-0001command10UpdateAttributeL
       
  1103 			STORE	database1	
       
  1104 			STORE	rsdp	
       
  1105 			STORE_ACTIVE_SCHEDULER
       
  1106 	END_TEST_BLOCK
       
  1107 	START_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0314-0001
       
  1108 	END_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0314-0001
       
  1109 	START_SYNCHRONISED_TESTCASE BTSDP-SearchPattern-PublicApi-Active-0314-0002
       
  1110 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
  1111 			SHARED_ACTIVE_SCHEDULER
       
  1112 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1113 			RESTORE_OBJECT	RSdp	rsdp	
       
  1114 			COMMAND		database1	DeleteRecordL
       
  1115 			COMMAND		database1	Close
       
  1116 			COMMAND		rsdp	Close
       
  1117 			STORE_ACTIVE_SCHEDULER
       
  1118 	END_TEST_BLOCK
       
  1119 	END_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0314-0002
       
  1120 
       
  1121 END_TESTCASE   BTSDP-SearchPattern-PublicApi-Passive-Slave-0514
       
  1122 
       
  1123 
       
  1124 START_TESTCASE BTSDP-SearchPattern-PublicApi-Passive-Slave-0515
       
  1125 //! @SYMTestCaseID				BTSDP-SearchPattern-PublicApi-Passive-Slave-0515
       
  1126 //! @SYMAPI						CSdpAttrValueBoolean, CSdpAttrValueUint, CSdpAttrValueDEA, RSdp and RSdpDatabase
       
  1127 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1128 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
  1129 //!													Constructor(), Connect(), Close() from RSdp
       
  1130 //!													NewBoolL() from CSdpAttrValueBoolean
       
  1131 //!													NewUintL() from CSdpAttrValueUint
       
  1132 //!													NewDEAL(), StartListL(), BuildUUIDL(), EndListL() from CSdpAttrValueDEA
       
  1133 //! @SYMTestActions				1. Create a CSdpAttrValueBoolean object with a boolean using NewBoolL() function.
       
  1134 //!								   Return KErrNone if successed
       
  1135 //!								2. Create a CSdpAttrValueUint object with an unsigned integer using NewUintL() function.
       
  1136 //!								   Return KErrNone if successed
       
  1137 //!								4. Create a list using NewDEAL() function and return KErrNone if successed
       
  1138 //!								5. Add some UUIDs using BuildUUIDL() function. Return KErrNone if successed
       
  1139 //!								6. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1140 //!								7. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1141 //!								8. Creates a new service record, with a single service class, in the SDP database.
       
  1142 //!								   Verify the resulting err code is KErrNone.
       
  1143 //!								9. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1144 //!								   Verify the resulting err code is KErrNone.
       
  1145 //!								10. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1146 //!								11. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1147 //!								12. Creates a new service record, with multiple service classes, in the SDP database.
       
  1148 //!								    Verify the resulting err code is KErrNone.
       
  1149 //!								13. Updates 2 service record attributes with 2 values encapsulated in CSdpAttrValue.
       
  1150 //!								    Verify the resulting err code is KErrNone.
       
  1151 //!								14. Continue with the stored objects of last test case. Delete the service record. 
       
  1152 //!								15. Close the client process. Close the SDP database subsession.
       
  1153 //! @SYMTestStatus				Implemented
       
  1154 //! @SYMTestPriority			Low
       
  1155 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1156 //! @SYMTestType				CIT
       
  1157 
       
  1158 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
  1159 			SHARED_ACTIVE_SCHEDULER
       
  1160 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1161 			CREATE_OBJECT	RSdp	rsdp	
       
  1162 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBoolean	
       
  1163 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint	
       
  1164 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
  1165 			COMMAND		attrValueBoolean	NewBoolL		BTSDP-SearchPattern-PublicApi-Passive-0515-0001command2NewBoolL
       
  1166 			COMMAND		attrValueUint	NewUintL		BTSDP-SearchPattern-PublicApi-Passive-0515-0001command4NewUintL
       
  1167 			COMMAND		attrValueDEA	NewDEAL
       
  1168 			COMMAND		attrValueDEA	StartListL
       
  1169 			COMMAND		attrValueDEA	BuildUUIDL		BTSDP-SearchPattern-PublicApi-Passive-0515-0001command8BuildUUIDL
       
  1170 			COMMAND		attrValueDEA	BuildUUIDL		BTSDP-SearchPattern-PublicApi-Passive-0515-0001command9BuildUUIDL
       
  1171 			COMMAND		attrValueDEA	BuildUUIDL		BTSDP-SearchPattern-PublicApi-Passive-0515-0001command10BuildUUIDL
       
  1172 			COMMAND		attrValueDEA	EndListL
       
  1173 			COMMAND		rsdp	Constructor
       
  1174 			COMMAND		rsdp	Connect
       
  1175 			OUTSTANDING
       
  1176 			COMMAND		database1	Constructor
       
  1177 			COMMAND		database1	Open		BTSDP-SearchPattern-PublicApi-Passive-0515-0001command17Open
       
  1178 			COMMAND		database1	CreateServiceRecordL		BTSDP-SearchPattern-PublicApi-Passive-0515-0001command18CreateServiceRecordL
       
  1179 			COMMAND		database1	UpdateAttributeL		BTSDP-SearchPattern-PublicApi-Passive-0515-0001command19UpdateAttributeL
       
  1180 			COMMAND		database1	UpdateAttributeL		BTSDP-SearchPattern-PublicApi-Passive-0515-0001command20UpdateAttributeL
       
  1181 			STORE	database1	
       
  1182 			STORE	rsdp	
       
  1183 			STORE_ACTIVE_SCHEDULER
       
  1184 	END_TEST_BLOCK
       
  1185 	START_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0315-0001
       
  1186 	END_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0315-0001
       
  1187 	START_SYNCHRONISED_TESTCASE BTSDP-SearchPattern-PublicApi-Active-0315-0002
       
  1188 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
  1189 			SHARED_ACTIVE_SCHEDULER
       
  1190 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1191 			RESTORE_OBJECT	RSdp	rsdp	
       
  1192 			COMMAND		database1	DeleteRecordL
       
  1193 			COMMAND		database1	Close
       
  1194 			COMMAND		rsdp	Close
       
  1195 			STORE_ACTIVE_SCHEDULER
       
  1196 	END_TEST_BLOCK
       
  1197 	END_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0315-0002
       
  1198 
       
  1199 END_TESTCASE   BTSDP-SearchPattern-PublicApi-Passive-Slave-0515
       
  1200 
       
  1201 
       
  1202 START_TESTCASE BTSDP-SearchPattern-PublicApi-Passive-Slave-0516
       
  1203 //! @SYMTestCaseID				BTSDP-SearchPattern-PublicApi-Passive-Slave-0516
       
  1204 //! @SYMAPI						CSdpAttrValueUUID, RSdp and RSdpDatabase
       
  1205 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1206 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
  1207 //!													Constructor(), Connect(), Close() from RSdp
       
  1208 //!													NewUUIDL() from CSdpAttrValueUUID
       
  1209 //! @SYMTestActions				1. Create a CSdpAttrValueUUID object with a UUID using NewUUIDL() function.
       
  1210 //!								   Return KErrNone if successed
       
  1211 //!								2. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1212 //!								3. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1213 //!								4. Creates a new service record, with a single service class, in the SDP database.
       
  1214 //!								   Verify the resulting err code is KErrNone.
       
  1215 //!								5. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1216 //!								   Verify the resulting err code is KErrNone.
       
  1217 //!								6. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1218 //!								7. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1219 //!								8. Creates a new service record, with a single service class, in the SDP database.
       
  1220 //!								   Verify the resulting err code is KErrNone.
       
  1221 //!								9. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1222 //!								   Verify the resulting err code is KErrNone.
       
  1223 //!								10. Continue with the stored objects of last test case. Delete the service record. 
       
  1224 //!								11. Close the client process. Close the SDP database subsession.
       
  1225 //! @SYMTestStatus				Implemented
       
  1226 //! @SYMTestPriority			Low
       
  1227 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1228 //! @SYMTestType				CIT
       
  1229 
       
  1230 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
  1231 			SHARED_ACTIVE_SCHEDULER
       
  1232 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1233 			CREATE_OBJECT	RSdp	rsdp	
       
  1234 			CREATE_OBJECT	CSdpAttrValueUUID	attrValueUUID	
       
  1235 			COMMAND		attrValueUUID	NewUUIDL		BTSDP-SearchPattern-PublicApi-Passive-0516-0001command2NewUUIDL
       
  1236 			COMMAND		rsdp	Constructor
       
  1237 			COMMAND		rsdp	Connect
       
  1238 			OUTSTANDING
       
  1239 			COMMAND		database1	Constructor
       
  1240 			COMMAND		database1	Open		BTSDP-SearchPattern-PublicApi-Passive-0516-0001command8Open
       
  1241 			COMMAND		database1	CreateServiceRecordL		BTSDP-SearchPattern-PublicApi-Passive-0516-0001command9CreateServiceRecordL
       
  1242 			COMMAND		database1	UpdateAttributeL		BTSDP-SearchPattern-PublicApi-Passive-0516-0001command10UpdateAttributeL
       
  1243 			STORE	database1	
       
  1244 			STORE	rsdp	
       
  1245 			STORE_ACTIVE_SCHEDULER
       
  1246 	END_TEST_BLOCK
       
  1247 	START_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0316-0001
       
  1248 	END_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0316-0001
       
  1249 	START_SYNCHRONISED_TESTCASE BTSDP-SearchPattern-PublicApi-Active-0316-0002
       
  1250 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
  1251 			SHARED_ACTIVE_SCHEDULER
       
  1252 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1253 			RESTORE_OBJECT	RSdp	rsdp	
       
  1254 			COMMAND		database1	DeleteRecordL
       
  1255 			COMMAND		database1	Close
       
  1256 			COMMAND		rsdp	Close
       
  1257 			STORE_ACTIVE_SCHEDULER
       
  1258 	END_TEST_BLOCK
       
  1259 	END_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0316-0002
       
  1260 
       
  1261 END_TESTCASE   BTSDP-SearchPattern-PublicApi-Passive-Slave-0516
       
  1262 
       
  1263 
       
  1264 START_TESTCASE BTSDP-SearchPattern-PublicApi-Passive-Slave-0517
       
  1265 //! @SYMTestCaseID				BTSDP-SearchPattern-PublicApi-Passive-Slave-0517
       
  1266 //! @SYMAPI						CElementParser, CSdpAttrValueDEA, CSdpAttrValueDES, RSdp and RSdpDatabase
       
  1267 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1268 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
  1269 //!													Constructor(), Connect(), Close() from RSdp
       
  1270 //!													NewL(), Builder() from CElementParser
       
  1271 //!													NewDEAL(), BuildStringL(), BuildBooleanL(), AcceptVisitorL() from CSdpAttrValueDEA
       
  1272 //!													NewDESL(), StartListL(), BuildUUIDL(), EndListL() from CSdpAttrValueDES
       
  1273 //! @SYMTestActions				1. Create a list using NewDEAL() function and return KErrNone if successed
       
  1274 //!								2. Add a string in the list using BuildStringL() function. Return KErrNone if successed
       
  1275 //!								3. Add a boolean in the list using BuildBooleanL() function. Return KErrNone if successed
       
  1276 //!								4. Create a new CElementParser object with the CSdpAttrValueDEA object using NewL() function.
       
  1277 //!								   Return KErrNone if successed
       
  1278 //!								5. Call Builder() function and verify the result is as expected
       
  1279 //!								6. Create a list using NewDESL() function and return KErrNone if successed
       
  1280 //!								7. Add some UUIDs using BuildUUIDL() function. Return KErrNone if successed
       
  1281 //!								8. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1282 //!								9. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1283 //!								10. Creates a new service record, with a single service class, in the SDP database.
       
  1284 //!								    Verify the resulting err code is KErrNone.
       
  1285 //!								11. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1286 //!								    Verify the resulting err code is KErrNone.
       
  1287 //!								12. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1288 //!								13. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1289 //!								14. Creates a new service record, with multiple service classes, in the SDP database.
       
  1290 //!								    Verify the resulting err code is KErrNone.
       
  1291 //!								15. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1292 //!								    Verify the resulting err code is KErrNone.
       
  1293 //!								16. Continue with the stored objects of last test case. Delete the service record. 
       
  1294 //!								17. Close the client process. Close the SDP database subsession.
       
  1295 //! @SYMTestStatus				Implemented
       
  1296 //! @SYMTestPriority			Low
       
  1297 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1298 //! @SYMTestType				CIT
       
  1299 
       
  1300 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
  1301 			SHARED_ACTIVE_SCHEDULER
       
  1302 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1303 			CREATE_OBJECT	RSdp	rsdp	
       
  1304 			CREATE_OBJECT	CElementParser	celementparser1	
       
  1305 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
  1306 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  1307 			COMMAND		attrValueDEA	NewDEAL
       
  1308 			COMMAND		attrValueDEA	BuildStringL		BTSDP-SearchPattern-PublicApi-Passive-0517-0001command3BuildStringL
       
  1309 			COMMAND		attrValueDEA	BuildBooleanL		BTSDP-SearchPattern-PublicApi-Passive-0517-0001command4BuildBooleanL
       
  1310 			COMMAND		celementparser1	NewL		BTSDP-SearchPattern-PublicApi-Passive-0517-0001command6NewL
       
  1311 			COMMAND		celementparser1	Builder		BTSDP-SearchPattern-PublicApi-Passive-0517-0001command7Builder
       
  1312 			COMMAND		attrValueDEA	AcceptVisitorL		BTSDP-SearchPattern-PublicApi-Passive-0517-0001command9AcceptVisitorL
       
  1313 			COMMAND		attrValueDES	NewDESL
       
  1314 			COMMAND		attrValueDES	StartListL
       
  1315 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-SearchPattern-PublicApi-Passive-0517-0001command13BuildUUIDL
       
  1316 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-SearchPattern-PublicApi-Passive-0517-0001command14BuildUUIDL
       
  1317 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-SearchPattern-PublicApi-Passive-0517-0001command15BuildUUIDL
       
  1318 			COMMAND		attrValueDES	EndListL
       
  1319 			COMMAND		rsdp	Constructor
       
  1320 			COMMAND		rsdp	Connect
       
  1321 			OUTSTANDING
       
  1322 			COMMAND		database1	Constructor
       
  1323 			COMMAND		database1	Open		BTSDP-SearchPattern-PublicApi-Passive-0517-0001command22Open
       
  1324 			COMMAND		database1	CreateServiceRecordL		BTSDP-SearchPattern-PublicApi-Passive-0517-0001command23CreateServiceRecordL
       
  1325 			COMMAND		database1	UpdateAttributeL		BTSDP-SearchPattern-PublicApi-Passive-0517-0001command24UpdateAttributeL
       
  1326 			STORE	database1	
       
  1327 			STORE	rsdp	
       
  1328 			STORE_ACTIVE_SCHEDULER
       
  1329 	END_TEST_BLOCK
       
  1330 	START_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0317-0001
       
  1331 	END_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0317-0001
       
  1332 	START_SYNCHRONISED_TESTCASE BTSDP-SearchPattern-PublicApi-Active-0317-0002
       
  1333 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
  1334 			SHARED_ACTIVE_SCHEDULER
       
  1335 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1336 			RESTORE_OBJECT	RSdp	rsdp	
       
  1337 			COMMAND		database1	DeleteRecordL
       
  1338 			COMMAND		database1	Close
       
  1339 			COMMAND		rsdp	Close
       
  1340 			STORE_ACTIVE_SCHEDULER
       
  1341 	END_TEST_BLOCK
       
  1342 	END_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0317-0002
       
  1343 
       
  1344 END_TESTCASE   BTSDP-SearchPattern-PublicApi-Passive-Slave-0517
       
  1345 
       
  1346 
       
  1347 START_TESTCASE BTSDP-SearchPattern-PublicApi-Passive-Slave-0518
       
  1348 //! @SYMTestCaseID				BTSDP-SearchPattern-PublicApi-Passive-Slave-0518
       
  1349 //! @SYMAPI						CSdpAttrValueInt, CSdpAttrValueDES, RSdp and RSdpDatabase
       
  1350 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1351 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
  1352 //!													Constructor(), Connect(), Close() from RSdp
       
  1353 //!													NewIntL() from CSdpAttrValueInt
       
  1354 //!													NewDESL(), StartListL(), BuildUUIDL(), EndListL() from CSdpAttrValueDES
       
  1355 //! @SYMTestActions				1. Create a CSdpAttrValueInt object with a signed integer using NewIntL() function.
       
  1356 //!								   Return KErrNone if successed
       
  1357 //!								2. Create a list using NewDESL() function and return KErrNone if successed
       
  1358 //!								3. Add some UUIDs using BuildUUIDL() function. Return KErrNone if successed
       
  1359 //!								4. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1360 //!								5. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1361 //!								6. Creates a new service record, with a single service class, in the SDP database.
       
  1362 //!								   Verify the resulting err code is KErrNone.
       
  1363 //!								7. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1364 //!								   Verify the resulting err code is KErrNone.
       
  1365 //!								8. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1366 //!								9. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1367 //!								10. Creates a new service record, with multiple service classes, in the SDP database.
       
  1368 //!								    Verify the resulting err code is KErrNone.
       
  1369 //!								11. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1370 //!								    Verify the resulting err code is KErrNone.
       
  1371 //!								12. Continue with the stored objects of last test case. Delete the service record. 
       
  1372 //!								13. Close the client process. Close the SDP database subsession.
       
  1373 //! @SYMTestStatus				Implemented
       
  1374 //! @SYMTestPriority			Low
       
  1375 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1376 //! @SYMTestType				CIT
       
  1377 
       
  1378 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
  1379 			SHARED_ACTIVE_SCHEDULER
       
  1380 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1381 			CREATE_OBJECT	RSdp	rsdp	
       
  1382 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
  1383 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  1384 			COMMAND		attrValueInt	NewIntL		BTSDP-SearchPattern-PublicApi-Passive-0518-0001command2NewIntL
       
  1385 			COMMAND		attrValueDES	NewDESL
       
  1386 			COMMAND		attrValueDES	StartListL
       
  1387 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-SearchPattern-PublicApi-Passive-0518-0001command6BuildUUIDL
       
  1388 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-SearchPattern-PublicApi-Passive-0518-0001command7BuildUUIDL
       
  1389 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-SearchPattern-PublicApi-Passive-0518-0001command8BuildUUIDL
       
  1390 			COMMAND		attrValueDES	EndListL
       
  1391 			COMMAND		rsdp	Constructor
       
  1392 			COMMAND		rsdp	Connect
       
  1393 			OUTSTANDING
       
  1394 			COMMAND		database1	Constructor
       
  1395 			COMMAND		database1	Open		BTSDP-SearchPattern-PublicApi-Passive-0518-0001command15Open
       
  1396 			COMMAND		database1	CreateServiceRecordL		BTSDP-SearchPattern-PublicApi-Passive-0518-0001command16CreateServiceRecordL
       
  1397 			COMMAND		database1	UpdateAttributeL		BTSDP-SearchPattern-PublicApi-Passive-0518-0001command17UpdateAttributeL
       
  1398 			STORE	database1	
       
  1399 			STORE	rsdp	
       
  1400 			STORE_ACTIVE_SCHEDULER
       
  1401 	END_TEST_BLOCK
       
  1402 	START_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0318-0001
       
  1403 	END_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0318-0001
       
  1404 	START_SYNCHRONISED_TESTCASE BTSDP-SearchPattern-PublicApi-Active-0318-0002
       
  1405 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
  1406 			SHARED_ACTIVE_SCHEDULER
       
  1407 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1408 			RESTORE_OBJECT	RSdp	rsdp	
       
  1409 			COMMAND		database1	DeleteRecordL
       
  1410 			COMMAND		database1	Close
       
  1411 			COMMAND		rsdp	Close
       
  1412 			STORE_ACTIVE_SCHEDULER
       
  1413 	END_TEST_BLOCK
       
  1414 	END_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0318-0002
       
  1415 
       
  1416 END_TESTCASE   BTSDP-SearchPattern-PublicApi-Passive-Slave-0518
       
  1417 
       
  1418 
       
  1419 START_TESTCASE BTSDP-SearchPattern-PublicApi-Passive-Slave-0519
       
  1420 //! @SYMTestCaseID				BTSDP-SearchPattern-PublicApi-Passive-Slave-0519
       
  1421 //! @SYMAPI						CSdpAttrValueBoolean, CSdpAttrValueDES, RSdp and RSdpDatabase
       
  1422 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1423 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
  1424 //!													Constructor(), Connect(), Close() from RSdp
       
  1425 //!													NewBoolL() from CSdpAttrValueBoolean
       
  1426 //!													NewDESL(), StartListL(), BuildUUIDL(), EndListL() from CSdpAttrValueDES
       
  1427 //! @SYMTestActions				1. Create a CSdpAttrValueBoolean object with a boolean using NewBoolL() function.
       
  1428 //!								   Return KErrNone if successed
       
  1429 //!								2. Create a list using NewDESL() function and return KErrNone if successed
       
  1430 //!								3. Add some UUIDs using BuildUUIDL() function. Return KErrNone if successed
       
  1431 //!								4. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1432 //!								5. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1433 //!								6. Creates a new service record, with a single service class, in the SDP database.
       
  1434 //!								   Verify the resulting err code is KErrNone.
       
  1435 //!								7. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1436 //!								   Verify the resulting err code is KErrNone.
       
  1437 //!								8. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1438 //!								9. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1439 //!								10. Creates a new service record, with multiple service classes, in the SDP database.
       
  1440 //!								    Verify the resulting err code is KErrNone.
       
  1441 //!								11. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1442 //!								    Verify the resulting err code is KErrNone.
       
  1443 //!								12. Continue with the stored objects of last test case. Delete the service record. 
       
  1444 //!								13. Close the client process. Close the SDP database subsession.
       
  1445 //! @SYMTestStatus				Implemented
       
  1446 //! @SYMTestPriority			Low
       
  1447 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1448 //! @SYMTestType				CIT
       
  1449 
       
  1450 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
  1451 			SHARED_ACTIVE_SCHEDULER
       
  1452 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1453 			CREATE_OBJECT	RSdp	rsdp	
       
  1454 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBoolean	
       
  1455 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  1456 			COMMAND		attrValueBoolean	NewBoolL		BTSDP-SearchPattern-PublicApi-Passive-0519-0001command2NewBoolL
       
  1457 			COMMAND		attrValueDES	NewDESL
       
  1458 			COMMAND		attrValueDES	StartListL
       
  1459 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-SearchPattern-PublicApi-Passive-0519-0001command6BuildUUIDL
       
  1460 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-SearchPattern-PublicApi-Passive-0519-0001command7BuildUUIDL
       
  1461 			COMMAND		attrValueDES	EndListL
       
  1462 			COMMAND		rsdp	Constructor
       
  1463 			COMMAND		rsdp	Connect
       
  1464 			OUTSTANDING
       
  1465 			COMMAND		database1	Constructor
       
  1466 			COMMAND		database1	Open		BTSDP-SearchPattern-PublicApi-Passive-0519-0001command14Open
       
  1467 			COMMAND		database1	CreateServiceRecordL		BTSDP-SearchPattern-PublicApi-Passive-0519-0001command15CreateServiceRecordL
       
  1468 			COMMAND		database1	UpdateAttributeL		BTSDP-SearchPattern-PublicApi-Passive-0519-0001command16UpdateAttributeL
       
  1469 			STORE	database1	
       
  1470 			STORE	rsdp	
       
  1471 			STORE_ACTIVE_SCHEDULER
       
  1472 	END_TEST_BLOCK
       
  1473 	START_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0319-0001
       
  1474 	END_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0319-0001
       
  1475 	START_SYNCHRONISED_TESTCASE BTSDP-SearchPattern-PublicApi-Active-0319-0002
       
  1476 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
  1477 			SHARED_ACTIVE_SCHEDULER
       
  1478 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1479 			RESTORE_OBJECT	RSdp	rsdp	
       
  1480 			COMMAND		database1	DeleteRecordL
       
  1481 			COMMAND		database1	Close
       
  1482 			COMMAND		rsdp	Close
       
  1483 			STORE_ACTIVE_SCHEDULER
       
  1484 	END_TEST_BLOCK
       
  1485 	END_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0319-0002
       
  1486 
       
  1487 END_TESTCASE   BTSDP-SearchPattern-PublicApi-Passive-Slave-0519
       
  1488 
       
  1489 
       
  1490 START_TESTCASE BTSDP-SearchPattern-PublicApi-Passive-Slave-0520
       
  1491 //! @SYMTestCaseID				BTSDP-SearchPattern-PublicApi-Passive-Slave-0520
       
  1492 //! @SYMAPI						CSdpAttrValueURL, RSdp and RSdpDatabase
       
  1493 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1494 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
  1495 //!													Constructor(), Connect(), Close() from RSdp
       
  1496 //!													NewURLL() from CSdpAttrValueURL
       
  1497 //! @SYMTestActions				1. Create a CSdpAttrValueURL object with a url using NewURLL() function.
       
  1498 //!								   Return KErrNone if successed
       
  1499 //!								2. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1500 //!								3. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1501 //!								4. Creates a new service record, with a single service class, in the SDP database.
       
  1502 //!								   Verify the resulting err code is KErrNone.
       
  1503 //!								5. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1504 //!								   Verify the resulting err code is KErrNone.
       
  1505 //!								6. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1506 //!								7. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1507 //!								8. Creates a new service record, with a single service class, in the SDP database.
       
  1508 //!								   Verify the resulting err code is KErrNone.
       
  1509 //!								9. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1510 //!								   Verify the resulting err code is KErrNone.
       
  1511 //!								10. Continue with the stored objects of last test case. Delete the service record. 
       
  1512 //!								11. Close the client process. Close the SDP database subsession.
       
  1513 //! @SYMTestStatus				Implemented
       
  1514 //! @SYMTestPriority			Low
       
  1515 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1516 //! @SYMTestType				CIT
       
  1517 
       
  1518 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
  1519 			SHARED_ACTIVE_SCHEDULER
       
  1520 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1521 			CREATE_OBJECT	RSdp	rsdp	
       
  1522 			CREATE_OBJECT	CSdpAttrValueURL	attrValueURL	
       
  1523 			COMMAND		attrValueURL	NewURLL		BTSDP-SearchPattern-PublicApi-Passive-0520-0001command2NewURLL
       
  1524 			COMMAND		rsdp	Constructor
       
  1525 			COMMAND		rsdp	Connect
       
  1526 			OUTSTANDING
       
  1527 			COMMAND		database1	Constructor
       
  1528 			COMMAND		database1	Open		BTSDP-SearchPattern-PublicApi-Passive-0520-0001command8Open
       
  1529 			COMMAND		database1	CreateServiceRecordL		BTSDP-SearchPattern-PublicApi-Passive-0520-0001command9CreateServiceRecordL
       
  1530 			COMMAND		database1	UpdateAttributeL		BTSDP-SearchPattern-PublicApi-Passive-0520-0001command10UpdateAttributeL
       
  1531 			STORE	database1	
       
  1532 			STORE	rsdp	
       
  1533 			STORE_ACTIVE_SCHEDULER
       
  1534 	END_TEST_BLOCK
       
  1535 	START_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0320-0001
       
  1536 	END_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0320-0001
       
  1537 	START_SYNCHRONISED_TESTCASE BTSDP-SearchPattern-PublicApi-Active-0320-0002
       
  1538 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
  1539 			SHARED_ACTIVE_SCHEDULER
       
  1540 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1541 			RESTORE_OBJECT	RSdp	rsdp	
       
  1542 			COMMAND		database1	DeleteRecordL
       
  1543 			COMMAND		database1	Close
       
  1544 			COMMAND		rsdp	Close
       
  1545 			STORE_ACTIVE_SCHEDULER
       
  1546 	END_TEST_BLOCK
       
  1547 	END_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0320-0002
       
  1548 
       
  1549 END_TESTCASE   BTSDP-SearchPattern-PublicApi-Passive-Slave-0520
       
  1550 
       
  1551 
       
  1552 START_TESTCASE BTSDP-SearchPattern-PublicApi-Passive-Slave-0521
       
  1553 //! @SYMTestCaseID				BTSDP-SearchPattern-PublicApi-Passive-Slave-0521
       
  1554 //! @SYMAPI						CSdpAttrValueDEA, RSdp and RSdpDatabase
       
  1555 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1556 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
  1557 //!													Constructor(), Connect(), Close() from RSdp
       
  1558 //!													NewURLL(), BuildUUIDL(), BuildBooleanL(), BuildNilL() from CSdpAttrValueDEA
       
  1559 //! @SYMTestActions				1. Create a list using NewDEAL() function and return KErrNone if successed
       
  1560 //!								2. Add a UUID in the list using BuildUUIDL() function. Return KErrNone if successed
       
  1561 //!								3. Add a boolean in the list using BuildBooleanL() function. Return KErrNone if successed
       
  1562 //!								4. Create another list using NewDEAL() function and return KErrNone if successed
       
  1563 //!								5. Add a UUID in the list using BuildUUIDL() function. Return KErrNone if successed
       
  1564 //!								6. Add a NULL type of element using BuildNilL() function. Return KErrNone if successed
       
  1565 //!								7. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1566 //!								8. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1567 //!								9. Creates a new service record, with a single service class, in the SDP database.
       
  1568 //!								   Verify the resulting err code is KErrNone.
       
  1569 //!								10. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1570 //!								    Verify the resulting err code is KErrNone.
       
  1571 //!								11. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1572 //!								12. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1573 //!								13. Creates a new service record, with a single service class, in the SDP database.
       
  1574 //!								    Verify the resulting err code is KErrNone.
       
  1575 //!								14. Updates 2 service record attributes with 2 values encapsulated in CSdpAttrValue.
       
  1576 //!								    Verify the resulting err code is KErrNone.
       
  1577 //!								15. Continue with the stored objects of last test case. Delete the service record. 
       
  1578 //!								16. Close the client process. Close the SDP database subsession.
       
  1579 //! @SYMTestStatus				Implemented
       
  1580 //! @SYMTestPriority			Low
       
  1581 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1582 //! @SYMTestType				CIT
       
  1583 
       
  1584 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
  1585 			SHARED_ACTIVE_SCHEDULER
       
  1586 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1587 			CREATE_OBJECT	RSdp	rsdp	
       
  1588 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA1	
       
  1589 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA2	
       
  1590 			COMMAND		attrValueDEA1	NewDEAL
       
  1591 			COMMAND		attrValueDEA1	BuildUUIDL		BTSDP-SearchPattern-PublicApi-Passive-0521-0001command3BuildUUIDL
       
  1592 			COMMAND		attrValueDEA1	BuildBooleanL		BTSDP-SearchPattern-PublicApi-Passive-0521-0001command4BuildBooleanL
       
  1593 			COMMAND		attrValueDEA2	NewDEAL
       
  1594 			COMMAND		attrValueDEA2	BuildUUIDL		BTSDP-SearchPattern-PublicApi-Passive-0521-0001command7BuildUUIDL
       
  1595 			COMMAND		attrValueDEA2	BuildNilL
       
  1596 			COMMAND		rsdp	Constructor
       
  1597 			COMMAND		rsdp	Connect
       
  1598 			OUTSTANDING
       
  1599 			COMMAND		database1	Constructor
       
  1600 			COMMAND		database1	Open		BTSDP-SearchPattern-PublicApi-Passive-0521-0001command14Open
       
  1601 			COMMAND		database1	CreateServiceRecordL		BTSDP-SearchPattern-PublicApi-Passive-0521-0001command15CreateServiceRecordL
       
  1602 			COMMAND		database1	UpdateAttributeL		BTSDP-SearchPattern-PublicApi-Passive-0521-0001command16UpdateAttributeL
       
  1603 			COMMAND		database1	UpdateAttributeL		BTSDP-SearchPattern-PublicApi-Passive-0521-0001command17UpdateAttributeL
       
  1604 			STORE	database1	
       
  1605 			STORE	rsdp	
       
  1606 			STORE_ACTIVE_SCHEDULER
       
  1607 	END_TEST_BLOCK
       
  1608 	START_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0321-0001
       
  1609 	END_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0321-0001
       
  1610 	START_SYNCHRONISED_TESTCASE BTSDP-SearchPattern-PublicApi-Active-0321-0002
       
  1611 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
  1612 			SHARED_ACTIVE_SCHEDULER
       
  1613 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1614 			RESTORE_OBJECT	RSdp	rsdp	
       
  1615 			COMMAND		database1	DeleteRecordL
       
  1616 			COMMAND		database1	Close
       
  1617 			COMMAND		rsdp	Close
       
  1618 			STORE_ACTIVE_SCHEDULER
       
  1619 	END_TEST_BLOCK
       
  1620 	END_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0321-0002
       
  1621 
       
  1622 END_TESTCASE   BTSDP-SearchPattern-PublicApi-Passive-Slave-0521
       
  1623 
       
  1624 
       
  1625 START_TESTCASE BTSDP-SearchPattern-PublicApi-Passive-Slave-0522
       
  1626 //! @SYMTestCaseID				BTSDP-SearchPattern-PublicApi-Passive-Slave-0522
       
  1627 //! @SYMAPI						CSdpAttrValueDEA, RSdp and RSdpDatabase
       
  1628 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1629 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
  1630 //!													Constructor(), Connect(), Close() from RSdp
       
  1631 //!													NewBoolL() from CSdpAttrValueBoolean
       
  1632 //!													NewStringL() from CSdpAttrValueString
       
  1633 //! @SYMTestActions				1. Create a CSdpAttrValueBoolean object with a boolean using NewBoolL() function.
       
  1634 //!								   Return KErrNone if successed
       
  1635 //!								2. Create a CSdpAttrValueString object with a string using NewStringL() function.
       
  1636 //!								   Return KErrNone if successed
       
  1637 //!								3. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1638 //!								4. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1639 //!								5. Creates a new service record, with a single service class, in the SDP database.
       
  1640 //!								   Verify the resulting err code is KErrNone.
       
  1641 //!								6. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1642 //!								   Verify the resulting err code is KErrNone.
       
  1643 //!								7. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1644 //!								8. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1645 //!								9. Creates a new service record, with a single service class, in the SDP database.
       
  1646 //!								   Verify the resulting err code is KErrNone.
       
  1647 //!								10. Updates 2 service record attributes with 2 values encapsulated in CSdpAttrValue.
       
  1648 //!								    Verify the resulting err code is KErrNone.
       
  1649 //!								11. Continue with the stored objects of last test case. Delete the service record. 
       
  1650 //!								12. Close the client process. Close the SDP database subsession.
       
  1651 //! @SYMTestStatus				Implemented
       
  1652 //! @SYMTestPriority			Low
       
  1653 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1654 //! @SYMTestType				CIT
       
  1655 
       
  1656 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
  1657 			SHARED_ACTIVE_SCHEDULER
       
  1658 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1659 			CREATE_OBJECT	RSdp	rsdp	
       
  1660 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBoolean	
       
  1661 			CREATE_OBJECT	CSdpAttrValueString	attrValueString	
       
  1662 			COMMAND		attrValueBoolean	NewBoolL		BTSDP-SearchPattern-PublicApi-Passive-0522-0001command2NewBoolL
       
  1663 			COMMAND		attrValueString	NewStringL		BTSDP-SearchPattern-PublicApi-Passive-0522-0001command4NewStringL
       
  1664 			COMMAND		rsdp	Constructor
       
  1665 			COMMAND		rsdp	Connect
       
  1666 			OUTSTANDING
       
  1667 			COMMAND		database1	Constructor
       
  1668 			COMMAND		database1	Open		BTSDP-SearchPattern-PublicApi-Passive-0522-0001command10Open
       
  1669 			COMMAND		database1	CreateServiceRecordL		BTSDP-SearchPattern-PublicApi-Passive-0522-0001command11CreateServiceRecordL
       
  1670 			COMMAND		database1	UpdateAttributeL		BTSDP-SearchPattern-PublicApi-Passive-0522-0001command12UpdateAttributeL
       
  1671 			COMMAND		database1	UpdateAttributeL		BTSDP-SearchPattern-PublicApi-Passive-0522-0001command13UpdateAttributeL
       
  1672 			STORE	database1	
       
  1673 			STORE	rsdp	
       
  1674 			STORE_ACTIVE_SCHEDULER
       
  1675 	END_TEST_BLOCK
       
  1676 	START_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0322-0001
       
  1677 	END_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0322-0001
       
  1678 	START_SYNCHRONISED_TESTCASE BTSDP-SearchPattern-PublicApi-Active-0322-0002
       
  1679 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
  1680 			SHARED_ACTIVE_SCHEDULER
       
  1681 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1682 			RESTORE_OBJECT	RSdp	rsdp	
       
  1683 			COMMAND		database1	DeleteRecordL
       
  1684 			COMMAND		database1	Close
       
  1685 			COMMAND		rsdp	Close
       
  1686 			STORE_ACTIVE_SCHEDULER
       
  1687 	END_TEST_BLOCK
       
  1688 	END_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0322-0002
       
  1689 
       
  1690 END_TESTCASE   BTSDP-SearchPattern-PublicApi-Passive-Slave-0522
       
  1691 
       
  1692 
       
  1693 START_TESTCASE BTSDP-SearchPattern-PublicApi-Passive-Slave-0523
       
  1694 //! @SYMTestCaseID				BTSDP-SearchPattern-PublicApi-Passive-Slave-0523
       
  1695 //! @SYMAPI						CSdpAttrValueBoolean, CSdpAttrValueDES, RSdp and RSdpDatabase
       
  1696 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve
       
  1697 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
  1698 //!													Constructor(), Connect(), Close() from RSdp
       
  1699 //!													NewBoolL() from CSdpAttrValueBoolean
       
  1700 //!													NewDESL(), StartListL(), BuildUUIDL(), EndListL() from CSdpAttrValueDES
       
  1701 //! @SYMTestActions				1. Create a CSdpAttrValueBoolean object with a boolean using NewBoolL() function.
       
  1702 //!								   Return KErrNone if successed
       
  1703 //!								2. Create a list using NewDESL() function and return KErrNone if successed
       
  1704 //!								3. Add some UUIDs using BuildUUIDL() function. Return KErrNone if successed
       
  1705 //!								4. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1706 //!								5. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1707 //!								6. Creates a new service record, with a single service class, in the SDP database.
       
  1708 //!								   Verify the resulting err code is KErrNone.
       
  1709 //!								7. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1710 //!								   Verify the resulting err code is KErrNone.
       
  1711 //!								8. Connects a client process to the database. Verify the resulting err code is KErrNone.
       
  1712 //!								9. Opens a SDP database subsession. Verify the resulting err code is KErrNone.
       
  1713 //!								10. Creates a new service record, with multiple service classes, in the SDP database.
       
  1714 //!								    Verify the resulting err code is KErrNone.
       
  1715 //!								11. Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  1716 //!								    Verify the resulting err code is KErrNone.
       
  1717 //!								12. Continue with the stored objects of last test case. Delete the service record. 
       
  1718 //!								13. Close the client process. Close the SDP database subsession.
       
  1719 //! @SYMTestStatus				Implemented
       
  1720 //! @SYMTestPriority			Low
       
  1721 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1722 //! @SYMTestType				CIT
       
  1723 
       
  1724 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
  1725 			SHARED_ACTIVE_SCHEDULER
       
  1726 			CREATE_OBJECT	RSdpDatabase	database1	
       
  1727 			CREATE_OBJECT	RSdp	rsdp	
       
  1728 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBoolean	
       
  1729 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  1730 			COMMAND		attrValueBoolean	NewBoolL		BTSDP-SearchPattern-PublicApi-Passive-0523-0001command2NewBoolL
       
  1731 			COMMAND		attrValueDES	NewDESL
       
  1732 			COMMAND		attrValueDES	StartListL
       
  1733 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-SearchPattern-PublicApi-Passive-0523-0001command6BuildUUIDL
       
  1734 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-SearchPattern-PublicApi-Passive-0523-0001command7BuildUUIDL
       
  1735 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-SearchPattern-PublicApi-Passive-0523-0001command8BuildUUIDL
       
  1736 			COMMAND		attrValueDES	EndListL
       
  1737 			COMMAND		rsdp	Constructor
       
  1738 			COMMAND		rsdp	Connect
       
  1739 			OUTSTANDING
       
  1740 			COMMAND		database1	Constructor
       
  1741 			COMMAND		database1	Open		BTSDP-SearchPattern-PublicApi-Passive-0523-0001command15Open
       
  1742 			COMMAND		database1	CreateServiceRecordL		BTSDP-SearchPattern-PublicApi-Passive-0523-0001command16CreateServiceRecordL
       
  1743 			COMMAND		database1	UpdateAttributeL		BTSDP-SearchPattern-PublicApi-Passive-0523-0001command17UpdateAttributeL
       
  1744 			STORE	database1	
       
  1745 			STORE	rsdp	
       
  1746 			STORE_ACTIVE_SCHEDULER
       
  1747 	END_TEST_BLOCK
       
  1748 	START_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0323-0001
       
  1749 	END_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0323-0001
       
  1750 	START_SYNCHRONISED_TESTCASE BTSDP-SearchPattern-PublicApi-Active-0323-0002
       
  1751 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Passive-Slave.ini
       
  1752 			SHARED_ACTIVE_SCHEDULER
       
  1753 			RESTORE_OBJECT	RSdpDatabase	database1	
       
  1754 			RESTORE_OBJECT	RSdp	rsdp	
       
  1755 			COMMAND		database1	DeleteRecordL
       
  1756 			COMMAND		database1	Close
       
  1757 			COMMAND		rsdp	Close
       
  1758 			STORE_ACTIVE_SCHEDULER
       
  1759 	END_TEST_BLOCK
       
  1760 	END_SYNCHRONISED_TESTCASE	BTSDP-SearchPattern-PublicApi-Active-0323-0002
       
  1761 
       
  1762 END_TESTCASE   BTSDP-SearchPattern-PublicApi-Passive-Slave-0523
       
  1763 
       
  1764 
       
  1765 
       
  1766 DELAY		2000
       
  1767 
       
  1768