sl@0
|
1 |
//
|
sl@0
|
2 |
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
// All rights reserved.
|
sl@0
|
4 |
// This component and the accompanying materials are made available
|
sl@0
|
5 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
6 |
// which accompanies this distribution, and is available
|
sl@0
|
7 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
//
|
sl@0
|
9 |
// Initial Contributors:
|
sl@0
|
10 |
// Nokia Corporation - initial contribution.
|
sl@0
|
11 |
//
|
sl@0
|
12 |
// Contributors:
|
sl@0
|
13 |
//
|
sl@0
|
14 |
// Description:
|
sl@0
|
15 |
//
|
sl@0
|
16 |
//! @file
|
sl@0
|
17 |
//! @SYMTestSuiteName base-bsp-serial-driver-PORT<port>
|
sl@0
|
18 |
//! @SYMScriptTestEnvironment This test script requires a base port ROM
|
sl@0
|
19 |
|
sl@0
|
20 |
/////////////////////////////////////////////////////////////////////
|
sl@0
|
21 |
// base-bsp-serial-driver-PORT<port>.script
|
sl@0
|
22 |
//
|
sl@0
|
23 |
//
|
sl@0
|
24 |
// Tests elements of the RBusDevComm
|
sl@0
|
25 |
// as a means of confidence that the HAI APIs work as expected.
|
sl@0
|
26 |
//
|
sl@0
|
27 |
// Tests are validated through environment settings found in the file t_serial.ini
|
sl@0
|
28 |
//
|
sl@0
|
29 |
// The purpose is to provide a regression test suite of publishedPartner APIs for RBusDevComm.
|
sl@0
|
30 |
// Negative testing is performed to confirm that correct errors are returned when incorrect parameters are given.
|
sl@0
|
31 |
// The tests are fully automated.
|
sl@0
|
32 |
/////////////////////////////////////////////////////////////////////
|
sl@0
|
33 |
|
sl@0
|
34 |
LOAD_SUITE t_serial
|
sl@0
|
35 |
|
sl@0
|
36 |
|
sl@0
|
37 |
START_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0001
|
sl@0
|
38 |
//! @SYMTestCaseID BASE-BSP-SERIAL-DRIVER-PORT<port>-0001
|
sl@0
|
39 |
//! @SYMAPI RBusDevComm::RBusDevComm()
|
sl@0
|
40 |
//! RBusDevComm::~RBusDevComm()
|
sl@0
|
41 |
//! @SYMAuthor Louis Henry Nayegon
|
sl@0
|
42 |
//! @SYMCreationDate 27/03/2008
|
sl@0
|
43 |
//! @SYMTestCaseDesc Create a RBusDevComm object
|
sl@0
|
44 |
//! @SYMTestActions 1. Create RBusDevComm object
|
sl@0
|
45 |
//! 2. Destroy the object
|
sl@0
|
46 |
//! @SYMTestStatus Implemented
|
sl@0
|
47 |
//! @SYMTestPriority High
|
sl@0
|
48 |
//! @SYMTestExpectedResults RBusDevComm created
|
sl@0
|
49 |
//! @SYMTestType CIT
|
sl@0
|
50 |
START_TEST_BLOCK 10 t_serial \base\serial\base-bsp-serial-driver-PORT<port>.ini
|
sl@0
|
51 |
CREATE_OBJECT RBusDevComm busDevComm
|
sl@0
|
52 |
COMMAND busDevComm new
|
sl@0
|
53 |
COMMAND busDevComm ~
|
sl@0
|
54 |
END_TEST_BLOCK
|
sl@0
|
55 |
END_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0001
|
sl@0
|
56 |
|
sl@0
|
57 |
|
sl@0
|
58 |
START_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0002
|
sl@0
|
59 |
//! @SYMTestCaseID BASE-BSP-SERIAL-DRIVER-PORT<port>-0002
|
sl@0
|
60 |
//! @SYMAPI RBusDevComm::VersionRequired()
|
sl@0
|
61 |
//! @SYMAuthor Louis Henry Nayegon
|
sl@0
|
62 |
//! @SYMCreationDate 27/03/2008
|
sl@0
|
63 |
//! @SYMTestCaseDesc Get version of software
|
sl@0
|
64 |
//! @SYMTestActions 1. Create RBusDevComm object
|
sl@0
|
65 |
//! 2. Get version info
|
sl@0
|
66 |
//! 3. Destroy the object
|
sl@0
|
67 |
//! @SYMTestStatus Implemented
|
sl@0
|
68 |
//! @SYMTestPriority High
|
sl@0
|
69 |
//! @SYMTestExpectedResults Expected version information should be returned
|
sl@0
|
70 |
//! @SYMTestType CIT
|
sl@0
|
71 |
START_TEST_BLOCK 10 t_serial \base\serial\base-bsp-serial-driver-PORT<port>.ini
|
sl@0
|
72 |
CREATE_OBJECT RBusDevComm busDevComm
|
sl@0
|
73 |
COMMAND busDevComm new
|
sl@0
|
74 |
|
sl@0
|
75 |
COMMAND busDevComm VersionRequired BASE-BSP-SERIAL-DRIVER-PORT<port>-0002
|
sl@0
|
76 |
|
sl@0
|
77 |
COMMAND busDevComm ~
|
sl@0
|
78 |
END_TEST_BLOCK
|
sl@0
|
79 |
END_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0002
|
sl@0
|
80 |
|
sl@0
|
81 |
|
sl@0
|
82 |
START_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0003
|
sl@0
|
83 |
//! @SYMTestCaseID BASE-BSP-SERIAL-DRIVER-PORT<port>-0003
|
sl@0
|
84 |
//! @SYMAPI RBusDevComm::Open()
|
sl@0
|
85 |
//! RBusDevComm::Close()
|
sl@0
|
86 |
//! @SYMAuthor Louis Henry Nayegon
|
sl@0
|
87 |
//! @SYMCreationDate 27/03/2008
|
sl@0
|
88 |
//! @SYMTestCaseDesc Open serial port com<port>
|
sl@0
|
89 |
//! @SYMTestActions 1. Create RBusDevComm object
|
sl@0
|
90 |
//! 2. Open serial port com<port>
|
sl@0
|
91 |
//! 3. Close the port
|
sl@0
|
92 |
//! 4. Destroy the object
|
sl@0
|
93 |
//! @SYMTestStatus Implemented
|
sl@0
|
94 |
//! @SYMTestPriority High
|
sl@0
|
95 |
//! @SYMTestExpectedResults RBusDevComm opened and closed successfully
|
sl@0
|
96 |
//! @SYMTestType CIT
|
sl@0
|
97 |
START_TEST_BLOCK 10 t_serial \base\serial\base-bsp-serial-driver-PORT<port>.ini
|
sl@0
|
98 |
CREATE_OBJECT RBusDevComm busDevComm
|
sl@0
|
99 |
COMMAND busDevComm new
|
sl@0
|
100 |
|
sl@0
|
101 |
COMMAND busDevComm Open BASE-BSP-SERIAL-DRIVER-PORT<port>-Open
|
sl@0
|
102 |
COMMAND busDevComm Close
|
sl@0
|
103 |
|
sl@0
|
104 |
COMMAND busDevComm ~
|
sl@0
|
105 |
END_TEST_BLOCK
|
sl@0
|
106 |
END_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0003
|
sl@0
|
107 |
|
sl@0
|
108 |
|
sl@0
|
109 |
START_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0004
|
sl@0
|
110 |
//! @SYMTestCaseID BASE-BSP-SERIAL-DRIVER-PORT<port>-0004
|
sl@0
|
111 |
//! @SYMAPI RBusDevComm::QueryReceiveBuffer()
|
sl@0
|
112 |
//! @SYMAuthor Louis Henry Nayegon
|
sl@0
|
113 |
//! @SYMCreationDate 27/03/2008
|
sl@0
|
114 |
//! @SYMTestCaseDesc Query the number of bytes waiting in the input buffer.
|
sl@0
|
115 |
//! @SYMTestActions 1. Create RBusDevComm object
|
sl@0
|
116 |
//! 2. Open serial port com<port>
|
sl@0
|
117 |
//! 3. Query and validate the receive buffer contents as being empty
|
sl@0
|
118 |
//! 4. Destroy the objects
|
sl@0
|
119 |
//! @SYMTestStatus Implemented
|
sl@0
|
120 |
//! @SYMTestPriority High
|
sl@0
|
121 |
//! @SYMTestExpectedResults QueryReceiveBuffer should complete with no error and be empty
|
sl@0
|
122 |
//! @SYMTestType CIT
|
sl@0
|
123 |
START_TEST_BLOCK 10 t_serial \base\serial\base-bsp-serial-driver-PORT<port>.ini
|
sl@0
|
124 |
CREATE_OBJECT RBusDevComm busDevComm
|
sl@0
|
125 |
COMMAND busDevComm new
|
sl@0
|
126 |
COMMAND busDevComm Open BASE-BSP-SERIAL-DRIVER-PORT<port>-Open
|
sl@0
|
127 |
|
sl@0
|
128 |
COMMAND busDevComm QueryReceiveBuffer BASE-BSP-SERIAL-DRIVER-PORT<port>-0004-QueryReceiveBuffer_003
|
sl@0
|
129 |
|
sl@0
|
130 |
COMMAND busDevComm Close
|
sl@0
|
131 |
COMMAND busDevComm ~
|
sl@0
|
132 |
END_TEST_BLOCK
|
sl@0
|
133 |
END_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0004
|
sl@0
|
134 |
|
sl@0
|
135 |
|
sl@0
|
136 |
START_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0005
|
sl@0
|
137 |
//! @SYMTestCaseID BASE-BSP-SERIAL-DRIVER-PORT<port>-0005
|
sl@0
|
138 |
//! @SYMAPI RBusDevComm::NotifyReceiveDataAvailable(TRequestStatus {ref})
|
sl@0
|
139 |
//! RBusDevComm::NotifyReceiveDataAvailableCancel()
|
sl@0
|
140 |
//! @SYMAuthor Louis Henry Nayegon
|
sl@0
|
141 |
//! @SYMCreationDate 19/06/2008
|
sl@0
|
142 |
//! @SYMTestCaseDesc Cancel notification of data available
|
sl@0
|
143 |
//! @SYMTestActions 1. Create RBusDevComm object
|
sl@0
|
144 |
//! 2. Open serial port com<port>
|
sl@0
|
145 |
//! 3. Request to be notified of data available
|
sl@0
|
146 |
//! 5. Cancel the request
|
sl@0
|
147 |
//! 4. Destroy the objects
|
sl@0
|
148 |
//! @SYMTestStatus Implemented
|
sl@0
|
149 |
//! @SYMTestPriority High
|
sl@0
|
150 |
//! @SYMTestExpectedResults NotifyReceiveDataAvailable should complete with the error KErrCancel (-3)
|
sl@0
|
151 |
//! @SYMTestType CIT
|
sl@0
|
152 |
START_TEST_BLOCK 10 t_serial \base\serial\base-bsp-serial-driver-PORT<port>.ini
|
sl@0
|
153 |
CREATE_OBJECT RBusDevComm busDevComm
|
sl@0
|
154 |
COMMAND busDevComm new
|
sl@0
|
155 |
COMMAND busDevComm Open BASE-BSP-SERIAL-DRIVER-PORT<port>-Open
|
sl@0
|
156 |
|
sl@0
|
157 |
COMMAND !AsyncError=-3 busDevComm NotifyReceiveDataAvailable
|
sl@0
|
158 |
COMMAND busDevComm NotifyReceiveDataAvailableCancel
|
sl@0
|
159 |
OUTSTANDING
|
sl@0
|
160 |
|
sl@0
|
161 |
COMMAND busDevComm Close
|
sl@0
|
162 |
COMMAND busDevComm ~
|
sl@0
|
163 |
END_TEST_BLOCK
|
sl@0
|
164 |
END_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0005
|
sl@0
|
165 |
|
sl@0
|
166 |
|
sl@0
|
167 |
START_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0006
|
sl@0
|
168 |
//! @SYMTestCaseID BASE-BSP-SERIAL-DRIVER-PORT<port>-0006
|
sl@0
|
169 |
//! @SYMAPI RBusDevComm::Config(TDes8 {ref})
|
sl@0
|
170 |
//! TCommConfigV01::TCommConfigV01()
|
sl@0
|
171 |
//! TCommConfigV01::~TCommConfigV01()
|
sl@0
|
172 |
//! @SYMAuthor Louis Henry Nayegon
|
sl@0
|
173 |
//! @SYMCreationDate 27/03/2008
|
sl@0
|
174 |
//! @SYMTestCaseDesc Get com<port> configuration and verify default values
|
sl@0
|
175 |
//! @SYMTestActions 1. Create RBusDevComm and TCommConfigV01 object
|
sl@0
|
176 |
//! 2. Open serial port com<port>
|
sl@0
|
177 |
//! 3. Get config values
|
sl@0
|
178 |
//! 4. Verify values
|
sl@0
|
179 |
//! 5. Close the port
|
sl@0
|
180 |
//! 6. Destroy the objects
|
sl@0
|
181 |
//! @SYMTestStatus Implemented
|
sl@0
|
182 |
//! @SYMTestPriority High
|
sl@0
|
183 |
//! @SYMTestExpectedResults TCommConfigV01 values should have the default startup values
|
sl@0
|
184 |
//! @SYMTestType CIT
|
sl@0
|
185 |
START_TEST_BLOCK 10 t_serial \base\serial\base-bsp-serial-driver-PORT<port>.ini
|
sl@0
|
186 |
CREATE_OBJECT RBusDevComm busDevComm
|
sl@0
|
187 |
CREATE_OBJECT TCommConfigV01 config
|
sl@0
|
188 |
COMMAND busDevComm new
|
sl@0
|
189 |
COMMAND config new
|
sl@0
|
190 |
COMMAND busDevComm Open BASE-BSP-SERIAL-DRIVER-PORT<port>-Open
|
sl@0
|
191 |
COMMAND busDevComm Config BASE-BSP-SERIAL-DRIVER-PORT<port>-0006-Config
|
sl@0
|
192 |
|
sl@0
|
193 |
COMMAND config iDataBits BASE-BSP-SERIAL-DRIVER-PORT<port>-0006-iDataBits
|
sl@0
|
194 |
COMMAND config iFifo BASE-BSP-SERIAL-DRIVER-PORT<port>-0006-iFifo
|
sl@0
|
195 |
COMMAND config iHandshake BASE-BSP-SERIAL-DRIVER-PORT<port>-0006-iHandshake
|
sl@0
|
196 |
COMMAND config iParity BASE-BSP-SERIAL-DRIVER-PORT<port>-0006-iParity
|
sl@0
|
197 |
COMMAND config iParityError BASE-BSP-SERIAL-DRIVER-PORT<port>-0006-iParityError
|
sl@0
|
198 |
COMMAND config iParityErrorChar BASE-BSP-SERIAL-DRIVER-PORT<port>-0006-iParityErrorChar
|
sl@0
|
199 |
COMMAND config iRate BASE-BSP-SERIAL-DRIVER-PORT<port>-0006-iRate
|
sl@0
|
200 |
COMMAND config iSIREnable BASE-BSP-SERIAL-DRIVER-PORT<port>-0006-iSIREnable
|
sl@0
|
201 |
COMMAND config iSIRSettings BASE-BSP-SERIAL-DRIVER-PORT<port>-0006-iSIRSettings
|
sl@0
|
202 |
COMMAND config iSpecialRate BASE-BSP-SERIAL-DRIVER-PORT<port>-0006-iSpecialRate
|
sl@0
|
203 |
COMMAND config iStopBits BASE-BSP-SERIAL-DRIVER-PORT<port>-0006-iStopBits
|
sl@0
|
204 |
COMMAND config iTerminator BASE-BSP-SERIAL-DRIVER-PORT<port>-0006-iTerminator
|
sl@0
|
205 |
COMMAND config iTerminatorCount BASE-BSP-SERIAL-DRIVER-PORT<port>-0006-iTerminatorCount
|
sl@0
|
206 |
COMMAND config iXoffChar BASE-BSP-SERIAL-DRIVER-PORT<port>-0006-iXoffChar
|
sl@0
|
207 |
COMMAND config iXonChar BASE-BSP-SERIAL-DRIVER-PORT<port>-0006-iXonChar
|
sl@0
|
208 |
|
sl@0
|
209 |
COMMAND busDevComm Close
|
sl@0
|
210 |
COMMAND config ~
|
sl@0
|
211 |
COMMAND busDevComm ~
|
sl@0
|
212 |
END_TEST_BLOCK
|
sl@0
|
213 |
END_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0006
|
sl@0
|
214 |
|
sl@0
|
215 |
|
sl@0
|
216 |
START_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0007
|
sl@0
|
217 |
//! @SYMTestCaseID BASE-BSP-SERIAL-DRIVER-PORT<port>-0007
|
sl@0
|
218 |
//! @SYMAPI RBusDevComm::Caps(TDes8 {ref})
|
sl@0
|
219 |
//! TCommCapsV01::TCommCapsV01()
|
sl@0
|
220 |
//! TCommCapsV01::~TCommCapsV01()
|
sl@0
|
221 |
//! @SYMAuthor Louis Henry Nayegon
|
sl@0
|
222 |
//! @SYMCreationDate 11/07/2008
|
sl@0
|
223 |
//! @SYMTestCaseDesc Get com<port> V1 capabilities and verify default values
|
sl@0
|
224 |
//! @SYMTestActions 1. Create RBusDevComm and TCommCapsV03 object
|
sl@0
|
225 |
//! 2. Open serial port com<port>
|
sl@0
|
226 |
//! 3. Get V1 capability values
|
sl@0
|
227 |
//! 4. Verify values
|
sl@0
|
228 |
//! 5. Close the port
|
sl@0
|
229 |
//! 6. Destroy the objects
|
sl@0
|
230 |
//! @SYMTestStatus Implemented
|
sl@0
|
231 |
//! @SYMTestPriority High
|
sl@0
|
232 |
//! @SYMTestExpectedResults TCommCapsV03 values should have the default startup values
|
sl@0
|
233 |
//! @SYMTestType CIT
|
sl@0
|
234 |
START_TEST_BLOCK 10 t_serial \base\serial\base-bsp-serial-driver-PORT<port>.ini
|
sl@0
|
235 |
CREATE_OBJECT RBusDevComm busDevComm
|
sl@0
|
236 |
CREATE_OBJECT TCommCapsV01 caps
|
sl@0
|
237 |
COMMAND busDevComm new
|
sl@0
|
238 |
COMMAND caps new
|
sl@0
|
239 |
COMMAND busDevComm Open BASE-BSP-SERIAL-DRIVER-PORT<port>-Open
|
sl@0
|
240 |
COMMAND busDevComm Caps BASE-BSP-SERIAL-DRIVER-PORT<port>-0007-Caps
|
sl@0
|
241 |
|
sl@0
|
242 |
COMMAND caps iDataBits BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iDataBits
|
sl@0
|
243 |
COMMAND caps iFifo BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iFifo
|
sl@0
|
244 |
COMMAND caps iHandshake BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iHandshake
|
sl@0
|
245 |
COMMAND caps iParity BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iParity
|
sl@0
|
246 |
COMMAND caps iRate BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iRate
|
sl@0
|
247 |
COMMAND caps iSIR BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iSIR
|
sl@0
|
248 |
COMMAND caps iSignals BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iSignals
|
sl@0
|
249 |
COMMAND caps iStopBits BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iStopBits
|
sl@0
|
250 |
|
sl@0
|
251 |
COMMAND busDevComm Close
|
sl@0
|
252 |
COMMAND caps ~
|
sl@0
|
253 |
COMMAND busDevComm ~
|
sl@0
|
254 |
END_TEST_BLOCK
|
sl@0
|
255 |
END_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0007
|
sl@0
|
256 |
|
sl@0
|
257 |
|
sl@0
|
258 |
START_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0008
|
sl@0
|
259 |
//! @SYMTestCaseID BASE-BSP-SERIAL-DRIVER-PORT<port>-0008
|
sl@0
|
260 |
//! @SYMAPI RBusDevComm::Caps(TDes8 {ref})
|
sl@0
|
261 |
//! TCommCapsV02::TCommCapsV02()
|
sl@0
|
262 |
//! TCommCapsV02::~TCommCapsV02()
|
sl@0
|
263 |
//! @SYMAuthor Louis Henry Nayegon
|
sl@0
|
264 |
//! @SYMCreationDate 11/07/2008
|
sl@0
|
265 |
//! @SYMTestCaseDesc Get com<port> V2 capabilities and verify default values
|
sl@0
|
266 |
//! @SYMTestActions 1. Create RBusDevComm and TCommCapsV03 object
|
sl@0
|
267 |
//! 2. Open serial port com<port>
|
sl@0
|
268 |
//! 3. Get V2 capability values
|
sl@0
|
269 |
//! 4. Verify values
|
sl@0
|
270 |
//! 5. Close the port
|
sl@0
|
271 |
//! 6. Destroy the objects
|
sl@0
|
272 |
//! @SYMTestStatus Implemented
|
sl@0
|
273 |
//! @SYMTestPriority High
|
sl@0
|
274 |
//! @SYMTestExpectedResults TCommCapsV03 values should have the default startup values
|
sl@0
|
275 |
//! @SYMTestType CIT
|
sl@0
|
276 |
START_TEST_BLOCK 10 t_serial \base\serial\base-bsp-serial-driver-PORT<port>.ini
|
sl@0
|
277 |
CREATE_OBJECT RBusDevComm busDevComm
|
sl@0
|
278 |
CREATE_OBJECT TCommCapsV02 caps
|
sl@0
|
279 |
COMMAND busDevComm new
|
sl@0
|
280 |
COMMAND caps new
|
sl@0
|
281 |
COMMAND busDevComm Open BASE-BSP-SERIAL-DRIVER-PORT<port>-Open
|
sl@0
|
282 |
COMMAND busDevComm Caps BASE-BSP-SERIAL-DRIVER-PORT<port>-0008-Caps
|
sl@0
|
283 |
|
sl@0
|
284 |
COMMAND caps iDataBits BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iDataBits
|
sl@0
|
285 |
COMMAND caps iFifo BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iFifo
|
sl@0
|
286 |
COMMAND caps iHandshake BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iHandshake
|
sl@0
|
287 |
COMMAND caps iParity BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iParity
|
sl@0
|
288 |
COMMAND caps iRate BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iRate
|
sl@0
|
289 |
COMMAND caps iSIR BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iSIR
|
sl@0
|
290 |
COMMAND caps iSignals BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iSignals
|
sl@0
|
291 |
COMMAND caps iStopBits BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iStopBits
|
sl@0
|
292 |
COMMAND caps iFlowControlCaps BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iFlowControlCaps
|
sl@0
|
293 |
COMMAND caps iNotificationCaps BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iNotificationCaps
|
sl@0
|
294 |
COMMAND caps iRoleCaps BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iRoleCaps
|
sl@0
|
295 |
|
sl@0
|
296 |
COMMAND busDevComm Close
|
sl@0
|
297 |
COMMAND caps ~
|
sl@0
|
298 |
COMMAND busDevComm ~
|
sl@0
|
299 |
END_TEST_BLOCK
|
sl@0
|
300 |
END_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0008
|
sl@0
|
301 |
|
sl@0
|
302 |
|
sl@0
|
303 |
START_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0009
|
sl@0
|
304 |
//! @SYMTestCaseID BASE-BSP-SERIAL-DRIVER-PORT<port>-0009
|
sl@0
|
305 |
//! @SYMAPI RBusDevComm::Caps(TDes8 {ref})
|
sl@0
|
306 |
//! TCommCapsV03::TCommCapsV03()
|
sl@0
|
307 |
//! TCommCapsV03::~TCommCapsV03()
|
sl@0
|
308 |
//! @SYMAuthor Louis Henry Nayegon
|
sl@0
|
309 |
//! @SYMCreationDate 11/07/2008
|
sl@0
|
310 |
//! @SYMTestCaseDesc Get com<port> V3 capabilities and verify default values
|
sl@0
|
311 |
//! @SYMTestActions 1. Create RBusDevComm and TCommCapsV03 object
|
sl@0
|
312 |
//! 2. Open serial port com<port>
|
sl@0
|
313 |
//! 3. Get V3 capability values
|
sl@0
|
314 |
//! 4. Verify values
|
sl@0
|
315 |
//! 5. Close the port
|
sl@0
|
316 |
//! 6. Destroy the objects
|
sl@0
|
317 |
//! @SYMTestStatus Implemented
|
sl@0
|
318 |
//! @SYMTestPriority High
|
sl@0
|
319 |
//! @SYMTestExpectedResults TCommCapsV03 values should have the default startup values
|
sl@0
|
320 |
//! @SYMTestType CIT
|
sl@0
|
321 |
START_TEST_BLOCK 10 t_serial \base\serial\base-bsp-serial-driver-PORT<port>.ini
|
sl@0
|
322 |
CREATE_OBJECT RBusDevComm busDevComm
|
sl@0
|
323 |
CREATE_OBJECT TCommCapsV03 caps
|
sl@0
|
324 |
COMMAND busDevComm new
|
sl@0
|
325 |
COMMAND caps new
|
sl@0
|
326 |
COMMAND busDevComm Open BASE-BSP-SERIAL-DRIVER-PORT<port>-Open
|
sl@0
|
327 |
COMMAND busDevComm Caps BASE-BSP-SERIAL-DRIVER-PORT<port>-0009-Caps
|
sl@0
|
328 |
|
sl@0
|
329 |
COMMAND caps iDataBits BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iDataBits
|
sl@0
|
330 |
COMMAND caps iFifo BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iFifo
|
sl@0
|
331 |
COMMAND caps iHandshake BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iHandshake
|
sl@0
|
332 |
COMMAND caps iParity BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iParity
|
sl@0
|
333 |
COMMAND caps iRate BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iRate
|
sl@0
|
334 |
COMMAND caps iSIR BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iSIR
|
sl@0
|
335 |
COMMAND caps iSignals BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iSignals
|
sl@0
|
336 |
COMMAND caps iStopBits BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iStopBits
|
sl@0
|
337 |
COMMAND caps iFlowControlCaps BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iFlowControlCaps
|
sl@0
|
338 |
COMMAND caps iNotificationCaps BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iNotificationCaps
|
sl@0
|
339 |
COMMAND caps iRoleCaps BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iRoleCaps
|
sl@0
|
340 |
COMMAND caps iBreakSupported BASE-BSP-SERIAL-DRIVER-PORT<port>-Caps-iBreakSupported
|
sl@0
|
341 |
|
sl@0
|
342 |
COMMAND busDevComm Close
|
sl@0
|
343 |
COMMAND caps ~
|
sl@0
|
344 |
COMMAND busDevComm ~
|
sl@0
|
345 |
END_TEST_BLOCK
|
sl@0
|
346 |
END_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0009
|
sl@0
|
347 |
|
sl@0
|
348 |
|
sl@0
|
349 |
START_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0010
|
sl@0
|
350 |
//! @SYMTestCaseID BASE-BSP-SERIAL-DRIVER-PORT<port>-0010
|
sl@0
|
351 |
//! @SYMAPI RBusDevComm::ResetBuffers()
|
sl@0
|
352 |
//! RBusDevComm::QueryReceiveBuffer()
|
sl@0
|
353 |
//! @SYMAuthor Louis Henry Nayegon
|
sl@0
|
354 |
//! @SYMCreationDate 27/03/2008
|
sl@0
|
355 |
//! @SYMTestCaseDesc Reset the buffers on com<port>
|
sl@0
|
356 |
//! @SYMTestActions 1. Create RBusDevComm object
|
sl@0
|
357 |
//! 2. Open serial port com<port>
|
sl@0
|
358 |
//! 3. ResetBuffers and verofy that the buffer is empty
|
sl@0
|
359 |
//! 4. Close the port
|
sl@0
|
360 |
//! 5. Destroy the objects
|
sl@0
|
361 |
//! @SYMTestStatus Implemented
|
sl@0
|
362 |
//! @SYMTestPriority High
|
sl@0
|
363 |
//! @SYMTestExpectedResults Buffers should be reset
|
sl@0
|
364 |
//! @SYMTestType CIT
|
sl@0
|
365 |
START_TEST_BLOCK 10 t_serial \base\serial\base-bsp-serial-driver-PORT<port>.ini
|
sl@0
|
366 |
CREATE_OBJECT RBusDevComm busDevComm
|
sl@0
|
367 |
COMMAND busDevComm new
|
sl@0
|
368 |
COMMAND busDevComm Open BASE-BSP-SERIAL-DRIVER-PORT<port>-Open
|
sl@0
|
369 |
|
sl@0
|
370 |
COMMAND busDevComm ResetBuffers
|
sl@0
|
371 |
COMMAND busDevComm QueryReceiveBuffer BASE-BSP-SERIAL-DRIVER-PORT<port>-0010-QueryReceiveBuffer_004
|
sl@0
|
372 |
|
sl@0
|
373 |
COMMAND busDevComm Close
|
sl@0
|
374 |
COMMAND busDevComm ~
|
sl@0
|
375 |
END_TEST_BLOCK
|
sl@0
|
376 |
END_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0010
|
sl@0
|
377 |
|
sl@0
|
378 |
|
sl@0
|
379 |
START_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0011
|
sl@0
|
380 |
//! @SYMTestCaseID BASE-BSP-SERIAL-DRIVER-PORT<port>-0011
|
sl@0
|
381 |
//! @SYMAPI RBusDevComm::MinTurnaroundTime()
|
sl@0
|
382 |
//! @SYMAuthor Louis Henry Nayegon
|
sl@0
|
383 |
//! @SYMCreationDate 27/03/2008
|
sl@0
|
384 |
//! @SYMTestCaseDesc Get minimum turnaround time for com<port>
|
sl@0
|
385 |
//! @SYMTestActions 1. Create RBusDevComm object
|
sl@0
|
386 |
//! 2. Open serial port com<port>
|
sl@0
|
387 |
//! 3. MinTurnaroundTime
|
sl@0
|
388 |
//! 4. Close the port
|
sl@0
|
389 |
//! 5. Destroy the objects
|
sl@0
|
390 |
//! @SYMTestStatus Implemented
|
sl@0
|
391 |
//! @SYMTestPriority High
|
sl@0
|
392 |
//! @SYMTestExpectedResults MinTurnaroundTime should have its startup value
|
sl@0
|
393 |
//! @SYMTestType CIT
|
sl@0
|
394 |
START_TEST_BLOCK 10 t_serial \base\serial\base-bsp-serial-driver-PORT<port>.ini
|
sl@0
|
395 |
CREATE_OBJECT RBusDevComm busDevComm
|
sl@0
|
396 |
COMMAND busDevComm new
|
sl@0
|
397 |
COMMAND busDevComm Open BASE-BSP-SERIAL-DRIVER-PORT<port>-Open
|
sl@0
|
398 |
|
sl@0
|
399 |
COMMAND busDevComm MinTurnaroundTime BASE-BSP-SERIAL-DRIVER-PORT<port>-0011-MinTurnaroundTime
|
sl@0
|
400 |
|
sl@0
|
401 |
COMMAND busDevComm Close
|
sl@0
|
402 |
COMMAND busDevComm ~
|
sl@0
|
403 |
END_TEST_BLOCK
|
sl@0
|
404 |
END_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0011
|
sl@0
|
405 |
|
sl@0
|
406 |
|
sl@0
|
407 |
START_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0012
|
sl@0
|
408 |
//! @SYMTestCaseID BASE-BSP-SERIAL-DRIVER-PORT<port>-0012
|
sl@0
|
409 |
//! @SYMAPI RBusDevComm::SetMinTurnaroundTime(TUint)
|
sl@0
|
410 |
//! RBusDevComm::MinTurnaroundTime()
|
sl@0
|
411 |
//! @SYMAuthor Louis Henry Nayegon
|
sl@0
|
412 |
//! @SYMCreationDate 27/03/2008
|
sl@0
|
413 |
//! @SYMTestCaseDesc Edit the minimum turnaround time for com<port>
|
sl@0
|
414 |
//! @SYMTestActions 1. Create RBusDevComm object
|
sl@0
|
415 |
//! 2. Open serial port com<port> and save startup MinTurnaroundTime
|
sl@0
|
416 |
//! 3. Set MinTurnaroundTime to a new value and get it to verify it
|
sl@0
|
417 |
//! 4. Restore MinTurnaroundTime and Close the port
|
sl@0
|
418 |
//! 5. Destroy the objects
|
sl@0
|
419 |
//! @SYMTestStatus Implemented
|
sl@0
|
420 |
//! @SYMTestPriority High
|
sl@0
|
421 |
//! @SYMTestExpectedResults MinTurnaroundTime should have set value
|
sl@0
|
422 |
//! @SYMTestType CIT
|
sl@0
|
423 |
START_TEST_BLOCK 10 t_serial \base\serial\base-bsp-serial-driver-PORT<port>.ini
|
sl@0
|
424 |
CREATE_OBJECT RBusDevComm busDevComm
|
sl@0
|
425 |
COMMAND busDevComm new
|
sl@0
|
426 |
COMMAND busDevComm Open BASE-BSP-SERIAL-DRIVER-PORT<port>-Open
|
sl@0
|
427 |
COMMAND busDevComm MinTurnaroundTime BASE-BSP-SERIAL-DRIVER-PORT<port>-0012-MinTurnaroundTime_001
|
sl@0
|
428 |
|
sl@0
|
429 |
COMMAND busDevComm SetMinTurnaroundTime BASE-BSP-SERIAL-DRIVER-PORT<port>-0012-SetMinTurnaroundTime_002
|
sl@0
|
430 |
COMMAND busDevComm MinTurnaroundTime BASE-BSP-SERIAL-DRIVER-PORT<port>-0012-MinTurnaroundTime_003
|
sl@0
|
431 |
|
sl@0
|
432 |
COMMAND busDevComm SetMinTurnaroundTime
|
sl@0
|
433 |
COMMAND busDevComm Close
|
sl@0
|
434 |
COMMAND busDevComm ~
|
sl@0
|
435 |
END_TEST_BLOCK
|
sl@0
|
436 |
END_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0012
|
sl@0
|
437 |
|
sl@0
|
438 |
|
sl@0
|
439 |
START_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0013
|
sl@0
|
440 |
//! @SYMTestCaseID BASE-BSP-SERIAL-DRIVER-PORT<port>-0013
|
sl@0
|
441 |
//! @SYMAPI RBusDevComm::ReceiveBufferLength()
|
sl@0
|
442 |
//! @SYMAuthor Louis Henry Nayegon
|
sl@0
|
443 |
//! @SYMCreationDate 27/03/2008
|
sl@0
|
444 |
//! @SYMTestCaseDesc Get receive buffer length for com<port>
|
sl@0
|
445 |
//! @SYMTestActions 1. Create RBusDevComm object
|
sl@0
|
446 |
//! 2. Open serial port com<port>
|
sl@0
|
447 |
//! 3. ReceiveBufferLength
|
sl@0
|
448 |
//! 4. Close the port
|
sl@0
|
449 |
//! 5. Destroy the objects
|
sl@0
|
450 |
//! @SYMTestStatus Implemented
|
sl@0
|
451 |
//! @SYMTestPriority High
|
sl@0
|
452 |
//! @SYMTestExpectedResults ReceiveBufferLength should have its startup value
|
sl@0
|
453 |
//! @SYMTestType CIT
|
sl@0
|
454 |
START_TEST_BLOCK 10 t_serial \base\serial\base-bsp-serial-driver-PORT<port>.ini
|
sl@0
|
455 |
CREATE_OBJECT RBusDevComm busDevComm
|
sl@0
|
456 |
COMMAND busDevComm new
|
sl@0
|
457 |
COMMAND busDevComm Open BASE-BSP-SERIAL-DRIVER-PORT<port>-Open
|
sl@0
|
458 |
|
sl@0
|
459 |
COMMAND busDevComm ReceiveBufferLength BASE-BSP-SERIAL-DRIVER-PORT<port>-0013-ReceiveBufferLength
|
sl@0
|
460 |
|
sl@0
|
461 |
COMMAND busDevComm Close
|
sl@0
|
462 |
COMMAND busDevComm ~
|
sl@0
|
463 |
END_TEST_BLOCK
|
sl@0
|
464 |
END_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0013
|
sl@0
|
465 |
|
sl@0
|
466 |
|
sl@0
|
467 |
START_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0014
|
sl@0
|
468 |
//! @SYMTestCaseID BASE-BSP-SERIAL-DRIVER-PORT<port>-0014
|
sl@0
|
469 |
//! @SYMAPI RBusDevComm::ReceiveBufferLength()
|
sl@0
|
470 |
//! RBusDevComm::SetReceiveBufferLength(TInt)
|
sl@0
|
471 |
//! @SYMAuthor Louis Henry Nayegon
|
sl@0
|
472 |
//! @SYMCreationDate 27/03/2008
|
sl@0
|
473 |
//! @SYMTestCaseDesc Edit the receive buffer length for com<port>
|
sl@0
|
474 |
//! @SYMTestActions 1. Create RBusDevComm object
|
sl@0
|
475 |
//! 2. Open serial port com<port> and save startup ReceiveBufferLength
|
sl@0
|
476 |
//! 3. Set ReceiveBufferLength to a new value and get it to verify it
|
sl@0
|
477 |
//! 4. Restore ReceiveBufferLength and Close the port
|
sl@0
|
478 |
//! 5. Destroy the objects
|
sl@0
|
479 |
//! @SYMTestStatus Implemented
|
sl@0
|
480 |
//! @SYMTestPriority High
|
sl@0
|
481 |
//! @SYMTestExpectedResults ReceiveBufferLength read should be the value set
|
sl@0
|
482 |
//! @SYMTestType CIT
|
sl@0
|
483 |
START_TEST_BLOCK 10 t_serial \base\serial\base-bsp-serial-driver-PORT<port>.ini
|
sl@0
|
484 |
CREATE_OBJECT RBusDevComm busDevComm
|
sl@0
|
485 |
COMMAND busDevComm new
|
sl@0
|
486 |
COMMAND busDevComm Open BASE-BSP-SERIAL-DRIVER-PORT<port>-Open
|
sl@0
|
487 |
COMMAND busDevComm ReceiveBufferLength BASE-BSP-SERIAL-DRIVER-PORT<port>-0014-ReceiveBufferLength_001
|
sl@0
|
488 |
|
sl@0
|
489 |
COMMAND busDevComm SetReceiveBufferLength BASE-BSP-SERIAL-DRIVER-PORT<port>-0014-SetReceiveBufferLength_002
|
sl@0
|
490 |
COMMAND busDevComm ReceiveBufferLength BASE-BSP-SERIAL-DRIVER-PORT<port>-0014-ReceiveBufferLength_003
|
sl@0
|
491 |
|
sl@0
|
492 |
COMMAND busDevComm SetReceiveBufferLength
|
sl@0
|
493 |
COMMAND busDevComm Close
|
sl@0
|
494 |
COMMAND busDevComm ~
|
sl@0
|
495 |
END_TEST_BLOCK
|
sl@0
|
496 |
END_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0014
|
sl@0
|
497 |
|
sl@0
|
498 |
|
sl@0
|
499 |
START_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0015
|
sl@0
|
500 |
//! @SYMTestCaseID BASE-BSP-SERIAL-DRIVER-PORT<port>-0015
|
sl@0
|
501 |
//! @SYMAPI RBusDevComm::Read(TRequestStatus {ref}, TDesC8 {ref}, TInt)
|
sl@0
|
502 |
//! RBusDevComm::ReadCancel()
|
sl@0
|
503 |
//! @SYMAuthor Louis Henry Nayegon
|
sl@0
|
504 |
//! @SYMCreationDate 27/03/2008
|
sl@0
|
505 |
//! @SYMTestCaseDesc Cancel a read operation on com<port> when specifying the length of the buffer
|
sl@0
|
506 |
//! @SYMTestActions 1. Create RBusDevComm object
|
sl@0
|
507 |
//! 2. Open serial port com<port>
|
sl@0
|
508 |
//! 3. Cancel a read operation from com port specifying the length of the data
|
sl@0
|
509 |
//! 4. Destroy the objects
|
sl@0
|
510 |
//! @SYMTestStatus Implemented
|
sl@0
|
511 |
//! @SYMTestPriority High
|
sl@0
|
512 |
//! @SYMTestExpectedResults Read operation should fail with error KErrCancel (-3)
|
sl@0
|
513 |
//! @SYMTestType CIT
|
sl@0
|
514 |
START_TEST_BLOCK 10 t_serial \base\serial\base-bsp-serial-driver-PORT<port>.ini
|
sl@0
|
515 |
CREATE_OBJECT RBusDevComm busDevComm
|
sl@0
|
516 |
COMMAND busDevComm new
|
sl@0
|
517 |
COMMAND busDevComm Open BASE-BSP-SERIAL-DRIVER-PORT<port>-Open
|
sl@0
|
518 |
|
sl@0
|
519 |
COMMAND !AsyncError=-3 busDevComm Read BASE-BSP-SERIAL-DRIVER-PORT<port>-0015-Read_002
|
sl@0
|
520 |
COMMAND busDevComm ReadCancel
|
sl@0
|
521 |
OUTSTANDING
|
sl@0
|
522 |
COMMAND busDevComm ResetBuffers
|
sl@0
|
523 |
|
sl@0
|
524 |
COMMAND busDevComm Close
|
sl@0
|
525 |
COMMAND busDevComm ~
|
sl@0
|
526 |
END_TEST_BLOCK
|
sl@0
|
527 |
END_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0015
|
sl@0
|
528 |
|
sl@0
|
529 |
|
sl@0
|
530 |
START_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0016
|
sl@0
|
531 |
//! @SYMTestCaseID BASE-BSP-SERIAL-DRIVER-PORT<port>-0016
|
sl@0
|
532 |
//! @SYMAPI RBusDevComm::Read(TRequestStatus {ref}, TDesC8 {ref})
|
sl@0
|
533 |
//! RBusDevComm::ReadCancel()
|
sl@0
|
534 |
//! @SYMAuthor Louis Henry Nayegon
|
sl@0
|
535 |
//! @SYMCreationDate 27/03/2008
|
sl@0
|
536 |
//! @SYMTestCaseDesc Cancel a read operation on com<port> when not specifying the length of the buffer
|
sl@0
|
537 |
//! @SYMTestActions 1. Create RBusDevComm object
|
sl@0
|
538 |
//! 2. Open serial port com<port>
|
sl@0
|
539 |
//! 3. Cancel a read operation from com port specifying the length of the data
|
sl@0
|
540 |
//! 4. Destroy the objects
|
sl@0
|
541 |
//! @SYMTestStatus Implemented
|
sl@0
|
542 |
//! @SYMTestPriority High
|
sl@0
|
543 |
//! @SYMTestExpectedResults Read operation should fail with error KErrCancel (-3)
|
sl@0
|
544 |
//! @SYMTestType CIT
|
sl@0
|
545 |
START_TEST_BLOCK 10 t_serial \base\serial\base-bsp-serial-driver-PORT<port>.ini
|
sl@0
|
546 |
CREATE_OBJECT RBusDevComm busDevComm
|
sl@0
|
547 |
COMMAND busDevComm new
|
sl@0
|
548 |
COMMAND busDevComm Open BASE-BSP-SERIAL-DRIVER-PORT<port>-Open
|
sl@0
|
549 |
|
sl@0
|
550 |
COMMAND !AsyncError=-3 busDevComm Read BASE-BSP-SERIAL-DRIVER-PORT<port>-0016-Read_002
|
sl@0
|
551 |
COMMAND busDevComm ReadCancel
|
sl@0
|
552 |
OUTSTANDING
|
sl@0
|
553 |
COMMAND busDevComm ResetBuffers
|
sl@0
|
554 |
|
sl@0
|
555 |
COMMAND busDevComm Close
|
sl@0
|
556 |
COMMAND busDevComm ~
|
sl@0
|
557 |
END_TEST_BLOCK
|
sl@0
|
558 |
END_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0016
|
sl@0
|
559 |
|
sl@0
|
560 |
|
sl@0
|
561 |
START_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0017
|
sl@0
|
562 |
//! @SYMTestCaseID BASE-BSP-SERIAL-DRIVER-PORT<port>-0017
|
sl@0
|
563 |
//! @SYMAPI RBusDevComm::ReadOneOrMore(TRequestStatus {ref}, TDesC8 {ref})
|
sl@0
|
564 |
//! RBusDevComm::ReadCancel()
|
sl@0
|
565 |
//! @SYMAuthor Louis Henry Nayegon
|
sl@0
|
566 |
//! @SYMCreationDate 27/03/2008
|
sl@0
|
567 |
//! @SYMTestCaseDesc Cancel a read one or more operation on com<port>
|
sl@0
|
568 |
//! @SYMTestActions 1. Create RBusDevComm object
|
sl@0
|
569 |
//! 2. Open serial port com<port>
|
sl@0
|
570 |
//! 3. Cancel a read operation from com port
|
sl@0
|
571 |
//! 4. Destroy the objects
|
sl@0
|
572 |
//! @SYMTestStatus Implemented
|
sl@0
|
573 |
//! @SYMTestPriority High
|
sl@0
|
574 |
//! @SYMTestExpectedResults Read operation should fail with error KErrCancel (-3)
|
sl@0
|
575 |
//! @SYMTestType CIT
|
sl@0
|
576 |
START_TEST_BLOCK 10 t_serial \base\serial\base-bsp-serial-driver-PORT<port>.ini
|
sl@0
|
577 |
CREATE_OBJECT RBusDevComm busDevComm
|
sl@0
|
578 |
COMMAND busDevComm new
|
sl@0
|
579 |
COMMAND busDevComm Open BASE-BSP-SERIAL-DRIVER-PORT<port>-Open
|
sl@0
|
580 |
|
sl@0
|
581 |
COMMAND !AsyncError=-3 busDevComm ReadOneOrMore BASE-BSP-SERIAL-DRIVER-PORT<port>-0017-Read_002
|
sl@0
|
582 |
COMMAND busDevComm ReadCancel
|
sl@0
|
583 |
OUTSTANDING
|
sl@0
|
584 |
COMMAND busDevComm ResetBuffers
|
sl@0
|
585 |
|
sl@0
|
586 |
COMMAND busDevComm Close
|
sl@0
|
587 |
COMMAND busDevComm ~
|
sl@0
|
588 |
END_TEST_BLOCK
|
sl@0
|
589 |
END_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0017
|
sl@0
|
590 |
|
sl@0
|
591 |
|
sl@0
|
592 |
START_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0023
|
sl@0
|
593 |
//! @SYMTestCaseID BASE-BSP-SERIAL-DRIVER-PORT<port>-0023
|
sl@0
|
594 |
//! @SYMAPI RBusDevComm::Signals()
|
sl@0
|
595 |
//! RBusDevComm::SetSignals(TUint, TUint)
|
sl@0
|
596 |
//! @SYMAuthor Louis Henry Nayegon
|
sl@0
|
597 |
//! @SYMCreationDate 25/06/2008
|
sl@0
|
598 |
//! @SYMTestCaseDesc Clear all signals on com<port> when echo server is closed
|
sl@0
|
599 |
//! @SYMTestActions 1. Create RBusDevComm object
|
sl@0
|
600 |
//! 2. Open serial port com<port> and close echoserver for 2 seconds
|
sl@0
|
601 |
//! 3. Save the current signals
|
sl@0
|
602 |
//! 4. Clear all signals and verify that they are cleared
|
sl@0
|
603 |
//! 5. Restore signals
|
sl@0
|
604 |
//! 6. Wait for echo server to open and destroy the objects
|
sl@0
|
605 |
//! @SYMTestStatus Implemented
|
sl@0
|
606 |
//! @SYMTestPriority High
|
sl@0
|
607 |
//! @SYMTestExpectedResults Signals should be NULL
|
sl@0
|
608 |
//! @SYMTestType CIT
|
sl@0
|
609 |
START_TEST_BLOCK 10 t_serial \base\serial\base-bsp-serial-driver-PORT<port>.ini
|
sl@0
|
610 |
CREATE_OBJECT RBusDevComm busDevComm
|
sl@0
|
611 |
COMMAND busDevComm new
|
sl@0
|
612 |
COMMAND busDevComm Open BASE-BSP-SERIAL-DRIVER-PORT<port>-Open
|
sl@0
|
613 |
COMMAND busDevComm Write BASE-BSP-SERIAL-DRIVER-ECHO-Write-2SecondDisconnect
|
sl@0
|
614 |
OUTSTANDING
|
sl@0
|
615 |
DELAY 1000000
|
sl@0
|
616 |
|
sl@0
|
617 |
COMMAND busDevComm Signals BASE-BSP-SERIAL-DRIVER-PORT<port>-0023-Signals_002
|
sl@0
|
618 |
|
sl@0
|
619 |
COMMAND busDevComm SetSignals BASE-BSP-SERIAL-DRIVER-PORT<port>-0023-SetSignals_003
|
sl@0
|
620 |
COMMAND busDevComm Signals BASE-BSP-SERIAL-DRIVER-PORT<port>-0023-Signals_004
|
sl@0
|
621 |
|
sl@0
|
622 |
COMMAND busDevComm SetSignals BASE-BSP-SERIAL-DRIVER-PORT<port>-0023-SetSignals_005
|
sl@0
|
623 |
|
sl@0
|
624 |
DELAY 1500000
|
sl@0
|
625 |
|
sl@0
|
626 |
COMMAND busDevComm Close
|
sl@0
|
627 |
COMMAND busDevComm ~
|
sl@0
|
628 |
END_TEST_BLOCK
|
sl@0
|
629 |
END_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0023
|
sl@0
|
630 |
|
sl@0
|
631 |
|
sl@0
|
632 |
START_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0024
|
sl@0
|
633 |
//! @SYMTestCaseID BASE-BSP-SERIAL-DRIVER-PORT<port>-0024
|
sl@0
|
634 |
//! @SYMAPI RBusDevComm::Signals()
|
sl@0
|
635 |
//! RBusDevComm::SetSignals(TUint, TUint)
|
sl@0
|
636 |
//! @SYMAuthor Louis Henry Nayegon
|
sl@0
|
637 |
//! @SYMCreationDate 25/06/2008
|
sl@0
|
638 |
//! @SYMTestCaseDesc Set all signals high on com<port> when echo server is closed
|
sl@0
|
639 |
//! @SYMTestActions 1. Create RBusDevComm object
|
sl@0
|
640 |
//! 2. Open serial port com<port> and close echoserver for 2 seconds
|
sl@0
|
641 |
//! 3. Save the current signals
|
sl@0
|
642 |
//! 4. Set all signals and verify that they are set
|
sl@0
|
643 |
//! 5. Restore signals
|
sl@0
|
644 |
//! 6. Wait for echo server to open and destroy the objects
|
sl@0
|
645 |
//! @SYMTestStatus Implemented
|
sl@0
|
646 |
//! @SYMTestPriority High
|
sl@0
|
647 |
//! @SYMTestExpectedResults Signals should be HIGH
|
sl@0
|
648 |
//! @SYMTestType CIT
|
sl@0
|
649 |
START_TEST_BLOCK 10 t_serial \base\serial\base-bsp-serial-driver-PORT<port>.ini
|
sl@0
|
650 |
CREATE_OBJECT RBusDevComm busDevComm
|
sl@0
|
651 |
COMMAND busDevComm new
|
sl@0
|
652 |
COMMAND busDevComm Open BASE-BSP-SERIAL-DRIVER-PORT<port>-Open
|
sl@0
|
653 |
COMMAND busDevComm Write BASE-BSP-SERIAL-DRIVER-ECHO-Write-2SecondDisconnect
|
sl@0
|
654 |
OUTSTANDING
|
sl@0
|
655 |
DELAY 1000000
|
sl@0
|
656 |
|
sl@0
|
657 |
COMMAND busDevComm Signals BASE-BSP-SERIAL-DRIVER-PORT<port>-0024-Signals_002
|
sl@0
|
658 |
|
sl@0
|
659 |
COMMAND busDevComm SetSignals BASE-BSP-SERIAL-DRIVER-PORT<port>-0024-SetSignals_003
|
sl@0
|
660 |
COMMAND busDevComm Signals BASE-BSP-SERIAL-DRIVER-PORT<port>-0024-Signals_004
|
sl@0
|
661 |
|
sl@0
|
662 |
COMMAND busDevComm SetSignals BASE-BSP-SERIAL-DRIVER-PORT<port>-0024-SetSignals_005
|
sl@0
|
663 |
|
sl@0
|
664 |
DELAY 1500000
|
sl@0
|
665 |
|
sl@0
|
666 |
COMMAND busDevComm Close
|
sl@0
|
667 |
COMMAND busDevComm ~
|
sl@0
|
668 |
END_TEST_BLOCK
|
sl@0
|
669 |
END_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0024
|
sl@0
|
670 |
|
sl@0
|
671 |
|
sl@0
|
672 |
START_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0025
|
sl@0
|
673 |
//! @SYMTestCaseID BASE-BSP-SERIAL-DRIVER-PORT<port>-0025
|
sl@0
|
674 |
//! @SYMAPI RBusDevComm::SetSignals(TUint, TUint)
|
sl@0
|
675 |
//! RBusDevComm::NotifySignalChange(TRequestStatus {ref}, TUint {ref}, TUint)
|
sl@0
|
676 |
//! @SYMCreationDate 25/06/2008
|
sl@0
|
677 |
//! @SYMTestCaseDesc Get notification of a signal change on com<port> when echo server is closed
|
sl@0
|
678 |
//! @SYMTestActions 1. Create RBusDevComm object
|
sl@0
|
679 |
//! 2. Open serial port com<port> and close echoserver for 2 seconds
|
sl@0
|
680 |
//! 3. Save the current signals
|
sl@0
|
681 |
//! 4. Set all signals and wait for notification
|
sl@0
|
682 |
//! 5. Restore signals
|
sl@0
|
683 |
//! 6. Wait for echo server to open and destroy the objects
|
sl@0
|
684 |
//! @SYMTestStatus Implemented
|
sl@0
|
685 |
//! @SYMTestPriority High
|
sl@0
|
686 |
//! @SYMTestExpectedResults Notification should complete with no errors
|
sl@0
|
687 |
//! @SYMTestType CIT
|
sl@0
|
688 |
START_TEST_BLOCK 10 t_serial \base\serial\base-bsp-serial-driver-PORT<port>.ini
|
sl@0
|
689 |
CREATE_OBJECT RBusDevComm busDevComm
|
sl@0
|
690 |
COMMAND busDevComm new
|
sl@0
|
691 |
COMMAND busDevComm Open BASE-BSP-SERIAL-DRIVER-PORT<port>-Open
|
sl@0
|
692 |
COMMAND busDevComm Write BASE-BSP-SERIAL-DRIVER-ECHO-Write-2SecondDisconnect
|
sl@0
|
693 |
OUTSTANDING
|
sl@0
|
694 |
DELAY 1000000
|
sl@0
|
695 |
|
sl@0
|
696 |
COMMAND busDevComm Signals BASE-BSP-SERIAL-DRIVER-PORT<port>-0025-Signals_002
|
sl@0
|
697 |
|
sl@0
|
698 |
COMMAND busDevComm NotifySignalChange
|
sl@0
|
699 |
COMMAND busDevComm SetSignals BASE-BSP-SERIAL-DRIVER-PORT<port>-0025-SetSignals_004
|
sl@0
|
700 |
OUTSTANDING
|
sl@0
|
701 |
|
sl@0
|
702 |
COMMAND busDevComm SetSignals BASE-BSP-SERIAL-DRIVER-PORT<port>-0025-SetSignals_005
|
sl@0
|
703 |
|
sl@0
|
704 |
DELAY 1500000
|
sl@0
|
705 |
|
sl@0
|
706 |
COMMAND busDevComm Close
|
sl@0
|
707 |
COMMAND busDevComm ~
|
sl@0
|
708 |
END_TEST_BLOCK
|
sl@0
|
709 |
END_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0025
|
sl@0
|
710 |
|
sl@0
|
711 |
|
sl@0
|
712 |
START_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0026
|
sl@0
|
713 |
//! @SYMTestCaseID BASE-BSP-SERIAL-DRIVER-PORT<port>-0026
|
sl@0
|
714 |
//! @SYMAPI RBusDevComm::SetSignals(TUint, TUint)
|
sl@0
|
715 |
//! RBusDevComm::NotifySignalChange(TRequestStatus {ref}, TUint {ref}, TUint)
|
sl@0
|
716 |
//! @SYMAuthor Louis Henry Nayegon
|
sl@0
|
717 |
//! @SYMCreationDate 25/06/2008
|
sl@0
|
718 |
//! @SYMTestCaseDesc Get notification of specified signal changes on com<port> when echo server is closed
|
sl@0
|
719 |
//! @SYMTestActions 1. Create RBusDevComm object
|
sl@0
|
720 |
//! 2. Open serial port com<port> and close echoserver for 2 seconds
|
sl@0
|
721 |
//! 3. Save the current signals
|
sl@0
|
722 |
//! 4. Set all signals and wait for notification using a mask
|
sl@0
|
723 |
//! 5. Restore signals
|
sl@0
|
724 |
//! 6. Wait for echo server to open and destroy the objects
|
sl@0
|
725 |
//! @SYMTestStatus Implemented
|
sl@0
|
726 |
//! @SYMTestPriority High
|
sl@0
|
727 |
//! @SYMTestExpectedResults Notification should complete with no errors
|
sl@0
|
728 |
//! @SYMTestType CIT
|
sl@0
|
729 |
START_TEST_BLOCK 10 t_serial \base\serial\base-bsp-serial-driver-PORT<port>.ini
|
sl@0
|
730 |
CREATE_OBJECT RBusDevComm busDevComm
|
sl@0
|
731 |
COMMAND busDevComm new
|
sl@0
|
732 |
COMMAND busDevComm Open BASE-BSP-SERIAL-DRIVER-PORT<port>-Open
|
sl@0
|
733 |
COMMAND busDevComm Write BASE-BSP-SERIAL-DRIVER-ECHO-Write-2SecondDisconnect
|
sl@0
|
734 |
OUTSTANDING
|
sl@0
|
735 |
DELAY 1000000
|
sl@0
|
736 |
|
sl@0
|
737 |
COMMAND busDevComm Signals BASE-BSP-SERIAL-DRIVER-PORT<port>-0026-Signals_002
|
sl@0
|
738 |
COMMAND busDevComm NotifySignalChange BASE-BSP-SERIAL-DRIVER-PORT<port>-0026-NotifySignalChange_003
|
sl@0
|
739 |
COMMAND busDevComm SetSignals BASE-BSP-SERIAL-DRIVER-PORT<port>-0026-SetSignals_004
|
sl@0
|
740 |
OUTSTANDING
|
sl@0
|
741 |
COMMAND busDevComm SetSignals BASE-BSP-SERIAL-DRIVER-PORT<port>-0026-SetSignals_005
|
sl@0
|
742 |
|
sl@0
|
743 |
DELAY 1500000
|
sl@0
|
744 |
|
sl@0
|
745 |
COMMAND busDevComm Close
|
sl@0
|
746 |
COMMAND busDevComm ~
|
sl@0
|
747 |
END_TEST_BLOCK
|
sl@0
|
748 |
END_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0026
|
sl@0
|
749 |
|
sl@0
|
750 |
|
sl@0
|
751 |
START_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0027
|
sl@0
|
752 |
//! @SYMTestCaseID BASE-BSP-SERIAL-DRIVER-PORT<port>-0027
|
sl@0
|
753 |
//! @SYMAPI RBusDevComm::NotifySignalChange(TRequestStatus {ref}, TUint {ref}, TUint)
|
sl@0
|
754 |
//! RBusDevComm::NotifySignalChangeCancel()
|
sl@0
|
755 |
//! @SYMAuthor Louis Henry Nayegon
|
sl@0
|
756 |
//! @SYMCreationDate 25/06/2008
|
sl@0
|
757 |
//! @SYMTestCaseDesc Cancel notification of specified signal changes on com<port> when echo server is closed
|
sl@0
|
758 |
//! @SYMTestActions 1. Create RBusDevComm object
|
sl@0
|
759 |
//! 2. Open serial port com<port> and close echoserver for 2 seconds
|
sl@0
|
760 |
//! 3. Cancel a notification for signal change
|
sl@0
|
761 |
//! 4. Wait for echo server to open and destroy the objects
|
sl@0
|
762 |
//! @SYMTestStatus Implemented
|
sl@0
|
763 |
//! @SYMTestPriority High
|
sl@0
|
764 |
//! @SYMTestExpectedResults Notification should complete with error KErrCancel (-3)
|
sl@0
|
765 |
//! @SYMTestType CIT
|
sl@0
|
766 |
START_TEST_BLOCK 10 t_serial \base\serial\base-bsp-serial-driver-PORT<port>.ini
|
sl@0
|
767 |
CREATE_OBJECT RBusDevComm busDevComm
|
sl@0
|
768 |
COMMAND busDevComm new
|
sl@0
|
769 |
COMMAND busDevComm Open BASE-BSP-SERIAL-DRIVER-PORT<port>-Open
|
sl@0
|
770 |
COMMAND busDevComm Write BASE-BSP-SERIAL-DRIVER-ECHO-Write-2SecondDisconnect
|
sl@0
|
771 |
OUTSTANDING
|
sl@0
|
772 |
DELAY 1000000
|
sl@0
|
773 |
|
sl@0
|
774 |
COMMAND busDevComm NotifySignalChange
|
sl@0
|
775 |
OUTSTANDING
|
sl@0
|
776 |
COMMAND !AsyncError=-3 busDevComm NotifySignalChange BASE-BSP-SERIAL-DRIVER-PORT<port>-0027-NotifySignalChange_003
|
sl@0
|
777 |
COMMAND busDevComm NotifySignalChangeCancel
|
sl@0
|
778 |
OUTSTANDING
|
sl@0
|
779 |
|
sl@0
|
780 |
DELAY 1500000
|
sl@0
|
781 |
|
sl@0
|
782 |
COMMAND busDevComm Close
|
sl@0
|
783 |
COMMAND busDevComm ~
|
sl@0
|
784 |
END_TEST_BLOCK
|
sl@0
|
785 |
END_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0027
|
sl@0
|
786 |
|
sl@0
|
787 |
|
sl@0
|
788 |
START_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0028
|
sl@0
|
789 |
//! @SYMTestCaseID BASE-BSP-SERIAL-DRIVER-PORT<port>-0028
|
sl@0
|
790 |
//! @SYMAPI RBusDevComm::Signals()
|
sl@0
|
791 |
//! RBusDevComm::SetSignals(TUint, TUint)
|
sl@0
|
792 |
//! @SYMAuthor Louis Henry Nayegon
|
sl@0
|
793 |
//! @SYMCreationDate 25/06/2008
|
sl@0
|
794 |
//! @SYMTestCaseDesc Test individual signals on com<port> when echo server is closed
|
sl@0
|
795 |
//! @SYMTestActions 1. Create RBusDevComm object
|
sl@0
|
796 |
//! 2. Open serial port com<port> and close echoserver for 2 seconds
|
sl@0
|
797 |
//! 3. Save the current signals
|
sl@0
|
798 |
//! 4. Set and verify individual signals 0x0010, 0x0020, 0x0040, 0x0080
|
sl@0
|
799 |
//! 4. Clear all signals
|
sl@0
|
800 |
//! 5. Restore signals
|
sl@0
|
801 |
//! 6. Wait for echo server to open and destroy the objects
|
sl@0
|
802 |
//! @SYMTestStatus Implemented
|
sl@0
|
803 |
//! @SYMTestPriority High
|
sl@0
|
804 |
//! @SYMTestExpectedResults Signals should be HIGH
|
sl@0
|
805 |
//! @SYMTestType CIT
|
sl@0
|
806 |
START_TEST_BLOCK 10 t_serial \base\serial\base-bsp-serial-driver-PORT<port>.ini
|
sl@0
|
807 |
CREATE_OBJECT RBusDevComm busDevComm
|
sl@0
|
808 |
COMMAND busDevComm new
|
sl@0
|
809 |
COMMAND busDevComm Open BASE-BSP-SERIAL-DRIVER-PORT<port>-Open
|
sl@0
|
810 |
COMMAND busDevComm Write BASE-BSP-SERIAL-DRIVER-ECHO-Write-2SecondDisconnect
|
sl@0
|
811 |
OUTSTANDING
|
sl@0
|
812 |
DELAY 1000000
|
sl@0
|
813 |
|
sl@0
|
814 |
COMMAND busDevComm Signals BASE-BSP-SERIAL-DRIVER-PORT<port>-0028-Signals_002
|
sl@0
|
815 |
|
sl@0
|
816 |
COMMAND busDevComm SetSignals BASE-BSP-SERIAL-DRIVER-PORT<port>-0028-SetSignals_003
|
sl@0
|
817 |
COMMAND busDevComm Signals BASE-BSP-SERIAL-DRIVER-PORT<port>-0028-Signals_004
|
sl@0
|
818 |
COMMAND busDevComm SetSignals BASE-BSP-SERIAL-DRIVER-PORT<port>-0028-SetSignals_005
|
sl@0
|
819 |
COMMAND busDevComm Signals BASE-BSP-SERIAL-DRIVER-PORT<port>-0028-Signals_006
|
sl@0
|
820 |
COMMAND busDevComm SetSignals BASE-BSP-SERIAL-DRIVER-PORT<port>-0028-SetSignals_007
|
sl@0
|
821 |
COMMAND busDevComm Signals BASE-BSP-SERIAL-DRIVER-PORT<port>-0028-Signals_008
|
sl@0
|
822 |
COMMAND busDevComm SetSignals BASE-BSP-SERIAL-DRIVER-PORT<port>-0028-SetSignals_009
|
sl@0
|
823 |
COMMAND busDevComm Signals BASE-BSP-SERIAL-DRIVER-PORT<port>-0028-Signals_010
|
sl@0
|
824 |
|
sl@0
|
825 |
COMMAND busDevComm SetSignals BASE-BSP-SERIAL-DRIVER-PORT<port>-0028-SetSignals_011
|
sl@0
|
826 |
|
sl@0
|
827 |
DELAY 1500000
|
sl@0
|
828 |
|
sl@0
|
829 |
COMMAND busDevComm Close
|
sl@0
|
830 |
COMMAND busDevComm ~
|
sl@0
|
831 |
END_TEST_BLOCK
|
sl@0
|
832 |
END_TESTCASE BASE-BSP-SERIAL-DRIVER-PORT<port>-0028
|