|
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 ConvertToSymbianError 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 Jason Lin |
|
27 //! @SYMCreationDate 03/10/2008 |
|
28 /////////////////////////////////////////////////////////////////////////////// |
|
29 |
|
30 RUN_UTILS MkDir ${SYSDRIVE}\bluetooth\user\ |
|
31 |
|
32 LOAD_SUITE T_BTUserAPI |
|
33 DELAY 1000 |
|
34 |
|
35 ///////////////////////////////////////////////////////// |
|
36 //NameSpace SymbianBluetoothAV |
|
37 // |
|
38 //ConvertToSymbianError |
|
39 // |
|
40 ///////////////////////////////////////////////////////// |
|
41 |
|
42 START_TESTCASE BT-USER-ConvertToSymbianError-PublishedPartner-0001 |
|
43 |
|
44 //! @SYMTestCaseID BT-USER-ConvertToSymbianError-PublishedPartner-0001 |
|
45 //! @SYMAPI ConvertToSymbianError::AvdtpError( TAvdtpSignallingErrorCode ) |
|
46 //! @SYMAuthor Jason Lin |
|
47 //! @SYMCreationDate 02/29/2008 |
|
48 //! @SYMTestCaseDesc Converts a TAvdtpSignallingErrorCode value corresponding to an AVDTP Signalling error |
|
49 //! into a system-wide error code. |
|
50 //! The AVDTP Signalling error range: -18172 to -18045 (inclusive) |
|
51 //! @SYMTestActions 1.Converts all TAvdtpSignallingErrorCode (18 error codes) into system-wide error codes |
|
52 //! @SYMTestStatus Implemented |
|
53 //! @SYMTestPriority High |
|
54 //! @SYMTestExpectedResults AVDTP Signalling errors were converted into system-wide error code as expected without panic. |
|
55 //! @SYMTestType CIT |
|
56 |
|
57 START_TEST_BLOCK 10 T_BTUserAPI \bluetooth\user\BT-USER-ConvertToSymbianError-PublishedPartner.ini |
|
58 CREATE_OBJECT ConvertToSymbianError cnvtosymerr |
|
59 COMMAND cnvtosymerr AvdtpError BT-USER-ConvertToSymbianError-PublishedPartner-0001-0001-AvdtpError_Command01 |
|
60 END_TEST_BLOCK |
|
61 END_TESTCASE BT-USER-ConvertToSymbianError-PublishedPartner-0001 |
|
62 |
|
63 |
|
64 |
|
65 START_TESTCASE BT-USER-ConvertToSymbianError-PublishedPartner-0002 |
|
66 //! @SYMTestCaseID BT-USER-ConvertToSymbianError-PublishedPartner-0002 |
|
67 //! @SYMAPI ConvertToSymbianError::GavdpError( TGavdpSignallingErrorCode ) |
|
68 //! @SYMAuthor Jason Lin |
|
69 //! @SYMCreationDate 02/29/2008 |
|
70 //! @SYMTestCaseDesc Converts an enumeration value corresponding to a GAVDP Signalling error |
|
71 //! into a system-wide error code. |
|
72 //! The GAVDP Signalling error range: -18236 to -18173 (inclusive) |
|
73 //! @SYMTestActions 1.Converts all TGavdpSignallingErrorCode (2 error codes) into system-wide error codes |
|
74 //! @SYMTestStatus Implemented |
|
75 //! @SYMTestPriority High |
|
76 //! @SYMTestExpectedResults 1.GAVDP Signalling errors were converted into system-wide error code as expected without panic. |
|
77 //! @SYMTestType CIT |
|
78 |
|
79 START_TEST_BLOCK 10 T_BTUserAPI \bluetooth\user\BT-USER-ConvertToSymbianError-PublishedPartner.ini |
|
80 CREATE_OBJECT ConvertToSymbianError cnvtosymerr |
|
81 COMMAND cnvtosymerr GavdpError BT-USER-ConvertToSymbianError-PublishedPartner-0002-0001-GavdpError_Command01 |
|
82 END_TEST_BLOCK |
|
83 END_TESTCASE BT-USER-ConvertToSymbianError-PublishedPartner-0002 |
|
84 |
|
85 |
|
86 |
|
87 START_TESTCASE BT-USER-ConvertToSymbianError-PublishedPartner-0003 |
|
88 //! @SYMTestCaseID BT-USER-ConvertToSymbianError-PublishedPartner-0003 |
|
89 //! @SYMAPI ConvertToSymbianError::A2dpError( TA2dpSignallingErrorCode ) |
|
90 //! @SYMAuthor Jason Lin |
|
91 //! @SYMCreationDate 02/29/2008 |
|
92 //! @SYMTestCaseDesc Converts an enumeration value corresponding to an A2DP Signalling error |
|
93 //! into a system-wide error code |
|
94 //! The concrete profile signalling error range: -18300 to -18237 (inclusive) |
|
95 //! @SYMTestActions 1.Converts all TA2dpSignallingErrorCode (31 error codes) into system-wide error codes |
|
96 //! @SYMTestStatus Implemented |
|
97 //! @SYMTestPriority High |
|
98 //! @SYMTestExpectedResults A2DP Signalling errors were converted into system-wide error code as expected without panic. |
|
99 //! @SYMTestType CIT |
|
100 |
|
101 START_TEST_BLOCK 10 T_BTUserAPI \bluetooth\user\BT-USER-ConvertToSymbianError-PublishedPartner.ini |
|
102 CREATE_OBJECT ConvertToSymbianError cnvtosymerr |
|
103 COMMAND cnvtosymerr A2dpError BT-USER-ConvertToSymbianError-PublishedPartner-0003-0001-A2dpError_Command01 |
|
104 END_TEST_BLOCK |
|
105 END_TESTCASE BT-USER-ConvertToSymbianError-PublishedPartner-0003 |
|
106 |
|
107 |
|
108 |
|
109 START_TESTCASE BT-USER-ConvertToSymbianError-PublishedPartner-0004 |
|
110 //! @SYMTestCaseID BT-USER-ConvertToSymbianError-PublishedPartner-0004 |
|
111 //! @SYMAPI ConvertToSymbianError::VdpError( TVdpSignallingErrorCode ) |
|
112 //! @SYMAuthor Jason Lin |
|
113 //! @SYMCreationDate 02/29/2008 |
|
114 //! @SYMTestCaseDesc Converts an enumeration value corresponding to a VDP Signalling error |
|
115 //! into a system-wide error code |
|
116 //! The concrete profile signalling error range: -18300 to -18237 (inclusive) |
|
117 //! @SYMTestActions 1.Converts all TVdpSignallingErrorCode (6 error codes) into system-wide error codes |
|
118 //! @SYMTestStatus Implemented |
|
119 //! @SYMTestPriority High |
|
120 //! @SYMTestExpectedResults VDP Signalling errors were converted into system-wide error code as expected without panic. |
|
121 //! @SYMTestType CIT |
|
122 |
|
123 START_TEST_BLOCK 10 T_BTUserAPI \bluetooth\user\BT-USER-ConvertToSymbianError-PublishedPartner.ini |
|
124 CREATE_OBJECT ConvertToSymbianError cnvtosymerr |
|
125 COMMAND cnvtosymerr VdpError BT-USER-ConvertToSymbianError-PublishedPartner-0004-0001-VdpError_Command01 |
|
126 END_TEST_BLOCK |
|
127 END_TESTCASE BT-USER-ConvertToSymbianError-PublishedPartner-0004 |
|
128 |
|
129 DELAY 2000 |