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-FBSERV-FbsSession-PublicApi |
|
18 //! @SYMScriptTestEnvironment This test script requires a basic ROM. |
|
19 |
|
20 ///////////////////////////////////////////////////////////////////// |
|
21 // GRAPHICS-FBSERV-FbsSession-PublicAPI.script |
|
22 // |
|
23 // Tests all public elements of the RFbsSession class |
|
24 // as a means of confidence that the APIs work as expected. |
|
25 // |
|
26 // The purpose is to provide a regression test suite of PublishedAll APIs for RFbsSession. |
|
27 // Negative testing is performed to confirm that correct errors are returned when incorrect parameters are given. |
|
28 // The tests are fully automated. |
|
29 ///////////////////////////////////////////////////////////////////// |
|
30 |
|
31 LOAD_SUITE T_FBServAPI |
|
32 |
|
33 |
|
34 START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0001 |
|
35 //! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0001 |
|
36 //! @SYMAPI RFbsSession |
|
37 //! @SYMAuthor Anton Golovko |
|
38 //! @SYMCreationDate 23/03/2006 |
|
39 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script |
|
40 //! @SYMTestCaseDesc RFbsSession::Connect() (Connect() version), RFbsSession::GetSession() and RFbsSession::Disconnect() test |
|
41 //! Uses API elements: Connect(), GetSession(), Disconnect() |
|
42 //! @SYMTestActions 1. Call RFbsSession::GetSession() |
|
43 //! 2. Create a RFbsSession using RFbsSession::Connect() |
|
44 //! 3. Call RFbsSession::GetSession() |
|
45 //! 4. Close the RFbsSession using RFbsSession::Disconnect() |
|
46 //! 5. Call RFbsSession::GetSession() |
|
47 //! @SYMTestStatus Implemented |
|
48 //! @SYMTestPriority Critical |
|
49 //! @SYMTestExpectedResults Expects that GetSession() returns not NULL when session is opened and NULL when session is disconnected or not opened |
|
50 //! @SYMTestType CIT |
|
51 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini |
|
52 CREATE_OBJECT RFbsSession RFbsSession1 |
|
53 COMMAND RFbsSession1 GetSession GRAPHICS-FBSERV-FbsSession-PublicApi-0001-001-GetSession_command001 |
|
54 COMMAND RFbsSession1 Connect |
|
55 COMMAND RFbsSession1 GetSession |
|
56 COMMAND RFbsSession1 Disconnect |
|
57 COMMAND RFbsSession1 GetSession GRAPHICS-FBSERV-FbsSession-PublicApi-0001-001-GetSession_command005 |
|
58 END_TEST_BLOCK |
|
59 END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0001 |
|
60 |
|
61 |
|
62 START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0002 |
|
63 //! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0002 |
|
64 //! @SYMAPI RFbsSession |
|
65 //! @SYMAuthor Anton Golovko |
|
66 //! @SYMCreationDate 23/03/2006 |
|
67 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script |
|
68 //! @SYMTestCaseDesc RFbsSession::Connect() (Connect(RFs \&aFileServer) version), RFbsSession::GetSession() and RFbsSession::Disconnect() test with a file-server session specified |
|
69 //! Uses API elements: Connect(), GetSession(), Disconnect() |
|
70 //! @SYMTestActions 1. Create and connect a file-server session |
|
71 //! 2. Create a RFbsSession using RFbsSession::Connect() passing RFs instance as an argument |
|
72 //! 3. Call RFbsSession::GetSession() |
|
73 //! 4. Close the RFbsSession using RFbsSession::Disconnect() |
|
74 //! 5. Call RFbsSession::GetSession() |
|
75 //! @SYMTestStatus Implemented |
|
76 //! @SYMTestPriority Critical |
|
77 //! @SYMTestExpectedResults Expects that GetSession() returns not NULL when session is opened and NULL when session is disconnected |
|
78 //! @SYMTestType CIT |
|
79 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini |
|
80 CREATE_OBJECT RFbsSession RFbsSession1 |
|
81 COMMAND RFbsSession1 GetSession GRAPHICS-FBSERV-FbsSession-PublicApi-0002-001-GetSession_command001 |
|
82 COMMAND RFbsSession1 Connect GRAPHICS-FBSERV-FbsSession-PublicApi-0002-001-Connect_command002 |
|
83 COMMAND RFbsSession1 GetSession |
|
84 COMMAND RFbsSession1 Disconnect |
|
85 COMMAND RFbsSession1 GetSession GRAPHICS-FBSERV-FbsSession-PublicApi-0002-001-GetSession_command005 |
|
86 END_TEST_BLOCK |
|
87 END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0002 |
|
88 |
|
89 |
|
90 START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0003 |
|
91 //! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0003 |
|
92 //! @SYMAPI RFbsSession |
|
93 //! @SYMAuthor Anton Golovko |
|
94 //! @SYMCreationDate 23/03/2006 |
|
95 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script |
|
96 //! @SYMTestCaseDesc RFbsSession::SetCallBack(), RFbsSession::CallBack(), RFbsSession::ResetCallBack() test |
|
97 //! Uses API elements: Connect(), SetCallBack(), CallBack(), ResetCallBack(), Disconnect() |
|
98 //! @SYMTestActions 1. Create a RFbsSession |
|
99 //! 2. Call CallBack() expecting that nothing happpens (no check is needed, just make sure that the call doesn't fail) |
|
100 //! 3. Set instance variable iCallBackCalled to EFalse |
|
101 //! 4. Call SetCallBack() specifying a function that sets the instance variable iCallBackCalled to ETrue |
|
102 //! 5. Call CallBack() |
|
103 //! 6. Check that iCallBackCalled is ETrue |
|
104 //! 7. Set the instance variable iCallBackCalled to EFalse |
|
105 //! 8. Call ResetCallBack() |
|
106 //! 9. Call CallBack() |
|
107 //! 10. Check that iCallBackCalled is EFalse |
|
108 //! 11. Disconnect session |
|
109 //! @SYMTestStatus Implemented |
|
110 //! @SYMTestPriority Critical |
|
111 //! @SYMTestExpectedResults See actions |
|
112 //! @SYMTestType CIT |
|
113 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini |
|
114 CREATE_OBJECT RFbsSession RFbsSession1 |
|
115 COMMAND RFbsSession1 Connect |
|
116 COMMAND RFbsSession1 GetSession |
|
117 COMMAND RFbsSession1 CallBack |
|
118 COMMAND RFbsSession1 SetCallBack |
|
119 COMMAND RFbsSession1 CallBack GRAPHICS-FBSERV-FbsSession-PublicApi-0003-001-CallBack_command005 |
|
120 COMMAND RFbsSession1 ResetCallBack |
|
121 COMMAND RFbsSession1 CallBack GRAPHICS-FBSERV-FbsSession-PublicApi-0003-001-CallBack_command007 |
|
122 COMMAND RFbsSession1 Disconnect |
|
123 END_TEST_BLOCK |
|
124 END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0003 |
|
125 |
|
126 |
|
127 START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0004 |
|
128 //! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0004 |
|
129 //! @SYMAPI RFbsSession |
|
130 //! CFbsTypefaceStore |
|
131 //! @SYMAuthor Anton Golovko |
|
132 //! @SYMCreationDate 23/03/2006 |
|
133 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script |
|
134 //! @SYMTestCaseDesc CFbsTypefaceStore::ResourceCount() test |
|
135 //! Uses API elements: RFbsSession::Connect(), RFbsSession::ResourceCount(), CFbsTypefaceStore::ReleaseFont() |
|
136 //! @SYMTestActions 1. Create a RFbsSession |
|
137 //! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument |
|
138 //! 3. Call ResourceCount() |
|
139 //! 4. Call CFbsTypefaceStore::GetNearestFontToDesignHeightInPixels() for Arial, 12px font |
|
140 //! 5. Call ResourceCount() and make sure that the value was increased by one |
|
141 //! 6. Call CFbsTypefaceStore::ReleaseFont() passing previously obtained font |
|
142 //! 7. Call ResourceCount() and make sure that the value was decreased by one |
|
143 //! @SYMTestStatus Implemented |
|
144 //! @SYMTestPriority Critical |
|
145 //! @SYMTestExpectedResults See actions |
|
146 //! @SYMTestType CIT |
|
147 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini |
|
148 CREATE_OBJECT RFbsSession RFbsSession1 |
|
149 CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 |
|
150 CREATE_OBJECT CFbsFont CFbsFont1 |
|
151 COMMAND RFbsSession1 Connect |
|
152 COMMAND RFbsSession1 GetSession |
|
153 COMMAND CFbsTypefaceStore1 NewL |
|
154 COMMAND RFbsSession1 ResourceCount |
|
155 COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsSession-PublicApi-0004-001-GetNearestFontToDesignHeightInPixels_command008 |
|
156 COMMAND RFbsSession1 ResourceCount GRAPHICS-FBSERV-FbsSession-PublicApi-0004-001-ResourceCount_command010 |
|
157 COMMAND CFbsTypefaceStore1 ReleaseFont GRAPHICS-FBSERV-FbsSession-PublicApi-0004-001-ReleaseFont_command012 |
|
158 COMMAND RFbsSession1 ResourceCount GRAPHICS-FBSERV-FbsSession-PublicApi-0004-001-ResourceCount_command014 |
|
159 COMMAND CFbsTypefaceStore1 ~ |
|
160 COMMAND RFbsSession1 Disconnect |
|
161 END_TEST_BLOCK |
|
162 END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0004 |
|
163 |
|
164 |
|
165 START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0005 |
|
166 //! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0005 |
|
167 //! @SYMAPI RFbsSession |
|
168 //! @SYMAuthor Anton Golovko |
|
169 //! @SYMCreationDate 23/03/2006 |
|
170 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script |
|
171 //! @SYMTestCaseDesc RFbsSession::SendCommand() test |
|
172 //! Uses API elements: Connect(), SendCommand() |
|
173 //! @SYMTestActions 1. Create a RFbsSession |
|
174 //! 2. Call SendCommand() passing 0 as an argument |
|
175 //! @SYMTestStatus Implemented |
|
176 //! @SYMTestPriority Critical |
|
177 //! @SYMTestExpectedResults The function SendCommand() call doesn't cause panic. |
|
178 //! @SYMTestType CIT |
|
179 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini |
|
180 CREATE_OBJECT RFbsSession RFbsSession1 |
|
181 COMMAND RFbsSession1 Connect |
|
182 COMMAND RFbsSession1 GetSession |
|
183 COMMAND RFbsSession1 SendCommand GRAPHICS-FBSERV-FbsSession-PublicApi-0005-001-SendCommand_command003 |
|
184 COMMAND RFbsSession1 Disconnect |
|
185 END_TEST_BLOCK |
|
186 END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0005 |
|
187 |
|
188 |
|
189 START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0006 |
|
190 //! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0006 |
|
191 //! @SYMAPI RFbsSession |
|
192 //! @SYMAuthor Anton Golovko |
|
193 //! @SYMCreationDate 23/03/2006 |
|
194 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script |
|
195 //! @SYMTestCaseDesc RFbsSession::Version() test |
|
196 //! Uses API elements: Connect(), Version() |
|
197 //! @SYMTestActions 1. Create a RFbsSession |
|
198 //! 2. Call Version() method |
|
199 //! @SYMTestStatus Implemented |
|
200 //! @SYMTestPriority Critical |
|
201 //! @SYMTestExpectedResults The test expects that fields of TVersion instance will be initialized |
|
202 //! @SYMTestType CIT |
|
203 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini |
|
204 CREATE_OBJECT RFbsSession RFbsSession1 |
|
205 COMMAND RFbsSession1 Connect |
|
206 COMMAND RFbsSession1 GetSession |
|
207 COMMAND RFbsSession1 Version |
|
208 COMMAND RFbsSession1 Disconnect |
|
209 END_TEST_BLOCK |
|
210 END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0006 |
|
211 |
|
212 |
|
213 START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0007 |
|
214 //! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0007 |
|
215 //! @SYMAPI RFbsSession |
|
216 //! @SYMAuthor Anton Golovko |
|
217 //! @SYMCreationDate 23/03/2006 |
|
218 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script |
|
219 //! @SYMTestCaseDesc RFbsSession::HeapBase() test |
|
220 //! Uses API elements: Connect(), HeapBase() |
|
221 //! @SYMTestActions 1. Create a RFbsSession |
|
222 //! 2. Call HeapBase() method |
|
223 //! @SYMTestStatus Implemented |
|
224 //! @SYMTestPriority Critical |
|
225 //! @SYMTestExpectedResults The test expects that the HeapBase() method doesn't cause panic and the returned value will not be NULL |
|
226 //! @SYMTestType CIT |
|
227 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini |
|
228 CREATE_OBJECT RFbsSession RFbsSession1 |
|
229 COMMAND RFbsSession1 Connect |
|
230 COMMAND RFbsSession1 GetSession |
|
231 COMMAND RFbsSession1 HeapBase |
|
232 COMMAND RFbsSession1 Disconnect |
|
233 END_TEST_BLOCK |
|
234 END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0007 |
|
235 |
|
236 |
|
237 START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0008 |
|
238 //! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0008 |
|
239 //! @SYMAPI RFbsSession |
|
240 //! @SYMAuthor Anton Golovko |
|
241 //! @SYMCreationDate 23/03/2006 |
|
242 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script |
|
243 //! @SYMTestCaseDesc RFbsSession::SessionHandle() test |
|
244 //! Uses API elements: Connect(), SessionHandle() |
|
245 //! @SYMTestActions 1. Create a RFbsSession |
|
246 //! 2. Call SessionHandle() method |
|
247 //! @SYMTestStatus Implemented |
|
248 //! @SYMTestPriority Critical |
|
249 //! @SYMTestExpectedResults The test expects that the SessionHandle() method doesn't cause panic and the returned value will not be NULL |
|
250 //! @SYMTestType CIT |
|
251 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini |
|
252 CREATE_OBJECT RFbsSession RFbsSession1 |
|
253 COMMAND RFbsSession1 Connect |
|
254 COMMAND RFbsSession1 GetSession |
|
255 COMMAND RFbsSession1 SessionHandle |
|
256 COMMAND RFbsSession1 Disconnect |
|
257 END_TEST_BLOCK |
|
258 END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0008 |
|
259 |
|
260 |
|
261 //!START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0009 |
|
262 //! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0009 |
|
263 //! @SYMAPI RFbsSession |
|
264 //! @SYMAuthor Anton Golovko |
|
265 //! @SYMCreationDate 29/03/2006 |
|
266 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script |
|
267 //! @SYMTestCaseDesc RFbsSession::Connect() (Connect(RFs \&aFileServer) version) negative test with a not-connected file-server session specified |
|
268 //! Uses API elements: Connect() |
|
269 //! @SYMTestActions 1. Create and connect a file-server session, but don't connect it |
|
270 //! 2. Create a RFbsSession using RFbsSession::Connect() passing RFs instance as an argument |
|
271 //! @SYMTestStatus Implemented |
|
272 //! @SYMTestPriority High |
|
273 //! @SYMTestExpectedResults Expects that RFbsSession::Connect() will return an error |
|
274 //! @SYMTestType CIT |
|
275 //! START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini |
|
276 //! CREATE_OBJECT RFbsSession RFbsSession1 |
|
277 //! COMMAND RFbsSession1 Connect GRAPHICS-FBSERV-FbsSession-PublicApi-0009-001-Connect_command001 |
|
278 //! END_TEST_BLOCK !PanicCode=0 !PanicString=KERN-EXEC |
|
279 //! RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg |
|
280 //!END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0009 |
|
281 |
|
282 |
|
283 //! START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0010 |
|
284 //! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0010 |
|
285 //! @SYMAPI RFbsSession |
|
286 //! @SYMAuthor Anton Golovko |
|
287 //! @SYMCreationDate 29/03/2006 |
|
288 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script |
|
289 //! @SYMTestCaseDesc RFbsSession::SendCommand() negative test that send a wrong command |
|
290 //! Uses API elements: Connect(), SendCommand() |
|
291 //! @SYMTestActions 1. Create a RFbsSession |
|
292 //! 2. Call SendCommand() passing -1 as an argument |
|
293 //! @SYMTestStatus Implemented |
|
294 //! @SYMTestPriority High |
|
295 //! @SYMTestExpectedResults The operation should panic |
|
296 //! @SYMTestType CIT |
|
297 //! START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini |
|
298 //! CREATE_OBJECT RFbsSession RFbsSession1 |
|
299 //! COMMAND RFbsSession1 Connect |
|
300 //! COMMAND RFbsSession1 GetSession |
|
301 //! COMMAND RFbsSession1 SendCommand GRAPHICS-FBSERV-FbsSession-PublicApi-0010-001-SendCommand_command003 |
|
302 //! END_TEST_BLOCK !PanicString=USER !PanicCode=72 |
|
303 //! RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg |
|
304 //!END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0010 |
|
305 |
|
306 |
|
307 START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0011 |
|
308 //! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0011 |
|
309 //! @SYMAPI RFbsSession |
|
310 //! @SYMAuthor Anton Golovko |
|
311 //! @SYMCreationDate 29/03/2006 |
|
312 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script |
|
313 //! @SYMTestCaseDesc RFbsSession::Disconnect() negative test for not connected session |
|
314 //! Uses API elements: Disconnect() |
|
315 //! @SYMTestActions 1. Create a RFbsSession but don't call it's Connect() method |
|
316 //! 2. Call RFbsSession::Disconnect() |
|
317 //! @SYMTestStatus Implemented |
|
318 //! @SYMTestPriority High |
|
319 //! @SYMTestExpectedResults The function Disconnect() call doesn't cause panic. |
|
320 //! @SYMTestType CIT |
|
321 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini |
|
322 CREATE_OBJECT RFbsSession RFbsSession1 |
|
323 COMMAND RFbsSession1 Disconnect |
|
324 END_TEST_BLOCK |
|
325 END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0011 |
|
326 |
|
327 |
|
328 START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0012 |
|
329 //! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0012 |
|
330 //! @SYMAPI RFbsSession |
|
331 //! @SYMAuthor Anton Golovko |
|
332 //! @SYMCreationDate 11/07/2006 |
|
333 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script |
|
334 //! @SYMTestCaseDesc RFbsSession() test |
|
335 //! Uses API elements: RFbsSession() |
|
336 //! @SYMTestActions 1. Call RFbsSession() constuctor |
|
337 //! @SYMTestStatus Implemented |
|
338 //! @SYMTestPriority High |
|
339 //! @SYMTestExpectedResults The RFbsSession() constructor call doesn't cause panic. |
|
340 //! @SYMTestType CIT |
|
341 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini |
|
342 CREATE_OBJECT RFbsSession RFbsSession1 |
|
343 COMMAND RFbsSession1 Constructor |
|
344 END_TEST_BLOCK |
|
345 END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0012 |
|
346 |
|
347 |
|
348 |
|
349 //!START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0014 |
|
350 //! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0014 |
|
351 //! @SYMAPI RFbsSession |
|
352 //! @SYMAuthor Rnno Sgirka |
|
353 //! @SYMCreationDate 25/05/2006 |
|
354 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script |
|
355 //! @SYMTestCaseDesc RFbsSession::SendCommand() negative test for not connected session |
|
356 //! Uses API elements: SendCommand() |
|
357 //! @SYMTestActions 1. Create a RFbsSession but don't call it's Connect() method |
|
358 //! 2. Call SendCommand() passing 0 as an argument |
|
359 //! @SYMTestStatus Implemented |
|
360 //! @SYMTestPriority High |
|
361 //! @SYMTestExpectedResults Expects that SendCommand() panics |
|
362 //! @SYMTestType CIT |
|
363 |
|
364 //! START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini |
|
365 |
|
366 //! CREATE_OBJECT RFbsSession RFbsSession1 |
|
367 |
|
368 //! COMMAND RFbsSession1 SendCommand GRAPHICS-FBSERV-FbsSession-PublicApi-0014-001-SendCommand_command001 |
|
369 |
|
370 //! END_TEST_BLOCK !PanicCode=3 !PanicString=KERN-EXEC |
|
371 |
|
372 //! RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg |
|
373 |
|
374 //!END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0014 |
|
375 |
|
376 |
|
377 START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0015 |
|
378 //! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0015 |
|
379 //! @SYMAPI RFbsSession |
|
380 //! @SYMAuthor Rnno Sgirka |
|
381 //! @SYMCreationDate 25/05/2006 |
|
382 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script |
|
383 //! @SYMTestCaseDesc RFbsSession::Version() test for not connected session |
|
384 //! Uses API elements: Version() |
|
385 //! @SYMTestActions 1. Create a RFbsSession but don't call it's Connect() method |
|
386 //! 2. Call RFbsSession::Version() |
|
387 //! @SYMTestStatus Implemented |
|
388 //! @SYMTestPriority High |
|
389 //! @SYMTestExpectedResults The function Version() call doesn't cause panic. |
|
390 //! @SYMTestType CIT |
|
391 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini |
|
392 CREATE_OBJECT RFbsSession RFbsSession1 |
|
393 COMMAND RFbsSession1 Version |
|
394 END_TEST_BLOCK |
|
395 END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0015 |
|
396 |
|
397 |
|
398 //!START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0016 |
|
399 //! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0016 |
|
400 //! @SYMAPI RFbsSession |
|
401 //! @SYMAuthor Rnno Sgirka |
|
402 //! @SYMCreationDate 25/05/2006 |
|
403 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script |
|
404 //! @SYMTestCaseDesc RFbsSession::SessionHandle() negative test for not connected session |
|
405 //! Uses API elements: SessionHandle() |
|
406 //! @SYMTestActions 1. Create a RFbsSession but don't call it's Connect() method |
|
407 //! 2. Call RFbsSession::SessionHandle() |
|
408 //! @SYMTestStatus Implemented |
|
409 //! @SYMTestPriority High |
|
410 //! @SYMTestExpectedResults Expects that SessionHandle() panics |
|
411 //! @SYMTestType CIT |
|
412 //! START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini |
|
413 //! CREATE_OBJECT RFbsSession RFbsSession1 |
|
414 //! COMMAND RFbsSession1 SessionHandle |
|
415 //! END_TEST_BLOCK !PanicCode=3 !PanicString=KERN-EXEC |
|
416 //! RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg |
|
417 //!END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0016 |
|
418 |
|
419 |
|
420 //!START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0017 |
|
421 //! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0017 |
|
422 //! @SYMAPI RFbsSession |
|
423 //! @SYMAuthor Rnno Sgirka |
|
424 //! @SYMCreationDate 25/05/2006 |
|
425 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script |
|
426 //! @SYMTestCaseDesc RFbsSession::CallBack() negative test for not connected session |
|
427 //! Uses API elements: CallBack() |
|
428 //! @SYMTestActions 1. Create a RFbsSession but don't call it's Connect() method |
|
429 //! 2. Call RFbsSession::CallBack() |
|
430 //! @SYMTestStatus Implemented |
|
431 //! @SYMTestPriority High |
|
432 //! @SYMTestExpectedResults Expects that CallBack() panics |
|
433 //! @SYMTestType CIT |
|
434 //! START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini |
|
435 //! CREATE_OBJECT RFbsSession RFbsSession1 |
|
436 //! COMMAND RFbsSession1 CallBack |
|
437 //! END_TEST_BLOCK !PanicCode=3 !PanicString=KERN-EXEC |
|
438 //! RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg |
|
439 //!END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0017 |
|
440 |
|
441 |
|
442 //!START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0018 |
|
443 //! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0018 |
|
444 //! @SYMAPI RFbsSession |
|
445 //! @SYMAuthor Rnno Sgirka |
|
446 //! @SYMCreationDate 25/05/2006 |
|
447 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script |
|
448 //! @SYMTestCaseDesc RFbsSession::SetCallBack() negative test for not connected session |
|
449 //! Uses API elements: SetCallBack() |
|
450 //! @SYMTestActions 1. Create a RFbsSession but don't call it's Connect() method |
|
451 //! 2. Call RFbsSession::SetCallBack() |
|
452 //! @SYMTestStatus Implemented |
|
453 //! @SYMTestPriority High |
|
454 //! @SYMTestExpectedResults Expects that SetCallBack() panics |
|
455 //! @SYMTestType CIT |
|
456 //! START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini |
|
457 //! CREATE_OBJECT RFbsSession RFbsSession1 |
|
458 //! COMMAND RFbsSession1 SetCallBack |
|
459 //! END_TEST_BLOCK !PanicCode=3 !PanicString=KERN-EXEC |
|
460 //! RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg |
|
461 //!END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0018 |
|
462 |
|
463 |
|
464 //!START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0019 |
|
465 //! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0019 |
|
466 //! @SYMAPI RFbsSession |
|
467 //! @SYMAuthor Rnno Sgirka |
|
468 //! @SYMCreationDate 25/05/2006 |
|
469 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script |
|
470 //! @SYMTestCaseDesc RFbsSession::ResetCallBack() negative test for not connected session |
|
471 //! Uses API elements: ResetCallBack() |
|
472 //! @SYMTestActions 1. Create a RFbsSession but don't call it's Connect() method |
|
473 //! 2. Call RFbsSession::ResetCallBack() |
|
474 //! @SYMTestStatus Implemented |
|
475 //! @SYMTestPriority High |
|
476 //! @SYMTestExpectedResults Expects that ResetCallBack() panics |
|
477 //! @SYMTestType CIT |
|
478 //! START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini |
|
479 //! CREATE_OBJECT RFbsSession RFbsSession1 |
|
480 //! COMMAND RFbsSession1 ResetCallBack |
|
481 //! END_TEST_BLOCK !PanicCode=3 !PanicString=KERN-EXEC |
|
482 //! RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg |
|
483 //!END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0019 |
|
484 |
|
485 |
|
486 START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0020 |
|
487 //! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0020 |
|
488 //! @SYMAPI RFbsSession |
|
489 //! @SYMAuthor Rnno Sgirka |
|
490 //! @SYMCreationDate 29/05/2006 |
|
491 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script |
|
492 //! @SYMTestCaseDesc RFbsSession::SendCommand() test that sends a correct message with correct message parameters |
|
493 //! Uses API elements: Connect(), SendCommand() |
|
494 //! @SYMTestActions 1. Create a RFbsSession |
|
495 //! 2. Create a 100x200 bitmap. |
|
496 //! 3. Send message 15 (EFbsMessBitmapResize) using SendCommand() passing as arguments: the handle of the bitmap, new width 50, new height 20. |
|
497 //! 4. Disconnect the session |
|
498 //! @SYMTestStatus Implemented |
|
499 //! @SYMTestPriority High |
|
500 //! @SYMTestExpectedResults The function SendCommand() call doesn't cause panic. |
|
501 //! @SYMTestType CIT |
|
502 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini |
|
503 CREATE_OBJECT RFbsSession RFbsSession1 |
|
504 CREATE_OBJECT CFbsBitmap CFbsBitmap1 |
|
505 COMMAND RFbsSession1 Connect |
|
506 COMMAND RFbsSession1 GetSession |
|
507 COMMAND CFbsBitmap1 new |
|
508 COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsSession-PublicApi-0020-001-Create_command005 |
|
509 COMMAND RFbsSession1 SendCommand GRAPHICS-FBSERV-FbsSession-PublicApi-0020-001-SendCommand_command007 |
|
510 COMMAND CFbsBitmap1 ~ |
|
511 COMMAND RFbsSession1 Disconnect |
|
512 END_TEST_BLOCK |
|
513 END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0020 |
|
514 |
|
515 |
|
516 START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0021 |
|
517 //! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0021 |
|
518 //! @SYMAPI RFbsSession |
|
519 //! @SYMAuthor Louis Henry Nayegon |
|
520 //! @SYMCreationDate 02/08/2006 |
|
521 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script |
|
522 //! @SYMTestCaseDesc RFbsSession::Disconnect() called without a connection |
|
523 //! @SYMTestActions 1. Disconnect the session |
|
524 //! @SYMTestStatus Implemented |
|
525 //! @SYMTestPriority High |
|
526 //! @SYMTestExpectedResults The function Disconnect() passes |
|
527 //! @SYMTestType CIT |
|
528 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini |
|
529 CREATE_OBJECT RFbsSession RFbsSession1 |
|
530 COMMAND RFbsSession1 Disconnect |
|
531 END_TEST_BLOCK |
|
532 END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0021 |
|