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 agenda wizard
32 '\******************************************************************************
34 testcase tUpdtWizardAgenda
36 printlog( "Resource test for the agenda wizard" )
41 dim cTemplateName as string
42 dim cTemplatePath as string
44 ' Build the filename we want to save the template as.
45 cTemplateName = "FWK-Testtool-Template-AgendaWizard.ott"
46 cTemplatePath = gOfficePath & "user\template\" & cTemplateName
47 cTemplatePath = convertpath( cTemplatePath )
52 kontext "AutopilotAgenda"
53 if ( AutopilotAgenda.exists( 2 ) ) then
55 printlog( " * Page 1 : Page Design" )
56 Kontext "AutopilotAgenda"
57 call DialogTest( AutopilotAgenda, 1 )
58 PageDesignList.select( 3 )
59 hClickButton( NextButton )
61 Kontext "AutopilotAgenda"
62 call DialogTest( AutopilotAgenda, 2 )
63 hClickButton( NextButton )
65 Kontext "AutopilotAgenda"
66 call DialogTest( AutopilotAgenda, 3 )
67 hClickButton( NextButton )
69 Kontext "AutopilotAgenda"
70 call DialogTest( AutopilotAgenda, 4 )
71 hClickButton( NextButton )
73 Kontext "AutopilotAgenda"
74 call DialogTest( AutopilotAgenda, 5 )
75 hClickButton( NextButton )
77 Kontext "AutopilotAgenda"
78 call DialogTest( AutopilotAgenda, 6 )
80 printlog( " * name the template for further usage" )
81 hWaitForObject( TemplateName, 3000 )
82 TemplateName.setText( cTemplateName )
83 hSetTemplateSavePath( cTemplatePath )
85 kontext "AutopilotAgenda"
86 hClickButton( CreateButton )
88 if ( hHandleSaveError() = 1 ) then
89 kontext "AutopilotAgenda"
90 hClickButton( CreateButton )
93 if ( not hDestroyDocument() ) then qaerrorlog( "#i59233# The wizard does not display the new template" )
96 hDeleteFile( cTemplatePath )
98 warnlog ( "The Agenda wizard did not open/timelimit exceeded" )