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: wizard_agenda.inc,v $
13 '* last change: $Author: rt $ $Date: 2008-08-01 09:48:01 $
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 : joerg.skottke@sun.com
36 '* short description : Update test for agenda wizard
38 '\******************************************************************************
40 testcase tUpdtWizardAgenda
45 dim cTemplateName as string
46 dim cTemplatePath as string
48 ' Build the filename we want to save the template as.
49 cTemplateName = "FWK-Testtool-Template-AgendaWizard.ott"
50 cTemplatePath = gOfficePath & "user\template\" & cTemplateName
51 cTemplatePath = convertpath( cTemplatePath )
56 kontext "AutopilotAgenda"
57 if ( AutopilotAgenda.exists( 2 ) ) then
59 printlog( " * Page 1 : Page Design" )
60 Kontext "AutopilotAgenda"
61 call DialogTest( AutopilotAgenda, 1 )
62 PageDesignList.select( 3 )
65 Kontext "AutopilotAgenda"
66 call DialogTest( AutopilotAgenda, 2 )
69 Kontext "AutopilotAgenda"
70 call DialogTest( AutopilotAgenda, 3 )
73 Kontext "AutopilotAgenda"
74 call DialogTest( AutopilotAgenda, 4 )
77 Kontext "AutopilotAgenda"
78 call DialogTest( AutopilotAgenda, 5 )
81 Kontext "AutopilotAgenda"
82 call DialogTest( AutopilotAgenda, 6 )
84 printlog( " * name the template for further usage" )
85 hWaitForObject( TemplateName, 3000 )
86 TemplateName.setText( cTemplateName )
87 hSetTemplateSavePath( cTemplatePath )
91 iErr = hHandleSaveError()
93 kontext "AutopilotAgenda"
97 brc = hDestroyDocument()
99 qaerrorlog( "#i59233# The wizard does not display the new template" )
102 do while( getDocumentCount() > 0 )
103 call hCloseDocument()
107 hDeleteFile( cTemplatePath )
109 warnlog ( "The Agenda wizard did not open/timelimit exceeded" )