You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ar...@apache.org on 2012/01/27 02:29:58 UTC

svn commit: r1236486 [39/43] - in /incubator/ooo/devtools/netbeansintegration: ./ build/ build/public-package-jars/ javahelp/ javahelp/org/ javahelp/org/openoffice/ javahelp/org/openoffice/extensions/ javahelp/org/openoffice/extensions/docs/ javahelp/o...

Added: incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/CreateNewDataType.java
URL: http://svn.apache.org/viewvc/incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/CreateNewDataType.java?rev=1236486&view=auto
==============================================================================
--- incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/CreateNewDataType.java (added)
+++ incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/CreateNewDataType.java Fri Jan 27 01:29:33 2012
@@ -0,0 +1,426 @@
+/* ************************************************************************
+ *
+ *  OpenOffice.org - a multi-platform office productivity suite
+ *
+ *  $RCSfile: CreateNewDataType.java,v $
+ *
+ *  $Revision: 1.1 $
+ *
+ *  last change: $Author: sg $ $Date: 2007/09/04 15:09:17 $
+ *
+ *  The Contents of this file are made available subject to
+ *  the terms of GNU Lesser General Public License Version 2.1.
+ *
+ *
+ *    GNU Lesser General Public License Version 2.1
+ *    =============================================
+ *    Copyright 2005 by Sun Microsystems, Inc.
+ *    901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ *    This library is free software; you can redistribute it and/or
+ *    modify it under the terms of the GNU Lesser General Public
+ *    License version 2.1, as published by the Free Software Foundation.
+ *
+ *    This library 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 for more details.
+ *
+ *    You should have received a copy of the GNU Lesser General Public
+ *    License along with this library; if not, write to the Free Software
+ *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ *    MA  02111-1307  USA
+ *
+ ************************************************************************/
+package org.openoffice.extensions.test;
+
+import org.netbeans.jemmy.operators.*;
+import org.netbeans.jemmy.util.NameComponentChooser;
+
+/** Class implementing all necessary methods for handling "Create New Data Type" NbDialog.
+ *
+ * @author Thorsten
+ * @version 1.0
+ */
+public class CreateNewDataType extends JDialogOperator {
+
+    /** Creates new CreateNewDataType that can handle it.
+     */
+    public CreateNewDataType() {
+        super(new NameComponentChooser(new JDialogOperator("Create New Data Type").getName()));
+         
+    }
+
+    private JLabelOperator _lblDataType;
+    private JComboBoxOperator _cboDataType;
+    /**
+     * 
+     */
+    public static final String ITEM_SERVICE = "Service";
+    private JSplitPaneOperator _sppJSplitPane;
+    private JSplitPaneOperator _sppJSplitPane2;
+    private JTextAreaOperator _txtDescription;
+    private JLabelOperator _lblOrgOpenofficeHereUnoComponent1Service;
+    private JButtonOperator _btJButton;
+    private JTableOperator _tabPropertiesTable;
+    private JTreeOperator _treeTreeView$ExplorerTree;
+    private JLabelOperator _lblJLabel;
+    private JButtonOperator _btOK;
+    private JButtonOperator _btCancel;
+    private JButtonOperator _btHelp;
+    private JButtonOperator _btDelete;
+    private JButtonOperator _btNewParameter;
+    private JButtonOperator _btNewFunction;
+    private JButtonOperator _btAddEnum;
+    private JButtonOperator _btAddType;
+    private JButtonOperator _btAddTemplate;
+    private JButtonOperator _btAddMember;
+
+
+    //******************************
+    // Subcomponents definition part
+    //******************************
+
+    /** Tries to find "Data Type" JLabel in this dialog.
+     * @return JLabelOperator
+     */
+    public JLabelOperator lblDataType() {
+        if (_lblDataType==null) {
+            _lblDataType = new JLabelOperator(this, "Data Type");
+        }
+        return _lblDataType;
+    }
+
+    /** Tries to find null JComboBox in this dialog.
+     * @return JComboBoxOperator
+     */
+    public JComboBoxOperator cboDataType() {
+        if (_cboDataType==null) {
+            _cboDataType = new JComboBoxOperator(this);
+        }
+        return _cboDataType;
+    }
+
+    /** Tries to find null JSplitPane in this dialog.
+     * @return JSplitPaneOperator
+     */
+    public JSplitPaneOperator sppJSplitPane() {
+        if (_sppJSplitPane==null) {
+            _sppJSplitPane = new JSplitPaneOperator(this);
+        }
+        return _sppJSplitPane;
+    }
+
+    /** Tries to find null JSplitPane in this dialog.
+     * @return JSplitPaneOperator
+     */
+    public JSplitPaneOperator sppJSplitPane2() {
+        if (_sppJSplitPane2==null) {
+            _sppJSplitPane2 = new JSplitPaneOperator(sppJSplitPane());
+        }
+        return _sppJSplitPane2;
+    }
+
+    /** Tries to find null JTextArea in this dialog.
+     * @return JTextAreaOperator
+     */
+    public JTextAreaOperator txtDescription() {
+        if (_txtDescription==null) {
+            _txtDescription = new JTextAreaOperator(sppJSplitPane2());
+        }
+        return _txtDescription;
+    }
+
+    /** Tries to find "org.openoffice.here.UnoComponent1Service" JLabel in this dialog.
+     * @return JLabelOperator
+     */
+    public JLabelOperator lblOrgOpenofficeHereUnoComponent1Service() {
+        if (_lblOrgOpenofficeHereUnoComponent1Service==null) {
+            _lblOrgOpenofficeHereUnoComponent1Service = new JLabelOperator(sppJSplitPane2(), "org.openoffice.here.UnoComponent1Service");
+        }
+        return _lblOrgOpenofficeHereUnoComponent1Service;
+    }
+
+    /** Tries to find null JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btJButton() {
+        if (_btJButton==null) {
+            _btJButton = new JButtonOperator(sppJSplitPane2());
+        }
+        return _btJButton;
+    }
+
+    /** Tries to find null SheetTable in this dialog.
+     * @return JTableOperator
+     */
+    public JTableOperator tabPropertiesTable() {
+        if (_tabPropertiesTable==null) {
+            _tabPropertiesTable = new JTableOperator(sppJSplitPane2());
+        }
+        return _tabPropertiesTable;
+    }
+
+    /** Tries to find null TreeView$ExplorerTree in this dialog.
+     * @return JTreeOperator
+     */
+    public JTreeOperator treeTreeView$ExplorerTree() {
+        if (_treeTreeView$ExplorerTree==null) {
+            _treeTreeView$ExplorerTree = new JTreeOperator(sppJSplitPane());
+        }
+        return _treeTreeView$ExplorerTree;
+    }
+
+    /** Tries to find " " JLabel in this dialog.
+     * @return JLabelOperator
+     */
+    public JLabelOperator lblJLabel() {
+        if (_lblJLabel==null) {
+            _lblJLabel = new JLabelOperator(this, " ", 1);
+        }
+        return _lblJLabel;
+    }
+
+  /** Tries to find "OK" JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btOK() {
+        if (_btOK==null) {
+            _btOK = new JButtonOperator(this, "OK");
+        }
+        return _btOK;
+    }
+
+    /** Tries to find "Cancel" JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btCancel() {
+        if (_btCancel==null) {
+            _btCancel = new JButtonOperator(this, "Cancel");
+        }
+        return _btCancel;
+    }
+
+    /** Tries to find "Help" JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btHelp() {
+        if (_btHelp==null) {
+            _btHelp = new JButtonOperator(this, "Help");
+        }
+        return _btHelp;
+    }
+
+    /** Tries to find "Delete" JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btDelete() {
+        if (_btDelete==null) {
+            _btDelete = new JButtonOperator(this, "Delete");
+        }
+        return _btDelete;
+    }
+
+    /** Tries to find "New Parameter" JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btNewParameter() {
+        if (_btNewParameter==null) {
+            _btNewParameter = new JButtonOperator(this, "New Parameter");
+        }
+        return _btNewParameter;
+    }
+
+    /** Tries to find "New Function" JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btNewFunction() {
+        if (_btNewFunction==null) {
+            _btNewFunction = new JButtonOperator(this, "New Function");
+        }
+        return _btNewFunction;
+    }
+
+    /** Tries to find "Add Enum" JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btAddEnum() {
+        if (_btAddEnum==null) {
+            _btAddEnum = new JButtonOperator(this, "Add Enum");
+        }
+        return _btAddEnum;
+    }
+
+    /** Tries to find "Add Type" JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btAddType() {
+        if (_btAddType==null) {
+            _btAddType = new JButtonOperator(this, "Add Type");
+        }
+        return _btAddType;
+    }
+
+    /** Tries to find "Add Template" JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btAddTemplate() {
+        if (_btAddTemplate==null) {
+            _btAddTemplate = new JButtonOperator(this, "Add Template");
+        }
+        return _btAddTemplate;
+    }
+
+    /** Tries to find "Add Member" JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btAddMember() {
+        if (_btAddMember==null) {
+            _btAddMember = new JButtonOperator(this, "Add Member");
+        }
+        return _btAddMember;
+    }
+
+    //****************************************
+    // Low-level functionality definition part
+    //****************************************
+
+    /** returns selected item for cboDataType
+     * @return String item
+     */
+    public String getSelectedDataType() {
+        return cboDataType().getSelectedItem().toString();
+    }
+
+    /** selects item for cboDataType
+     * @param item String item
+     */
+    public void selectDataType(String item) {
+        cboDataType().selectItem(item);
+    }
+
+    /** gets text for txtDescription
+     * @return String text
+     */
+    public String getDescription() {
+        return txtDescription().getText();
+    }
+
+    /** sets text for txtDescription
+     * @param text String text
+     */
+    public void setDescription(String text) {
+        txtDescription().setText(text);
+    }
+
+    /** types text for txtDescription
+     * @param text String text
+     */
+    public void typeDescription(String text) {
+        txtDescription().typeText(text);
+    }
+
+    /** clicks on null JButton
+     */
+    public void jButton() {
+        btJButton().push();
+    }
+
+  /** clicks on "OK" JButton
+     */
+    public void ok() {
+        btOK().push();
+    }
+
+    /** clicks on "Cancel" JButton
+     */
+    public void cancel() {
+        btCancel().push();
+    }
+
+    /** clicks on "Help" JButton
+     */
+    public void help() {
+        btHelp().push();
+    }
+
+/** clicks on "Delete" JButton
+     */
+    public void delete() {
+        btDelete().push();
+    }
+
+    /** clicks on "New Parameter" JButton
+     */
+    public void newParameter() {
+        btNewParameter().push();
+    }
+
+    /** clicks on "New Function" JButton
+     */
+    public void newFunction() {
+        btNewFunction().push();
+    }
+
+    /** clicks on "Add Enum" JButton
+     */
+    public void addEnum() {
+        btAddEnum().push();
+    }
+
+    /** clicks on "Add Type" JButton
+     */
+    public void addType() {
+        btAddType().push();
+    }
+
+    /** clicks on "Add Template" JButton
+     */
+    public void addTemplate() {
+        btAddTemplate().push();
+    }
+
+    /** clicks on "Add Member" JButton
+     */
+    public void addMember() {
+        btAddMember().push();
+    }
+
+    //*****************************************
+    // High-level functionality definition part
+    //*****************************************
+
+    /** Performs verification of CreateNewDataType by accessing all its components.
+     */
+    public void verify() {
+        lblDataType();
+        cboDataType();
+        sppJSplitPane();
+        sppJSplitPane2();
+        txtDescription();
+        lblOrgOpenofficeHereUnoComponent1Service();
+        btJButton();
+        tabPropertiesTable();
+        treeTreeView$ExplorerTree();
+        lblJLabel();
+        btOK();
+        btCancel();
+        btHelp();    
+        btDelete();
+        btNewParameter();
+        btNewFunction();
+        btAddEnum();
+        btAddType();
+        btAddTemplate();
+        btAddMember();
+    }
+
+    /** Performs simple test of CreateNewDataType
+    * @param args the command line arguments
+    */
+    public static void main(String args[]) {
+        new CreateNewDataType().verify();
+        System.out.println("CreateNewDataType verification finished.");
+    }
+}
+

Added: incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/NewAddOnStep2Operator.java
URL: http://svn.apache.org/viewvc/incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/NewAddOnStep2Operator.java?rev=1236486&view=auto
==============================================================================
--- incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/NewAddOnStep2Operator.java (added)
+++ incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/NewAddOnStep2Operator.java Fri Jan 27 01:29:33 2012
@@ -0,0 +1,300 @@
+/* ************************************************************************
+ *
+ *  OpenOffice.org - a multi-platform office productivity suite
+ *
+ *  $RCSfile: NewAddOnStep2Operator.java,v $
+ *
+ *  $Revision: 1.1 $
+ *
+ *  last change: $Author: sg $ $Date: 2007/09/04 15:09:18 $
+ *
+ *  The Contents of this file are made available subject to
+ *  the terms of GNU Lesser General Public License Version 2.1.
+ *
+ *
+ *    GNU Lesser General Public License Version 2.1
+ *    =============================================
+ *    Copyright 2005 by Sun Microsystems, Inc.
+ *    901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ *    This library is free software; you can redistribute it and/or
+ *    modify it under the terms of the GNU Lesser General Public
+ *    License version 2.1, as published by the Free Software Foundation.
+ *
+ *    This library 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 for more details.
+ *
+ *    You should have received a copy of the GNU Lesser General Public
+ *    License along with this library; if not, write to the Free Software
+ *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ *    MA  02111-1307  USA
+ *
+ ************************************************************************/
+package org.openoffice.extensions.test;
+
+import org.netbeans.jellytools.NewProjectWizardOperator;
+import org.netbeans.jemmy.operators.*;
+
+/** Class implementing all necessary methods for handling "New Project" NbDialog.
+ *
+ * @author Thorsten
+ * @version 1.0
+ */
+public class NewAddOnStep2Operator extends NewProjectWizardOperator {
+    
+    /**
+     * Creates new NewCalcAddInStep2Operator that can handle it.
+     * public NewCalcAddInStep2Operator() {
+     * super(new NameComponentChooser("dialog0"));
+     * }
+     */
+    
+    
+    
+    private JLabelOperator _lblProjectName;
+    private JTextFieldOperator _txtProjectName;
+    private JLabelOperator _lblMainClassName;
+    private JTextFieldOperator _txtMainClassName;
+    private JLabelOperator _lblJavaPackage;
+    private JTextFieldOperator _txtJavaPackage;
+
+    private JLabelOperator _lblCreatedFiles;
+    
+    private JCheckBoxOperator _cbCreateToolbar;
+    private JCheckBoxOperator _cbCreateMenu;
+    
+    
+    //******************************
+    // Subcomponents definition part
+    //******************************
+    
+    /** Tries to find "Java Package:" JLabel in this dialog.
+     * @return JLabelOperator
+     */
+    public JLabelOperator lblJavaPackage() {
+        if (_lblJavaPackage==null) {
+            String JavaPackage = org.netbeans.jellytools.Bundle.getStringTrimmed("org.openoffice.extensions.projecttemplates.addon.Bundle", "LBL_JavaPackage");
+            // "Java Package:""
+            _lblJavaPackage = new JLabelOperator(this, JavaPackage);
+        }
+        return _lblJavaPackage;
+    }
+    
+    /** Tries to find "Created Files:" JLabel in this dialog.
+     * @return JLabelOperator
+     */
+    public JLabelOperator lblCreatedFiles() {
+        if (_lblCreatedFiles==null) {
+            String CreatedFiles = org.netbeans.jellytools.Bundle.getStringTrimmed("org.openoffice.extensions.projecttemplates.addon.Bundle", "LBL_CreatedFiles");
+            // "Created Files:"
+            _lblCreatedFiles = new JLabelOperator(this, CreatedFiles);
+        }
+        return _lblCreatedFiles;
+    }
+    
+    /** Tries to find "Project Name:" JLabel in this dialog.
+     * @return JLabelOperator
+     */
+    public JLabelOperator lblProjectName() {
+        if (_lblProjectName==null) {
+            String name = org.netbeans.jellytools.Bundle.getStringTrimmed("org.openoffice.extensions.projecttemplates.addon.Bundle", "LBL_ProjectName");
+            // is "Calc Add-In Name:"
+            _lblProjectName = new JLabelOperator(this, name);
+        }
+        return _lblProjectName;
+    }
+    
+    /** Tries to find "Main Class Name:" JLabel in this dialog.
+     * @return JLabelOperator
+     */
+    public JLabelOperator lblMainClassName() {
+        if (_lblMainClassName==null) {
+            String CalcName = org.netbeans.jellytools.Bundle.getStringTrimmed("org.openoffice.extensions.projecttemplates.addon.Bundle", "LBL_MainClassName");
+            // is "Calc Add-In Name:"
+            _lblMainClassName = new JLabelOperator(this, CalcName);
+        }
+        return _lblMainClassName;
+    }
+    
+    /** Tries to find "Create Toolbar" JCheckBox in this dialog.
+     * @return JCheckBoxOperator
+     */
+    public JCheckBoxOperator cbCreateToolbar() {
+        if (_cbCreateToolbar==null) {
+            String Backward = org.netbeans.jellytools.Bundle.getStringTrimmed("org.openoffice.extensions.projecttemplates.addon.Bundle", "LBL_CreateToolbar");
+            //"Create backward compatible Calc Add-In"
+            _cbCreateToolbar = new JCheckBoxOperator(this, Backward);
+        }
+        return _cbCreateToolbar;
+    }
+    
+    /** Tries to find "Create Menu" JCheckBox in this dialog.
+     * @return JCheckBoxOperator
+     */
+    public JCheckBoxOperator cbCreateMenu() {
+        if (_cbCreateMenu==null) {
+            String Backward = org.netbeans.jellytools.Bundle.getStringTrimmed("org.openoffice.extensions.projecttemplates.addon.Bundle", "LBL_CreateMenu");
+            //"Create backward compatible Calc Add-In"
+            _cbCreateMenu = new JCheckBoxOperator(this, Backward);
+        }
+        return _cbCreateMenu;
+    }
+    
+    /** Tries to find null JTextField in this dialog.
+     * @return JTextFieldOperator
+     */
+    public JTextFieldOperator txtProjectName() {
+        if (_txtProjectName==null) {
+            
+//            for (int i = 0; i < 5; i++) {
+//                _txtProjectName = new JTextFieldOperator(this, i);
+//                System.out.println("Text " + i + ": " + _txtProjectName.getText());
+//            }
+            
+//              JTextFieldOperator d = new JTextFieldOperator((JTextField)a.getLabelFor());
+            _txtProjectName = new JTextFieldOperator(this, 2);
+        }
+        return _txtProjectName;
+    }
+    
+    /** Tries to find null JTextField in this dialog.
+     * @return JTextFieldOperator
+     */
+    public JTextFieldOperator txtMainClassName() {
+        if (_txtMainClassName==null) {
+//              JTextFieldOperator d = new JTextFieldOperator((JTextField)a.getLabelFor());
+            _txtMainClassName = new JTextFieldOperator(this, 3);
+        }
+        return _txtMainClassName;
+    }
+    
+    /** Tries to find null JTextField in this dialog.
+     * @return JTextFieldOperator
+     */
+    public JTextFieldOperator txtJavaPackage() {
+        if (_txtJavaPackage==null) {
+            _txtJavaPackage = new JTextFieldOperator(this, 0);
+        }
+        return _txtJavaPackage;
+    }
+    
+    
+    //****************************************
+    // Low-level functionality definition part
+    //****************************************
+    
+    /** checks or unchecks given JCheckBox
+     * @param state boolean requested state
+     */
+    public void checkCreateToolbar(boolean state) {
+        if (cbCreateToolbar().isSelected()!=state) {
+            cbCreateToolbar().push();
+        }
+    }
+    
+    /** checks or unchecks given JCheckBox
+     * @param state boolean requested state
+     */
+    public void checkCreateMenu(boolean state) {
+        if (cbCreateMenu().isSelected()!=state) {
+            cbCreateMenu().push();
+        }
+    }
+    
+    /** gets text for txtCalcAddInName
+     * @return String text
+     */
+    public String getProjectName() {
+        return txtProjectName().getText();
+    }
+    
+    /** sets text for txtCalcAddInName
+     * @param text String text
+     */
+    public void setProjectName(String text) {
+        txtProjectName().setText(text);
+    }
+    
+    /** types text for txtCalcAddInName
+     * @param text String text
+     */
+    public void typeProjectName(String text) {
+        txtProjectName().typeText(text);
+    }
+    
+    /** gets text for txtCalcAddInName
+     * @return String text
+     */
+    public String getMainClassName() {
+        return txtMainClassName().getText();
+    }
+    
+    /** sets text for txtCalcAddInName
+     * @param text String text
+     */
+    public void setMainClassName(String text) {
+        txtMainClassName().setText(text);
+    }
+    
+    /** types text for txtCalcAddInName
+     * @param text String text
+     */
+    public void typeMainClassName(String text) {
+        txtMainClassName().typeText(text);
+    }
+    
+    /** gets text for txtJavaPackage
+     * @return String text
+     */
+    public String getJavaPackage() {
+        return txtJavaPackage().getText();
+    }
+    
+    /** sets text for txtJavaPackage
+     * @param text String text
+     */
+    public void setJavaPackage(String text) {
+        txtJavaPackage().setText(text);
+    }
+    
+    /** types text for txtJavaPackage
+     * @param text String text
+     */
+    public void typeJavaPackage(String text) {
+        txtJavaPackage().typeText(text);
+    }
+    
+    
+    //*****************************************
+    // High-level functionality definition part
+    //*****************************************
+    
+    /**
+     * Performs verification of NewCalcAddInStep2Operator by accessing all its components.
+     */
+    public void verify() {
+        lblJavaPackage();
+        lblCreatedFiles();
+        lblProjectName();
+        lblMainClassName();
+        cbCreateMenu();
+        cbCreateToolbar();
+        txtProjectName();
+        txtMainClassName();
+        txtJavaPackage();
+    }
+    
+    /**
+     * Performs simple test of NewCalcAddInStep2Operator
+     *
+     *
+     * @param args the command line arguments
+     */
+    public static void main(String args[]) {
+        new NewCalcAddInStep2Operator().verify();
+        System.out.println("NewProject2 verification finished.");
+    }
+}
+

Added: incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/NewAddOnStep3Operator.java
URL: http://svn.apache.org/viewvc/incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/NewAddOnStep3Operator.java?rev=1236486&view=auto
==============================================================================
--- incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/NewAddOnStep3Operator.java (added)
+++ incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/NewAddOnStep3Operator.java Fri Jan 27 01:29:33 2012
@@ -0,0 +1,345 @@
+/* ************************************************************************
+ *
+ *  OpenOffice.org - a multi-platform office productivity suite
+ *
+ *  $RCSfile: NewAddOnStep3Operator.java,v $
+ *
+ *  $Revision: 1.1 $
+ *
+ *  last change: $Author: sg $ $Date: 2007/09/04 15:09:17 $
+ *
+ *  The Contents of this file are made available subject to
+ *  the terms of GNU Lesser General Public License Version 2.1.
+ *
+ *
+ *    GNU Lesser General Public License Version 2.1
+ *    =============================================
+ *    Copyright 2005 by Sun Microsystems, Inc.
+ *    901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ *    This library is free software; you can redistribute it and/or
+ *    modify it under the terms of the GNU Lesser General Public
+ *    License version 2.1, as published by the Free Software Foundation.
+ *
+ *    This library 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 for more details.
+ *
+ *    You should have received a copy of the GNU Lesser General Public
+ *    License along with this library; if not, write to the Free Software
+ *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ *    MA  02111-1307  USA
+ *
+ ************************************************************************/
+package org.openoffice.extensions.test;
+
+import org.netbeans.jellytools.NewProjectWizardOperator;
+import org.netbeans.jemmy.operators.JButtonOperator;
+import org.netbeans.jemmy.operators.JLabelOperator;
+import org.netbeans.jemmy.operators.JSplitPaneOperator;
+import org.netbeans.jemmy.operators.JTableOperator;
+import org.netbeans.jemmy.operators.JTextAreaOperator;
+
+/** Class implementing all necessary methods for handling "New Project" NbDialog.
+ *
+ * @author Thorsten
+ * @version 1.0
+ */
+public class NewAddOnStep3Operator extends NewProjectWizardOperator {
+
+    /**
+     * Creates new NewAddOnStep3Operator that can handle it.
+    public NewAddOnStep3Operator() {
+        super(new NameComponentChooser("dialog0"));
+    }
+   */
+  
+    private JButtonOperator _btUp;
+    private JButtonOperator _btDown;
+    private JSplitPaneOperator _sppJSplitPane;
+    private JSplitPaneOperator _sppJSplitPane2;
+    private JTextAreaOperator _txtDescription;
+    private JLabelOperator _lblTopLevelMenu;
+    private JButtonOperator _btJButton;
+    private JTableOperator _tabPropertiesTable;
+    private JTableOperator _tabTreeTable;
+    private JButtonOperator _btAddCommand;
+    private JButtonOperator _btAddMenu;
+    private JButtonOperator _btAddSeparator;
+    private JButtonOperator _btDelete;
+    private JButtonOperator _btAddLanguage;
+    private JButtonOperator _btDeleteLanguage;
+
+
+    //******************************
+    // Subcomponents definition part
+    //******************************
+
+    /** Tries to find "Up" JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btUp() {
+        if (_btUp==null) {
+            _btUp = new JButtonOperator(this, "Up");
+        }
+        return _btUp;
+    }
+
+    /** Tries to find "Down" JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btDown() {
+        if (_btDown==null) {
+            _btDown = new JButtonOperator(this, "Down");
+        }
+        return _btDown;
+    }
+
+    /** Tries to find null JSplitPane in this dialog.
+     * @return JSplitPaneOperator
+     */
+    public JSplitPaneOperator sppJSplitPane() {
+        if (_sppJSplitPane==null) {
+            _sppJSplitPane = new JSplitPaneOperator(this);
+        }
+        return _sppJSplitPane;
+    }
+
+    /** Tries to find null JSplitPane in this dialog.
+     * @return JSplitPaneOperator
+     */
+    public JSplitPaneOperator sppJSplitPane2() {
+        if (_sppJSplitPane2==null) {
+            _sppJSplitPane2 = new JSplitPaneOperator(sppJSplitPane());
+        }
+        return _sppJSplitPane2;
+    }
+
+    /** Tries to find null JTextArea in this dialog.
+     * @return JTextAreaOperator
+     */
+    public JTextAreaOperator txtDescription2() {
+        if (_txtDescription==null) {
+            _txtDescription = new JTextAreaOperator(sppJSplitPane2());
+        }
+        return _txtDescription;
+    }
+
+    /** Tries to find "Top Level Menu" JLabel in this dialog.
+     * @return JLabelOperator
+     */
+    public JLabelOperator lblTopLevelMenu() {
+        if (_lblTopLevelMenu==null) {
+            _lblTopLevelMenu = new JLabelOperator(sppJSplitPane2(), "Top Level Menu");
+        }
+        return _lblTopLevelMenu;
+    }
+
+    /** Tries to find null JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btJButton() {
+        if (_btJButton==null) {
+            _btJButton = new JButtonOperator(sppJSplitPane2());
+        }
+        return _btJButton;
+    }
+
+    /** Tries to find null SheetTable in this dialog.
+     * @return JTableOperator
+     */
+    public JTableOperator tabPropertiesTable() {
+        if (_tabPropertiesTable==null) {
+            _tabPropertiesTable = new JTableOperator(sppJSplitPane2());
+        }
+        return _tabPropertiesTable;
+    }
+
+    /** Tries to find null TreeTable in this dialog.
+     * @return JTableOperator
+     */
+    public JTableOperator tabTreeTable() {
+        if (_tabTreeTable==null) {
+            _tabTreeTable = new JTableOperator(sppJSplitPane(), 1);
+        }
+        return _tabTreeTable;
+    }
+
+    /** Tries to find "Add Command" JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btAddCommand() {
+        if (_btAddCommand==null) {
+            _btAddCommand = new JButtonOperator(this, "Add Command");
+        }
+        return _btAddCommand;
+    }
+
+    /** Tries to find "Add Menu" JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btAddMenu() {
+        if (_btAddMenu==null) {
+            _btAddMenu = new JButtonOperator(this, "Add Menu");
+        }
+        return _btAddMenu;
+    }
+
+    /** Tries to find "Add Separator" JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btAddSeparator() {
+        if (_btAddSeparator==null) {
+            _btAddSeparator = new JButtonOperator(this, "Add Separator");
+        }
+        return _btAddSeparator;
+    }
+
+    /** Tries to find "Delete" JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btDelete() {
+        if (_btDelete==null) {
+            _btDelete = new JButtonOperator(this, "Delete");
+        }
+        return _btDelete;
+    }
+
+    /** Tries to find "Add Language..." JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btAddLanguage() {
+        if (_btAddLanguage==null) {
+            _btAddLanguage = new JButtonOperator(this, "Add Language...");
+        }
+        return _btAddLanguage;
+    }
+
+    /** Tries to find "Delete Language..." JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btDeleteLanguage() {
+        if (_btDeleteLanguage==null) {
+            _btDeleteLanguage = new JButtonOperator(this, "Delete Language...");
+        }
+        return _btDeleteLanguage;
+    }
+
+
+    //****************************************
+    // Low-level functionality definition part
+    //****************************************
+
+    /** clicks on "Up" JButton
+     */
+    public void up() {
+        btUp().push();
+    }
+
+    /** clicks on "Down" JButton
+     */
+    public void down() {
+        btDown().push();
+    }
+
+    /** gets text for txtDescription
+     * @return String text
+     */
+    public String getDescription() {
+        return txtDescription().getText();
+    }
+
+    /** sets text for txtDescription
+     * @param text String text
+     */
+    public void setDescription(String text) {
+        txtDescription().setText(text);
+    }
+
+    /** types text for txtDescription
+     * @param text String text
+     */
+    public void typeDescription(String text) {
+        txtDescription().typeText(text);
+    }
+
+    /** clicks on null JButton
+     */
+    public void jButton() {
+        btJButton().push();
+    }
+
+    /** clicks on "Add Command" JButton
+     */
+    public void addCommand() {
+        btAddCommand().push();
+    }
+
+    /** clicks on "Add Menu" JButton
+     */
+    public void addMenu() {
+        btAddMenu().push();
+    }
+
+    /** clicks on "Add Separator" JButton
+     */
+    public void addSeparator() {
+        btAddSeparator().push();
+    }
+
+    /** clicks on "Delete" JButton
+     */
+    public void delete() {
+        btDelete().push();
+    }
+
+    /** clicks on "Add Language..." JButton
+     */
+    public void addLanguage() {
+        btAddLanguage().push();
+    }
+
+    /** clicks on "Delete Language..." JButton
+     */
+    public void deleteLanguage() {
+        btDeleteLanguage().push();
+    }
+
+
+    //*****************************************
+    // High-level functionality definition part
+    //*****************************************
+
+    /**
+     * Performs verification of NewAddOnStep3Operator by accessing all its components.
+     */
+    public void verify() {
+/*        btUp();
+        btDown();
+        sppJSplitPane();
+        sppJSplitPane2();
+        txtDescription();
+        lblTopLevelMenu();
+        btJButton();
+        tabPropertiesTable();
+        tabTreeTable();
+        btAddCommand();
+        btAddMenu();
+        btAddSeparator();
+        btDelete();
+        btAddLanguage();
+        btDeleteLanguage(); */
+    }
+
+    /**
+     * Performs simple test of NewAddOnStep3Operator
+     * 
+     * @param args the command line arguments
+     */
+    public static void main(String args[]) {
+        new NewAddOnStep3Operator().verify();
+        System.out.println("NewProjectDefine verification finished.");
+    }
+}
+

Added: incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/NewAddOnStep4Operator.java
URL: http://svn.apache.org/viewvc/incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/NewAddOnStep4Operator.java?rev=1236486&view=auto
==============================================================================
--- incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/NewAddOnStep4Operator.java (added)
+++ incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/NewAddOnStep4Operator.java Fri Jan 27 01:29:33 2012
@@ -0,0 +1,341 @@
+/* ************************************************************************
+ *
+ *  OpenOffice.org - a multi-platform office productivity suite
+ *
+ *  $RCSfile: NewAddOnStep4Operator.java,v $
+ *
+ *  $Revision: 1.1 $
+ *
+ *  last change: $Author: sg $ $Date: 2007/09/04 15:09:18 $
+ *
+ *  The Contents of this file are made available subject to
+ *  the terms of GNU Lesser General Public License Version 2.1.
+ *
+ *
+ *    GNU Lesser General Public License Version 2.1
+ *    =============================================
+ *    Copyright 2005 by Sun Microsystems, Inc.
+ *    901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ *    This library is free software; you can redistribute it and/or
+ *    modify it under the terms of the GNU Lesser General Public
+ *    License version 2.1, as published by the Free Software Foundation.
+ *
+ *    This library 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 for more details.
+ *
+ *    You should have received a copy of the GNU Lesser General Public
+ *    License along with this library; if not, write to the Free Software
+ *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ *    MA  02111-1307  USA
+ *
+ ************************************************************************/
+package org.openoffice.extensions.test;
+
+import org.netbeans.jellytools.NewProjectWizardOperator;
+import org.netbeans.jemmy.operators.*;
+
+/** Class implementing all necessary methods for handling "New Project" NbDialog.
+ *
+ * @author Thorsten
+ * @version 1.0
+ */
+public class NewAddOnStep4Operator extends NewProjectWizardOperator {
+
+    /**
+     * Creates new NewAddOnStep3Operator that can handle it.
+    public NewAddOnStep3Operator() {
+        super(new NameComponentChooser("dialog0"));
+    }
+   */
+  
+    private JButtonOperator _btLeft;
+    private JButtonOperator _btRight;
+    private JSplitPaneOperator _sppJSplitPane;
+    private JSplitPaneOperator _sppJSplitPane2;
+    private JTextAreaOperator _txtDescription;
+    private JLabelOperator _lblTopLevelMenu;
+    private JButtonOperator _btJButton;
+    private JTableOperator _tabPropertiesTable;
+    private JTableOperator _tabTreeTable;
+    private JButtonOperator _btAddCommand;
+    private JButtonOperator _btAddMenu;
+    private JButtonOperator _btAddSeparator;
+    private JButtonOperator _btDelete;
+    private JButtonOperator _btAddLanguage;
+    private JButtonOperator _btDeleteLanguage;
+
+
+    //******************************
+    // Subcomponents definition part
+    //******************************
+
+    /** Tries to find "Up" JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btUp() {
+        if (_btLeft==null) {
+            _btLeft = new JButtonOperator(this, "Left");
+        }
+        return _btLeft;
+    }
+
+    /** Tries to find "Down" JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btDown() {
+        if (_btRight==null) {
+            _btRight = new JButtonOperator(this, "Right");
+        }
+        return _btRight;
+    }
+
+    /** Tries to find null JSplitPane in this dialog.
+     * @return JSplitPaneOperator
+     */
+    public JSplitPaneOperator sppJSplitPane() {
+        if (_sppJSplitPane==null) {
+            _sppJSplitPane = new JSplitPaneOperator(this);
+        }
+        return _sppJSplitPane;
+    }
+
+    /** Tries to find null JSplitPane in this dialog.
+     * @return JSplitPaneOperator
+     */
+    public JSplitPaneOperator sppJSplitPane2() {
+        if (_sppJSplitPane2==null) {
+            _sppJSplitPane2 = new JSplitPaneOperator(sppJSplitPane());
+        }
+        return _sppJSplitPane2;
+    }
+
+    /** Tries to find null JTextArea in this dialog.
+     * @return JTextAreaOperator
+     */
+    public JTextAreaOperator txtDescription2() {
+        if (_txtDescription==null) {
+            _txtDescription = new JTextAreaOperator(sppJSplitPane2());
+        }
+        return _txtDescription;
+    }
+
+    /** Tries to find "Top Level Menu" JLabel in this dialog.
+     * @return JLabelOperator
+     */
+    public JLabelOperator lblTopLevelMenu() {
+        if (_lblTopLevelMenu==null) {
+            _lblTopLevelMenu = new JLabelOperator(sppJSplitPane2(), "Top Level Menu");
+        }
+        return _lblTopLevelMenu;
+    }
+
+    /** Tries to find null JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btJButton() {
+        if (_btJButton==null) {
+            _btJButton = new JButtonOperator(sppJSplitPane2());
+        }
+        return _btJButton;
+    }
+
+    /** Tries to find null SheetTable in this dialog.
+     * @return JTableOperator
+     */
+    public JTableOperator tabPropertiesTable() {
+        if (_tabPropertiesTable==null) {
+            _tabPropertiesTable = new JTableOperator(sppJSplitPane2());
+        }
+        return _tabPropertiesTable;
+    }
+
+    /** Tries to find null TreeTable in this dialog.
+     * @return JTableOperator
+     */
+    public JTableOperator tabTreeTable() {
+        if (_tabTreeTable==null) {
+            _tabTreeTable = new JTableOperator(sppJSplitPane(), 1);
+        }
+        return _tabTreeTable;
+    }
+
+    /** Tries to find "Add Command" JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btAddCommand() {
+        if (_btAddCommand==null) {
+            _btAddCommand = new JButtonOperator(this, "Add Command");
+        }
+        return _btAddCommand;
+    }
+
+    /** Tries to find "Add Menu" JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btAddMenu() {
+        if (_btAddMenu==null) {
+            _btAddMenu = new JButtonOperator(this, "Add Menu");
+        }
+        return _btAddMenu;
+    }
+
+    /** Tries to find "Add Separator" JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btAddSeparator() {
+        if (_btAddSeparator==null) {
+            _btAddSeparator = new JButtonOperator(this, "Add Separator");
+        }
+        return _btAddSeparator;
+    }
+
+    /** Tries to find "Delete" JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btDelete() {
+        if (_btDelete==null) {
+            _btDelete = new JButtonOperator(this, "Delete");
+        }
+        return _btDelete;
+    }
+
+    /** Tries to find "Add Language..." JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btAddLanguage() {
+        if (_btAddLanguage==null) {
+            _btAddLanguage = new JButtonOperator(this, "Add Language...");
+        }
+        return _btAddLanguage;
+    }
+
+    /** Tries to find "Delete Language..." JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btDeleteLanguage() {
+        if (_btDeleteLanguage==null) {
+            _btDeleteLanguage = new JButtonOperator(this, "Delete Language...");
+        }
+        return _btDeleteLanguage;
+    }
+
+
+    //****************************************
+    // Low-level functionality definition part
+    //****************************************
+
+    /** clicks on "Up" JButton
+     */
+    public void up() {
+        btUp().push();
+    }
+
+    /** clicks on "Down" JButton
+     */
+    public void down() {
+        btDown().push();
+    }
+
+    /** gets text for txtDescription
+     * @return String text
+     */
+    public String getDescription() {
+        return txtDescription().getText();
+    }
+
+    /** sets text for txtDescription
+     * @param text String text
+     */
+    public void setDescription(String text) {
+        txtDescription().setText(text);
+    }
+
+    /** types text for txtDescription
+     * @param text String text
+     */
+    public void typeDescription(String text) {
+        txtDescription().typeText(text);
+    }
+
+    /** clicks on null JButton
+     */
+    public void jButton() {
+        btJButton().push();
+    }
+
+    /** clicks on "Add Command" JButton
+     */
+    public void addCommand() {
+        btAddCommand().push();
+    }
+
+    /** clicks on "Add Menu" JButton
+     */
+    public void addMenu() {
+        btAddMenu().push();
+    }
+
+    /** clicks on "Add Separator" JButton
+     */
+    public void addSeparator() {
+        btAddSeparator().push();
+    }
+
+    /** clicks on "Delete" JButton
+     */
+    public void delete() {
+        btDelete().push();
+    }
+
+    /** clicks on "Add Language..." JButton
+     */
+    public void addLanguage() {
+        btAddLanguage().push();
+    }
+
+    /** clicks on "Delete Language..." JButton
+     */
+    public void deleteLanguage() {
+        btDeleteLanguage().push();
+    }
+
+
+    //*****************************************
+    // High-level functionality definition part
+    //*****************************************
+
+    /**
+     * Performs verification of NewAddOnStep3Operator by accessing all its components.
+     */
+    public void verify() {
+/*        btUp();
+        btDown();
+        sppJSplitPane();
+        sppJSplitPane2();
+        txtDescription();
+        lblTopLevelMenu();
+        btJButton();
+        tabPropertiesTable();
+        tabTreeTable();
+        btAddCommand();
+        btAddMenu();
+        btAddSeparator();
+        btDelete();
+        btAddLanguage();
+        btDeleteLanguage(); */
+    }
+
+    /**
+     * Performs simple test of NewAddOnStep3Operator
+     * 
+     * @param args the command line arguments
+     */
+    public static void main(String args[]) {
+        new NewAddOnStep4Operator().verify();
+        System.out.println("NewProjectDefine verification finished.");
+    }
+}
+

Added: incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/NewCalcAddInStep2Operator.java
URL: http://svn.apache.org/viewvc/incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/NewCalcAddInStep2Operator.java?rev=1236486&view=auto
==============================================================================
--- incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/NewCalcAddInStep2Operator.java (added)
+++ incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/NewCalcAddInStep2Operator.java Fri Jan 27 01:29:33 2012
@@ -0,0 +1,243 @@
+/* ************************************************************************
+ *
+ *  OpenOffice.org - a multi-platform office productivity suite
+ *
+ *  $RCSfile: NewCalcAddInStep2Operator.java,v $
+ *
+ *  $Revision: 1.1 $
+ *
+ *  last change: $Author: sg $ $Date: 2007/09/04 15:09:18 $
+ *
+ *  The Contents of this file are made available subject to
+ *  the terms of GNU Lesser General Public License Version 2.1.
+ *
+ *
+ *    GNU Lesser General Public License Version 2.1
+ *    =============================================
+ *    Copyright 2005 by Sun Microsystems, Inc.
+ *    901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ *    This library is free software; you can redistribute it and/or
+ *    modify it under the terms of the GNU Lesser General Public
+ *    License version 2.1, as published by the Free Software Foundation.
+ *
+ *    This library 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 for more details.
+ *
+ *    You should have received a copy of the GNU Lesser General Public
+ *    License along with this library; if not, write to the Free Software
+ *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ *    MA  02111-1307  USA
+ *
+ ************************************************************************/
+package org.openoffice.extensions.test;
+
+import org.netbeans.jellytools.NewProjectWizardOperator;
+import org.netbeans.jemmy.operators.*;
+
+/** Class implementing all necessary methods for handling "New Project" NbDialog.
+ *
+ * @author Thorsten
+ * @version 1.0
+ */
+public class NewCalcAddInStep2Operator extends NewProjectWizardOperator {
+
+    /**
+     * Creates new NewCalcAddInStep2Operator that can handle it.
+         public NewCalcAddInStep2Operator() {
+             super(new NameComponentChooser("dialog0"));
+         }
+     */
+     
+     
+
+    private JLabelOperator _lblJavaPackage;
+    private JLabelOperator _lblCreatedFiles;
+    private JLabelOperator _lblCalcAddInName;
+    private JCheckBoxOperator _cbCreateBackwardCompatibleCalcAddIn;
+    private JTextFieldOperator _txtProjectName;
+    private JTextFieldOperator _txtProjectFolder;
+    private JTextFieldOperator _txtCalcAddInName;
+    private JTextFieldOperator _txtJavaPackage;
+
+
+    //******************************
+    // Subcomponents definition part
+    //******************************
+
+    /** Tries to find "Java Package:" JLabel in this dialog.
+     * @return JLabelOperator
+     */
+    public JLabelOperator lblJavaPackage() {
+        if (_lblJavaPackage==null) {
+            String JavaPackage = org.netbeans.jellytools.Bundle.getStringTrimmed("org.openoffice.extensions.projecttemplates.calcaddin.Bundle", "LB_PackageName");
+            // "Java Package:""
+            _lblJavaPackage = new JLabelOperator(this, JavaPackage);
+        }
+        return _lblJavaPackage;
+    }
+
+    /** Tries to find "Created Files:" JLabel in this dialog.
+     * @return JLabelOperator
+     */
+    public JLabelOperator lblCreatedFiles() {
+        if (_lblCreatedFiles==null) {
+            String CreatedFiles = org.netbeans.jellytools.Bundle.getStringTrimmed("org.openoffice.extensions.projecttemplates.calcaddin.Bundle", "LB_CreatedFiles");
+            // "Created Files:"
+            _lblCreatedFiles = new JLabelOperator(this, CreatedFiles);
+        }
+        return _lblCreatedFiles;
+    }
+
+    /** Tries to find "Calc Add-In Name:" JLabel in this dialog.
+     * @return JLabelOperator
+     */
+    public JLabelOperator lblCalcAddInName() {
+        if (_lblCalcAddInName==null) {
+            String CalcName = org.netbeans.jellytools.Bundle.getStringTrimmed("org.openoffice.extensions.projecttemplates.calcaddin.Bundle", "LB_CalcAddinName");
+            // is "Calc Add-In Name:"
+            _lblCalcAddInName = new JLabelOperator(this, CalcName);
+        }
+        return _lblCalcAddInName;
+    }
+
+    /** Tries to find "Create backward compatible Calc Add-In" JCheckBox in this dialog.
+     * @return JCheckBoxOperator
+     */
+    public JCheckBoxOperator cbCreateBackwardCompatibleCalcAddIn() {
+        if (_cbCreateBackwardCompatibleCalcAddIn==null) {
+            String Backward = org.netbeans.jellytools.Bundle.getStringTrimmed("org.openoffice.extensions.projecttemplates.calcaddin.Bundle", "CB_Backward_Compatibility");
+            //"Create backward compatible Calc Add-In"
+            _cbCreateBackwardCompatibleCalcAddIn = new JCheckBoxOperator(this, Backward);
+        }
+        return _cbCreateBackwardCompatibleCalcAddIn;
+    }
+
+    public JTextFieldOperator txtProjectName() {
+        if (_txtProjectName==null) {
+//              JTextFieldOperator d = new JTextFieldOperator((JTextField)a.getLabelFor());
+            _txtProjectName = new JTextFieldOperator(this, 0);
+        }
+        return _txtProjectName;
+    }
+
+    /** Tries to find null JTextField in this dialog.
+     * @return JTextFieldOperator
+     */
+    public JTextFieldOperator txtProjectFolder() {
+        if (_txtProjectFolder==null) {
+//              JTextFieldOperator d = new JTextFieldOperator((JTextField)a.getLabelFor());
+            _txtProjectFolder = new JTextFieldOperator(this, 5);
+        }
+        return _txtProjectFolder;
+    }
+
+    /** Tries to find null JTextField in this dialog.
+     * @return JTextFieldOperator
+     */
+    public JTextFieldOperator txtCalcAddInName() {
+        if (_txtCalcAddInName==null) {
+//              JTextFieldOperator d = new JTextFieldOperator((JTextField)a.getLabelFor());
+            _txtCalcAddInName = new JTextFieldOperator(this, 1);
+        }
+        return _txtCalcAddInName;
+    }
+
+    /** Tries to find null JTextField in this dialog.
+     * @return JTextFieldOperator
+     */
+    public JTextFieldOperator txtJavaPackage() {
+        if (_txtJavaPackage==null) {
+            _txtJavaPackage = new JTextFieldOperator(this, 2);
+        }
+        return _txtJavaPackage;
+    }
+
+
+    //****************************************
+    // Low-level functionality definition part
+    //****************************************
+
+    /** checks or unchecks given JCheckBox
+     * @param state boolean requested state
+     */
+    public void checkCreateBackwardCompatibleCalcAddIn(boolean state) {
+        if (cbCreateBackwardCompatibleCalcAddIn().isSelected()!=state) {
+            cbCreateBackwardCompatibleCalcAddIn().push();
+        }
+    }
+
+    /** gets text for txtCalcAddInName
+     * @return String text
+     */
+    public String getCalcAddInName() {
+        return txtCalcAddInName().getText();
+    }
+
+    /** sets text for txtCalcAddInName
+     * @param text String text
+     */
+    public void setCalcAddInName(String text) {
+        txtCalcAddInName().setText(text);
+    }
+
+    /** types text for txtCalcAddInName
+     * @param text String text
+     */
+    public void typeCalcAddInName(String text) {
+        txtCalcAddInName().typeText(text);
+    }
+
+    /** gets text for txtJavaPackage
+     * @return String text
+     */
+    public String getJavaPackage() {
+        return txtJavaPackage().getText();
+    }
+
+    /** sets text for txtJavaPackage
+     * @param text String text
+     */
+    public void setJavaPackage(String text) {
+        txtJavaPackage().setText(text);
+    }
+
+    /** types text for txtJavaPackage
+     * @param text String text
+     */
+    public void typeJavaPackage(String text) {
+        txtJavaPackage().typeText(text);
+    }
+
+
+    //*****************************************
+    // High-level functionality definition part
+    //*****************************************
+
+    /**
+     * Performs verification of NewCalcAddInStep2Operator by accessing all its components.
+     */
+    public void verify() {
+        lblJavaPackage();
+        lblCreatedFiles();
+        lblCalcAddInName();
+        cbCreateBackwardCompatibleCalcAddIn();
+        txtCalcAddInName();
+        txtJavaPackage();
+    }
+
+    /**
+     * Performs simple test of NewCalcAddInStep2Operator
+     * 
+     * 
+     * @param args the command line arguments
+     */
+    public static void main(String args[]) {
+        new NewCalcAddInStep2Operator().verify();
+        System.out.println("NewProject2 verification finished.");
+    }
+
+}
+

Added: incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/NewCalcAddInStep3Operator.java
URL: http://svn.apache.org/viewvc/incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/NewCalcAddInStep3Operator.java?rev=1236486&view=auto
==============================================================================
--- incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/NewCalcAddInStep3Operator.java (added)
+++ incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/NewCalcAddInStep3Operator.java Fri Jan 27 01:29:33 2012
@@ -0,0 +1,287 @@
+/* ************************************************************************
+ *
+ *  OpenOffice.org - a multi-platform office productivity suite
+ *
+ *  $RCSfile: NewCalcAddInStep3Operator.java,v $
+ *
+ *  $Revision: 1.1 $
+ *
+ *  last change: $Author: sg $ $Date: 2007/09/04 15:09:17 $
+ *
+ *  The Contents of this file are made available subject to
+ *  the terms of GNU Lesser General Public License Version 2.1.
+ *
+ *
+ *    GNU Lesser General Public License Version 2.1
+ *    =============================================
+ *    Copyright 2005 by Sun Microsystems, Inc.
+ *    901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ *    This library is free software; you can redistribute it and/or
+ *    modify it under the terms of the GNU Lesser General Public
+ *    License version 2.1, as published by the Free Software Foundation.
+ *
+ *    This library 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 for more details.
+ *
+ *    You should have received a copy of the GNU Lesser General Public
+ *    License along with this library; if not, write to the Free Software
+ *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ *    MA  02111-1307  USA
+ *
+ ************************************************************************/
+package org.openoffice.extensions.test;
+
+import org.netbeans.jellytools.NewProjectWizardOperator;
+import org.netbeans.jemmy.operators.*;
+
+/** Class implementing all necessary methods for handling "New Project" NbDialog.
+ *
+ * @author Thorsten
+ * @version 1.0
+ */
+public class NewCalcAddInStep3Operator extends NewProjectWizardOperator {
+
+    /**
+     * Creates new NewCalcAddInStep3Operator that can handle it.
+     *    public NewCalcAddInStep3Operator() {
+     *        super(new NameComponentChooser("dialog0"));
+     *    }
+     */
+
+    private JSplitPaneOperator _sppJSplitPane;
+    private JSplitPaneOperator _sppJSplitPane2;
+    private JTextAreaOperator _txtDescription;
+    private JLabelOperator _lblIntFunction1IntParameter1;
+    private JButtonOperator _btJButton;
+    private JTableOperator _tabPropertiesTable;
+    private JTreeOperator _treeTreeView$ExplorerTree;
+    private JButtonOperator _btAddLanguage;
+    private JButtonOperator _btDelete;
+    private JButtonOperator _btAddParameter;
+    private JButtonOperator _btDeleteLanguage;
+    private JButtonOperator _btAddFunction;
+
+
+    //******************************
+    // Subcomponents definition part
+    //******************************
+
+    /** Tries to find null JSplitPane in this dialog.
+     * @return JSplitPaneOperator
+     */
+    public JSplitPaneOperator sppJSplitPane() {
+        if (_sppJSplitPane==null) {
+            _sppJSplitPane = new JSplitPaneOperator(this);
+        }
+        return _sppJSplitPane;
+    }
+
+    /** Tries to find null JSplitPane in this dialog.
+     * @return JSplitPaneOperator
+     */
+    public JSplitPaneOperator sppJSplitPane2() {
+        if (_sppJSplitPane2==null) {
+            _sppJSplitPane2 = new JSplitPaneOperator(sppJSplitPane());
+        }
+        return _sppJSplitPane2;
+    }
+
+    /** Tries to find null JTextArea in this dialog.
+     * @return JTextAreaOperator
+    public JTextAreaOperator txtDescription() {
+        if (_txtDescription==null) {
+            _txtDescription = new JTextAreaOperator(sppJSplitPane2());
+        }
+        return _txtDescription;
+    }
+     */
+
+    /** Tries to find "int function1(int parameter1);" JLabel in this dialog.
+     * @return JLabelOperator
+     */
+    public JLabelOperator lblIntFunction1IntParameter1() {
+        if (_lblIntFunction1IntParameter1==null) {
+            _lblIntFunction1IntParameter1 = new JLabelOperator(sppJSplitPane2(), "int function1(int parameter1);");
+        }
+        return _lblIntFunction1IntParameter1;
+    }
+
+    /** Tries to find null JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btJButton() {
+        if (_btJButton==null) {
+            _btJButton = new JButtonOperator(sppJSplitPane2());
+        }
+        return _btJButton;
+    }
+
+    /** Tries to find null SheetTable in this dialog.
+     * @return JTableOperator
+     */
+    public JTableOperator tabPropertiesTable() {
+        if (_tabPropertiesTable==null) {
+            _tabPropertiesTable = new JTableOperator(sppJSplitPane2());
+        }
+        return _tabPropertiesTable;
+    }
+
+    /** Tries to find null TreeView$ExplorerTree in this dialog.
+     * @return JTreeOperator
+     */
+    public JTreeOperator treeTreeView$ExplorerTree() {
+        if (_treeTreeView$ExplorerTree==null) {
+            _treeTreeView$ExplorerTree = new JTreeOperator(sppJSplitPane());
+        }
+        return _treeTreeView$ExplorerTree;
+    }
+
+    /** Tries to find "Add Language..." JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btAddLanguage() {
+        if (_btAddLanguage==null) {
+            _btAddLanguage = new JButtonOperator(this, "Add Language...");
+        }
+        return _btAddLanguage;
+    }
+
+    /** Tries to find "Delete" JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btDelete() {
+        if (_btDelete==null) {
+            _btDelete = new JButtonOperator(this, "Delete");
+        }
+        return _btDelete;
+    }
+
+    /** Tries to find "Add Parameter" JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btAddParameter() {
+        if (_btAddParameter==null) {
+            _btAddParameter = new JButtonOperator(this, "Add Parameter");
+        }
+        return _btAddParameter;
+    }
+
+    /** Tries to find "Delete Language..." JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btDeleteLanguage() {
+        if (_btDeleteLanguage==null) {
+            _btDeleteLanguage = new JButtonOperator(this, "Delete Language...");
+        }
+        return _btDeleteLanguage;
+    }
+
+    /** Tries to find "Add Function" JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btAddFunction() {
+        if (_btAddFunction==null) {
+            _btAddFunction = new JButtonOperator(this, "Add Function");
+        }
+        return _btAddFunction;
+    }
+
+
+    //****************************************
+    // Low-level functionality definition part
+    //****************************************
+
+    /** gets text for txtDescription
+     * @return String text
+     */
+    public String getDescription() {
+        return txtDescription().getText();
+    }
+
+    /** sets text for txtDescription
+     * @param text String text
+     */
+    public void setDescription(String text) {
+        txtDescription().setText(text);
+    }
+
+    /** types text for txtDescription
+     * @param text String text
+     */
+    public void typeDescription(String text) {
+        txtDescription().typeText(text);
+    }
+
+    /** clicks on null JButton
+     */
+    public void jButton() {
+        btJButton().push();
+    }
+
+    /** clicks on "Add Language..." JButton
+     */
+    public void addLanguage() {
+        btAddLanguage().push();
+    }
+
+    /** clicks on "Delete" JButton
+     */
+    public void delete() {
+        btDelete().push();
+    }
+
+    /** clicks on "Add Parameter" JButton
+     */
+    public void addParameter() {
+        btAddParameter().push();
+    }
+
+    /** clicks on "Delete Language..." JButton
+     */
+    public void deleteLanguage() {
+        btDeleteLanguage().push();
+    }
+
+    /** clicks on "Add Function" JButton
+     */
+    public void addFunction() {
+        btAddFunction().push();
+    }
+
+
+    //*****************************************
+    // High-level functionality definition part
+    //*****************************************
+
+    /**
+     * Performs verification of NewCalcAddInStep3Operator by accessing all its components.
+     */
+    public void verify() {
+        sppJSplitPane();
+        sppJSplitPane2();
+        txtDescription();
+        lblIntFunction1IntParameter1();
+        btJButton();
+        tabPropertiesTable();
+        treeTreeView$ExplorerTree();
+        btAddLanguage();
+        btDelete();
+        btAddParameter();
+        btDeleteLanguage();
+        btAddFunction();
+    }
+
+    /**
+     * Performs simple test of NewCalcAddInStep3Operator
+     * 
+     * @param args the command line arguments
+     */
+    public static void main(String args[]) {
+        new NewCalcAddInStep3Operator().verify();
+        System.out.println("NewProject3 verification finished.");
+    }
+}
+

Added: incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/NewComponentStep3Operator.java
URL: http://svn.apache.org/viewvc/incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/NewComponentStep3Operator.java?rev=1236486&view=auto
==============================================================================
--- incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/NewComponentStep3Operator.java (added)
+++ incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/NewComponentStep3Operator.java Fri Jan 27 01:29:33 2012
@@ -0,0 +1,232 @@
+/* ************************************************************************
+ *
+ *  OpenOffice.org - a multi-platform office productivity suite
+ *
+ *  $RCSfile: NewComponentStep3Operator.java,v $
+ *
+ *  $Revision: 1.1 $
+ *
+ *  last change: $Author: sg $ $Date: 2007/09/04 15:09:18 $
+ *
+ *  The Contents of this file are made available subject to
+ *  the terms of GNU Lesser General Public License Version 2.1.
+ *
+ *
+ *    GNU Lesser General Public License Version 2.1
+ *    =============================================
+ *    Copyright 2005 by Sun Microsystems, Inc.
+ *    901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ *    This library is free software; you can redistribute it and/or
+ *    modify it under the terms of the GNU Lesser General Public
+ *    License version 2.1, as published by the Free Software Foundation.
+ *
+ *    This library 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 for more details.
+ *
+ *    You should have received a copy of the GNU Lesser General Public
+ *    License along with this library; if not, write to the Free Software
+ *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ *    MA  02111-1307  USA
+ *
+ ************************************************************************/
+package org.openoffice.extensions.test;
+
+import org.netbeans.jellytools.NewProjectWizardOperator;
+import org.netbeans.jemmy.operators.*;
+
+/** Class implementing all necessary methods for handling "New Project" NbDialog.
+ *
+ * @author Thorsten
+ * @version 1.0
+ */
+public class NewComponentStep3Operator extends NewProjectWizardOperator {
+    
+    /** Creates new NewComponentStep3Operator that can handle it.
+     * public NewComponentStep3Operator() {
+     * super(new NameComponentChooser("dialog6"));
+     * }
+     */
+    
+    private JLabelOperator _lblImplementedServicesInterfaces;
+    private JLabelOperator _lblOwnDefinedDataTypes;
+    private JTreeOperator _treeTreeView$ExplorerTree;
+    private JTreeOperator _treeTreeView$ExplorerTree2;
+    private JButtonOperator _btAddServiceInterface;
+    private JButtonOperator _btDefineNewDataType;
+    private JButtonOperator _btEdit;
+    private JButtonOperator _btDeleteSelected;
+    private JButtonOperator _btDeleteSelected2;
+    private JLabelOperator _lblLast;
+    
+    
+    //******************************
+    // Subcomponents definition part
+    //******************************
+    
+    /** Tries to find "Implemented Services/Interfaces" JLabel in this dialog.
+     * @return JLabelOperator
+     */
+    public JLabelOperator lblImplementedServicesInterfaces() {
+        if (_lblImplementedServicesInterfaces==null) {
+            _lblImplementedServicesInterfaces = new JLabelOperator(this, "Implemented Services/Interfaces");
+        }
+        return _lblImplementedServicesInterfaces;
+    }
+    
+    /** Tries to find "Own Defined Data Types" JLabel in this dialog.
+     * @return JLabelOperator
+     */
+    public JLabelOperator lblOwnDefinedDataTypes() {
+        if (_lblOwnDefinedDataTypes==null) {
+            _lblOwnDefinedDataTypes = new JLabelOperator(this, "Own Defined Data Types");
+        }
+        return _lblOwnDefinedDataTypes;
+    }
+    
+    /** Tries to find null TreeView$ExplorerTree in this dialog.
+     * @return JTreeOperator
+     */
+    public JTreeOperator treeTreeView$ExplorerTree() {
+        if (_treeTreeView$ExplorerTree==null) {
+            _treeTreeView$ExplorerTree = new JTreeOperator(this);
+        }
+        return _treeTreeView$ExplorerTree;
+    }
+    
+    /** Tries to find null TreeView$ExplorerTree in this dialog.
+     * @return JTreeOperator
+     */
+    public JTreeOperator treeTreeView$ExplorerTree2() {
+        if (_treeTreeView$ExplorerTree2==null) {
+            _treeTreeView$ExplorerTree2 = new JTreeOperator(this, 1);
+        }
+        return _treeTreeView$ExplorerTree2;
+    }
+    
+    /** Tries to find "Add Service/Interface..." JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btAddServiceInterface() {
+        if (_btAddServiceInterface==null) {
+            _btAddServiceInterface = new JButtonOperator(this, "Add Service/Interface...");
+        }
+        return _btAddServiceInterface;
+    }
+    
+    /** Tries to find "Define New Data Type..." JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btDefineNewDataType() {
+        if (_btDefineNewDataType==null) {
+            _btDefineNewDataType = new JButtonOperator(this, "Define New Data Type...");
+        }
+        return _btDefineNewDataType;
+    }
+    
+    /** Tries to find "Edit..." JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btEdit() {
+        if (_btEdit==null) {
+            _btEdit = new JButtonOperator(this, "Edit...");
+        }
+        return _btEdit;
+    }
+    
+    /** Tries to find "Delete Selected" JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btDeleteSelected() {
+        if (_btDeleteSelected==null) {
+            _btDeleteSelected = new JButtonOperator(this, "Delete Selected");
+        }
+        return _btDeleteSelected;
+    }
+    
+    /** Tries to find "Delete Selected" JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btDeleteSelected2() {
+        if (_btDeleteSelected2==null) {
+            _btDeleteSelected2 = new JButtonOperator(this, "Delete Selected", 1);
+        }
+        return _btDeleteSelected2;
+    }
+    
+    /** Tries to find "last label on dialog" JLabel in this dialog.
+     * @return JLabelOperator
+     */
+    public JLabelOperator lblLast() {
+        if (_lblLast==null) {
+            _lblLast = new JLabelOperator(this, 4);
+        }
+        return _lblLast;
+    }
+    
+    
+    //****************************************
+    // Low-level functionality definition part
+    //****************************************
+    
+    /** clicks on "Add Service/Interface..." JButton
+     */
+    public void addServiceInterface() {
+        btAddServiceInterface().push();
+    }
+    
+    /** clicks on "Define New Data Type..." JButton
+     */
+    public void defineNewDataType() {
+        btDefineNewDataType().push();
+    }
+    
+    /** clicks on "Edit..." JButton
+     */
+    public void edit() {
+        btEdit().push();
+    }
+    
+    /** clicks on "Delete Selected" JButton
+     */
+    public void deleteSelected() {
+        btDeleteSelected().push();
+    }
+    
+    /** clicks on "Delete Selected" JButton
+     */
+    public void deleteSelected2() {
+        btDeleteSelected2().push();
+    }
+    
+    
+    //*****************************************
+    // High-level functionality definition part
+    //*****************************************
+    
+    /** Performs verification of NewComponentStep3Operator by accessing all its components.
+     */
+    public void verify() {
+        lblImplementedServicesInterfaces();
+        lblOwnDefinedDataTypes();
+        treeTreeView$ExplorerTree();
+        treeTreeView$ExplorerTree2();
+        btAddServiceInterface();
+        btDefineNewDataType();
+        btEdit();
+        btDeleteSelected();
+        btDeleteSelected2();
+        lblLast();
+    }
+    
+    /** Performs simple test of NewComponentStep3Operator
+     * @param args the command line arguments
+     */
+    public static void main(String args[]) {
+        new NewComponentStep3Operator().verify();
+        System.out.println("NewComponentStep3Operator verification finished.");
+    }
+}
+

Added: incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/Options.java
URL: http://svn.apache.org/viewvc/incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/Options.java?rev=1236486&view=auto
==============================================================================
--- incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/Options.java (added)
+++ incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/Options.java Fri Jan 27 01:29:33 2012
@@ -0,0 +1,219 @@
+/* ************************************************************************
+ *
+ *  OpenOffice.org - a multi-platform office productivity suite
+ *
+ *  $RCSfile: Options.java,v $
+ *
+ *  $Revision: 1.2 $
+ *
+ *  last change: $Author: sg $ $Date: 2008/07/31 15:47:42 $
+ *
+ *  The Contents of this file are made available subject to
+ *  the terms of GNU Lesser General Public License Version 2.1.
+ *
+ *
+ *    GNU Lesser General Public License Version 2.1
+ *    =============================================
+ *    Copyright 2005 by Sun Microsystems, Inc.
+ *    901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ *    This library is free software; you can redistribute it and/or
+ *    modify it under the terms of the GNU Lesser General Public
+ *    License version 2.1, as published by the Free Software Foundation.
+ *
+ *    This library 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 for more details.
+ *
+ *    You should have received a copy of the GNU Lesser General Public
+ *    License along with this library; if not, write to the Free Software
+ *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ *    MA  02111-1307  USA
+ *
+ ************************************************************************/
+package org.openoffice.extensions.test;
+
+import org.netbeans.jellytools.OptionsOperator;
+import org.netbeans.jemmy.operators.*;
+
+/** Class implementing all necessary methods for handling "Options" NbDialog.
+ *
+ * @author Thorsten
+ * @version 1.0
+ */
+public class Options extends OptionsOperator {
+
+    
+    private JLabelOperator _lblStarOfficeOpenOfficeOrgExtensions;
+    private JLabelOperator _lblOfficeInstallation;
+    private JLabelOperator _lblSDKInstallation;
+    private JTextFieldOperator _txtSDKInstallation;
+    private JButtonOperator _btSDKInstallation;
+    private JTextFieldOperator _txtOfficeInstallation;
+    private JButtonOperator _btOfficeInstallation;
+
+
+    //******************************
+    // Subcomponents definition part
+    //******************************
+
+    /** Tries to find "StarOffice/OpenOffice.org Extensions" JLabel in this dialog.
+     * @return JLabelOperator
+     */
+    public JLabelOperator lblStarOfficeOpenOfficeOrgExtensions() {
+        if (_lblStarOfficeOpenOfficeOrgExtensions==null) {
+            String category = org.netbeans.jellytools.Bundle.getStringTrimmed("org.openoffice.extensions.config.Bundle", "AdvancedOption_DisplayName");
+            // "StarOffice/OpenOffice.org Extensions"
+            _lblStarOfficeOpenOfficeOrgExtensions = new JLabelOperator(this, category);
+        }
+        return _lblStarOfficeOpenOfficeOrgExtensions;
+    }
+
+    /** Tries to find "Office Installation:" JLabel in this dialog.
+     * @return JLabelOperator
+     */
+    public JLabelOperator lblOfficeInstallation() {
+        if (_lblOfficeInstallation==null) {
+            _lblOfficeInstallation = new JLabelOperator(this, "Office Installation:");
+      //      JScrollPaneOperator a = new JScrollPaneOperator(this, 1);
+        }
+        return _lblOfficeInstallation;
+    }
+
+    /** Tries to find "SDK Installation:" JLabel in this dialog.
+     * @return JLabelOperator
+     */
+    public JLabelOperator lblSDKInstallation() {
+        if (_lblSDKInstallation==null) {
+            _lblSDKInstallation = new JLabelOperator(this, "SDK Installation:");
+        }
+        return _lblSDKInstallation;
+    }
+
+    /** Tries to find null JTextField in this dialog.
+     * @return JTextFieldOperator
+     */
+    public JTextFieldOperator txtSDKInstallation() {
+        if (_txtSDKInstallation==null) {
+            _txtSDKInstallation = new JTextFieldOperator(this);
+        }
+        return _txtSDKInstallation;
+    }
+
+    /** Tries to find "Browse..." JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btSDKInstallation() {
+        if (_btSDKInstallation==null) {
+            _btSDKInstallation = new JButtonOperator(this, "Browse...");
+        }
+        return _btSDKInstallation;
+    }
+
+    /** Tries to find null JTextField in this dialog.
+     * @return JTextFieldOperator
+     */
+    public JTextFieldOperator txtOfficeInstallation() {
+        if (_txtOfficeInstallation==null) {
+            _txtOfficeInstallation = new JTextFieldOperator(this, 1);
+        }
+        return _txtOfficeInstallation;
+    }
+
+    /** Tries to find "Browse..." JButton in this dialog.
+     * @return JButtonOperator
+     */
+    public JButtonOperator btOfficeInstallation() {
+        if (_btOfficeInstallation==null) {
+            _btOfficeInstallation = new JButtonOperator(this, "Browse...", 1);
+        }
+        return _btOfficeInstallation;
+    }
+
+
+    //****************************************
+    // Low-level functionality definition part
+    //****************************************
+
+    /** gets text for txtSDKInstallation
+     * @return String text
+     */
+    public String getSDKInstallation() {
+        return txtSDKInstallation().getText();
+    }
+
+    /** sets text for txtSDKInstallation
+     * @param text String text
+     */
+    public void setSDKInstallation(String text) {
+        txtSDKInstallation().setText(text);
+    }
+
+    /** types text for txtSDKInstallation
+     * @param text String text
+     */
+    public void typeSDKInstallation(String text) {
+        txtSDKInstallation().typeText(text);
+    }
+
+    /** clicks on "Browse..." JButton
+     */
+    public void sDKInstallation() {
+        btSDKInstallation().push();
+    }
+
+    /** gets text for txtOfficeInstallation
+     * @return String text
+     */
+    public String getOfficeInstallation() {
+        return txtOfficeInstallation().getText();
+    }
+
+    /** sets text for txtOfficeInstallation
+     * @param text String text
+     */
+    public void setOfficeInstallation(String text) {
+        txtOfficeInstallation().setText(text);
+    }
+
+    /** types text for txtOfficeInstallation
+     * @param text String text
+     */
+    public void typeOfficeInstallation(String text) {
+        txtOfficeInstallation().typeText(text);
+    }
+
+    /** clicks on "Browse..." JButton
+     */
+    public void officeInstallation() {
+        btOfficeInstallation().push();
+    }
+
+
+    //*****************************************
+    // High-level functionality definition part
+    //*****************************************
+
+    /** Performs verification of Options by accessing all its components.
+     */
+    @Override
+    public void verify() {
+        lblStarOfficeOpenOfficeOrgExtensions();
+        lblOfficeInstallation();
+        lblSDKInstallation();
+        txtSDKInstallation();
+        btSDKInstallation();
+        txtOfficeInstallation();
+        btOfficeInstallation();
+    }
+
+    /** Performs simple test of Options
+    * @param args the command line arguments
+    */
+    public static void main(String args[]) {
+        new Options().verify();
+        System.out.println("Options verification finished.");
+    }
+}
+

Added: incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/PluginInstallationWizardOperator.java
URL: http://svn.apache.org/viewvc/incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/PluginInstallationWizardOperator.java?rev=1236486&view=auto
==============================================================================
--- incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/PluginInstallationWizardOperator.java (added)
+++ incubator/ooo/devtools/netbeansintegration/test/qa-functional/src/org/openoffice/extensions/test/PluginInstallationWizardOperator.java Fri Jan 27 01:29:33 2012
@@ -0,0 +1,100 @@
+/*************************************************************************
+ *
+ *  OpenOffice.org - a multi-platform office productivity suite
+ *
+ *  $RCSfile: PluginInstallationWizardOperator.java,v $
+ *
+ *  $Revision: 1.1 $
+ *
+ *  last change: $Author: sg $ $Date: 2008/07/31 15:47:42 $
+ *
+ *  The Contents of this file are made available subject to
+ *  the terms of GNU Lesser General Public License Version 2.1.
+ *
+ *
+ *    GNU Lesser General Public License Version 2.1
+ *    =============================================
+ *    Copyright 2005 by Sun Microsystems, Inc.
+ *    901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ *    This library is free software; you can redistribute it and/or
+ *    modify it under the terms of the GNU Lesser General Public
+ *    License version 2.1, as published by the Free Software Foundation.
+ *
+ *    This library 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 for more details.
+ *
+ *    You should have received a copy of the GNU Lesser General Public
+ *    License along with this library; if not, write to the Free Software
+ *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ *    MA  02111-1307  USA
+ *
+ ************************************************************************/
+
+package org.openoffice.extensions.test;
+
+import java.awt.Component;
+import javax.swing.JCheckBox;
+import org.netbeans.jellytools.NbDialogOperator;
+import org.netbeans.jellytools.WizardOperator;
+import org.netbeans.jemmy.ComponentChooser;
+import org.netbeans.jemmy.TimeoutExpiredException;
+import org.netbeans.jemmy.Timeouts;
+import org.netbeans.jemmy.operators.JButtonOperator;
+import org.netbeans.jemmy.operators.JCheckBoxOperator;
+
+/**
+ * 
+ * @author sg128468
+ */
+public class PluginInstallationWizardOperator extends WizardOperator {
+
+    public JCheckBoxOperator getAcceptLicenseCheckbox() {
+        return new JCheckBoxOperator(this, new ComponentChooser() {
+            public boolean checkComponent(Component arg0) {
+                // instanceof costs time, but tests are already slow
+                if (arg0 instanceof JCheckBox) {
+                    // works because there is only one checkbox
+                    return true;
+                }
+                return false;
+            }
+            public String getDescription() {
+                return "Search for the license checkbox";
+            }
+        });
+        
+    }
+    
+    public JButtonOperator getButton(String name) {
+        JButtonOperator button = new JButtonOperator(this, name);
+        return button;
+    }
+    
+    /**
+     * Handle validation warning dialog.
+     * TODO: handle better when dialog is not there
+     */
+    public void clickOverValidationWarning() {
+        try {
+            NbDialogOperator valDialog = new NbDialogOperator("Validation Warning");
+            Timeouts out = new Timeouts();
+            out.setTimeout("Validation Dialog", 10000); // wait for 10 seconds
+            valDialog.setTimeouts(out);
+            valDialog.waitComponentVisible(true);
+            if (valDialog.isVisible()) { // when appeared, click.
+                JButtonOperator contnue = new JButtonOperator(valDialog, "Continue");
+                contnue.clickMouse();
+            }
+        }
+        catch(TimeoutExpiredException ex) {
+            // empty by design: plugin is signed, no warning appears
+        }
+    }
+    
+    public PluginInstallationWizardOperator(String title) {
+        super(title);
+    }
+}