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 //! @file |
|
17 //! @SYMTestSuiteName GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi |
|
18 //! @SYMScriptTestEnvironment This test script requires a basic ROM. |
|
19 |
|
20 /////////////////////////////////////////////////////////////////////////////// |
|
21 // GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.script |
|
22 // |
|
23 // Tests all public elements of the WsGraphicMsgBuf class |
|
24 // as a means of confidence that the API works as expected. |
|
25 // |
|
26 // The purpose is to provide a regression test suite of PublishedAll APIs for |
|
27 // TWindowInfo related classes. |
|
28 // Negative testing is performed to confirm that correct errors are returned |
|
29 // when incorrect parameters are given. |
|
30 // |
|
31 // The tests are fully automated. |
|
32 /////////////////////////////////////////////////////////////////////////////// |
|
33 |
|
34 |
|
35 LOAD_SUITE T_GraphicsWservAPI |
|
36 |
|
37 |
|
38 // **************************************************************************** |
|
39 // WsGraphicMsgBuf |
|
40 // **************************************************************************** |
|
41 |
|
42 START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0001 |
|
43 //! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0001 |
|
44 //! @SYMAPI WsGraphicMsgBuf |
|
45 //! @SYMAuthor Shirly Kuo |
|
46 //! @SYMCreationDate 28/12/2006 |
|
47 //! @SYMTestCaseDesc RWsGraphicMsgBuf(): Default constructor. |
|
48 //! Uses API elements:RWsGraphicMsgBuf() and Close() |
|
49 //! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. |
|
50 //! 2. Close the object using Close(). |
|
51 //! @SYMTestStatus Implemented |
|
52 //! @SYMTestPriority Critical |
|
53 //! @SYMTestExpectedResults RWsGraphicMsgBuf object create and close successed. |
|
54 //! @SYMTestType CIT |
|
55 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini |
|
56 CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf |
|
57 COMMAND wsGraphicMsgBuf new |
|
58 COMMAND wsGraphicMsgBuf Close |
|
59 END_TEST_BLOCK |
|
60 END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0001 |
|
61 |
|
62 |
|
63 START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0002 |
|
64 //! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0002 |
|
65 //! @SYMAPI WsGraphicMsgBuf |
|
66 //! @SYMAuthor Shirly Kuo |
|
67 //! @SYMCreationDate 28/12/2006 |
|
68 //! @SYMTestCaseDesc CleanupClosePushL(): Close with clean up memory. |
|
69 //! Uses API elements:RWsGraphicMsgBuf() and CleanupClosePushL() |
|
70 //! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. |
|
71 //! 2. Close and clean up memory of the object using CleanupClosePushL(). |
|
72 //! @SYMTestStatus Implemented |
|
73 //! @SYMTestPriority Critical |
|
74 //! @SYMTestExpectedResults RWsGraphicMsgBuf object create and close successed. |
|
75 //! @SYMTestType CIT |
|
76 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini |
|
77 CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf |
|
78 COMMAND wsGraphicMsgBuf new |
|
79 COMMAND wsGraphicMsgBuf CleanupClosePushL |
|
80 END_TEST_BLOCK |
|
81 END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0002 |
|
82 |
|
83 |
|
84 START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0003 |
|
85 //! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0003 |
|
86 //! @SYMAPI WsGraphicMsgBuf |
|
87 //! @SYMAuthor Shirly Kuo |
|
88 //! @SYMCreationDate 28/12/2006 |
|
89 //! @SYMTestCaseDesc Append(): Append a eight bits descriptor as data. |
|
90 //! Uses API elements:RWsGraphicMsgBuf(), Close() and Append() |
|
91 //! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. |
|
92 //! 2. Append a eight bits descriptor as data using Append() and return KErrNone if successed. |
|
93 //! 3. Close the object using Close(). |
|
94 //! @SYMTestStatus Implemented |
|
95 //! @SYMTestPriority Critical |
|
96 //! @SYMTestExpectedResults A eight bits descriptor as data was appended successed. |
|
97 //! @SYMTestType CIT |
|
98 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini |
|
99 CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf |
|
100 COMMAND wsGraphicMsgBuf new |
|
101 COMMAND wsGraphicMsgBuf Append GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0003-0001-Append_command02 |
|
102 COMMAND wsGraphicMsgBuf Close |
|
103 END_TEST_BLOCK |
|
104 END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0003 |
|
105 |
|
106 |
|
107 START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0004 |
|
108 //! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0004 |
|
109 //! @SYMAPI WsGraphicMsgBuf |
|
110 //! @SYMAuthor Shirly Kuo |
|
111 //! @SYMCreationDate 28/12/2006 |
|
112 //! @SYMTestCaseDesc Append(): Append a sixteen bits descriptor as data. |
|
113 //! Uses API elements:RWsGraphicMsgBuf(), Close() and Append() |
|
114 //! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. |
|
115 //! 2. Append a sixteen bits descriptor as data using Append() and return KErrNone if successed. |
|
116 //! 3. Close the object using Close(). |
|
117 //! @SYMTestStatus Implemented |
|
118 //! @SYMTestPriority Critical |
|
119 //! @SYMTestExpectedResults A sixteen bits descriptor as data was appended successed. |
|
120 //! @SYMTestType CIT |
|
121 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini |
|
122 CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf |
|
123 COMMAND wsGraphicMsgBuf new |
|
124 COMMAND wsGraphicMsgBuf Append GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0004-0001-Append_command02 |
|
125 COMMAND wsGraphicMsgBuf Close |
|
126 END_TEST_BLOCK |
|
127 END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0004 |
|
128 |
|
129 |
|
130 START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0005 |
|
131 //! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0005 |
|
132 //! @SYMAPI WsGraphicMsgBuf |
|
133 //! @SYMAuthor Shirly Kuo |
|
134 //! @SYMCreationDate 28/12/2006 |
|
135 //! @SYMTestCaseDesc Append(): Append a message of the specified length and type. |
|
136 //! Uses API elements:RWsGraphicMsgBuf(), Close() and Append() |
|
137 //! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. |
|
138 //! 2. Append a message of the specified length and type, and return a pointer to allow client code to modify the message using Append() and return KErrNone if successed. |
|
139 //! 3. Close the object using Close(). |
|
140 //! @SYMTestStatus Implemented |
|
141 //! @SYMTestPriority Critical |
|
142 //! @SYMTestExpectedResults A message of the specified length and type, and return a pointer to allow client code to modify the message was appended successed. |
|
143 //! @SYMTestType CIT |
|
144 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini |
|
145 CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf |
|
146 COMMAND wsGraphicMsgBuf new |
|
147 COMMAND wsGraphicMsgBuf Append GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0005-0001-Append_command02 |
|
148 COMMAND wsGraphicMsgBuf Close |
|
149 END_TEST_BLOCK |
|
150 |
|
151 END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0005 |
|
152 |
|
153 |
|
154 START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0006 |
|
155 //! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0006 |
|
156 //! @SYMAPI WsGraphicMsgBuf |
|
157 //! @SYMAuthor Shirly Kuo |
|
158 //! @SYMCreationDate 28/12/2006 |
|
159 //! @SYMTestCaseDesc Append(): Append a fixed-size message. |
|
160 //! Uses API elements:RWsGraphicMsgBuf(), Close() and Append() |
|
161 //! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. |
|
162 //! 2. Append a fixed-size message using Append() and return KErrNone if successed. |
|
163 //! 3. Close the object using Close(). |
|
164 //! @SYMTestStatus Implemented |
|
165 //! @SYMTestPriority Critical |
|
166 //! @SYMTestExpectedResults A fixed-size message was appended successed. |
|
167 //! @SYMTestType CIT |
|
168 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini |
|
169 CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf |
|
170 COMMAND wsGraphicMsgBuf new |
|
171 COMMAND wsGraphicMsgBuf Append |
|
172 COMMAND wsGraphicMsgBuf Close |
|
173 END_TEST_BLOCK |
|
174 END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0006 |
|
175 |
|
176 |
|
177 START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0007 |
|
178 //! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0007 |
|
179 //! @SYMAPI WsGraphicMsgBuf |
|
180 //! @SYMAuthor Shirly Kuo |
|
181 //! @SYMCreationDate 28/12/2006 |
|
182 //! @SYMTestCaseDesc Data(): Returns a non-modifiable descriptor of a message body in the buffer. |
|
183 //! Uses API elements:RWsGraphicMsgBuf(), Close(), Append() and Data() |
|
184 //! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. |
|
185 //! 2. Append a eight bits descriptor as data using Append() and return KErrNone if successed. |
|
186 //! 3. Returns a non-modifiable descriptor of a message body in the buffer by using Data(). |
|
187 //! 4. Verify if returned descriptor is same as appended descriptor. |
|
188 //! 5. Close the object using Close(). |
|
189 //! @SYMTestStatus Implemented |
|
190 //! @SYMTestPriority Critical |
|
191 //! @SYMTestExpectedResults The returned descriptor is same as appended descriptor. |
|
192 //! @SYMTestType CIT |
|
193 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini |
|
194 CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf |
|
195 COMMAND wsGraphicMsgBuf new |
|
196 COMMAND wsGraphicMsgBuf Append GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0007-0001-Append_command02 |
|
197 COMMAND wsGraphicMsgBuf Data GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0007-0001-Data_command03 |
|
198 COMMAND wsGraphicMsgBuf Close |
|
199 END_TEST_BLOCK |
|
200 END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0007 |
|
201 |
|
202 |
|
203 START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0008 |
|
204 //! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0008 |
|
205 //! @SYMAPI WsGraphicMsgBuf |
|
206 //! @SYMAuthor Shirly Kuo |
|
207 //! @SYMCreationDate 28/12/2006 |
|
208 //! @SYMTestCaseDesc Data(): Returns a modifiable descriptor of a message body in the buffer. |
|
209 //! Uses API elements:RWsGraphicMsgBuf(), Close(), Append() and Data() |
|
210 //! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. |
|
211 //! 2. Append a eight bits descriptor as data using Append() and return KErrNone if successed. |
|
212 //! 3. Returns a modifiable descriptor of a message body in the buffer by using Data(). |
|
213 //! 4. Close the object using Close(). |
|
214 //! @SYMTestStatus Implemented |
|
215 //! @SYMTestPriority Critical |
|
216 //! @SYMTestExpectedResults The returned modifiable descriptor of a message body in the buffer is as expected. |
|
217 //! @SYMTestType CIT |
|
218 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini |
|
219 CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf |
|
220 COMMAND wsGraphicMsgBuf new |
|
221 COMMAND wsGraphicMsgBuf Append GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0008-0001-Append_command02 |
|
222 COMMAND wsGraphicMsgBuf Data GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0008-0001-Data_command03 |
|
223 COMMAND wsGraphicMsgBuf Close |
|
224 END_TEST_BLOCK |
|
225 END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0008 |
|
226 |
|
227 |
|
228 START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0009 |
|
229 //! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0009 |
|
230 //! @SYMAPI WsGraphicMsgBuf |
|
231 //! @SYMAuthor Shirly Kuo |
|
232 //! @SYMCreationDate 28/12/2006 |
|
233 //! @SYMTestCaseDesc Count(): Returns the number of messages in the buffer. |
|
234 //! Uses API elements:RWsGraphicMsgBuf(), Close(), Append() and Count() |
|
235 //! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. |
|
236 //! 2. Append a eight bits descriptor as data using Append() and return KErrNone if successed. |
|
237 //! 3. Returns the number of messages in the buffer by using Count(). |
|
238 //! 4. Verify if the number of messages in the buffer is as expected. |
|
239 //! 5. Close the object using Close(). |
|
240 //! @SYMTestStatus Implemented |
|
241 //! @SYMTestPriority Critical |
|
242 //! @SYMTestExpectedResults The number of messages in the buffer is as expected. |
|
243 //! @SYMTestType CIT |
|
244 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini |
|
245 CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf |
|
246 COMMAND wsGraphicMsgBuf new |
|
247 COMMAND wsGraphicMsgBuf Append GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0009-0001-Append_command02 |
|
248 COMMAND wsGraphicMsgBuf Count GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0009-0001-Count_command03 |
|
249 COMMAND wsGraphicMsgBuf Close |
|
250 END_TEST_BLOCK |
|
251 END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0009 |
|
252 |
|
253 |
|
254 START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0010 |
|
255 //! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0010 |
|
256 //! @SYMAPI WsGraphicMsgBuf |
|
257 //! @SYMAuthor Shirly Kuo |
|
258 //! @SYMCreationDate 28/12/2006 |
|
259 //! @SYMTestCaseDesc TypeId(): Returns the type ID of a message in the buffer. |
|
260 //! Uses API elements:RWsGraphicMsgBuf(), Close(), Append() and TypeId() |
|
261 //! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. |
|
262 //! 2. Append a eight bits descriptor as data using Append() and return KErrNone if successed. |
|
263 //! 3. Returns the type ID of a message in the buffer by using TypeId(). |
|
264 //! 4. Verify if the type ID of a message in the buffer is as expected. |
|
265 //! 5. Close the object using Close(). |
|
266 //! @SYMTestStatus Implemented |
|
267 //! @SYMTestPriority Critical |
|
268 //! @SYMTestExpectedResults The type ID of a message in the buffer is as expected. |
|
269 //! @SYMTestType CIT |
|
270 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini |
|
271 CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf |
|
272 COMMAND wsGraphicMsgBuf new |
|
273 COMMAND wsGraphicMsgBuf Append GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0010-0001-Append_command02 |
|
274 COMMAND wsGraphicMsgBuf TypeId GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0010-0001-TypeId_command03 |
|
275 COMMAND wsGraphicMsgBuf Close |
|
276 END_TEST_BLOCK |
|
277 END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0010 |
|
278 |
|
279 |
|
280 START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0011 |
|
281 //! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0011 |
|
282 //! @SYMAPI WsGraphicMsgBuf |
|
283 //! @SYMAuthor Shirly Kuo |
|
284 //! @SYMCreationDate 28/12/2006 |
|
285 //! @SYMTestCaseDesc Remove(): Remove a message from the buffer. |
|
286 //! Uses API elements:RWsGraphicMsgBuf(), Close(), Append() and Remove() |
|
287 //! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. |
|
288 //! 2. Append a eight bits descriptor as data using Append() and return KErrNone if successed. |
|
289 //! 3. Remove a message from the buffer by using Remove() and return KErrNone if successed. |
|
290 //! 4. Close the object using Close(). |
|
291 //! @SYMTestStatus Implemented |
|
292 //! @SYMTestPriority Critical |
|
293 //! @SYMTestExpectedResults The message from the buffer was removed successed. |
|
294 //! @SYMTestType CIT |
|
295 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini |
|
296 CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf |
|
297 COMMAND wsGraphicMsgBuf new |
|
298 COMMAND wsGraphicMsgBuf Append GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0011-0001-Append_command02 |
|
299 COMMAND wsGraphicMsgBuf Remove GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0011-0001-Remove_command03 |
|
300 COMMAND wsGraphicMsgBuf Close |
|
301 END_TEST_BLOCK |
|
302 END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0011 |
|
303 |
|
304 |
|
305 START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0012 |
|
306 //! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0012 |
|
307 //! @SYMAPI WsGraphicMsgBuf |
|
308 //! @SYMAuthor Shirly Kuo |
|
309 //! @SYMCreationDate 28/12/2006 |
|
310 //! @SYMTestCaseDesc Pckg(): Returns the message buffer as a descriptor. |
|
311 //! Uses API elements:RWsGraphicMsgBuf(), Close(), Append() and Pckg() |
|
312 //! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. |
|
313 //! 2. Append a eight bits descriptor as data using Append() and return KErrNone if successed. |
|
314 //! 3. Returns the message buffer as a descriptor by using Pckg() and return KErrNone if successed. |
|
315 //! 4. Close the object using Close(). |
|
316 //! @SYMTestStatus Implemented |
|
317 //! @SYMTestPriority Critical |
|
318 //! @SYMTestExpectedResults The message buffer as a descriptor successed. |
|
319 //! @SYMTestType CIT |
|
320 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini |
|
321 CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf |
|
322 COMMAND wsGraphicMsgBuf new |
|
323 COMMAND wsGraphicMsgBuf Append GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0012-0001-Append_command02 |
|
324 COMMAND wsGraphicMsgBuf Pckg |
|
325 COMMAND wsGraphicMsgBuf Close |
|
326 END_TEST_BLOCK |
|
327 END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0012 |
|
328 |
|
329 |
|
330 START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0013 |
|
331 //! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0013 |
|
332 //! @SYMAPI WsGraphicMsgBuf |
|
333 //! @SYMAuthor Shirly Kuo |
|
334 //! @SYMCreationDate 28/12/2006 |
|
335 //! @SYMTestCaseDesc GetFixedMsg(): Returns a copy of a fixed-size message in the buffer. |
|
336 //! Uses API elements:RWsGraphicMsgBuf(), Close(), Append() and GetFixedMsg() |
|
337 //! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. |
|
338 //! 2. Append a eight bits descriptor as data using Append() and return KErrNone if successed. |
|
339 //! 3. Returns a copy of a fixed-size message in the buffer by using GetFixedMsg() and return KErrNone if successed. |
|
340 //! 4. Close the object using Close(). |
|
341 //! @SYMTestStatus Implemented |
|
342 //! @SYMTestPriority Critical |
|
343 //! @SYMTestExpectedResults The copy of a fixed-size message in the buffer successed. |
|
344 //! @SYMTestType CIT |
|
345 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini |
|
346 CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf |
|
347 COMMAND wsGraphicMsgBuf new |
|
348 COMMAND wsGraphicMsgBuf Append |
|
349 COMMAND wsGraphicMsgBuf GetFixedMsg GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0013-0001-GetFixedMsg_command03 |
|
350 COMMAND wsGraphicMsgBuf Close |
|
351 END_TEST_BLOCK |
|
352 END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0013 |
|
353 |
|
354 |
|
355 //---- Negative Test Cases ---- |
|
356 |
|
357 START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0101 |
|
358 //! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0101 |
|
359 //! @SYMAPI WsGraphicMsgBuf |
|
360 //! @SYMAuthor Shirly Kuo |
|
361 //! @SYMCreationDate 28/12/2006 |
|
362 //! @SYMTestCaseDesc Data(): Returns a non-modifiable descriptor of a message body in the buffer. |
|
363 //! Uses API elements:RWsGraphicMsgBuf(), Close(), Append() and Data() |
|
364 //! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. |
|
365 //! 2. Append a eight bits descriptor as data using Append() and return KErrNone if successed. |
|
366 //! 3. Returns a non-modifiable descriptor of a message body in the buffer by using Data() with a out of bounds index -1. |
|
367 //! 4. Verify if returned descriptor is same as appended descriptor. |
|
368 //! @SYMTestStatus Implemented |
|
369 //! @SYMTestPriority Critical |
|
370 //! @SYMTestExpectedResults A panic code 15 occurs, the returned descriptor is not same as appended descriptor. |
|
371 //! @SYMTestType CIT |
|
372 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini |
|
373 CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf |
|
374 COMMAND wsGraphicMsgBuf new |
|
375 COMMAND wsGraphicMsgBuf Append GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0101-0001-Append_command02 |
|
376 COMMAND wsGraphicMsgBuf Data GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0101-0001-Data_command03 |
|
377 END_TEST_BLOCK !PanicCode=15 !PanicString=W32 |
|
378 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
379 END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0101 |
|
380 |
|
381 |
|
382 START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0102 |
|
383 //! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0102 |
|
384 //! @SYMAPI WsGraphicMsgBuf |
|
385 //! @SYMAuthor Shirly Kuo |
|
386 //! @SYMCreationDate 28/12/2006 |
|
387 //! @SYMTestCaseDesc TypeId(): Returns the type ID of a message in the buffer. |
|
388 //! Uses API elements:RWsGraphicMsgBuf(), Close(), Append() and TypeId() |
|
389 //! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. |
|
390 //! 2. Append a eight bits descriptor as data using Append() and return KErrNone if successed. |
|
391 //! 3. Returns the type ID of a message in the buffer by using TypeId() with a out of bounds index -1. |
|
392 //! 4. Verify if the type ID of a message in the buffer is as expected. |
|
393 //! 5. Close the object using Close(). |
|
394 //! @SYMTestStatus Implemented |
|
395 //! @SYMTestPriority Critical |
|
396 //! @SYMTestExpectedResults A panic code 15 occurs, the type ID of a message in the buffer is not as expected. |
|
397 //! @SYMTestType CIT |
|
398 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini |
|
399 CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf |
|
400 COMMAND wsGraphicMsgBuf new |
|
401 COMMAND wsGraphicMsgBuf Append GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0102-0001-Append_command02 |
|
402 COMMAND wsGraphicMsgBuf TypeId GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0102-0001-TypeId_command03 |
|
403 END_TEST_BLOCK !PanicCode=15 !PanicString=W32 |
|
404 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
405 END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0102 |
|
406 |
|
407 |
|
408 START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0103 |
|
409 //! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0103 |
|
410 //! @SYMAPI WsGraphicMsgBuf |
|
411 //! @SYMAuthor Shirly Kuo |
|
412 //! @SYMCreationDate 28/12/2006 |
|
413 //! @SYMTestCaseDesc Remove(): Remove a message from the buffer with a negative index. |
|
414 //! Uses API elements:RWsGraphicMsgBuf(), and Remove() |
|
415 //! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. |
|
416 //! 2. Remove a message from the buffer by using Remove() and a negtive index |
|
417 //! @SYMTestStatus Implemented |
|
418 //! @SYMTestPriority Critical |
|
419 //! @SYMTestExpectedResults EW32PanicGraphicBadBuffer(15) PANIC on attempt to remove |
|
420 //! @SYMTestType CIT |
|
421 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini |
|
422 CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf |
|
423 COMMAND wsGraphicMsgBuf new |
|
424 COMMAND wsGraphicMsgBuf Remove GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0103-0001-Remove_command02 |
|
425 END_TEST_BLOCK !PanicCode=15 !PanicString=W32 |
|
426 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
427 END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0103 |
|
428 |
|
429 |
|
430 START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0104 |
|
431 //! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0104 |
|
432 //! @SYMAPI WsGraphicMsgBuf |
|
433 //! @SYMAuthor Shirly Kuo |
|
434 //! @SYMCreationDate 28/12/2006 |
|
435 //! @SYMTestCaseDesc Remove(): Remove a message from the buffer with an index larger than its size |
|
436 //! Uses API elements:RWsGraphicMsgBuf(), and Remove() |
|
437 //! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. |
|
438 //! 2. Remove a message from the buffer by using Remove() and a large index |
|
439 //! @SYMTestStatus Implemented |
|
440 //! @SYMTestPriority Critical |
|
441 //! @SYMTestExpectedResults EW32PanicGraphicBadBuffer(15) PANIC on attempt to remove |
|
442 //! @SYMTestType CIT |
|
443 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini |
|
444 CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf |
|
445 COMMAND wsGraphicMsgBuf new |
|
446 COMMAND wsGraphicMsgBuf Remove GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0104-0001-Remove_command02 |
|
447 END_TEST_BLOCK !PanicCode=15 !PanicString=W32 |
|
448 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
449 END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0104 |
|