Package org.apache.geronimo.testsuite.common.ui

Examples of org.apache.geronimo.testsuite.common.ui.AbbotHelper$ButtonMultiMatcher


    }

    @Override
    protected void launch(String url) {
        try {
            AbbotHelper abbotHelper = EclipseSeleniumServer.INSTANCE.getAHelper();
            Shell workbenchShell = EclipseSeleniumServer.INSTANCE.getShell();

            abbotHelper.clickMenuItem (workbenchShell,
                    new String[] {"&Window", "Web Browser", "&0 Internal Web Browser"});
            Shell openShell = abbotHelper.clickMenuItem (workbenchShell,
                    new String[] {"&Window", "Show &View", "&Other..."}, "Show View");
            abbotHelper.clickTreeItem (openShell,
                    new String[] {"General", "Internal Web Browser"});
            abbotHelper.clickButton (openShell, IDialogConstants.OK_LABEL);
           
            abbotHelper.setCombo (workbenchShell, url);
            abbotHelper.clickToolItem (workbenchShell, "Go to the selected URL");
            abbotHelper.waitTime (AbbotHelper.WAIT_LONG);
        } catch ( Exception e ) {
            e.printStackTrace();
        }
    }
View Full Code Here


     * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
     */
    public void start (BundleContext context) throws Exception {
        super.start (context);
        Shell workbenchShell = WorkbenchUtilities.getWorkbenchWindow().getShell();
        AbbotHelper aHelper = new AbbotHelper (workbenchShell);
        seleniumServer = new EclipseSeleniumServer (aHelper, workbenchShell);
        try {
            SafeRunner.run (seleniumServer);
            Thread.sleep(5000);
//          new Exception("sdsfsdf").printStackTrace();
View Full Code Here

    }

    public void testEclipseUI()
    {
        workbenchShell = WorkbenchUtilities.getWorkbenchWindow().getShell();
        abbotHelper = new AbbotHelper(workbenchShell);
        serverTasks = new ServerTasks(workbenchShell, abbotHelper, Constants.SERVER_V22 );
        workbenchTasks = new WorkbenchTasks(workbenchShell, abbotHelper);

        System.out.println("initial validation and set up");
        // run simple test case to make sure that Geronimo was intalled
View Full Code Here

    public boolean createPojoProject() {
        boolean success = true;
        try {
            workbenchShell = WorkbenchUtilities.getWorkbenchWindow().getShell();
            abbotHelper = new AbbotHelper(workbenchShell);

            abbotHelper.clickMenuItem (workbenchShell,new String[] {"&Window", "&Close Perspective"});
            Shell perspectiveShell = abbotHelper.clickMenuItem (workbenchShell,
                                                            new String[] {"&Window", "&Open Perspective", "&Other..."},
                                                            "Open Perspective");
View Full Code Here

    // in the testAllGeronimoGUI method.
    public void testAllGeronimoGUI() {
        boolean success = false;
        try {
            workbenchShell = WorkbenchUtilities.getWorkbenchWindow().getShell();
            aHelper = new AbbotHelper (workbenchShell);

            ServerTasks serverTasks = new ServerTasks(workbenchShell, aHelper, Constants.SERVER_V21 );
            WorkbenchTasks workbenchTasks = new WorkbenchTasks(workbenchShell, aHelper);
           
            // so we are sure that we are looking in the desired perspective
View Full Code Here

     * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
     */
    public void start(BundleContext context) throws Exception {
        super.start(context);
        Shell workbenchShell = WorkbenchUtilities.getWorkbenchWindow().getShell();
        AbbotHelper aHelper = new AbbotHelper (workbenchShell);
        seleniumServer = new EclipseSeleniumServer(aHelper, workbenchShell);
        try {
            SafeRunner.run( seleniumServer );
            Thread.sleep(5000);
//          new Exception("sdsfsdf").printStackTrace();
View Full Code Here

    public void createPojoProject()
    {
        try {
            aShell = WorkbenchUtilities.getWorkbenchWindow().getShell();
            aHelper = new AbbotHelper(aShell);
            ServerTasks serverTasks = new ServerTasks(aShell, aHelper, Constants.SERVER_V21 );
            serverTasks.createServer();
            aHelper.clickMenuItem (aShell,new String[] {"&Window", "&Close Perspective"});
            Shell perspectiveShell = aHelper.clickMenuItem (aShell,
                                                            new String[] {"&Window", "&Open Perspective", "&Other..."},
View Full Code Here

    // in the testAllGeronimoGUI method.
    public void testAllGeronimoGUI() {
        boolean success = false;
        try {
            workbenchShell = WorkbenchUtilities.getWorkbenchWindow().getShell();
            aHelper = new AbbotHelper (workbenchShell);
           
            ServerTasks serverTasks = new ServerTasks(workbenchShell, aHelper, Constants.SERVER_V21 );
            WorkbenchTasks workbenchTasks = new WorkbenchTasks(workbenchShell, aHelper);
            ProjectTasks projectTasks = new ProjectTasks(workbenchShell, aHelper);
           
View Full Code Here

    public void createPojoProject()
    {
        try {
            aShell = WorkbenchUtilities.getWorkbenchWindow().getShell();
            aHelper = new AbbotHelper(aShell);
            ServerTasks serverTasks = new ServerTasks(aShell, aHelper, Constants.SERVER_V20 );
            serverTasks.createServer();
            aHelper.clickMenuItem (aShell,new String[] {"&Window", "&Close Perspective"});
            Shell perspectiveShell = aHelper.clickMenuItem (aShell,
                                                            new String[] {"&Window", "&Open Perspective", "&Other..."},
View Full Code Here

     * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
     */
    public void start(BundleContext context) throws Exception {
        super.start(context);
        Shell workbenchShell = WorkbenchUtilities.getWorkbenchWindow().getShell();
        AbbotHelper aHelper = new AbbotHelper (workbenchShell);
        seleniumServer = new EclipseSeleniumServer(aHelper, workbenchShell);
        try {
            SafeRunner.run( seleniumServer );
            Thread.sleep(5000);
//          new Exception("sdsfsdf").printStackTrace();
View Full Code Here

TOP

Related Classes of org.apache.geronimo.testsuite.common.ui.AbbotHelper$ButtonMultiMatcher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.