geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcco...@apache.org
Subject svn commit: r685780 - in /geronimo/devtools/eclipse-plugin/branches/2.1.2: ./ plugins/org.apache.geronimo.jee.v21.jaxbmodel/ testsuite/launcher/ testsuite/plugins/org.apache.geronimo.testsuite.common/ testsuite/plugins/org.apache.geronimo.testsuite.com...
Date Thu, 14 Aug 2008 05:59:25 GMT
Author: mcconne
Date: Wed Aug 13 22:59:24 2008
New Revision: 685780

URL: http://svn.apache.org/viewvc?rev=685780&view=rev
Log:
GERONIMODEVTOOLS-480 Add selenium to testsuite for web application testcases

Added:
    geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/AssertUtil.java   (with props)
    geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/selenium/
    geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/selenium/EclipseBrowserLauncher.java   (with props)
    geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/selenium/EclipseSelenium.java   (with props)
    geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/selenium/EclipseSeleniumServer.java   (with props)
Modified:
    geronimo/devtools/eclipse-plugin/branches/2.1.2/plugins/org.apache.geronimo.jee.v21.jaxbmodel/.classpath
    geronimo/devtools/eclipse-plugin/branches/2.1.2/pom.xml
    geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/launcher/testsuite.properties
    geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/.classpath
    geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/META-INF/MANIFEST.MF
    geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/pom.xml
    geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/ui/Tutorial5Minute.java
    geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v21/.classpath
    geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v21/src/main/java/org/apache/geronimo/testsuite/v21/Activator.java
    geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v21/src/main/java/org/apache/geronimo/testsuite/v21/ui/NewServerTest.java
    geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v21/src/main/resources/ui-tutorial/index.jsp

Modified: geronimo/devtools/eclipse-plugin/branches/2.1.2/plugins/org.apache.geronimo.jee.v21.jaxbmodel/.classpath
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.1.2/plugins/org.apache.geronimo.jee.v21.jaxbmodel/.classpath?rev=685780&r1=685779&r2=685780&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.1.2/plugins/org.apache.geronimo.jee.v21.jaxbmodel/.classpath (original)
+++ geronimo/devtools/eclipse-plugin/branches/2.1.2/plugins/org.apache.geronimo.jee.v21.jaxbmodel/.classpath Wed Aug 13 22:59:24 2008
@@ -1,9 +1,8 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-	<classpathentry kind="src" path="src/main/java"/>
-	<classpathentry kind="src" path="src/test/java"/>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
-	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
-	<classpathentry kind="var" path="M2_REPO/xmlunit/xmlunit/1.1/xmlunit-1.1.jar"/>
-	<classpathentry kind="output" path="target/classes"/>
-</classpath>
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" path="src/main/java"/>
+	<classpathentry kind="src" path="src/test/java"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+	<classpathentry kind="output" path="target/classes"/>
+</classpath>

Modified: geronimo/devtools/eclipse-plugin/branches/2.1.2/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.1.2/pom.xml?rev=685780&r1=685779&r2=685780&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.1.2/pom.xml (original)
+++ geronimo/devtools/eclipse-plugin/branches/2.1.2/pom.xml Wed Aug 13 22:59:24 2008
@@ -208,6 +208,24 @@
                 <artifactId>abbot.swt.eclipse</artifactId>
                 <version>0.1.0.20080305_1254</version>
             </dependency>
+             
+            <dependency>
+                <groupId>org.openqa.selenium.client-drivers</groupId>
+                <artifactId>selenium-java-client-driver</artifactId>
+                <version>1.0-beta-1</version>
+            </dependency>
+            
+            <dependency>
+                <groupId>org.openqa.selenium.server</groupId>
+                <artifactId>selenium-server</artifactId>
+                <version>1.0-beta-1</version>
+            </dependency>
+             
+            <dependency>
+                <groupId>org.openqa.selenium.core</groupId>
+                <artifactId>selenium-core</artifactId>
+                <version>1.0-beta-1</version>
+            </dependency>
         </dependencies>
     </dependencyManagement>
                         
@@ -269,6 +287,12 @@
                     <configuration>
                         <redirectTestOutputToFile>true</redirectTestOutputToFile>
                     </configuration>
+                </plugin> 
+                 
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>selenium-maven-plugin</artifactId>
+                    <version>1.0-beta-3</version>
                 </plugin>
 
                 <plugin>
@@ -394,6 +418,38 @@
                 <enabled>true</enabled>
             </releases>
         </repository>
+  
+        <!--
+         |
+         | Added for Selenium artifacts (and is the same repo used by the server)
+         |
+         -->
+        <repository>
+            <id>releases.openqa.org</id>
+            <name>Openqa Release Repository</name>
+            <url>http://archiva.openqa.org/repository/releases</url>
+            <layout>default</layout>
+            <snapshots>
+                <enabled>false</enabled>
+            </snapshots>
+            <releases>
+                <enabled>true</enabled>
+            </releases>
+        </repository>
+        <repository>
+            <id>snapshots.openqa.org</id>
+            <name>Openqa Snapshot Repository</name>
+            <url>http://archiva.openqa.org/repository/snapshots</url>
+            <layout>default</layout>
+            <snapshots>
+                <enabled>true</enabled>
+                <updatePolicy>daily</updatePolicy>
+                <checksumPolicy>ignore</checksumPolicy>
+            </snapshots>
+            <releases>
+                <enabled>false</enabled>
+            </releases>
+        </repository>
     </repositories>
                         
     <pluginRepositories>

Modified: geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/launcher/testsuite.properties
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/launcher/testsuite.properties?rev=685780&r1=685779&r2=685780&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/launcher/testsuite.properties (original)
+++ geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/launcher/testsuite.properties Wed Aug 13 22:59:24 2008
@@ -19,3 +19,4 @@
 org.apache.geronimo.devtools.helloworld=org.apache.geronimo.devtools.helloworld-2.1.2
 org.apache.geronimo.testsuite.v21=org.apache.geronimo.testsuite.v21-2.1.2
 org.apache.geronimo.testsuite.v20=org.apache.geronimo.testsuite.v20-2.1.2
+org.apache.geronimo.testsuite.common=org.apache.geronimo.testsuite.common-2.1.2

Modified: geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/.classpath
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/.classpath?rev=685780&r1=685779&r2=685780&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/.classpath (original)
+++ geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/.classpath Wed Aug 13 22:59:24 2008
@@ -1,7 +1,10 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
-	<classpathentry kind="src" path="src/main/java"/>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
 	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+	<classpathentry kind="src" path="src/main/java"/>
+	<classpathentry kind="var" path="M2_REPO/org/openqa/selenium/client-drivers/selenium-java-client-driver/1.0-beta-1/selenium-java-client-driver-1.0-beta-1.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/openqa/selenium/server/selenium-server-coreless/1.0-beta-1/selenium-server-coreless-1.0-beta-1.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/openqa/selenium/core/selenium-core/1.0-beta-1/selenium-core-1.0-beta-1.jar"/>
 	<classpathentry kind="output" path="target/classes"/>
 </classpath>

Modified: geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/META-INF/MANIFEST.MF?rev=685780&r1=685779&r2=685780&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/META-INF/MANIFEST.MF (original)
+++ geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/META-INF/MANIFEST.MF Wed Aug 13 22:59:24 2008
@@ -23,6 +23,11 @@
  org.eclipse.ui.forms,
  org.eclipse.ui.ide,
  org.eclipse.ui.views
-Eclipse-LazyStart: true
-Export-Package: org.apache.geronimo.testsuite.common.ui
+Bundle-ActivationPolicy: lazy
+Export-Package: com.thoughtworks.selenium,
+ org.apache.geronimo.testsuite.common,
+ org.apache.geronimo.testsuite.common.selenium,
+ org.apache.geronimo.testsuite.common.ui
 Import-Package: junit.framework;version="3.8.2"
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Eclipse-LazyStart: true

Modified: geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/pom.xml?rev=685780&r1=685779&r2=685780&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/pom.xml (original)
+++ geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/pom.xml Wed Aug 13 22:59:24 2008
@@ -1,163 +1,195 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ 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.
-  -->
-
-<!-- @version $Rev: 678021 $ $Date: 2008-07-18 13:18:23 -0700 (Fri, 18 Jul 2008) $ -->
-
-<project>
-
-    <modelVersion>4.0.0</modelVersion>
-
-    <groupId>org.apache.geronimo.devtools</groupId>
-    <artifactId>org.apache.geronimo.testsuite.common</artifactId>
-    <packaging>jar</packaging>
-    <version>2.1.2</version>
-    <name>${artifactId}</name>
-
-    <parent>
-        <groupId>org.apache.geronimo.devtools</groupId>
-        <artifactId>testsuite-plugins</artifactId>
-        <version>2.1.2</version>
-    </parent>
-
-    <build>
-        <resources>
-            <resource>
-                <directory>.</directory>
-                <includes>
-                    <include>plugin.xml</include>
-                    <include>plugin.properties</include>
-                </includes>
-            </resource>
-
-            <resource>
-                <targetPath>META-INF</targetPath>
-                <directory>.</directory>
-                <includes>
-                    <include>LICENSE</include>
-                    <include>NOTICE</include>
-                </includes>
-            </resource>
-        </resources>
-
-        <plugins>
-
-            <plugin>
-                <groupId>org.apache.geronimo.devtools</groupId>
-                <artifactId>maven-eclipsepde-plugin</artifactId>
-            </plugin>
-
-            <plugin>
-                <artifactId>maven-dependency-plugin</artifactId>
-            </plugin>
-
-            <!--
-             |
-             | Unzip the resulting plugin jar into the launcher eclipse directory for later usage
-             |
-             -->
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-antrun-plugin</artifactId>
-                <executions>
-                    <execution>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>run</goal>
-                        </goals>
-                        <configuration>
-                            <tasks>
-                                <mkdir dir="${basedir}/../../launcher/eclipse/eclipse/plugins/org.apache.geronimo.testsuite.common-2.1.2"/>
-                                <unzip src="${project.build.directory}/org.apache.geronimo.testsuite.common-2.1.2.jar"
-                                      dest="${basedir}/../../launcher/eclipse/eclipse/plugins/org.apache.geronimo.testsuite.common-2.1.2"/>
-                            </tasks>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
-
-            <!-- Exclude tutorial java files -->
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-compiler-plugin</artifactId>
-                <configuration>
-                    <excludes>
-                        <exclude>**/MyServlet.java</exclude>
-                        <exclude>**/MyStatelessSessionBean.java</exclude>
-                        <exclude>**/RemoteBusinessInterface.java</exclude>
-                    </excludes>
-                </configuration>
-             </plugin>
-
-        </plugins>
-    </build>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.apache.geronimo.devtools</groupId>
-            <artifactId>eclipse</artifactId>
-            <version>${version}</version>
-            <type>pom</type>
-        </dependency>
-
-        <dependency>
-            <groupId>junit</groupId>
-            <artifactId>junit</artifactId>
-        </dependency>
-
-        <dependency>
-            <groupId>org.apache.geronimo.devtools</groupId>
-            <artifactId>org.apache.geronimo.st.core</artifactId>
-            <version>${version}</version>
-        </dependency>
-
-        <dependency>
-            <groupId>org.apache.geronimo.devtools</groupId>
-            <artifactId>org.apache.geronimo.st.v21.core</artifactId>
-            <version>${version}</version>
-        </dependency>
-
-        <dependency>
-            <groupId>org.apache.geronimo.devtools</groupId>
-            <artifactId>org.apache.geronimo.jee.v21.jaxbmodel</artifactId>
-            <version>${version}</version>
-        </dependency>
-
-        <dependency>
-            <groupId>org.apache.geronimo.devtools</groupId>
-            <artifactId>org.apache.geronimo.runtime.common</artifactId>
-            <version>${version}</version>
-        </dependency>
-
-        <dependency>
-            <groupId>org.apache.geronimo.devtools</groupId>
-            <artifactId>org.apache.geronimo.runtime.v21</artifactId>
-            <version>${version}</version>
-        </dependency>
-
-        <dependency>
-            <groupId>abbot</groupId>
-            <artifactId>abbot.swt</artifactId>
-        </dependency>
-
-        <dependency>
-            <groupId>abbot</groupId>
-            <artifactId>abbot.swt.eclipse</artifactId>
-        </dependency>
-    </dependencies>
-
-</project>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ 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.
+  -->
+
+<!-- @version $Rev: 678021 $ $Date: 2008-07-18 13:18:23 -0700 (Fri, 18 Jul 2008) $ -->
+
+<project>
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <groupId>org.apache.geronimo.devtools</groupId>
+    <artifactId>org.apache.geronimo.testsuite.common</artifactId>
+    <packaging>jar</packaging>
+    <version>2.1.2</version>
+    <name>${artifactId}</name>
+
+    <parent>
+        <groupId>org.apache.geronimo.devtools</groupId>
+        <artifactId>testsuite-plugins</artifactId>
+        <version>2.1.2</version>
+    </parent>
+
+    <build>
+        <resources>
+            <resource>
+                <directory>.</directory>
+                <includes>
+                    <include>plugin.xml</include>
+                    <include>plugin.properties</include>
+                </includes>
+            </resource>
+
+            <resource>
+                <targetPath>META-INF</targetPath>
+                <directory>.</directory>
+                <includes>
+                    <include>LICENSE</include>
+                    <include>NOTICE</include>
+                </includes>
+            </resource>
+
+        </resources>
+
+        <plugins>
+
+            <plugin>
+                <groupId>org.apache.geronimo.devtools</groupId>
+                <artifactId>maven-eclipsepde-plugin</artifactId>
+            </plugin>
+
+            <plugin>
+                <artifactId>maven-dependency-plugin</artifactId>
+            </plugin>
+
+            <!--
+             |
+             | Unzip the resulting plugin jar into the launcher eclipse directory for later usage
+             |
+             -->
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>unzip-common</id>
+                        <phase>generate-resources</phase>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                                <unzip src="${settings.localRepository}/org/openqa/selenium/client-drivers/selenium-java-client-driver/1.0-beta-1/selenium-java-client-driver-1.0-beta-1.jar"
+                                      dest="${project.build.directory}/classes"/>
+                                <unzip src="${settings.localRepository}/org/openqa/selenium/server/selenium-server/1.0-beta-1/selenium-server-1.0-beta-1-standalone.jar"
+                                      dest="${project.build.directory}/classes"/>
+                            </tasks>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>unzip-selenium</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                                <mkdir dir="${basedir}/../../launcher/eclipse/eclipse/plugins/org.apache.geronimo.testsuite.common-2.1.2"/>
+                                <unzip src="${project.build.directory}/org.apache.geronimo.testsuite.common-2.1.2.jar"
+                                      dest="${basedir}/../../launcher/eclipse/eclipse/plugins/org.apache.geronimo.testsuite.common-2.1.2"/>
+                            </tasks>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+
+            <!-- Exclude tutorial java files -->
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <excludes>
+                        <exclude>**/MyServlet.java</exclude>
+                        <exclude>**/MyStatelessSessionBean.java</exclude>
+                        <exclude>**/RemoteBusinessInterface.java</exclude>
+                    </excludes>
+                </configuration>
+             </plugin>
+
+        </plugins>
+    </build>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.geronimo.devtools</groupId>
+            <artifactId>eclipse</artifactId>
+            <version>${version}</version>
+            <type>pom</type>
+        </dependency>
+
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.geronimo.devtools</groupId>
+            <artifactId>org.apache.geronimo.st.core</artifactId>
+            <version>${version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.geronimo.devtools</groupId>
+            <artifactId>org.apache.geronimo.st.v21.core</artifactId>
+            <version>${version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.geronimo.devtools</groupId>
+            <artifactId>org.apache.geronimo.jee.v21.jaxbmodel</artifactId>
+            <version>${version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.geronimo.devtools</groupId>
+            <artifactId>org.apache.geronimo.runtime.common</artifactId>
+            <version>${version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.geronimo.devtools</groupId>
+            <artifactId>org.apache.geronimo.runtime.v21</artifactId>
+            <version>${version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>abbot</groupId>
+            <artifactId>abbot.swt</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>abbot</groupId>
+            <artifactId>abbot.swt.eclipse</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.openqa.selenium.client-drivers</groupId>
+            <artifactId>selenium-java-client-driver</artifactId>
+        </dependency>
+            
+        <dependency>
+            <groupId>org.openqa.selenium.server</groupId>
+            <artifactId>selenium-server</artifactId>
+        </dependency>
+         
+        <dependency>
+            <groupId>org.openqa.selenium.core</groupId>
+            <artifactId>selenium-core</artifactId>
+        </dependency>
+    </dependencies>
+
+</project>

Added: geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/AssertUtil.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/AssertUtil.java?rev=685780&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/AssertUtil.java (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/AssertUtil.java Wed Aug 13 22:59:24 2008
@@ -0,0 +1,32 @@
+/*
+ * 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.common;
+
+/**
+ * AssertUtil
+ *
+ * @version $Rev$ $Date$
+ */
+public class AssertUtil {
+
+	public static void assertTrue( boolean value ) throws Exception {
+		if ( !value ) {
+			throw new Exception( "Error" );
+		}
+	}
+}

Propchange: geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/AssertUtil.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/AssertUtil.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/AssertUtil.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/selenium/EclipseBrowserLauncher.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/selenium/EclipseBrowserLauncher.java?rev=685780&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/selenium/EclipseBrowserLauncher.java (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/selenium/EclipseBrowserLauncher.java Wed Aug 13 22:59:24 2008
@@ -0,0 +1,67 @@
+/*
+ * 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.common.selenium;
+
+import org.apache.geronimo.testsuite.common.ui.AbbotHelper;
+import org.eclipse.jface.dialogs.IDialogConstants;
+import org.eclipse.swt.widgets.Shell;
+import org.openqa.selenium.server.browserlaunchers.AbstractBrowserLauncher;
+
+/**
+ * EclipseBrowserLauncher
+ *
+ * @version $Rev$ $Date$
+ */
+public class EclipseBrowserLauncher extends AbstractBrowserLauncher {
+
+	public EclipseBrowserLauncher(int a, String sessionId) {
+		super(sessionId);
+	}
+
+	@Override
+	protected void launch(String url) {
+		try {
+			
+			AbbotHelper aHelper = EclipseSeleniumServer.INSTANCE.getAHelper();
+			Shell shell = EclipseSeleniumServer.INSTANCE.getShell();
+
+	        aHelper.clickMenuItem (shell,
+	                new String[] {"&Window", "Web Browser", "&0 Internal Web Browser"});
+	        Shell openShell = aHelper.clickMenuItem (shell,
+	                new String[] {"&Window", "Show &View", "&Other..."}, "Show View");
+	        aHelper.clickTreeItem (openShell, 
+	                new String[] {"General", "Internal Web Browser"});
+	        aHelper.clickButton (openShell, IDialogConstants.OK_LABEL);
+	        
+	        aHelper.setCombo (shell, url);
+	        aHelper.clickToolItem (shell, "Go to the selected URL");
+	        aHelper.waitTime (15000);
+
+		} catch ( Exception e ) {
+			e.printStackTrace();
+		}
+	}
+
+	public void close() {
+	}
+
+	public Process getProcess() {
+		return null;
+	}
+
+}

Propchange: geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/selenium/EclipseBrowserLauncher.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/selenium/EclipseBrowserLauncher.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/selenium/EclipseBrowserLauncher.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/selenium/EclipseSelenium.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/selenium/EclipseSelenium.java?rev=685780&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/selenium/EclipseSelenium.java (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/selenium/EclipseSelenium.java Wed Aug 13 22:59:24 2008
@@ -0,0 +1,42 @@
+/*
+ * 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.common.selenium;
+
+import org.apache.geronimo.testsuite.common.ui.AbbotHelper;
+import org.eclipse.swt.widgets.Shell;
+
+import com.thoughtworks.selenium.DefaultSelenium;
+import com.thoughtworks.selenium.Selenium;
+
+/**
+ * EclipseSelenium
+ *
+ * @version $Rev$ $Date$
+ */
+public class EclipseSelenium extends DefaultSelenium {
+
+	private static String serverHost = "localhost";
+	private static int serverPort = 4444;
+	private static String browserStartCommand = "*EclipseBrowser";
+	private static String browserURL = "http://localhost:4444";
+	
+	public EclipseSelenium() {
+		super(serverHost, serverPort, browserStartCommand, browserURL);
+	}
+
+}

Propchange: geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/selenium/EclipseSelenium.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/selenium/EclipseSelenium.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/selenium/EclipseSelenium.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/selenium/EclipseSeleniumServer.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/selenium/EclipseSeleniumServer.java?rev=685780&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/selenium/EclipseSeleniumServer.java (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/selenium/EclipseSeleniumServer.java Wed Aug 13 22:59:24 2008
@@ -0,0 +1,72 @@
+/*
+ * 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.common.selenium;
+
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.PrintStream;
+
+import org.apache.geronimo.testsuite.common.ui.AbbotHelper;
+import org.eclipse.core.runtime.ISafeRunnable;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.swt.widgets.Shell;
+import org.openqa.selenium.server.SeleniumServer;
+import org.openqa.selenium.server.browserlaunchers.BrowserLauncherFactory;
+
+/**
+ * EclipseSeleniumServer
+ *
+ * @version $Rev$ $Date$
+ */
+public class EclipseSeleniumServer implements ISafeRunnable{
+
+	public static EclipseSeleniumServer INSTANCE;
+	private SeleniumServer server;
+	private AbbotHelper aHelper;
+	private Shell shell;
+	
+	public EclipseSeleniumServer( AbbotHelper aHelper, Shell shell ) {
+		this.aHelper = aHelper;
+		this.shell = shell;
+		INSTANCE = this;
+	}
+	
+	public void stop() {
+		server.stop();
+	}
+	
+	public AbbotHelper getAHelper() {
+		return aHelper;
+	}
+
+	public Shell getShell() {
+		return shell;
+	}
+
+	public void handleException(Throwable arg0) {
+
+	}
+
+	public void run() throws Exception {
+		BrowserLauncherFactory.addBrowserLauncher("EclipseBrowser", EclipseBrowserLauncher.class);
+		SeleniumServer.setDebugMode( true );
+		server = new SeleniumServer();
+		server.start();
+	}
+
+}

Propchange: geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/selenium/EclipseSeleniumServer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/selenium/EclipseSeleniumServer.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/selenium/EclipseSeleniumServer.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/ui/Tutorial5Minute.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/ui/Tutorial5Minute.java?rev=685780&r1=685779&r2=685780&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/ui/Tutorial5Minute.java (original)
+++ geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.common/src/main/java/org/apache/geronimo/testsuite/common/ui/Tutorial5Minute.java Wed Aug 13 22:59:24 2008
@@ -19,6 +19,8 @@
 
 import java.io.FileInputStream;
 
+import org.apache.geronimo.testsuite.common.AssertUtil;
+import org.apache.geronimo.testsuite.common.selenium.EclipseSelenium;
 import org.eclipse.core.resources.IFile;
 import org.eclipse.core.resources.IFolder;
 import org.eclipse.core.resources.IProject;
@@ -166,23 +168,20 @@
                 new String[] {"&File", "&Close"});
     }
 
-    public void webTesting () throws MultipleFoundException, NotFoundException {
-        aHelper.clickMenuItem (workbenchShell,
-                new String[] {"&Window", "Web Browser", "&0 Internal Web Browser"});
-        Shell openShell = aHelper.clickMenuItem (workbenchShell,
-                new String[] {"&Window", "Show &View", "&Other..."}, "Show View");
-        aHelper.clickTreeItem (openShell, 
-                new String[] {"General", "Internal Web Browser"});
-        aHelper.clickButton (openShell, IDialogConstants.OK_LABEL);
-
-        aHelper.setCombo (workbenchShell, "http://localhost:8080/SampleWAR/");
-        aHelper.clickToolItem (workbenchShell, "Go to the selected URL");
-        aHelper.waitTime (15000);
+
+    public void webTesting () throws Exception {
+    	EclipseSelenium selenium = new EclipseSelenium();
+   		selenium.open( "http://localhost:8080/SampleWAR/");
+   		selenium.type("name", "Tom");
+   		selenium.click("submit");
+   		selenium.waitForPageToLoad( "3000" );
+   		AssertUtil.assertTrue(selenium.getHtmlSource().indexOf( "says hello to" ) > 0);
 
         // TODO fill in a name and click the Process button
         // This is a problem, HTML objects are not the same as SWT objects and 
         // Abbot cannot find these
         //aHelper.setTextField(workbenchShell, "", "MyName");
         //aHelper.clickButton (workbenchShell, "Press me!");
+   		selenium.stop();
     }
 }

Modified: geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v21/.classpath
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v21/.classpath?rev=685780&r1=685779&r2=685780&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v21/.classpath (original)
+++ geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v21/.classpath Wed Aug 13 22:59:24 2008
@@ -3,5 +3,6 @@
 	<classpathentry kind="src" path="src/main/java"/>
 	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
 	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+	<classpathentry kind="var" path="M2_REPO/org/openqa/selenium/client-drivers/selenium-java-client-driver/1.0-beta-1/selenium-java-client-driver-1.0-beta-1.jar"/>
 	<classpathentry kind="output" path="target/classes"/>
 </classpath>

Modified: geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v21/src/main/java/org/apache/geronimo/testsuite/v21/Activator.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v21/src/main/java/org/apache/geronimo/testsuite/v21/Activator.java?rev=685780&r1=685779&r2=685780&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v21/src/main/java/org/apache/geronimo/testsuite/v21/Activator.java (original)
+++ geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v21/src/main/java/org/apache/geronimo/testsuite/v21/Activator.java Wed Aug 13 22:59:24 2008
@@ -17,10 +17,16 @@
 
 package org.apache.geronimo.testsuite.v21;
 
+import org.apache.geronimo.testsuite.common.selenium.EclipseSeleniumServer;
+import org.apache.geronimo.testsuite.common.ui.AbbotHelper;
 import org.eclipse.core.runtime.Plugin;
+import org.eclipse.core.runtime.SafeRunner;
 import org.eclipse.core.runtime.Status;
+import org.eclipse.swt.widgets.Shell;
 import org.osgi.framework.BundleContext;
 
+import abbot.swt.eclipse.utils.WorkbenchUtilities;
+
 /**
  * The activator class controls the plug-in life cycle
  *
@@ -34,6 +40,7 @@
 	// The shared instance
 	private static Activator plugin;
 
+	private EclipseSeleniumServer seleniumServer;
 	/**
 	 * The constructor
 	 */
@@ -48,6 +55,16 @@
 	 */
 	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();
+		} catch ( Exception e ) {
+			e.printStackTrace();
+		}
 	}
 
 	/*
@@ -58,6 +75,7 @@
 	public void stop(BundleContext context) throws Exception {
 		plugin = null;
 		super.stop(context);
+		seleniumServer.stop();
 	}
 
 	/**

Modified: geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v21/src/main/java/org/apache/geronimo/testsuite/v21/ui/NewServerTest.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v21/src/main/java/org/apache/geronimo/testsuite/v21/ui/NewServerTest.java?rev=685780&r1=685779&r2=685780&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v21/src/main/java/org/apache/geronimo/testsuite/v21/ui/NewServerTest.java (original)
+++ geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v21/src/main/java/org/apache/geronimo/testsuite/v21/ui/NewServerTest.java Wed Aug 13 22:59:24 2008
@@ -17,23 +17,19 @@
 
 package org.apache.geronimo.testsuite.v21.ui;
 
-import java.io.File;
-
+import org.apache.geronimo.testsuite.common.selenium.EclipseSelenium;
+import org.apache.geronimo.testsuite.common.selenium.EclipseSeleniumServer;
 import org.apache.geronimo.testsuite.common.ui.AbbotHelper;
 import org.apache.geronimo.testsuite.common.ui.Constants;
 import org.apache.geronimo.testsuite.common.ui.ServerTasks;
 import org.apache.geronimo.testsuite.common.ui.WorkbenchTasks;
-import org.eclipse.core.resources.IWorkspace;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.jface.dialogs.IDialogConstants;
+import org.eclipse.core.runtime.SafeRunner;
 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;
-import abbot.swt.finder.generic.MultipleFoundException;
-import abbot.swt.finder.generic.NotFoundException;
 
 /**
  * @version $Rev$ $Date$
@@ -59,21 +55,39 @@
         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
             workbenchTasks.showJEEPerspective();
+       		
+
 
             // create server from an installed instance
             serverTasks.createServer();
 
             serverTasks.startServer();
+
+            
+            EclipseSelenium selenium = new EclipseSelenium();
+        	selenium.start();
+            
+            selenium.open( "http://localhost:8080/console/" );
+            selenium.waitForPageToLoad( "2000" );
+            selenium.type("j_username", "system");
+            selenium.type("j_password", "manager");
+            selenium.click("submit");
+            
+            
             serverTasks.stopServer();
 
             // remove the server 
             serverTasks.removeServer();
+            
+            selenium.stop();
+
 
             success = true;
         }

Modified: geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v21/src/main/resources/ui-tutorial/index.jsp
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v21/src/main/resources/ui-tutorial/index.jsp?rev=685780&r1=685779&r2=685780&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v21/src/main/resources/ui-tutorial/index.jsp (original)
+++ geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v21/src/main/resources/ui-tutorial/index.jsp Wed Aug 13 22:59:24 2008
@@ -26,7 +26,7 @@
   </head>
   <body>
     <form action="${pageContext.request.contextPath}/sayHello">
-      <input type="text" name="name" /><input type="submit" value="Press me!" />
+      <input type="text" name="name" /><input type="submit" name="submit" value="Press me!" />
     </form>
   </body>
 </html>



Mime
View raw message