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-Frame-PublicApi |
|
18 //! @SYMScriptTestEnvironment This test script requires a basic ROM. |
|
19 |
|
20 /////////////////////////////////////////////////////////////////////////////// |
|
21 // GRAPHICS-WSERV-Frame-PublicApi.script |
|
22 // |
|
23 // Tests all public elements of the CFrame 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 // CFrame 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 // CFrame |
|
39 // **************************************************************************** |
|
40 |
|
41 START_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0001 |
|
42 //! @SYMTestCaseID GRAPHICS-WSERV-Frame-PublicApi-0001 |
|
43 //! @SYMAPI CFrame::NewL(); |
|
44 //! CFrame::~CFrame() |
|
45 //! @SYMAuthor Yue Zhang |
|
46 //! @SYMCreationDate 10-03-2008 |
|
47 //! @SYMTestCaseDesc Create CFrame object and then destroy it. |
|
48 //! @SYMTestActions 1.Create CFrame object. |
|
49 //! 2.Destroy created object. |
|
50 //! @SYMTestStatus Implemented |
|
51 //! @SYMTestPriority High |
|
52 //! @SYMTestExpectedResults CFrame object was created and destroyed without causing panic. |
|
53 //! @SYMTestType CIT |
|
54 |
|
55 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Frame-PublicApi.ini |
|
56 CREATE_OBJECT CFrame frame |
|
57 COMMAND frame NewL |
|
58 COMMAND frame ~ |
|
59 END_TEST_BLOCK |
|
60 END_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0001 |
|
61 |
|
62 |
|
63 START_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0002 |
|
64 //! @SYMTestCaseID GRAPHICS-WSERV-Frame-PublicApi-0002 |
|
65 //! @SYMAPI CFrame::FrameInfo() |
|
66 //! @SYMAuthor Jeffery Zhao |
|
67 //! @SYMCreationDate 21-04-2008 |
|
68 //! @SYMTestCaseDesc Create CFrame object and get the default FrameInfo. |
|
69 //! @SYMTestActions 1.Create CFrame object. |
|
70 //! 2.Get FrameInfo and verify defalut setting. |
|
71 //! 3.Destroy created object. |
|
72 //! @SYMTestStatus Implemented |
|
73 //! @SYMTestPriority High |
|
74 //! @SYMTestExpectedResults The default FrameInfo as expected. |
|
75 //! @SYMTestType CIT |
|
76 |
|
77 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Frame-PublicApi.ini |
|
78 CREATE_OBJECT CFrame frame |
|
79 COMMAND frame NewL |
|
80 COMMAND frame FrameInfo GRAPHICS-WSERV-Frame-PublicApi-0002-0001-FrameInfo-command002 |
|
81 COMMAND frame ~ |
|
82 END_TEST_BLOCK |
|
83 END_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0002 |
|
84 |
|
85 |
|
86 START_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0003 |
|
87 //! @SYMTestCaseID GRAPHICS-WSERV-Frame-PublicApi-0003 |
|
88 //! @SYMAPI CFrame::SetFrameInfo(const TFrameInfo{ref}); |
|
89 //! CFrame::FrameInfo() |
|
90 //! @SYMAuthor Yue Zhang |
|
91 //! @SYMCreationDate 10-03-2008 |
|
92 //! @SYMTestCaseDesc Set frame info via CFrame object and then get it. |
|
93 //! @SYMTestActions 1.Create CFrame object. |
|
94 //! 2.Set FrameInfo. |
|
95 //! 3.Get FrameInfo. |
|
96 //! 4.Destroy created object. |
|
97 //! @SYMTestStatus Implemented |
|
98 //! @SYMTestPriority High |
|
99 //! @SYMTestExpectedResults CFrame object sets FrameInfo succefully and gets the same FrameInfo as the setting value. |
|
100 //! @SYMTestType CIT |
|
101 |
|
102 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Frame-PublicApi.ini |
|
103 CREATE_OBJECT CFrame frame |
|
104 COMMAND frame NewL |
|
105 COMMAND frame SetFrameInfo GRAPHICS-WSERV-Frame-PublicApi-0003-0001-SetFrameInfo-command002 |
|
106 COMMAND frame FrameInfo GRAPHICS-WSERV-Frame-PublicApi-0003-0001-FrameInfo-command003 |
|
107 COMMAND frame ~ |
|
108 END_TEST_BLOCK |
|
109 END_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0003 |
|
110 |
|
111 |
|
112 START_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0004 |
|
113 //! @SYMTestCaseID GRAPHICS-WSERV-Frame-PublicApi-0004 |
|
114 //! @SYMAPI CFrame::Bitmap() |
|
115 //! @SYMAuthor Jeffery Zhao |
|
116 //! @SYMCreationDate 21-04-2008 |
|
117 //! @SYMTestCaseDesc Create CFrame object and get the default bitmap object. |
|
118 //! @SYMTestActions 1.Create CFrame object. |
|
119 //! 2.Create CFbsBitmap object for storing default bitmap. |
|
120 //! 2.Get the default bitmap object and verify that it is NULL. |
|
121 //! 3.Destroy created objects. |
|
122 //! @SYMTestStatus Implemented |
|
123 //! @SYMTestPriority High |
|
124 //! @SYMTestExpectedResults The default bitmap object should be NULL. |
|
125 //! @SYMTestType CIT |
|
126 |
|
127 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Frame-PublicApi.ini |
|
128 CREATE_OBJECT CFrame frame |
|
129 CREATE_OBJECT CFbsBitmap bitmap |
|
130 |
|
131 COMMAND frame NewL |
|
132 COMMAND frame Bitmap GRAPHICS-WSERV-Frame-PublicApi-0004-0001-Bitmap-command002 |
|
133 COMMAND frame ~ |
|
134 END_TEST_BLOCK |
|
135 END_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0004 |
|
136 |
|
137 |
|
138 START_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0005 |
|
139 //! @SYMTestCaseID GRAPHICS-WSERV-Frame-PublicApi-0005 |
|
140 //! @SYMAPI CFrame::SetBitmap(CFbsbitmap{ptr}); |
|
141 //! CFrame::Bitmap() |
|
142 //! @SYMAuthor Yue Zhang |
|
143 //! @SYMCreationDate 10-03-2008 |
|
144 //! @SYMTestCaseDesc Set bitmap via CFrame object and then get it. |
|
145 //! @SYMTestActions 1.Create CFrame object. |
|
146 //! 2.Create RFbsSession object. |
|
147 //! 3.Create CFbsBitmap object. |
|
148 //! 4.Connect the RFbsSession. |
|
149 //! 5.Load CFbsBitmap. |
|
150 //! 6.Set the CFbsBitmap. |
|
151 //! 7.Get the CFbsBitmap. |
|
152 //! 8.Destroy created objects. |
|
153 //! 9.Disconnect the RFbsSession. |
|
154 //! @SYMTestStatus Implemented |
|
155 //! @SYMTestPriority High |
|
156 //! @SYMTestExpectedResults CFrame object sets bitmap succefully and gets the same bitmap as the setting value. |
|
157 //! @SYMTestType CIT |
|
158 |
|
159 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Frame-PublicApi.ini |
|
160 CREATE_OBJECT CFrame frame |
|
161 CREATE_OBJECT RFbsSession fbssession |
|
162 CREATE_OBJECT CFbsBitmap bitmap |
|
163 COMMAND frame NewL |
|
164 COMMAND fbssession Connect |
|
165 COMMAND bitmap new |
|
166 COMMAND bitmap Load GRAPHICS-WSERV-Frame-PublicApi-0005-0001-Load-command04 |
|
167 COMMAND frame SetBitmap GRAPHICS-WSERV-Frame-PublicApi-0005-0001-SetBitmap-command005 |
|
168 COMMAND frame Bitmap GRAPHICS-WSERV-Frame-PublicApi-0005-0001-Bitmap-command006 |
|
169 COMMAND bitmap disown |
|
170 COMMAND frame ~ |
|
171 COMMAND fbssession Disconnect |
|
172 END_TEST_BLOCK |
|
173 END_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0005 |
|
174 |
|
175 |
|
176 START_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0006 |
|
177 //! @SYMTestCaseID GRAPHICS-WSERV-Frame-PublicApi-0006 |
|
178 //! @SYMAPI CFrame::Mask() |
|
179 //! @SYMAuthor Jeffery Zhao |
|
180 //! @SYMCreationDate 21-04-2008 |
|
181 //! @SYMTestCaseDesc Create CFrame object and get the default mask. |
|
182 //! @SYMTestActions 1.Create CFrame object. |
|
183 //! 2.Create CFbsBitmap object for storing default mask. |
|
184 //! 3.Get the default mask object and verify that it is NULL. |
|
185 //! 4.Destroy created objects. |
|
186 //! @SYMTestStatus Implemented |
|
187 //! @SYMTestPriority High |
|
188 //! @SYMTestExpectedResults The default mask object should be NULL. |
|
189 //! @SYMTestType CIT |
|
190 |
|
191 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Frame-PublicApi.ini |
|
192 CREATE_OBJECT CFrame frame |
|
193 CREATE_OBJECT CFbsBitmap mask |
|
194 |
|
195 COMMAND frame NewL |
|
196 COMMAND frame Mask GRAPHICS-WSERV-Frame-PublicApi-0006-0001-Mask-command002 |
|
197 COMMAND frame ~ |
|
198 END_TEST_BLOCK |
|
199 END_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0006 |
|
200 |
|
201 |
|
202 START_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0007 |
|
203 //! @SYMTestCaseID GRAPHICS-WSERV-Frame-PublicApi-0007 |
|
204 //! @SYMAPI CFrame::SetMask(CFbsbitmap{ptr}); |
|
205 //! CFrame::Mask() |
|
206 //! @SYMAuthor Yue Zhang |
|
207 //! @SYMCreationDate 10-03-2008 |
|
208 //! @SYMTestCaseDesc Set mask via CFrame object and then get it. |
|
209 //! @SYMTestActions 1.Create CFrame object. |
|
210 //! 2.Create RFbsSession object. |
|
211 //! 3.Create CFbsBitmap object. |
|
212 //! 4.Connect the RFbsSession. |
|
213 //! 5.Load CFbsBitmap. |
|
214 //! 6.Set the mask. |
|
215 //! 7.Get the mask. |
|
216 //! 8.Destroy created objects. |
|
217 //! 9.Disconnect the RFbsSession. |
|
218 //! @SYMTestStatus Implemented |
|
219 //! @SYMTestPriority High |
|
220 //! @SYMTestExpectedResults CFrame object sets mask succefully and gets the same mask with setting value. |
|
221 //! @SYMTestType CIT |
|
222 |
|
223 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Frame-PublicApi.ini |
|
224 CREATE_OBJECT CFrame frame |
|
225 CREATE_OBJECT RFbsSession fbssession |
|
226 CREATE_OBJECT CFbsBitmap mask |
|
227 COMMAND frame NewL |
|
228 COMMAND fbssession Connect |
|
229 COMMAND mask new |
|
230 COMMAND mask Load GRAPHICS-WSERV-Frame-PublicApi-0007-0001-Load-command04 |
|
231 COMMAND frame SetMask GRAPHICS-WSERV-Frame-PublicApi-0007-0001-SetMask-command005 |
|
232 COMMAND frame Mask GRAPHICS-WSERV-Frame-PublicApi-0007-0001-Mask-command006 |
|
233 COMMAND mask disown |
|
234 COMMAND frame ~ |
|
235 COMMAND fbssession Disconnect |
|
236 END_TEST_BLOCK |
|
237 END_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0007 |
|
238 |
|
239 START_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0008 |
|
240 //! @SYMTestCaseID GRAPHICS-WSERV-Frame-PublicApi-0008 |
|
241 //! @SYMAPI CFrame::SetBitmap(CFbsbitmap{ptr}); |
|
242 //! @SYMAuthor Jeffery Zhao |
|
243 //! @SYMCreationDate 30-04-2008 |
|
244 //! @SYMTestCaseDesc Set bitmap to CFrame object twice with same bitmap. |
|
245 //! @SYMTestActions 1.Create CFrame object. |
|
246 //! 2.Create RFbsSession object. |
|
247 //! 3.Create CFbsBitmap object. |
|
248 //! 4.Connect the RFbsSession. |
|
249 //! 5.Load CFbsBitmap. |
|
250 //! 6.Set the CFbsBitmap. |
|
251 //! 7.Set the CFbsBitmap again. |
|
252 //! 8.Destroy created objects. |
|
253 //! 9.Disconnect the RFbsSession. |
|
254 //! @SYMTestStatus Implemented |
|
255 //! @SYMTestPriority High |
|
256 //! @SYMTestExpectedResults CFrame object sets bitmap succefully. |
|
257 //! @SYMTestType CIT |
|
258 |
|
259 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Frame-PublicApi.ini |
|
260 CREATE_OBJECT CFrame frame |
|
261 CREATE_OBJECT RFbsSession fbssession |
|
262 CREATE_OBJECT CFbsBitmap bitmap |
|
263 COMMAND frame NewL |
|
264 COMMAND fbssession Connect |
|
265 COMMAND bitmap new |
|
266 COMMAND bitmap Load GRAPHICS-WSERV-Frame-PublicApi-0008-0001-Load-command04 |
|
267 COMMAND frame SetBitmap GRAPHICS-WSERV-Frame-PublicApi-0008-0001-SetBitmap-command005 |
|
268 COMMAND frame SetBitmap GRAPHICS-WSERV-Frame-PublicApi-0008-0001-SetBitmap-command006 |
|
269 COMMAND bitmap disown |
|
270 COMMAND frame ~ |
|
271 COMMAND fbssession Disconnect |
|
272 END_TEST_BLOCK |
|
273 END_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0008 |
|
274 |
|
275 START_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0009 |
|
276 //! @SYMTestCaseID GRAPHICS-WSERV-Frame-PublicApi-0009 |
|
277 //! @SYMAPI CFrame::SetMask(CFbsbitmap{ptr}); |
|
278 //! @SYMAuthor Jeffery Zhao |
|
279 //! @SYMCreationDate 30-04-2008 |
|
280 //! @SYMTestCaseDesc Set mask to CFrame object twice with same bitmap. |
|
281 //! @SYMTestActions 1.Create CFrame object. |
|
282 //! 2.Create RFbsSession object. |
|
283 //! 3.Create CFbsBitmap object. |
|
284 //! 4.Connect the RFbsSession. |
|
285 //! 5.Load CFbsBitmap. |
|
286 //! 6.Set the mask. |
|
287 //! 7.Set the mask again. |
|
288 //! 8.Destroy created objects. |
|
289 //! 9.Disconnect the RFbsSession. |
|
290 //! @SYMTestStatus Implemented |
|
291 //! @SYMTestPriority High |
|
292 //! @SYMTestExpectedResults CFrame object sets mask succefully. |
|
293 //! @SYMTestType CIT |
|
294 |
|
295 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Frame-PublicApi.ini |
|
296 CREATE_OBJECT CFrame frame |
|
297 CREATE_OBJECT RFbsSession fbssession |
|
298 CREATE_OBJECT CFbsBitmap mask |
|
299 COMMAND frame NewL |
|
300 COMMAND fbssession Connect |
|
301 COMMAND mask new |
|
302 COMMAND mask Load GRAPHICS-WSERV-Frame-PublicApi-0009-0001-Load-command04 |
|
303 COMMAND frame SetMask GRAPHICS-WSERV-Frame-PublicApi-0009-0001-SetMask-command005 |
|
304 COMMAND frame SetMask GRAPHICS-WSERV-Frame-PublicApi-0009-0001-SetMask-command006 |
|
305 COMMAND mask disown |
|
306 COMMAND frame ~ |
|
307 COMMAND fbssession Disconnect |
|
308 END_TEST_BLOCK |
|
309 END_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0009 |
|