|
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_BTUserAPI |
|
19 //! @SYMScriptTestEnvironment This test script requires a basic ROM with bluetooth dongle. |
|
20 //! @SYMScriptDescription Tests all published partner elements of the TAvdtpReportingCapabilities class |
|
21 //! as a means of confidence that the API works as expected. |
|
22 //! The purpose is to provide a regression test suite of PublishedPartner APIs for |
|
23 //! BT USER related classes. |
|
24 //! Negative testing is performed to confirm that correct errors are returned |
|
25 //! when incorrect parameters are given. The tests are fully automated. |
|
26 //! @SYMAuthor Wekey Weng |
|
27 //! @SYMCreationDate 10/03/2008 |
|
28 /////////////////////////////////////////////////////////////////////////////// |
|
29 |
|
30 RUN_UTILS MkDir ${SYSDRIVE}\bluetooth\user\ |
|
31 |
|
32 LOAD_SUITE T_BTUserAPI |
|
33 DELAY 500 |
|
34 |
|
35 |
|
36 // **************************************************************************** |
|
37 // TAvdtpReportingCapabilities |
|
38 // **************************************************************************** |
|
39 |
|
40 |
|
41 START_TESTCASE BT-USER-AvdtpReportingCapabilities-PublishedPartner-0001 |
|
42 //! @SYMTestCaseID BT-USER-AvdtpReportingCapabilities-PublishedPartner-0001 |
|
43 //! @SYMAPI TAvdtpReportingCapabilities::TAvdtpReportingCapabilities() |
|
44 //! @SYMAuthor Wekey Weng |
|
45 //! @SYMCreationDate 02/29/2008 |
|
46 //! @SYMTestCaseDesc Default constructor |
|
47 //! @SYMTestActions 1. Create a TAvdtpReportingCapabilities object |
|
48 //! 2. Destruct the TAvdtpReportingCapabilities object |
|
49 //! @SYMTestStatus Implemented |
|
50 //! @SYMTestPriority High |
|
51 //! @SYMTestExpectedResults The TAvdtpReportingCapabilities object is created successfully |
|
52 //! @SYMTestType CIT |
|
53 |
|
54 START_TEST_BLOCK 10 T_BTUserAPI \bluetooth\user\BT-USER-AvdtpReportingCapabilities-PublishedPartner.ini |
|
55 CREATE_OBJECT TAvdtpReportingCapabilities avdtpreportingcap |
|
56 COMMAND avdtpreportingcap new |
|
57 COMMAND avdtpreportingcap ~ |
|
58 END_TEST_BLOCK |
|
59 |
|
60 END_TESTCASE BT-USER-AvdtpReportingCapabilities-PublishedPartner-0001 |
|
61 |
|
62 START_TESTCASE BT-USER-AvdtpReportingCapabilities-PublishedPartner-0002 |
|
63 //! @SYMTestCaseID BT-USER-AvdtpReportingCapabilities-PublishedPartner-0002 |
|
64 //! @SYMAPI TAvdtpReportingCapabilities::Category() |
|
65 //! @SYMAuthor Wekey Weng |
|
66 //! @SYMCreationDate 02/29/2008 |
|
67 //! @SYMTestCaseDesc Get the category |
|
68 //! @SYMTestActions 1. Create a TAvdtpReportingCapabilities object |
|
69 //! 2. Get the category |
|
70 //! 3. Destruct the TAvdtpReportingCapabilities object |
|
71 //! @SYMTestStatus Implemented |
|
72 //! @SYMTestPriority High |
|
73 //! @SYMTestExpectedResults Called without panic and returns category (EServiceCategoryReporting) as expected |
|
74 //! @SYMTestType CIT |
|
75 |
|
76 START_TEST_BLOCK 10 T_BTUserAPI \bluetooth\user\BT-USER-AvdtpReportingCapabilities-PublishedPartner.ini |
|
77 CREATE_OBJECT TAvdtpReportingCapabilities avdtpreportingcap |
|
78 COMMAND avdtpreportingcap new |
|
79 COMMAND avdtpreportingcap Category BT-USER-AvdtpReportingCapabilities-PublishedPartner-0002-0001-Category_Command2 |
|
80 COMMAND avdtpreportingcap ~ |
|
81 END_TEST_BLOCK |
|
82 |
|
83 END_TESTCASE BT-USER-AvdtpReportingCapabilities-PublishedPartner-0002 |
|
84 |
|
85 |
|
86 DELAY 2000 |
|
87 |