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 2008 by Sun Microsystems, Inc.
7 '* OpenOffice.org - a multi-platform office productivity suite
9 '* $RCSfile: id_004.inc,v $
13 '* last change: $Author: jsi $ $Date: 2008-06-16 10:42:41 $
15 '* This file is part of OpenOffice.org.
17 '* OpenOffice.org is free software: you can redistribute it and/or modify
18 '* it under the terms of the GNU Lesser General Public License version 3
19 '* only, as published by the Free Software Foundation.
21 '* OpenOffice.org is distributed in the hope that it will be useful,
22 '* but WITHOUT ANY WARRANTY; without even the implied warranty of
23 '* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 '* GNU Lesser General Public License version 3 for more details
25 '* (a copy is included in the LICENSE file that accompanied this code).
27 '* You should have received a copy of the GNU Lesser General Public License
28 '* version 3 along with OpenOffice.org. If not, see
29 '* <http://www.openoffice.org/license.html>
30 '* for a copy of the LGPLv3 License.
32 '/************************************************************************
34 '* Owner : wolfram.garten@sun.com
36 '* short description :
38 '***********************************************************************************
40 ' #1 tiInsertDuplicateSlide
42 ' #1 tiInsertSpecialCharacter
43 ' #1 tiInsertHyperlink
45 ' #1 tiInsertObjectSound
46 ' #1 tiInsertObjectVideo
48 ' #1 tiInsertObjectOLEObjects
49 ' #1 tiInsertSpreadsheet
51 ' #1 tiInsertFloatingFrame
55 ' #1 tiInsertSnappointLine
57 '\**********************************************************************************
60 testcase tiInsertSlide
65 hTypekeys "<Pagedown>"
66 WaitSlot (2000) 'sleep 2
70 testcase tiInsertDuplicateSlide
72 Call hRechteckErstellen ( 30, 40, 40, 50 )
78 testcase tiInsertField
83 printlog "OK Time Fix"
90 printlog "OK Date Fix"
95 InsertFieldsTimeVariable
97 printlog "OK Time Variabel"
102 InsertFieldsDateVariable
104 printlog "OK Date Variabel"
109 InsertFieldsAuthorDraw
116 InsertFieldsPageNumberDraw
118 printlog "OK Page number"
124 WaitSlot (1000) 'sleep 1
125 printlog "OK File name"
132 testcase tiInsertSpecialCharacter
135 hTextrahmenErstellen ("This is a testtext",30,40,60,50)
137 InsertSpecialCharacterDraw
139 Kontext "Sonderzeichen"
140 Call DialogTest (Sonderzeichen)
146 testcase tiInsertHyperlink
151 if Hyperlink.exists (5) then
152 Auswahl.MouseDown 50, 5
153 Auswahl.MouseUp 50, 5
154 Auswahl.typekeys "<PAGEDOWN><PAGEUP>"
155 Auswahl.typekeys "<TAB>"
157 Kontext "TabHyperlinkInternet"
159 'Workaround to get rid of a Focusing-problem...
160 NameText.Typekeys "alal <RETURN>"
161 NameText.Typekeys "<MOD1 A><DELETE>"
162 TabHyperlinkInternet.Typekeys "<TAB>", 6
163 TabHyperlinkInternet.Typekeys "<LEFT>", 3
164 'End of workaround...
167 ZielUrl.Settext "http://mahler"
172 warnlog "Failed to open hyperlink ??!!"
177 testcase tiInsertGraphic
179 InsertGraphicsFromFile
182 Kontext "GrafikEinfuegenDlg"
186 Warnlog "Linking grafik doesn't work :-("
188 if Preview.exists then
191 Warnlog "Preview of graphic doesn't work :-("
193 DialogTest (GrafikEinfuegenDlg)
195 Dateiname.settext Convertpath (gTesttoolPath + "global\input\graf_inp\stabler.tif")
198 Warnlog "Insert graphic doesn't work :-("
204 testcase tiInsertObjectSound
205 goto endsub ' disabled for final, because always wrong (TZ 01/2002)
212 ' Call Dialogtest (OeffnenDlg) ' just be sure to check one pth and one open dialog : TZ 28.11.201
216 printlog "'Insert -> Object -> Sound' not available. TestDevelopmentInProgress (TDIP) ;-)"
221 testcase tiInsertObjectVideo
228 ' Call Dialogtest (OeffnenDlg)
232 printlog "'Insert -> Object -> Video' not available. (TDIP) ;-)"
237 testcase tiInsertChart
242 if Messagebox.Exists then
243 Warnlog Messagebox.GetText
252 testcase tiInsertObjectOLEObjects
254 InsertObjectOLEObject
255 Kontext "OLEObjektEinfuegen"
256 ' Call Dialogtest ( OLEObjektEinfuegen )
257 ' NeuErstellen.Check ' is default value
258 Call DialogTest (OLEObjektEinfuegen, 1)
259 AusDateiErstellen.Check
260 Call DialogTest (OLEObjektEinfuegen, 2)
264 Kontext "OLEObjektEinfuegen"
265 OLEObjektEinfuegen.Cancel
270 testcase tiInsertSpreadsheet
271 if gtSYSName = "Linux" then
272 printlog "Linux = wont test tiInsertSpreadsheet"
278 InsertSpreadsheetDraw
281 if Messagebox.Exists (5) then
282 Warnlog Messagebox.GetText
288 hTypekeys "<Tab><Delete>"
293 testcase tiInsertFormula
295 InsertObjectFormulaDraw
298 if Messagebox.Exists then
299 Warnlog Messagebox.GetText
305 hTypekeys "<Tab><Delete>"
309 testcase tiInsertFloatingFrame
313 Kontext "TabEigenschaften"
314 Dialogtest (TabEigenschaften)
319 Kontext "TabEigenschaften"
320 TabEigenschaften.Cancel
324 testcase tiInsertFile
330 ' Call Dialogtest ( OeffnenDLG )
335 testcase tiInsertPlugin
338 Kontext "PluginEinfuegen"
339 if PluginEinfuegen.exists (5) then
340 call Dialogtest (PluginEinfuegen)
344 if Messagebox.Exists (5) Then
345 Warnlog Messagebox.GetText
348 printlog "No Messagebox :-)"
351 if OeffnenDlG.exists (5) then
355 Kontext "PluginEinfuegen"
356 if PluginEinfuegen.exists (5) then PluginEinfuegen.Cancel
358 warnlog "Insert Plugin does not work :-("
363 testcase tiInsertScan
366 InsertScanRequest ' as long as there is no scanner available, nothing happens
368 InsertScanSelectSource
370 printlog "Not testable, not translatable, just callable, because of systemdialog :-("
374 testcase tiInsertSnappointLine
377 Kontext "NeuesFangobjekt"
378 DialogTest ( NeuesFangobjekt )
379 NeuesFangobjekt.Cancel
384 testcase tdInsertLayer
389 Kontext "EbeneEinfuegenDlg"
390 DialogTest ( EbeneEinfuegenDlg )
391 EbeneEinfuegenDlg.Cancel