1 'encoding UTF-8 Do not remove or change this line!
2 '**************************************************************************
3 ' DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 ' Copyright 2000, 2010 Oracle and/or its affiliates.
7 ' OpenOffice.org - a multi-platform office productivity suite
9 ' This file is part of OpenOffice.org.
11 ' OpenOffice.org is free software: you can redistribute it and/or modify
12 ' it under the terms of the GNU Lesser General Public License version 3
13 ' only, as published by the Free Software Foundation.
15 ' OpenOffice.org is distributed in the hope that it will be useful,
16 ' but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ' GNU Lesser General Public License version 3 for more details
19 ' (a copy is included in the LICENSE file that accompanied this code).
21 ' You should have received a copy of the GNU Lesser General Public License
22 ' version 3 along with OpenOffice.org. If not, see
23 ' <http://www.openoffice.org/license.html>
24 ' for a copy of the LGPLv3 License.
26 '/***********************************************************************
28 '* owner : oliver.craemer@oracle.com
30 '* short description : Resource Test - View Menu
32 '************************************************************************
34 ' #1 tViewPageBreakPreview
38 ' #1 tViewInputMethodStatus
39 ' #1 tViewColumnRowHeaders
40 ' #1 tViewValueHighlighting
46 '\***********************************************************************
50 Printlog Chr(13) + "--------- View Menu (c_upd_viewmenu.inc) ---------"
52 call tViewPageBreakPreview
56 call tViewInputMethodStatus
57 call tViewColumnRowHeaders
58 call tViewValueHighlighting
66 '-----------------------------------------------------------
68 testcase tViewPageBreakPreview
69 '///<u><b>View - Normal / Page Break Preview</b></u>
71 '/// Opening new spreadsheet document for getting defined starting environment
72 printlog " Opening new spreadsheet document for getting defined starting environment"
74 '/// Activate Page Break Preview by 'View – Page Break Preview'
75 printlog " Activate Page Break Preview by 'View – Page Break Preview'"
77 '/// Switch back to normal view by 'View – Normal'
78 printlog " Switch back to normal view by 'View – Normal'"
80 '/// Close starting document
81 printlog " Close starting document"
86 '-----------------------------------------------------------
88 testcase tViewToolbars
89 '///<u><b>View - Toolbars</b></u>
91 '/// Opening new spreadsheet document for getting defined starting environment
92 printlog " Opening new spreadsheet document for getting defined starting environment"
94 '/// Switch on/off toolbar '3D-Settings' by 'View - Toolbars'
95 printlog " Switch on/off toolbar '3D-Settings' by 'View - Toolbars'"
96 ViewToolbarsThreeDSettings
97 ViewToolbarsThreeDSettings
98 '/// Switch on/off toolbar 'Align' by 'View - Toolbars'
99 printlog " Switch on/off toolbar 'Align' by 'View - Toolbars'"
102 '/// Switch on/off toolbar 'Drawing' by 'View - Toolbars'
103 printlog " Switch on/off toolbar 'Drawing' by 'View - Toolbars'"
106 '/// Switch on/off toolbar 'Drawing Objects Properties' by 'View - Toolbars'
107 printlog " Switch on/off toolbar 'Drawing Objects Properties' by 'View - Toolbars'"
108 ViewToolbarsDrawObjectbar
109 ViewToolbarsDrawObjectbar
110 '/// Switch on/off toolbar 'Fontwork' by 'View - Toolbars'
111 printlog " Switch on/off toolbar 'Fontwork' by 'View - Toolbars'"
114 '/// Switch on/off toolbar 'Form Controls' by 'View - Toolbars'
115 printlog " Switch on/off toolbar 'Form Controls' by 'View - Toolbars'"
116 ViewToolbarsFormControls
117 ViewToolbarsFormControls
118 '/// Switch on/off toolbar 'Form Design' by 'View - Toolbars'
119 printlog " Switch on/off toolbar 'Form Design' by 'View - Toolbars'"
120 ViewToolbarsFormDesign
121 ViewToolbarsFormDesign
122 '/// Switch on/off toolbar 'Form Navigation' by 'View - Toolbars'
123 printlog " Switch on/off toolbar 'Form Navigation' by 'View - Toolbars'"
124 ViewToolbarsFormNavigation
125 ViewToolbarsFormNavigation
126 '/// Switch on/off toolbar 'Formatting' by 'View - Toolbars'
127 printlog " Switch on/off toolbar 'Formatting' by 'View - Toolbars'"
128 ViewToolbarsFormatting
129 ViewToolbarsFormatting
130 '/// Switch on/off toolbar 'Insert' by 'View - Toolbars'
131 printlog " Switch on/off toolbar 'Insert' by 'View - Toolbars'"
134 '/// Switch on/off toolbar 'Insert Cells' by 'View - Toolbars'
135 printlog " Switch on/off toolbar 'Insert Cells' by 'View - Toolbars'"
136 ViewToolbarsInsertCell
137 ViewToolbarsInsertCell
138 '/// Switch on/off toolbar 'Media Playback' by 'View - Toolbars'
139 printlog " Switch on/off toolbar 'Media Playback' by 'View - Toolbars'"
140 ViewToolbarsMediaPlayback
141 ViewToolbarsMediaPlayback
142 '/// Switch on/off toolbar 'Picture' by 'View - Toolbars'
143 printlog " Switch on/off toolbar 'Picture' by 'View - Toolbars'"
146 '/// Switch on/off toolbar 'Standard' by 'View - Toolbars'
147 printlog " Switch on/off toolbar 'Standard' by 'View - Toolbars'"
150 '/// Switch on/off toolbar 'Text Formatting' by 'View - Toolbars'
151 printlog " Switch on/off toolbar 'Text Formatting' by 'View - Toolbars'"
152 ViewToolbarsTextFormatting
153 ViewToolbarsTextFormatting
154 '/// Switch on/off toolbar 'Tools' by 'View - Toolbars'
155 printlog " Switch on/off toolbar 'Tools' by 'View - Toolbars'"
158 '/// Switch on/off toolbar 'Hyperlink Bar' by 'View - Toolbars'
159 printlog " Switch on/off toolbar 'Hyperlink Bar' by 'View - Toolbars'"
160 ViewToolbarsInsertHyperlink
161 ViewToolbarsInsertHyperlink
162 '/// Switch on/off toolbar 'Formular Bar' by 'View - Toolbars'
163 printlog " Switch on/off toolbar 'Formular Bar' by 'View - Toolbars'"
164 ViewToolbarsFormulaBar
165 ViewToolbarsFormulaBar
166 '/// Open 'Toolbar Customize' - dialog by 'View – Toolbars – Customize' (will be tested in detail by tToolsCustomize)
167 printlog " Open 'Toolbar Customize' - dialog by 'View – Toolbars – Customize' (will be tested in detail by tToolsCustomize)"
168 ViewToolbarsConfigure
169 '/// Close dialog with 'Cancel'
171 Active.SetPage TabCustomizeMenu
172 Kontext "TabCustomizeMenu"
173 TabCustomizeMenu.Cancel
174 '/// Reset toolbars by 'View - Toolbars - Reset'
175 printlog " Reset toolbars by 'View - Toolbars - Reset'"
177 qaerrorlog "Reset not possible because of #i84544"
179 printlog " Close starting document"
184 '-----------------------------------------------------------
186 testcase tViewFormularbar
187 '///<u><b>View - Formular Bar</b></u>
189 '/// Open new Spreadsheet document
190 printlog " Open new Spreadsheet document"
192 '/// Switch on/off toolbar 'Formular Bar' by 'View - Formular Bar'
193 printlog " Switch on/off toolbar 'Formular Bar' by 'View - Formular Bar'"
194 ViewToolbarsFormulaBar
195 ViewToolbarsFormulaBar
196 '/// Close new document
197 printlog " Close document"
202 '-----------------------------------------------------------
204 testcase tViewStatusbar
205 '///<u><b>View - Status Bar</b></u>
207 '/// Open new Spreadsheet document
208 printlog " Open new Spreadsheet document"
210 '/// Switch on/off toolbar 'Status Bar' by 'View - Status Bar'
211 printlog " Switch on/off toolbar 'Status Bar' by 'View - Status Bar'"
212 ViewToolbarsStatusbar
213 ViewToolbarsStatusbar
214 '/// Close new document
215 printlog " Close document"
220 '-----------------------------------------------------------
222 testcase tViewInputMethodStatus
223 '///<u><b>View - Input Method Status</b></u>
225 '/// Open new Spreadsheet document
226 printlog " Open new Spreadsheet document"
228 '/// If enabled (only on UNIX) switch on/off 'View – Input Method Status'
229 printlog " If enabled (only on UNIX) switch on/off 'View – Input Method Status'"
231 ViewInputMethodStatus
232 ViewInputMethodStatus
234 printlog "Input Method Status not available on this system"
236 '/// Close new document
237 printlog " Close document"
242 '-----------------------------------------------------------
244 testcase tViewColumnRowHeaders
245 '///<u><b>View - Column And Row Headers</b></u>
247 '/// Open new Spreadsheet document
248 printlog " Open new Spreadsheet document"
250 '/// Switch on/off 'View - Column And Row Headers'
251 printlog " Switch on/off 'View - Column And Row Headers'"
252 ViewColumnAndRowHeaders
253 ViewColumnAndRowHeaders
254 '/// Close new document
255 printlog " Close document"
260 '-----------------------------------------------------------
262 testcase tViewValueHighlighting
263 '///<u><b>View - Value Highlighting</b></u>
265 '/// Open new Spreadsheet document
266 printlog " Open new Spreadsheet document"
268 '/// Switch on/off 'View - Value Highlighting'
269 printlog " Switch on/off 'View - Value Highlighting'"
270 ViewValueHightlighting
271 ViewValueHightlighting
272 '/// Close new document
273 printlog " Close document"
278 '-----------------------------------------------------------
280 testcase tViewDataSources
281 '///<u><b>View - Data Sources</b></u>
283 '/// Open new Spreadsheet document
284 printlog " Open new Spreadsheet document"
286 '/// Open datasourcebeamer by 'View - Data Sources'
287 ViewCurrentDatabaseCalc
288 '/// Close datasourcebeamer by 'View - Data Sources'
289 ViewCurrentDatabaseCalc
290 '/// Close new document
291 printlog " Close document"
296 '-----------------------------------------------------------
298 testcase tViewNavigator
299 '///<u><b>Edit - Navigator</b></u>
301 '/// Open new Spreadsheet document
302 printlog " Open new Spreadsheet document"
304 '/// Check if Navigator already exists. If not open Navigator by View-Navigator.
305 printlog " Check if Navigator already exists. If not open Navigator by View-Navigator."
306 Kontext "NavigatorCalc"
307 if NavigatorCalc.exists then
308 warnlog "Navigator is already enabled"
312 Kontext "NavigatorCalc"
313 call DialogTest ( NavigatorCalc )
314 '/// Check functionality of button for content by clicking it twice
315 printlog " Check functionality of button for content by clicking it twice"
318 '/// Check functionality of toggle button by clicking it twice
319 printlog " Check functionality of toggle button by clicking it twice"
322 '/// Check functionality of button for scenarios by clicking it twice
323 printlog " Check functionality of button for scenarios by clicking it twice"
326 '/// Check that the dragmodus has 3 modes
327 qaerrorlog "Dragmodus disabled because of unreliability"
328 ' printlog " Check that the dragmodus has 3 modes"
331 ' if hMenuItemGetCount <> 3 then
332 ' warnlog "Not enough modes for dragmodus"
336 printlog " Close Navigator"
338 Navigator.Close 'Because of #i78307 the navigatorwindow has to be closed by Navigator.close
339 Kontext "NavigatorCalc"
340 if NavigatorCalc.exists then
342 Warnlog "NavigatorCalc.Close doesn't close the navigator"
345 printlog " Close document"
350 '-----------------------------------------------------------
352 testcase tViewFullScreen
353 '///<u><b>View - Full Screen</b></u>
355 '/// Open new Spreadsheet document
356 printlog " Open new Spreadsheet document"
358 '/// Switch to full screen view by 'View - Full Screen'
360 '/// Switch back to normal view
362 '/// Close new document
363 printlog " Close document"
368 '-----------------------------------------------------------
371 '///<u><b>View - Zoom</b></u>
373 '/// Open new Spreadsheet document
374 printlog " Open new Spreadsheet document"
376 '/// Open 'Zoom' – dialog by 'View – Zoom'
377 printlog " Open 'Zoom' – dialog by 'View – Zoom'"
380 DialogTest ( Massstab )
381 '/// Check 'Variable'
382 printlog " Check 'Variable'"
383 VergroesserungStufenlos.Check
384 '/// Increase variablezoom by 1
385 printlog " Increase variablezoom by 1"
387 '/// Close dialog with 'Cancel'
388 printlog " Close dialog with 'Cancel'"
390 '/// Close new document
391 printlog " Close document"