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 : gregor.hartmann@oracle.com
30 '* short description : Update test for the Basic Organizer dialog
32 '\******************************************************************************
34 testcase tUpdtBasicOrganizer
36 printlog( "Update test for the Basic Organizer dialog" )
38 dim cTempString as string
39 const TESTLIB = "zzzz"
41 printlog( "Open a new document" )
44 printlog( "Open the Basic Macro Organizer" )
48 if ( not makro.exists() ) then
49 warnlog( "Macro Organizer is not open, aborting test" )
53 printlog( "Successfully opened the MacroOrganizer" )
57 printlog( "Click <Organizer> to open the library/modules organizer" )
58 if ( Verwalten.isEnabled() ) then
61 warnlog( "Cannot click the <Organize...> button" )
64 ' Try to recover from previous error
66 if ( not TabModule.exists() ) then
67 printlog( "TabModule is not open, the test cannot continue" )
75 active.setPage TabModule
78 printlog( "Modules Tab" )
79 call DialogTest( TabModule )
81 Modulliste.typeKeys( "<HOME>" )
83 printlog( "New Modules-dialog" )
86 call DialogTest( NeuesModul )
89 warnlog( "There is a problem accessing the NewModule-dialog" )
93 active.setPage( TabDialogs )
96 printlog( "Dialogs Tab" )
97 call DialogTest( TabDialogs )
99 ModuleList.typeKeys( "<HOME>" )
102 printlog( "New Libraries-dialog" )
104 kontext "NeuerDialog"
105 call DialogTest( NeuerDialog )
108 warnlog( "There is a problem accessing the NewModule-dialog" )
112 active.setPage( TabBibliotheken )
114 Kontext "TabBibliotheken"
115 printlog( "Libraries Tab" )
116 call DialogTest( TabBibliotheken )
118 Bibliotheksliste.typeKeys( "<HOME>" )
120 kontext "TabBibliotheken"
122 if ( neu.isEnabled() ) then
123 printlog( "New Library dialog" )
125 kontext "NeueBibliothek"
126 call DialogTest( NeueBibliothek )
127 Bibliotheksname.setText( TESTLIB )
130 warnlog( "There is a problem accessing the New Libraries dialog" )
133 kontext "TabBibliotheken"
134 if ( neu.isEnabled() ) then
136 printlog( "New Library dialog" )
138 kontext "NeueBibliothek"
139 call DialogTest( NeueBibliothek )
140 Bibliotheksname.setText( TESTLIB )
143 warnlog( "There is a problem accessing the New Libraries dialog" )
147 if ( active.exists() ) then
148 printlog( "Closing warning" )
151 warnlog( "Warning missing for duplicate library name" )
154 kontext "TabBibliotheken"
155 printlog( "Export the package" )
158 kontext "ExportBasicLibraryDlg"
159 printlog( "Export as package, click OK" )
160 ExportAsPackage.check()
161 ExportBasicLibraryDlg.ok()
163 kontext "SpeichernDlg"
164 printlog( "Cancel FileSave dialog" )
165 SpeichernDlg.cancel()
167 kontext "TabBibliotheken"
168 printlog( "Export the package" )
171 kontext "ExportBasicLibraryDlg"
172 printlog( "Export as library, click OK" )
173 ExportAsLibrary.check()
174 ExportBasicLibraryDlg.ok()
177 printlog( "Cancel FileOpen dialog" )
180 kontext "TabBibliotheken"
181 if ( passwort.isEnabled() ) then
182 printlog( "Password-Dialog" )
187 warnlog( "There is a problem accessing the Passwords-dialog" )
190 kontext "TabBibliotheken"
191 printlog( "Try to delete the library" )
193 cTempString = BibliotheksListe.getSelText()
194 if ( cTempString = TESTLIB ) then
200 warnlog( "Could not delete the library, name is incorrect: " & cTempString )
203 Kontext "TabBibliotheken"
206 printlog( "Append a new library" )
209 call DialogTest( OeffnenDlg )
212 warnlog( "There is a problem appending a new library" )
215 Kontext "TabBibliotheken"
217 printlog( "Cancel library/modules/dialogs organizer" )
218 TabBibliotheken.cancel()
220 printlog( "Cancel Macro Organizer" )
224 printlog( "Close the document" )