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: Wizards.inc,v $
13 '* last change: $Author: jsi $ $Date: 2008-06-16 07:43:45 $
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 : marc.neumann@sun.com
36 '* short description : test the Main Wizard Application Window
38 '************************************************************************
45 '\***********************************************************************************
48 printlog "------------------ Wizards.inc ---------------------"
56 '-------------------------------------------------------------------------
57 '-------------------------------------------------------------------------
58 '-------------------------------------------------------------------------
61 hFileOpen( gOfficePath & "user/database/biblio.odb" )
65 Insight.MouseDown(50,50)
66 Insight.MouseUp(50,50)
69 call fStartQueryWizard
74 Dialogtest(QueryWizard)
79 '/// add the third field
80 printlog "add the third field"
81 AvailableFields.select 3
89 Dialogtest(QueryWizard)
94 Dialogtest(QueryWizard)
99 Dialogtest(QueryWizard)
101 printlog "click NEXT"
104 Dialogtest(QueryWizard)
106 printlog "click CANCEL"
112 '-------------------------------------------------------------------------
113 testcase tReportWizard
115 hFileOpen( gOfficePath & "user/database/biblio.odb" )
119 Insight.MouseDown(50,50)
120 Insight.MouseUp(50,50)
127 Kontext "ReportWizard"
128 Dialogtest(ReportWizard)
131 '/// add the third field
132 printlog "add the third field"
133 AvailableFields.select 3
138 printlog "click NEXT"
141 Dialogtest(ReportWizard)
143 printlog "click NEXT"
146 Dialogtest(ReportWizard)
148 printlog "click NEXT"
151 Dialogtest(ReportWizard)
153 printlog "click NEXT"
156 Dialogtest(ReportWizard)
158 printlog "click CANCEL"
164 '-------------------------------------------------------------------------
165 testcase tTableWizard
167 hFileOpen( gOfficePath & "user/database/biblio.odb" )
171 Insight.MouseDown(50,50)
172 Insight.MouseUp(50,50)
183 Kontext "TableWizard"
184 Dialogtest(TableWizard)
189 printlog "click NEXT"
192 Dialogtest(TableWizard)
194 printlog "click NEXT"
197 Dialogtest(TableWizard)
199 printlog "click CANCEL"
205 '-------------------------------------------------------------------------
208 hFileOpen( gOfficePath & "user/database/biblio.odb" )
212 Insight.MouseDown(50,50)
213 Insight.MouseUp(50,50)
221 Dialogtest(FormWizard)
223 TablesOrQueriesMaster.select 1
224 '/// add the third field
225 printlog "add the third field"
226 AvailableMasterFields.select 3
228 MasterMoveSelected.click
231 printlog "click NEXT"
234 Dialogtest(FormWizard)
236 printlog "click CANCEL"