bluetoothapitest/bluetoothsvs/T_BTSdpAPI/scripts/BTSDP-SearchPattern-PublicApi-Unconnected.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 CSdpAttrValueURL, CSdpSearchPattern, SdpUtil,
       
    21 //!								CElementParser, CSdpAttrValueInt, CSdpAttrValueUint, RSdpDatabase, and RSdp classes
       
    22 //!								as a means of confidence that the API works as expected. 
       
    23 //!								The purpose is to provide a regression test suite of PublishedAll APIs for 
       
    24 //!								BT SDP related classes.
       
    25 //!								Negative testing is performed to confirm that correct errors are returned 
       
    26 //!								when incorrect parameters are given. The tests are fully automated.
       
    27 //! @SYMAuthor					Symbio
       
    28 //! @SYMCreationDate			21/09/2006
       
    29 ///////////////////////////////////////////////////////////////////////////////
       
    30 
       
    31 
       
    32 RUN_UTILS	MkDir	${SYSDRIVE}\bluetooth\
       
    33 RUN_UTILS	MkDir	${SYSDRIVE}\bluetooth\sdp\
       
    34 
       
    35 LOAD_SUITE	T_BTSdpAPI
       
    36 DELAY		500
       
    37 
       
    38 
       
    39 // ****************************************************************************
       
    40 // CSdpAttrValueURL
       
    41 // **************************************************************************** 
       
    42 
       
    43 START_TESTCASE BTSDP-AttrValURL-PublicApi-2001
       
    44 //! @SYMTestCaseID					BTSDP-AttrValURL-PublicApi-2001
       
    45 //! @SYMAPI							CSdpAttrValueURL
       
    46 //! @SYMTestCaseDesc				Create a CSdpAttrValueURL object
       
    47 //!									Uses API elements: NewURLL() and destructor
       
    48 //! @SYMTestActions					1. Read a URL value from test data if successful
       
    49 //!									2. Create a CSdpAttrValueURL object with the URL value using NewURLL() function.
       
    50 //!									   Return KErrNone if successed
       
    51 //!									3. Delete CSdpAttrValueURL object using destructor
       
    52 //! @SYMTestStatus					Implemented
       
    53 //! @SYMTestPriority				Low
       
    54 //! @SYMTestExpectedResults			CSdpAttrValueURL object was created successfully
       
    55 //! @SYMTestType					CIT
       
    56 
       
    57 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
    58 			CREATE_OBJECT	CSdpAttrValueURL	csdpattrvalueurl1
       
    59 			COMMAND		csdpattrvalueurl1	NewURLL		BTSDP-AttrValURL-PublicApi-2001-0001command1NewURLL
       
    60 			COMMAND		csdpattrvalueurl1	~
       
    61 	END_TEST_BLOCK
       
    62 
       
    63 END_TESTCASE BTSDP-AttrValURL-PublicApi-2001
       
    64 
       
    65 
       
    66 START_TESTCASE BTSDP-AttrValURL-PublicApi-2002
       
    67 //! @SYMTestCaseID					BTSDP-AttrValURL-PublicApi-2002
       
    68 //! @SYMAPI							CSdpAttrValueURL
       
    69 //! @SYMTestCaseDesc				Get the data type of CSdpAttrValueURL
       
    70 //!									Uses API elements: NewURLL(), Type() and destructor
       
    71 //! @SYMTestActions					1. Read a URL value from test data if successful
       
    72 //!									2. Create a CSdpAttrValueURL object with the URL value using NewURLL() function.
       
    73 //!									   Return KErrNone if successed
       
    74 //!									3. Verify the object type using Type() function. Test pass if expected type is ETypeURL
       
    75 //!									4. Delete CSdpAttrValueURL object using destructor
       
    76 //! @SYMTestStatus					Implemented
       
    77 //! @SYMTestPriority				Low
       
    78 //! @SYMTestExpectedResults			CSdpAttrValueURL type is ETypeURL
       
    79 //! @SYMTestType					CIT
       
    80 
       
    81 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
    82 			CREATE_OBJECT	CSdpAttrValueURL	csdpattrvalueurl1	
       
    83 			COMMAND		csdpattrvalueurl1	NewURLL		BTSDP-AttrValURL-PublicApi-2002-0001command1NewURLL
       
    84 			COMMAND		csdpattrvalueurl1	Type		BTSDP-AttrValURL-PublicApi-2002-0001command2Type
       
    85 			COMMAND		csdpattrvalueurl1	~
       
    86 	END_TEST_BLOCK
       
    87 
       
    88 END_TESTCASE BTSDP-AttrValURL-PublicApi-2002
       
    89 
       
    90 
       
    91 START_TESTCASE BTSDP-AttrValURL-PublicApi-2003
       
    92 //! @SYMTestCaseID					BTSDP-AttrValURL-PublicApi-2003
       
    93 //! @SYMAPI							CSdpAttrValueURL
       
    94 //! @SYMTestCaseDesc				Get a data buffer attribute value in CSdpAttrValueURL object
       
    95 //!									Uses API elements: NewURLL(), Des() and destructor
       
    96 //! @SYMTestActions					1. Read a URL value from test data if successful
       
    97 //!									2. Create a CSdpAttrValueURL object with the URL value using NewURLL() function.
       
    98 //!									   Return KErrNone if successed
       
    99 //!									3. Use Des() function to retrieve CSdpAttrValueURL object's data pointer descriptor
       
   100 //!									4. Read an input data from test data and test pass if the content in data pointer descriptor is as expected
       
   101 //!									5. Delete CSdpAttrValueURL object using destructor
       
   102 //! @SYMTestStatus					Implemented
       
   103 //! @SYMTestPriority				Low
       
   104 //! @SYMTestExpectedResults			Data buffer attribute value was matched to the expected data from test data successfully
       
   105 //! @SYMTestType					CIT
       
   106 
       
   107 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   108 			CREATE_OBJECT	CSdpAttrValueURL	csdpattrvalueurl1	
       
   109 			COMMAND		csdpattrvalueurl1	NewURLL		BTSDP-AttrValURL-PublicApi-2003-0001command1NewURLL
       
   110 			COMMAND		csdpattrvalueurl1	Des		BTSDP-AttrValURL-PublicApi-2003-0001command2Des
       
   111 			COMMAND		csdpattrvalueurl1	~
       
   112 	END_TEST_BLOCK
       
   113 
       
   114 END_TESTCASE BTSDP-AttrValURL-PublicApi-2003
       
   115 
       
   116 
       
   117 START_TESTCASE BTSDP-AttrValURL-PublicApi-2004
       
   118 //! @SYMTestCaseID					BTSDP-AttrValURL-PublicApi-2004
       
   119 //! @SYMAPI							CSdpAttrValueURL
       
   120 //! @SYMTestCaseDesc				Get the size of a CSdpAttrValueURL attribute
       
   121 //!									Uses API elements: NewURLL(), DataSize() and destructor
       
   122 //! @SYMTestActions					1. Read a URL value from test data if successful
       
   123 //!									2. Create a CSdpAttrValueURL object with the URL value using NewURLL() function.
       
   124 //!									   Return KErrNone if successed
       
   125 //!									3. Get the size of CSdpAttrValueURL object using DataSize() function
       
   126 //!									4. Read the expected size from test data and test pass if current size is as expected
       
   127 //!									5. Delete CSdpAttrValueURL object using destructor
       
   128 //! @SYMTestStatus					Implemented
       
   129 //! @SYMTestPriority				Low
       
   130 //! @SYMTestExpectedResults			Actual object size was matched to the expected size successfully
       
   131 //! @SYMTestType					CIT
       
   132 
       
   133 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   134 			CREATE_OBJECT	CSdpAttrValueURL	csdpattrvalueurl1	
       
   135 			COMMAND		csdpattrvalueurl1	NewURLL		BTSDP-AttrValURL-PublicApi-2004-0001command1NewURLL
       
   136 			COMMAND		csdpattrvalueurl1	DataSize		BTSDP-AttrValURL-PublicApi-2004-0001command2DataSize
       
   137 			COMMAND		csdpattrvalueurl1	~
       
   138 	END_TEST_BLOCK
       
   139 
       
   140 END_TESTCASE BTSDP-AttrValURL-PublicApi-2004
       
   141 
       
   142 
       
   143 START_TESTCASE BTSDP-AttrValURL-PublicApi-2005
       
   144 //! @SYMTestCaseID					BTSDP-AttrValURL-PublicApi-2005
       
   145 //! @SYMAPI							CSdpAttrValueURL
       
   146 //! @SYMTestCaseDesc				Destroy a CSdpAttrValueURL object
       
   147 //!									Uses API elements: NewURLL() and destructor
       
   148 //! @SYMTestActions					1. Read a URL value from test data if successful
       
   149 //!									2. Create a CSdpAttrValueURL object with the URL value using NewURLL() function.
       
   150 //!									   Return KErrNone if successed
       
   151 //!									3. Delete CSdpAttrValueURL object using destructor
       
   152 //! @SYMTestStatus					Implemented
       
   153 //! @SYMTestPriority				Low
       
   154 //! @SYMTestExpectedResults			CSdpAttrValueURL object was deleted successfully
       
   155 //! @SYMTestType					CIT
       
   156 
       
   157 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   158 			CREATE_OBJECT	CSdpAttrValueURL	csdpattrvalueurl1	
       
   159 			COMMAND		csdpattrvalueurl1	NewURLL		BTSDP-AttrValURL-PublicApi-2005-0001command1NewURLL
       
   160 			COMMAND		csdpattrvalueurl1	~
       
   161 	END_TEST_BLOCK
       
   162 
       
   163 END_TESTCASE BTSDP-AttrValURL-PublicApi-2005
       
   164 
       
   165 
       
   166 // ****************************************************************************
       
   167 // Testing virtual functions inherited from CSdpAttrValue
       
   168 // ****************************************************************************
       
   169 
       
   170 START_TESTCASE BTSDP-AttrValURL-PublicApi-2006
       
   171 //! @SYMTestCaseID					BTSDP-AttrValURL-PublicApi-2006
       
   172 //! @SYMAPI							CSdpAttrValueURL, CSdpAttrValue and MSdpAttributeValueVisitor
       
   173 //! @SYMTestCaseDesc				Request a call back to pass the attribute value
       
   174 //!									Uses API elements: NewURLL(), AcceptVisitorL(), VisitAttributeValueL() 
       
   175 //!									and destructor
       
   176 //! @SYMTestActions					1. Read a URL value from test data if successful
       
   177 //!									2. Create a CSdpAttrValueURL object with the URL value using NewURLL() function.
       
   178 //!									   Return KErrNone if successed
       
   179 //!									3. Test AcceptVisitorL() function to pass the object itself. Return KErrNone if successed
       
   180 //!									   Also check actual attribute types if successful
       
   181 //!									4. Delete CSdpAttrValueURL object using destructor
       
   182 //! @SYMTestStatus					Implemented
       
   183 //! @SYMTestPriority				Low
       
   184 //! @SYMTestExpectedResults			CSdpAttrValueURL object type itself returned
       
   185 //! @SYMTestType					CIT
       
   186 
       
   187 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   188 			CREATE_OBJECT	CSdpAttrValueURL	csdpattrvalueurl1	
       
   189 			COMMAND		csdpattrvalueurl1	NewURLL		BTSDP-AttrValURL-PublicApi-2006-0001command1NewURLL
       
   190 			COMMAND		csdpattrvalueurl1	AcceptVisitorL		BTSDP-AttrValURL-PublicApi-2006-0001command2AcceptVisitorL
       
   191 			COMMAND		csdpattrvalueurl1	~
       
   192 	END_TEST_BLOCK
       
   193 
       
   194 END_TESTCASE BTSDP-AttrValURL-PublicApi-2006
       
   195 
       
   196 
       
   197 START_TESTCASE BTSDP-AttrValURL-PublicApi-2007
       
   198 //! @SYMTestCaseID					BTSDP-AttrValURL-PublicApi-2007
       
   199 //! @SYMAPI							CSdpAttrValueURL and CSdpAttrValue
       
   200 //! @SYMTestCaseDesc				Call CSdpAttrValue's Bool() function to get a Boolean attribute value
       
   201 //!									Uses API elements: NewURLL() and Bool()
       
   202 //! @SYMTestActions					1. Read a URL value from test data if successful
       
   203 //!									2. Create a CSdpAttrValueURL object with the URL value using NewURLL() function.
       
   204 //!									   Return KErrNone if successed
       
   205 //!									3. Call CSdpAttrValue's Bool() function and catch a panic if panic is thrown out
       
   206 //! @SYMTestStatus					Implemented
       
   207 //! @SYMTestPriority				Low
       
   208 //! @SYMTestExpectedResults			Caught a panic
       
   209 //! @SYMTestType					CIT
       
   210 
       
   211 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   212 			CREATE_OBJECT	CSdpAttrValueURL	csdpattrvalueurl1	
       
   213 			COMMAND		csdpattrvalueurl1	NewURLL		BTSDP-AttrValURL-PublicApi-2007-0001command1NewURLL
       
   214 			COMMAND		csdpattrvalueurl1	Bool
       
   215 	END_TEST_BLOCK	!PanicCode=0	!PanicString=SDP-Database
       
   216 
       
   217 END_TESTCASE BTSDP-AttrValURL-PublicApi-2007
       
   218 
       
   219 
       
   220 START_TESTCASE BTSDP-AttrValURL-PublicApi-2008
       
   221 //! @SYMTestCaseID					BTSDP-AttrValURL-PublicApi-2008
       
   222 //! @SYMAPI							CSdpAttrValueURL and CSdpAttrValue
       
   223 //! @SYMTestCaseDesc				Test if CSdpAttrValueURL attribute can be stored in an integer value
       
   224 //!									Uses API elements: NewURLL(), DoesIntFit() and destructor
       
   225 //! @SYMTestActions					1. Read a URL value from test data if successful
       
   226 //!									2. Create a CSdpAttrValueURL object with the URL value using NewURLL() function.
       
   227 //!									   Return KErrNone if successed
       
   228 //!									3. Verify that CSdpAttrValueURL object cannot hold integer value using DoesIntFit() function
       
   229 //!									4. Read an expected result, False from test data and compare results. Test pass if results are matched
       
   230 //!									5. Delete CSdpAttrValueURL object using destructor
       
   231 //! @SYMTestStatus					Implemented
       
   232 //! @SYMTestPriority				Low
       
   233 //! @SYMTestExpectedResults			CSdpAttrValueURL attribute cannot be stored in an integer value and EFalse returned
       
   234 //! @SYMTestType					CIT
       
   235 
       
   236 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   237 			CREATE_OBJECT	CSdpAttrValueURL	csdpattrvalueurl1	
       
   238 			COMMAND		csdpattrvalueurl1	NewURLL		BTSDP-AttrValURL-PublicApi-2008-0001command1NewURLL
       
   239 			COMMAND		csdpattrvalueurl1	DoesIntFit		BTSDP-AttrValURL-PublicApi-2008-0001command2DoesIntFit
       
   240 			COMMAND		csdpattrvalueurl1	~
       
   241 	END_TEST_BLOCK
       
   242 
       
   243 END_TESTCASE BTSDP-AttrValURL-PublicApi-2008
       
   244 
       
   245 
       
   246 START_TESTCASE BTSDP-AttrValURL-PublicApi-2009
       
   247 //! @SYMTestCaseID					BTSDP-AttrValURL-PublicApi-2009
       
   248 //! @SYMAPI							CSdpAttrValueURL and CSdpAttrValue
       
   249 //! @SYMTestCaseDesc				Call CSdpAttrValue's Int() function to get a signed integer attribute value
       
   250 //!									Uses API elements: NewURLL() and Int()
       
   251 //! @SYMTestActions					1. Read a URL value from test data if successful
       
   252 //!									2. Create a CSdpAttrValueURL object with the URL value using NewURLL() function.
       
   253 //!									   Return KErrNone if successed
       
   254 //!									3. Call CSdpAttrValue's Int() function and catch a panic if panic is thrown out
       
   255 //! @SYMTestStatus					Implemented
       
   256 //! @SYMTestPriority				Low
       
   257 //! @SYMTestExpectedResults			Caught a panic
       
   258 //! @SYMTestType					CIT
       
   259 
       
   260 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   261 			CREATE_OBJECT	CSdpAttrValueURL	csdpattrvalueurl1	
       
   262 			COMMAND		csdpattrvalueurl1	NewURLL		BTSDP-AttrValURL-PublicApi-2009-0001command1NewURLL
       
   263 			COMMAND		csdpattrvalueurl1	Int
       
   264 	END_TEST_BLOCK	!PanicCode=0	!PanicString=SDP-Database
       
   265 
       
   266 END_TESTCASE BTSDP-AttrValURL-PublicApi-2009
       
   267 
       
   268 
       
   269 START_TESTCASE BTSDP-AttrValURL-PublicApi-2010
       
   270 //! @SYMTestCaseID					BTSDP-AttrValURL-PublicApi-2010
       
   271 //! @SYMAPI							CSdpAttrValueURL and CSdpAttrValue
       
   272 //! @SYMTestCaseDesc				Call CSdpAttrValue's UUID() function to get a UUID attribute value
       
   273 //!									Uses API elements: NewURLL() and UUID()
       
   274 //! @SYMTestActions					1. Read a URL value from test data if successful
       
   275 //!									2. Create a CSdpAttrValueURL object with the URL value using NewURLL() function.
       
   276 //!									   Return KErrNone if successed
       
   277 //!									3. Call CSdpAttrValue's UUID() function and catch a panic if panic is thrown out
       
   278 //! @SYMTestStatus					Implemented
       
   279 //! @SYMTestPriority				Low
       
   280 //! @SYMTestExpectedResults			Caught a panic
       
   281 //! @SYMTestType					CIT
       
   282 
       
   283 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   284 			CREATE_OBJECT	CSdpAttrValueURL	csdpattrvalueurl1	
       
   285 			COMMAND		csdpattrvalueurl1	NewURLL		BTSDP-AttrValURL-PublicApi-2010-0001command1NewURLL
       
   286 			COMMAND		csdpattrvalueurl1	UUID
       
   287 	END_TEST_BLOCK	!PanicCode=0	!PanicString=SDP-Database
       
   288 
       
   289 END_TESTCASE BTSDP-AttrValURL-PublicApi-2010
       
   290 
       
   291 
       
   292 START_TESTCASE BTSDP-AttrValURL-PublicApi-2011
       
   293 //! @SYMTestCaseID					BTSDP-AttrValURL-PublicApi-2011
       
   294 //! @SYMAPI							CSdpAttrValueURL and CSdpAttrValue
       
   295 //! @SYMTestCaseDesc				Call CSdpAttrValue's Uint() function to get an unsigned integer attribute value
       
   296 //!									Uses API elements: NewURLL() and Uint()
       
   297 //! @SYMTestActions					1. Read a URL value from test data if successful
       
   298 //!									2. Create a CSdpAttrValueURL object with the URL value using NewURLL() function.
       
   299 //!									   Return KErrNone if successed
       
   300 //!									3. Call CSdpAttrValue's Uint() function and catch a panic if panic is thrown out
       
   301 //! @SYMTestStatus					Implemented
       
   302 //! @SYMTestPriority				Low
       
   303 //! @SYMTestExpectedResults			Caught a panic
       
   304 //! @SYMTestType					CIT
       
   305 
       
   306 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   307 			CREATE_OBJECT	CSdpAttrValueURL	csdpattrvalueurl1	
       
   308 			COMMAND		csdpattrvalueurl1	NewURLL		BTSDP-AttrValURL-PublicApi-2011-0001command1NewURLL
       
   309 			COMMAND		csdpattrvalueurl1	Uint
       
   310 	END_TEST_BLOCK	!PanicCode=0	!PanicString=SDP-Database
       
   311 
       
   312 END_TESTCASE BTSDP-AttrValURL-PublicApi-2011
       
   313 
       
   314 
       
   315 // ****************************************************************************
       
   316 // Negative test cases
       
   317 // ****************************************************************************
       
   318 
       
   319 //!START_TESTCASE BTSDP-AttrValURL-PublicApi-2012
       
   320 //! @SYMTestCaseID					BTSDP-AttrValURL-PublicApi-2012
       
   321 //! @SYMAPI							CSdpAttrValueURL
       
   322 //! @SYMTestCaseDesc				Get the data type of CSdpAttrValueURL
       
   323 //!									Uses API elements: Type()
       
   324 //! @SYMTestActions					1. Verify the object type using Type() function. Catch a panic if panic is thrown out
       
   325 //! @SYMTestStatus					Implemented
       
   326 //! @SYMTestPriority				Low
       
   327 //! @SYMTestExpectedResults			Caught a panic
       
   328 //! @SYMTestType					CIT
       
   329 
       
   330 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   331 //!			CREATE_OBJECT	CSdpAttrValueURL	csdpattrvalueurl1	
       
   332 //!			COMMAND		csdpattrvalueurl1	Type
       
   333 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
   334 
       
   335 //!END_TESTCASE BTSDP-AttrValURL-PublicApi-2012
       
   336 
       
   337 
       
   338 //!START_TESTCASE BTSDP-AttrValURL-PublicApi-2013
       
   339 //! @SYMTestCaseID					BTSDP-AttrValURL-PublicApi-2013
       
   340 //! @SYMAPI							CSdpAttrValueURL
       
   341 //! @SYMTestCaseDesc				Get a data buffer attribute value in CSdpAttrValueURL object
       
   342 //!									Uses API elements: Des()
       
   343 //! @SYMTestActions					1. Use Des() function to retrieve CSdpAttrValueURL object's data pointer descriptor.
       
   344 //!									   Catch a panic if panic is thrown out
       
   345 //! @SYMTestStatus					Implemented
       
   346 //! @SYMTestPriority				Low
       
   347 //! @SYMTestExpectedResults			Caught a panic
       
   348 //! @SYMTestType					CIT
       
   349 
       
   350 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   351 //!			CREATE_OBJECT	CSdpAttrValueURL	csdpattrvalueurl1	
       
   352 //!			COMMAND		csdpattrvalueurl1	Des
       
   353 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
   354 
       
   355 //!END_TESTCASE BTSDP-AttrValURL-PublicApi-2013
       
   356 
       
   357 
       
   358 //!START_TESTCASE BTSDP-AttrValURL-PublicApi-2014
       
   359 //! @SYMTestCaseID					BTSDP-AttrValURL-PublicApi-2014
       
   360 //! @SYMAPI							CSdpAttrValueURL
       
   361 //! @SYMTestCaseDesc				Get the size of a CSdpAttrValueURL attribute
       
   362 //!									Uses API elements: DataSize()
       
   363 //! @SYMTestActions					1. Get the size of CSdpAttrValueURL object using DataSize() function.
       
   364 //!									   Catch a panic if panic is thrown out
       
   365 //! @SYMTestStatus					Implemented
       
   366 //! @SYMTestPriority				Low
       
   367 //! @SYMTestExpectedResults			Caught a panic
       
   368 //! @SYMTestType					CIT
       
   369 
       
   370 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   371 //!			CREATE_OBJECT	CSdpAttrValueURL	csdpattrvalueurl1	
       
   372 //!			COMMAND		csdpattrvalueurl1	DataSize
       
   373 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
   374 
       
   375 //!END_TESTCASE BTSDP-AttrValURL-PublicApi-2014
       
   376 
       
   377 
       
   378 //!START_TESTCASE BTSDP-AttrValURL-PublicApi-2015
       
   379 //! @SYMTestCaseID					BTSDP-AttrValURL-PublicApi-2015
       
   380 //! @SYMAPI							CSdpAttrValue
       
   381 //! @SYMTestCaseDesc				Request a call back to pass the attribute value
       
   382 //!									Uses API elements: AcceptVisitorL()
       
   383 //!									and destructor
       
   384 //! @SYMTestActions					1. Test AcceptVisitorL() function to pass the object itself. Catch a panic if panic is thrown out
       
   385 //! @SYMTestStatus					Implemented
       
   386 //! @SYMTestPriority				Low
       
   387 //! @SYMTestExpectedResults			Caught a panic
       
   388 //! @SYMTestType					CIT
       
   389 
       
   390 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   391 //!			CREATE_OBJECT	CSdpAttrValueURL	csdpattrvalueurl1	
       
   392 //!			COMMAND		csdpattrvalueurl1	AcceptVisitorL
       
   393 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
   394 
       
   395 //!END_TESTCASE BTSDP-AttrValURL-PublicApi-2015
       
   396 
       
   397 
       
   398 //!START_TESTCASE BTSDP-AttrValURL-PublicApi-2016
       
   399 //! @SYMTestCaseID					BTSDP-AttrValURL-PublicApi-2016
       
   400 //! @SYMAPI							CSdpAttrValue
       
   401 //! @SYMTestCaseDesc				Test if CSdpAttrValueURL attribute can be stored in an integer value
       
   402 //!									Uses API elements: NewURLL(), DoesIntFit() and destructor
       
   403 //! @SYMTestActions					1. Verify that CSdpAttrValueURL object cannot hold integer value using DoesIntFit() function.
       
   404 //!									   Catch a panic if panic is thrown out
       
   405 //! @SYMTestStatus					Implemented
       
   406 //! @SYMTestPriority				Low
       
   407 //! @SYMTestExpectedResults			Caught a panic
       
   408 //! @SYMTestType					CIT
       
   409 
       
   410 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   411 //!			CREATE_OBJECT	CSdpAttrValueURL	csdpattrvalueurl1	
       
   412 //!			COMMAND		csdpattrvalueurl1	DoesIntFit
       
   413 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
   414 
       
   415 //!END_TESTCASE BTSDP-AttrValURL-PublicApi-2016
       
   416 
       
   417 
       
   418 
       
   419 // ****************************************************************************
       
   420 // CSdpSearchPattern
       
   421 // **************************************************************************** 
       
   422 
       
   423 START_TESTCASE BTSDP-SearchPattern-PublicApi-2101
       
   424 //! @SYMTestCaseID					BTSDP-SearchPattern-PublicApi-2101
       
   425 //! @SYMAPI							CSdpSearchPattern
       
   426 //! @SYMTestCaseDesc				Create a CSdpSearchPattern object
       
   427 //!									Uses API elements: NewL() and destructor
       
   428 //! @SYMTestActions					1. Allocate and construct a new CSdpSearchPattern object using NewL() function.
       
   429 //!									   Return KErrNone if successed
       
   430 //!									2. Delete CSdpSearchPattern object using destructor
       
   431 //! @SYMTestStatus					Implemented
       
   432 //! @SYMTestPriority				Low
       
   433 //! @SYMTestExpectedResults			CSdpSearchPattern object was created successfully
       
   434 //! @SYMTestType					CIT
       
   435 
       
   436 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   437 			CREATE_OBJECT	CSdpSearchPattern	csdpsearchpattern1	
       
   438 			COMMAND		csdpsearchpattern1	NewL
       
   439 			COMMAND		csdpsearchpattern1	~
       
   440 	END_TEST_BLOCK
       
   441 
       
   442 END_TESTCASE BTSDP-SearchPattern-PublicApi-2101
       
   443 
       
   444 
       
   445 START_TESTCASE BTSDP-SearchPattern-PublicApi-2102
       
   446 //! @SYMTestCaseID					BTSDP-SearchPattern-PublicApi-2102
       
   447 //! @SYMAPI							CSdpSearchPattern
       
   448 //! @SYMTestCaseDesc				Allocate a new UUID array
       
   449 //!									Uses API elements: NewL(), ConstructL() and destructor
       
   450 //! @SYMTestActions					1. Allocate and construct a new CSdpSearchPattern object using NewL() function.
       
   451 //!									   Return KErrNone if successed
       
   452 //!									2. Allocate a new UUID array using ConstructL() function. Return KErrNone if successed
       
   453 //!									3. Delete CSdpSearchPattern object using destructor
       
   454 //! @SYMTestStatus					Implemented
       
   455 //! @SYMTestPriority				Low
       
   456 //! @SYMTestExpectedResults			The new UUID array was created successfully
       
   457 //! @SYMTestType					CIT
       
   458 
       
   459 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   460 			CREATE_OBJECT	CSdpSearchPattern	csdpsearchpattern1	
       
   461 			COMMAND		csdpsearchpattern1	NewL
       
   462 			COMMAND		csdpsearchpattern1	ConstructL
       
   463 			COMMAND		csdpsearchpattern1	~
       
   464 	END_TEST_BLOCK
       
   465 
       
   466 END_TESTCASE BTSDP-SearchPattern-PublicApi-2102
       
   467 
       
   468 
       
   469 START_TESTCASE BTSDP-SearchPattern-PublicApi-2103
       
   470 //! @SYMTestCaseID					BTSDP-SearchPattern-PublicApi-2103
       
   471 //! @SYMAPI							CSdpSearchPattern
       
   472 //! @SYMTestCaseDesc				Add a UID to the list
       
   473 //!									Uses API elements: NewL(), ConstructL(), AddL() and destructor
       
   474 //! @SYMTestActions					1. Allocate and construct a new CSdpSearchPattern object using NewL() function.
       
   475 //!									   Return KErrNone if successed
       
   476 //!									2. Allocate a new UUID array using ConstructL() function. Return KErrNone if successed
       
   477 //!									3. Read 2 non-existent UUIDs from test data if successed
       
   478 //!									4. Add the 2 non-existent UUIDs to the list using AddL() function. Return KErrNone if successed
       
   479 //!									5. Read the expected values from test data and test pass if the positions are as expected
       
   480 //!									6. Read an existent UUID from test data if successed
       
   481 //!									7. Add the existent UUID to the list using AddL() function. Return KErrNone if successed
       
   482 //!									8. Read the expected value from test data and test pass if the position is as expected
       
   483 //!									9. Delete CSdpSearchPattern object using destructor
       
   484 //! @SYMTestStatus					Implemented
       
   485 //! @SYMTestPriority				Low
       
   486 //! @SYMTestExpectedResults			The positions were matched to the expected. In step 4 the 2 UUIDs were inserted to the list, but the UUID in step 7 wasn't
       
   487 //! @SYMTestType					CIT
       
   488 
       
   489 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   490 			CREATE_OBJECT	CSdpSearchPattern	csdpsearchpattern1	
       
   491 			COMMAND		csdpsearchpattern1	NewL
       
   492 			COMMAND		csdpsearchpattern1	ConstructL
       
   493 			COMMAND		csdpsearchpattern1	AddL		BTSDP-SearchPattern-PublicApi-2103-0001command3AddL
       
   494 			COMMAND		csdpsearchpattern1	AddL		BTSDP-SearchPattern-PublicApi-2103-0001command4AddL
       
   495 			COMMAND		csdpsearchpattern1	AddL		BTSDP-SearchPattern-PublicApi-2103-0001command5AddL
       
   496 			COMMAND		csdpsearchpattern1	~
       
   497 	END_TEST_BLOCK
       
   498 
       
   499 END_TESTCASE BTSDP-SearchPattern-PublicApi-2103
       
   500 
       
   501 
       
   502 START_TESTCASE BTSDP-SearchPattern-PublicApi-2104
       
   503 //! @SYMTestCaseID					BTSDP-SearchPattern-PublicApi-2104
       
   504 //! @SYMAPI							CSdpSearchPattern
       
   505 //! @SYMTestCaseDesc				Remove a UUID from the list
       
   506 //!									Uses API elements: NewL(), ConstructL(), AddL(), Remove() and destructor
       
   507 //! @SYMTestActions					1. Allocate and construct a new CSdpSearchPattern object using NewL() function.
       
   508 //!									   Return KErrNone if successed
       
   509 //!									2. Allocate a new UUID array using ConstructL() function. Return KErrNone if successed
       
   510 //!									3. Read 3 non-existent UUIDs from test data if successed
       
   511 //!									4. Add the 3 UUIDs to the list using AddL() function. Return KErrNone if successed
       
   512 //!									5. Remove an existent UUID from the list using Remove() function
       
   513 //!									6. Read the expected value from test data and test pass if the position is as expected
       
   514 //!									7. Remove an non-existent UUID from the list using Remove() function
       
   515 //!									8. Read the expected value from test data and test pass if the position is as expected
       
   516 //!									9. Delete CSdpSearchPattern object using destructor
       
   517 //! @SYMTestStatus					Implemented
       
   518 //! @SYMTestPriority				Low
       
   519 //! @SYMTestExpectedResults			The positions were matched to the expected. In step 5 the UUID was removed, but the UUID in step 7 wasn't
       
   520 //! @SYMTestType					CIT
       
   521 
       
   522 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   523 			CREATE_OBJECT	CSdpSearchPattern	csdpsearchpattern1	
       
   524 			COMMAND		csdpsearchpattern1	NewL
       
   525 			COMMAND		csdpsearchpattern1	ConstructL
       
   526 			COMMAND		csdpsearchpattern1	AddL		BTSDP-SearchPattern-PublicApi-2104-0001command3AddL
       
   527 			COMMAND		csdpsearchpattern1	AddL		BTSDP-SearchPattern-PublicApi-2104-0001command4AddL
       
   528 			COMMAND		csdpsearchpattern1	AddL		BTSDP-SearchPattern-PublicApi-2104-0001command5AddL
       
   529 			COMMAND		csdpsearchpattern1	Remove		BTSDP-SearchPattern-PublicApi-2104-0001command6Remove
       
   530 			COMMAND		csdpsearchpattern1	Remove		BTSDP-SearchPattern-PublicApi-2104-0001command7Remove
       
   531 			COMMAND		csdpsearchpattern1	~
       
   532 	END_TEST_BLOCK
       
   533 
       
   534 END_TESTCASE BTSDP-SearchPattern-PublicApi-2104
       
   535 
       
   536 
       
   537 START_TESTCASE BTSDP-SearchPattern-PublicApi-2105
       
   538 //! @SYMTestCaseID					BTSDP-SearchPattern-PublicApi-2105
       
   539 //! @SYMAPI							CSdpSearchPattern
       
   540 //! @SYMTestCaseDesc				Get the position of the specified UUID in the list
       
   541 //!									Uses API elements: NewL(), ConstructL(), AddL(), Find() and destructor
       
   542 //! @SYMTestActions					1. Allocate and construct a new CSdpSearchPattern object using NewL() function.
       
   543 //!									   Return KErrNone if successed
       
   544 //!									2. Allocate a new UUID array using ConstructL() function. Return KErrNone if successed
       
   545 //!									3. Read 2 non-existent UUIDs from test data if successed
       
   546 //!									4. Add the 2 UUIDs to the list using AddL() function. Return KErrNone if successed
       
   547 //!									5. Get the positions of an existent UUID in the list using Find() function
       
   548 //!									6. Read the expected values from test data and test pass if the position is as expected and the UUID can be found
       
   549 //!									7. Get the positions of an non-existent UUID in the list using Find() function
       
   550 //!									8. Read the expected values from test data and test pass if the position is as expected and the UUID can be found
       
   551 //!									9. Delete CSdpSearchPattern object using destructor
       
   552 //! @SYMTestStatus					Implemented
       
   553 //! @SYMTestPriority				Low
       
   554 //! @SYMTestExpectedResults			The positions were matched to the expected. In step 5 the UUID was found, but the UUID in step 7 wasn't
       
   555 //! @SYMTestType					CIT
       
   556 
       
   557 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   558 			CREATE_OBJECT	CSdpSearchPattern	csdpsearchpattern1	
       
   559 			COMMAND		csdpsearchpattern1	NewL
       
   560 			COMMAND		csdpsearchpattern1	ConstructL
       
   561 			COMMAND		csdpsearchpattern1	AddL		BTSDP-SearchPattern-PublicApi-2105-0001command3AddL
       
   562 			COMMAND		csdpsearchpattern1	AddL		BTSDP-SearchPattern-PublicApi-2105-0001command4AddL
       
   563 			COMMAND		csdpsearchpattern1	Find		BTSDP-SearchPattern-PublicApi-2105-0001command5Find
       
   564 			COMMAND		csdpsearchpattern1	Find		BTSDP-SearchPattern-PublicApi-2105-0001command6Find
       
   565 			COMMAND		csdpsearchpattern1	~
       
   566 	END_TEST_BLOCK
       
   567 
       
   568 END_TESTCASE BTSDP-SearchPattern-PublicApi-2105
       
   569 
       
   570 
       
   571 START_TESTCASE BTSDP-SearchPattern-PublicApi-2106
       
   572 //! @SYMTestCaseID					BTSDP-SearchPattern-PublicApi-2106
       
   573 //! @SYMAPI							CSdpSearchPattern
       
   574 //! @SYMTestCaseDesc				Get the number of UUIDs in the list
       
   575 //!									Uses API elements: NewL(), ConstructL(), AddL(), Count() and destructor
       
   576 //! @SYMTestActions					1. Allocate and construct a new CSdpSearchPattern object using NewL() function.
       
   577 //!									   Return KErrNone if successed
       
   578 //!									2. Allocate a new UUID array using ConstructL() function. Return KErrNone if successed
       
   579 //!									3. Read 2 non-existent UUIDs from test data if successed
       
   580 //!									4. Add the 2 UUIDs to the list using AddL() function. Return KErrNone if successed
       
   581 //!									5. Get the number of UUIDs in the list using Count() function
       
   582 //!									6. Read the expected value from test data and test pass if the number of UUIDs in the list is as expected
       
   583 //!									7. Delete CSdpSearchPattern object using destructor
       
   584 //! @SYMTestStatus					Implemented
       
   585 //! @SYMTestPriority				Low
       
   586 //! @SYMTestExpectedResults			The number of UUIDs in the list was matched to the expected
       
   587 //! @SYMTestType					CIT
       
   588 
       
   589 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   590 			CREATE_OBJECT	CSdpSearchPattern	csdpsearchpattern1	
       
   591 			COMMAND		csdpsearchpattern1	NewL
       
   592 			COMMAND		csdpsearchpattern1	ConstructL
       
   593 			COMMAND		csdpsearchpattern1	AddL		BTSDP-SearchPattern-PublicApi-2106-0001command3AddL
       
   594 			COMMAND		csdpsearchpattern1	AddL		BTSDP-SearchPattern-PublicApi-2106-0001command4AddL
       
   595 			COMMAND		csdpsearchpattern1	Count		BTSDP-SearchPattern-PublicApi-2106-0001command5Count
       
   596 			COMMAND		csdpsearchpattern1	~
       
   597 	END_TEST_BLOCK
       
   598 
       
   599 END_TESTCASE BTSDP-SearchPattern-PublicApi-2106
       
   600 
       
   601 
       
   602 START_TESTCASE BTSDP-SearchPattern-PublicApi-2107
       
   603 //! @SYMTestCaseID					BTSDP-SearchPattern-PublicApi-2107
       
   604 //! @SYMAPI							CSdpSearchPattern
       
   605 //! @SYMTestCaseDesc				Get the UUID at the specified position in the list
       
   606 //!									Uses API elements: NewL(), ConstructL(), AddL(), At() and destructor
       
   607 //! @SYMTestActions					1. Allocate and construct a new CSdpSearchPattern object using NewL() function.
       
   608 //!									   Return KErrNone if successed
       
   609 //!									2. Allocate a new UUID array using ConstructL() function. Return KErrNone if successed
       
   610 //!									3. Read 2 non-existent UUIDs from test data if successed
       
   611 //!									4. Add the 2 UUIDs to the list using AddL() function. Return KErrNone if successed
       
   612 //!									5. Get the UUID at the specified position in the list using At() function
       
   613 //!									6. Read the expected value from test data and test pass if the UUID is as expected
       
   614 //!									7. Delete CSdpSearchPattern object using destructor
       
   615 //! @SYMTestStatus					Implemented
       
   616 //! @SYMTestPriority				Low
       
   617 //! @SYMTestExpectedResults			The UUID was matched to the expected
       
   618 //! @SYMTestType					CIT
       
   619 
       
   620 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   621 			CREATE_OBJECT	CSdpSearchPattern	csdpsearchpattern1	
       
   622 			COMMAND		csdpsearchpattern1	NewL
       
   623 			COMMAND		csdpsearchpattern1	ConstructL
       
   624 			COMMAND		csdpsearchpattern1	AddL		BTSDP-SearchPattern-PublicApi-2107-0001command3AddL
       
   625 			COMMAND		csdpsearchpattern1	AddL		BTSDP-SearchPattern-PublicApi-2107-0001command4AddL
       
   626 			COMMAND		csdpsearchpattern1	At		BTSDP-SearchPattern-PublicApi-2107-0001command5At
       
   627 			COMMAND		csdpsearchpattern1	~
       
   628 	END_TEST_BLOCK
       
   629 
       
   630 END_TESTCASE BTSDP-SearchPattern-PublicApi-2107
       
   631 
       
   632 
       
   633 START_TESTCASE BTSDP-SearchPattern-PublicApi-2108
       
   634 //! @SYMTestCaseID					BTSDP-SearchPattern-PublicApi-2108
       
   635 //! @SYMAPI							CSdpSearchPattern
       
   636 //! @SYMTestCaseDesc				Remove all UUIDs from the list
       
   637 //!									Uses API elements: NewL(), ConstructL(), AddL(), Reset() and destructor
       
   638 //! @SYMTestActions					1. Allocate and construct a new CSdpSearchPattern object using NewL() function.
       
   639 //!									   Return KErrNone if successed
       
   640 //!									2. Allocate a new UUID array using ConstructL() function. Return KErrNone if successed
       
   641 //!									3. Read 2 non-existent UUIDs from test data if successed
       
   642 //!									4. Add the 2 UUIDs to the list using AddL() function. Return KErrNone if successed
       
   643 //!									5. Remove all UUIDs from the list using Reset() function
       
   644 //!									6. Delete CSdpSearchPattern object using destructor
       
   645 //! @SYMTestStatus					Implemented
       
   646 //! @SYMTestPriority				Low
       
   647 //! @SYMTestExpectedResults			All UUIDs in the list were removed
       
   648 //! @SYMTestType					CIT
       
   649 
       
   650 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   651 			CREATE_OBJECT	CSdpSearchPattern	csdpsearchpattern1	
       
   652 			COMMAND		csdpsearchpattern1	NewL
       
   653 			COMMAND		csdpsearchpattern1	ConstructL
       
   654 			COMMAND		csdpsearchpattern1	AddL		BTSDP-SearchPattern-PublicApi-2108-0001command3AddL
       
   655 			COMMAND		csdpsearchpattern1	AddL		BTSDP-SearchPattern-PublicApi-2108-0001command4AddL
       
   656 			COMMAND		csdpsearchpattern1	Reset
       
   657 			COMMAND		csdpsearchpattern1	~
       
   658 	END_TEST_BLOCK
       
   659 
       
   660 END_TESTCASE BTSDP-SearchPattern-PublicApi-2108
       
   661 
       
   662 
       
   663 START_TESTCASE BTSDP-SearchPattern-PublicApi-2109
       
   664 //! @SYMTestCaseID					BTSDP-SearchPattern-PublicApi-2109
       
   665 //! @SYMAPI							CSdpSearchPattern
       
   666 //! @SYMTestCaseDesc				Test if the list is empty
       
   667 //!									Uses API elements: NewL(), ConstructL(), AddL(), Reset(), IsEmpty() and destructor
       
   668 //! @SYMTestActions					1. Allocate and construct a new CSdpSearchPattern object using NewL() function.
       
   669 //!									   Return KErrNone if successed
       
   670 //!									2. Allocate a new UUID array using ConstructL() function. Return KErrNone if successed
       
   671 //!									3. Read a non-existent UUIDs from test data if successed
       
   672 //!									4. Add the UUID to the list using AddL() function. Return KErrNone if successed
       
   673 //!									5. Remove all UUIDs from the list using Reset() function
       
   674 //!									6. Check if the list is empty using IsEmpty() function
       
   675 //!									7. Read the expected value, True from test data and test pass if result is as expected
       
   676 //!									8. Delete CSdpSearchPattern object using destructor
       
   677 //! @SYMTestStatus					Implemented
       
   678 //! @SYMTestPriority				Low
       
   679 //! @SYMTestExpectedResults			The list was empty and result was matched to the expected
       
   680 //! @SYMTestType					CIT
       
   681 
       
   682 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   683 			CREATE_OBJECT	CSdpSearchPattern	csdpsearchpattern1	
       
   684 			COMMAND		csdpsearchpattern1	NewL
       
   685 			COMMAND		csdpsearchpattern1	ConstructL
       
   686 			COMMAND		csdpsearchpattern1	AddL		BTSDP-SearchPattern-PublicApi-2109-0001command3AddL
       
   687 			COMMAND		csdpsearchpattern1	Reset
       
   688 			COMMAND		csdpsearchpattern1	IsEmpty		BTSDP-SearchPattern-PublicApi-2109-0001command5IsEmpty
       
   689 			COMMAND		csdpsearchpattern1	~
       
   690 	END_TEST_BLOCK
       
   691 
       
   692 END_TESTCASE BTSDP-SearchPattern-PublicApi-2109
       
   693 
       
   694 
       
   695 START_TESTCASE BTSDP-SearchPattern-PublicApi-2110
       
   696 //! @SYMTestCaseID					BTSDP-SearchPattern-PublicApi-2110
       
   697 //! @SYMAPI							CSdpSearchPattern
       
   698 //! @SYMTestCaseDesc				Destroy CSdpSearchPattern object
       
   699 //!									Uses API elements: NewL(), ConstructL(), AddL() and destructor
       
   700 //! @SYMTestActions					1. Allocate and construct a new CSdpSearchPattern object using NewL() function.
       
   701 //!									   Return KErrNone if successed
       
   702 //!									2. Allocate a new UUID array using ConstructL() function. Return KErrNone if successed
       
   703 //!									3. Read 2 non-existent UUIDs from test data if successed
       
   704 //!									4. Add the 2 UUIDs to the list using AddL() function. Return KErrNone if successed
       
   705 //!									5. Delete CSdpSearchPattern object using destructor
       
   706 //! @SYMTestStatus					Implemented
       
   707 //! @SYMTestPriority				Low
       
   708 //! @SYMTestExpectedResults			CSdpSearchPattern object was deleted
       
   709 //! @SYMTestType					CIT
       
   710 
       
   711 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   712 			CREATE_OBJECT	CSdpSearchPattern	csdpsearchpattern1	
       
   713 			COMMAND		csdpsearchpattern1	NewL
       
   714 			COMMAND		csdpsearchpattern1	ConstructL
       
   715 			COMMAND		csdpsearchpattern1	AddL		BTSDP-SearchPattern-PublicApi-2110-0001command3AddL
       
   716 			COMMAND		csdpsearchpattern1	AddL		BTSDP-SearchPattern-PublicApi-2110-0001command4AddL
       
   717 			COMMAND		csdpsearchpattern1	~
       
   718 	END_TEST_BLOCK
       
   719 
       
   720 END_TESTCASE BTSDP-SearchPattern-PublicApi-2110
       
   721 
       
   722 
       
   723 // ****************************************************************************
       
   724 // Testing virtual functions inherited from MSdpElementBuilder
       
   725 // ****************************************************************************
       
   726 
       
   727 START_TESTCASE BTSDP-SearchPattern-PublicApi-2111
       
   728 //! @SYMTestCaseID					BTSDP-SearchPattern-PublicApi-2111
       
   729 //! @SYMAPI							CSdpSearchPattern and MSdpElementBuilder
       
   730 //! @SYMTestCaseDesc				Call MSdpElementBuilder's BuildBooleanL() function to add a Boolean element
       
   731 //!									Uses API elements: NewL(), ConstructL(), AddL(), BuildBooleanL() and destructor
       
   732 //! @SYMTestActions					1. Allocate and construct a new CSdpSearchPattern object using NewL() function.
       
   733 //!									   Return KErrNone if successed
       
   734 //!									2. Allocate a new UUID array using ConstructL() function. Return KErrNone if successed
       
   735 //!									3. Read a non-existent UUIDs from test data if successed
       
   736 //!									4. Add the UUID to the list using AddL() function. Return KErrNone if successed
       
   737 //!									5. Add a Boolean element using MSdpElementBuilder's BuildBooleanL() function.
       
   738 //!									   The error KErrGeneral is expected from this function call
       
   739 //!									6. Delete CSdpSearchPattern object using destructor
       
   740 //! @SYMTestStatus					Implemented
       
   741 //! @SYMTestPriority				Low
       
   742 //! @SYMTestExpectedResults			Leave the error KErrGeneral
       
   743 //! @SYMTestType					CIT
       
   744 
       
   745 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   746 			CREATE_OBJECT	CSdpSearchPattern	csdpsearchpattern1	
       
   747 			COMMAND		csdpsearchpattern1	NewL
       
   748 			COMMAND		csdpsearchpattern1	ConstructL
       
   749 			COMMAND		csdpsearchpattern1	AddL		BTSDP-SearchPattern-PublicApi-2111-0001command3AddL
       
   750 			COMMAND	!Error=-2	csdpsearchpattern1	BuildBooleanL		BTSDP-SearchPattern-PublicApi-2111-0001command4BuildBooleanL
       
   751 			COMMAND		csdpsearchpattern1	~
       
   752 	END_TEST_BLOCK
       
   753 
       
   754 END_TESTCASE BTSDP-SearchPattern-PublicApi-2111
       
   755 
       
   756 
       
   757 START_TESTCASE BTSDP-SearchPattern-PublicApi-2112
       
   758 //! @SYMTestCaseID					BTSDP-SearchPattern-PublicApi-2112
       
   759 //! @SYMAPI							CSdpSearchPattern and MSdpElementBuilder
       
   760 //! @SYMTestCaseDesc				Test MSdpElementBuilder's BuildDEAL() function
       
   761 //!									Uses API elements: NewL(), ConstructL(), AddL(), BuildDEAL() and destructor
       
   762 //! @SYMTestActions					1. Allocate and construct a new CSdpSearchPattern object using NewL() function.
       
   763 //!									   Return KErrNone if successed
       
   764 //!									2. Allocate a new UUID array using ConstructL() function. Return KErrNone if successed
       
   765 //!									3. Read a non-existent UUIDs from test data if successed
       
   766 //!									4. Add the UUID to the list using AddL() function. Return KErrNone if successed
       
   767 //!									5. Add a Data element alternative using MSdpElementBuilder's BuildDEAL() function.
       
   768 //!									   The error KErrGeneral is expected from this function call
       
   769 //!									6. Delete CSdpSearchPattern object using destructor
       
   770 //! @SYMTestStatus					Implemented
       
   771 //! @SYMTestPriority				Low
       
   772 //! @SYMTestExpectedResults			Leave the error KErrGeneral
       
   773 //! @SYMTestType					CIT
       
   774 
       
   775 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   776 			CREATE_OBJECT	CSdpSearchPattern	csdpsearchpattern1	
       
   777 			COMMAND		csdpsearchpattern1	NewL
       
   778 			COMMAND		csdpsearchpattern1	ConstructL
       
   779 			COMMAND		csdpsearchpattern1	AddL		BTSDP-SearchPattern-PublicApi-2112-0001command3AddL
       
   780 			COMMAND	!Error=-2	csdpsearchpattern1	BuildDEAL
       
   781 			COMMAND		csdpsearchpattern1	~
       
   782 	END_TEST_BLOCK
       
   783 
       
   784 END_TESTCASE BTSDP-SearchPattern-PublicApi-2112
       
   785 
       
   786 
       
   787 START_TESTCASE BTSDP-SearchPattern-PublicApi-2113
       
   788 //! @SYMTestCaseID					BTSDP-SearchPattern-PublicApi-2113
       
   789 //! @SYMAPI							CSdpSearchPattern and MSdpElementBuilder
       
   790 //! @SYMTestCaseDesc				Call MSdpElementBuilder's BuildIntL() function to add a signed integer element
       
   791 //!									Uses API elements: NewL(), ConstructL(), AddL(), BuildIntL() and destructor
       
   792 //! @SYMTestActions					1. Allocate and construct a new CSdpSearchPattern object using NewL() function.
       
   793 //!									   Return KErrNone if successed
       
   794 //!									2. Allocate a new UUID array using ConstructL() function. Return KErrNone if successed
       
   795 //!									3. Read a non-existent UUIDs from test data if successed
       
   796 //!									4. Add the UUID to the list using AddL() function. Return KErrNone if successed
       
   797 //!									5. Add a signed integer element using MSdpElementBuilder's BuildIntL() function.
       
   798 //!									   The error KErrGeneral is expected from this function call
       
   799 //!									6. Delete CSdpSearchPattern object using destructor
       
   800 //! @SYMTestStatus					Implemented
       
   801 //! @SYMTestPriority				Low
       
   802 //! @SYMTestExpectedResults			Leave the error KErrGeneral
       
   803 //! @SYMTestType					CIT
       
   804 
       
   805 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   806 			CREATE_OBJECT	CSdpSearchPattern	csdpsearchpattern1	
       
   807 			COMMAND		csdpsearchpattern1	NewL
       
   808 			COMMAND		csdpsearchpattern1	ConstructL
       
   809 			COMMAND		csdpsearchpattern1	AddL		BTSDP-SearchPattern-PublicApi-2113-0001command3AddL
       
   810 			COMMAND	!Error=-2	csdpsearchpattern1	BuildIntL		BTSDP-SearchPattern-PublicApi-2113-0001command4BuildIntL
       
   811 			COMMAND		csdpsearchpattern1	~
       
   812 	END_TEST_BLOCK
       
   813 
       
   814 END_TESTCASE BTSDP-SearchPattern-PublicApi-2113
       
   815 
       
   816 
       
   817 START_TESTCASE BTSDP-SearchPattern-PublicApi-2114
       
   818 //! @SYMTestCaseID					BTSDP-SearchPattern-PublicApi-2114
       
   819 //! @SYMAPI							CSdpSearchPattern and MSdpElementBuilder
       
   820 //! @SYMTestCaseDesc				Call MSdpElementBuilder's BuildNilL() function to add a null element
       
   821 //!									Uses API elements: NewL(), ConstructL(), AddL(), BuildNilL() and destructor
       
   822 //! @SYMTestActions					1. Allocate and construct a new CSdpSearchPattern object using NewL() function.
       
   823 //!									   Return KErrNone if successed
       
   824 //!									2. Allocate a new UUID array using ConstructL() function. Return KErrNone if successed
       
   825 //!									3. Read a non-existent UUIDs from test data if successed
       
   826 //!									4. Add the UUID to the list using AddL() function. Return KErrNone if successed
       
   827 //!									5. Add a null element using MSdpElementBuilder's BuildNilL() function.
       
   828 //!									   The error KErrGeneral is expected from this function call
       
   829 //!									6. Delete CSdpSearchPattern object using destructor
       
   830 //! @SYMTestStatus					Implemented
       
   831 //! @SYMTestPriority				Low
       
   832 //! @SYMTestExpectedResults			Leave the error KErrGeneral
       
   833 //! @SYMTestType					CIT
       
   834 
       
   835 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   836 			CREATE_OBJECT	CSdpSearchPattern	csdpsearchpattern1	
       
   837 			COMMAND		csdpsearchpattern1	NewL
       
   838 			COMMAND		csdpsearchpattern1	ConstructL
       
   839 			COMMAND		csdpsearchpattern1	AddL		BTSDP-SearchPattern-PublicApi-2114-0001command3AddL
       
   840 			COMMAND	!Error=-2	csdpsearchpattern1	BuildNilL
       
   841 			COMMAND		csdpsearchpattern1	~
       
   842 	END_TEST_BLOCK
       
   843 
       
   844 END_TESTCASE BTSDP-SearchPattern-PublicApi-2114
       
   845 
       
   846 
       
   847 START_TESTCASE BTSDP-SearchPattern-PublicApi-2115
       
   848 //! @SYMTestCaseID					BTSDP-SearchPattern-PublicApi-2115
       
   849 //! @SYMAPI							CSdpSearchPattern and MSdpElementBuilder
       
   850 //! @SYMTestCaseDesc				Call MSdpElementBuilder's BuildStringL() function to add a Text String element
       
   851 //!									Uses API elements: NewL(), ConstructL(), AddL(), BuildStringL() and destructor
       
   852 //! @SYMTestActions					1. Allocate and construct a new CSdpSearchPattern object using NewL() function.
       
   853 //!									   Return KErrNone if successed
       
   854 //!									2. Allocate a new UUID array using ConstructL() function. Return KErrNone if successed
       
   855 //!									3. Read a non-existent UUIDs from test data if successed
       
   856 //!									4. Add the UUID to the list using AddL() function. Return KErrNone if successed
       
   857 //!									5. Add a Text String element using MSdpElementBuilder's BuildStringL() function.
       
   858 //!									   The error KErrGeneral is expected from this function call
       
   859 //!									6. Delete CSdpSearchPattern object using destructor
       
   860 //! @SYMTestStatus					Implemented
       
   861 //! @SYMTestPriority				Low
       
   862 //! @SYMTestExpectedResults			Leave the error KErrGeneral
       
   863 //! @SYMTestType					CIT
       
   864 
       
   865 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   866 			CREATE_OBJECT	CSdpSearchPattern	csdpsearchpattern1	
       
   867 			COMMAND		csdpsearchpattern1	NewL
       
   868 			COMMAND		csdpsearchpattern1	ConstructL
       
   869 			COMMAND		csdpsearchpattern1	AddL		BTSDP-SearchPattern-PublicApi-2115-0001command3AddL
       
   870 			COMMAND	!Error=-2	csdpsearchpattern1	BuildStringL		BTSDP-SearchPattern-PublicApi-2115-0001command4BuildStringL
       
   871 			COMMAND		csdpsearchpattern1	~
       
   872 	END_TEST_BLOCK
       
   873 
       
   874 END_TESTCASE BTSDP-SearchPattern-PublicApi-2115
       
   875 
       
   876 
       
   877 START_TESTCASE BTSDP-SearchPattern-PublicApi-2116
       
   878 //! @SYMTestCaseID					BTSDP-SearchPattern-PublicApi-2116
       
   879 //! @SYMAPI							CSdpSearchPattern and MSdpElementBuilder
       
   880 //! @SYMTestCaseDesc				Call MSdpElementBuilder's BuildURLL() function to add a URL element
       
   881 //!									Uses API elements: NewL(), ConstructL(), AddL(), BuildURLL() and destructor
       
   882 //! @SYMTestActions					1. Allocate and construct a new CSdpSearchPattern object using NewL() function.
       
   883 //!									   Return KErrNone if successed
       
   884 //!									2. Allocate a new UUID array using ConstructL() function. Return KErrNone if successed
       
   885 //!									3. Read a non-existent UUIDs from test data if successed
       
   886 //!									4. Add the UUID to the list using AddL() function. Return KErrNone if successed
       
   887 //!									5. Add a URL element using MSdpElementBuilder's BuildURLL() function.
       
   888 //!									   The error KErrGeneral is expected from this function call
       
   889 //!									6. Delete CSdpSearchPattern object using destructor
       
   890 //! @SYMTestStatus					Implemented
       
   891 //! @SYMTestPriority				Low
       
   892 //! @SYMTestExpectedResults			Leave the error KErrGeneral
       
   893 //! @SYMTestType					CIT
       
   894 
       
   895 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   896 			CREATE_OBJECT	CSdpSearchPattern	csdpsearchpattern1	
       
   897 			COMMAND		csdpsearchpattern1	NewL
       
   898 			COMMAND		csdpsearchpattern1	ConstructL
       
   899 			COMMAND		csdpsearchpattern1	AddL		BTSDP-SearchPattern-PublicApi-2116-0001command3AddL
       
   900 			COMMAND	!Error=-2	csdpsearchpattern1	BuildURLL		BTSDP-SearchPattern-PublicApi-2116-0001command4BuildURLL
       
   901 			COMMAND		csdpsearchpattern1	~
       
   902 	END_TEST_BLOCK
       
   903 
       
   904 END_TESTCASE BTSDP-SearchPattern-PublicApi-2116
       
   905 
       
   906 
       
   907 START_TESTCASE BTSDP-SearchPattern-PublicApi-2117
       
   908 //! @SYMTestCaseID					BTSDP-SearchPattern-PublicApi-2117
       
   909 //! @SYMAPI							CSdpSearchPattern and MSdpElementBuilder
       
   910 //! @SYMTestCaseDesc				Call MSdpElementBuilder's BuildUintL() function to add an unsigned integer element
       
   911 //!									Uses API elements: NewL(), ConstructL(), AddL(), BuildUintL() and destructor
       
   912 //! @SYMTestActions					1. Allocate and construct a new CSdpSearchPattern object using NewL() function.
       
   913 //!									   Return KErrNone if successed
       
   914 //!									2. Allocate a new UUID array using ConstructL() function. Return KErrNone if successed
       
   915 //!									3. Read a non-existent UUIDs from test data if successed
       
   916 //!									4. Add the UUID to the list using AddL() function. Return KErrNone if successed
       
   917 //!									5. Add an unsigned integer element using MSdpElementBuilder's BuildUintL() function.
       
   918 //!									   The error KErrGeneral is expected from this function call
       
   919 //!									6. Delete CSdpSearchPattern object using destructor
       
   920 //! @SYMTestStatus					Implemented
       
   921 //! @SYMTestPriority				Low
       
   922 //! @SYMTestExpectedResults			Leave the error KErrGeneral
       
   923 //! @SYMTestType					CIT
       
   924 
       
   925 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   926 			CREATE_OBJECT	CSdpSearchPattern	csdpsearchpattern1	
       
   927 			COMMAND		csdpsearchpattern1	NewL
       
   928 			COMMAND		csdpsearchpattern1	ConstructL
       
   929 			COMMAND		csdpsearchpattern1	AddL		BTSDP-SearchPattern-PublicApi-2117-0001command3AddL
       
   930 			COMMAND	!Error=-2	csdpsearchpattern1	BuildUintL		BTSDP-SearchPattern-PublicApi-2117-0001command4BuildUintL
       
   931 			COMMAND		csdpsearchpattern1	~
       
   932 	END_TEST_BLOCK
       
   933 
       
   934 END_TESTCASE BTSDP-SearchPattern-PublicApi-2117
       
   935 
       
   936 
       
   937 START_TESTCASE BTSDP-SearchPattern-PublicApi-2118
       
   938 //! @SYMTestCaseID					BTSDP-SearchPattern-PublicApi-2118
       
   939 //! @SYMAPI							CSdpSearchPattern and MSdpElementBuilder
       
   940 //! @SYMTestCaseDesc				Call MSdpElementBuilder's BuildUnknownL() function to add an element of any type
       
   941 //!									Uses API elements: NewL(), ConstructL(), AddL(), BuildUnknownL() and destructor
       
   942 //! @SYMTestActions					1. Allocate and construct a new CSdpSearchPattern object using NewL() function.
       
   943 //!									   Return KErrNone if successed
       
   944 //!									2. Allocate a new UUID array using ConstructL() function. Return KErrNone if successed
       
   945 //!									3. Read a non-existent UUIDs from test data if successed
       
   946 //!									4. Add the UUID to the list using AddL() function. Return KErrNone if successed
       
   947 //!									5. Add an element of any type using MSdpElementBuilder's BuildUnknownL() function.
       
   948 //!									   The error KErrGeneral is expected from this function call
       
   949 //!									6. Delete CSdpSearchPattern object using destructor
       
   950 //! @SYMTestStatus					Implemented
       
   951 //! @SYMTestPriority				Low
       
   952 //! @SYMTestExpectedResults			Leave the error KErrGeneral
       
   953 //! @SYMTestType					CIT
       
   954 
       
   955 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   956 			CREATE_OBJECT	CSdpSearchPattern	csdpsearchpattern1	
       
   957 			COMMAND		csdpsearchpattern1	NewL
       
   958 			COMMAND		csdpsearchpattern1	ConstructL
       
   959 			COMMAND		csdpsearchpattern1	AddL		BTSDP-SearchPattern-PublicApi-2118-0001command3AddL
       
   960 			COMMAND	!Error=-2	csdpsearchpattern1	BuildUnknownL		BTSDP-SearchPattern-PublicApi-2118-0001command4BuildUnknownL
       
   961 			COMMAND		csdpsearchpattern1	~
       
   962 	END_TEST_BLOCK
       
   963 
       
   964 END_TESTCASE BTSDP-SearchPattern-PublicApi-2118
       
   965 
       
   966 
       
   967 // ****************************************************************************
       
   968 // Negative test cases
       
   969 // ****************************************************************************
       
   970 
       
   971 //!START_TESTCASE BTSDP-SearchPattern-PublicApi-2119
       
   972 //! @SYMTestCaseID					BTSDP-SearchPattern-PublicApi-2119
       
   973 //! @SYMAPI							CSdpSearchPattern
       
   974 //! @SYMTestCaseDesc				Get the UUID at the specified position in the list
       
   975 //!									Uses API elements: NewL(), ConstructL(), AddL(), At() and destructor
       
   976 //! @SYMTestActions					1. Allocate and construct a new CSdpSearchPattern object using NewL() function.
       
   977 //!									   Return KErrNone if successed
       
   978 //!									2. Allocate a new UUID array using ConstructL() function. Return KErrNone if successed
       
   979 //!									3. Read 2 non-existent UUIDs from test data if successed
       
   980 //!									4. Add the 2 UUIDs to the list using AddL() function. Return KErrNone if successed
       
   981 //!									5. Specify the position is equal to the number of objects currently within the list using At() function.
       
   982 //!									   Catch a panic if panic is thrown out
       
   983 //! @SYMTestStatus					Implemented
       
   984 //! @SYMTestPriority				Low
       
   985 //! @SYMTestExpectedResults			Caught the panic
       
   986 //! @SYMTestType					CIT
       
   987 
       
   988 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
   989 //!			CREATE_OBJECT	CSdpSearchPattern	csdpsearchpattern1	
       
   990 //!			COMMAND		csdpsearchpattern1	NewL
       
   991 //!			COMMAND		csdpsearchpattern1	ConstructL
       
   992 //!			COMMAND		csdpsearchpattern1	AddL		BTSDP-SearchPattern-PublicApi-2119-0001command3AddL
       
   993 //!			COMMAND		csdpsearchpattern1	AddL		BTSDP-SearchPattern-PublicApi-2119-0001command4AddL
       
   994 //!			COMMAND		csdpsearchpattern1	At		BTSDP-SearchPattern-PublicApi-2119-0001command5At
       
   995 //!	END_TEST_BLOCK	!PanicCode=21	!PanicString=E32USER-CBase
       
   996 
       
   997 //!END_TESTCASE BTSDP-SearchPattern-PublicApi-2119
       
   998 
       
   999 
       
  1000 //!START_TESTCASE BTSDP-SearchPattern-PublicApi-2120
       
  1001 //! @SYMTestCaseID					BTSDP-SearchPattern-PublicApi-2120
       
  1002 //! @SYMAPI							CSdpSearchPattern
       
  1003 //! @SYMTestCaseDesc				Allocate a new UUID array
       
  1004 //!									Uses API elements: ConstructL()
       
  1005 //! @SYMTestActions					1. Allocate a new UUID array using ConstructL() function. 
       
  1006 //!									   Catch a panic if panic is thrown out
       
  1007 //! @SYMTestStatus					Implemented
       
  1008 //! @SYMTestPriority				Low
       
  1009 //! @SYMTestExpectedResults			Caught the panic
       
  1010 //! @SYMTestType					CIT
       
  1011 
       
  1012 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1013 //!			CREATE_OBJECT	CSdpSearchPattern	csdpsearchpattern1	
       
  1014 //!			COMMAND		csdpsearchpattern1	ConstructL
       
  1015 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  1016 
       
  1017 //!END_TESTCASE BTSDP-SearchPattern-PublicApi-2120
       
  1018 
       
  1019 
       
  1020 //!START_TESTCASE BTSDP-SearchPattern-PublicApi-2121
       
  1021 //! @SYMTestCaseID					BTSDP-SearchPattern-PublicApi-2121
       
  1022 //! @SYMAPI							CSdpSearchPattern
       
  1023 //! @SYMTestCaseDesc				Adds a UID to the list
       
  1024 //!									Uses API elements: AddL()
       
  1025 //! @SYMTestActions					1. Adds a UID to the list using AddL() function. Catch a panic if panic is thrown out
       
  1026 //! @SYMTestStatus					Implemented
       
  1027 //! @SYMTestPriority				Low
       
  1028 //! @SYMTestExpectedResults			Caught the panic
       
  1029 //! @SYMTestType					CIT
       
  1030 
       
  1031 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1032 //!			CREATE_OBJECT	CSdpSearchPattern	csdpsearchpattern1	
       
  1033 //!			COMMAND		csdpsearchpattern1	AddL		BTSDP-SearchPattern-PublicApi-2121-0001command1AddL
       
  1034 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  1035 
       
  1036 //!END_TESTCASE BTSDP-SearchPattern-PublicApi-2121
       
  1037 
       
  1038 
       
  1039 //!START_TESTCASE BTSDP-SearchPattern-PublicApi-2122
       
  1040 //! @SYMTestCaseID					BTSDP-SearchPattern-PublicApi-2122
       
  1041 //! @SYMAPI							CSdpSearchPattern
       
  1042 //! @SYMTestCaseDesc				Removes a UUID from the list
       
  1043 //!									Uses API elements: Remove()
       
  1044 //! @SYMTestActions					1. Removes a UUID from the list using Remove() function. 
       
  1045 //!									   Catch a panic if panic is thrown out
       
  1046 //! @SYMTestStatus					Implemented
       
  1047 //! @SYMTestPriority				Low
       
  1048 //! @SYMTestExpectedResults			Caught the panic
       
  1049 //! @SYMTestType					CIT
       
  1050 
       
  1051 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1052 //!			CREATE_OBJECT	CSdpSearchPattern	csdpsearchpattern1	
       
  1053 //!			COMMAND		csdpsearchpattern1	Remove		BTSDP-SearchPattern-PublicApi-2122-0001command1Remove
       
  1054 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  1055 
       
  1056 //!END_TESTCASE BTSDP-SearchPattern-PublicApi-2122
       
  1057 
       
  1058 
       
  1059 //!START_TESTCASE BTSDP-SearchPattern-PublicApi-2123
       
  1060 //! @SYMTestCaseID					BTSDP-SearchPattern-PublicApi-2123
       
  1061 //! @SYMAPI							CSdpSearchPattern
       
  1062 //! @SYMTestCaseDesc				Gets the position of the specified UUID in the list
       
  1063 //!									Uses API elements: Find()
       
  1064 //! @SYMTestActions					1. Gets the position of the specified UUID in the list using Find() function.
       
  1065 //!									   Catch a panic if panic is thrown out
       
  1066 //! @SYMTestStatus					Implemented
       
  1067 //! @SYMTestPriority				Low
       
  1068 //! @SYMTestExpectedResults			Caught the panic
       
  1069 //! @SYMTestType					CIT
       
  1070 
       
  1071 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1072 //!			CREATE_OBJECT	CSdpSearchPattern	csdpsearchpattern1	
       
  1073 //!			COMMAND		csdpsearchpattern1	Find		BTSDP-SearchPattern-PublicApi-2123-0001command1Find
       
  1074 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  1075 
       
  1076 //!END_TESTCASE BTSDP-SearchPattern-PublicApi-2123
       
  1077 
       
  1078 
       
  1079 //!START_TESTCASE BTSDP-SearchPattern-PublicApi-2124
       
  1080 //! @SYMTestCaseID					BTSDP-SearchPattern-PublicApi-2124
       
  1081 //! @SYMAPI							CSdpSearchPattern
       
  1082 //! @SYMTestCaseDesc				Gets the number of UUIDs in the list
       
  1083 //!									Uses API elements: Count()
       
  1084 //! @SYMTestActions					1. Gets the number of UUIDs in the list using Count() function.
       
  1085 //!									   Catch a panic if panic is thrown out
       
  1086 //! @SYMTestStatus					Implemented
       
  1087 //! @SYMTestPriority				Low
       
  1088 //! @SYMTestExpectedResults			Caught the panic
       
  1089 //! @SYMTestType					CIT
       
  1090 
       
  1091 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1092 //!			CREATE_OBJECT	CSdpSearchPattern	csdpsearchpattern1	
       
  1093 //!			COMMAND		csdpsearchpattern1	Count
       
  1094 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  1095 
       
  1096 //!END_TESTCASE BTSDP-SearchPattern-PublicApi-2124
       
  1097 
       
  1098 
       
  1099 //!START_TESTCASE BTSDP-SearchPattern-PublicApi-2125
       
  1100 //! @SYMTestCaseID					BTSDP-SearchPattern-PublicApi-2125
       
  1101 //! @SYMAPI							CSdpSearchPattern
       
  1102 //! @SYMTestCaseDesc				Removes all UUIDs from the list
       
  1103 //!									Uses API elements: Reset()
       
  1104 //! @SYMTestActions					1. Removes all UUIDs from the list using Reset() function.
       
  1105 //!									   Catch a panic if panic is thrown out
       
  1106 //! @SYMTestStatus					Implemented
       
  1107 //! @SYMTestPriority				Low
       
  1108 //! @SYMTestExpectedResults			Caught the panic
       
  1109 //! @SYMTestType					CIT
       
  1110 
       
  1111 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1112 //!			CREATE_OBJECT	CSdpSearchPattern	csdpsearchpattern1	
       
  1113 //!			COMMAND		csdpsearchpattern1	Reset
       
  1114 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  1115 
       
  1116 //!END_TESTCASE BTSDP-SearchPattern-PublicApi-2125
       
  1117 
       
  1118 
       
  1119 //!START_TESTCASE BTSDP-SearchPattern-PublicApi-2126
       
  1120 //! @SYMTestCaseID					BTSDP-SearchPattern-PublicApi-2126
       
  1121 //! @SYMAPI							CSdpSearchPattern
       
  1122 //! @SYMTestCaseDesc				Tests if the list is empty
       
  1123 //!									Uses API elements: IsEmpty()
       
  1124 //! @SYMTestActions					1. Tests if the list is empty using IsEmpty() function.
       
  1125 //!									   Catch a panic if panic is thrown out
       
  1126 //! @SYMTestStatus					Implemented
       
  1127 //! @SYMTestPriority				Low
       
  1128 //! @SYMTestExpectedResults			Caught the panic
       
  1129 //! @SYMTestType					CIT
       
  1130 
       
  1131 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1132 //!			CREATE_OBJECT	CSdpSearchPattern	csdpsearchpattern1	
       
  1133 //!			COMMAND		csdpsearchpattern1	IsEmpty
       
  1134 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  1135 
       
  1136 //!END_TESTCASE BTSDP-SearchPattern-PublicApi-2126
       
  1137 
       
  1138 
       
  1139 
       
  1140 // ****************************************************************************
       
  1141 // SdpUtil
       
  1142 // **************************************************************************** 
       
  1143 
       
  1144 START_TESTCASE BTSDP-Util-PublicApi-2201
       
  1145 //! @SYMTestCaseID					BTSDP-Util-PublicApi-2201
       
  1146 //! @SYMAPI							SdpUtil
       
  1147 //! @SYMTestCaseDesc				Put an unsigned integer into a descriptor
       
  1148 //!									Uses API elements: PutUint()
       
  1149 //! @SYMTestActions					1. Read an integer to be copied into a descriptor and a number of bytes occupied by the integer from test data if successful
       
  1150 //!									2. Put the unsigned integer into a descriptor using PutUint() function
       
  1151 //!									3. Calculate the expected value and test pass if the pointer to the descriptor's data field is as expected
       
  1152 //! @SYMTestStatus					Implemented
       
  1153 //! @SYMTestPriority				Low
       
  1154 //! @SYMTestExpectedResults			Pointer to the descriptor's data field was matched to the expected value
       
  1155 //! @SYMTestType					CIT
       
  1156 
       
  1157 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1158 			CREATE_OBJECT	SdpUtil	sdputil1	
       
  1159 			COMMAND		sdputil1	PutUint		BTSDP-Util-PublicApi-2201-0001command1PutUint
       
  1160 	END_TEST_BLOCK
       
  1161 
       
  1162 END_TESTCASE BTSDP-Util-PublicApi-2201
       
  1163 
       
  1164 
       
  1165 START_TESTCASE BTSDP-Util-PublicApi-2202
       
  1166 //! @SYMTestCaseID					BTSDP-Util-PublicApi-2202
       
  1167 //! @SYMAPI							SdpUtil
       
  1168 //! @SYMTestCaseDesc				Get an unsigned integer from a descriptor
       
  1169 //!									Uses API elements: GetUint()
       
  1170 //!									The length of parameter(define in ini file) should be 0, 1, 2 or 4
       
  1171 //! @SYMTestActions					1. Read a descriptor containing an integer from test data if successful
       
  1172 //!									2. Get an unsigned integer from the descriptor using GetUint() function
       
  1173 //!									3. Calculate the expected value and test pass if the unsigned integer is as expected
       
  1174 //! @SYMTestStatus					Implemented
       
  1175 //! @SYMTestPriority				Low
       
  1176 //! @SYMTestExpectedResults			The unsigned integer was matched to the expected value
       
  1177 //! @SYMTestType					CIT
       
  1178 
       
  1179 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1180 			CREATE_OBJECT	SdpUtil	sdputil1	
       
  1181 			COMMAND		sdputil1	GetUint		BTSDP-Util-PublicApi-2202-0001command1GetUint
       
  1182 	END_TEST_BLOCK
       
  1183 
       
  1184 END_TESTCASE BTSDP-Util-PublicApi-2202
       
  1185 
       
  1186 
       
  1187 START_TESTCASE BTSDP-Util-PublicApi-2204
       
  1188 //! @SYMTestCaseID					BTSDP-Util-PublicApi-2204
       
  1189 //! @SYMAPI							SdpUtil
       
  1190 //! @SYMTestCaseDesc				Get an unsigned 64 bit integer from a descriptor
       
  1191 //!									Uses API elements: GetUint64()
       
  1192 //!									The length of parameter(define in ini file) should be 8
       
  1193 //! @SYMTestActions					1. Read a descriptor containing an unsigned 64 bit integer from test data if successful
       
  1194 //!									2. Get an unsigned 64 bit integer from the descriptor using GetUint64() function
       
  1195 //!									3. Calculate the expected value and test pass if the unsigned 64 bit integer is as expected
       
  1196 //! @SYMTestStatus					Implemented
       
  1197 //! @SYMTestPriority				Low
       
  1198 //! @SYMTestExpectedResults			The unsigned 64 bit integer was matched to the expected value
       
  1199 //! @SYMTestType					CIT
       
  1200 
       
  1201 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1202 			CREATE_OBJECT	SdpUtil	sdputil1	
       
  1203 			COMMAND		sdputil1	GetUint64		BTSDP-Util-PublicApi-2204-0001command1GetUint64
       
  1204 	END_TEST_BLOCK
       
  1205 
       
  1206 END_TESTCASE BTSDP-Util-PublicApi-2204
       
  1207 
       
  1208 
       
  1209 START_TESTCASE BTSDP-Util-PublicApi-2206
       
  1210 //! @SYMTestCaseID					BTSDP-Util-PublicApi-2206
       
  1211 //! @SYMAPI							SdpUtil
       
  1212 //! @SYMTestCaseDesc				Get two unsigned 64 bit integers from a descriptor
       
  1213 //!									Uses API elements: GetUint128()
       
  1214 //!									The length of parameter(define in ini file) should be 16
       
  1215 //! @SYMTestActions					1. Read a descriptor containing two unsigned 64 bit integers from test data if successful
       
  1216 //!									2. Get two unsigned 64 bit integers from the descriptor using GetUint128() function
       
  1217 //!									3. Calculate the expected value and test pass if the two unsigned 64 bit integers are as expected
       
  1218 //! @SYMTestStatus					Implemented
       
  1219 //! @SYMTestPriority				Low
       
  1220 //! @SYMTestExpectedResults			The two unsigned 64 bit integers were matched to the expected value
       
  1221 //! @SYMTestType					CIT
       
  1222 
       
  1223 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1224 			CREATE_OBJECT	SdpUtil	sdputil1	
       
  1225 			COMMAND		sdputil1	GetUint128		BTSDP-Util-PublicApi-2206-0001command1GetUint128
       
  1226 	END_TEST_BLOCK
       
  1227 
       
  1228 END_TESTCASE BTSDP-Util-PublicApi-2206
       
  1229 
       
  1230 
       
  1231 START_TESTCASE BTSDP-Util-PublicApi-2207
       
  1232 //! @SYMTestCaseID					BTSDP-Util-PublicApi-2207
       
  1233 //! @SYMAPI							SdpUtil
       
  1234 //! @SYMTestCaseDesc				Get an unsigned integer from a descriptor
       
  1235 //!									Uses API elements: GetUint()
       
  1236 //!									The length of parameter(define in ini file) should not be 0, 1, 2 or 4
       
  1237 //! @SYMTestActions					1. Read a descriptor containing an integer from test data if successful
       
  1238 //!									2. Get an unsigned integer from the descriptor using GetUint() function
       
  1239 //!									   Verify if a panic is thrown out
       
  1240 //! @SYMTestStatus					Implemented
       
  1241 //! @SYMTestPriority				Low
       
  1242 //! @SYMTestExpectedResults			Caught a panic
       
  1243 //! @SYMTestType					CIT
       
  1244 
       
  1245 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1246 			CREATE_OBJECT	SdpUtil	sdputil1	
       
  1247 			COMMAND		sdputil1	GetUint		BTSDP-Util-PublicApi-2207-0001command1GetUint
       
  1248 	END_TEST_BLOCK	!PanicCode=0	!PanicString=SDP-Parse
       
  1249 
       
  1250 END_TESTCASE BTSDP-Util-PublicApi-2207
       
  1251 
       
  1252 
       
  1253 START_TESTCASE BTSDP-Util-PublicApi-2208
       
  1254 //! @SYMTestCaseID					BTSDP-Util-PublicApi-2208
       
  1255 //! @SYMAPI							SdpUtil
       
  1256 //! @SYMTestCaseDesc				Get an unsigned 64 bit integer from a descriptor
       
  1257 //!									Uses API elements: GetUint64()
       
  1258 //!									The length of parameter(define in ini file) should not be 8
       
  1259 //! @SYMTestActions					1. Read a descriptor containing an unsigned 64 bit integer from test data if successful
       
  1260 //!									2. Get an unsigned 64 bit integer from the descriptor using GetUint64() function
       
  1261 //!									   Verify if a panic is thrown out
       
  1262 //! @SYMTestStatus					Implemented
       
  1263 //! @SYMTestPriority				Low
       
  1264 //! @SYMTestExpectedResults			Caught a panic
       
  1265 //! @SYMTestType					CIT
       
  1266 
       
  1267 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1268 			CREATE_OBJECT	SdpUtil	sdputil1	
       
  1269 			COMMAND		sdputil1	GetUint64		BTSDP-Util-PublicApi-2208-0001command1GetUint64
       
  1270 	END_TEST_BLOCK	!PanicCode=3	!PanicString=SDP-Parse
       
  1271 
       
  1272 END_TESTCASE BTSDP-Util-PublicApi-2208
       
  1273 
       
  1274 
       
  1275 START_TESTCASE BTSDP-Util-PublicApi-2209
       
  1276 //! @SYMTestCaseID					BTSDP-Util-PublicApi-2209
       
  1277 //! @SYMAPI							SdpUtil
       
  1278 //! @SYMTestCaseDesc				Get two unsigned 64 bit integers from a descriptor
       
  1279 //!									Uses API elements: GetUint128()
       
  1280 //!									The length of parameter(define in ini file) should not be 16
       
  1281 //! @SYMTestActions					1. Read a descriptor containing two unsigned 64 bit integers from test data if successful
       
  1282 //!									2. Get two unsigned 64 bit integers from the descriptor using GetUint128() function
       
  1283 //!									   Verify if a panic is thrown out
       
  1284 //! @SYMTestStatus					Implemented
       
  1285 //! @SYMTestPriority				Low
       
  1286 //! @SYMTestExpectedResults			Caught a panic
       
  1287 //! @SYMTestType					CIT
       
  1288 
       
  1289 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1290 			CREATE_OBJECT	SdpUtil	sdputil1	
       
  1291 			COMMAND		sdputil1	GetUint128		BTSDP-Util-PublicApi-2209-0001command1GetUint128
       
  1292 	END_TEST_BLOCK	!PanicCode=4	!PanicString=SDP-Parse
       
  1293 
       
  1294 END_TESTCASE BTSDP-Util-PublicApi-2209
       
  1295 
       
  1296 
       
  1297 
       
  1298 // ****************************************************************************
       
  1299 // CElementParser
       
  1300 // **************************************************************************** 
       
  1301 
       
  1302 START_TESTCASE BTSDP-ElementParser-PublicApi-2301
       
  1303 //! @SYMTestCaseID					BTSDP-ElementParser-PublicApi-2301
       
  1304 //! @SYMAPI							CElementParser and CSdpAttrValueDEA
       
  1305 //! @SYMTestCaseDesc				Create a CElementParser object
       
  1306 //!									Uses API elements: NewDEAL(), BuildStringL(), NewL() and destructor
       
  1307 //! @SYMTestActions					1. Create a list using NewDEAL() function and return KErrNone if successed
       
  1308 //!									2. Read a string value from test data if successful
       
  1309 //!									3. Add the string value in the list using BuildStringL() function. Return KErrNone if successed
       
  1310 //!									4. Create a new CElementParser object with the CSdpAttrValueDEA object using NewL() function.
       
  1311 //!									   Return KErrNone if successed
       
  1312 //!									5. Delete CElementParser object using destructor
       
  1313 //! @SYMTestStatus					Implemented
       
  1314 //! @SYMTestPriority				Low
       
  1315 //! @SYMTestExpectedResults			CElementParser object was created successfully
       
  1316 //! @SYMTestType					CIT
       
  1317 
       
  1318 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1319 			CREATE_OBJECT	CElementParser	celementparser1	
       
  1320 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
  1321 			COMMAND		attrValueDEA	NewDEAL
       
  1322 			COMMAND		attrValueDEA	BuildStringL		BTSDP-ElementParser-PublicApi-2301-0001command3BuildStringL
       
  1323 			COMMAND		celementparser1	NewL		BTSDP-ElementParser-PublicApi-2301-0001command5NewL
       
  1324 			COMMAND		celementparser1	~
       
  1325 	END_TEST_BLOCK
       
  1326 
       
  1327 END_TESTCASE BTSDP-ElementParser-PublicApi-2301
       
  1328 
       
  1329 
       
  1330 START_TESTCASE BTSDP-ElementParser-PublicApi-2302
       
  1331 //! @SYMTestCaseID					BTSDP-ElementParser-PublicApi-2302
       
  1332 //! @SYMAPI							CElementParser and CSdpAttrValueDES
       
  1333 //! @SYMTestCaseDesc				Reset the parser's buffers to be empty
       
  1334 //!									Uses API elements: NewDESL(), BuildNilL(), NewL(), Reset() and destructor
       
  1335 //! @SYMTestActions					1. Create a list using NewDESL() function and return KErrNone if successed
       
  1336 //!									2. Add a NULL type of element using BuildNilL() function. Return KErrNone if successed
       
  1337 //!									3. Create a new CElementParser object with the CSdpAttrValueDES object using NewL() function.
       
  1338 //!									   Return KErrNone if successed
       
  1339 //!									4. Reset CElementParser object's buffers using Reset() function
       
  1340 //!									5. Delete CElementParser object using destructor
       
  1341 //! @SYMTestStatus					Implemented
       
  1342 //! @SYMTestPriority				Low
       
  1343 //! @SYMTestExpectedResults			CElementParser's buffers was empty
       
  1344 //! @SYMTestType					CIT
       
  1345 
       
  1346 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1347 			CREATE_OBJECT	CElementParser	celementparser1	
       
  1348 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  1349 			COMMAND		attrValueDES	NewDESL
       
  1350 			COMMAND		attrValueDES	BuildNilL
       
  1351 			COMMAND		celementparser1	NewL		BTSDP-ElementParser-PublicApi-2302-0001command5NewL
       
  1352 			COMMAND		celementparser1	Reset
       
  1353 			COMMAND		celementparser1	~
       
  1354 	END_TEST_BLOCK
       
  1355 
       
  1356 END_TESTCASE BTSDP-ElementParser-PublicApi-2302
       
  1357 
       
  1358 
       
  1359 START_TESTCASE BTSDP-ElementParser-PublicApi-2303
       
  1360 //! @SYMTestCaseID					BTSDP-ElementParser-PublicApi-2303
       
  1361 //! @SYMAPI							CElementParser and CSdpAttrValueDES
       
  1362 //! @SYMTestCaseDesc				Reset the parser's buffers to be empty, and reset the element builder object used
       
  1363 //!									Uses API elements: NewDESL(), BuildBooleanL(), NewL(), Reset() and destructor
       
  1364 //! @SYMTestActions					1. Create a list using NewDESL() function and return KErrNone if successed
       
  1365 //!									2. Read a boolean value from test data if successful
       
  1366 //!									3. Add the boolean in the list using BuildBooleanL() function. Return KErrNone if successed
       
  1367 //!									4. Create a new CElementParser object with the CSdpAttrValueDES object using NewL() function.
       
  1368 //!									   Return KErrNone if successed
       
  1369 //!									5. Use Reset() function to reset CElementParser object's buffers and the element builder, CSdpAttrValueDES object used
       
  1370 //!									6. Delete CElementParser object using destructor
       
  1371 //! @SYMTestStatus					Implemented
       
  1372 //! @SYMTestPriority				Low
       
  1373 //! @SYMTestExpectedResults			Reset successfully
       
  1374 //! @SYMTestType					CIT
       
  1375 
       
  1376 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1377 			CREATE_OBJECT	CElementParser	celementparser1	
       
  1378 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  1379 			COMMAND		attrValueDES	NewDESL
       
  1380 			COMMAND		attrValueDES	BuildBooleanL		BTSDP-ElementParser-PublicApi-2303-0001command3BuildBooleanL
       
  1381 			COMMAND		celementparser1	NewL		BTSDP-ElementParser-PublicApi-2303-0001command5NewL
       
  1382 			COMMAND		celementparser1	Reset		BTSDP-ElementParser-PublicApi-2303-0001command6Reset
       
  1383 			COMMAND		celementparser1	~
       
  1384 	END_TEST_BLOCK
       
  1385 
       
  1386 END_TESTCASE BTSDP-ElementParser-PublicApi-2303
       
  1387 
       
  1388 
       
  1389 START_TESTCASE BTSDP-ElementParser-PublicApi-2304
       
  1390 //! @SYMTestCaseID					BTSDP-ElementParser-PublicApi-2304
       
  1391 //! @SYMAPI							CElementParser and CSdpAttrValueDEA
       
  1392 //! @SYMTestCaseDesc				Return MSdpElementBuilder object
       
  1393 //!									Uses API elements: NewDEAL(), BuildDEAL(), NewL(), Builder() and destructor
       
  1394 //! @SYMTestActions					1. Create a list using NewDEAL() function and return KErrNone if successed
       
  1395 //!									2. Add a data element alternative in the list using BuildDEAL() function. Return KErrNone if successed
       
  1396 //!									3. Create a new CElementParser object with the CSdpAttrValueDEA object using NewL() function.
       
  1397 //!									   Return KErrNone if successed
       
  1398 //!									4. Call Builder() function
       
  1399 //!									5. Read an expected result from test data and test pass if results are matched
       
  1400 //!									6. Delete CElementParser object using destructor
       
  1401 //! @SYMTestStatus					Implemented
       
  1402 //! @SYMTestPriority				Low
       
  1403 //! @SYMTestExpectedResults			Returned a MSdpElementBuilder object successfully
       
  1404 //! @SYMTestType					CIT
       
  1405 
       
  1406 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1407 			CREATE_OBJECT	CElementParser	celementparser1	
       
  1408 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
  1409 			COMMAND		attrValueDEA	NewDEAL
       
  1410 			COMMAND		attrValueDEA	BuildDEAL
       
  1411 			COMMAND		celementparser1	NewL		BTSDP-ElementParser-PublicApi-2304-0001command5NewL
       
  1412 			COMMAND		celementparser1	Builder		BTSDP-ElementParser-PublicApi-2304-0001command6Builder
       
  1413 			COMMAND		celementparser1	~
       
  1414 	END_TEST_BLOCK
       
  1415 
       
  1416 END_TESTCASE BTSDP-ElementParser-PublicApi-2304
       
  1417 
       
  1418 
       
  1419 START_TESTCASE BTSDP-ElementParser-PublicApi-2305
       
  1420 //! @SYMTestCaseID					BTSDP-ElementParser-PublicApi-2305
       
  1421 //! @SYMAPI							CElementParser and CSdpAttrValueDES
       
  1422 //! @SYMTestCaseDesc				Set MSdpElementBuilder
       
  1423 //!									Uses API elements: NewDESL(), BuildIntL(), NewL(), SetBuilder() and destructor
       
  1424 //! @SYMTestActions					1. Create a list using NewDESL() function and return KErrNone if successed
       
  1425 //!									2. Read a signed integer from test data if successful
       
  1426 //!									3. Add the signed integer in the list using BuildIntL() function. Return KErrNone if successed
       
  1427 //!									4. Create a new CElementParser object with the CSdpAttrValueDES object using NewL() function.
       
  1428 //!									   Return KErrNone if successed
       
  1429 //!									5. Call SetBuilder() function to parse CSdpAttrValueDES object
       
  1430 //!									6. Delete CElementParser object using destructor
       
  1431 //! @SYMTestStatus					Implemented
       
  1432 //! @SYMTestPriority				Low
       
  1433 //! @SYMTestExpectedResults			CSdpAttrValueDES object was set successfully
       
  1434 //! @SYMTestType					CIT
       
  1435 
       
  1436 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1437 			CREATE_OBJECT	CElementParser	celementparser1	
       
  1438 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  1439 			COMMAND		attrValueDES	NewDESL
       
  1440 			COMMAND		attrValueDES	BuildIntL		BTSDP-ElementParser-PublicApi-2305-0001command3BuildIntL
       
  1441 			COMMAND		celementparser1	NewL		BTSDP-ElementParser-PublicApi-2305-0001command5NewL
       
  1442 			COMMAND		celementparser1	SetBuilder		BTSDP-ElementParser-PublicApi-2305-0001command6SetBuilder
       
  1443 			COMMAND		celementparser1	~
       
  1444 	END_TEST_BLOCK
       
  1445 
       
  1446 END_TESTCASE BTSDP-ElementParser-PublicApi-2305
       
  1447 
       
  1448 
       
  1449 START_TESTCASE BTSDP-ElementParser-PublicApi-2306
       
  1450 //! @SYMTestCaseID					BTSDP-ElementParser-PublicApi-2306
       
  1451 //! @SYMAPI							CElementParser and CSdpAttrValueDEA
       
  1452 //! @SYMTestCaseDesc				Parse a data buffer into the currently set MSdpElementBuilder interface
       
  1453 //!									Uses API elements: NewDEAL(), BuildUintL(), NewL(), ParseElementsL() and destructor
       
  1454 //! @SYMTestActions					1. Create a list using NewDEAL() function and return KErrNone if successed
       
  1455 //!									2. Read an unsigned integer from test data if successful
       
  1456 //!									3. Add the unsigned integer in the list using BuildUintL() function. Return KErrNone if successed
       
  1457 //!									4. Create a new CElementParser object with the CSdpAttrValueDEA object using NewL() function.
       
  1458 //!									   Return KErrNone if successed
       
  1459 //!									5. Retrieve some data from an existent file using RFs and RFile objects
       
  1460 //!									6. CElementParser object parses a data buffer is gotten in step 5 and return number of bytes not consumed
       
  1461 //!									   Return KErrNone if successed
       
  1462 //!									7. Read an expected result from test data and test pass if the number of bytes not consumed is as expected
       
  1463 //!									8. Delete CElementParser object using destructor
       
  1464 //! @SYMTestStatus					Implemented
       
  1465 //! @SYMTestPriority				Low
       
  1466 //! @SYMTestExpectedResults			The number of bytes not consumed was matched to the expected
       
  1467 //! @SYMTestType					CIT
       
  1468 
       
  1469 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1470 			CREATE_OBJECT	CElementParser	celementparser1	
       
  1471 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
  1472 			COMMAND		attrValueDEA	NewDEAL
       
  1473 			COMMAND		attrValueDEA	BuildUintL		BTSDP-ElementParser-PublicApi-2306-0001command3BuildUintL
       
  1474 			COMMAND		celementparser1	NewL		BTSDP-ElementParser-PublicApi-2306-0001command5NewL
       
  1475 			COMMAND		celementparser1	ParseElementsL		BTSDP-ElementParser-PublicApi-2306-0001command6ParseElementsL
       
  1476 			COMMAND		celementparser1	Builder		BTSDP-ElementParser-PublicApi-2306-0001command7Builder
       
  1477 			COMMAND		attrValueDEA	DataSize		BTSDP-ElementParser-PublicApi-2306-0001command9DataSize
       
  1478 			COMMAND		attrValueDEA	~
       
  1479 	END_TEST_BLOCK
       
  1480 
       
  1481 END_TESTCASE BTSDP-ElementParser-PublicApi-2306
       
  1482 
       
  1483 
       
  1484 START_TESTCASE BTSDP-ElementParser-PublicApi-2307
       
  1485 //! @SYMTestCaseID					BTSDP-ElementParser-PublicApi-2307
       
  1486 //! @SYMAPI							CElementParser and CSdpAttrValueDEA
       
  1487 //! @SYMTestCaseDesc				Parse out some encoded data, with transparent buffering of unparsed data between calls
       
  1488 //!									Uses API elements: NewDEAL(), BuildUUIDL(), NewL(), BufferedParseL() and destructor
       
  1489 //! @SYMTestActions					1. Create a list using NewDEAL() function and return KErrNone if successed
       
  1490 //!									2. Read a UUID from test data and add it to the list if successful
       
  1491 //!									3. Add the UUID in the list using BuildUUIDL() function. Return KErrNone if successed
       
  1492 //!									4. Create a new CElementParser object with the CSdpAttrValueDEA object using NewL() function.
       
  1493 //!									   Return KErrNone if successed
       
  1494 //!									5. Retrieve some data from an existent file using RFs and RFile objects
       
  1495 //!									6. CElementParser object parses an input buffer is gotten in step 5 and return the result
       
  1496 //!									   Return KErrNone if successed
       
  1497 //!									7. Read an expected result from test data and test pass if the results are matched
       
  1498 //!									8. Delete CElementParser object using destructor
       
  1499 //! @SYMTestStatus					Implemented
       
  1500 //! @SYMTestPriority				Low
       
  1501 //! @SYMTestExpectedResults			Returned True and matched to the expected
       
  1502 //! @SYMTestType					CIT
       
  1503 
       
  1504 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1505 			CREATE_OBJECT	CElementParser	celementparser1	
       
  1506 			CREATE_OBJECT	CSdpAttrValueDEA	attrValueDEA	
       
  1507 			COMMAND		attrValueDEA	NewDEAL
       
  1508 			COMMAND		attrValueDEA	BuildUUIDL		BTSDP-ElementParser-PublicApi-2307-0001command3BuildUUIDL
       
  1509 			COMMAND		celementparser1	NewL		BTSDP-ElementParser-PublicApi-2307-0001command5NewL
       
  1510 			COMMAND		celementparser1	BufferedParseL		BTSDP-ElementParser-PublicApi-2307-0001command6BufferedParseL
       
  1511 			COMMAND		celementparser1	Builder		BTSDP-ElementParser-PublicApi-2307-0001command7Builder
       
  1512 			COMMAND		attrValueDEA	DataSize		BTSDP-ElementParser-PublicApi-2307-0001command9DataSize
       
  1513 			COMMAND		attrValueDEA	~
       
  1514 	END_TEST_BLOCK
       
  1515 
       
  1516 END_TESTCASE BTSDP-ElementParser-PublicApi-2307
       
  1517 
       
  1518 
       
  1519 START_TESTCASE BTSDP-ElementParser-PublicApi-2308
       
  1520 //! @SYMTestCaseID					BTSDP-ElementParser-PublicApi-2308
       
  1521 //! @SYMAPI							CElementParser and CSdpAttrValueDES
       
  1522 //! @SYMTestCaseDesc				Destroy CElementParser object
       
  1523 //!									Uses API elements: NewDESL(), BuildURLL() and NewL() and destructor
       
  1524 //! @SYMTestActions					1. Create a list using NewDESL() function and return KErrNone if successed
       
  1525 //!									2. Read a URL from test data and add it to the list if successful
       
  1526 //!									3. Add the URL in the list using BuildURLL() function. Return KErrNone if successed
       
  1527 //!									4. Create a new CElementParser object with the CSdpAttrValueDES object using NewL() function.
       
  1528 //!									   Return KErrNone if successed
       
  1529 //!									5. Delete CElementParser object using destructor
       
  1530 //! @SYMTestStatus					Implemented
       
  1531 //! @SYMTestPriority				Low
       
  1532 //! @SYMTestExpectedResults			CElementParser object was deleted successfully
       
  1533 //! @SYMTestType					CIT
       
  1534 
       
  1535 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1536 			CREATE_OBJECT	CElementParser	celementparser1	
       
  1537 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  1538 			COMMAND		attrValueDES	NewDESL
       
  1539 			COMMAND		attrValueDES	BuildURLL		BTSDP-ElementParser-PublicApi-2308-0001command3BuildURLL
       
  1540 			COMMAND		celementparser1	NewL		BTSDP-ElementParser-PublicApi-2308-0001command5NewL
       
  1541 			COMMAND		celementparser1	~
       
  1542 	END_TEST_BLOCK
       
  1543 
       
  1544 END_TESTCASE BTSDP-ElementParser-PublicApi-2308
       
  1545 
       
  1546 
       
  1547 // ****************************************************************************
       
  1548 // Negative test cases
       
  1549 // ****************************************************************************
       
  1550 
       
  1551 //!START_TESTCASE BTSDP-ElementParser-PublicApi-2309
       
  1552 //! @SYMTestCaseID					BTSDP-ElementParser-PublicApi-2309
       
  1553 //! @SYMAPI							CElementParser
       
  1554 //! @SYMTestCaseDesc				Parse a data buffer into the currently set MSdpElementBuilder interface
       
  1555 //!									Uses API elements: ParseElementsL()
       
  1556 //! @SYMTestActions					1. Parses a data buffer into the currently set MSdpElementBuilder interface using ParseElementsL() function.
       
  1557 //!									   Catch a panic if panic is thrown out
       
  1558 //! @SYMTestStatus					Implemented
       
  1559 //! @SYMTestPriority				Low
       
  1560 //! @SYMTestExpectedResults			Caught the panic
       
  1561 //! @SYMTestType					CIT
       
  1562 
       
  1563 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1564 //!			CREATE_OBJECT	CElementParser	celementparser1	
       
  1565 //!			COMMAND		celementparser1	ParseElementsL		BTSDP-ElementParser-PublicApi-2309-0001command1ParseElementsL
       
  1566 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  1567 
       
  1568 //!END_TESTCASE BTSDP-ElementParser-PublicApi-2309
       
  1569 
       
  1570 
       
  1571 //!START_TESTCASE BTSDP-ElementParser-PublicApi-2310
       
  1572 //! @SYMTestCaseID					BTSDP-ElementParser-PublicApi-2310
       
  1573 //! @SYMAPI							CElementParser
       
  1574 //! @SYMTestCaseDesc				Parse out some encoded data, with transparent buffering of unparsed data between calls
       
  1575 //!									Uses API elements: BufferedParseL()
       
  1576 //! @SYMTestActions					1. Parse out some encoded data, with transparent buffering of unparsed data between calls using BufferedParseL() function.
       
  1577 //!									   Catch a panic if panic is thrown out
       
  1578 //! @SYMTestStatus					Implemented
       
  1579 //! @SYMTestPriority				Low
       
  1580 //! @SYMTestExpectedResults			Caught the panic
       
  1581 //! @SYMTestType					CIT
       
  1582 
       
  1583 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1584 //!			CREATE_OBJECT	CElementParser	celementparser1	
       
  1585 //!			COMMAND		celementparser1	BufferedParseL		BTSDP-ElementParser-PublicApi-2310-0001command1BufferedParseL
       
  1586 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  1587 
       
  1588 //!END_TESTCASE BTSDP-ElementParser-PublicApi-2310
       
  1589 
       
  1590 
       
  1591 //!START_TESTCASE BTSDP-ElementParser-PublicApi-2311
       
  1592 //! @SYMTestCaseID					BTSDP-ElementParser-PublicApi-2311
       
  1593 //! @SYMAPI							CElementParser
       
  1594 //! @SYMTestCaseDesc				Reset the parser's buffers to be empty
       
  1595 //!									Uses API elements: Reset()
       
  1596 //! @SYMTestActions					1. Reset CElementParser object's buffers using Reset() function.
       
  1597 //!									   Catch a panic if panic is thrown out
       
  1598 //! @SYMTestStatus					Implemented
       
  1599 //! @SYMTestPriority				Low
       
  1600 //! @SYMTestExpectedResults			Caught the panic
       
  1601 //! @SYMTestType					CIT
       
  1602 
       
  1603 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1604 //!			CREATE_OBJECT	CElementParser	celementparser1	
       
  1605 //!			COMMAND		celementparser1	Reset
       
  1606 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  1607 
       
  1608 //!END_TESTCASE BTSDP-ElementParser-PublicApi-2311
       
  1609 
       
  1610 
       
  1611 //!START_TESTCASE BTSDP-ElementParser-PublicApi-2312
       
  1612 //! @SYMTestCaseID					BTSDP-ElementParser-PublicApi-2312
       
  1613 //! @SYMAPI							CElementParser
       
  1614 //! @SYMTestCaseDesc				Reset the parser's buffers to be empty, and reset the element builder object used
       
  1615 //!									Uses API elements: Reset()
       
  1616 //! @SYMTestActions					1. Use Reset() function to reset CElementParser object's buffers and the element builder, CSdpAttrValueDES object used.
       
  1617 //!									   Catch a panic if panic is thrown out
       
  1618 //! @SYMTestStatus					Implemented
       
  1619 //! @SYMTestPriority				Low
       
  1620 //! @SYMTestExpectedResults			Caught the panic
       
  1621 //! @SYMTestType					CIT
       
  1622 
       
  1623 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1624 //!			CREATE_OBJECT	CElementParser	celementparser1	
       
  1625 //!			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  1626 //!			COMMAND		celementparser1	Reset		BTSDP-ElementParser-PublicApi-2312-0001command1Reset
       
  1627 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  1628 
       
  1629 //!END_TESTCASE BTSDP-ElementParser-PublicApi-2312
       
  1630 
       
  1631 
       
  1632 //!START_TESTCASE BTSDP-ElementParser-PublicApi-2313
       
  1633 //! @SYMTestCaseID					BTSDP-ElementParser-PublicApi-2313
       
  1634 //! @SYMAPI							CElementParser
       
  1635 //! @SYMTestCaseDesc				Return MSdpElementBuilder object
       
  1636 //!									Uses API elements: Builder()
       
  1637 //! @SYMTestActions					1. Call Builder() function. Catch a panic if panic is thrown out
       
  1638 //! @SYMTestStatus					Implemented
       
  1639 //! @SYMTestPriority				Low
       
  1640 //! @SYMTestExpectedResults			Caught the panic
       
  1641 //! @SYMTestType					CIT
       
  1642 
       
  1643 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1644 //!			CREATE_OBJECT	CElementParser	celementparser1	
       
  1645 //!			COMMAND		celementparser1	Builder
       
  1646 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  1647 
       
  1648 //!END_TESTCASE BTSDP-ElementParser-PublicApi-2313
       
  1649 
       
  1650 
       
  1651 //!START_TESTCASE BTSDP-ElementParser-PublicApi-2314
       
  1652 //! @SYMTestCaseID					BTSDP-ElementParser-PublicApi-2314
       
  1653 //! @SYMAPI							CElementParser
       
  1654 //! @SYMTestCaseDesc				Set MSdpElementBuilder
       
  1655 //!									Uses API elements: SetBuilder()
       
  1656 //! @SYMTestActions					1. Call SetBuilder() function to parse CSdpAttrValueDES object.
       
  1657 //!									   Catch a panic if panic is thrown out
       
  1658 //! @SYMTestStatus					Implemented
       
  1659 //! @SYMTestPriority				Low
       
  1660 //! @SYMTestExpectedResults			Caught the panic
       
  1661 //! @SYMTestType					CIT
       
  1662 
       
  1663 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1664 //!			CREATE_OBJECT	CElementParser	celementparser1	
       
  1665 //!			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  1666 //!			COMMAND		celementparser1	SetBuilder		BTSDP-ElementParser-PublicApi-2314-0001command1SetBuilder
       
  1667 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  1668 
       
  1669 //!END_TESTCASE BTSDP-ElementParser-PublicApi-2314
       
  1670 
       
  1671 
       
  1672 
       
  1673 // ****************************************************************************
       
  1674 // BTSDP-AttrValueInt
       
  1675 // **************************************************************************** 
       
  1676 
       
  1677 START_TESTCASE BTSDP-AttrValInt-PublicApi-3101
       
  1678 //! @SYMTestCaseID				BTSDP-AttrValInt-PublicApi-3101
       
  1679 //! @SYMAPI						CSdpAttrValueInt
       
  1680 //! @SYMTestCaseDesc			Allocate and construct a new CSdpAttrValueInt object.
       
  1681 //!								Uses API elements: NewIntL() and destructor
       
  1682 //! @SYMTestActions				1. Read an input integer from test data if successful.   
       
  1683 //!								2. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.		
       
  1684 //!								3. Deconstruct CSdpAttrValueInt object.
       
  1685 //! @SYMTestStatus				Implemented
       
  1686 //! @SYMTestPriority			Low
       
  1687 //! @SYMTestExpectedResults  	CSdpAttrValueInt object was created successfully.
       
  1688 //! @SYMTestType				CIT
       
  1689 
       
  1690 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1691 			CREATE_OBJECT	CSdpAttrValueInt	attrvalueInt1	
       
  1692 			COMMAND		attrvalueInt1	NewIntL		BTSDP-AttrValInt-PublicApi-3101-0001command1NewIntL
       
  1693 			COMMAND		attrvalueInt1	~
       
  1694 	END_TEST_BLOCK
       
  1695 
       
  1696 END_TESTCASE   BTSDP-AttrValInt-PublicApi-3101
       
  1697 
       
  1698 
       
  1699 START_TESTCASE BTSDP-AttrValInt-PublicApi-3102
       
  1700 //! @SYMTestCaseID				BTSDP-AttrValInt-PublicApi-3102
       
  1701 //! @SYMAPI						CSdpAttrValueInt
       
  1702 //! @SYMTestCaseDesc			Gets the size of the attribute.
       
  1703 //!								Uses API elements: NewIntL(), DataSize() and destructor
       
  1704 //! @SYMTestActions				1. Read an input integer from test data if successful.   
       
  1705 //!								2. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
  1706 //!								3. Get the current size of CSdpAttrValueInt object using DataSize() function
       
  1707 //!								4. Read the expected size from test data and compare if actual size is as expected
       
  1708 //!								5. Test failed if sizes doesn't match
       
  1709 //!								6. Deconstructs CSdpAttrValueInt object.
       
  1710 //! @SYMTestStatus				Implemented
       
  1711 //! @SYMTestPriority			Low
       
  1712 //! @SYMTestExpectedResults  	Actual object size was matched to the expected size successfully.
       
  1713 //! @SYMTestType				CIT
       
  1714 
       
  1715 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1716 			CREATE_OBJECT	CSdpAttrValueInt	attrvalueInt1	
       
  1717 			COMMAND		attrvalueInt1	NewIntL		BTSDP-AttrValInt-PublicApi-3102-0001command1NewIntL
       
  1718 			COMMAND		attrvalueInt1	DataSize		BTSDP-AttrValInt-PublicApi-3102-0001command2DataSize
       
  1719 			COMMAND		attrvalueInt1	~
       
  1720 	END_TEST_BLOCK
       
  1721 
       
  1722 END_TESTCASE BTSDP-AttrValInt-PublicApi-3102
       
  1723 
       
  1724 
       
  1725 START_TESTCASE BTSDP-AttrValInt-PublicApi-3103
       
  1726 //! @SYMTestCaseID				BTSDP-AttrValInt-PublicApi-3103
       
  1727 //! @SYMAPI						CSdpAttrValueInt
       
  1728 //! @SYMTestCaseDesc			Gets the attribute type.
       
  1729 //!								Uses API elements: NewIntL(), Type() and destructor
       
  1730 //! @SYMTestActions				1. Read an input integer from test data if successful.   
       
  1731 //!								2. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
  1732 //!								3. Verify the object type using Type() function. Test pass if expected type is ETypeInt.
       
  1733 //!								4. Test failed if type doesn't match.	
       
  1734 //!								5. Deconstructs CSdpAttrValueInt object.
       
  1735 //! @SYMTestStatus				Implemented
       
  1736 //! @SYMTestPriority			Low
       
  1737 //! @SYMTestExpectedResults  	CSdpAttrValueInt type is ETypeInt.
       
  1738 //! @SYMTestType				CIT
       
  1739 
       
  1740 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1741 			CREATE_OBJECT	CSdpAttrValueInt	attrvalueInt1	
       
  1742 			COMMAND		attrvalueInt1	NewIntL		BTSDP-AttrValInt-PublicApi-3103-0001command1NewIntL
       
  1743 			COMMAND		attrvalueInt1	Type		BTSDP-AttrValInt-PublicApi-3103-0001command2Type
       
  1744 			COMMAND		attrvalueInt1	~
       
  1745 	END_TEST_BLOCK
       
  1746 
       
  1747 END_TESTCASE   BTSDP-AttrValInt-PublicApi-3103
       
  1748 
       
  1749 
       
  1750 START_TESTCASE BTSDP-AttrValInt-PublicApi-3104
       
  1751 //! @SYMTestCaseID				BTSDP-AttrValInt-PublicApi-3104
       
  1752 //! @SYMAPI						CSdpAttrValueInt
       
  1753 //! @SYMTestCaseDesc			Gets the value as a signed integer type.
       
  1754 //!								Uses API elements: NewIntL(), Int() and destructor
       
  1755 //! @SYMTestActions				1. Read an input integer from test data if successful.   
       
  1756 //!								2. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
  1757 //!								3. Verify the object signed integer value using Int() function. Test pass if expected signed integer value
       
  1758 //!									is same as actual signed integer value.
       
  1759 //!								4. Test failed if signed integer value doesn't match.
       
  1760 //!								5. Deconstructs CSdpAttrValueInt object.
       
  1761 //! @SYMTestStatus				Implemented
       
  1762 //! @SYMTestPriority			Medium
       
  1763 //! @SYMTestExpectedResults  	Actual signed integer value was matched to the expected value successfully.
       
  1764 //! @SYMTestType				CIT
       
  1765 
       
  1766 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1767 			CREATE_OBJECT	TSdpIntBuf32	attrIntBuf1	
       
  1768 			CREATE_OBJECT	CSdpAttrValueInt	attrvalueInt1	
       
  1769 			COMMAND		attrIntBuf1	NewIntBuf		BTSDP-AttrValInt-PublicApi-3104-0001command1NewIntBuf
       
  1770 			COMMAND		attrvalueInt1	NewIntL		BTSDP-AttrValInt-PublicApi-3104-0001command3NewIntL
       
  1771 			COMMAND		attrvalueInt1	Int		BTSDP-AttrValInt-PublicApi-3104-0001command4Int
       
  1772 			COMMAND		attrvalueInt1	~
       
  1773 	END_TEST_BLOCK
       
  1774 
       
  1775 END_TESTCASE   BTSDP-AttrValInt-PublicApi-3104
       
  1776 
       
  1777 
       
  1778 START_TESTCASE BTSDP-AttrValInt-PublicApi-3105
       
  1779 //! @SYMTestCaseID				BTSDP-AttrValInt-PublicApi-3105
       
  1780 //! @SYMAPI						CSdpAttrValueInt
       
  1781 //! @SYMTestCaseDesc			Tests if the attribute can be stored in an integer value.
       
  1782 //!								Uses API elements: NewIntL(), DoesIntFit() and destructor
       
  1783 //! @SYMTestActions				1. Read an input integer from test data if successful.   
       
  1784 //!								2. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
  1785 //!								3. Verify the object can be stored in an integer value using DoesIntFit() function.
       
  1786 //!									Test pass if object can be stored in an integer value and return ETrue as expected.
       
  1787 //!								4. Test failed if object can't be stored in an integer value and return EFalse.
       
  1788 //!								5. Deconstructs CSdpAttrValueInt object.
       
  1789 //! @SYMTestStatus				Implemented
       
  1790 //! @SYMTestPriority			Low
       
  1791 //! @SYMTestExpectedResults  	Object can be stored in an integer value and return ETrue successfully
       
  1792 //! @SYMTestType				CIT
       
  1793 
       
  1794 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1795 			CREATE_OBJECT	CSdpAttrValueInt	attrvalueInt1	
       
  1796 			COMMAND		attrvalueInt1	NewIntL		BTSDP-AttrValInt-PublicApi-3105-0001command1NewIntL
       
  1797 			COMMAND		attrvalueInt1	DoesIntFit		BTSDP-AttrValInt-PublicApi-3105-0001command2DoesIntFit
       
  1798 			COMMAND		attrvalueInt1	~
       
  1799 	END_TEST_BLOCK
       
  1800 
       
  1801 END_TESTCASE   BTSDP-AttrValInt-PublicApi-3105
       
  1802 
       
  1803 
       
  1804 START_TESTCASE BTSDP-AttrValInt-PublicApi-3106
       
  1805 //! @SYMTestCaseID				BTSDP-AttrValInt-PublicApi-3106
       
  1806 //! @SYMAPI						CSdpAttrValueInt
       
  1807 //! @SYMTestCaseDesc			Gets the value as a data buffer.
       
  1808 //!								Uses API elements: NewIntL(), Des() and destructor
       
  1809 //! @SYMTestActions				1. Read an input integer from test data if successful.   
       
  1810 //!								2. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
  1811 //!								3. Use Des() function to retrieve CSdpAttrValueInt object's data pointer descriptor.
       
  1812 //!								4. Read an input integer from test data and compare it with the contents in data pointer descriptor
       
  1813 //!									and check if actual integer value is same as expected input integer value.
       
  1814 //!								5. Deconstructs CSdpAttrValueInt object.
       
  1815 //! @SYMTestStatus				Implemented
       
  1816 //! @SYMTestPriority			Medium
       
  1817 //! @SYMTestExpectedResults  	Data buffer integer value was matched to the expected integer from test data successfully
       
  1818 //! @SYMTestType				CIT
       
  1819 
       
  1820 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1821 			CREATE_OBJECT	CSdpAttrValueInt	attrvalueInt1	
       
  1822 			COMMAND		attrvalueInt1	NewIntL		BTSDP-AttrValInt-PublicApi-3106-0001command1NewIntL
       
  1823 			COMMAND		attrvalueInt1	Des		BTSDP-AttrValInt-PublicApi-3106-0001command2Des
       
  1824 			COMMAND		attrvalueInt1	~
       
  1825 	END_TEST_BLOCK
       
  1826 
       
  1827 END_TESTCASE   BTSDP-AttrValInt-PublicApi-3106
       
  1828 
       
  1829 
       
  1830 START_TESTCASE BTSDP-AttrValInt-PublicApi-3107
       
  1831 //! @SYMTestCaseID				BTSDP-AttrValInt-PublicApi-3107
       
  1832 //! @SYMAPI						CSdpAttrValueInt
       
  1833 //! @SYMTestCaseDesc			Gets an unsigned integer attribute value.
       
  1834 //!								Uses API elements: NewIntL(), Uint() and destructor
       
  1835 //! @SYMTestActions				1. Read an input integer from test data if successful.   
       
  1836 //!								2. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
  1837 //!								3. Execute Uint() function and catch a panic and check if panic is thrown out as expected.
       
  1838 //!								4. Deconstructs CSdpAttrValueInt object.
       
  1839 //! @SYMTestStatus				Implemented
       
  1840 //! @SYMTestPriority			Low
       
  1841 //! @SYMTestExpectedResults  	Caught the panic.
       
  1842 //! @SYMTestType				CIT
       
  1843 
       
  1844 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1845 			CREATE_OBJECT	CSdpAttrValueInt	attrvalueInt1	
       
  1846 			COMMAND		attrvalueInt1	NewIntL		BTSDP-AttrValInt-PublicApi-3107-0001command1NewIntL
       
  1847 			COMMAND		attrvalueInt1	Uint
       
  1848 			COMMAND		attrvalueInt1	~
       
  1849 	END_TEST_BLOCK	!PanicCode=0	!PanicString=SDP-Database
       
  1850 
       
  1851 END_TESTCASE   BTSDP-AttrValInt-PublicApi-3107
       
  1852 
       
  1853 
       
  1854 START_TESTCASE BTSDP-AttrValInt-PublicApi-3108
       
  1855 //! @SYMTestCaseID				BTSDP-AttrValInt-PublicApi-3108
       
  1856 //! @SYMAPI						CSdpAttrValueInt
       
  1857 //! @SYMTestCaseDesc			Gets a UUID attribute value.
       
  1858 //!								Uses API elements: NewIntL(), UUID() and destructor
       
  1859 //! @SYMTestActions				1. Read an input integer from test data if successful.   
       
  1860 //!								2. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
  1861 //!								3. Execute UUID() function and catch a panic and check if panic is thrown out as expected.
       
  1862 //!								4. Deconstructs CSdpAttrValueInt object.
       
  1863 //! @SYMTestStatus				Implemented
       
  1864 //! @SYMTestPriority			Low
       
  1865 //! @SYMTestExpectedResults  	Caught the panic.
       
  1866 //! @SYMTestType				CIT
       
  1867 
       
  1868 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1869 			CREATE_OBJECT	CSdpAttrValueInt	attrvalueInt1	
       
  1870 			COMMAND		attrvalueInt1	NewIntL		BTSDP-AttrValInt-PublicApi-3108-0001command1NewIntL
       
  1871 			COMMAND		attrvalueInt1	UUID
       
  1872 			COMMAND		attrvalueInt1	~
       
  1873 	END_TEST_BLOCK	!PanicCode=0	!PanicString=SDP-Database
       
  1874 
       
  1875 END_TESTCASE   BTSDP-AttrValInt-PublicApi-3108
       
  1876 
       
  1877 
       
  1878 START_TESTCASE BTSDP-AttrValInt-PublicApi-3109
       
  1879 //! @SYMTestCaseID				BTSDP-AttrValInt-PublicApi-3109
       
  1880 //! @SYMAPI						CSdpAttrValueInt
       
  1881 //! @SYMTestCaseDesc			Gets a Boolean attribute value.
       
  1882 //!								Uses API elements: NewIntL(), Bool() and destructor
       
  1883 //! @SYMTestActions				1. Read an input integer from test data if successful.   
       
  1884 //!								2. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
  1885 //!								3. Execute Bool() function and catch a panic and check if panic is thrown out as expected.
       
  1886 //!								4. Deconstructs CSdpAttrValueUint object.
       
  1887 //! @SYMTestStatus				Implemented
       
  1888 //! @SYMTestPriority			Low
       
  1889 //! @SYMTestExpectedResults  	Caught the panic.
       
  1890 //! @SYMTestType				CIT
       
  1891 
       
  1892 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1893 			CREATE_OBJECT	CSdpAttrValueInt	attrvalueInt1	
       
  1894 			COMMAND		attrvalueInt1	NewIntL		BTSDP-AttrValInt-PublicApi-3109-0001command1NewIntL
       
  1895 			COMMAND		attrvalueInt1	Bool
       
  1896 			COMMAND		attrvalueInt1	~
       
  1897 	END_TEST_BLOCK	!PanicCode=0	!PanicString=SDP-Database
       
  1898 
       
  1899 END_TESTCASE   BTSDP-AttrValInt-PublicApi-3109
       
  1900 
       
  1901 
       
  1902 START_TESTCASE BTSDP-AttrValInt-PublicApi-3110
       
  1903 //! @SYMTestCaseID				BTSDP-AttrValInt-PublicApi-3110
       
  1904 //! @SYMAPI						CSdpAttrValueInt
       
  1905 //! @SYMTestCaseDesc			Test CSdpAttrValue's AcceptVisitorL() function
       
  1906 //!								Uses API elements: NewIntL(), AcceptVisitorL() and destructor
       
  1907 //! @SYMTestActions				1. Read an input integer from test data if successful.   
       
  1908 //!								2. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
  1909 //!								3. Execute AcceptVisitorL() function and return TSdpElementType is ETypeInt, integer value.
       
  1910 //!								4. Deconstructs CSdpAttrValueInt object.
       
  1911 //! @SYMTestStatus				Implemented
       
  1912 //! @SYMTestPriority			Low
       
  1913 //! @SYMTestExpectedResults  	The correct TSdpElementType and value were returned successfully.
       
  1914 //! @SYMTestType				CIT
       
  1915 
       
  1916 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1917 			CREATE_OBJECT	CSdpAttrValueInt	attrvalueInt1	
       
  1918 			COMMAND		attrvalueInt1	NewIntL		BTSDP-AttrValInt-PublicApi-3110-0001command1NewIntL
       
  1919 			COMMAND		attrvalueInt1	AcceptVisitorL		BTSDP-AttrValInt-PublicApi-3110-0001command2AcceptVisitorL
       
  1920 			COMMAND		attrvalueInt1	~
       
  1921 	END_TEST_BLOCK
       
  1922 
       
  1923 END_TESTCASE   BTSDP-AttrValInt-PublicApi-3110
       
  1924 
       
  1925 
       
  1926 // ****************************************************************************
       
  1927 // Negative
       
  1928 // **************************************************************************** 
       
  1929 
       
  1930 
       
  1931 START_TESTCASE BTSDP-AttrValInt-PublicApi-3111
       
  1932 //! @SYMTestCaseID				BTSDP-AttrValInt-PublicApi-3111
       
  1933 //! @SYMAPI						CSdpAttrValueInt
       
  1934 //! @SYMTestCaseDesc			Tests if the attribute can be stored in an positive integer value 64 bits.
       
  1935 //!								Uses API elements: NewIntL(), DoesIntFit(), Des() and destructor
       
  1936 //! @SYMTestActions				1. Read an input positive integer 64 bits from test data if successful.
       
  1937 //!								2. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
  1938 //!								3. Verify the object can be stored in an positive integer value 64 bits using DoesIntFit() function.
       
  1939 //!									Test pass if object can not be stored in an integer value 64 bits and return EFalse as expected.
       
  1940 //!								4. Test failed if object can be stored in an positive integer value 64 bits and return ETrue.
       
  1941 //!								7. Deconstructs CSdpAttrValueInt object.
       
  1942 //! @SYMTestStatus				Implemented
       
  1943 //! @SYMTestPriority			Low
       
  1944 //! @SYMTestExpectedResults  	Object can not be stored in an positive integer value 64 bits and return EFalse successfully.
       
  1945 //! @SYMTestType				CIT
       
  1946 
       
  1947 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1948 			CREATE_OBJECT	CSdpAttrValueInt	attrvalueInt1	
       
  1949 			COMMAND		attrvalueInt1	NewIntL		BTSDP-AttrValInt-PublicApi-3111-0001command1NewIntL
       
  1950 			COMMAND		attrvalueInt1	DoesIntFit		BTSDP-AttrValInt-PublicApi-3111-0001command2DoesIntFit
       
  1951 			COMMAND		attrvalueInt1	~
       
  1952 	END_TEST_BLOCK
       
  1953 
       
  1954 END_TESTCASE   BTSDP-AttrValInt-PublicApi-3111
       
  1955 
       
  1956 
       
  1957 START_TESTCASE BTSDP-AttrValInt-PublicApi-3112
       
  1958 //! @SYMTestCaseID				BTSDP-AttrValInt-PublicApi-3112
       
  1959 //! @SYMAPI						CSdpAttrValueInt
       
  1960 //! @SYMTestCaseDesc			Tests if the attribute can be stored in an positive integer value 128 bits.
       
  1961 //!								Uses API elements: NewIntL(), DoesIntFit(), Des() and destructor
       
  1962 //! @SYMTestActions				1. Read an input positive integer 128 bits from test data if successful.
       
  1963 //!								2. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
  1964 //!								3. Verify the object can be stored in an positive integer value 128 bits using DoesIntFit() function.
       
  1965 //!									Test pass if object can not be stored in an positive integer value 128 bits and return EFalse as expected.
       
  1966 //!								4. Test failed if object can be stored in an positive integer value 128 bits and return ETrue.
       
  1967 //!								7. Deconstructs CSdpAttrValueInt object.
       
  1968 //! @SYMTestStatus				Implemented
       
  1969 //! @SYMTestPriority			Low
       
  1970 //! @SYMTestExpectedResults  	Object can not be stored in an positive integer value 128 bits and return EFalse successfully.
       
  1971 //! @SYMTestType				CIT
       
  1972 
       
  1973 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  1974 			CREATE_OBJECT	CSdpAttrValueInt	attrvalueInt1	
       
  1975 			COMMAND		attrvalueInt1	NewIntL		BTSDP-AttrValInt-PublicApi-3112-0001command1NewIntL
       
  1976 			COMMAND		attrvalueInt1	DoesIntFit		BTSDP-AttrValInt-PublicApi-3112-0001command2DoesIntFit
       
  1977 			COMMAND		attrvalueInt1	~
       
  1978 	END_TEST_BLOCK
       
  1979 
       
  1980 END_TESTCASE   BTSDP-AttrValInt-PublicApi-3112
       
  1981 
       
  1982 
       
  1983 START_TESTCASE BTSDP-AttrValInt-PublicApi-3113
       
  1984 //! @SYMTestCaseID				BTSDP-AttrValInt-PublicApi-3113
       
  1985 //! @SYMAPI						CSdpAttrValueInt
       
  1986 //! @SYMTestCaseDesc			Tests if the attribute can be stored in an negative integer value 64 bits.
       
  1987 //!								Uses API elements: NewIntL(), DoesIntFit(), Des() and destructor
       
  1988 //! @SYMTestActions				1. Read an input negative integer 64 bits from test data if successful.
       
  1989 //!								2. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
  1990 //!								3. Verify the object can be stored in an negative integer value 64 bits using DoesIntFit() function.
       
  1991 //!									Test pass if object can not be stored in an negative integer value 64 bits and return EFalse as expected.
       
  1992 //!								4. Test failed if object can be stored in an negative integer value 64 bits and return ETrue.
       
  1993 //!								7. Deconstructs CSdpAttrValueInt object.
       
  1994 //! @SYMTestStatus				Implemented
       
  1995 //! @SYMTestPriority			Low
       
  1996 //! @SYMTestExpectedResults  	Object can not be stored in an negative integer value 64 bits and return EFalse successfully.
       
  1997 //! @SYMTestType				CIT
       
  1998 
       
  1999 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2000 			CREATE_OBJECT	CSdpAttrValueInt	attrvalueInt1	
       
  2001 			COMMAND		attrvalueInt1	NewIntL		BTSDP-AttrValInt-PublicApi-3113-0001command1NewIntL
       
  2002 			COMMAND		attrvalueInt1	DoesIntFit		BTSDP-AttrValInt-PublicApi-3113-0001command2DoesIntFit
       
  2003 			COMMAND		attrvalueInt1	~
       
  2004 	END_TEST_BLOCK
       
  2005 
       
  2006 END_TESTCASE   BTSDP-AttrValInt-PublicApi-3113
       
  2007 
       
  2008 
       
  2009 //!START_TESTCASE BTSDP-AttrValInt-PublicApi-3114
       
  2010 //! @SYMTestCaseID				BTSDP-AttrValInt-PublicApi-3114
       
  2011 //! @SYMAPI						CSdpAttrValueInt
       
  2012 //! @SYMTestCaseDesc			Tests if the attribute can be stored in an negative integer value 128 bits.
       
  2013 //!								Uses API elements: NewIntL(), DoesIntFit(), Des() and destructor
       
  2014 //! @SYMTestActions				1. Read an input negative integer 128 bits from test data if successful.
       
  2015 //!								2. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
  2016 //!								3. Verify the object can be stored in an negative integer value 128 bits using DoesIntFit() function.
       
  2017 //!									Test pass if object can not be stored in an negative integer value 128 bits and return EFalse as expected.
       
  2018 //!								4. Test failed if object can be stored in an negative integer value 128 bits and return ETrue.
       
  2019 //!								7. Deconstructs CSdpAttrValueInt object.
       
  2020 //! @SYMTestStatus				Implemented
       
  2021 //! @SYMTestPriority			Low
       
  2022 //! @SYMTestExpectedResults  	Caught the panic. Object can not be stored in an negative integer value 128 bits and return EFalse successfully.
       
  2023 //! @SYMTestType				CIT
       
  2024 
       
  2025 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2026 //!			CREATE_OBJECT	CSdpAttrValueInt	attrvalueInt1	
       
  2027 //!			COMMAND	!Error=-6	attrvalueInt1	NewIntL		BTSDP-AttrValInt-PublicApi-3114-0001command1NewIntL
       
  2028 //!			COMMAND		attrvalueInt1	DoesIntFit		BTSDP-AttrValInt-PublicApi-3114-0001command2DoesIntFit
       
  2029 //!			COMMAND		attrvalueInt1	~
       
  2030 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  2031 
       
  2032 //!END_TESTCASE   BTSDP-AttrValInt-PublicApi-3114
       
  2033 
       
  2034 
       
  2035 //!START_TESTCASE BTSDP-AttrValInt-PublicApi-3115
       
  2036 //! @SYMTestCaseID				BTSDP-AttrValInt-PublicApi-3115
       
  2037 //! @SYMAPI						CSdpAttrValueInt
       
  2038 //! @SYMTestCaseDesc			Get the attribute type
       
  2039 //!								Uses API elements: Type()
       
  2040 //! @SYMTestActions				1. Get the attribute type using Type() function. Catch a panic if panic is thrown out
       
  2041 //! @SYMTestStatus				Implemented
       
  2042 //! @SYMTestPriority			Low
       
  2043 //! @SYMTestExpectedResults  	Caught the panic
       
  2044 //! @SYMTestType				CIT
       
  2045 
       
  2046 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2047 //!			CREATE_OBJECT	CSdpAttrValueInt	attrvalueInt1	
       
  2048 //!			COMMAND		attrvalueInt1	Type
       
  2049 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  2050 
       
  2051 //!END_TESTCASE   BTSDP-AttrValInt-PublicApi-3115
       
  2052 
       
  2053 
       
  2054 //!START_TESTCASE BTSDP-AttrValInt-PublicApi-3116
       
  2055 //! @SYMTestCaseID				BTSDP-AttrValInt-PublicApi-3116
       
  2056 //! @SYMAPI						CSdpAttrValueInt
       
  2057 //! @SYMTestCaseDesc			Get the size of the attribute
       
  2058 //!								Uses API elements: DataSize()
       
  2059 //! @SYMTestActions				1. Get the size of the attribute using DataSize() function. Catch a panic if panic is thrown out
       
  2060 //! @SYMTestStatus				Implemented
       
  2061 //! @SYMTestPriority			Low
       
  2062 //! @SYMTestExpectedResults  	Caught the panic
       
  2063 //! @SYMTestType				CIT
       
  2064 
       
  2065 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2066 //!			CREATE_OBJECT	CSdpAttrValueInt	attrvalueInt1	
       
  2067 //!			COMMAND		attrvalueInt1	DataSize
       
  2068 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  2069 
       
  2070 //!END_TESTCASE   BTSDP-AttrValInt-PublicApi-3116
       
  2071 
       
  2072 
       
  2073 //!START_TESTCASE BTSDP-AttrValInt-PublicApi-3117
       
  2074 //! @SYMTestCaseID				BTSDP-AttrValInt-PublicApi-3117
       
  2075 //! @SYMAPI						CSdpAttrValueInt
       
  2076 //! @SYMTestCaseDesc			Get the value as a signed integer type
       
  2077 //!								Uses API elements: Int()
       
  2078 //! @SYMTestActions				1. Get the value as a signed integer type using Int() function. Catch a panic if panic is thrown out
       
  2079 //! @SYMTestStatus				Implemented
       
  2080 //! @SYMTestPriority			Low
       
  2081 //! @SYMTestExpectedResults  	Caught the panic
       
  2082 //! @SYMTestType				CIT
       
  2083 
       
  2084 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2085 //!			CREATE_OBJECT	CSdpAttrValueInt	attrvalueInt1	
       
  2086 //!			COMMAND		attrvalueInt1	Int
       
  2087 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  2088 
       
  2089 //!END_TESTCASE   BTSDP-AttrValInt-PublicApi-3117
       
  2090 
       
  2091 
       
  2092 //!START_TESTCASE BTSDP-AttrValInt-PublicApi-3118
       
  2093 //! @SYMTestCaseID				BTSDP-AttrValInt-PublicApi-3118
       
  2094 //! @SYMAPI						CSdpAttrValueInt
       
  2095 //! @SYMTestCaseDesc			Test if the attribute can be stored in an integer value
       
  2096 //!								Uses API elements: DoesIntFit()
       
  2097 //! @SYMTestActions				1. Test if the attribute can be stored in an integer value using DoesIntFit() function. 
       
  2098 //!								   Catch a panic if panic is thrown out
       
  2099 //! @SYMTestStatus				Implemented
       
  2100 //! @SYMTestPriority			Low
       
  2101 //! @SYMTestExpectedResults  	Caught the panic
       
  2102 //! @SYMTestType				CIT
       
  2103 
       
  2104 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2105 //!			CREATE_OBJECT	CSdpAttrValueInt	attrvalueInt1	
       
  2106 //!			COMMAND		attrvalueInt1	DoesIntFit
       
  2107 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  2108 
       
  2109 //!END_TESTCASE   BTSDP-AttrValInt-PublicApi-3118
       
  2110 
       
  2111 
       
  2112 //!START_TESTCASE BTSDP-AttrValInt-PublicApi-3119
       
  2113 //! @SYMTestCaseID				BTSDP-AttrValInt-PublicApi-3119
       
  2114 //! @SYMAPI						CSdpAttrValueInt
       
  2115 //! @SYMTestCaseDesc			Get the value as a data buffer
       
  2116 //!								Uses API elements: Des()
       
  2117 //! @SYMTestActions				1. Get the value as a data buffer using Des() function. Catch a panic if panic is thrown out
       
  2118 //! @SYMTestStatus				Implemented
       
  2119 //! @SYMTestPriority			Low
       
  2120 //! @SYMTestExpectedResults  	Caught the panic
       
  2121 //! @SYMTestType				CIT
       
  2122 
       
  2123 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2124 //!			CREATE_OBJECT	CSdpAttrValueInt	attrvalueInt1	
       
  2125 //!			COMMAND		attrvalueInt1	Des
       
  2126 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  2127 
       
  2128 //!END_TESTCASE   BTSDP-AttrValInt-PublicApi-3119
       
  2129 
       
  2130 
       
  2131 //!START_TESTCASE BTSDP-AttrValInt-PublicApi-3120
       
  2132 //! @SYMTestCaseID				BTSDP-AttrValInt-PublicApi-3120
       
  2133 //! @SYMAPI						CSdpAttrValue
       
  2134 //! @SYMTestCaseDesc			Request a call back to pass the attribute value
       
  2135 //!								Uses API elements: AcceptVisitorL()
       
  2136 //! @SYMTestActions				1. Request a call back to pass the attribute value using AcceptVisitorL() function. 
       
  2137 //!								   Catch a panic if panic is thrown out
       
  2138 //! @SYMTestStatus				Implemented
       
  2139 //! @SYMTestPriority			Low
       
  2140 //! @SYMTestExpectedResults  	Caught the panic
       
  2141 //! @SYMTestType				CIT
       
  2142 
       
  2143 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2144 //!			CREATE_OBJECT	CSdpAttrValueInt	attrvalueInt1	
       
  2145 //!			COMMAND		attrvalueInt1	AcceptVisitorL
       
  2146 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  2147 
       
  2148 //!END_TESTCASE   BTSDP-AttrValInt-PublicApi-3120
       
  2149 
       
  2150 
       
  2151 
       
  2152 // ****************************************************************************
       
  2153 // BTSDP-AttrValueUint
       
  2154 // **************************************************************************** 
       
  2155 
       
  2156 START_TESTCASE BTSDP-AttrValUint-PublicApi-3201
       
  2157 //! @SYMTestCaseID				BTSDP-AttrValUint-PublicApi-3201
       
  2158 //! @SYMAPI						CSdpAttrValueUint
       
  2159 //! @SYMTestCaseDesc			Allocate and construct a new CSdpAttrValueUint object.
       
  2160 //!								Uses API elements: NewUintL() and destructor
       
  2161 //! @SYMTestActions				1. Read an input integer from test data if successful.   
       
  2162 //!								2. Allocate and construct a new CSdpAttrValueUint object using NewUintL() function and return KErrNone if successed.		
       
  2163 //!								3. Deconstruct CSdpAttrValueUint object.
       
  2164 //! @SYMTestStatus				Implemented
       
  2165 //! @SYMTestPriority			Low
       
  2166 //! @SYMTestExpectedResults  	CSdpAttrValueUint object was created successfully.
       
  2167 //! @SYMTestType				CIT
       
  2168 
       
  2169 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2170 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint1	
       
  2171 			COMMAND		attrValueUint1	NewUintL		BTSDP-AttrValUint-PublicApi-3201-0001command1NewUintL
       
  2172 			COMMAND		attrValueUint1	~
       
  2173 	END_TEST_BLOCK
       
  2174 
       
  2175 END_TESTCASE   BTSDP-AttrValUint-PublicApi-3201
       
  2176 
       
  2177 
       
  2178 START_TESTCASE BTSDP-AttrValUint-PublicApi-3202
       
  2179 //! @SYMTestCaseID				BTSDP-AttrValUint-PublicApi-3202
       
  2180 //! @SYMAPI						CSdpAttrValueUint
       
  2181 //! @SYMTestCaseDesc			Gets the size of the attribute.
       
  2182 //!								Uses API elements: NewUintL(), DataSize() and destructor
       
  2183 //! @SYMTestActions				1. Read an input integer from test data if successful.   
       
  2184 //!								2. Allocate and construct a new CSdpAttrValueUint object using NewUintL() function and return KErrNone if successed.
       
  2185 //!								3. Get the current size of CSdpAttrValueUint object using DataSize() function
       
  2186 //!								4. Read the expected size from test data and compare if actual size is as expected
       
  2187 //!								5. Test failed if sizes doesn't match
       
  2188 //!								6. Deconstructs CSdpAttrValueUint object.
       
  2189 //! @SYMTestStatus				Implemented
       
  2190 //! @SYMTestPriority			Low
       
  2191 //! @SYMTestExpectedResults  	Actual object size was matched to the expected size successfully.
       
  2192 //! @SYMTestType				CIT
       
  2193 
       
  2194 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2195 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint1	
       
  2196 			COMMAND		attrValueUint1	NewUintL		BTSDP-AttrValUint-PublicApi-3202-0001command1NewUintL
       
  2197 			COMMAND		attrValueUint1	DataSize		BTSDP-AttrValUint-PublicApi-3202-0001command2DataSize
       
  2198 			COMMAND		attrValueUint1	~
       
  2199 	END_TEST_BLOCK
       
  2200 
       
  2201 END_TESTCASE BTSDP-AttrValUint-PublicApi-3202
       
  2202 
       
  2203 
       
  2204 START_TESTCASE BTSDP-AttrValUint-PublicApi-3203
       
  2205 //! @SYMTestCaseID				BTSDP-AttrValUint-PublicApi-3203
       
  2206 //! @SYMAPI						CSdpAttrValueUint
       
  2207 //! @SYMTestCaseDesc			Gets the attribute type.
       
  2208 //!								Uses API elements: NewUintL(), Type() and destructor
       
  2209 //! @SYMTestActions				1. Read an input integer from test data if successful.   
       
  2210 //!								2. Allocate and construct a new CSdpAttrValueUint object using NewUintL() function and return KErrNone if successed.
       
  2211 //!								3. Verify the object type using Type() function. Test pass if expected type is ETypeUint.
       
  2212 //!								4. Test failed if type doesn't match.	
       
  2213 //!								5. Deconstructs CSdpAttrValueUint object.
       
  2214 //! @SYMTestStatus				Implemented
       
  2215 //! @SYMTestPriority			Low
       
  2216 //! @SYMTestExpectedResults  	CSdpAttrValueUint type is ETypeUint.
       
  2217 //! @SYMTestType				CIT
       
  2218 
       
  2219 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2220 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint1	
       
  2221 			COMMAND		attrValueUint1	NewUintL		BTSDP-AttrValUint-PublicApi-3203-0001command1NewUintL
       
  2222 			COMMAND		attrValueUint1	Type		BTSDP-AttrValUint-PublicApi-3203-0001command2Type
       
  2223 			COMMAND		attrValueUint1	~
       
  2224 	END_TEST_BLOCK
       
  2225 
       
  2226 END_TESTCASE   BTSDP-AttrValUint-PublicApi-3203
       
  2227 
       
  2228 
       
  2229 START_TESTCASE BTSDP-AttrValUint-PublicApi-3204
       
  2230 //! @SYMTestCaseID				BTSDP-AttrValUint-PublicApi-3204
       
  2231 //! @SYMAPI						CSdpAttrValueUint
       
  2232 //! @SYMTestCaseDesc			Gets the value as a unsigned integer type.
       
  2233 //!								Uses API elements: NewUintL(), Uint() and destructor
       
  2234 //! @SYMTestActions				1. Read an input integer from test data if successful.   
       
  2235 //!								2. Allocate and construct a new CSdpAttrValueUint object using NewUintL() function and return KErrNone if successed.
       
  2236 //!								3. Verify the object unsigned integer value using Uint() function. Test pass if expected unsigned integer value
       
  2237 //!									is same as actual unsigned integer value.
       
  2238 //!								4. Test failed if unsigned integer value doesn't match.
       
  2239 //!								5. Deconstructs CSdpAttrValueUint object.
       
  2240 //! @SYMTestStatus				Implemented
       
  2241 //! @SYMTestPriority			Medium
       
  2242 //! @SYMTestExpectedResults  	Actual unsigned integer value was matched to the expected value successfully.
       
  2243 //! @SYMTestType				CIT
       
  2244 
       
  2245 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2246 			CREATE_OBJECT	TSdpIntBuf32	attrIntBuf1	
       
  2247 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint1	
       
  2248 			COMMAND		attrIntBuf1	NewIntBuf		BTSDP-AttrValUint-PublicApi-3204-0001command1NewIntBuf
       
  2249 			COMMAND		attrValueUint1	NewUintL		BTSDP-AttrValUint-PublicApi-3204-0001command3NewUintL
       
  2250 			COMMAND		attrValueUint1	Des		BTSDP-AttrValUint-PublicApi-3204-0001command4Des
       
  2251 			COMMAND		attrValueUint1	NewUintL		BTSDP-AttrValUint-PublicApi-3204-0001command5NewUintL
       
  2252 			COMMAND		attrValueUint1	Uint		BTSDP-AttrValUint-PublicApi-3204-0001command6Uint
       
  2253 			COMMAND		attrValueUint1	~
       
  2254 	END_TEST_BLOCK
       
  2255 
       
  2256 END_TESTCASE   BTSDP-AttrValUint-PublicApi-3204
       
  2257 
       
  2258 
       
  2259 START_TESTCASE BTSDP-AttrValUint-PublicApi-3205
       
  2260 //! @SYMTestCaseID				BTSDP-AttrValUint-PublicApi-3205
       
  2261 //! @SYMAPI						CSdpAttrValueUint
       
  2262 //! @SYMTestCaseDesc			Tests if the attribute can be stored in an integer value.
       
  2263 //!								Uses API elements: NewUintL(), DoesIntFit() and destructor
       
  2264 //! @SYMTestActions				1. Read an input integer from test data if successful.   
       
  2265 //!								2. Allocate and construct a new CSdpAttrValueUint object using NewUintL() function and return KErrNone if successed.
       
  2266 //!								3. Verify the object can be stored in an integer value using DoesIntFit() function.
       
  2267 //!									Test pass if object can be stored in an integer value and return ETrue as expected.
       
  2268 //!								4. Test failed if object can't be stored in an integer value and return EFalse.
       
  2269 //!								5. Deconstructs CSdpAttrValueUint object.
       
  2270 //! @SYMTestStatus				Implemented
       
  2271 //! @SYMTestPriority			Low
       
  2272 //! @SYMTestExpectedResults  	Object can be stored in an integer value and return ETrue successfully
       
  2273 //! @SYMTestType				CIT
       
  2274 
       
  2275 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2276 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint1	
       
  2277 			COMMAND		attrValueUint1	NewUintL		BTSDP-AttrValUint-PublicApi-3205-0001command1NewUintL
       
  2278 			COMMAND		attrValueUint1	DoesIntFit		BTSDP-AttrValUint-PublicApi-3205-0001command2DoesIntFit
       
  2279 			COMMAND		attrValueUint1	~
       
  2280 	END_TEST_BLOCK
       
  2281 
       
  2282 END_TESTCASE   BTSDP-AttrValUint-PublicApi-3205
       
  2283 
       
  2284 
       
  2285 START_TESTCASE BTSDP-AttrValUint-PublicApi-3206
       
  2286 //! @SYMTestCaseID				BTSDP-AttrValUint-PublicApi-3206
       
  2287 //! @SYMAPI						CSdpAttrValueUint
       
  2288 //! @SYMTestCaseDesc			Gets the value as a data buffer.
       
  2289 //!								Uses API elements: NewUintL(), Des() and destructor
       
  2290 //! @SYMTestActions				1. Read an input integer from test data if successful.   
       
  2291 //!								2. Allocate and construct a new CSdpAttrValueUint object using NewUintL() function and return KErrNone if successed.
       
  2292 //!								3. Use Des() function to retrieve CSdpAttrValueUint object's data pointer descriptor.
       
  2293 //!								4. Read an input integer from test data and compare it with the contents in data pointer descriptor
       
  2294 //!									and check if actual integer value is same as expected input integer value.
       
  2295 //!								5. Deconstructs CSdpAttrValueUint object.
       
  2296 //! @SYMTestStatus				Implemented
       
  2297 //! @SYMTestPriority			Medium
       
  2298 //! @SYMTestExpectedResults  	Data buffer integer value was matched to the expected integer from test data successfully
       
  2299 //! @SYMTestType				CIT
       
  2300 
       
  2301 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2302 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint1	
       
  2303 			COMMAND		attrValueUint1	NewUintL		BTSDP-AttrValUint-PublicApi-3206-0001command1NewUintL
       
  2304 			COMMAND		attrValueUint1	Des		BTSDP-AttrValUint-PublicApi-3206-0001command2Des
       
  2305 			COMMAND		attrValueUint1	~
       
  2306 	END_TEST_BLOCK
       
  2307 
       
  2308 END_TESTCASE   BTSDP-AttrValUint-PublicApi-3206
       
  2309 
       
  2310 
       
  2311 START_TESTCASE BTSDP-AttrValUint-PublicApi-3207
       
  2312 //! @SYMTestCaseID				BTSDP-AttrValUint-PublicApi-3207
       
  2313 //! @SYMAPI						CSdpAttrValueUint
       
  2314 //! @SYMTestCaseDesc			Gets an signed integer attribute value.
       
  2315 //!								Uses API elements: NewUintL(), Int() and destructor
       
  2316 //! @SYMTestActions				1. Read an input integer from test data if successful.   
       
  2317 //!								2. Allocate and construct a new CSdpAttrValueUint object using NewUintL() function and return KErrNone if successed.
       
  2318 //!								3. Execute Int() function and catch a panic and check if panic is thrown out as expected.
       
  2319 //!								4. Deconstructs CSdpAttrValueUint object.
       
  2320 //! @SYMTestStatus				Implemented
       
  2321 //! @SYMTestPriority			Low
       
  2322 //! @SYMTestExpectedResults  	Caught the panic.
       
  2323 //! @SYMTestType				CIT
       
  2324 
       
  2325 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2326 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint1	
       
  2327 			COMMAND		attrValueUint1	NewUintL		BTSDP-AttrValUint-PublicApi-3207-0001command1NewUintL
       
  2328 			COMMAND		attrValueUint1	Int
       
  2329 			COMMAND		attrValueUint1	~
       
  2330 	END_TEST_BLOCK	!PanicCode=0	!PanicString=SDP-Database
       
  2331 
       
  2332 END_TESTCASE   BTSDP-AttrValUint-PublicApi-3207
       
  2333 
       
  2334 
       
  2335 START_TESTCASE BTSDP-AttrValUint-PublicApi-3208
       
  2336 //! @SYMTestCaseID				BTSDP-AttrValUint-PublicApi-3208
       
  2337 //! @SYMAPI						CSdpAttrValueUint
       
  2338 //! @SYMTestCaseDesc			Gets a UUID attribute value.
       
  2339 //!								Uses API elements: NewUintL(), UUID() and destructor
       
  2340 //! @SYMTestActions				1. Read an input integer from test data if successful.   
       
  2341 //!								2. Allocate and construct a new CSdpAttrValueUint object using NewUintL() function and return KErrNone if successed.
       
  2342 //!								3. Execute UUID() function and catch a panic and check if panic is thrown out as expected.
       
  2343 //!								4. Deconstructs CSdpAttrValueUint object.
       
  2344 //! @SYMTestStatus				Implemented
       
  2345 //! @SYMTestPriority			Low
       
  2346 //! @SYMTestExpectedResults  	Caught the panic.
       
  2347 //! @SYMTestType				CIT
       
  2348 
       
  2349 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2350 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint1	
       
  2351 			COMMAND		attrValueUint1	NewUintL		BTSDP-AttrValUint-PublicApi-3208-0001command1NewUintL
       
  2352 			COMMAND		attrValueUint1	UUID
       
  2353 			COMMAND		attrValueUint1	~
       
  2354 	END_TEST_BLOCK	!PanicCode=0	!PanicString=SDP-Database
       
  2355 
       
  2356 END_TESTCASE   BTSDP-AttrValUint-PublicApi-3208
       
  2357 
       
  2358 
       
  2359 START_TESTCASE BTSDP-AttrValUint-PublicApi-3209
       
  2360 //! @SYMTestCaseID				BTSDP-AttrValUint-PublicApi-3209
       
  2361 //! @SYMAPI						CSdpAttrValueUint
       
  2362 //! @SYMTestCaseDesc			Gets a Boolean attribute value.
       
  2363 //!								Uses API elements: NewUintL(), Bool() and destructor
       
  2364 //! @SYMTestActions				1. Read an input integer from test data if successful.   
       
  2365 //!								2. Allocate and construct a new CSdpAttrValueUint object using NewUintL() function and return KErrNone if successed.
       
  2366 //!								3. Execute Bool() function and catch a panic and check if panic is thrown out as expected.
       
  2367 //!								4. Deconstructs CSdpAttrValueUint object.
       
  2368 //! @SYMTestStatus				Implemented
       
  2369 //! @SYMTestPriority			Low
       
  2370 //! @SYMTestExpectedResults  	Caught the panic.
       
  2371 //! @SYMTestType				CIT
       
  2372 
       
  2373 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2374 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint1	
       
  2375 			COMMAND		attrValueUint1	NewUintL		BTSDP-AttrValUint-PublicApi-3209-0001command1NewUintL
       
  2376 			COMMAND		attrValueUint1	Bool
       
  2377 			COMMAND		attrValueUint1	~
       
  2378 	END_TEST_BLOCK	!PanicCode=0	!PanicString=SDP-Database
       
  2379 
       
  2380 END_TESTCASE   BTSDP-AttrValUint-PublicApi-3209
       
  2381 
       
  2382 
       
  2383 START_TESTCASE BTSDP-AttrValUint-PublicApi-3210
       
  2384 //! @SYMTestCaseID				BTSDP-AttrValUint-PublicApi-3210
       
  2385 //! @SYMAPI						CSdpAttrValueUint
       
  2386 //! @SYMTestCaseDesc			Test CSdpAttrValue's AcceptVisitorL() function
       
  2387 //!								Uses API elements: NewUintL(), AcceptVisitorL() and destructor
       
  2388 //! @SYMTestActions				1. Read an input integer from test data if successful.   
       
  2389 //!								2. Allocate and construct a new CSdpAttrValueUint object using NewUintL() function and return KErrNone if successed.
       
  2390 //!								3. Execute AcceptVisitorL() function and and return TSdpElementType is ETypeUint, integer value.
       
  2391 //!								4. Deconstructs CSdpAttrValueUint object.
       
  2392 //! @SYMTestStatus				Implemented
       
  2393 //! @SYMTestPriority			Low
       
  2394 //! @SYMTestExpectedResults  	The correct TSdpElementType and value were returned successfully.
       
  2395 //! @SYMTestType				CIT
       
  2396 
       
  2397 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2398 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint1	
       
  2399 			COMMAND		attrValueUint1	NewUintL		BTSDP-AttrValUint-PublicApi-3210-0001command1NewUintL
       
  2400 			COMMAND		attrValueUint1	AcceptVisitorL		BTSDP-AttrValUint-PublicApi-3210-0001command2AcceptVisitorL
       
  2401 			COMMAND		attrValueUint1	~
       
  2402 	END_TEST_BLOCK
       
  2403 
       
  2404 END_TESTCASE   BTSDP-AttrValUint-PublicApi-3210
       
  2405 
       
  2406 
       
  2407 START_TESTCASE BTSDP-AttrValUint-PublicApi-3211
       
  2408 //! @SYMTestCaseID				BTSDP-AttrValUint-PublicApi-3211
       
  2409 //! @SYMAPI						CSdpAttrValueUint
       
  2410 //! @SYMTestCaseDesc			Tests if the attribute can be stored in an integer value 64 bits.
       
  2411 //!								Uses API elements: NewUintL(), DoesIntFit(), Des() and destructor
       
  2412 //! @SYMTestActions				1. Read an input integer 64 bits from test data if successful.   
       
  2413 //!								2. Allocate and construct a new CSdpAttrValueUint object using NewUintL() function and return KErrNone if successed.
       
  2414 //!								3. Verify the object can be stored in an integer value 64 bits using DoesIntFit() function.
       
  2415 //!									Test pass if object can be stored in an integer value 64 bits and return ETrue as expected.
       
  2416 //!								4. Test failed if object can't be stored in an integer value 64 bits and return EFalse.
       
  2417 //!								5. Use Des() function to retrieve CSdpAttrValueUint object's data pointer descriptor.
       
  2418 //!								6. Read an input integer 64 bits from test data and compare it with the contents in data pointer descriptor
       
  2419 //!									and check if actual integer value 64 bits is same as expected input integer value 64 bits.
       
  2420 //!								7. Deconstructs CSdpAttrValueUint object.
       
  2421 //! @SYMTestStatus				Implemented
       
  2422 //! @SYMTestPriority			Low
       
  2423 //! @SYMTestExpectedResults  	Object can be stored in an integer value 64 bits and return ETrue successfully. 
       
  2424 //! @SYMTestType				CIT
       
  2425 
       
  2426 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2427 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint1	
       
  2428 			COMMAND		attrValueUint1	NewUintL		BTSDP-AttrValUint-PublicApi-3211-0001command1NewUintL
       
  2429 			COMMAND		attrValueUint1	DoesIntFit		BTSDP-AttrValUint-PublicApi-3211-0001command2DoesIntFit
       
  2430 			COMMAND		attrValueUint1	Des		BTSDP-AttrValUint-PublicApi-3211-0001command3Des
       
  2431 			COMMAND		attrValueUint1	~
       
  2432 	END_TEST_BLOCK
       
  2433 
       
  2434 END_TESTCASE   BTSDP-AttrValUint-PublicApi-3211
       
  2435 
       
  2436 
       
  2437 START_TESTCASE BTSDP-AttrValUint-PublicApi-3212
       
  2438 //! @SYMTestCaseID				BTSDP-AttrValUint-PublicApi-3212
       
  2439 //! @SYMAPI						CSdpAttrValueUint
       
  2440 //! @SYMTestCaseDesc			Tests if the attribute can be stored in an integer value 128 bits.
       
  2441 //!								Uses API elements: NewUintL(), DoesIntFit(), Des() and destructor
       
  2442 //! @SYMTestActions				1. Read an input integer 128 bits from test data if successful.   
       
  2443 //!								2. Allocate and construct a new CSdpAttrValueUint object using NewUintL() function and return KErrNone if successed.
       
  2444 //!								3. Verify the object can be stored in an integer value 128 bits using DoesIntFit() function.
       
  2445 //!									Test pass if object can be stored in an integer value 128 bits and return ETrue as expected.
       
  2446 //!								4. Test failed if object can't be stored in an integer value 128 bits and return EFalse.
       
  2447 //!								5. Use Des() function to retrieve CSdpAttrValueUint object's data pointer descriptor.
       
  2448 //!								6. Read an input integer 64 bits from test data and compare it with the contents in data pointer descriptor
       
  2449 //!									and check if actual integer value 128 bits is same as expected input integer value 128 bits.
       
  2450 //!								7. Deconstructs CSdpAttrValueUint object.
       
  2451 //! @SYMTestStatus				Implemented
       
  2452 //! @SYMTestPriority			Medium
       
  2453 //! @SYMTestExpectedResults  	Object can be stored in an integer value 128 bits and return ETrue successfully.
       
  2454 //! @SYMTestType				CIT
       
  2455 
       
  2456 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2457 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint1	
       
  2458 			COMMAND		attrValueUint1	NewUintL		BTSDP-AttrValUint-PublicApi-3212-0001command1NewUintL
       
  2459 			COMMAND		attrValueUint1	DoesIntFit		BTSDP-AttrValUint-PublicApi-3212-0001command2DoesIntFit
       
  2460 			COMMAND		attrValueUint1	Des		BTSDP-AttrValUint-PublicApi-3212-0001command3Des
       
  2461 			COMMAND		attrValueUint1	~
       
  2462 	END_TEST_BLOCK
       
  2463 
       
  2464 END_TESTCASE   BTSDP-AttrValUint-PublicApi-3212
       
  2465 
       
  2466 
       
  2467 // ****************************************************************************
       
  2468 // Negative
       
  2469 // ****************************************************************************
       
  2470 
       
  2471 
       
  2472 START_TESTCASE BTSDP-AttrValUint-PublicApi-3213
       
  2473 //! @SYMTestCaseID				BTSDP-AttrValUint-PublicApi-3213
       
  2474 //! @SYMAPI						CSdpAttrValueUint
       
  2475 //! @SYMTestCaseDesc			Tests if the attribute can be stored in an negative integer value 16 bits.
       
  2476 //!								Uses API elements: NewUintL(), Uint() and destructor
       
  2477 //! @SYMTestActions				1. Read an input negative integer 16 bits from test data if successful.
       
  2478 //!								2. Allocate and construct a new CSdpAttrValueUint object using NewUintL() function and return KErrNone if successed.
       
  2479 //!								3. Verify the object nagtive integer value using Uint() function.
       
  2480 //!								4. Catch a panic and check if panic is thrown out as expected.
       
  2481 //!								5. Deconstructs CSdpAttrValueUint object.
       
  2482 //! @SYMTestStatus				Implemented
       
  2483 //! @SYMTestPriority			Low
       
  2484 //! @SYMTestExpectedResults  	Caught the panic. Object can not be stored in an negative integer value 16 bits.
       
  2485 //! @SYMTestType				CIT
       
  2486 
       
  2487 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2488 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint1	
       
  2489 			COMMAND		attrValueUint1	NewUintL		BTSDP-AttrValUint-PublicApi-3213-0001command1NewUintL
       
  2490 			COMMAND		attrValueUint1	Uint
       
  2491 			COMMAND		attrValueUint1	~
       
  2492 	END_TEST_BLOCK	!PanicCode=0	!PanicString=SDP-Parse
       
  2493 
       
  2494 END_TESTCASE   BTSDP-AttrValUint-PublicApi-3213
       
  2495 
       
  2496 
       
  2497 START_TESTCASE BTSDP-AttrValUint-PublicApi-3214
       
  2498 //! @SYMTestCaseID				BTSDP-AttrValUint-PublicApi-3214
       
  2499 //! @SYMAPI						CSdpAttrValueUint
       
  2500 //! @SYMTestCaseDesc			Tests if the attribute can be stored in an negative integer value 32 bits.
       
  2501 //!								Uses API elements: NewUintL(), Uint() and destructor
       
  2502 //! @SYMTestActions				1. Read an input negative integer 32 bits from test data if successful.
       
  2503 //!								2. Allocate and construct a new CSdpAttrValueUint object using NewUintL() function and return KErrNone if successed.
       
  2504 //!								3. Verify the object nagtive integer value using Uint() function.
       
  2505 //!								4. Catch a panic and check if panic is thrown out as expected.
       
  2506 //!								5. Deconstructs CSdpAttrValueUint object.
       
  2507 //! @SYMTestStatus				Implemented
       
  2508 //! @SYMTestPriority			Low
       
  2509 //! @SYMTestExpectedResults  	Caught the panic. Object can not be stored in an negative integer value 32 bits.
       
  2510 //! @SYMTestType				CIT
       
  2511 
       
  2512 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2513 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint1	
       
  2514 			COMMAND		attrValueUint1	NewUintL		BTSDP-AttrValUint-PublicApi-3214-0001command1NewUintL
       
  2515 			COMMAND		attrValueUint1	Uint
       
  2516 			COMMAND		attrValueUint1	~
       
  2517 	END_TEST_BLOCK	!PanicCode=0	!PanicString=SDP-Parse
       
  2518 
       
  2519 END_TESTCASE   BTSDP-AttrValUint-PublicApi-3214
       
  2520 
       
  2521 
       
  2522 START_TESTCASE BTSDP-AttrValUint-PublicApi-3215
       
  2523 //! @SYMTestCaseID				BTSDP-AttrValUint-PublicApi-3215
       
  2524 //! @SYMAPI						CSdpAttrValueUint
       
  2525 //! @SYMTestCaseDesc			Tests if the attribute can be stored in an negative integer value 64 bits.
       
  2526 //!								Uses API elements: NewUintL(), Uint() and destructor
       
  2527 //! @SYMTestActions				1. Read an input negative integer 64 bits from test data if successful.
       
  2528 //!								2. Allocate and construct a new CSdpAttrValueUint object using NewUintL() function and return KErrNone if successed.
       
  2529 //!								3. Verify the object nagtive integer value using Uint() function.
       
  2530 //!								4. Catch a panic and check if panic is thrown out as expected.
       
  2531 //!								5. Deconstructs CSdpAttrValueUint object.
       
  2532 //! @SYMTestStatus				Implemented
       
  2533 //! @SYMTestPriority			Low
       
  2534 //! @SYMTestExpectedResults  	Caught the panic. Object can not be stored in an negative integer value 64 bits.
       
  2535 //! @SYMTestType				CIT
       
  2536 
       
  2537 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2538 			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint1	
       
  2539 			COMMAND		attrValueUint1	NewUintL		BTSDP-AttrValUint-PublicApi-3215-0001command1NewUintL
       
  2540 			COMMAND		attrValueUint1	Uint
       
  2541 			COMMAND		attrValueUint1	~
       
  2542 	END_TEST_BLOCK	!PanicCode=0	!PanicString=SDP-Parse
       
  2543 
       
  2544 END_TESTCASE   BTSDP-AttrValUint-PublicApi-3215
       
  2545 
       
  2546 
       
  2547 //!START_TESTCASE BTSDP-AttrValUint-PublicApi-3216
       
  2548 //! @SYMTestCaseID				BTSDP-AttrValUint-PublicApi-3216
       
  2549 //! @SYMAPI						CSdpAttrValueUint
       
  2550 ///! @SYMTestCaseDesc			Tests if the attribute can be stored in an negative integer value 128 bits.
       
  2551 //!								Uses API elements: NewUintL(), Uint() and destructor
       
  2552 //! @SYMTestActions				1. Read an input negative integer 128 bits from test data if successful.
       
  2553 //!								2. Allocate and construct a new CSdpAttrValueUint object using NewUintL() function and return KErrNone if successed.
       
  2554 //!								3. Verify the object nagtive integer value using Uint() function.
       
  2555 //!								4. Catch a panic and check if panic is thrown out as expected.
       
  2556 //!								5. Deconstructs CSdpAttrValueUint object.
       
  2557 //! @SYMTestStatus				Implemented
       
  2558 //! @SYMTestPriority			Low
       
  2559 //! @SYMTestExpectedResults  	Caught the panic. Object can not be stored in an negative integer value 128 bits.
       
  2560 //! @SYMTestType				CIT
       
  2561 
       
  2562 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2563 //!			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint1	
       
  2564 //!			COMMAND		attrValueUint1	NewUintL		BTSDP-AttrValUint-PublicApi-3216-0001command1NewUintL
       
  2565 //!			COMMAND		attrValueUint1	Uint
       
  2566 //!			COMMAND		attrValueUint1	~
       
  2567 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  2568 
       
  2569 //!END_TESTCASE   BTSDP-AttrValUint-PublicApi-3216
       
  2570 
       
  2571 
       
  2572 //!START_TESTCASE BTSDP-AttrValUint-PublicApi-3117
       
  2573 //! @SYMTestCaseID				BTSDP-AttrValUint-PublicApi-3117
       
  2574 //! @SYMAPI						CSdpAttrValueUint
       
  2575 //! @SYMTestCaseDesc			Get the attribute type
       
  2576 //!								Uses API elements: Type()
       
  2577 //! @SYMTestActions				1. Get the attribute type using Type() function. Catch a panic if panic is thrown out
       
  2578 //! @SYMTestStatus				Implemented
       
  2579 //! @SYMTestPriority			Low
       
  2580 //! @SYMTestExpectedResults  	Caught the panic
       
  2581 //! @SYMTestType				CIT
       
  2582 
       
  2583 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2584 //!			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint1	
       
  2585 //!			COMMAND		attrValueUint1	Type
       
  2586 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  2587 
       
  2588 //!END_TESTCASE   BTSDP-AttrValUint-PublicApi-3117
       
  2589 
       
  2590 
       
  2591 //!START_TESTCASE BTSDP-AttrValUint-PublicApi-3118
       
  2592 //! @SYMTestCaseID				BTSDP-AttrValUint-PublicApi-3118
       
  2593 //! @SYMAPI						CSdpAttrValueUint
       
  2594 //! @SYMTestCaseDesc			Get the size of the attribute
       
  2595 //!								Uses API elements: DataSize()
       
  2596 //! @SYMTestActions				1. Get the size of the attribute using DataSize() function. Catch a panic if panic is thrown out
       
  2597 //! @SYMTestStatus				Implemented
       
  2598 //! @SYMTestPriority			Low
       
  2599 //! @SYMTestExpectedResults  	Caught the panic
       
  2600 //! @SYMTestType				CIT
       
  2601 
       
  2602 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2603 //!			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint1	
       
  2604 //!			COMMAND		attrValueUint1	DataSize
       
  2605 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  2606 
       
  2607 //!END_TESTCASE   BTSDP-AttrValUint-PublicApi-3118
       
  2608 
       
  2609 
       
  2610 //!START_TESTCASE BTSDP-AttrValUint-PublicApi-3119
       
  2611 //! @SYMTestCaseID				BTSDP-AttrValUint-PublicApi-3119
       
  2612 //! @SYMAPI						CSdpAttrValueUint
       
  2613 //! @SYMTestCaseDesc			Get the value as a signed integer type
       
  2614 //!								Uses API elements: Uint()
       
  2615 //! @SYMTestActions				1. Get the value as a signed integer type using Uint() function. Catch a panic if panic is thrown out
       
  2616 //! @SYMTestStatus				Implemented
       
  2617 //! @SYMTestPriority			Low
       
  2618 //! @SYMTestExpectedResults  	Caught the panic
       
  2619 //! @SYMTestType				CIT
       
  2620 
       
  2621 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2622 //!			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint1	
       
  2623 //!			COMMAND		attrValueUint1	Uint
       
  2624 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  2625 
       
  2626 //!END_TESTCASE   BTSDP-AttrValUint-PublicApi-3119
       
  2627 
       
  2628 
       
  2629 //!START_TESTCASE BTSDP-AttrValUint-PublicApi-3120
       
  2630 //! @SYMTestCaseID				BTSDP-AttrValUint-PublicApi-3120
       
  2631 //! @SYMAPI						CSdpAttrValueUint
       
  2632 //! @SYMTestCaseDesc			Test if the attribute can be stored in an integer value
       
  2633 //!								Uses API elements: DoesIntFit()
       
  2634 //! @SYMTestActions				1. Test if the attribute can be stored in an integer value using DoesIntFit() function. 
       
  2635 //!								   Catch a panic if panic is thrown out
       
  2636 //! @SYMTestStatus				Implemented
       
  2637 //! @SYMTestPriority			Low
       
  2638 //! @SYMTestExpectedResults  	Caught the panic
       
  2639 //! @SYMTestType				CIT
       
  2640 
       
  2641 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2642 //!			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint1	
       
  2643 //!			COMMAND		attrValueUint1	DoesIntFit
       
  2644 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  2645 
       
  2646 //!END_TESTCASE   BTSDP-AttrValUint-PublicApi-3120
       
  2647 
       
  2648 
       
  2649 //!START_TESTCASE BTSDP-AttrValUint-PublicApi-3121
       
  2650 //! @SYMTestCaseID				BTSDP-AttrValUint-PublicApi-3121
       
  2651 //! @SYMAPI						CSdpAttrValueUint
       
  2652 //! @SYMTestCaseDesc			Get the value as a data buffer
       
  2653 //!								Uses API elements: Des()
       
  2654 //! @SYMTestActions				1. Get the value as a data buffer using Des() function. Catch a panic if panic is thrown out
       
  2655 //! @SYMTestStatus				Implemented
       
  2656 //! @SYMTestPriority			Low
       
  2657 //! @SYMTestExpectedResults  	Caught the panic
       
  2658 //! @SYMTestType				CIT
       
  2659 
       
  2660 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2661 //!			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint1	
       
  2662 //!			COMMAND		attrValueUint1	Des
       
  2663 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  2664 
       
  2665 //!END_TESTCASE   BTSDP-AttrValUint-PublicApi-3121
       
  2666 
       
  2667 
       
  2668 //!START_TESTCASE BTSDP-AttrValUint-PublicApi-3122
       
  2669 //! @SYMTestCaseID				BTSDP-AttrValUint-PublicApi-3122
       
  2670 //! @SYMAPI						CSdpAttrValue
       
  2671 //! @SYMTestCaseDesc			Request a call back to pass the attribute value
       
  2672 //!								Uses API elements: AcceptVisitorL()
       
  2673 //! @SYMTestActions				1. Request a call back to pass the attribute value using AcceptVisitorL() function. 
       
  2674 //!								   Catch a panic if panic is thrown out
       
  2675 //! @SYMTestStatus				Implemented
       
  2676 //! @SYMTestPriority			Low
       
  2677 //! @SYMTestExpectedResults  	Caught the panic
       
  2678 //! @SYMTestType				CIT
       
  2679 
       
  2680 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2681 //!			CREATE_OBJECT	CSdpAttrValueUint	attrValueUint1	
       
  2682 //!			COMMAND		attrValueUint1	AcceptVisitorL
       
  2683 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  2684 
       
  2685 //!END_TESTCASE   BTSDP-AttrValUint-PublicApi-3122
       
  2686 
       
  2687 
       
  2688 
       
  2689 // ****************************************************************************
       
  2690 // BTSDP-Database
       
  2691 // ****************************************************************************	
       
  2692 
       
  2693 START_TESTCASE BTSDP-Database-PublicApi-3301
       
  2694 //! @SYMTestCaseID				BTSDP-Database-PublicApi-3301
       
  2695 //! @SYMAPI						RSdpDatabase
       
  2696 //! @SYMTestCaseDesc			Allocate and construct a new RSdpDatabase object.
       
  2697 //!								Uses API elements: RSdpDatabase()
       
  2698 //! @SYMTestActions				Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
  2699 //! @SYMTestStatus				Implemented
       
  2700 //! @SYMTestPriority			Low
       
  2701 //! @SYMTestExpectedResults  	RSdpDatabase object was allocated successfully.
       
  2702 //! @SYMTestType				CIT
       
  2703 
       
  2704 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2705 			CREATE_OBJECT	RSdpDatabase	database1	
       
  2706 			COMMAND		database1	Constructor
       
  2707 	END_TEST_BLOCK
       
  2708 
       
  2709 END_TESTCASE   BTSDP-Database-PublicApi-3301
       
  2710 
       
  2711 
       
  2712 START_TESTCASE BTSDP-Database-PublicApi-3302
       
  2713 //! @SYMTestCaseID				BTSDP-Database-PublicApi-3302
       
  2714 //! @SYMAPI						RSdpDatabase
       
  2715 //! @SYMTestCaseDesc			Connects a client process to the database, then opens a SDP database subsession.
       
  2716 //!								Uses API elements: Rsdp(), RSdpDatabase(), Connect(), Open() and Close()
       
  2717 //! @SYMTestActions				1. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  2718 //!								2. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
  2719 //!								3. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
  2720 //!								4. Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
  2721 //!								5. Close the SDP database subsession using Close() function.
       
  2722 //!								4. Close the client process using Close() function.
       
  2723 //! @SYMTestStatus				Implemented
       
  2724 //! @SYMTestPriority			Low
       
  2725 //! @SYMTestExpectedResults  	RSdpDatabase object was Opened successfully with subsession.
       
  2726 //! @SYMTestType				CIT
       
  2727 
       
  2728 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2729 			CREATE_OBJECT	RSdpDatabase	database1	
       
  2730 			CREATE_OBJECT	RSdp	rsdp	
       
  2731 			COMMAND		rsdp	Constructor
       
  2732 			COMMAND		rsdp	Connect
       
  2733 			OUTSTANDING
       
  2734 			COMMAND		database1	Constructor
       
  2735 			COMMAND		database1	Open		BTSDP-Database-PublicApi-3302-0001command6Open
       
  2736 			COMMAND		database1	Close
       
  2737 			COMMAND		rsdp	Close
       
  2738 	END_TEST_BLOCK
       
  2739 
       
  2740 END_TESTCASE BTSDP-Database-PublicApi-3302
       
  2741 
       
  2742 
       
  2743 START_TESTCASE BTSDP-Database-PublicApi-3303
       
  2744 //! @SYMTestCaseID				BTSDP-Database-PublicApi-3303
       
  2745 //! @SYMAPI						RSdpDatabase
       
  2746 //! @SYMTestCaseDesc			Creates a new service record, with a single service class, in the SDP database.
       
  2747 //!								Uses API elements: Rsdp(), RSdpDatabase(), Connect(), Open(), CreateServiceRecordL() and Close()
       
  2748 //! @SYMTestActions				1. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  2749 //!								2. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
  2750 //!								3. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
  2751 //!								4. Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
  2752 //!								5. Read an input service record UUID from test data if successful.
       
  2753 //!								6. Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed.
       
  2754 //!								7. Close the SDP database subsession using Close() function.
       
  2755 //!								8. Close the client process using Close() function.
       
  2756 //! @SYMTestStatus				Implemented
       
  2757 //! @SYMTestPriority			Medium
       
  2758 //! @SYMTestExpectedResults  	The service record was created successfully in SDP database.
       
  2759 //! @SYMTestType				CIT
       
  2760 
       
  2761 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2762 			CREATE_OBJECT	RSdpDatabase	database1	
       
  2763 			CREATE_OBJECT	RSdp	rsdp	
       
  2764 			COMMAND		rsdp	Constructor
       
  2765 			COMMAND		rsdp	Connect
       
  2766 			OUTSTANDING
       
  2767 			COMMAND		database1	Constructor
       
  2768 			COMMAND		database1	Open		BTSDP-Database-PublicApi-3303-0001command6Open
       
  2769 			COMMAND		database1	CreateServiceRecordL		BTSDP-Database-PublicApi-3303-0001command7CreateServiceRecordL
       
  2770 			COMMAND		database1	Close
       
  2771 			COMMAND		rsdp	Close
       
  2772 	END_TEST_BLOCK
       
  2773 
       
  2774 END_TESTCASE   BTSDP-Database-PublicApi-3303
       
  2775 
       
  2776 
       
  2777 START_TESTCASE BTSDP-Database-PublicApi-3304
       
  2778 //! @SYMTestCaseID				BTSDP-Database-PublicApi-3304
       
  2779 //! @SYMAPI						RSdpDatabase
       
  2780 //! @SYMTestCaseDesc			Deletes a service record.
       
  2781 //!								Uses API elements: Rsdp(), RSdpDatabase(), Connect(), Open(), CreateServiceRecordL(), DeleteRecordL() and Close()
       
  2782 //! @SYMTestActions				1. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  2783 //!								2. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
  2784 //!								3. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
  2785 //!								4. Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
  2786 //!								5. Read an input service record UUID from test data if successful.
       
  2787 //!								6. Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed.
       
  2788 //!								7. Deletes the service record using DeleteRecordL() function and return KErrNone if successed.
       
  2789 //!								8. Close the SDP database subsession using Close() function.
       
  2790 //!								9. Close the client process using Close() function.
       
  2791 //! @SYMTestStatus				Implemented
       
  2792 //! @SYMTestPriority			Medium
       
  2793 //! @SYMTestExpectedResults  	The service record was deleted successfully.
       
  2794 //! @SYMTestType				CIT
       
  2795 
       
  2796 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2797 			CREATE_OBJECT	RSdpDatabase	database1	
       
  2798 			CREATE_OBJECT	RSdp	rsdp	
       
  2799 			COMMAND		rsdp	Constructor
       
  2800 			COMMAND		rsdp	Connect
       
  2801 			OUTSTANDING
       
  2802 			COMMAND		database1	Constructor
       
  2803 			COMMAND		database1	Open		BTSDP-Database-PublicApi-3304-0001command6Open
       
  2804 			COMMAND		database1	CreateServiceRecordL		BTSDP-Database-PublicApi-3304-0001command7CreateServiceRecordL
       
  2805 			COMMAND		database1	DeleteRecordL
       
  2806 			COMMAND		database1	Close
       
  2807 			COMMAND		rsdp	Close
       
  2808 	END_TEST_BLOCK
       
  2809 
       
  2810 END_TESTCASE   BTSDP-Database-PublicApi-3304
       
  2811 
       
  2812 
       
  2813 START_TESTCASE BTSDP-Database-PublicApi-3305
       
  2814 //! @SYMTestCaseID				BTSDP-Database-PublicApi-3305
       
  2815 //! @SYMAPI						RSdpDatabase, CSdpAttrValueDES
       
  2816 //! @SYMTestCaseDesc			Creates a new service record, with multiple service classes, in the SDP database.
       
  2817 //!								Uses API elements: Rsdp(), RSdpDatabase(), Connect(), Open(), CreateServiceRecordL(), DeleteRecordL() ,Close() and NewDESL()
       
  2818 //! @SYMTestActions				1. Allocate and construct a new CSdpAttrValueDES object using NewDESL() function and return KErrNone if successed.
       
  2819 //!								2. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  2820 //!								3. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
  2821 //!								4. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
  2822 //!								5. Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
  2823 //!								6. Read the CSdpAttrValueDES object from test data if successful.
       
  2824 //!								7. Creates a new service record with multiple service record UUID using CreateServiceRecordL() function and return KErrNone if successed.
       
  2825 //!								8. Close the SDP database subsession using Close() function.
       
  2826 //!								9. Close the client process using Close() function.
       
  2827 //! @SYMTestStatus				Implemented
       
  2828 //! @SYMTestPriority			Medium
       
  2829 //! @SYMTestExpectedResults  	The Service record with multiple service classes was created successfully.
       
  2830 //! @SYMTestType				CIT
       
  2831 
       
  2832 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2833 			CREATE_OBJECT	RSdpDatabase	database1	
       
  2834 			CREATE_OBJECT	RSdp	rsdp	
       
  2835 			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  2836 			COMMAND		attrValueDES	NewDESL
       
  2837 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-Database-PublicApi-3305-0001command3BuildUUIDL
       
  2838 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-Database-PublicApi-3305-0001command4BuildUUIDL
       
  2839 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-Database-PublicApi-3305-0001command5BuildUUIDL
       
  2840 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-Database-PublicApi-3305-0001command6BuildUUIDL
       
  2841 			COMMAND		attrValueDES	BuildUUIDL		BTSDP-Database-PublicApi-3305-0001command7BuildUUIDL
       
  2842 			COMMAND		rsdp	Constructor
       
  2843 			COMMAND		rsdp	Connect
       
  2844 			OUTSTANDING
       
  2845 			COMMAND		database1	Constructor
       
  2846 			COMMAND		database1	Open		BTSDP-Database-PublicApi-3305-0001command13Open
       
  2847 			COMMAND		database1	CreateServiceRecordL		BTSDP-Database-PublicApi-3305-0001command14CreateServiceRecordL
       
  2848 			COMMAND		database1	Close
       
  2849 			COMMAND		rsdp	Close
       
  2850 			COMMAND		attrValueDES	~
       
  2851 	END_TEST_BLOCK
       
  2852 
       
  2853 END_TESTCASE   BTSDP-Database-PublicApi-3305
       
  2854 
       
  2855 
       
  2856 START_TESTCASE BTSDP-Database-PublicApi-3306
       
  2857 //! @SYMTestCaseID				BTSDP-Database-PublicApi-3306
       
  2858 //! @SYMAPI						RSdpDatabase, CSdpAttrValueInt
       
  2859 //! @SYMTestCaseDesc			Updates a service record attribute with a value encapsulated in a CSdpAttrValue.
       
  2860 //!								Uses API elements: Rsdp(), RSdpDatabase(), Connect(), Open(), CreateServiceRecordL(), UpdateAttributeL(), NewIntL() and Close()
       
  2861 //! @SYMTestActions				1. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed.
       
  2862 //!								2. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  2863 //!								3. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
  2864 //!								4. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
  2865 //!								5. Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
  2866 //!								6. Read an input service record UUID from test data if successful.
       
  2867 //!								7. Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed.
       
  2868 //!								8. Read an input attribute ID from test data if successful.
       
  2869 //!								9. Read the CSdpAttrValueInt object from test data if successful.
       
  2870 //!								10.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed.
       
  2871 //!								11.Close the SDP database subsession using Close() function.
       
  2872 //!								12.Close the client process using Close() function.
       
  2873 //! @SYMTestStatus				Implemented
       
  2874 //! @SYMTestPriority			Medium
       
  2875 //! @SYMTestExpectedResults  	The service record with attribute ID and attribute value encapsulated in the CSdpAttrValueInt was updated successfully.
       
  2876 //! @SYMTestType				CIT
       
  2877 
       
  2878 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2879 			CREATE_OBJECT	RSdpDatabase	database1	
       
  2880 			CREATE_OBJECT	RSdp	rsdp	
       
  2881 			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
  2882 			COMMAND		attrValueInt	NewIntL		BTSDP-Database-PublicApi-3306-0001command2NewIntL
       
  2883 			COMMAND		rsdp	Constructor
       
  2884 			COMMAND		rsdp	Connect
       
  2885 			OUTSTANDING
       
  2886 			COMMAND		database1	Constructor
       
  2887 			COMMAND		database1	Open		BTSDP-Database-PublicApi-3306-0001command8Open
       
  2888 			COMMAND		database1	CreateServiceRecordL		BTSDP-Database-PublicApi-3306-0001command9CreateServiceRecordL
       
  2889 			COMMAND		database1	UpdateAttributeL		BTSDP-Database-PublicApi-3306-0001command10UpdateAttributeL
       
  2890 			COMMAND		database1	Close
       
  2891 			COMMAND		rsdp	Close
       
  2892 	END_TEST_BLOCK
       
  2893 
       
  2894 END_TESTCASE   BTSDP-Database-PublicApi-3306
       
  2895 
       
  2896 
       
  2897 START_TESTCASE BTSDP-Database-PublicApi-3307
       
  2898 //! @SYMTestCaseID				BTSDP-Database-PublicApi-3307
       
  2899 //! @SYMAPI						RSdpDatabase
       
  2900 //! @SYMTestCaseDesc			Delete an attribute from a service record.
       
  2901 //!								Uses API elements: Rsdp(), RSdpDatabase(), Connect(), Open(), CreateServiceRecordL(), UpdateAttributeL(), DeleteAttributeL() and Close()
       
  2902 //! @SYMTestActions				1. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  2903 //!								2. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
  2904 //!								3. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
  2905 //!								4. Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
  2906 //!								5. Read an input service record UUID from test data if successful.
       
  2907 //!								6. Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed.
       
  2908 //!								7. Read an input attribute ID from test data if successful.
       
  2909 //!								8. Read a narrow descriptor from test data if successful.
       
  2910 //!								9. Updates a service record attribute with a narrow descriptor using UpdateAttributeL() function and return KErrNone if successed.
       
  2911 //!								10.Delete an attribute from a service record using DeleteAttributeL() function and return KErrNone if successed.
       
  2912 //!								11.Close the SDP database subsession using Close() function.
       
  2913 //!								12.Close the client process using Close() function.
       
  2914 //! @SYMTestStatus				Implemented
       
  2915 //! @SYMTestPriority			Medium
       
  2916 //! @SYMTestExpectedResults  	The attribute on a servie reocrd was deleted successfully.
       
  2917 //! @SYMTestType				CIT
       
  2918 
       
  2919 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2920 			CREATE_OBJECT	RSdpDatabase	database1	
       
  2921 			CREATE_OBJECT	RSdp	rsdp	
       
  2922 			COMMAND		rsdp	Constructor
       
  2923 			COMMAND		rsdp	Connect
       
  2924 			OUTSTANDING
       
  2925 			COMMAND		database1	Constructor
       
  2926 			COMMAND		database1	Open		BTSDP-Database-PublicApi-3307-0001command6Open
       
  2927 			COMMAND		database1	CreateServiceRecordL		BTSDP-Database-PublicApi-3307-0001command7CreateServiceRecordL
       
  2928 			COMMAND		database1	UpdateAttributeL		BTSDP-Database-PublicApi-3307-0001command8UpdateAttributeL
       
  2929 			COMMAND		database1	DeleteAttributeL		BTSDP-Database-PublicApi-3307-0001command9DeleteAttributeL
       
  2930 			COMMAND		database1	Close
       
  2931 			COMMAND		rsdp	Close
       
  2932 	END_TEST_BLOCK
       
  2933 
       
  2934 END_TESTCASE   BTSDP-Database-PublicApi-3307
       
  2935 
       
  2936 
       
  2937 START_TESTCASE BTSDP-Database-PublicApi-3308
       
  2938 //! @SYMTestCaseID				BTSDP-Database-PublicApi-3308
       
  2939 //! @SYMAPI						RSdpDatabase
       
  2940 //! @SYMTestCaseDesc			Updates a service record attribute with an integer value.
       
  2941 //!								Uses API elements: Rsdp(), RSdpDatabase(), Connect(), Open(), CreateServiceRecordL(), UpdateAttributeL() and Close()
       
  2942 //! @SYMTestActions				1. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  2943 //!								2. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
  2944 //!								3. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
  2945 //!								4. Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
  2946 //!								5. Read an input service record UUID from test data if successful.
       
  2947 //!								6. Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed.
       
  2948 //!								7. Read an input attribute ID from test data if successful.
       
  2949 //!								8. Read an integer value from test data if successful.
       
  2950 //!								9. Updates a service record attribute with an integer value using UpdateAttributeL() function and return KErrNone if successed.
       
  2951 //!								10.Close the SDP database subsession using Close() function.
       
  2952 //!								11.Close the client process using Close() function.
       
  2953 //! @SYMTestStatus				Implemented
       
  2954 //! @SYMTestPriority			Low
       
  2955 //! @SYMTestExpectedResults  	The service record with attribute ID and an integer value was updated successfully.
       
  2956 //! @SYMTestType				CIT
       
  2957 
       
  2958 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2959 			CREATE_OBJECT	RSdpDatabase	database1	
       
  2960 			CREATE_OBJECT	RSdp	rsdp	
       
  2961 			COMMAND		rsdp	Constructor
       
  2962 			COMMAND		rsdp	Connect
       
  2963 			OUTSTANDING
       
  2964 			COMMAND		database1	Constructor
       
  2965 			COMMAND		database1	Open		BTSDP-Database-PublicApi-3308-0001command6Open
       
  2966 			COMMAND		database1	CreateServiceRecordL		BTSDP-Database-PublicApi-3308-0001command7CreateServiceRecordL
       
  2967 			COMMAND		database1	UpdateAttributeL		BTSDP-Database-PublicApi-3308-0001command8UpdateAttributeL
       
  2968 			COMMAND		database1	Close
       
  2969 			COMMAND		rsdp	Close
       
  2970 	END_TEST_BLOCK
       
  2971 
       
  2972 END_TESTCASE   BTSDP-Database-PublicApi-3308
       
  2973 
       
  2974 
       
  2975 START_TESTCASE BTSDP-Database-PublicApi-3309
       
  2976 //! @SYMTestCaseID				BTSDP-Database-PublicApi-3309
       
  2977 //! @SYMAPI						RSdpDatabase
       
  2978 //! @SYMTestCaseDesc			Updates a service record attribute with a TDesC8 value.
       
  2979 //!								Uses API elements: Rsdp(), RSdpDatabase(), Connect(), Open(), CreateServiceRecordL(), UpdateAttributeL() and Close()
       
  2980 //! @SYMTestActions				1. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  2981 //!								2. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
  2982 //!								3. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
  2983 //!								4. Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
  2984 //!								5. Read an input service record UUID from test data if successful.
       
  2985 //!								6. Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed.
       
  2986 //!								7. Read an input attribute ID from test data if successful.
       
  2987 //!								8. Read a narrow descriptor (TDesC8) from test data if successful.
       
  2988 //!								9. Updates a service record attribute with a narrow descriptor (TDesC8) using UpdateAttributeL() function and return KErrNone if successed.
       
  2989 //!								10.Close the SDP database subsession using Close() function.
       
  2990 //!								11.Close the client process using Close() function.
       
  2991 //! @SYMTestStatus				Implemented
       
  2992 //! @SYMTestPriority			Low
       
  2993 //! @SYMTestExpectedResults  	The service record with attribute ID and a narrow descriptor (TDesC8) was updated successfully.
       
  2994 //! @SYMTestType				CIT
       
  2995 
       
  2996 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  2997 			CREATE_OBJECT	RSdpDatabase	database1	
       
  2998 			CREATE_OBJECT	RSdp	rsdp	
       
  2999 			COMMAND		rsdp	Constructor
       
  3000 			COMMAND		rsdp	Connect
       
  3001 			OUTSTANDING
       
  3002 			COMMAND		database1	Constructor
       
  3003 			COMMAND		database1	Open		BTSDP-Database-PublicApi-3309-0001command6Open
       
  3004 			COMMAND		database1	CreateServiceRecordL		BTSDP-Database-PublicApi-3309-0001command7CreateServiceRecordL
       
  3005 			COMMAND		database1	UpdateAttributeL		BTSDP-Database-PublicApi-3309-0001command8UpdateAttributeL
       
  3006 			COMMAND		database1	Close
       
  3007 			COMMAND		rsdp	Close
       
  3008 	END_TEST_BLOCK
       
  3009 
       
  3010 END_TESTCASE   BTSDP-Database-PublicApi-3309
       
  3011 
       
  3012 
       
  3013 START_TESTCASE BTSDP-Database-PublicApi-3310
       
  3014 //! @SYMTestCaseID				BTSDP-Database-PublicApi-3310
       
  3015 //! @SYMAPI						RSdpDatabase
       
  3016 //! @SYMTestCaseDesc			Updates a service record attribute with a TDesC16 value.
       
  3017 //!								Uses API elements: Rsdp(), RSdpDatabase(), Connect(), Open(), CreateServiceRecordL(), UpdateAttributeL() and Close()
       
  3018 //! @SYMTestActions				1. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  3019 //!								2. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
  3020 //!								3. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
  3021 //!								4. Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
  3022 //!								5. Read an input service record UUID from test data if successful.
       
  3023 //!								6. Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed.
       
  3024 //!								7. Read an input attribute ID from test data if successful.
       
  3025 //!								8. Read a narrow descriptor (TDesC16) from test data if successful.
       
  3026 //!								9. Updates a service record attribute with a narrow descriptor (TDesC16) using UpdateAttributeL() function and return KErrNone if successed.
       
  3027 //!								10.Close the SDP database subsession using Close() function.
       
  3028 //!								11.Close the client process using Close() function.
       
  3029 //! @SYMTestStatus				Implemented
       
  3030 //! @SYMTestPriority			Low
       
  3031 //! @SYMTestExpectedResults  	The service record with attribute ID and a narrow descriptor (TDesC16) was updated successfully.
       
  3032 //! @SYMTestType				CIT
       
  3033 
       
  3034 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3035 			CREATE_OBJECT	RSdpDatabase	database1	
       
  3036 			CREATE_OBJECT	RSdp	rsdp	
       
  3037 			COMMAND		rsdp	Constructor
       
  3038 			COMMAND		rsdp	Connect
       
  3039 			OUTSTANDING
       
  3040 			COMMAND		database1	Constructor
       
  3041 			COMMAND		database1	Open		BTSDP-Database-PublicApi-3310-0001command6Open
       
  3042 			COMMAND		database1	CreateServiceRecordL		BTSDP-Database-PublicApi-3310-0001command7CreateServiceRecordL
       
  3043 			COMMAND		database1	UpdateAttributeL		BTSDP-Database-PublicApi-3310-0001command8UpdateAttributeL
       
  3044 			COMMAND		database1	Close
       
  3045 			COMMAND		rsdp	Close
       
  3046 	END_TEST_BLOCK
       
  3047 
       
  3048 END_TESTCASE   BTSDP-Database-PublicApi-3310
       
  3049 
       
  3050 
       
  3051 START_TESTCASE BTSDP-Database-PublicApi-3311
       
  3052 //! @SYMTestCaseID				BTSDP-Database-PublicApi-3311
       
  3053 //! @SYMAPI						RSdp
       
  3054 //! @SYMTestCaseDesc			Gets the version of the database server.
       
  3055 //!								Uses API elements: Rsdp(), RSdpDatabase(), Connect(), Open(), Version() and Close()
       
  3056 //! @SYMTestActions				1. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  3057 //!								2. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
  3058 //!								3. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
  3059 //!								4. Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
  3060 //!								5. Get the version of the database server using Version() function. Test Pass if expected version name,
       
  3061 //!									build number, major number and minor number are same as actual version name, actual build number,
       
  3062 //!									major number and minor number.
       
  3063 //!								6. Test fail if version name or build number or major number or minor number is not same as expected.
       
  3064 //!								7. Close the SDP database subsession using Close() function.
       
  3065 //!								8. Close the client process using Close() function.
       
  3066 //! @SYMTestStatus				Implemented
       
  3067 //! @SYMTestPriority			Low
       
  3068 //! @SYMTestExpectedResults  	The actual Version name, build number, major number and minor number are same as expected successfully.
       
  3069 //! @SYMTestType				CIT
       
  3070 
       
  3071 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3072 			CREATE_OBJECT	RSdpDatabase	database1	
       
  3073 			CREATE_OBJECT	RSdp	rsdp	
       
  3074 			COMMAND		rsdp	Constructor
       
  3075 			COMMAND		rsdp	Connect
       
  3076 			OUTSTANDING
       
  3077 			COMMAND		database1	Constructor
       
  3078 			COMMAND		database1	Open		BTSDP-Database-PublicApi-3311-0001command6Open
       
  3079 			COMMAND		rsdp	Version		BTSDP-Database-PublicApi-3311-0001command8Version
       
  3080 			COMMAND		database1	Close
       
  3081 			COMMAND		rsdp	Close
       
  3082 	END_TEST_BLOCK
       
  3083 
       
  3084 END_TESTCASE   BTSDP-Database-PublicApi-3311
       
  3085 
       
  3086 
       
  3087 START_TESTCASE BTSDP-Database-PublicApi-3312
       
  3088 //! @SYMTestCaseID				BTSDP-Database-PublicApi-3312
       
  3089 //! @SYMAPI						RSdp
       
  3090 //! @SYMTestCaseDesc			Starts the counter to keep track of open subsessions.
       
  3091 //!								Uses API elements: Rsdp(), RSdpDatabase(), Connect(), Open(), ResourceCountMarkStart(), ResourceCountMarkEnd() and Close()
       
  3092 //! @SYMTestActions				1. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  3093 //!								2. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
  3094 //!								3. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
  3095 //!								4. Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
  3096 //!								5. Start the counter to keep track of open subsessions using ResourceCountMarkStart() function.
       
  3097 //!								6. Stop the counter using ResourceCountMarkEnd() function.
       
  3098 //!								7. Close the SDP database subsession using Close() function.
       
  3099 //!								8. Close the client process using Close() function.
       
  3100 //! @SYMTestStatus				Implemented
       
  3101 //! @SYMTestPriority			Low
       
  3102 //! @SYMTestExpectedResults  	The resource counter start successfully and stop successfully.
       
  3103 //! @SYMTestType				CIT
       
  3104 
       
  3105 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3106 			CREATE_OBJECT	RSdpDatabase	database1	
       
  3107 			CREATE_OBJECT	RSdp	rsdp	
       
  3108 			COMMAND		rsdp	Constructor
       
  3109 			COMMAND		rsdp	Connect
       
  3110 			OUTSTANDING
       
  3111 			COMMAND		database1	Constructor
       
  3112 			COMMAND		database1	Open		BTSDP-Database-PublicApi-3312-0001command6Open
       
  3113 			COMMAND		rsdp	ResourceCountMarkStart
       
  3114 			COMMAND		rsdp	ResourceCountMarkEnd
       
  3115 			COMMAND		database1	Close
       
  3116 			COMMAND		rsdp	Close
       
  3117 	END_TEST_BLOCK
       
  3118 
       
  3119 END_TESTCASE   BTSDP-Database-PublicApi-3312
       
  3120 
       
  3121 
       
  3122 START_TESTCASE BTSDP-Database-PublicApi-3313
       
  3123 //! @SYMTestCaseID				BTSDP-Database-PublicApi-3313
       
  3124 //! @SYMAPI						RSdp
       
  3125 //! @SYMTestCaseDesc			Gets the number of open subsessions to the database.
       
  3126 //!								Uses API elements: Rsdp(), RSdpDatabase(), Connect(), Open(), ResourceCountMarkStart(), ResourceCountMarkEnd(), ResourceCount() and Close()
       
  3127 //! @SYMTestActions				1. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  3128 //!								2. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
  3129 //!								3. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
  3130 //!								4. Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
  3131 //!								5. Start the counter to keep track of open subsessions using ResourceCountMarkStart() function.
       
  3132 //!								6. Get the number of open subsessions on the database using ResourceCount() function. Test pass if expected
       
  3133 //!									resource counter number is same as actual resource counter number.
       
  3134 //!								7. Test fail if expected resource counter is not same as actual resource counter.
       
  3135 //!								8. Stop the counter using ResourceCountMarkEnd() function.
       
  3136 //!								9. Close the SDP database subsession using Close() function.
       
  3137 //!								10.Close the client process using Close() function.
       
  3138 //! @SYMTestStatus				Implemented
       
  3139 //! @SYMTestPriority			Low
       
  3140 //! @SYMTestExpectedResults  	The actual resource counter number is same as expected successfully.
       
  3141 //! @SYMTestType				CIT
       
  3142 
       
  3143 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3144 			CREATE_OBJECT	RSdpDatabase	database1	
       
  3145 			CREATE_OBJECT	RSdp	rsdp	
       
  3146 			COMMAND		rsdp	Constructor
       
  3147 			COMMAND		rsdp	Connect
       
  3148 			OUTSTANDING
       
  3149 			COMMAND		database1	Constructor
       
  3150 			COMMAND		database1	Open		BTSDP-Database-PublicApi-3313-0001command6Open
       
  3151 			COMMAND		rsdp	ResourceCountMarkStart
       
  3152 			COMMAND		rsdp	ResourceCount		BTSDP-Database-PublicApi-3313-0001command9ResourceCount
       
  3153 			COMMAND		rsdp	ResourceCountMarkEnd
       
  3154 			COMMAND		database1	Close
       
  3155 			COMMAND		rsdp	Close
       
  3156 	END_TEST_BLOCK
       
  3157 
       
  3158 END_TESTCASE   BTSDP-Database-PublicApi-3313
       
  3159 
       
  3160 START_TESTCASE BTSDP-Database-PublicApi-3314
       
  3161 //! @SYMTestCaseID				BTSDP-Database-PublicApi-3314
       
  3162 //! @SYMAPI						RSdpDatabase
       
  3163 //! @SYMTestCaseDesc			Multiple records being added to the database, then deleted them from database
       
  3164 //!								Uses API elements: Rsdp(), RSdpDatabase(), Connect(), Open(), CreateServiceRecordL(), DeleteRecordL() and Close()
       
  3165 //! @SYMTestActions				1. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  3166 //!								2. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
  3167 //!								3. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
  3168 //!								4. Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
  3169 //!								5. Read Multiple input service record UUIDs from test data if successful.
       
  3170 //!								6. Creates multiple new service records with the service record UUIDs using CreateServiceRecordL() function and return KErrNone if successed.
       
  3171 //!								7. Deletes the service records using DeleteRecordL() function and return KErrNone if successed.
       
  3172 //!								8. Close the SDP database subsession using Close() function.
       
  3173 //!								9. Close the client process using Close() function.
       
  3174 //! @SYMTestStatus				Implemented
       
  3175 //! @SYMTestPriority			Low
       
  3176 //! @SYMTestExpectedResults  	Multiple records being added to the database and deleted successfully.
       
  3177 //! @SYMTestType				CIT
       
  3178 
       
  3179 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3180 			CREATE_OBJECT	RSdpDatabase	database1	
       
  3181 			CREATE_OBJECT	RSdp	rsdp	
       
  3182 			COMMAND		rsdp	Constructor
       
  3183 			COMMAND		rsdp	Connect
       
  3184 			OUTSTANDING
       
  3185 			COMMAND		database1	Constructor
       
  3186 			COMMAND		database1	Open		BTSDP-Database-PublicApi-3314-0001command6Open
       
  3187 			COMMAND		database1	CreateServiceRecordL		BTSDP-Database-PublicApi-3314-0001command7CreateServiceRecordL
       
  3188 			COMMAND		database1	CreateServiceRecordL		BTSDP-Database-PublicApi-3314-0001command8CreateServiceRecordL
       
  3189 			COMMAND		database1	CreateServiceRecordL		BTSDP-Database-PublicApi-3314-0001command9CreateServiceRecordL
       
  3190 			COMMAND		database1	DeleteRecordL
       
  3191 			COMMAND		database1	DeleteRecordL
       
  3192 			COMMAND		database1	DeleteRecordL
       
  3193 			COMMAND		database1	Close
       
  3194 			COMMAND		rsdp	Close
       
  3195 	END_TEST_BLOCK
       
  3196 
       
  3197 END_TESTCASE   BTSDP-Database-PublicApi-3314
       
  3198 
       
  3199 
       
  3200 START_TESTCASE BTSDP-Database-PublicApi-3315
       
  3201 //! @SYMTestCaseID				BTSDP-Database-PublicApi-3315
       
  3202 //! @SYMAPI						RSdpDatabase
       
  3203 //! @SYMTestCaseDesc			Multiple attributes being added to a service record, then updated each attribute with properly value. Finally deleted all attributes.
       
  3204 //!								Uses API elements: Rsdp(), RSdpDatabase(), Connect(), Open(), CreateServiceRecordL(), UpdateAttributeL(), DeleteAttributeL() and Close()
       
  3205 //! @SYMTestActions				1. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  3206 //!								2. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
  3207 //!								3. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
  3208 //!								4. Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
  3209 //!								5. Read an input service record UUID from test data if successful.
       
  3210 //!								6. Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed.
       
  3211 //!								7. Read multiple attribute IDs from test data if successful.
       
  3212 //!								8. Read multiple values from test data if successful.
       
  3213 //!								9. Updates a service record attribute with values using UpdateAttributeL() function and return KErrNone if successed.
       
  3214 //!								10.Read multiple attribute IDs again from test data if successful.
       
  3215 //!								11.Read multiple values again from test data if successful.
       
  3216 //!								12.Updates multiple service record attributes again with values using UpdateAttributeL() function and return KErrNone if successed.
       
  3217 //!								13.Delete multiple attributes from service record using DeleteAttributeL() function and return KErrNone if successed.
       
  3218 //!								14.Close the SDP database subsession using Close() function.
       
  3219 //!								15.Close the client process using Close() function.
       
  3220 //! @SYMTestStatus				Implemented
       
  3221 //! @SYMTestPriority			Medium
       
  3222 //! @SYMTestExpectedResults  	Multiple attributes being added to a service reocrd, then updated each attribute successfully. Finally deleted all attribute.
       
  3223 //! @SYMTestType				CIT
       
  3224 
       
  3225 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3226 			CREATE_OBJECT	RSdpDatabase	database1	
       
  3227 			CREATE_OBJECT	RSdp	rsdp	
       
  3228 			COMMAND		rsdp	Constructor
       
  3229 			COMMAND		rsdp	Connect
       
  3230 			OUTSTANDING
       
  3231 			COMMAND		database1	Constructor
       
  3232 			COMMAND		database1	Open		BTSDP-Database-PublicApi-3315-0001command6Open
       
  3233 			COMMAND		database1	CreateServiceRecordL		BTSDP-Database-PublicApi-3315-0001command7CreateServiceRecordL
       
  3234 			COMMAND		database1	UpdateAttributeL		BTSDP-Database-PublicApi-3315-0001command8UpdateAttributeL
       
  3235 			COMMAND		database1	UpdateAttributeL		BTSDP-Database-PublicApi-3315-0001command9UpdateAttributeL
       
  3236 			COMMAND		database1	UpdateAttributeL		BTSDP-Database-PublicApi-3315-0001command10UpdateAttributeL
       
  3237 			COMMAND		database1	UpdateAttributeL		BTSDP-Database-PublicApi-3315-0001command11UpdateAttributeL
       
  3238 			COMMAND		database1	UpdateAttributeL		BTSDP-Database-PublicApi-3315-0001command12UpdateAttributeL
       
  3239 			COMMAND		database1	UpdateAttributeL		BTSDP-Database-PublicApi-3315-0001command13UpdateAttributeL
       
  3240 			COMMAND		database1	DeleteAttributeL		BTSDP-Database-PublicApi-3315-0001command14DeleteAttributeL
       
  3241 			COMMAND		database1	DeleteAttributeL		BTSDP-Database-PublicApi-3315-0001command15DeleteAttributeL
       
  3242 			COMMAND		database1	DeleteAttributeL		BTSDP-Database-PublicApi-3315-0001command16DeleteAttributeL
       
  3243 			COMMAND		database1	DeleteRecordL
       
  3244 			COMMAND		database1	Close
       
  3245 			COMMAND		rsdp	Close
       
  3246 	END_TEST_BLOCK
       
  3247 
       
  3248 END_TESTCASE   BTSDP-Database-PublicApi-3315
       
  3249 
       
  3250 
       
  3251 // ****************************************************************************
       
  3252 // Negative test cases
       
  3253 // ****************************************************************************
       
  3254 
       
  3255 //!START_TESTCASE BTSDP-Database-PublicApi-3316
       
  3256 //! @SYMTestCaseID				BTSDP-Database-PublicApi-3316
       
  3257 //! @SYMAPI						RSdpDatabase
       
  3258 //! @SYMTestCaseDesc			Open a SDP database subsession
       
  3259 //!								Uses API elements: Open()
       
  3260 //! @SYMTestActions				1. Open a SDP database subsession using Open() function.
       
  3261 //!								   Catch a panic if panic is thrown out
       
  3262 //! @SYMTestStatus				Implemented
       
  3263 //! @SYMTestPriority			Low
       
  3264 //! @SYMTestExpectedResults  	Caught the panic
       
  3265 //! @SYMTestType				CIT
       
  3266 
       
  3267 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3268 //!			CREATE_OBJECT	RSdpDatabase	database1	
       
  3269 //!			CREATE_OBJECT	RSdp	rsdp	
       
  3270 //!			COMMAND		database1	Open		BTSDP-Database-PublicApi-3316-0001command1Open
       
  3271 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  3272 
       
  3273 //!END_TESTCASE BTSDP-Database-PublicApi-3316
       
  3274 
       
  3275 
       
  3276 //!START_TESTCASE BTSDP-Database-PublicApi-3317
       
  3277 //! @SYMTestCaseID				BTSDP-Database-PublicApi-3317
       
  3278 //! @SYMAPI						RSdpDatabase
       
  3279 //! @SYMTestCaseDesc			Close the SDP database subsession
       
  3280 //!								Uses API elements: Close()
       
  3281 //! @SYMTestActions				1. Close the SDP database subsession using Close() function.
       
  3282 //!								   Catch a panic if panic is thrown out
       
  3283 //! @SYMTestStatus				Implemented
       
  3284 //! @SYMTestPriority			Low
       
  3285 //! @SYMTestExpectedResults  	Caught the panic
       
  3286 //! @SYMTestType				CIT
       
  3287 
       
  3288 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3289 //!			CREATE_OBJECT	RSdpDatabase	database1	
       
  3290 //!			COMMAND		database1	Close
       
  3291 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  3292 
       
  3293 //!END_TESTCASE BTSDP-Database-PublicApi-3317
       
  3294 
       
  3295 
       
  3296 //!START_TESTCASE BTSDP-Database-PublicApi-3318
       
  3297 //! @SYMTestCaseID				BTSDP-Database-PublicApi-3318
       
  3298 //! @SYMAPI						RSdpDatabase
       
  3299 //! @SYMTestCaseDesc			Create a new service record, with a single service class, in the SDP database
       
  3300 //!								Uses API elements: CreateServiceRecordL()
       
  3301 //! @SYMTestActions				1. Create a new service record, with a single service class, in the SDP database using CreateServiceRecordL() function.
       
  3302 //!								   Catch a panic if panic is thrown out
       
  3303 //! @SYMTestStatus				Implemented
       
  3304 //! @SYMTestPriority			Low
       
  3305 //! @SYMTestExpectedResults  	Caught the panic
       
  3306 //! @SYMTestType				CIT
       
  3307 
       
  3308 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3309 //!			CREATE_OBJECT	RSdpDatabase	database1	
       
  3310 //!			COMMAND		database1	CreateServiceRecordL		BTSDP-Database-PublicApi-3318-0001command1CreateServiceRecordL
       
  3311 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  3312 
       
  3313 //!END_TESTCASE BTSDP-Database-PublicApi-3318
       
  3314 
       
  3315 
       
  3316 //!START_TESTCASE BTSDP-Database-PublicApi-3319
       
  3317 //! @SYMTestCaseID				BTSDP-Database-PublicApi-3319
       
  3318 //! @SYMAPI						RSdpDatabase
       
  3319 //! @SYMTestCaseDesc			Create a new service record, with multiple service classes, in the SDP database
       
  3320 //!								Uses API elements: CreateServiceRecordL()
       
  3321 //! @SYMTestActions				1. Create a new service record, with multiple service classes, in the SDP database using CreateServiceRecordL() function.
       
  3322 //!								   Catch a panic if panic is thrown out
       
  3323 //! @SYMTestStatus				Implemented
       
  3324 //! @SYMTestPriority			Low
       
  3325 //! @SYMTestExpectedResults  	Caught the panic
       
  3326 //! @SYMTestType				CIT
       
  3327 
       
  3328 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3329 //!			CREATE_OBJECT	RSdpDatabase	database1	
       
  3330 //!			CREATE_OBJECT	CSdpAttrValueDES	attrValueDES	
       
  3331 //!			COMMAND		database1	CreateServiceRecordL		BTSDP-Database-PublicApi-3319-0001command1CreateServiceRecordL
       
  3332 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  3333 
       
  3334 //!END_TESTCASE BTSDP-Database-PublicApi-3319
       
  3335 
       
  3336 
       
  3337 //!START_TESTCASE BTSDP-Database-PublicApi-3320
       
  3338 //! @SYMTestCaseID				BTSDP-Database-PublicApi-3320
       
  3339 //! @SYMAPI						RSdpDatabase
       
  3340 //! @SYMTestCaseDesc			Update a service record attribute (value encapsulated in a CSdpAttrValue)
       
  3341 //!								Uses API elements: UpdateAttributeL()
       
  3342 //! @SYMTestActions				1. Update a service record attribute (value encapsulated in a CSdpAttrValue) using UpdateAttributeL() function.
       
  3343 //!								   Catch a panic if panic is thrown out
       
  3344 //! @SYMTestStatus				Implemented
       
  3345 //! @SYMTestPriority			Low
       
  3346 //! @SYMTestExpectedResults  	Caught the panic
       
  3347 //! @SYMTestType				CIT
       
  3348 
       
  3349 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3350 //!			CREATE_OBJECT	RSdpDatabase	database1	
       
  3351 //!			CREATE_OBJECT	CSdpAttrValueInt	attrValueInt	
       
  3352 //!			COMMAND		database1	UpdateAttributeL		BTSDP-Database-PublicApi-3320-0001command1UpdateAttributeL
       
  3353 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  3354 
       
  3355 //!END_TESTCASE BTSDP-Database-PublicApi-3320
       
  3356 
       
  3357 
       
  3358 //!START_TESTCASE BTSDP-Database-PublicApi-3321
       
  3359 //! @SYMTestCaseID				BTSDP-Database-PublicApi-3321
       
  3360 //! @SYMAPI						RSdpDatabase
       
  3361 //! @SYMTestCaseDesc			Update a service record attribute (integer value)
       
  3362 //!								Uses API elements: UpdateAttributeL()
       
  3363 //! @SYMTestActions				1. Update a service record attribute (integer value) using UpdateAttributeL() function.
       
  3364 //!								   Catch a panic if panic is thrown out
       
  3365 //! @SYMTestStatus				Implemented
       
  3366 //! @SYMTestPriority			Low
       
  3367 //! @SYMTestExpectedResults  	Caught the panic
       
  3368 //! @SYMTestType				CIT
       
  3369 
       
  3370 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3371 //!			CREATE_OBJECT	RSdpDatabase	database1	
       
  3372 //!			COMMAND		database1	UpdateAttributeL		BTSDP-Database-PublicApi-3321-0001command1UpdateAttributeL
       
  3373 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  3374 
       
  3375 //!END_TESTCASE BTSDP-Database-PublicApi-3321
       
  3376 
       
  3377 
       
  3378 //!START_TESTCASE BTSDP-Database-PublicApi-3322
       
  3379 //! @SYMTestCaseID				BTSDP-Database-PublicApi-3322
       
  3380 //! @SYMAPI						RSdpDatabase
       
  3381 //! @SYMTestCaseDesc			Update a service record attribute (narrow descriptor value)
       
  3382 //!								Uses API elements: UpdateAttributeL()
       
  3383 //! @SYMTestActions				1. Update a service record attribute (narrow descriptor value) using UpdateAttributeL() function.
       
  3384 //!								   Catch a panic if panic is thrown out
       
  3385 //! @SYMTestStatus				Implemented
       
  3386 //! @SYMTestPriority			Low
       
  3387 //! @SYMTestExpectedResults  	Caught the panic
       
  3388 //! @SYMTestType				CIT
       
  3389 
       
  3390 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3391 //!			CREATE_OBJECT	RSdpDatabase	database1	
       
  3392 //!			COMMAND		database1	UpdateAttributeL		BTSDP-Database-PublicApi-3322-0001command1UpdateAttributeL
       
  3393 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  3394 
       
  3395 //!END_TESTCASE BTSDP-Database-PublicApi-3322
       
  3396 
       
  3397 
       
  3398 //!START_TESTCASE BTSDP-Database-PublicApi-3323
       
  3399 //! @SYMTestCaseID				BTSDP-Database-PublicApi-3323
       
  3400 //! @SYMAPI						RSdpDatabase
       
  3401 //! @SYMTestCaseDesc			Update a service record attribute (narrow descriptor value)
       
  3402 //!								Uses API elements: UpdateAttributeL()
       
  3403 //! @SYMTestActions				1. Update a service record attribute (narrow descriptor value) using UpdateAttributeL() function.
       
  3404 //!								   Catch a panic if panic is thrown out
       
  3405 //! @SYMTestStatus				Implemented
       
  3406 //! @SYMTestPriority			Low
       
  3407 //! @SYMTestExpectedResults  	Caught the panic
       
  3408 //! @SYMTestType				CIT
       
  3409 
       
  3410 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3411 //!			CREATE_OBJECT	RSdpDatabase	database1	
       
  3412 //!			COMMAND		database1	UpdateAttributeL		BTSDP-Database-PublicApi-3323-0001command1UpdateAttributeL
       
  3413 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  3414 
       
  3415 //!END_TESTCASE BTSDP-Database-PublicApi-3323
       
  3416 
       
  3417 
       
  3418 //!START_TESTCASE BTSDP-Database-PublicApi-3324
       
  3419 //! @SYMTestCaseID				BTSDP-Database-PublicApi-3324
       
  3420 //! @SYMAPI						RSdpDatabase
       
  3421 //! @SYMTestCaseDesc			Delete an attribute from a service record
       
  3422 //!								Uses API elements: DeleteAttributeL()
       
  3423 //! @SYMTestActions				1. Delete an attribute from a service record using DeleteAttributeL() function.
       
  3424 //!								   Catch a panic if panic is thrown out
       
  3425 //! @SYMTestStatus				Implemented
       
  3426 //! @SYMTestPriority			Low
       
  3427 //! @SYMTestExpectedResults  	Caught the panic
       
  3428 //! @SYMTestType				CIT
       
  3429 
       
  3430 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3431 //!			CREATE_OBJECT	RSdpDatabase	database1	
       
  3432 //!			COMMAND		database1	DeleteAttributeL		BTSDP-Database-PublicApi-3324-0001command1DeleteAttributeL
       
  3433 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  3434 
       
  3435 //!END_TESTCASE BTSDP-Database-PublicApi-3324
       
  3436 
       
  3437 
       
  3438 //!START_TESTCASE BTSDP-Database-PublicApi-3325
       
  3439 //! @SYMTestCaseID				BTSDP-Database-PublicApi-3325
       
  3440 //! @SYMAPI						RSdpDatabase
       
  3441 //! @SYMTestCaseDesc			Delete a service record
       
  3442 //!								Uses API elements: DeleteRecordL()
       
  3443 //! @SYMTestActions				1. Delete a service record using DeleteRecordL() function.
       
  3444 //!								   Catch a panic if panic is thrown out
       
  3445 //! @SYMTestStatus				Implemented
       
  3446 //! @SYMTestPriority			Low
       
  3447 //! @SYMTestExpectedResults  	Caught the panic
       
  3448 //! @SYMTestType				CIT
       
  3449 
       
  3450 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3451 //!			CREATE_OBJECT	RSdpDatabase	database1	
       
  3452 //!			COMMAND		database1	DeleteRecordL
       
  3453 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  3454 
       
  3455 //!END_TESTCASE BTSDP-Database-PublicApi-3325
       
  3456 
       
  3457 
       
  3458 
       
  3459 // ****************************************************************************
       
  3460 // BTSDP-Rsdp
       
  3461 // ****************************************************************************	
       
  3462 
       
  3463 START_TESTCASE BTSDP-Rsdp-PublicApi-3401
       
  3464 //! @SYMTestCaseID				BTSDP-Rsdp-PublicApi-3401
       
  3465 //! @SYMAPI						RSdp
       
  3466 //! @SYMTestCaseDesc			Allocate and construct a new RSdp object.
       
  3467 //!								Uses API elements: RSdp()
       
  3468 //! @SYMTestActions				1. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  3469 //! @SYMTestStatus				Implemented
       
  3470 //! @SYMTestPriority			Low
       
  3471 //! @SYMTestExpectedResults  	RSdp object was allocated successfully.
       
  3472 //! @SYMTestType				CIT
       
  3473 
       
  3474 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3475 			CREATE_OBJECT	RSdp	rsdp1	
       
  3476 			COMMAND		rsdp1	Constructor
       
  3477 	END_TEST_BLOCK
       
  3478 
       
  3479 END_TESTCASE   BTSDP-Rsdp-PublicApi-3401
       
  3480 
       
  3481 
       
  3482 START_TESTCASE BTSDP-Rsdp-PublicApi-3402
       
  3483 //! @SYMTestCaseID				BTSDP-Rsdp-PublicApi-3402
       
  3484 //! @SYMAPI						RSdp
       
  3485 //! @SYMTestCaseDesc			Connect a client process to the database.
       
  3486 //!								Uses API elements: RSdp(), Connect() and Close()
       
  3487 //! @SYMTestActions				1. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  3488 //!								2. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
  3489 //!								3. Close the client process using Close() function.
       
  3490 //! @SYMTestStatus				Implemented
       
  3491 //! @SYMTestPriority			Low
       
  3492 //! @SYMTestExpectedResults  	Connect to the database was successfully.
       
  3493 //! @SYMTestType				CIT
       
  3494 
       
  3495 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3496 			CREATE_OBJECT	RSdp	rsdp1	
       
  3497 			COMMAND		rsdp1	Constructor
       
  3498 			COMMAND		rsdp1	Connect
       
  3499 			OUTSTANDING
       
  3500 			COMMAND		rsdp1	Close
       
  3501 	END_TEST_BLOCK
       
  3502 
       
  3503 END_TESTCASE BTSDP-Rsdp-PublicApi-3402
       
  3504 
       
  3505 
       
  3506 START_TESTCASE BTSDP-Rsdp-PublicApi-3403
       
  3507 //! @SYMTestCaseID				BTSDP-Rsdp-PublicApi-3403
       
  3508 //! @SYMAPI						RSdp
       
  3509 //! @SYMTestCaseDesc			Get the version of the database server.
       
  3510 //!								Uses API elements: RSdp(), Connect(), Version() and Close()
       
  3511 //! @SYMTestActions				1. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  3512 //!								2. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
  3513 //!								3. Get the version of the database server using Version() function. Test Pass if expected version name,
       
  3514 //!									build number, major number and minor number are same as actual version name, actual build number,
       
  3515 //!									major number and minor number.
       
  3516 //!								4. Test fail if version name or build number or major number or minor number is not same as expected.
       
  3517 //!								5. Close the client process using Close() function.
       
  3518 //! @SYMTestStatus				Implemented
       
  3519 //! @SYMTestPriority			Low
       
  3520 //! @SYMTestExpectedResults  	The actual Version name, build number, major number and minor number are same as expected successfully.
       
  3521 //! @SYMTestType				CIT
       
  3522 
       
  3523 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3524 			CREATE_OBJECT	RSdp	rsdp1	
       
  3525 			COMMAND		rsdp1	Constructor
       
  3526 			COMMAND		rsdp1	Connect
       
  3527 			OUTSTANDING
       
  3528 			COMMAND		rsdp1	Version		BTSDP-Rsdp-PublicApi-3403-0001command3Version
       
  3529 			COMMAND		rsdp1	Close
       
  3530 	END_TEST_BLOCK
       
  3531 
       
  3532 END_TESTCASE   BTSDP-Rsdp-PublicApi-3403
       
  3533 
       
  3534 
       
  3535 START_TESTCASE BTSDP-Rsdp-PublicApi-3404
       
  3536 //! @SYMTestCaseID				BTSDP-Rsdp-PublicApi-3404
       
  3537 //! @SYMAPI						RSdp
       
  3538 //! @SYMTestCaseDesc			Get the number of open subsessions on the database.
       
  3539 //!								Uses API elements: RSdp(), Connect(), ResourceCountMarkStart(), ResourceCountMarkEnd(), ResourceCount() and Close()
       
  3540 //! @SYMTestActions				1. 1. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  3541 //!								2. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
  3542 //!								3. Start the counter to keep track of open subsessions using ResourceCountMarkStart() function.
       
  3543 //!								4. Get the number of open subsessions on the database using ResourceCount() function. Test pass if expected
       
  3544 //!									resource counter number is same as actual resource counter number.
       
  3545 //!								5. Test fail if expected resource counter is not same as actual resource counter.
       
  3546 //!								6. Stop the counter using ResourceCountMarkEnd() function.
       
  3547 //!								7. Close the client process using Close() function.
       
  3548 //! @SYMTestStatus				Implemented
       
  3549 //! @SYMTestPriority			Low
       
  3550 //! @SYMTestExpectedResults  	The actual resource counter number is same as expected successfully.
       
  3551 //! @SYMTestType				CIT
       
  3552 
       
  3553 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3554 			CREATE_OBJECT	RSdp	rsdp1	
       
  3555 			COMMAND		rsdp1	Constructor
       
  3556 			COMMAND		rsdp1	Connect
       
  3557 			OUTSTANDING
       
  3558 			COMMAND		rsdp1	ResourceCountMarkStart
       
  3559 			COMMAND		rsdp1	ResourceCount		BTSDP-Rsdp-PublicApi-3404-0001command4ResourceCount
       
  3560 			COMMAND		rsdp1	ResourceCountMarkEnd
       
  3561 			COMMAND		rsdp1	Close
       
  3562 	END_TEST_BLOCK
       
  3563 
       
  3564 END_TESTCASE   BTSDP-Rsdp-PublicApi-3404
       
  3565 
       
  3566 
       
  3567 // ****************************************************************************
       
  3568 // Negative test cases
       
  3569 // ****************************************************************************
       
  3570 
       
  3571 //!START_TESTCASE BTSDP-Rsdp-PublicApi-3405
       
  3572 //! @SYMTestCaseID				BTSDP-Rsdp-PublicApi-3405
       
  3573 //! @SYMAPI						RSdp
       
  3574 //! @SYMTestCaseDesc			Connect a client process to the database.
       
  3575 //!								Uses API elements: Connect()
       
  3576 //! @SYMTestActions				1. Connect a client process to the database using Connect() function.
       
  3577 //!								   Catch a panic if panic is thrown out
       
  3578 //! @SYMTestStatus				Implemented
       
  3579 //! @SYMTestPriority			Low
       
  3580 //! @SYMTestExpectedResults		Caught the panic
       
  3581 //! @SYMTestType				CIT
       
  3582 
       
  3583 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3584 //!			CREATE_OBJECT	RSdp	rsdp1	
       
  3585 //!			COMMAND		rsdp1	Connect
       
  3586 //!			OUTSTANDING
       
  3587 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  3588 
       
  3589 //!END_TESTCASE BTSDP-Rsdp-PublicApi-3405
       
  3590 
       
  3591 
       
  3592 //!START_TESTCASE BTSDP-Rsdp-PublicApi-3406
       
  3593 //! @SYMTestCaseID				BTSDP-Rsdp-PublicApi-3406
       
  3594 //! @SYMAPI						RSdp
       
  3595 //! @SYMTestCaseDesc			Start the counter to keep track of open subsessions
       
  3596 //!								Uses API elements: ResourceCountMarkStart()
       
  3597 //! @SYMTestActions				1. Starts the counter to keep track of open subsessions using ResourceCountMarkStart() function.
       
  3598 //!								   Catch a panic if panic is thrown out
       
  3599 //! @SYMTestStatus				Implemented
       
  3600 //! @SYMTestPriority			Low
       
  3601 //! @SYMTestExpectedResults		Caught the panic
       
  3602 //! @SYMTestType				CIT
       
  3603 
       
  3604 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3605 //!			CREATE_OBJECT	RSdp	rsdp1	
       
  3606 //!			COMMAND		rsdp1	ResourceCountMarkStart
       
  3607 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  3608 
       
  3609 //!END_TESTCASE BTSDP-Rsdp-PublicApi-3406
       
  3610 
       
  3611 
       
  3612 //!START_TESTCASE BTSDP-Rsdp-PublicApi-3407
       
  3613 //! @SYMTestCaseID				BTSDP-Rsdp-PublicApi-3407
       
  3614 //! @SYMAPI						RSdp
       
  3615 //! @SYMTestCaseDesc			Stop the counter to keep track of open subsessions
       
  3616 //!								Uses API elements: ResourceCountMarkEnd()
       
  3617 //! @SYMTestActions				1. Stop the counter to keep track of open subsessions using ResourceCountMarkEnd() function.
       
  3618 //!								   Catch a panic if panic is thrown out
       
  3619 //! @SYMTestStatus				Implemented
       
  3620 //! @SYMTestPriority			Low
       
  3621 //! @SYMTestExpectedResults		Caught the panic
       
  3622 //! @SYMTestType				CIT
       
  3623 
       
  3624 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3625 //!			CREATE_OBJECT	RSdp	rsdp1	
       
  3626 //!			COMMAND		rsdp1	ResourceCountMarkEnd
       
  3627 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  3628 
       
  3629 //!END_TESTCASE BTSDP-Rsdp-PublicApi-3407
       
  3630 
       
  3631 
       
  3632 //!START_TESTCASE BTSDP-Rsdp-PublicApi-3408
       
  3633 //! @SYMTestCaseID				BTSDP-Rsdp-PublicApi-3408
       
  3634 //! @SYMAPI						RSdp
       
  3635 //! @SYMTestCaseDesc			Get the number of open subsessions to the database
       
  3636 //!								Uses API elements: ResourceCount()
       
  3637 //! @SYMTestActions				1. Get the number of open subsessions to the database using ResourceCount() function.
       
  3638 //!								   Catch a panic if panic is thrown out
       
  3639 //! @SYMTestStatus				Implemented
       
  3640 //! @SYMTestPriority			Low
       
  3641 //! @SYMTestExpectedResults		Caught the panic
       
  3642 //! @SYMTestType				CIT
       
  3643 
       
  3644 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3645 //!			CREATE_OBJECT	RSdp	rsdp1	
       
  3646 //!			COMMAND		rsdp1	ResourceCount
       
  3647 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  3648 
       
  3649 //!END_TESTCASE BTSDP-Rsdp-PublicApi-3408
       
  3650 
       
  3651 START_TESTCASE BTSDP-Util-PublicApi-2203
       
  3652 //! @SYMTestCaseID					BTSDP-Util-PublicApi-2203
       
  3653 //! @SYMAPI							SdpUtil
       
  3654 //! @SYMTestCaseDesc				Put an unsigned 64 bit integer into a descriptor
       
  3655 //!									Uses API elements: PutUint64()
       
  3656 //! @SYMTestActions					1. Read an unsigned 64 bit integer from test data if successful
       
  3657 //!									2. Put the unsigned 64 bit integer into a descriptor using PutUint64() function
       
  3658 //!									3. Calculate the expected value and test pass if the pointer to the descriptor's data field is as expected
       
  3659 //! @SYMTestStatus					Implemented
       
  3660 //! @SYMTestPriority				Low
       
  3661 //! @SYMTestExpectedResults			Pointer to the descriptor's data field was matched to the expected value
       
  3662 //! @SYMTestType					CIT
       
  3663 
       
  3664 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3665 			CREATE_OBJECT	SdpUtil	sdputil1	
       
  3666 			COMMAND		sdputil1	PutUint64		BTSDP-Util-PublicApi-2203-0001command1PutUint64
       
  3667 	END_TEST_BLOCK
       
  3668 
       
  3669 END_TESTCASE BTSDP-Util-PublicApi-2203
       
  3670 
       
  3671 
       
  3672 START_TESTCASE BTSDP-Util-PublicApi-2205
       
  3673 //! @SYMTestCaseID					BTSDP-Util-PublicApi-2205
       
  3674 //! @SYMAPI							SdpUtil
       
  3675 //! @SYMTestCaseDesc				Put two unsigned 64 bit integers into a descriptor
       
  3676 //!									Uses API elements: PutUint128()
       
  3677 //! @SYMTestActions					1. Read a 64 lower bits and a 64 higher bits of a 128 bit integer from test data if successful
       
  3678 //!									2. Put the two unsigned 64 bit integers into a descriptor using PutUint128() function
       
  3679 //!									3. Calculate the expected value and test pass if the pointer to the descriptor's data field is as expected
       
  3680 //! @SYMTestStatus					Implemented
       
  3681 //! @SYMTestPriority				Low
       
  3682 //! @SYMTestExpectedResults			Pointer to the descriptor's data field was matched to the expected value
       
  3683 //! @SYMTestType					CIT
       
  3684 
       
  3685 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3686 			CREATE_OBJECT	SdpUtil	sdputil1	
       
  3687 			COMMAND		sdputil1	PutUint128		BTSDP-Util-PublicApi-2205-0001command1PutUint128
       
  3688 	END_TEST_BLOCK
       
  3689 
       
  3690 END_TESTCASE BTSDP-Util-PublicApi-2205
       
  3691 
       
  3692 
       
  3693 START_TESTCASE BTSDP-Database-PublicApi-3326
       
  3694 //! @SYMTestCaseID				BTSDP-Database-PublicApi-3326
       
  3695 //! @SYMAPI						RSdpDatabase
       
  3696 //! @SYMTestCaseDesc			Deletes a service record.
       
  3697 //!								Uses API elements: Rsdp(), RSdpDatabase(), Connect(), Open(), CreateServiceRecordL(), DeleteRecord() and Close()
       
  3698 //! @SYMTestActions				1. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  3699 //!								2. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
  3700 //!								3. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
  3701 //!								4. Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
  3702 //!								5. Read an input service record UUID from test data if successful.
       
  3703 //!								6. Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed.
       
  3704 //!								7. Deletes the service record using DeleteRecord() function and return KErrNone if successed.
       
  3705 //!								8. Close the SDP database subsession using Close() function.
       
  3706 //!								9. Close the client process using Close() function.
       
  3707 //! @SYMTestStatus				Implemented
       
  3708 //! @SYMTestPriority			Medium
       
  3709 //! @SYMTestExpectedResults  	The service record was deleted successfully.
       
  3710 //! @SYMTestType				CIT
       
  3711 
       
  3712 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3713 			CREATE_OBJECT	RSdpDatabase	database1	
       
  3714 			CREATE_OBJECT	RSdp	rsdp	
       
  3715 			COMMAND		rsdp	Constructor
       
  3716 			COMMAND		rsdp	Connect
       
  3717 			OUTSTANDING
       
  3718 			COMMAND		database1	Constructor
       
  3719 			COMMAND		database1	Open		BTSDP-Database-PublicApi-3326-0001command6Open
       
  3720 			COMMAND		database1	CreateServiceRecordL		BTSDP-Database-PublicApi-3326-0001command7CreateServiceRecordL
       
  3721 			COMMAND		database1	DeleteRecord
       
  3722 			COMMAND		database1	Close
       
  3723 			COMMAND		rsdp	Close
       
  3724 	END_TEST_BLOCK
       
  3725 
       
  3726 END_TESTCASE   BTSDP-Database-PublicApi-3326
       
  3727 
       
  3728 
       
  3729 START_TESTCASE BTSDP-Database-PublicApi-3327
       
  3730 //! @SYMTestCaseID				BTSDP-Database-PublicApi-3327
       
  3731 //! @SYMAPI						RSdpDatabase
       
  3732 //! @SYMTestCaseDesc			Delete an attribute from a service record.
       
  3733 //!								Uses API elements: Rsdp(), RSdpDatabase(), Connect(), Open(), CreateServiceRecordL(), UpdateAttributeL(), DeleteAttribute() and Close()
       
  3734 //! @SYMTestActions				1. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed.
       
  3735 //!								2. Connect a client process to the database using Connect() function and return KErrNone if successed.
       
  3736 //!								3. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed.
       
  3737 //!								4. Opens a SDP database subsession using Open() function and return KErrNone if successed.
       
  3738 //!								5. Read an input service record UUID from test data if successful.
       
  3739 //!								6. Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed.
       
  3740 //!								7. Read an input attribute ID from test data if successful.
       
  3741 //!								8. Read a narrow descriptor from test data if successful.
       
  3742 //!								9. Updates a service record attribute with a narrow descriptor using UpdateAttributeL() function and return KErrNone if successed.
       
  3743 //!								10.Delete an attribute from a service record using DeleteAttribute() function and return KErrNone if successed.
       
  3744 //!								11.Close the SDP database subsession using Close() function.
       
  3745 //!								12.Close the client process using Close() function.
       
  3746 //! @SYMTestStatus				Implemented
       
  3747 //! @SYMTestPriority			Medium
       
  3748 //! @SYMTestExpectedResults  	The attribute on a servie reocrd was deleted successfully.
       
  3749 //! @SYMTestType				CIT
       
  3750 
       
  3751 	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3752 			CREATE_OBJECT	RSdpDatabase	database1	
       
  3753 			CREATE_OBJECT	RSdp	rsdp	
       
  3754 			COMMAND		rsdp	Constructor
       
  3755 			COMMAND		rsdp	Connect
       
  3756 			OUTSTANDING
       
  3757 			COMMAND		database1	Constructor
       
  3758 			COMMAND		database1	Open		BTSDP-Database-PublicApi-3327-0001command6Open
       
  3759 			COMMAND		database1	CreateServiceRecordL		BTSDP-Database-PublicApi-3327-0001command7CreateServiceRecordL
       
  3760 			COMMAND		database1	UpdateAttributeL		BTSDP-Database-PublicApi-3327-0001command8UpdateAttributeL
       
  3761 			COMMAND		database1	DeleteAttribute		BTSDP-Database-PublicApi-3327-0001command9DeleteAttribute
       
  3762 			COMMAND		database1	Close
       
  3763 			COMMAND		rsdp	Close
       
  3764 	END_TEST_BLOCK
       
  3765 
       
  3766 END_TESTCASE   BTSDP-Database-PublicApi-3327
       
  3767 
       
  3768 
       
  3769 // ****************************************************************************
       
  3770 // Negative test cases
       
  3771 // ****************************************************************************
       
  3772 
       
  3773 //!START_TESTCASE BTSDP-Database-PublicApi-3328
       
  3774 //! @SYMTestCaseID				BTSDP-Database-PublicApi-3328
       
  3775 //! @SYMAPI						RSdpDatabase
       
  3776 //! @SYMTestCaseDesc			Delete a service record
       
  3777 //!								Uses API elements: DeleteRecord()
       
  3778 //! @SYMTestActions				1. Delete a service record using DeleteRecord() function.
       
  3779 //!								   Catch a panic if panic is thrown out
       
  3780 //! @SYMTestStatus				Implemented
       
  3781 //! @SYMTestPriority			Low
       
  3782 //! @SYMTestExpectedResults  	Caught the panic
       
  3783 //! @SYMTestType				CIT
       
  3784 
       
  3785 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3786 //!			CREATE_OBJECT	RSdpDatabase	database1	
       
  3787 //!			COMMAND		database1	DeleteRecord
       
  3788 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  3789 
       
  3790 //!END_TESTCASE BTSDP-Database-PublicApi-3328
       
  3791 
       
  3792 
       
  3793 //!START_TESTCASE BTSDP-Database-PublicApi-3329
       
  3794 //! @SYMTestCaseID				BTSDP-Database-PublicApi-3329
       
  3795 //! @SYMAPI						RSdpDatabase
       
  3796 //! @SYMTestCaseDesc			Delete an attribute from a service record
       
  3797 //!								Uses API elements: DeleteAttribute()
       
  3798 //! @SYMTestActions				1. Delete an attribute from a service record using DeleteAttribute() function.
       
  3799 //!								   Catch a panic if panic is thrown out
       
  3800 //! @SYMTestStatus				Implemented
       
  3801 //! @SYMTestPriority			Low
       
  3802 //! @SYMTestExpectedResults  	Caught the panic
       
  3803 //! @SYMTestType				CIT
       
  3804 
       
  3805 //!	START_TEST_BLOCK	10	T_BTSdpAPI	\bluetooth\sdp\BTSDP-SearchPattern-PublicApi-Unconnected.ini
       
  3806 //!			CREATE_OBJECT	RSdpDatabase	database1	
       
  3807 //!			COMMAND		database1	DeleteAttribute		BTSDP-Database-PublicApi-3329-0001command1DeleteAttribute
       
  3808 //!	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
  3809 
       
  3810 //!END_TESTCASE BTSDP-Database-PublicApi-3329
       
  3811 
       
  3812 
       
  3813 
       
  3814 DELAY		2000