From 5c94a8213a881a66aa00c059aa29caf8de0808bc Mon Sep 17 00:00:00 2001 From: Joerg Sievers Date: Mon, 16 Jun 2008 11:19:07 +0000 Subject: Creating clean testautomation modul with changed structure which will be included into the CWS process. --- .../optional/includes/basic_formcontrols.inc | 225 +++++++++++++++++++++ 1 file changed, 225 insertions(+) create mode 100755 testautomation/framework/optional/includes/basic_formcontrols.inc (limited to 'testautomation/framework/optional/includes/basic_formcontrols.inc') diff --git a/testautomation/framework/optional/includes/basic_formcontrols.inc b/testautomation/framework/optional/includes/basic_formcontrols.inc new file mode 100755 index 000000000000..5d7ae8b7045c --- /dev/null +++ b/testautomation/framework/optional/includes/basic_formcontrols.inc @@ -0,0 +1,225 @@ +'encoding UTF-8 Do not remove or change this line! +'************************************************************************** +'* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. +'* +'* Copyright 2008 by Sun Microsystems, Inc. +'* +'* OpenOffice.org - a multi-platform office productivity suite +'* +'* $RCSfile: basic_formcontrols.inc,v $ +'* +'* $Revision: 1.1 $ +'* +'* last change: $Author: jsi $ $Date: 2008-06-16 12:18:13 $ +'* +'* This file is part of OpenOffice.org. +'* +'* OpenOffice.org is free software: you can redistribute it and/or modify +'* it under the terms of the GNU Lesser General Public License version 3 +'* only, as published by the Free Software Foundation. +'* +'* OpenOffice.org is distributed in the hope that it will be useful, +'* but WITHOUT ANY WARRANTY; without even the implied warranty of +'* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +'* GNU Lesser General Public License version 3 for more details +'* (a copy is included in the LICENSE file that accompanied this code). +'* +'* You should have received a copy of the GNU Lesser General Public License +'* version 3 along with OpenOffice.org. If not, see +'* +'* for a copy of the LGPLv3 License. +'* +'/************************************************************************ +'* +'* owner : joerg.skottke@sun.com +'* +'* short description : Basic form-controls +'* +'\****************************************************************************** + +testcase tAllControlsOnDialog( cMajor as string ) + + '///

Basic test for macro controls

+ '///This test opens the applications and creates a basic dialog. + '///+On this dialog all control are inserted, the document is saved and reloaded + '///+to see if the dialog and the controls still exist.

+ + dim iApplication as Integer ' numeric expression for gApplication + dim cApplication as string ' Name of the current application + + dim lsControlNames( 30 ) as string ' list containing the names of the controls + + ' number of controls and the name of the current control + dim iCurrentControl as integer + dim sCurrentControl as string + + ' the workfile and the filter (Tested for 569, 645, 680) + dim sFile as string + + ' errorstatus: if false, something went wrong and the test cancels + ' trying to recover somehow + dim bOpen as boolean + dim brc as boolean + dim irc as integer + + const CMODULE = "tacod" ' abbreviation for tAllControlsOnDialog + + + '///save/load-test for controls on a basic-dialog in all applications + '/// + brc = hDestroyDocument() + + '///check all controls in the saved document + printlog "Open the file again" + '/// + + next iApplication + +endcase + + -- cgit