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: wiz_FormWizard.inc,v $
13 '* last change: $Author: jsi $ $Date: 2008-06-16 07:43:42 $
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 : Form Wizard Test
38 '\***********************************************************************
43 call tStartFromTableContextMenu
46 '--------------------------------------------------------------------------------------
49 call fOpenDatabase(gOfficePath + ConvertPath("user/database/biblio.odb"))
55 Database.MouseDown(50,50)
56 Database.MouseUp(50,50)
64 TablesOrQueriesMaster.select 1
65 '/// add the third field
66 printlog "add the third field"
67 AvailableMasterFields.select 3
69 MasterMoveSelected.click
92 printlog "click Finish"
97 call fCloseForm ' should be changed to a CloseReport
102 '--------------------------------------------------------------------------------------
103 testcase tCheckTemplate
105 call fOpenDatabase(gOfficePath + ConvertPath("user/database/biblio.odb"))
111 Database.MouseDown(50,50)
112 Database.MouseUp(50,50)
120 TablesOrQueriesMaster.select 1
121 '/// add the third field
122 printlog "add the third field"
123 AvailableMasterFields.select 5
125 MasterMoveSelected.click
128 printlog "click NEXT"
132 printlog "click NEXT"
135 '/// on the arrange tabpage
136 printlog "on the arrange tabpage"
138 'AlignLeft HID_DLGFORM_CMDALIGNLEFT
139 'AlignRight HID_DLGFORM_CMDALIGNRIGHT
141 '/// click on all arragements
142 printlog "click on all arragements"
144 'FormWizard.TypeKeys("<TAB>",true)
146 'FormWizard.TypeKeys("<LEFT>",true)
148 'FormWizard.TypeKeys("<LEFT>",true)
150 'FormWizard.TypeKeys("<SPACE>",true)
152 'FormWizard.TypeKeys("<RIGHT>",true)
154 'FormWizard.TypeKeys("<SPACE>",true)
156 'FormWizard.TypeKeys("<RIGHT>",true)
158 'FormWizard.TypeKeys("<SPACE>",true)
160 'FormWizard.TypeKeys("<RIGHT>",true)
162 'FormWizard.TypeKeys("<SPACE>",true)
165 'ColumnarLabelsLeft.Click
166 'ColumnarLabelsOnTop.Click
168 'InBlocksLabelsAbove.Click
170 'NoBorder HID_DLGFORM_CMDNOBORDER
171 'ThreeDLook HID_DLGFORM_CMD3DBORDER
172 'FlatLook HID_DLGFORM_CMDSIMPLEBORDER
175 printlog "click NEXT"
179 printlog "click NEXT"
184 dim iCount as integer
187 iCount = PageStyles.getItemCount
190 warnlog "there sould be 10 page styles but there are " + iCount + " page styles."
196 '/// check all field border styles
206 printlog "click NEXT"
210 printlog "click Finish"
215 call fCloseForm ' should be changed to a CloseReport
220 '--------------------------------------------------------------------------------------
221 testcase tStartFromTableContextMenu
223 call fOpenDatabase(gOfficePath + ConvertPath("user/database/biblio.odb"))
227 Database.MouseDown(50,50)
228 Database.MouseUp(50,50)
231 '/// select the table biblio
232 printlog "select the table biblio"
233 call fFindTable("biblio")
235 Kontext "ContainerView"
237 '/// select FormWizard from the table contextmenu
238 printlog "select FormWizard from the table contextmenu"
239 ContainerView.TypeKeys("<SHIFT F10>",true)
242 '/// check if the formwizard appear
243 printlog "check if the formwizard appear"
245 'wait until the FormWizard is started
246 if (FormWizard.exists(5)) then
247 '/// cancel the formwizard
248 printlog "cancel the formwizard"
251 warnlog "The formwizard doesn't appear"
259 '--------------------------------------------------------------------------------------