bluetoothapitest/bluetoothsvs/T_BTSdpAPI/scripts/BTSDP-Database-PublicApi-Passive-Master.script
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 //
       
     2 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description:
       
    15 //
       
    16 ///////////////////////////////////////////////////////////////////////////////
       
    17 //! @file
       
    18 //! @SYMTestSuiteName			T_BTSdpAPI
       
    19 //! @SYMScriptTestEnvironment	This test script requires a basic ROM with bluetooth dongle.
       
    20 //! @SYMScriptDescription		Tests all public elements of the CSdpDatabase class
       
    21 //! 							as a means of confidence that the API works as expected. 
       
    22 //!								The purpose is to provide a regression test suite of PublishedAll APIs for 
       
    23 //!								BT SDP related classes.
       
    24 //! 							Negative testing is performed to confirm that correct errors are returned 
       
    25 //!								when incorrect parameters are given. The tests are fully automated.
       
    26 //! @SYMAuthor					Symbio
       
    27 //! @SYMCreationDate			21/09/2006
       
    28 ///////////////////////////////////////////////////////////////////////////////
       
    29 
       
    30 RUN_UTILS	MkDir	${SYSDRIVE}\bluetooth\
       
    31 RUN_UTILS	MkDir	${SYSDRIVE}\bluetooth\sdp\
       
    32 RUN_UTILS	MkDir	${SYSDRIVE}\bluetooth\sdp\t_RSdpdatabase\
       
    33 
       
    34 LOAD_SUITE	UCCControlTE
       
    35 LOAD_SUITE	T_BTSdpAPI	-SharedData
       
    36 DELAY		2000
       
    37 
       
    38 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncService
       
    39 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartTDService
       
    40 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini BuildRunSamplesDatabaseActiveSlave
       
    41 
       
    42 DELAY		10000
       
    43 
       
    44 // ****************************************************************************
       
    45 // Set up BT Addresses
       
    46 // ****************************************************************************
       
    47 
       
    48 START_TESTCASE BTSDP-Database-PublicApi-Passive-SetBTAddresses
       
    49 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
    50 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
    51 			SHARED_ACTIVE_SCHEDULER
       
    52 			CREATE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
    53 			CREATE_OBJECT	TRfcommSockAddr	TRfcommSockAddr1	
       
    54 			CREATE_OBJECT	CBluetoothSocket	CBluetoothSessionSocket	
       
    55 			COMMAND		CBluetoothSocket1	RSocketServerConnect
       
    56 			COMMAND		CBluetoothSocket1	NewL		BTSDP-Database-PublicApi-Passive-SetBTAddresses-0001command3NewL
       
    57 			COMMAND		TRfcommSockAddr1	Construct
       
    58 			COMMAND		TRfcommSockAddr1	SetFamily		BTSDP-Database-PublicApi-Passive-SetBTAddresses-0001command6SetFamily
       
    59 			COMMAND		TRfcommSockAddr1	SetPort		BTSDP-Database-PublicApi-Passive-SetBTAddresses-0001command7SetPort
       
    60 			COMMAND		CBluetoothSocket1	Bind		BTSDP-Database-PublicApi-Passive-SetBTAddresses-0001command9Bind
       
    61 			COMMAND		CBluetoothSocket1	Listen		BTSDP-Database-PublicApi-Passive-SetBTAddresses-0001command10Listen
       
    62 			COMMAND		CBluetoothSessionSocket	SetRsocketServerFromCBTSocket		BTSDP-Database-PublicApi-Passive-SetBTAddresses-0001command12SetRsocketServerFromCBTSocket
       
    63 			COMMAND		CBluetoothSessionSocket	NewL		BTSDP-Database-PublicApi-Passive-SetBTAddresses-0001command13NewL
       
    64 			STORE	CBluetoothSocket1	
       
    65 			STORE	CBluetoothSessionSocket	
       
    66 			STORE_ACTIVE_SCHEDULER
       
    67 	END_TEST_BLOCK
       
    68 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult	
       
    69 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase		
       
    70 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
    71 			SHARED_ACTIVE_SCHEDULER
       
    72 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
    73 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSessionSocket	
       
    74 			CREATE_OBJECT	TBTDevAddr	TBTDevAddrLocal	
       
    75 			COMMAND		TBTDevAddrLocal	Construct
       
    76 			COMMAND		TBTDevAddrLocal	OpenHostResolver		BTSDP-Database-PublicApi-Passive-SetBTAddresses-0002command3OpenHostResolver
       
    77 			COMMAND		TBTDevAddrLocal	SetHostNameL		BTSDP-Database-PublicApi-Passive-SetBTAddresses-0002command4SetHostNameL
       
    78 			COMMAND		TBTDevAddrLocal	SetDiscoverable
       
    79 			STORE	CBluetoothSocket1	
       
    80 			STORE	CBluetoothSessionSocket	
       
    81 			STORE	TBTDevAddrLocal	
       
    82 	END_TEST_BLOCK
       
    83 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult		
       
    84 END_TESTCASE BTSDP-Database-PublicApi-Passive-SetBTAddresses
       
    85 
       
    86 
       
    87 // ****************************************************************************
       
    88 // T_RSdpdatabase
       
    89 // ****************************************************************************	
       
    90 
       
    91 START_TESTCASE BTSDP-Database-PublicApi-Passive-Master-3661
       
    92 //! @SYMTestCaseID				BTSDP-Database-PublicApi-Passive-Master-3661
       
    93 //! @SYMAPI						RSdpDatabase
       
    94 //!
       
    95 //! @SYMTestCaseDesc			Updated a service record attribute with a value,
       
    96 //!								and prepare, set up the service record for the master device to retrieve
       
    97 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
    98 //!													Constructor(), Connect(), Close() from RSdp
       
    99 //!													NewIntL() from CSdpAttrValueInt												
       
   100 //! @SYMTestActions				1. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
   101 //!								2. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
   102 //!								3. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
   103 //!								4. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
   104 //!								5. Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
   105 //!								6. Read an input service record UUID from test data if successful.
       
   106 //!								7. Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed.
       
   107 //!								8. Read an input attribute ID from test data if successful.
       
   108 //!								9. Read the CSdpAttrValueInt object from test data if successful.
       
   109 //!								10.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed.
       
   110 //!								11.Deletes the service records using DeleteRecordL() function and return KErrNone if successed.
       
   111 //!								12.Close the SDP database subsession using Close() function.
       
   112 //!								13.Close the client process using Close() function.
       
   113 //! @SYMTestStatus				Implemented
       
   114 //! @SYMTestPriority			High
       
   115 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   116 //! @SYMTestType				CIT
       
   117 
       
   118 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   119 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
   120 			SHARED_ACTIVE_SCHEDULER
       
   121 			CREATE_OBJECT	RSdpDatabase	database	
       
   122 			CREATE_OBJECT	RSdp	rsdp	
       
   123 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
   124 			COMMAND		attrValueInt	NewIntL		BTSDP-Database-PublicApi-Passive-3661-0001command2NewIntL
       
   125 			COMMAND		rsdp	Constructor
       
   126 			COMMAND		rsdp	Connect
       
   127 			OUTSTANDING
       
   128 			COMMAND		database	Constructor
       
   129 			COMMAND		database	Open		BTSDP-Database-PublicApi-Passive-3661-0001command8Open
       
   130 			COMMAND		database	CreateServiceRecordL		BTSDP-Database-PublicApi-Passive-3661-0001command9CreateServiceRecordL
       
   131 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3661-0001command10UpdateAttributeL
       
   132 			COMMAND		attrValueInt	NewIntL		BTSDP-Database-PublicApi-Passive-3661-0001command12NewIntL
       
   133 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3661-0001command14UpdateAttributeL
       
   134 			STORE	database	
       
   135 			STORE	rsdp	
       
   136 			STORE_ACTIVE_SCHEDULER
       
   137 	END_TEST_BLOCK
       
   138 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   139 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   140 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   141 
       
   142 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
   143 			SHARED_ACTIVE_SCHEDULER
       
   144 			RESTORE_OBJECT	RSdpDatabase	database	
       
   145 			RESTORE_OBJECT	RSdp	rsdp	
       
   146 			ASYNC_DELAY	5000000
       
   147 			COMMAND		database	DeleteRecordL
       
   148 			COMMAND		database	Close
       
   149 			COMMAND		rsdp	Close
       
   150 	END_TEST_BLOCK
       
   151 END_TESTCASE   BTSDP-Database-PublicApi-Passive-Master-3661
       
   152 
       
   153 
       
   154 START_TESTCASE BTSDP-Database-PublicApi-Passive-Master-3662
       
   155 //! @SYMTestCaseID				BTSDP-Database-PublicApi-Passive-Master-3662
       
   156 //! @SYMAPI						RSdpDatabase
       
   157 //!						
       
   158 //! @SYMTestCaseDesc			Updated multiple service records with attribute value,
       
   159 //!								and prepare, set up the service record for the master device to retrieve
       
   160 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
   161 //!													Constructor(), Connect(), Close() from RSdp
       
   162 //!													NewIntL() from CSdpAttrValueInt												
       
   163 //! @SYMTestActions				1. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
   164 //!								2. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
   165 //!								3. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
   166 //!								4. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
   167 //!								5. Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
   168 //!								6. Read Multiple input service record UUIDs from test data if successful.
       
   169 //!								7. Creates multiple new service records with the service record UUIDs using CreateServiceRecordL() function and return KErrNone if successed.
       
   170 //!								8. Read an input attribute ID from test data if successful.
       
   171 //!								9. Read the CSdpAttrValueInt object from test data if successful.
       
   172 //!								10.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed.
       
   173 //!								11.Re-Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
   174 //!								12.Updates a service record attribute again with a new value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed.
       
   175 //!								13.Deletes the multiple service records using DeleteRecordL() function and return KErrNone if successed.
       
   176 //!								14.Close the SDP database subsession using Close() function.
       
   177 //!								15.Close the client process using Close() function. 
       
   178 //! @SYMTestStatus				Implemented
       
   179 //! @SYMTestPriority			High
       
   180 //! @SYMTestExpectedResults  	Updated multiple service records with attribute value encapsulated in a CSdpAttrValue successfully.
       
   181 //! @SYMTestType				CIT
       
   182 
       
   183 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   184 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
   185 			SHARED_ACTIVE_SCHEDULER
       
   186 			CREATE_OBJECT	RSdpDatabase	database	
       
   187 			CREATE_OBJECT	RSdp	rsdp	
       
   188 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
   189 			COMMAND		attrValueInt	NewIntL		BTSDP-Database-PublicApi-Passive-3662-0001command2NewIntL
       
   190 			COMMAND		rsdp	Constructor
       
   191 			COMMAND		rsdp	Connect
       
   192 			OUTSTANDING
       
   193 			COMMAND		database	Constructor
       
   194 			COMMAND		database	Open		BTSDP-Database-PublicApi-Passive-3662-0001command8Open
       
   195 			COMMAND		database	CreateServiceRecordL		BTSDP-Database-PublicApi-Passive-3662-0001command9CreateServiceRecordL
       
   196 			COMMAND		database	CreateServiceRecordL		BTSDP-Database-PublicApi-Passive-3662-0001command10CreateServiceRecordL
       
   197 			COMMAND		database	CreateServiceRecordL		BTSDP-Database-PublicApi-Passive-3662-0001command11CreateServiceRecordL
       
   198 			COMMAND		database	CreateServiceRecordL		BTSDP-Database-PublicApi-Passive-3662-0001command12CreateServiceRecordL
       
   199 			COMMAND		database	CreateServiceRecordL		BTSDP-Database-PublicApi-Passive-3662-0001command13CreateServiceRecordL
       
   200 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3662-0001command14UpdateAttributeL
       
   201 			COMMAND		attrValueInt	NewIntL		BTSDP-Database-PublicApi-Passive-3662-0001command16NewIntL
       
   202 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3662-0001command18UpdateAttributeL
       
   203 			STORE	database	
       
   204 			STORE	rsdp	
       
   205 			STORE_ACTIVE_SCHEDULER
       
   206 	END_TEST_BLOCK
       
   207 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   208 
       
   209 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   210 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   211 
       
   212 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
   213 			SHARED_ACTIVE_SCHEDULER
       
   214 			RESTORE_OBJECT	RSdpDatabase	database	
       
   215 			RESTORE_OBJECT	RSdp	rsdp	
       
   216 			COMMAND		database	DeleteRecordL
       
   217 			COMMAND		database	DeleteRecordL
       
   218 			COMMAND		database	DeleteRecordL
       
   219 			COMMAND		database	DeleteRecordL
       
   220 			COMMAND		database	DeleteRecordL
       
   221 			COMMAND		database	Close
       
   222 			COMMAND		rsdp	Close
       
   223 	END_TEST_BLOCK
       
   224 
       
   225 END_TESTCASE   BTSDP-Database-PublicApi-Passive-Master-3662
       
   226 
       
   227 START_TESTCASE BTSDP-Database-PublicApi-Passive-Master-3663
       
   228 //! @SYMTestCaseID				BTSDP-Database-PublicApi-Passive-Master-3663
       
   229 //! @SYMAPI						RSdpDatabase
       
   230 //!
       
   231 //! @SYMTestCaseDesc			Updated multiple service records using CSdpAttrValueDES object UUID list with attribute value,
       
   232 //!								and prepare, set up the service record for the master device to retrieve
       
   233 //!								Uses API elements:	NewDESL(), StartListL(), EndListL(), BuildUUIDL() from CSdpAttrValueDES 
       
   234 //!													Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
   235 //!													Constructor(), Connect(), Close() from RSdp
       
   236 //!													NewIntL() from CSdpAttrValueInt												
       
   237 //! @SYMTestActions				1. Allocate and construct a new CSdpAttrValueDES object using NewDESL() function and return KErrNone if successed.
       
   238 //!								2. Start to build a list of UUIDs using StartListL() function and return KErrNone if successed.
       
   239 //! 							3. Build multiple UUIDs using BuildUUIDL() and return KErrNone if successed.
       
   240 //!								4. Stop to build a list of UUIDs using EndListL() and return KErrNone if successed. 
       
   241 //!								5. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
   242 //!								6. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
   243 //!								7. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
   244 //!								8. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
   245 //!								9. Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
   246 //!								10.Creates multiple new service records from CSdpAttrValueDES object UUID list using CreateServiceRecordL() function and return KErrNone if successed.
       
   247 //!								11.Read an input attribute ID from test data if successful.
       
   248 //!								12.Read the CSdpAttrValueInt object from test data if successful.
       
   249 //!								13.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed.
       
   250 //!								14.Re-Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
   251 //!								15.Updates a service record attribute again with a new value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed.
       
   252 //!								16.Deletes the multiple service records using DeleteRecordL() function and return KErrNone if successed.
       
   253 //!								17.Close the SDP database subsession using Close() function.
       
   254 //!								18.Close the client process using Close() function. 
       
   255 //! @SYMTestStatus				Implemented
       
   256 //! @SYMTestPriority			Critical
       
   257 //! @SYMTestExpectedResults  	Updated multiple service records using CSdpAttrValueDES object UUID list with attribute value encapsulated in a CSdpAttrValue successfully.
       
   258 //! @SYMTestType				CIT
       
   259 
       
   260 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   261 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
   262 			SHARED_ACTIVE_SCHEDULER
       
   263 			CREATE_OBJECT	RSdpDatabase	database	
       
   264 			CREATE_OBJECT	RSdp	rsdp	
       
   265 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
   266 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
   267 			COMMAND		attrValueDES	NewDESL
       
   268 			COMMAND		attrValueDES	StartListL
       
   269 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-Database-PublicApi-Passive-3663-0001command4BuildUUIDL
       
   270 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-Database-PublicApi-Passive-3663-0001command5BuildUUIDL
       
   271 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-Database-PublicApi-Passive-3663-0001command6BuildUUIDL
       
   272 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-Database-PublicApi-Passive-3663-0001command7BuildUUIDL
       
   273 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-Database-PublicApi-Passive-3663-0001command8BuildUUIDL
       
   274 			COMMAND		attrValueDES	EndListL
       
   275 			COMMAND		attrValueInt	NewIntL		BTSDP-Database-PublicApi-Passive-3663-0001command11NewIntL
       
   276 			COMMAND		rsdp	Constructor
       
   277 			COMMAND		rsdp	Connect
       
   278 			OUTSTANDING
       
   279 			COMMAND		database	Constructor
       
   280 			COMMAND		database	Open		BTSDP-Database-PublicApi-Passive-3663-0001command17Open
       
   281 			COMMAND		database	CreateServiceRecordL		BTSDP-Database-PublicApi-Passive-3663-0001command18CreateServiceRecordL
       
   282 			COMMAND		database	CreateServiceRecordL		BTSDP-Database-PublicApi-Passive-3663-0001command19CreateServiceRecordL
       
   283 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3663-0001command20UpdateAttributeL
       
   284 			COMMAND		attrValueInt	NewIntL		BTSDP-Database-PublicApi-Passive-3663-0001command22NewIntL
       
   285 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3663-0001command24UpdateAttributeL
       
   286 			STORE	database	
       
   287 			STORE	rsdp	
       
   288 			STORE_ACTIVE_SCHEDULER
       
   289 	END_TEST_BLOCK
       
   290 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   291 
       
   292 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   293 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   294 
       
   295 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
   296 			SHARED_ACTIVE_SCHEDULER
       
   297 			RESTORE_OBJECT	RSdpDatabase	database	
       
   298 			RESTORE_OBJECT	RSdp	rsdp	
       
   299 			COMMAND		database	DeleteRecordL
       
   300 			COMMAND		database	DeleteRecordL
       
   301 			COMMAND		database	Close
       
   302 			COMMAND		rsdp	Close
       
   303 	END_TEST_BLOCK
       
   304 
       
   305 END_TESTCASE   BTSDP-Database-PublicApi-Passive-Master-3663
       
   306 
       
   307 START_TESTCASE BTSDP-Database-PublicApi-Passive-Master-3664
       
   308 //! @SYMTestCaseID				BTSDP-Database-PublicApi-Passive-Master-3664
       
   309 //! @SYMAPI						RSdpDatabase
       
   310 //!
       
   311 //! @SYMTestCaseDesc			Updated a service record attribute with different type of objects : DesC8, Desc16, integer, CSdpAttrValueInt, CSdpAttrValueBoolean and CSdpAttrValueString,
       
   312 //!								and prepare, set up the service record for the master device to retrieve
       
   313 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
   314 //!													Constructor(), Connect(), Close() from RSdp
       
   315 //!													NewIntL() from CSdpAttrValueInt												
       
   316 //! @SYMTestActions				1. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
   317 //!								2. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
   318 //!								3. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
   319 //!								4. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
   320 //!								5. Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
   321 //!								6. Read an input service record UUID from test data if successful.
       
   322 //!								7. Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed.
       
   323 //!								8. Read an input attribute ID from test data if successful.
       
   324 //!								9. Read the CSdpAttrValueInt object from test data if successful.
       
   325 //!								10.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed.
       
   326 //!								11.Updates a service record attribute with a value of Desc16 using UpdateAttributeL() function and return KErrNone if successed.
       
   327 //!								12.Updates a service record attribute with a value of DesC8 using UpdateAttributeL() function and return KErrNone if successed.
       
   328 //!								13.Updates a service record attribute with a value of integer using UpdateAttributeL() function and return KErrNone if successed.
       
   329 //!								14.Deletes the service records using DeleteRecordL() function and return KErrNone if successed.
       
   330 //!								15.Close the SDP database subsession using Close() function.
       
   331 //!								16.Close the client process using Close() function.
       
   332 //! @SYMTestStatus				Implemented
       
   333 //! @SYMTestPriority			High
       
   334 //! @SYMTestExpectedResults  	Updated a service record attribute with different type of value: Desc16, DesC8 and integer in a CSdpAttrValue successfully.
       
   335 //! @SYMTestType				CIT
       
   336 
       
   337 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   338 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
   339 			SHARED_ACTIVE_SCHEDULER
       
   340 			CREATE_OBJECT	RSdpDatabase	database	
       
   341 			CREATE_OBJECT	RSdp	rsdp	
       
   342 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
   343 			COMMAND		attrValueInt	NewIntL		BTSDP-Database-PublicApi-Passive-3664-0001command2NewIntL
       
   344 			COMMAND		rsdp	Constructor
       
   345 			COMMAND		rsdp	Connect
       
   346 			OUTSTANDING
       
   347 			COMMAND		database	Constructor
       
   348 			COMMAND		database	Open		BTSDP-Database-PublicApi-Passive-3664-0001command8Open
       
   349 			COMMAND		database	CreateServiceRecordL		BTSDP-Database-PublicApi-Passive-3664-0001command9CreateServiceRecordL
       
   350 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3664-0001command10UpdateAttributeL
       
   351 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3664-0001command11UpdateAttributeL
       
   352 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3664-0001command12UpdateAttributeL
       
   353 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3664-0001command13UpdateAttributeL
       
   354 			STORE	database	
       
   355 			STORE	rsdp	
       
   356 			STORE_ACTIVE_SCHEDULER
       
   357 	END_TEST_BLOCK
       
   358 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   359 
       
   360 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   361 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   362 
       
   363 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
   364 			SHARED_ACTIVE_SCHEDULER
       
   365 			RESTORE_OBJECT	RSdpDatabase	database	
       
   366 			RESTORE_OBJECT	RSdp	rsdp	
       
   367 			COMMAND		database	DeleteRecordL
       
   368 			COMMAND		database	Close
       
   369 			COMMAND		rsdp	Close
       
   370 	END_TEST_BLOCK
       
   371 
       
   372 END_TESTCASE   BTSDP-Database-PublicApi-Passive-Master-3664
       
   373 
       
   374 START_TESTCASE BTSDP-Database-PublicApi-Passive-Master-3665
       
   375 //! @SYMTestCaseID				BTSDP-Database-PublicApi-Passive-Master-3665
       
   376 //! @SYMAPI						RSdpDatabase
       
   377 //!
       
   378 //! @SYMTestCaseDesc			Updated a service record attribute with different type of objects : DesC8, Desc16, integer, CSdpAttrValueInt, CSdpAttrValueBoolean and CSdpAttrValueString,
       
   379 //!								then delete the multiple attributes,
       
   380 //!								and prepare, set up the service record for the master device to retrieve
       
   381 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
   382 //!													Constructor(), Connect(), Close() from RSdp
       
   383 //!													NewIntL() from CSdpAttrValueInt												
       
   384 //! @SYMTestActions				1. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
   385 //!								2. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
   386 //!								3. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
   387 //!								4. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
   388 //!								5. Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
   389 //!								6. Read an input service record UUID from test data if successful.
       
   390 //!								7. Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed.
       
   391 //!								8. Read an input attribute ID from test data if successful.
       
   392 //!								9. Read the CSdpAttrValueInt object from test data if successful.
       
   393 //!								10.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed.
       
   394 //!								11.Updates a service record attribute with a value of Desc16 using UpdateAttributeL() function and return KErrNone if successed.
       
   395 //!								12.Updates a service record attribute with a value of DesC8 using UpdateAttributeL() function and return KErrNone if successed.
       
   396 //!								13.Updates a service record attribute with a value of integer using UpdateAttributeL() function and return KErrNone if successed.
       
   397 //!								14.Delete multiple attributes from service record using DeleteAttributeL() function and return KErrNone if successed.
       
   398 //!								15.Deletes the service records using DeleteRecordL() function and return KErrNone if successed.
       
   399 //!								16.Close the SDP database subsession using Close() function.
       
   400 //!								17.Close the client process using Close() function.
       
   401 //! @SYMTestStatus				Implemented
       
   402 //! @SYMTestPriority			Critical
       
   403 //! @SYMTestExpectedResults  	Updated a service record attribute with different type of value: Desc16, DesC8 and integer in a CSdpAttrValue, then delete the multiple attributes successfully.
       
   404 //! @SYMTestType				CIT
       
   405 
       
   406 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   407 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
   408 			SHARED_ACTIVE_SCHEDULER
       
   409 			CREATE_OBJECT	RSdpDatabase	database	
       
   410 			CREATE_OBJECT	RSdp	rsdp	
       
   411 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
   412 			COMMAND		attrValueInt	NewIntL		BTSDP-Database-PublicApi-Passive-3665-0001command2NewIntL
       
   413 			COMMAND		rsdp	Constructor
       
   414 			COMMAND		rsdp	Connect
       
   415 			OUTSTANDING
       
   416 			COMMAND		database	Constructor
       
   417 			COMMAND		database	Open		BTSDP-Database-PublicApi-Passive-3665-0001command8Open
       
   418 			COMMAND		database	CreateServiceRecordL		BTSDP-Database-PublicApi-Passive-3665-0001command9CreateServiceRecordL
       
   419 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3665-0001command10UpdateAttributeL
       
   420 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3665-0001command11UpdateAttributeL
       
   421 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3665-0001command12UpdateAttributeL
       
   422 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3665-0001command13UpdateAttributeL
       
   423 			COMMAND		attrValueInt	NewIntL		BTSDP-Database-PublicApi-Passive-3665-0001command15NewIntL
       
   424 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3665-0001command17UpdateAttributeL
       
   425 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3665-0001command18UpdateAttributeL
       
   426 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3665-0001command19UpdateAttributeL
       
   427 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3665-0001command20UpdateAttributeL
       
   428 			COMMAND		database	DeleteAttributeL		BTSDP-Database-PublicApi-Passive-3665-0001command21DeleteAttributeL
       
   429 			COMMAND		database	DeleteAttributeL		BTSDP-Database-PublicApi-Passive-3665-0001command22DeleteAttributeL
       
   430 			COMMAND		database	DeleteAttributeL		BTSDP-Database-PublicApi-Passive-3665-0001command23DeleteAttributeL
       
   431 			COMMAND		database	DeleteAttributeL		BTSDP-Database-PublicApi-Passive-3665-0001command24DeleteAttributeL
       
   432 			COMMAND		database	DeleteAttributeL		BTSDP-Database-PublicApi-Passive-3665-0001command25DeleteAttributeL
       
   433 			COMMAND		database	DeleteAttributeL		BTSDP-Database-PublicApi-Passive-3665-0001command26DeleteAttributeL
       
   434 			STORE	database	
       
   435 			STORE	rsdp	
       
   436 			STORE_ACTIVE_SCHEDULER
       
   437 	END_TEST_BLOCK
       
   438 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   439 
       
   440 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   441 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   442 
       
   443 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
   444 			SHARED_ACTIVE_SCHEDULER
       
   445 			RESTORE_OBJECT	RSdpDatabase	database	
       
   446 			RESTORE_OBJECT	RSdp	rsdp	
       
   447 			COMMAND		database	DeleteRecordL
       
   448 			COMMAND		database	Close
       
   449 			COMMAND		rsdp	Close
       
   450 	END_TEST_BLOCK
       
   451 
       
   452 END_TESTCASE   BTSDP-Database-PublicApi-Passive-Master-3665
       
   453 
       
   454 START_TESTCASE BTSDP-Database-PublicApi-Passive-Master-3666
       
   455 //! @SYMTestCaseID				BTSDP-Database-PublicApi-Passive-Master-3666
       
   456 //! @SYMAPI						RSdpDatabase
       
   457 //!
       
   458 //! @SYMTestCaseDesc			Updated a service record attribute with different type of objects : CSdpAttrValueInt, CSdpAttrValueBoolean and CSdpAttrValueString,
       
   459 //!								and prepare, set up the service record for the master device to retrieve
       
   460 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
   461 //!													Constructor(), Connect(), Close() from RSdp
       
   462 //!													NewIntL() from CSdpAttrValueInt
       
   463 //!													NewBoolL() from CSdpAttrValueBoolean
       
   464 //!													NewStringL() from CSdpAttrValueString												
       
   465 //! @SYMTestActions				1. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
   466 //!								2. Allocate and construct a new CSdpAttrValueBoolean object using NewBoolL() function and return KErrNone if successed.
       
   467 //!								3. Allocate and construct a new CSdpAttrValueString object using NewStringL() function and return KErrNone if successed.
       
   468 //!								4. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
   469 //!								5. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
   470 //!								6. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
   471 //!								7. Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
   472 //!								8. Read an input service record UUID from test data if successful.
       
   473 //!								9. Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed.
       
   474 //!								10.Read an input attribute ID from test data if successful.
       
   475 //!								11.Read the CSdpAttrValueInt object from test data if successful.
       
   476 //!								12.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed.
       
   477 //!								13.Read an input attribute ID from test data if successful.
       
   478 //!								14.Read the CSdpAttrValueBoolean object from test data if successful.
       
   479 //!								15.Updates a service record attribute with a value encapsulated in a CSdpAttrValueBoolean using UpdateAttributeL() function and return KErrNone if successed.
       
   480 //!								16.Read an input attribute ID from test data if successful.
       
   481 //!								17.Read the CSdpAttrValueString object from test data if successful.
       
   482 //!								18.Updates a service record attribute with a value encapsulated in a CSdpAttrValueString using UpdateAttributeL() function and return KErrNone if successed.
       
   483 //!								19.Deletes the service records using DeleteRecordL() function and return KErrNone if successed.
       
   484 //!								20.Close the SDP database subsession using Close() function.
       
   485 //!								21.Close the client process using Close() function.
       
   486 //! @SYMTestStatus				Implemented
       
   487 //! @SYMTestPriority			Critical
       
   488 //! @SYMTestExpectedResults  	Updated a service record attribute with different type of object: CSdpAttrValueInt, CSdpAttrValueBoolean and CSdpAttrValueString successfully.
       
   489 //! @SYMTestType				CIT
       
   490 
       
   491 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   492 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
   493 			SHARED_ACTIVE_SCHEDULER
       
   494 			CREATE_OBJECT	RSdpDatabase	database	
       
   495 			CREATE_OBJECT	RSdp	rsdp	
       
   496 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
   497 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBoolean	
       
   498 			CREATE_OBJECT	CSdpAttrValueString	attrValueString	
       
   499 			COMMAND		attrValueInt	NewIntL		BTSDP-Database-PublicApi-Passive-3666-0001command2NewIntL
       
   500 			COMMAND		attrValueBoolean	NewBoolL		BTSDP-Database-PublicApi-Passive-3666-0001command4NewBoolL
       
   501 			COMMAND		attrValueString	NewStringL		BTSDP-Database-PublicApi-Passive-3666-0001command6NewStringL
       
   502 			COMMAND		rsdp	Constructor
       
   503 			COMMAND		rsdp	Connect
       
   504 			OUTSTANDING
       
   505 			COMMAND		database	Constructor
       
   506 			COMMAND		database	Open		BTSDP-Database-PublicApi-Passive-3666-0001command12Open
       
   507 			COMMAND		database	CreateServiceRecordL		BTSDP-Database-PublicApi-Passive-3666-0001command13CreateServiceRecordL
       
   508 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3666-0001command14UpdateAttributeL
       
   509 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3666-0001command15UpdateAttributeL
       
   510 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3666-0001command16UpdateAttributeL
       
   511 			STORE	database	
       
   512 			STORE	rsdp	
       
   513 			STORE_ACTIVE_SCHEDULER
       
   514 	END_TEST_BLOCK
       
   515 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   516 
       
   517 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   518 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   519 
       
   520 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
   521 			SHARED_ACTIVE_SCHEDULER
       
   522 			RESTORE_OBJECT	RSdpDatabase	database	
       
   523 			RESTORE_OBJECT	RSdp	rsdp	
       
   524 			COMMAND		database	DeleteRecordL
       
   525 			COMMAND		database	Close
       
   526 			COMMAND		rsdp	Close
       
   527 	END_TEST_BLOCK
       
   528 
       
   529 END_TESTCASE   BTSDP-Database-PublicApi-Passive-Master-3666
       
   530 
       
   531 START_TESTCASE BTSDP-Database-PublicApi-Passive-Master-3667
       
   532 //! @SYMTestCaseID				BTSDP-Database-PublicApi-Passive-Master-3667
       
   533 //! @SYMAPI						RSdpDatabase
       
   534 //!
       
   535 //! @SYMTestCaseDesc			Updated a service record attribute with different type of objects : CSdpAttrValueInt, CSdpAttrValueBoolean and CSdpAttrValueString,
       
   536 //!								then Updated the service record attribute again with new type of values,
       
   537 //!								and prepare, set up the service record for the master device to retrieve
       
   538 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
   539 //!													Constructor(), Connect(), Close() from RSdp
       
   540 //!													NewIntL() from CSdpAttrValueInt
       
   541 //!													NewBoolL() from CSdpAttrValueBoolean
       
   542 //!													NewStringL() from CSdpAttrValueString												
       
   543 //! @SYMTestActions				1. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
   544 //!								2. Allocate and construct a new CSdpAttrValueBoolean object using NewBoolL() function and return KErrNone if successed.
       
   545 //!								3. Allocate and construct a new CSdpAttrValueString object using NewStringL() function and return KErrNone if successed.
       
   546 //!								4. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
   547 //!								5. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
   548 //!								6. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
   549 //!								7. Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
   550 //!								8. Read an input service record UUID from test data if successful.
       
   551 //!								9. Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed.
       
   552 //!								10.Read an input attribute ID from test data if successful.
       
   553 //!								11.Read the CSdpAttrValueInt object from test data if successful.
       
   554 //!								12.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed.
       
   555 //!								13.Read an input attribute ID from test data if successful.
       
   556 //!								14.Read the CSdpAttrValueBoolean object from test data if successful.
       
   557 //!								15.Updates a service record attribute with a value encapsulated in a CSdpAttrValueBoolean using UpdateAttributeL() function and return KErrNone if successed.
       
   558 //!								16.Read an input attribute ID from test data if successful.
       
   559 //!								17.Read the CSdpAttrValueString object from test data if successful.
       
   560 //!								18.Updates a service record attribute with a value encapsulated in a CSdpAttrValueString using UpdateAttributeL() function and return KErrNone if successed.
       
   561 //!								19.Re-Allocate and construct a new CSdpAttrValueInt object again using NewIntL() function and return KErrNone if successed.
       
   562 //!								20.Re-Allocate and construct a new CSdpAttrValueBoolean object again using NewBoolL() function and return KErrNone if successed.
       
   563 //!								21.Re-Allocate and construct a new CSdpAttrValueString object again using NewStringL() function and return KErrNone if successed.
       
   564 //!								22.Read an input attribute ID from test data if successful.
       
   565 //!								23.Read the CSdpAttrValueInt object from test data if successful.
       
   566 //!								24.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed.
       
   567 //!								25.Read an input attribute ID from test data if successful.
       
   568 //!								26.Read the CSdpAttrValueBoolean object from test data if successful.
       
   569 //!								27.Updates a service record attribute with a value encapsulated in a CSdpAttrValueBoolean using UpdateAttributeL() function and return KErrNone if successed.
       
   570 //!								28.Read an input attribute ID from test data if successful.
       
   571 //!								29.Read the CSdpAttrValueString object from test data if successful.
       
   572 //!								30.Updates a service record attribute with a value encapsulated in a CSdpAttrValueString using UpdateAttributeL() function and return KErrNone if successed.
       
   573 //!								31.Deletes the service records using DeleteRecordL() function and return KErrNone if successed.
       
   574 //!								32.Close the SDP database subsession using Close() function.
       
   575 //!								33.Close the client process using Close() function.
       
   576 //! @SYMTestStatus				Implemented
       
   577 //! @SYMTestPriority			Critical
       
   578 //! @SYMTestExpectedResults  	Updated a service record attribute with different type of object: CSdpAttrValueInt, CSdpAttrValueBoolean and CSdpAttrValueString,
       
   579 //! 							then re-create the CSdpAttrValueInt, CSdpAttrValueBoolean and CSdpAttrValueString again and update them to serive record attribute successfully.
       
   580 //! @SYMTestType				CIT
       
   581 
       
   582 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   583 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
   584 			SHARED_ACTIVE_SCHEDULER
       
   585 			CREATE_OBJECT	RSdpDatabase	database	
       
   586 			CREATE_OBJECT	RSdp	rsdp	
       
   587 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
   588 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBoolean	
       
   589 			CREATE_OBJECT	CSdpAttrValueString	attrValueString	
       
   590 			COMMAND		attrValueInt	NewIntL		BTSDP-Database-PublicApi-Passive-3667-0001command2NewIntL
       
   591 			COMMAND		attrValueBoolean	NewBoolL		BTSDP-Database-PublicApi-Passive-3667-0001command4NewBoolL
       
   592 			COMMAND		attrValueString	NewStringL		BTSDP-Database-PublicApi-Passive-3667-0001command6NewStringL
       
   593 			COMMAND		rsdp	Constructor
       
   594 			COMMAND		rsdp	Connect
       
   595 			OUTSTANDING
       
   596 			COMMAND		database	Constructor
       
   597 			COMMAND		database	Open		BTSDP-Database-PublicApi-Passive-3667-0001command12Open
       
   598 			COMMAND		database	CreateServiceRecordL		BTSDP-Database-PublicApi-Passive-3667-0001command13CreateServiceRecordL
       
   599 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3667-0001command14UpdateAttributeL
       
   600 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3667-0001command15UpdateAttributeL
       
   601 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3667-0001command16UpdateAttributeL
       
   602 			COMMAND		attrValueInt	NewIntL		BTSDP-Database-PublicApi-Passive-3667-0001command18NewIntL
       
   603 			COMMAND		attrValueBoolean	NewBoolL		BTSDP-Database-PublicApi-Passive-3667-0001command20NewBoolL
       
   604 			COMMAND		attrValueString	NewStringL		BTSDP-Database-PublicApi-Passive-3667-0001command22NewStringL
       
   605 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3667-0001command24UpdateAttributeL
       
   606 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3667-0001command25UpdateAttributeL
       
   607 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3667-0001command26UpdateAttributeL
       
   608 			STORE	database	
       
   609 			STORE	rsdp	
       
   610 			STORE_ACTIVE_SCHEDULER
       
   611 	END_TEST_BLOCK
       
   612 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   613 
       
   614 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   615 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   616 
       
   617 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
   618 			SHARED_ACTIVE_SCHEDULER
       
   619 			RESTORE_OBJECT	RSdpDatabase	database	
       
   620 			RESTORE_OBJECT	RSdp	rsdp	
       
   621 			COMMAND		database	DeleteRecordL
       
   622 			COMMAND		database	Close
       
   623 			COMMAND		rsdp	Close
       
   624 	END_TEST_BLOCK
       
   625 
       
   626 END_TESTCASE   BTSDP-Database-PublicApi-Passive-Master-3667
       
   627 
       
   628 START_TESTCASE BTSDP-Database-PublicApi-Passive-Master-3668
       
   629 //! @SYMTestCaseID				BTSDP-Database-PublicApi-Passive-Master-3668
       
   630 //! @SYMAPI						RSdpDatabase
       
   631 //!
       
   632 //! @SYMTestCaseDesc			Updated a service record attribute with different type of objects : DesC8, Desc16, integer, CSdpAttrValueInt, CSdpAttrValueBoolean and CSdpAttrValueString,
       
   633 //!								then Updated the service record attribute again with new type of values,
       
   634 //!								and prepare, set up the service record for the master device to retrieve
       
   635 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
   636 //!													Constructor(), Connect(), Close() from RSdp
       
   637 //!													NewIntL() from CSdpAttrValueInt
       
   638 //!													NewBoolL() from CSdpAttrValueBoolean
       
   639 //!													NewStringL() from CSdpAttrValueString
       
   640 //!													NewDESL(), StartListL(), EndListL(), BuildUUIDL() from CSdpAttrValueDES															
       
   641 //! @SYMTestActions				1. Allocate and construct a new CSdpAttrValueDES object using NewDESL() function and return KErrNone if successed.
       
   642 //!								2. Start to build a list of UUIDs using StartListL() function and return KErrNone if successed.
       
   643 //! 							3. Build multiple UUIDs using BuildUUIDL() and return KErrNone if successed.
       
   644 //!								4. Stop to build a list of UUIDs using EndListL() and return KErrNone if successed. 
       
   645 //!								5. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
   646 //!								6. Allocate and construct a new CSdpAttrValueBoolean object using NewBoolL() function and return KErrNone if successed.
       
   647 //!								7. Allocate and construct a new CSdpAttrValueString object using NewStringL() function and return KErrNone if successed.
       
   648 //!								8. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
   649 //!								9. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
   650 //!								10.Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
   651 //!								11.Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
   652 //!								12.Creates multiple new service records from CSdpAttrValueDES object UUID list using CreateServiceRecordL() function and return KErrNone if successed.
       
   653 //!								13.Repeate read Multiple input service record UUIDs from test data if successful.
       
   654 //!								14.Creates multiple new service records with the service record UUIDs using CreateServiceRecordL() function and return KErrNone if successed.
       
   655 //!								15.Read an input attribute ID from test data if successful.
       
   656 //!								16.Read the CSdpAttrValueInt object from test data if successful.
       
   657 //!								17.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed.
       
   658 //!								18.Read an input attribute ID from test data if successful.
       
   659 //!								19.Read the CSdpAttrValueBoolean object from test data if successful.
       
   660 //!								20.Updates a service record attribute with a value encapsulated in a CSdpAttrValueBoolean using UpdateAttributeL() function and return KErrNone if successed.
       
   661 //!								21.Read an input attribute ID from test data if successful.
       
   662 //!								22.Read the CSdpAttrValueString object from test data if successful.
       
   663 //!								23.Updates a service record attribute with a value encapsulated in a CSdpAttrValueString using UpdateAttributeL() function and return KErrNone if successed.
       
   664 //!								24.Re-Allocate and construct a new CSdpAttrValueInt object again using NewIntL() function and return KErrNone if successed.
       
   665 //!								25.Re-Allocate and construct a new CSdpAttrValueBoolean object again using NewBoolL() function and return KErrNone if successed.
       
   666 //!								26.Re-Allocate and construct a new CSdpAttrValueString object again using NewStringL() function and return KErrNone if successed.
       
   667 //!								27.Read an input attribute ID from test data if successful.
       
   668 //!								28.Read the CSdpAttrValueInt object from test data if successful.
       
   669 //!								29.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed.
       
   670 //!								30.Read an input attribute ID from test data if successful.
       
   671 //!								31.Read the CSdpAttrValueBoolean object from test data if successful.
       
   672 //!								32.Updates a service record attribute with a value encapsulated in a CSdpAttrValueBoolean using UpdateAttributeL() function and return KErrNone if successed.
       
   673 //!								33.Read an input attribute ID from test data if successful.
       
   674 //!								34.Read the CSdpAttrValueString object from test data if successful.
       
   675 //!								35.Updates a service record attribute with a value encapsulated in a CSdpAttrValueString using UpdateAttributeL() function and return KErrNone if successed.
       
   676 //!								36.Updates a service record attribute with a value of Desc16 using UpdateAttributeL() function and return KErrNone if successed.
       
   677 //!								37.Updates a service record attribute with a value of DesC8 using UpdateAttributeL() function and return KErrNone if successed.
       
   678 //!								38.Updates a service record attribute with a value of integer using UpdateAttributeL() function and return KErrNone if successed.
       
   679 //!								39.Delete multiple attributes from service record using DeleteAttributeL() function and return KErrNone if successed.
       
   680 //!								40.Deletes multiple service records using DeleteRecordL() function and return KErrNone if successed.
       
   681 //!								41.Close the SDP database subsession using Close() function.
       
   682 //!								42.Close the client process using Close() function.
       
   683 //! @SYMTestStatus				Implemented
       
   684 //! @SYMTestPriority			Critical
       
   685 //! @SYMTestExpectedResults  	Updated a service record attribute with different type of object: DesC8, Desc16, integer, CSdpAttrValueInt, CSdpAttrValueBoolean and CSdpAttrValueString,
       
   686 //! 							then re-create the desc8, desc16, integer, CSdpAttrValueInt, CSdpAttrValueBoolean and CSdpAttrValueString again and update them to serive record attribute successfully.
       
   687 //! @SYMTestType				CIT
       
   688 
       
   689 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   690 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
   691 			SHARED_ACTIVE_SCHEDULER
       
   692 			CREATE_OBJECT	RSdpDatabase	database	
       
   693 			CREATE_OBJECT	RSdp	rsdp	
       
   694 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
   695 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
   696 			CREATE_OBJECT	CSdpAttrValueBoolean	attrValueBoolean	
       
   697 			CREATE_OBJECT	CSdpAttrValueString	attrValueString	
       
   698 			COMMAND		attrValueDES	NewDESL
       
   699 			COMMAND		attrValueDES	StartListL
       
   700 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-Database-PublicApi-Passive-3668-0001command4BuildUUIDL
       
   701 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-Database-PublicApi-Passive-3668-0001command5BuildUUIDL
       
   702 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-Database-PublicApi-Passive-3668-0001command6BuildUUIDL
       
   703 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-Database-PublicApi-Passive-3668-0001command7BuildUUIDL
       
   704 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-Database-PublicApi-Passive-3668-0001command8BuildUUIDL
       
   705 			COMMAND		attrValueDES	EndListL
       
   706 			COMMAND		attrValueInt	NewIntL		BTSDP-Database-PublicApi-Passive-3668-0001command11NewIntL
       
   707 			COMMAND		attrValueBoolean	NewBoolL		BTSDP-Database-PublicApi-Passive-3668-0001command13NewBoolL
       
   708 			COMMAND		attrValueString	NewStringL		BTSDP-Database-PublicApi-Passive-3668-0001command15NewStringL
       
   709 			COMMAND		rsdp	Constructor
       
   710 			COMMAND		rsdp	Connect
       
   711 			OUTSTANDING
       
   712 			COMMAND		database	Constructor
       
   713 			COMMAND		database	Open		BTSDP-Database-PublicApi-Passive-3668-0001command21Open
       
   714 			COMMAND		database	CreateServiceRecordL		BTSDP-Database-PublicApi-Passive-3668-0001command22CreateServiceRecordL
       
   715 			COMMAND		database	CreateServiceRecordL		BTSDP-Database-PublicApi-Passive-3668-0001command23CreateServiceRecordL
       
   716 			COMMAND		database	CreateServiceRecordL		BTSDP-Database-PublicApi-Passive-3668-0001command24CreateServiceRecordL
       
   717 			COMMAND		database	CreateServiceRecordL		BTSDP-Database-PublicApi-Passive-3668-0001command25CreateServiceRecordL
       
   718 			COMMAND		database	CreateServiceRecordL		BTSDP-Database-PublicApi-Passive-3668-0001command26CreateServiceRecordL
       
   719 			COMMAND		database	CreateServiceRecordL		BTSDP-Database-PublicApi-Passive-3668-0001command27CreateServiceRecordL
       
   720 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3668-0001command28UpdateAttributeL
       
   721 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3668-0001command29UpdateAttributeL
       
   722 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3668-0001command30UpdateAttributeL
       
   723 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3668-0001command31UpdateAttributeL
       
   724 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3668-0001command32UpdateAttributeL
       
   725 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3668-0001command33UpdateAttributeL
       
   726 			COMMAND		attrValueInt	NewIntL		BTSDP-Database-PublicApi-Passive-3668-0001command35NewIntL
       
   727 			COMMAND		attrValueBoolean	NewBoolL		BTSDP-Database-PublicApi-Passive-3668-0001command37NewBoolL
       
   728 			COMMAND		attrValueString	NewStringL		BTSDP-Database-PublicApi-Passive-3668-0001command39NewStringL
       
   729 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3668-0001command41UpdateAttributeL
       
   730 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3668-0001command42UpdateAttributeL
       
   731 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3668-0001command43UpdateAttributeL
       
   732 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3668-0001command44UpdateAttributeL
       
   733 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3668-0001command45UpdateAttributeL
       
   734 			COMMAND		database	UpdateAttributeL		BTSDP-Database-PublicApi-Passive-3668-0001command46UpdateAttributeL
       
   735 			COMMAND		database	DeleteAttributeL		BTSDP-Database-PublicApi-Passive-3668-0001command47DeleteAttributeL
       
   736 			COMMAND		database	DeleteAttributeL		BTSDP-Database-PublicApi-Passive-3668-0001command48DeleteAttributeL
       
   737 			COMMAND		database	DeleteAttributeL		BTSDP-Database-PublicApi-Passive-3668-0001command49DeleteAttributeL
       
   738 			COMMAND		database	DeleteAttributeL		BTSDP-Database-PublicApi-Passive-3668-0001command50DeleteAttributeL
       
   739 			COMMAND		database	DeleteAttributeL		BTSDP-Database-PublicApi-Passive-3668-0001command51DeleteAttributeL
       
   740 			COMMAND		database	DeleteAttributeL		BTSDP-Database-PublicApi-Passive-3668-0001command52DeleteAttributeL
       
   741 			STORE	database	
       
   742 			STORE	rsdp	
       
   743 			STORE_ACTIVE_SCHEDULER
       
   744 	END_TEST_BLOCK
       
   745 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   746 
       
   747 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   748 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   749 
       
   750 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
   751 			SHARED_ACTIVE_SCHEDULER
       
   752 			RESTORE_OBJECT	RSdpDatabase	database	
       
   753 			RESTORE_OBJECT	RSdp	rsdp	
       
   754 			COMMAND		database	DeleteRecordL
       
   755 			COMMAND		database	DeleteRecordL
       
   756 			COMMAND		database	DeleteRecordL
       
   757 			COMMAND		database	DeleteRecordL
       
   758 			COMMAND		database	DeleteRecordL
       
   759 			COMMAND		database	DeleteRecordL
       
   760 			COMMAND		database	Close
       
   761 			COMMAND		rsdp	Close
       
   762 	END_TEST_BLOCK
       
   763 
       
   764 END_TESTCASE   BTSDP-Database-PublicApi-Passive-Master-3668
       
   765 
       
   766 
       
   767 // ****************************************************************************
       
   768 // RSdp Tests
       
   769 // ****************************************************************************
       
   770 
       
   771 START_TESTCASE BTSDP-Rsdp-PublicApi-Passive-Master-3761
       
   772 //! @SYMTestCaseID				BTSDP-Rsdp-PublicApi-Passive-Master-3761
       
   773 //! @SYMAPI						RSdp
       
   774 //!
       
   775 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve, then check the number of open subsessions on the database.
       
   776 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
   777 //!													Constructor(), Connect(), Close(), ResourceCountMarkStart(), ResourceCountMarkEnd(), ResourceCount() from RSdp
       
   778 //!													NewIntL() from CSdpAttrValueInt
       
   779 //! @SYMTestActions				1. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
   780 //!								2. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
   781 //!								3. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
   782 //!								4. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
   783 //!								5. Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
   784 //!								6. Read an input service record UUID from test data if successful.
       
   785 //!								7. Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed.
       
   786 //!								8. Read an input attribute ID from test data if successful.
       
   787 //!								9. Read the CSdpAttrValueInt object from test data if successful.
       
   788 //!								10.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed.
       
   789 //!								11.Open multiple SDP database subsessions using Open() function and return KErrNone if successed.
       
   790 //!								12.Start the counter to keep track of how many open subsessions and return KErrNone if successed.
       
   791 //!								13.Get the number of open subsessions are on the database.
       
   792 //!								14.Function passes if the number of open subsessions are same as expected number.
       
   793 //!								15.Deletes the service records using DeleteRecordL() function and return KErrNone if successed.
       
   794 //!								16.Close the SDP database subsession using Close() function.
       
   795 //!								17.Close the client process using Close() function.  
       
   796 //! @SYMTestStatus				Implemented
       
   797 //! @SYMTestPriority			Medium
       
   798 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   799 //!								Get the number of open subsessions on the database are same as expected number. 
       
   800 //! @SYMTestType				CIT
       
   801 
       
   802 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   803 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
   804 			SHARED_ACTIVE_SCHEDULER
       
   805 			CREATE_OBJECT	RSdpDatabase	database	
       
   806 			CREATE_OBJECT	RSdp	rsdp	
       
   807 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
   808 			COMMAND		attrValueInt	NewIntL		BTSDP-Rsdp-PublicApi-Passive-3761-0001command2NewIntL
       
   809 			COMMAND		rsdp	Constructor
       
   810 			COMMAND		rsdp	Connect
       
   811 			OUTSTANDING
       
   812 			COMMAND		database	Constructor
       
   813 			COMMAND		database	Open		BTSDP-Rsdp-PublicApi-Passive-3761-0001command8Open
       
   814 			COMMAND		database	CreateServiceRecordL		BTSDP-Rsdp-PublicApi-Passive-3761-0001command9CreateServiceRecordL
       
   815 			COMMAND		database	UpdateAttributeL		BTSDP-Rsdp-PublicApi-Passive-3761-0001command10UpdateAttributeL
       
   816 			COMMAND		attrValueInt	NewIntL		BTSDP-Rsdp-PublicApi-Passive-3761-0001command12NewIntL
       
   817 			COMMAND		database	UpdateAttributeL		BTSDP-Rsdp-PublicApi-Passive-3761-0001command14UpdateAttributeL
       
   818 			COMMAND		database	Open		BTSDP-Rsdp-PublicApi-Passive-3761-0001command15Open
       
   819 			COMMAND		database	Open		BTSDP-Rsdp-PublicApi-Passive-3761-0001command16Open
       
   820 			COMMAND		database	Open		BTSDP-Rsdp-PublicApi-Passive-3761-0001command17Open
       
   821 			COMMAND		rsdp	ResourceCountMarkStart
       
   822 			COMMAND		rsdp	ResourceCount		BTSDP-Rsdp-PublicApi-Passive-3761-0001command20ResourceCount
       
   823 			COMMAND		rsdp	ResourceCountMarkEnd
       
   824 			STORE	database	
       
   825 			STORE	rsdp	
       
   826 			STORE_ACTIVE_SCHEDULER
       
   827 	END_TEST_BLOCK
       
   828 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   829 
       
   830 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   831 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   832 
       
   833 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
   834 			SHARED_ACTIVE_SCHEDULER
       
   835 			RESTORE_OBJECT	RSdpDatabase	database	
       
   836 			RESTORE_OBJECT	RSdp	rsdp	
       
   837 			COMMAND		database	DeleteRecordL
       
   838 			COMMAND		database	Close
       
   839 			COMMAND		rsdp	Close
       
   840 	END_TEST_BLOCK
       
   841 END_TESTCASE   BTSDP-Rsdp-PublicApi-Passive-Master-3761
       
   842 
       
   843 
       
   844 START_TESTCASE BTSDP-Rsdp-PublicApi-Passive-Master-3762
       
   845 //! @SYMTestCaseID				BTSDP-Rsdp-PublicApi-Passive-Master-3762
       
   846 //! @SYMAPI						Rsdp
       
   847 //!						
       
   848 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve, then check check the version of the database server name, version number on the database.
       
   849 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
   850 //!													Constructor(), Connect(), Close(), Version() from RSdp
       
   851 //!													NewIntL() from CSdpAttrValueInt												
       
   852 //! @SYMTestActions				1. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
   853 //!								2. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
   854 //!								3. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
   855 //!								4. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
   856 //!								5. Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
   857 //!								6. Read Multiple input service record UUIDs from test data if successful.
       
   858 //!								7. Creates multiple new service records with the service record UUIDs using CreateServiceRecordL() function and return KErrNone if successed.
       
   859 //!								8. Read an input attribute ID from test data if successful.
       
   860 //!								9. Read the CSdpAttrValueInt object from test data if successful.
       
   861 //!								10.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed.
       
   862 //!								11.Re-Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
   863 //!								12.Update a service record attribute again with a new value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed.
       
   864 //!								13.Get the version of the database server name, version number and return KErrNone if successed. 
       
   865 //!								14.Function passes if the version name and version number of the database server are same as expected.
       
   866 //!								15.Deletes the service records using DeleteRecordL() function and return KErrNone if successed.
       
   867 //!								16.Close the SDP database subsession using Close() function.
       
   868 //!								17.Close the client process using Close() function. 
       
   869 //! @SYMTestStatus				Implemented
       
   870 //! @SYMTestPriority			Medium
       
   871 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   872 //!								Get the version of the database server name, version number on the database are same as expected.
       
   873 //! @SYMTestType				CIT
       
   874 
       
   875 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   876 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
   877 			SHARED_ACTIVE_SCHEDULER
       
   878 			CREATE_OBJECT	RSdpDatabase	database	
       
   879 			CREATE_OBJECT	RSdp	rsdp	
       
   880 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
   881 			COMMAND		attrValueInt	NewIntL		BTSDP-Rsdp-PublicApi-Passive-3762-0001command2NewIntL
       
   882 			COMMAND		rsdp	Constructor
       
   883 			COMMAND		rsdp	Connect
       
   884 			OUTSTANDING
       
   885 			COMMAND		database	Constructor
       
   886 			COMMAND		database	Open		BTSDP-Rsdp-PublicApi-Passive-3762-0001command8Open
       
   887 			COMMAND		database	CreateServiceRecordL		BTSDP-Rsdp-PublicApi-Passive-3762-0001command9CreateServiceRecordL
       
   888 			COMMAND		database	CreateServiceRecordL		BTSDP-Rsdp-PublicApi-Passive-3762-0001command10CreateServiceRecordL
       
   889 			COMMAND		database	CreateServiceRecordL		BTSDP-Rsdp-PublicApi-Passive-3762-0001command11CreateServiceRecordL
       
   890 			COMMAND		database	CreateServiceRecordL		BTSDP-Rsdp-PublicApi-Passive-3762-0001command12CreateServiceRecordL
       
   891 			COMMAND		database	CreateServiceRecordL		BTSDP-Rsdp-PublicApi-Passive-3762-0001command13CreateServiceRecordL
       
   892 			COMMAND		database	UpdateAttributeL		BTSDP-Rsdp-PublicApi-Passive-3762-0001command14UpdateAttributeL
       
   893 			COMMAND		attrValueInt	NewIntL		BTSDP-Rsdp-PublicApi-Passive-3762-0001command16NewIntL
       
   894 			COMMAND		database	UpdateAttributeL		BTSDP-Rsdp-PublicApi-Passive-3762-0001command18UpdateAttributeL
       
   895 			COMMAND		rsdp	Version		BTSDP-Rsdp-PublicApi-Passive-3762-0001command20Version
       
   896 			STORE	database	
       
   897 			STORE	rsdp	
       
   898 			STORE_ACTIVE_SCHEDULER
       
   899 	END_TEST_BLOCK
       
   900 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   901 
       
   902 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   903 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   904 
       
   905 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
   906 			SHARED_ACTIVE_SCHEDULER
       
   907 			RESTORE_OBJECT	RSdpDatabase	database	
       
   908 			RESTORE_OBJECT	RSdp	rsdp	
       
   909 			COMMAND		database	DeleteRecordL
       
   910 			COMMAND		database	DeleteRecordL
       
   911 			COMMAND		database	DeleteRecordL
       
   912 			COMMAND		database	DeleteRecordL
       
   913 			COMMAND		database	DeleteRecordL
       
   914 			COMMAND		database	Close
       
   915 			COMMAND		rsdp	Close
       
   916 	END_TEST_BLOCK
       
   917 
       
   918 END_TESTCASE   BTSDP-Rsdp-PublicApi-Passive-Master-3762
       
   919 
       
   920 START_TESTCASE BTSDP-Rsdp-PublicApi-Passive-Master-3763
       
   921 //! @SYMTestCaseID				BTSDP-Rsdp-PublicApi-Passive-Master-3763
       
   922 //! @SYMAPI						Rsdp
       
   923 //!						
       
   924 //! @SYMTestCaseDesc			Prepare and set up the service record for the master device to retrieve, then check the number of open subsessions on the database and
       
   925 //!								check the version of the database server name, version number on the database
       
   926 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
   927 //!													Constructor(), Connect(), Close(), ResourceCountMarkStart(), ResourceCountMarkEnd(), ResourceCount() from RSdp
       
   928 //!													NewIntL() from CSdpAttrValueInt
       
   929 //! @SYMTestActions				1. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
   930 //!								2. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
   931 //!								3. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
   932 //!								4. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
   933 //!								5. Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
   934 //!								6. Read an input service record UUID from test data if successful.
       
   935 //!								7. Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed.
       
   936 //!								8. Read an input attribute ID from test data if successful.
       
   937 //!								9. Read the CSdpAttrValueInt object from test data if successful.
       
   938 //!								10.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed.
       
   939 //!								11.Open multiple SDP database subsessions using Open() function and return KErrNone if successed.
       
   940 //!								12.Start the counter to keep track of how many open subsessions and return KErrNone if successed.
       
   941 //!								13.Get the number of open subsessions are on the database.
       
   942 //!								14.Function passes if the number of open subsessions are same as expected number.
       
   943 //!								15.Get the version of the database server name, version number and return KErrNone if successed. 
       
   944 //!								16.Function passes if the version name and version number of the database server are same as expected.
       
   945 //!								17.Deletes the service records using DeleteRecordL() function and return KErrNone if successed.
       
   946 //!								18.Close the SDP database subsession using Close() function.
       
   947 //!								19.Close the client process using Close() function. 
       
   948 //! @SYMTestStatus				Implemented
       
   949 //! @SYMTestPriority			Medium
       
   950 //! @SYMTestExpectedResults  	Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
   951 //!								Get the number of open subsessions on the database are same as expected number.
       
   952 //!								Get the version of the database server name, version number on the database are same as expected.
       
   953 //! @SYMTestType				CIT
       
   954 
       
   955 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   956 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
   957 			SHARED_ACTIVE_SCHEDULER
       
   958 			CREATE_OBJECT	RSdpDatabase	database	
       
   959 			CREATE_OBJECT	RSdp	rsdp	
       
   960 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
   961 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
   962 			COMMAND		attrValueDES	NewDESL
       
   963 			COMMAND		attrValueDES	StartListL
       
   964 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-Rsdp-PublicApi-Passive-3763-0001command4BuildUUIDL
       
   965 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-Rsdp-PublicApi-Passive-3763-0001command5BuildUUIDL
       
   966 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-Rsdp-PublicApi-Passive-3763-0001command6BuildUUIDL
       
   967 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-Rsdp-PublicApi-Passive-3763-0001command7BuildUUIDL
       
   968 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-Rsdp-PublicApi-Passive-3763-0001command8BuildUUIDL
       
   969 			COMMAND		attrValueDES	EndListL
       
   970 			COMMAND		attrValueInt	NewIntL		BTSDP-Rsdp-PublicApi-Passive-3763-0001command11NewIntL
       
   971 			COMMAND		rsdp	Constructor
       
   972 			COMMAND		rsdp	Connect
       
   973 			OUTSTANDING
       
   974 			COMMAND		database	Constructor
       
   975 			COMMAND		database	Open		BTSDP-Rsdp-PublicApi-Passive-3763-0001command17Open
       
   976 			COMMAND		database	CreateServiceRecordL		BTSDP-Rsdp-PublicApi-Passive-3763-0001command18CreateServiceRecordL
       
   977 			COMMAND		database	CreateServiceRecordL		BTSDP-Rsdp-PublicApi-Passive-3763-0001command19CreateServiceRecordL
       
   978 			COMMAND		database	UpdateAttributeL		BTSDP-Rsdp-PublicApi-Passive-3763-0001command20UpdateAttributeL
       
   979 			COMMAND		attrValueInt	NewIntL		BTSDP-Rsdp-PublicApi-Passive-3763-0001command22NewIntL
       
   980 			COMMAND		database	UpdateAttributeL		BTSDP-Rsdp-PublicApi-Passive-3763-0001command24UpdateAttributeL
       
   981 			COMMAND		database	Open		BTSDP-Rsdp-PublicApi-Passive-3763-0001command25Open
       
   982 			COMMAND		database	Open		BTSDP-Rsdp-PublicApi-Passive-3763-0001command26Open
       
   983 			COMMAND		database	Open		BTSDP-Rsdp-PublicApi-Passive-3763-0001command27Open
       
   984 			COMMAND		rsdp	ResourceCountMarkStart
       
   985 			COMMAND		rsdp	ResourceCount		BTSDP-Rsdp-PublicApi-Passive-3763-0001command30ResourceCount
       
   986 			COMMAND		rsdp	ResourceCountMarkEnd
       
   987 			COMMAND		rsdp	Version		BTSDP-Rsdp-PublicApi-Passive-3763-0001command32Version
       
   988 			STORE	database	
       
   989 			STORE	rsdp	
       
   990 			STORE_ACTIVE_SCHEDULER
       
   991 	END_TEST_BLOCK
       
   992 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   993 
       
   994 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   995 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   996 
       
   997 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
   998 			SHARED_ACTIVE_SCHEDULER
       
   999 			RESTORE_OBJECT	RSdpDatabase	database	
       
  1000 			RESTORE_OBJECT	RSdp	rsdp	
       
  1001 			COMMAND		database	DeleteRecordL
       
  1002 			COMMAND		database	DeleteRecordL
       
  1003 			COMMAND		database	Close
       
  1004 			COMMAND		rsdp	Close
       
  1005 	END_TEST_BLOCK
       
  1006 
       
  1007 END_TESTCASE   BTSDP-Rsdp-PublicApi-Passive-Master-3763
       
  1008 
       
  1009 
       
  1010 // ****************************************************************************
       
  1011 // CSdpAttrValueInt Tests
       
  1012 // ****************************************************************************
       
  1013 
       
  1014 START_TESTCASE BTSDP-AttrValInt-PublicApi-Passive-Master-3861
       
  1015 //! @SYMTestCaseID				BTSDP-AttrValInt-PublicApi-Passive-Master-3861
       
  1016 //! @SYMAPI						CSdpAttrValueInt
       
  1017 //!
       
  1018 //! @SYMTestCaseDesc			Updated a service record attribute with integer type of objects : CSdpAttrValueInt,
       
  1019 //!								then verify the integer object's data size, type, Integer value, data pointer descriptor,
       
  1020 //!								and check if the object can hold the Integer value,
       
  1021 //!								then prepare, set up the service record for the master device to retrieve
       
  1022 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
  1023 //!													Constructor(), Connect(), Close() from RSdp
       
  1024 //!													NewIntL(), DataSize(), Type(), Int(), DoesIntFit(), Des() from CSdpAttrValueInt												
       
  1025 //! @SYMTestActions				1. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
  1026 //!								2. Get the current size of CSdpAttrValueInt object using DataSize() function
       
  1027 //!								3. Read the expected size from test data and compare if actual size is as expected
       
  1028 //!								4. Test failed if sizes doesn't match.
       
  1029 //!								5. Verify the object type using Type() function. Test pass if expected type is ETypeInt.
       
  1030 //!								6. Test failed if type doesn't match.
       
  1031 //!								7. Verify the object signed integer value using Int() function. Test pass if expected signed integer value
       
  1032 //!									is same as actual signed integer value.
       
  1033 //!								8. Verify the object can be stored in an integer value using DoesIntFit() function.
       
  1034 //!								9. Test pass if object can be stored in an integer value and return ETrue as expected.
       
  1035 //!								10.Test failed if object can't be stored in an integer value and return EFalse.
       
  1036 //!								11.Use Des() function to retrieve CSdpAttrValueInt object's data pointer descriptor.
       
  1037 //!								12.Read an input integer from test data and compare it with the contents in data pointer descriptor
       
  1038 //!									and check if actual integer value is same as expected input integer value.
       
  1039 //!								13.Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  1040 //!								14.Connect a client process to the database using Connect() function and return KErrNone if successed.
       
  1041 //!								15.Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
  1042 //!								16.Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
  1043 //!								17.Read an input service record UUID from test data if successful.
       
  1044 //!								18.Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed.
       
  1045 //!								19.Read an input attribute ID from test data if successful.
       
  1046 //!								20.Read the CSdpAttrValueInt object from test data if successful.
       
  1047 //!								21.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed.
       
  1048 //!								22.Deconstructs CSdpAttrValueInt object.
       
  1049 //!								23.Deletes the service records using DeleteRecordL() function and return KErrNone if successed.
       
  1050 //!								24.Close the SDP database subsession using Close() function.
       
  1051 //!								25.Close the client process using Close() function.
       
  1052 //! @SYMTestStatus				Implemented
       
  1053 //! @SYMTestPriority			Low
       
  1054 //! @SYMTestExpectedResults  	Verify the integer object's data size, type, Integer value, data pointer descriptor,
       
  1055 //!								and check if the object can hold the Integer value,
       
  1056 //!								then updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1057 //! @SYMTestType				CIT
       
  1058 
       
  1059 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1060 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
  1061 			SHARED_ACTIVE_SCHEDULER
       
  1062 			CREATE_OBJECT	RSdpDatabase	database	
       
  1063 			CREATE_OBJECT	RSdp	rsdp	
       
  1064 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
  1065 			COMMAND		attrValueInt	NewIntL		BTSDP-AttrValInt-PublicApi-Passive-3861-0001command2NewIntL
       
  1066 			COMMAND		attrValueInt	DataSize		BTSDP-AttrValInt-PublicApi-Passive-3861-0001command3DataSize
       
  1067 			COMMAND		attrValueInt	Type		BTSDP-AttrValInt-PublicApi-Passive-3861-0001command4Type
       
  1068 			COMMAND		attrValueInt	Int		BTSDP-AttrValInt-PublicApi-Passive-3861-0001command5Int
       
  1069 			COMMAND		attrValueInt	DoesIntFit		BTSDP-AttrValInt-PublicApi-Passive-3861-0001command6DoesIntFit
       
  1070 			COMMAND		attrValueInt	Des		BTSDP-AttrValInt-PublicApi-Passive-3861-0001command7Des
       
  1071 			COMMAND		rsdp	Constructor
       
  1072 			COMMAND		rsdp	Connect
       
  1073 			OUTSTANDING
       
  1074 			COMMAND		database	Constructor
       
  1075 			COMMAND		database	Open		BTSDP-AttrValInt-PublicApi-Passive-3861-0001command13Open
       
  1076 			COMMAND		database	CreateServiceRecordL		BTSDP-AttrValInt-PublicApi-Passive-3861-0001command14CreateServiceRecordL
       
  1077 			COMMAND		database	UpdateAttributeL		BTSDP-AttrValInt-PublicApi-Passive-3861-0001command15UpdateAttributeL
       
  1078 			COMMAND		attrValueInt	~
       
  1079 			STORE	database	
       
  1080 			STORE	rsdp	
       
  1081 			STORE_ACTIVE_SCHEDULER
       
  1082 	END_TEST_BLOCK
       
  1083 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1084 
       
  1085 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1086 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1087 
       
  1088 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
  1089 			SHARED_ACTIVE_SCHEDULER
       
  1090 			RESTORE_OBJECT	RSdpDatabase	database	
       
  1091 			RESTORE_OBJECT	RSdp	rsdp	
       
  1092 			COMMAND		database	DeleteRecordL
       
  1093 			COMMAND		database	Close
       
  1094 			COMMAND		rsdp	Close
       
  1095 	END_TEST_BLOCK
       
  1096 END_TESTCASE   BTSDP-AttrValInt-PublicApi-Passive-Master-3861
       
  1097 
       
  1098 
       
  1099 START_TESTCASE BTSDP-AttrValInt-PublicApi-Passive-Master-3862
       
  1100 //! @SYMTestCaseID				BTSDP-AttrValInt-PublicApi-Passive-Master-3862
       
  1101 //! @SYMAPI						CSdpAttrValueInt
       
  1102 //!
       
  1103 //! @SYMTestCaseDesc			Updated a service record attribute with 32 bits of integer type of objects : CSdpAttrValueInt,
       
  1104 //!								then verify the integer object's data size, type, Integer value, data pointer descriptor,
       
  1105 //!								and check if the object can hold the Integer value,
       
  1106 //!								then prepare, set up the service record for the master device to retrieve
       
  1107 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
  1108 //!													Constructor(), Connect(), Close() from RSdp
       
  1109 //!													NewIntL(), DataSize(), Type(), Int(), DoesIntFit(), Des() from CSdpAttrValueInt												
       
  1110 //! @SYMTestActions				1. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
  1111 //!								2. Get the current size of CSdpAttrValueInt object using DataSize() function
       
  1112 //!								3. Read the expected size from test data and compare if actual size is as expected
       
  1113 //!								4. Test failed if sizes doesn't match.
       
  1114 //!								5. Verify the object type using Type() function. Test pass if expected type is ETypeInt.
       
  1115 //!								6. Test failed if type doesn't match.
       
  1116 //!								7. Verify the object signed integer value using Int() function. Test pass if expected signed integer value
       
  1117 //!									is same as actual signed integer value.
       
  1118 //!								8. Verify the object can be stored in an integer value using DoesIntFit() function.
       
  1119 //!								9. Test pass if object can be stored in an integer value and return ETrue as expected.
       
  1120 //!								10.Test failed if object can't be stored in an integer value and return EFalse.
       
  1121 //!								11.Use Des() function to retrieve CSdpAttrValueInt object's data pointer descriptor.
       
  1122 //!								12.Read an input integer from test data and compare it with the contents in data pointer descriptor
       
  1123 //!									and check if actual integer value is same as expected input integer value.
       
  1124 //!								13.Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  1125 //!								14.Connect a client process to the database using Connect() function and return KErrNone if successed.
       
  1126 //!								15.Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
  1127 //!								16.Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
  1128 //!								17.Read an input service record UUID from test data if successful.
       
  1129 //!								18.Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed.
       
  1130 //!								19.Read an input attribute ID from test data if successful.
       
  1131 //!								20.Read the CSdpAttrValueInt object from test data if successful.
       
  1132 //!								21.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed.
       
  1133 //!								22.Deconstructs CSdpAttrValueInt object.
       
  1134 //!								23.Deletes the service records using DeleteRecordL() function and return KErrNone if successed.
       
  1135 //!								24.Close the SDP database subsession using Close() function.
       
  1136 //!								25.Close the client process using Close() function.
       
  1137 //! @SYMTestStatus				Implemented
       
  1138 //! @SYMTestPriority			Low
       
  1139 //! @SYMTestExpectedResults  	Verify the 32 bits of integer object's data size, type, Integer value, data pointer descriptor,
       
  1140 //!								and check if the object can hold the Integer value,
       
  1141 //!								then updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1142 //! @SYMTestType				CIT
       
  1143 
       
  1144 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1145 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
  1146 			SHARED_ACTIVE_SCHEDULER
       
  1147 			CREATE_OBJECT	RSdpDatabase	database	
       
  1148 			CREATE_OBJECT	RSdp	rsdp	
       
  1149 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
  1150 			COMMAND		attrValueInt	NewIntL		BTSDP-AttrValInt-PublicApi-Passive-3862-0001command2NewIntL
       
  1151 			COMMAND		attrValueInt	DataSize		BTSDP-AttrValInt-PublicApi-Passive-3862-0001command3DataSize
       
  1152 			COMMAND		attrValueInt	Type		BTSDP-AttrValInt-PublicApi-Passive-3862-0001command4Type
       
  1153 			COMMAND		attrValueInt	Int		BTSDP-AttrValInt-PublicApi-Passive-3862-0001command5Int
       
  1154 			COMMAND		attrValueInt	DoesIntFit		BTSDP-AttrValInt-PublicApi-Passive-3862-0001command6DoesIntFit
       
  1155 			COMMAND		attrValueInt	Des		BTSDP-AttrValInt-PublicApi-Passive-3862-0001command7Des
       
  1156 			COMMAND		rsdp	Constructor
       
  1157 			COMMAND		rsdp	Connect
       
  1158 			OUTSTANDING
       
  1159 			COMMAND		database	Constructor
       
  1160 			COMMAND		database	Open		BTSDP-AttrValInt-PublicApi-Passive-3862-0001command13Open
       
  1161 			COMMAND		database	CreateServiceRecordL		BTSDP-AttrValInt-PublicApi-Passive-3862-0001command14CreateServiceRecordL
       
  1162 			COMMAND		database	UpdateAttributeL		BTSDP-AttrValInt-PublicApi-Passive-3862-0001command15UpdateAttributeL
       
  1163 			COMMAND		attrValueInt	~
       
  1164 			STORE	database	
       
  1165 			STORE	rsdp	
       
  1166 			STORE_ACTIVE_SCHEDULER
       
  1167 	END_TEST_BLOCK
       
  1168 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1169 
       
  1170 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1171 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1172 
       
  1173 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
  1174 			SHARED_ACTIVE_SCHEDULER
       
  1175 			RESTORE_OBJECT	RSdpDatabase	database	
       
  1176 			RESTORE_OBJECT	RSdp	rsdp	
       
  1177 			COMMAND		database	DeleteRecordL
       
  1178 			COMMAND		database	Close
       
  1179 			COMMAND		rsdp	Close
       
  1180 	END_TEST_BLOCK
       
  1181 
       
  1182 END_TESTCASE   BTSDP-AttrValInt-PublicApi-Passive-Master-3862
       
  1183 
       
  1184 START_TESTCASE BTSDP-AttrValInt-PublicApi-Passive-Master-3863
       
  1185 //! @SYMTestCaseID				BTSDP-AttrValInt-PublicApi-Passive-Master-3863
       
  1186 //! @SYMAPI						CSdpAttrValueInt
       
  1187 //!
       
  1188 //! @SYMTestCaseDesc			Updated a service record attribute with negative 32 bits of integer type of objects : CSdpAttrValueInt,
       
  1189 //!								then verify the integer object's data size, type, Integer value, data pointer descriptor,
       
  1190 //!								and check if the object can hold the Integer value,
       
  1191 //!								then prepare, set up the service record for the master device to retrieve
       
  1192 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
  1193 //!													Constructor(), Connect(), Close() from RSdp
       
  1194 //!													NewIntL(), DataSize(), Type(), Int(), DoesIntFit(), Des() from CSdpAttrValueInt												
       
  1195 //! @SYMTestActions				1. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
  1196 //!								2. Get the current size of CSdpAttrValueInt object using DataSize() function
       
  1197 //!								3. Read the expected size from test data and compare if actual size is as expected
       
  1198 //!								4. Test failed if sizes doesn't match.
       
  1199 //!								5. Verify the object type using Type() function. Test pass if expected type is ETypeInt.
       
  1200 //!								6. Test failed if type doesn't match.
       
  1201 //!								7. Verify the object signed integer value using Int() function. Test pass if expected signed integer value
       
  1202 //!									is same as actual signed integer value.
       
  1203 //!								8. Verify the object can be stored in an integer value using DoesIntFit() function.
       
  1204 //!								9. Test pass if object can be stored in an integer value and return ETrue as expected.
       
  1205 //!								10.Test failed if object can't be stored in an integer value and return EFalse.
       
  1206 //!								11.Use Des() function to retrieve CSdpAttrValueInt object's data pointer descriptor.
       
  1207 //!								12.Read an input integer from test data and compare it with the contents in data pointer descriptor
       
  1208 //!									and check if actual integer value is same as expected input integer value.
       
  1209 //!								13.Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  1210 //!								14.Connect a client process to the database using Connect() function and return KErrNone if successed.
       
  1211 //!								15.Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
  1212 //!								16.Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
  1213 //!								17.Read an input service record UUID from test data if successful.
       
  1214 //!								18.Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed.
       
  1215 //!								19.Read an input attribute ID from test data if successful.
       
  1216 //!								20.Read the CSdpAttrValueInt object from test data if successful.
       
  1217 //!								21.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed.
       
  1218 //!								22.Deconstructs CSdpAttrValueInt object.
       
  1219 //!								23.Deletes the service records using DeleteRecordL() function and return KErrNone if successed.
       
  1220 //!								24.Close the SDP database subsession using Close() function.
       
  1221 //!								25.Close the client process using Close() function.
       
  1222 //! @SYMTestStatus				Implemented
       
  1223 //! @SYMTestPriority			Low
       
  1224 //! @SYMTestExpectedResults  	Verify the negative 32 bits of integer object's data size, type, Integer value, data pointer descriptor,
       
  1225 //!								and check if the object can hold the Integer value,
       
  1226 //!								then updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1227 //! @SYMTestType				CIT
       
  1228 
       
  1229 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1230 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
  1231 			SHARED_ACTIVE_SCHEDULER
       
  1232 			CREATE_OBJECT	RSdpDatabase	database	
       
  1233 			CREATE_OBJECT	RSdp	rsdp	
       
  1234 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
  1235 			COMMAND		attrValueInt	NewIntL		BTSDP-AttrValInt-PublicApi-Passive-3863-0001command2NewIntL
       
  1236 			COMMAND		attrValueInt	DataSize		BTSDP-AttrValInt-PublicApi-Passive-3863-0001command3DataSize
       
  1237 			COMMAND		attrValueInt	Type		BTSDP-AttrValInt-PublicApi-Passive-3863-0001command4Type
       
  1238 			COMMAND		attrValueInt	Int		BTSDP-AttrValInt-PublicApi-Passive-3863-0001command5Int
       
  1239 			COMMAND		attrValueInt	DoesIntFit		BTSDP-AttrValInt-PublicApi-Passive-3863-0001command6DoesIntFit
       
  1240 			COMMAND		attrValueInt	Des		BTSDP-AttrValInt-PublicApi-Passive-3863-0001command7Des
       
  1241 			COMMAND		rsdp	Constructor
       
  1242 			COMMAND		rsdp	Connect
       
  1243 			OUTSTANDING
       
  1244 			COMMAND		database	Constructor
       
  1245 			COMMAND		database	Open		BTSDP-AttrValInt-PublicApi-Passive-3863-0001command13Open
       
  1246 			COMMAND		database	CreateServiceRecordL		BTSDP-AttrValInt-PublicApi-Passive-3863-0001command14CreateServiceRecordL
       
  1247 			COMMAND		database	UpdateAttributeL		BTSDP-AttrValInt-PublicApi-Passive-3863-0001command15UpdateAttributeL
       
  1248 			COMMAND		attrValueInt	~
       
  1249 			STORE	database	
       
  1250 			STORE	rsdp	
       
  1251 			STORE_ACTIVE_SCHEDULER
       
  1252 	END_TEST_BLOCK
       
  1253 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1254 
       
  1255 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1256 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1257 
       
  1258 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
  1259 			SHARED_ACTIVE_SCHEDULER
       
  1260 			RESTORE_OBJECT	RSdpDatabase	database	
       
  1261 			RESTORE_OBJECT	RSdp	rsdp	
       
  1262 			COMMAND		database	DeleteRecordL
       
  1263 			COMMAND		database	Close
       
  1264 			COMMAND		rsdp	Close
       
  1265 	END_TEST_BLOCK
       
  1266 
       
  1267 END_TESTCASE   BTSDP-AttrValInt-PublicApi-Passive-Master-3863
       
  1268 
       
  1269 START_TESTCASE BTSDP-AttrValInt-PublicApi-Passive-Master-3864
       
  1270 //! @SYMTestCaseID				BTSDP-AttrValInt-PublicApi-Passive-Master-3864
       
  1271 //! @SYMAPI						CSdpAttrValueInt
       
  1272 //!
       
  1273 //! @SYMTestCaseDesc			Updated a service record attribute with 16 bits of integer type of objects : CSdpAttrValueInt,
       
  1274 //!								then verify the integer object's data size, type, Integer value, data pointer descriptor,
       
  1275 //!								and check if the object can hold the Integer value,
       
  1276 //!								then prepare, set up the service record for the master device to retrieve
       
  1277 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
  1278 //!													Constructor(), Connect(), Close() from RSdp
       
  1279 //!													NewIntL(), DataSize(), Type(), Int(), DoesIntFit(), Des() from CSdpAttrValueInt												
       
  1280 //! @SYMTestActions				1. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
  1281 //!								2. Get the current size of CSdpAttrValueInt object using DataSize() function
       
  1282 //!								3. Read the expected size from test data and compare if actual size is as expected
       
  1283 //!								4. Test failed if sizes doesn't match.
       
  1284 //!								5. Verify the object type using Type() function. Test pass if expected type is ETypeInt.
       
  1285 //!								6. Test failed if type doesn't match.
       
  1286 //!								7. Verify the object signed integer value using Int() function. Test pass if expected signed integer value
       
  1287 //!									is same as actual signed integer value.
       
  1288 //!								8. Verify the object can be stored in an integer value using DoesIntFit() function.
       
  1289 //!								9. Test pass if object can be stored in an integer value and return ETrue as expected.
       
  1290 //!								10.Test failed if object can't be stored in an integer value and return EFalse.
       
  1291 //!								11.Use Des() function to retrieve CSdpAttrValueInt object's data pointer descriptor.
       
  1292 //!								12.Read an input integer from test data and compare it with the contents in data pointer descriptor
       
  1293 //!									and check if actual integer value is same as expected input integer value.
       
  1294 //!								13.Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  1295 //!								14.Connect a client process to the database using Connect() function and return KErrNone if successed.
       
  1296 //!								15.Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
  1297 //!								16.Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
  1298 //!								17.Read an input service record UUID from test data if successful.
       
  1299 //!								18.Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed.
       
  1300 //!								19.Read an input attribute ID from test data if successful.
       
  1301 //!								20.Read the CSdpAttrValueInt object from test data if successful.
       
  1302 //!								21.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed.
       
  1303 //!								22.Deconstructs CSdpAttrValueInt object.
       
  1304 //!								23.Deletes the service records using DeleteRecordL() function and return KErrNone if successed.
       
  1305 //!								24.Close the SDP database subsession using Close() function.
       
  1306 //!								25.Close the client process using Close() function.
       
  1307 //! @SYMTestStatus				Implemented
       
  1308 //! @SYMTestPriority			Low
       
  1309 //! @SYMTestExpectedResults  	Verify the 16 bits of integer object's data size, type, Integer value, data pointer descriptor,
       
  1310 //!								and check if the object can hold the Integer value,
       
  1311 //!								then updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1312 //! @SYMTestType				CIT
       
  1313 
       
  1314 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1315 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
  1316 			SHARED_ACTIVE_SCHEDULER
       
  1317 			CREATE_OBJECT	RSdpDatabase	database	
       
  1318 			CREATE_OBJECT	RSdp	rsdp	
       
  1319 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
  1320 			COMMAND		attrValueInt	NewIntL		BTSDP-AttrValInt-PublicApi-Passive-3864-0001command2NewIntL
       
  1321 			COMMAND		attrValueInt	DataSize		BTSDP-AttrValInt-PublicApi-Passive-3864-0001command3DataSize
       
  1322 			COMMAND		attrValueInt	Type		BTSDP-AttrValInt-PublicApi-Passive-3864-0001command4Type
       
  1323 			COMMAND		attrValueInt	Int		BTSDP-AttrValInt-PublicApi-Passive-3864-0001command5Int
       
  1324 			COMMAND		attrValueInt	DoesIntFit		BTSDP-AttrValInt-PublicApi-Passive-3864-0001command6DoesIntFit
       
  1325 			COMMAND		attrValueInt	Des		BTSDP-AttrValInt-PublicApi-Passive-3864-0001command7Des
       
  1326 			COMMAND		rsdp	Constructor
       
  1327 			COMMAND		rsdp	Connect
       
  1328 			OUTSTANDING
       
  1329 			COMMAND		database	Constructor
       
  1330 			COMMAND		database	Open		BTSDP-AttrValInt-PublicApi-Passive-3864-0001command13Open
       
  1331 			COMMAND		database	CreateServiceRecordL		BTSDP-AttrValInt-PublicApi-Passive-3864-0001command14CreateServiceRecordL
       
  1332 			COMMAND		database	UpdateAttributeL		BTSDP-AttrValInt-PublicApi-Passive-3864-0001command15UpdateAttributeL
       
  1333 			COMMAND		attrValueInt	~
       
  1334 			STORE	database	
       
  1335 			STORE	rsdp	
       
  1336 			STORE_ACTIVE_SCHEDULER
       
  1337 	END_TEST_BLOCK
       
  1338 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1339 
       
  1340 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1341 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1342 
       
  1343 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
  1344 			SHARED_ACTIVE_SCHEDULER
       
  1345 			RESTORE_OBJECT	RSdpDatabase	database	
       
  1346 			RESTORE_OBJECT	RSdp	rsdp	
       
  1347 			COMMAND		database	DeleteRecordL
       
  1348 			COMMAND		database	Close
       
  1349 			COMMAND		rsdp	Close
       
  1350 	END_TEST_BLOCK
       
  1351 
       
  1352 END_TESTCASE   BTSDP-AttrValInt-PublicApi-Passive-Master-3864
       
  1353 
       
  1354 START_TESTCASE BTSDP-AttrValInt-PublicApi-Passive-Master-3865
       
  1355 //! @SYMTestCaseID				BTSDP-AttrValInt-PublicApi-Passive-Master-3865
       
  1356 //! @SYMAPI						CSdpAttrValueInt
       
  1357 //!
       
  1358 //! @SYMTestCaseDesc			Updated a service record attribute with negative 16 bits of integer type of objects : CSdpAttrValueInt,
       
  1359 //!								then verify the integer object's data size, type, Integer value, data pointer descriptor,
       
  1360 //!								and check if the object can hold the Integer value,
       
  1361 //!								then prepare, set up the service record for the master device to retrieve
       
  1362 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
  1363 //!													Constructor(), Connect(), Close() from RSdp
       
  1364 //!													NewIntL(), DataSize(), Type(), Int(), DoesIntFit(), Des() from CSdpAttrValueInt												
       
  1365 //! @SYMTestActions				1. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
  1366 //!								2. Get the current size of CSdpAttrValueInt object using DataSize() function
       
  1367 //!								3. Read the expected size from test data and compare if actual size is as expected
       
  1368 //!								4. Test failed if sizes doesn't match.
       
  1369 //!								5. Verify the object type using Type() function. Test pass if expected type is ETypeInt.
       
  1370 //!								6. Test failed if type doesn't match.
       
  1371 //!								7. Verify the object signed integer value using Int() function. Test pass if expected signed integer value
       
  1372 //!									is same as actual signed integer value.
       
  1373 //!								8. Verify the object can be stored in an integer value using DoesIntFit() function.
       
  1374 //!								9. Test pass if object can be stored in an integer value and return ETrue as expected.
       
  1375 //!								10.Test failed if object can't be stored in an integer value and return EFalse.
       
  1376 //!								11.Use Des() function to retrieve CSdpAttrValueInt object's data pointer descriptor.
       
  1377 //!								12.Read an input integer from test data and compare it with the contents in data pointer descriptor
       
  1378 //!									and check if actual integer value is same as expected input integer value.
       
  1379 //!								13.Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  1380 //!								14.Connect a client process to the database using Connect() function and return KErrNone if successed.
       
  1381 //!								15.Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
  1382 //!								16.Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
  1383 //!								17.Read an input service record UUID from test data if successful.
       
  1384 //!								18.Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed.
       
  1385 //!								19.Read an input attribute ID from test data if successful.
       
  1386 //!								20.Read the CSdpAttrValueInt object from test data if successful.
       
  1387 //!								21.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed.
       
  1388 //!								22.Deconstructs CSdpAttrValueInt object.
       
  1389 //!								23.Deletes the service records using DeleteRecordL() function and return KErrNone if successed.
       
  1390 //!								24.Close the SDP database subsession using Close() function.
       
  1391 //!								25.Close the client process using Close() function.
       
  1392 //! @SYMTestStatus				Implemented
       
  1393 //! @SYMTestPriority			Low
       
  1394 //! @SYMTestExpectedResults  	Verify the negative 16 bits of integer object's data size, type, Integer value, data pointer descriptor,
       
  1395 //!								and check if the object can hold the Integer value,
       
  1396 //!								then updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1397 //! @SYMTestType				CIT
       
  1398 
       
  1399 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1400 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
  1401 			SHARED_ACTIVE_SCHEDULER
       
  1402 			CREATE_OBJECT	RSdpDatabase	database	
       
  1403 			CREATE_OBJECT	RSdp	rsdp	
       
  1404 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
  1405 			COMMAND		attrValueInt	NewIntL		BTSDP-AttrValInt-PublicApi-Passive-3865-0001command2NewIntL
       
  1406 			COMMAND		attrValueInt	DataSize		BTSDP-AttrValInt-PublicApi-Passive-3865-0001command3DataSize
       
  1407 			COMMAND		attrValueInt	Type		BTSDP-AttrValInt-PublicApi-Passive-3865-0001command4Type
       
  1408 			COMMAND		attrValueInt	Int		BTSDP-AttrValInt-PublicApi-Passive-3865-0001command5Int
       
  1409 			COMMAND		attrValueInt	DoesIntFit		BTSDP-AttrValInt-PublicApi-Passive-3865-0001command6DoesIntFit
       
  1410 			COMMAND		attrValueInt	Des		BTSDP-AttrValInt-PublicApi-Passive-3865-0001command7Des
       
  1411 			COMMAND		rsdp	Constructor
       
  1412 			COMMAND		rsdp	Connect
       
  1413 			OUTSTANDING
       
  1414 			COMMAND		database	Constructor
       
  1415 			COMMAND		database	Open		BTSDP-AttrValInt-PublicApi-Passive-3865-0001command13Open
       
  1416 			COMMAND		database	CreateServiceRecordL		BTSDP-AttrValInt-PublicApi-Passive-3865-0001command14CreateServiceRecordL
       
  1417 			COMMAND		database	UpdateAttributeL		BTSDP-AttrValInt-PublicApi-Passive-3865-0001command15UpdateAttributeL
       
  1418 			COMMAND		attrValueInt	~
       
  1419 			STORE	database	
       
  1420 			STORE	rsdp	
       
  1421 			STORE_ACTIVE_SCHEDULER
       
  1422 	END_TEST_BLOCK
       
  1423 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1424 
       
  1425 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1426 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1427 
       
  1428 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
  1429 			SHARED_ACTIVE_SCHEDULER
       
  1430 			RESTORE_OBJECT	RSdpDatabase	database	
       
  1431 			RESTORE_OBJECT	RSdp	rsdp	
       
  1432 			COMMAND		database	DeleteRecordL
       
  1433 			COMMAND		database	Close
       
  1434 			COMMAND		rsdp	Close
       
  1435 	END_TEST_BLOCK
       
  1436 
       
  1437 END_TESTCASE   BTSDP-AttrValInt-PublicApi-Passive-Master-3865
       
  1438 
       
  1439 
       
  1440 // ****************************************************************************
       
  1441 // CSdpAttrValueUint Tests
       
  1442 // ****************************************************************************
       
  1443 
       
  1444 START_TESTCASE BTSDP-AttrValUint-PublicApi-Passive-Master-3961
       
  1445 //! @SYMTestCaseID				BTSDP-AttrValUint-PublicApi-Passive-Master-3961
       
  1446 //! @SYMAPI						CSdpAttrValueUint
       
  1447 //!
       
  1448 //! @SYMTestCaseDesc			Updated a service record attribute with 32 bits of unsigned integer type of objects : CSdpAttrValueUint,
       
  1449 //!								then verify the integer object's data size, type, Integer value, data pointer descriptor,
       
  1450 //!								and check if the object can hold the Integer value,
       
  1451 //!								then prepare, set up the service record for the master device to retrieve
       
  1452 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
  1453 //!													Constructor(), Connect(), Close() from RSdp
       
  1454 //!													NewUintL(), DataSize(), Type(), Uint(), DoesIntFit(), Des() from CSdpAttrValueUint												
       
  1455 //! @SYMTestActions				1. Allocate and construct a new CSdpAttrValueUint object using NewUintL() function and return KErrNone if successed.
       
  1456 //!								2. Get the current size of CSdpAttrValueUint object using DataSize() function
       
  1457 //!								3. Read the expected size from test data and compare if actual size is as expected
       
  1458 //!								4. Test failed if sizes doesn't match.
       
  1459 //!								5. Verify the object type using Type() function. Test pass if expected type is ETypeInt.
       
  1460 //!								6. Test failed if type doesn't match.
       
  1461 //!								7. Verify the object unsigned integer value using Uint() function. Test pass if expected signed integer value
       
  1462 //!									is same as actual signed integer value.
       
  1463 //!								8. Verify the object can be stored in an integer value using DoesIntFit() function.
       
  1464 //!								9. Test pass if object can be stored in an integer value and return ETrue as expected.
       
  1465 //!								10.Test failed if object can't be stored in an integer value and return EFalse.
       
  1466 //!								11.Use Des() function to retrieve CSdpAttrValueUint object's data pointer descriptor.
       
  1467 //!								12.Read an input integer from test data and compare it with the contents in data pointer descriptor
       
  1468 //!									and check if actual integer value is same as expected input integer value.
       
  1469 //!								13.Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  1470 //!								14.Connect a client process to the database using Connect() function and return KErrNone if successed.
       
  1471 //!								15.Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
  1472 //!								16.Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
  1473 //!								17.Read an input service record UUID from test data if successful.
       
  1474 //!								18.Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed.
       
  1475 //!								19.Read an input attribute ID from test data if successful.
       
  1476 //!								20.Read the CSdpAttrValueUint object from test data if successful.
       
  1477 //!								21.Updates a service record attribute with a value encapsulated in a CSdpAttrValueUint using UpdateAttributeL() function and return KErrNone if successed.
       
  1478 //!								22.Deconstructs CSdpAttrValueUint object.
       
  1479 //!								23.Deletes the service records using DeleteRecordL() function and return KErrNone if successed.
       
  1480 //!								24.Close the SDP database subsession using Close() function.
       
  1481 //!								25.Close the client process using Close() function.
       
  1482 //! @SYMTestStatus				Implemented
       
  1483 //! @SYMTestPriority			Low
       
  1484 //! @SYMTestExpectedResults  	Verify the 32 bits of unsigned integer object's data size, type, Integer value, data pointer descriptor,
       
  1485 //!								and check if the object can hold the Integer value,
       
  1486 //!								then updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1487 //! @SYMTestType				CIT
       
  1488 
       
  1489 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1490 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
  1491 			SHARED_ACTIVE_SCHEDULER
       
  1492 			CREATE_OBJECT	RSdpDatabase	database	
       
  1493 			CREATE_OBJECT	RSdp	rsdp	
       
  1494 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint	
       
  1495 			COMMAND		attrValueUint	NewUintL		BTSDP-AttrValUint-PublicApi-Passive-3961-0001command2NewUintL
       
  1496 			COMMAND		attrValueUint	DataSize		BTSDP-AttrValUint-PublicApi-Passive-3961-0001command3DataSize
       
  1497 			COMMAND		attrValueUint	Type		BTSDP-AttrValUint-PublicApi-Passive-3961-0001command4Type
       
  1498 			COMMAND		attrValueUint	Uint		BTSDP-AttrValUint-PublicApi-Passive-3961-0001command5Uint
       
  1499 			COMMAND		attrValueUint	DoesIntFit		BTSDP-AttrValUint-PublicApi-Passive-3961-0001command6DoesIntFit
       
  1500 			COMMAND		attrValueUint	Des		BTSDP-AttrValUint-PublicApi-Passive-3961-0001command7Des
       
  1501 			COMMAND		rsdp	Constructor
       
  1502 			COMMAND		rsdp	Connect
       
  1503 			OUTSTANDING
       
  1504 			COMMAND		database	Constructor
       
  1505 			COMMAND		database	Open		BTSDP-AttrValUint-PublicApi-Passive-3961-0001command13Open
       
  1506 			COMMAND		database	CreateServiceRecordL		BTSDP-AttrValUint-PublicApi-Passive-3961-0001command14CreateServiceRecordL
       
  1507 			COMMAND		database	UpdateAttributeL		BTSDP-AttrValUint-PublicApi-Passive-3961-0001command15UpdateAttributeL
       
  1508 			COMMAND		attrValueUint	~
       
  1509 			STORE	database	
       
  1510 			STORE	rsdp	
       
  1511 			STORE_ACTIVE_SCHEDULER
       
  1512 	END_TEST_BLOCK
       
  1513 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1514 
       
  1515 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1516 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1517 
       
  1518 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
  1519 			SHARED_ACTIVE_SCHEDULER
       
  1520 			RESTORE_OBJECT	RSdpDatabase	database	
       
  1521 			RESTORE_OBJECT	RSdp	rsdp	
       
  1522 			COMMAND		database	DeleteRecordL
       
  1523 			COMMAND		database	Close
       
  1524 			COMMAND		rsdp	Close
       
  1525 	END_TEST_BLOCK
       
  1526 END_TESTCASE   BTSDP-AttrValUint-PublicApi-Passive-Master-3961
       
  1527 
       
  1528 
       
  1529 START_TESTCASE BTSDP-AttrValUint-PublicApi-Passive-Master-3962
       
  1530 //! @SYMTestCaseID				BTSDP-AttrValUint-PublicApi-Passive-Master-3962
       
  1531 //! @SYMAPI						CSdpAttrValueUint
       
  1532 //!
       
  1533 //! @SYMTestCaseDesc			Updated a service record attribute with 128 bits of unsigned integer type of objects : CSdpAttrValueUint,
       
  1534 //!								then verify the integer object's data size, type, Integer value, data pointer descriptor,
       
  1535 //!								and check if the object can hold the Integer value,
       
  1536 //!								then prepare, set up the service record for the master device to retrieve
       
  1537 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
  1538 //!													Constructor(), Connect(), Close() from RSdp
       
  1539 //!													NewUintL(), DataSize(), Type(), Uint(), DoesIntFit(), Des() from CSdpAttrValueUint												
       
  1540 //! @SYMTestActions				1. Allocate and construct a new CSdpAttrValueUint object using NewUintL() function and return KErrNone if successed.
       
  1541 //!								2. Get the current size of CSdpAttrValueUint object using DataSize() function
       
  1542 //!								3. Read the expected size from test data and compare if actual size is as expected
       
  1543 //!								4. Test failed if sizes doesn't match.
       
  1544 //!								5. Verify the object type using Type() function. Test pass if expected type is ETypeInt.
       
  1545 //!								6. Test failed if type doesn't match.
       
  1546 //!								7. Verify the object unsigned integer value using Uint() function. Test pass if expected signed integer value
       
  1547 //!									is same as actual signed integer value.
       
  1548 //!								8. Verify the object can be stored in an integer value using DoesIntFit() function.
       
  1549 //!								9. Test pass if object can be stored in an integer value and return ETrue as expected.
       
  1550 //!								10.Test failed if object can't be stored in an integer value and return EFalse.
       
  1551 //!								11.Use Des() function to retrieve CSdpAttrValueUint object's data pointer descriptor.
       
  1552 //!								12.Read an input integer from test data and compare it with the contents in data pointer descriptor
       
  1553 //!									and check if actual integer value is same as expected input integer value.
       
  1554 //!								13.Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  1555 //!								14.Connect a client process to the database using Connect() function and return KErrNone if successed.
       
  1556 //!								15.Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
  1557 //!								16.Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
  1558 //!								17.Read an input service record UUID from test data if successful.
       
  1559 //!								18.Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed.
       
  1560 //!								19.Read an input attribute ID from test data if successful.
       
  1561 //!								20.Read the CSdpAttrValueUint object from test data if successful.
       
  1562 //!								21.Updates a service record attribute with a value encapsulated in a CSdpAttrValueUint using UpdateAttributeL() function and return KErrNone if successed.
       
  1563 //!								22.Deconstructs CSdpAttrValueUint object.
       
  1564 //!								23.Deletes the service records using DeleteRecordL() function and return KErrNone if successed.
       
  1565 //!								24.Close the SDP database subsession using Close() function.
       
  1566 //!								25.Close the client process using Close() function.
       
  1567 //! @SYMTestStatus				Implemented
       
  1568 //! @SYMTestPriority			Low
       
  1569 //! @SYMTestExpectedResults  	Verify the 128 bits of unsigned integer object's data size, type, Integer value, data pointer descriptor,
       
  1570 //!								and check if the object can hold the Integer value,
       
  1571 //!								then updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1572 //! @SYMTestType				CIT
       
  1573 
       
  1574 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1575 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
  1576 			SHARED_ACTIVE_SCHEDULER
       
  1577 			CREATE_OBJECT	RSdpDatabase	database	
       
  1578 			CREATE_OBJECT	RSdp	rsdp	
       
  1579 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint	
       
  1580 			COMMAND		attrValueUint	NewUintL		BTSDP-AttrValUint-PublicApi-Passive-3962-0001command2NewUintL
       
  1581 			COMMAND		attrValueUint	DataSize		BTSDP-AttrValUint-PublicApi-Passive-3962-0001command3DataSize
       
  1582 			COMMAND		attrValueUint	Type		BTSDP-AttrValUint-PublicApi-Passive-3962-0001command4Type
       
  1583 			COMMAND		attrValueUint	DoesIntFit		BTSDP-AttrValUint-PublicApi-Passive-3962-0001command5DoesIntFit
       
  1584 			COMMAND		attrValueUint	Des		BTSDP-AttrValUint-PublicApi-Passive-3962-0001command6Des
       
  1585 			COMMAND		rsdp	Constructor
       
  1586 			COMMAND		rsdp	Connect
       
  1587 			OUTSTANDING
       
  1588 			COMMAND		database	Constructor
       
  1589 			COMMAND		database	Open		BTSDP-AttrValUint-PublicApi-Passive-3962-0001command12Open
       
  1590 			COMMAND		database	CreateServiceRecordL		BTSDP-AttrValUint-PublicApi-Passive-3962-0001command13CreateServiceRecordL
       
  1591 			COMMAND		database	UpdateAttributeL		BTSDP-AttrValUint-PublicApi-Passive-3962-0001command14UpdateAttributeL
       
  1592 			COMMAND		attrValueUint	~
       
  1593 			STORE	database	
       
  1594 			STORE	rsdp	
       
  1595 			STORE_ACTIVE_SCHEDULER
       
  1596 	END_TEST_BLOCK
       
  1597 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1598 
       
  1599 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1600 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1601 
       
  1602 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
  1603 			SHARED_ACTIVE_SCHEDULER
       
  1604 			RESTORE_OBJECT	RSdpDatabase	database	
       
  1605 			RESTORE_OBJECT	RSdp	rsdp	
       
  1606 			COMMAND		database	DeleteRecordL
       
  1607 			COMMAND		database	Close
       
  1608 			COMMAND		rsdp	Close
       
  1609 	END_TEST_BLOCK
       
  1610 
       
  1611 END_TESTCASE   BTSDP-AttrValUint-PublicApi-Passive-Master-3962
       
  1612 
       
  1613 START_TESTCASE BTSDP-AttrValUint-PublicApi-Passive-Master-3963
       
  1614 //! @SYMTestCaseID				BTSDP-AttrValUint-PublicApi-Passive-Master-3963
       
  1615 //! @SYMAPI						CSdpAttrValueUint
       
  1616 //!
       
  1617 //! @SYMTestCaseDesc			Updated a service record attribute with 64 bits of unsigned integer type of objects : CSdpAttrValueUint,
       
  1618 //!								then verify the integer object's data size, type, Integer value, data pointer descriptor,
       
  1619 //!								and check if the object can hold the Integer value,
       
  1620 //!								then prepare, set up the service record for the master device to retrieve
       
  1621 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
  1622 //!													Constructor(), Connect(), Close() from RSdp
       
  1623 //!													NewUintL(), DataSize(), Type(), Uint(), DoesIntFit(), Des() from CSdpAttrValueUint												
       
  1624 //! @SYMTestActions				1. Allocate and construct a new CSdpAttrValueUint object using NewUintL() function and return KErrNone if successed.
       
  1625 //!								2. Get the current size of CSdpAttrValueUint object using DataSize() function
       
  1626 //!								3. Read the expected size from test data and compare if actual size is as expected
       
  1627 //!								4. Test failed if sizes doesn't match.
       
  1628 //!								5. Verify the object type using Type() function. Test pass if expected type is ETypeInt.
       
  1629 //!								6. Test failed if type doesn't match.
       
  1630 //!								7. Verify the object unsigned integer value using Uint() function. Test pass if expected signed integer value
       
  1631 //!									is same as actual signed integer value.
       
  1632 //!								8. Verify the object can be stored in an integer value using DoesIntFit() function.
       
  1633 //!								9. Test pass if object can be stored in an integer value and return ETrue as expected.
       
  1634 //!								10.Test failed if object can't be stored in an integer value and return EFalse.
       
  1635 //!								11.Use Des() function to retrieve CSdpAttrValueUint object's data pointer descriptor.
       
  1636 //!								12.Read an input integer from test data and compare it with the contents in data pointer descriptor
       
  1637 //!									and check if actual integer value is same as expected input integer value.
       
  1638 //!								13.Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  1639 //!								14.Connect a client process to the database using Connect() function and return KErrNone if successed.
       
  1640 //!								15.Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
  1641 //!								16.Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
  1642 //!								17.Read an input service record UUID from test data if successful.
       
  1643 //!								18.Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed.
       
  1644 //!								19.Read an input attribute ID from test data if successful.
       
  1645 //!								20.Read the CSdpAttrValueUint object from test data if successful.
       
  1646 //!								21.Updates a service record attribute with a value encapsulated in a CSdpAttrValueUint using UpdateAttributeL() function and return KErrNone if successed.
       
  1647 //!								22.Deconstructs CSdpAttrValueUint object.
       
  1648 //!								23.Deletes the service records using DeleteRecordL() function and return KErrNone if successed.
       
  1649 //!								24.Close the SDP database subsession using Close() function.
       
  1650 //!								25.Close the client process using Close() function.
       
  1651 //! @SYMTestStatus				Implemented
       
  1652 //! @SYMTestPriority			Low
       
  1653 //! @SYMTestExpectedResults  	Verify the 64 bits of unsigned integer object's data size, type, Integer value, data pointer descriptor,
       
  1654 //!								and check if the object can hold the Integer value,
       
  1655 //!								then updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1656 //! @SYMTestType				CIT
       
  1657 
       
  1658 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1659 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
  1660 			SHARED_ACTIVE_SCHEDULER
       
  1661 			CREATE_OBJECT	RSdpDatabase	database	
       
  1662 			CREATE_OBJECT	RSdp	rsdp	
       
  1663 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint	
       
  1664 			COMMAND		attrValueUint	NewUintL		BTSDP-AttrValUint-PublicApi-Passive-3963-0001command2NewUintL
       
  1665 			COMMAND		attrValueUint	DataSize		BTSDP-AttrValUint-PublicApi-Passive-3963-0001command3DataSize
       
  1666 			COMMAND		attrValueUint	Type		BTSDP-AttrValUint-PublicApi-Passive-3963-0001command4Type
       
  1667 			COMMAND		attrValueUint	DoesIntFit		BTSDP-AttrValUint-PublicApi-Passive-3963-0001command5DoesIntFit
       
  1668 			COMMAND		attrValueUint	Des		BTSDP-AttrValUint-PublicApi-Passive-3963-0001command6Des
       
  1669 			COMMAND		rsdp	Constructor
       
  1670 			COMMAND		rsdp	Connect
       
  1671 			OUTSTANDING
       
  1672 			COMMAND		database	Constructor
       
  1673 			COMMAND		database	Open		BTSDP-AttrValUint-PublicApi-Passive-3963-0001command12Open
       
  1674 			COMMAND		database	CreateServiceRecordL		BTSDP-AttrValUint-PublicApi-Passive-3963-0001command13CreateServiceRecordL
       
  1675 			COMMAND		database	UpdateAttributeL		BTSDP-AttrValUint-PublicApi-Passive-3963-0001command14UpdateAttributeL
       
  1676 			COMMAND		attrValueUint	~
       
  1677 			STORE	database	
       
  1678 			STORE	rsdp	
       
  1679 			STORE_ACTIVE_SCHEDULER
       
  1680 	END_TEST_BLOCK
       
  1681 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1682 
       
  1683 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1684 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1685 
       
  1686 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
  1687 			SHARED_ACTIVE_SCHEDULER
       
  1688 			RESTORE_OBJECT	RSdpDatabase	database	
       
  1689 			RESTORE_OBJECT	RSdp	rsdp	
       
  1690 			COMMAND		database	DeleteRecordL
       
  1691 			COMMAND		database	Close
       
  1692 			COMMAND		rsdp	Close
       
  1693 	END_TEST_BLOCK
       
  1694 
       
  1695 END_TESTCASE   BTSDP-AttrValUint-PublicApi-Passive-Master-3963
       
  1696 
       
  1697 START_TESTCASE BTSDP-AttrValUint-PublicApi-Passive-Master-3964
       
  1698 //! @SYMTestCaseID				BTSDP-AttrValUint-PublicApi-Passive-Master-3964
       
  1699 //! @SYMAPI						CSdpAttrValueUint
       
  1700 //!
       
  1701 //! @SYMTestCaseDesc			Updated a service record attribute with 32 bits of unsigned integer type of objects : CSdpAttrValueUint,
       
  1702 //!								then verify the integer object's data size, type, Integer value, data pointer descriptor,
       
  1703 //!								and check if the object can hold the Integer value,
       
  1704 //!								then prepare, set up the service record for the master device to retrieve
       
  1705 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
  1706 //!													Constructor(), Connect(), Close() from RSdp
       
  1707 //!													NewUintL(), DataSize(), Type(), Uint(), DoesIntFit(), Des() from CSdpAttrValueUint												
       
  1708 //! @SYMTestActions				1. Allocate and construct a new CSdpAttrValueUint object using NewUintL() function and return KErrNone if successed.
       
  1709 //!								2. Get the current size of CSdpAttrValueUint object using DataSize() function
       
  1710 //!								3. Read the expected size from test data and compare if actual size is as expected
       
  1711 //!								4. Test failed if sizes doesn't match.
       
  1712 //!								5. Verify the object type using Type() function. Test pass if expected type is ETypeInt.
       
  1713 //!								6. Test failed if type doesn't match.
       
  1714 //!								7. Verify the object unsigned integer value using Uint() function. Test pass if expected signed integer value
       
  1715 //!									is same as actual signed integer value.
       
  1716 //!								8. Verify the object can be stored in an integer value using DoesIntFit() function.
       
  1717 //!								9. Test pass if object can be stored in an integer value and return ETrue as expected.
       
  1718 //!								10.Test failed if object can't be stored in an integer value and return EFalse.
       
  1719 //!								11.Use Des() function to retrieve CSdpAttrValueUint object's data pointer descriptor.
       
  1720 //!								12.Read an input integer from test data and compare it with the contents in data pointer descriptor
       
  1721 //!									and check if actual integer value is same as expected input integer value.
       
  1722 //!								13.Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  1723 //!								14.Connect a client process to the database using Connect() function and return KErrNone if successed.
       
  1724 //!								15.Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
  1725 //!								16.Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
  1726 //!								17.Read an input service record UUID from test data if successful.
       
  1727 //!								18.Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed.
       
  1728 //!								19.Read an input attribute ID from test data if successful.
       
  1729 //!								20.Read the CSdpAttrValueUint object from test data if successful.
       
  1730 //!								21.Updates a service record attribute with a value encapsulated in a CSdpAttrValueUint using UpdateAttributeL() function and return KErrNone if successed.
       
  1731 //!								22.Deconstructs CSdpAttrValueUint object.
       
  1732 //!								23.Deletes the service records using DeleteRecordL() function and return KErrNone if successed.
       
  1733 //!								24.Close the SDP database subsession using Close() function.
       
  1734 //!								25.Close the client process using Close() function.
       
  1735 //! @SYMTestStatus				Implemented
       
  1736 //! @SYMTestPriority			Low
       
  1737 //! @SYMTestExpectedResults  	Verify the 32 bits of unsigned integer object's data size, type, Integer value, data pointer descriptor,
       
  1738 //!								and check if the object can hold the Integer value,
       
  1739 //!								then updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1740 //! @SYMTestType				CIT
       
  1741 
       
  1742 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1743 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
  1744 			SHARED_ACTIVE_SCHEDULER
       
  1745 			CREATE_OBJECT	RSdpDatabase	database	
       
  1746 			CREATE_OBJECT	RSdp	rsdp	
       
  1747 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint	
       
  1748 			COMMAND		attrValueUint	NewUintL		BTSDP-AttrValUint-PublicApi-Passive-3964-0001command2NewUintL
       
  1749 			COMMAND		attrValueUint	DataSize		BTSDP-AttrValUint-PublicApi-Passive-3964-0001command3DataSize
       
  1750 			COMMAND		attrValueUint	Type		BTSDP-AttrValUint-PublicApi-Passive-3964-0001command4Type
       
  1751 			COMMAND		attrValueUint	Uint		BTSDP-AttrValUint-PublicApi-Passive-3964-0001command5Uint
       
  1752 			COMMAND		attrValueUint	DoesIntFit		BTSDP-AttrValUint-PublicApi-Passive-3964-0001command6DoesIntFit
       
  1753 			COMMAND		attrValueUint	Des		BTSDP-AttrValUint-PublicApi-Passive-3964-0001command7Des
       
  1754 			COMMAND		rsdp	Constructor
       
  1755 			COMMAND		rsdp	Connect
       
  1756 			OUTSTANDING
       
  1757 			COMMAND		database	Constructor
       
  1758 			COMMAND		database	Open		BTSDP-AttrValUint-PublicApi-Passive-3964-0001command13Open
       
  1759 			COMMAND		database	CreateServiceRecordL		BTSDP-AttrValUint-PublicApi-Passive-3964-0001command14CreateServiceRecordL
       
  1760 			COMMAND		database	UpdateAttributeL		BTSDP-AttrValUint-PublicApi-Passive-3964-0001command15UpdateAttributeL
       
  1761 			COMMAND		attrValueUint	~
       
  1762 			STORE	database	
       
  1763 			STORE	rsdp	
       
  1764 			STORE_ACTIVE_SCHEDULER
       
  1765 	END_TEST_BLOCK
       
  1766 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1767 
       
  1768 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1769 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1770 
       
  1771 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
  1772 			SHARED_ACTIVE_SCHEDULER
       
  1773 			RESTORE_OBJECT	RSdpDatabase	database	
       
  1774 			RESTORE_OBJECT	RSdp	rsdp	
       
  1775 			COMMAND		database	DeleteRecordL
       
  1776 			COMMAND		database	Close
       
  1777 			COMMAND		rsdp	Close
       
  1778 	END_TEST_BLOCK
       
  1779 
       
  1780 END_TESTCASE   BTSDP-AttrValUint-PublicApi-Passive-Master-3964
       
  1781 
       
  1782 START_TESTCASE BTSDP-AttrValUint-PublicApi-Passive-Master-3965
       
  1783 //! @SYMTestCaseID				BTSDP-AttrValUint-PublicApi-Passive-Master-3965
       
  1784 //! @SYMAPI						CSdpAttrValueUint
       
  1785 //!
       
  1786 //! @SYMTestCaseDesc			Updated a service record attribute with 16 bits of unsigned integer type of objects : CSdpAttrValueUint,
       
  1787 //!								then verify the integer object's data size, type, Integer value, data pointer descriptor,
       
  1788 //!								and check if the object can hold the Integer value,
       
  1789 //!								then prepare, set up the service record for the master device to retrieve
       
  1790 //!								Uses API elements:	Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase
       
  1791 //!													Constructor(), Connect(), Close() from RSdp
       
  1792 //!													NewUintL(), DataSize(), Type(), Uint(), DoesIntFit(), Des() from CSdpAttrValueUint												
       
  1793 //! @SYMTestActions				1. Allocate and construct a new CSdpAttrValueUint object using NewUintL() function and return KErrNone if successed.
       
  1794 //!								2. Get the current size of CSdpAttrValueUint object using DataSize() function
       
  1795 //!								3. Read the expected size from test data and compare if actual size is as expected
       
  1796 //!								4. Test failed if sizes doesn't match.
       
  1797 //!								5. Verify the object type using Type() function. Test pass if expected type is ETypeInt.
       
  1798 //!								6. Test failed if type doesn't match.
       
  1799 //!								7. Verify the object unsigned integer value using Uint() function. Test pass if expected signed integer value
       
  1800 //!									is same as actual signed integer value.
       
  1801 //!								8. Verify the object can be stored in an integer value using DoesIntFit() function.
       
  1802 //!								9. Test pass if object can be stored in an integer value and return ETrue as expected.
       
  1803 //!								10.Test failed if object can't be stored in an integer value and return EFalse.
       
  1804 //!								11.Use Des() function to retrieve CSdpAttrValueUint object's data pointer descriptor.
       
  1805 //!								12.Read an input integer from test data and compare it with the contents in data pointer descriptor
       
  1806 //!									and check if actual integer value is same as expected input integer value.
       
  1807 //!								13.Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  1808 //!								14.Connect a client process to the database using Connect() function and return KErrNone if successed.
       
  1809 //!								15.Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
  1810 //!								16.Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
  1811 //!								17.Read an input service record UUID from test data if successful.
       
  1812 //!								18.Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed.
       
  1813 //!								19.Read an input attribute ID from test data if successful.
       
  1814 //!								20.Read the CSdpAttrValueUint object from test data if successful.
       
  1815 //!								21.Updates a service record attribute with a value encapsulated in a CSdpAttrValueUint using UpdateAttributeL() function and return KErrNone if successed.
       
  1816 //!								22.Deconstructs CSdpAttrValueUint object.
       
  1817 //!								23.Deletes the service records using DeleteRecordL() function and return KErrNone if successed.
       
  1818 //!								24.Close the SDP database subsession using Close() function.
       
  1819 //!								25.Close the client process using Close() function.
       
  1820 //! @SYMTestStatus				Implemented
       
  1821 //! @SYMTestPriority			Low
       
  1822 //! @SYMTestExpectedResults  	Verify the 16 bits of unsigned integer object's data size, type, Integer value, data pointer descriptor,
       
  1823 //!								and check if the object can hold the Integer value,
       
  1824 //!								then updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully.
       
  1825 //! @SYMTestType				CIT
       
  1826 
       
  1827 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1828 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
  1829 			SHARED_ACTIVE_SCHEDULER
       
  1830 			CREATE_OBJECT	RSdpDatabase	database	
       
  1831 			CREATE_OBJECT	RSdp	rsdp	
       
  1832 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint	
       
  1833 			COMMAND		attrValueUint	NewUintL		BTSDP-AttrValUint-PublicApi-Passive-3965-0001command2NewUintL
       
  1834 			COMMAND		attrValueUint	DataSize		BTSDP-AttrValUint-PublicApi-Passive-3965-0001command3DataSize
       
  1835 			COMMAND		attrValueUint	Type		BTSDP-AttrValUint-PublicApi-Passive-3965-0001command4Type
       
  1836 			COMMAND		attrValueUint	Uint		BTSDP-AttrValUint-PublicApi-Passive-3965-0001command5Uint
       
  1837 			COMMAND		attrValueUint	DoesIntFit		BTSDP-AttrValUint-PublicApi-Passive-3965-0001command6DoesIntFit
       
  1838 			COMMAND		attrValueUint	Des		BTSDP-AttrValUint-PublicApi-Passive-3965-0001command7Des
       
  1839 			COMMAND		rsdp	Constructor
       
  1840 			COMMAND		rsdp	Connect
       
  1841 			OUTSTANDING
       
  1842 			COMMAND		database	Constructor
       
  1843 			COMMAND		database	Open		BTSDP-AttrValUint-PublicApi-Passive-3965-0001command13Open
       
  1844 			COMMAND		database	CreateServiceRecordL		BTSDP-AttrValUint-PublicApi-Passive-3965-0001command14CreateServiceRecordL
       
  1845 			COMMAND		database	UpdateAttributeL		BTSDP-AttrValUint-PublicApi-Passive-3965-0001command15UpdateAttributeL
       
  1846 			COMMAND		attrValueUint	~
       
  1847 			STORE	database	
       
  1848 			STORE	rsdp	
       
  1849 			STORE_ACTIVE_SCHEDULER
       
  1850 	END_TEST_BLOCK
       
  1851 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1852 
       
  1853 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1854 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1855 
       
  1856 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Master.ini
       
  1857 			SHARED_ACTIVE_SCHEDULER
       
  1858 			RESTORE_OBJECT	RSdpDatabase	database	
       
  1859 			RESTORE_OBJECT	RSdp	rsdp	
       
  1860 			COMMAND		database	DeleteRecordL
       
  1861 			COMMAND		database	Close
       
  1862 			COMMAND		rsdp	Close
       
  1863 			STORE_ACTIVE_SCHEDULER
       
  1864 	END_TEST_BLOCK
       
  1865 
       
  1866 END_TESTCASE   BTSDP-AttrValUint-PublicApi-Passive-Master-3965
       
  1867 
       
  1868 
       
  1869 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveExecutionResultSamplesDatabaseActiveSlave
       
  1870 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StopTDService
       
  1871 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StopSyncService
       
  1872 
       
  1873