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