You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by yu...@apache.org on 2008/08/14 09:55:44 UTC

svn commit: r685795 - in /geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v20: .classpath src/main/java/org/apache/geronimo/testsuite/v20/ui/NewServerTest.java

Author: yunfengma
Date: Thu Aug 14 00:55:43 2008
New Revision: 685795

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

Modified:
    geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v20/.classpath
    geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v20/src/main/java/org/apache/geronimo/testsuite/v20/ui/NewServerTest.java

Modified: geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v20/.classpath
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v20/.classpath?rev=685795&r1=685794&r2=685795&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v20/.classpath (original)
+++ geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v20/.classpath Thu Aug 14 00:55:43 2008
@@ -2,6 +2,7 @@
 <classpath>
 	<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="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.v20/src/main/java/org/apache/geronimo/testsuite/v20/ui/NewServerTest.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v20/src/main/java/org/apache/geronimo/testsuite/v20/ui/NewServerTest.java?rev=685795&r1=685794&r2=685795&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v20/src/main/java/org/apache/geronimo/testsuite/v20/ui/NewServerTest.java (original)
+++ geronimo/devtools/eclipse-plugin/branches/2.1.2/testsuite/plugins/org.apache.geronimo.testsuite.v20/src/main/java/org/apache/geronimo/testsuite/v20/ui/NewServerTest.java Thu Aug 14 00:55:43 2008
@@ -17,6 +17,7 @@
 
 package org.apache.geronimo.testsuite.v20.ui;
 
+import org.apache.geronimo.testsuite.common.selenium.EclipseSelenium;
 import org.apache.geronimo.testsuite.common.ui.AbbotHelper;
 import org.apache.geronimo.testsuite.common.ui.Constants;
 import org.apache.geronimo.testsuite.common.ui.ServerTasks;
@@ -63,10 +64,21 @@
             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;
         }