Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 12646 invoked from network); 15 Oct 2008 23:23:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Oct 2008 23:23:58 -0000 Received: (qmail 62282 invoked by uid 500); 15 Oct 2008 23:23:59 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 62229 invoked by uid 500); 15 Oct 2008 23:23:59 -0000 Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list scm@geronimo.apache.org Received: (qmail 62220 invoked by uid 99); 15 Oct 2008 23:23:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Oct 2008 16:23:59 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Oct 2008 23:23:00 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id A804F238893B; Wed, 15 Oct 2008 16:23:37 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r705095 - in /geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins: org.apache.geronimo.testsuite.v20/ org.apache.geronimo.testsuite.v20/src/main/java/org/apache/geronimo/testsuite/v20/ui/ org.apache.geronimo.testsuite.v21/ org.apache.g... Date: Wed, 15 Oct 2008 23:23:37 -0000 To: scm@geronimo.apache.org From: mcconne@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20081015232337.A804F238893B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mcconne Date: Wed Oct 15 16:23:37 2008 New Revision: 705095 URL: http://svn.apache.org/viewvc?rev=705095&view=rev Log: Synchronize v20 and v21 testsuites before applying any more testsuite patches Added: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.testsuite.v20/src/main/java/org/apache/geronimo/testsuite/v20/ui/EclipseUITest.java (with props) Modified: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.testsuite.v20/test.xml geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.testsuite.v21/src/main/java/org/apache/geronimo/testsuite/v21/ui/EclipseUITest.java geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.testsuite.v21/test.xml Added: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.testsuite.v20/src/main/java/org/apache/geronimo/testsuite/v20/ui/EclipseUITest.java URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.testsuite.v20/src/main/java/org/apache/geronimo/testsuite/v20/ui/EclipseUITest.java?rev=705095&view=auto ============================================================================== --- geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.testsuite.v20/src/main/java/org/apache/geronimo/testsuite/v20/ui/EclipseUITest.java (added) +++ geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.testsuite.v20/src/main/java/org/apache/geronimo/testsuite/v20/ui/EclipseUITest.java Wed Oct 15 16:23:37 2008 @@ -0,0 +1,68 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.geronimo.testsuite.v20.ui; + +import org.apache.geronimo.testsuite.common.ui.AbbotHelper; +import org.eclipse.jface.dialogs.IDialogConstants; +import org.eclipse.swt.widgets.Shell; + +import abbot.swt.eclipse.junit.extensions.WorkbenchTestCase; +import abbot.swt.eclipse.utils.Preferences; +import abbot.swt.eclipse.utils.WorkbenchUtilities; +import abbot.swt.eclipse.utils.Preferences.Mode; + +/* + * @version $Rev$ $Date$ + */ +public class EclipseUITest extends WorkbenchTestCase { + Shell aShell; + AbbotHelper aHelper; + + protected void setUp() throws Exception { + super.setUp(); + Preferences.setPerspectiveSwitchPrompt(Mode.Always); + } + + protected void tearDown() throws Exception { + super.tearDown(); + } + + public void testEclipseUI() + { + boolean success = false; + try { + // About Eclipse Test Case. There are three Shell newShell, nextShell and nextNextShell + //used because we need to save the states for newShell and nextShell + //newShell->nextShell->nextNextShell this is the order in which shell comes up + aShell = WorkbenchUtilities.getWorkbenchWindow().getShell(); + aHelper = new AbbotHelper(aShell); + Shell newShell = aHelper.clickMenuItem(aShell, new String[]{"&Help","&About Eclipse Platform"},"About Eclipse Platform"); + Shell nextShell = aHelper.clickImageButton(newShell, "Apache.org - Geronimo v21 Server Tools Core Plug-in","About Eclipse Platform Features"); + Shell nextNextShell = aHelper.clickButton(nextShell, "&Plug-in Details", "Feature Plug-ins"); + aHelper.clickButton(nextNextShell, IDialogConstants.OK_LABEL); + aHelper.clickButton(nextShell, IDialogConstants.OK_LABEL); + aHelper.clickButton(newShell, IDialogConstants.OK_LABEL); + + success = true; + } + catch(Exception e) + { + e.printStackTrace(); + } + assertTrue (success); + } +} Propchange: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.testsuite.v20/src/main/java/org/apache/geronimo/testsuite/v20/ui/EclipseUITest.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.testsuite.v20/src/main/java/org/apache/geronimo/testsuite/v20/ui/EclipseUITest.java ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.testsuite.v20/src/main/java/org/apache/geronimo/testsuite/v20/ui/EclipseUITest.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Modified: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.testsuite.v20/test.xml URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.testsuite.v20/test.xml?rev=705095&r1=705094&r2=705095&view=diff ============================================================================== --- geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.testsuite.v20/test.xml (original) +++ geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.testsuite.v20/test.xml Wed Oct 15 16:23:37 2008 @@ -58,6 +58,20 @@ + + + + + + + - - - + + +