geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r583962 - in /geronimo/server/trunk/testsuite/console-testsuite/advanced/src/test/java/org/apache/geronimo/testsuite/console: ConsoleRealmTest.java DBManagerTest.java WebServerTest.java
Date Thu, 11 Oct 2007 21:43:55 GMT
Author: gawor
Date: Thu Oct 11 14:43:54 2007
New Revision: 583962

URL: http://svn.apache.org/viewvc?rev=583962&view=rev
Log:
fix more console tests

Modified:
    geronimo/server/trunk/testsuite/console-testsuite/advanced/src/test/java/org/apache/geronimo/testsuite/console/ConsoleRealmTest.java
    geronimo/server/trunk/testsuite/console-testsuite/advanced/src/test/java/org/apache/geronimo/testsuite/console/DBManagerTest.java
    geronimo/server/trunk/testsuite/console-testsuite/advanced/src/test/java/org/apache/geronimo/testsuite/console/WebServerTest.java

Modified: geronimo/server/trunk/testsuite/console-testsuite/advanced/src/test/java/org/apache/geronimo/testsuite/console/ConsoleRealmTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/console-testsuite/advanced/src/test/java/org/apache/geronimo/testsuite/console/ConsoleRealmTest.java?rev=583962&r1=583961&r2=583962&view=diff
==============================================================================
--- geronimo/server/trunk/testsuite/console-testsuite/advanced/src/test/java/org/apache/geronimo/testsuite/console/ConsoleRealmTest.java
(original)
+++ geronimo/server/trunk/testsuite/console-testsuite/advanced/src/test/java/org/apache/geronimo/testsuite/console/ConsoleRealmTest.java
Thu Oct 11 14:43:54 2007
@@ -29,7 +29,7 @@
         try {
             login();
 
-            selenium.click("link=Console Realm");
+            selenium.click("link=Users and Groups");
             selenium.waitForPageToLoad("30000");
             selenium.click("link=Create New User");
             selenium.waitForPageToLoad("30000");
@@ -54,7 +54,7 @@
         try {
             login();
             
-            selenium.click("link=Console Realm");
+            selenium.click("link=Users and Groups");
             selenium.waitForPageToLoad("30000");
             selenium.click("link=Create New Group");
             selenium.waitForPageToLoad("30000");

Modified: geronimo/server/trunk/testsuite/console-testsuite/advanced/src/test/java/org/apache/geronimo/testsuite/console/DBManagerTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/console-testsuite/advanced/src/test/java/org/apache/geronimo/testsuite/console/DBManagerTest.java?rev=583962&r1=583961&r2=583962&view=diff
==============================================================================
--- geronimo/server/trunk/testsuite/console-testsuite/advanced/src/test/java/org/apache/geronimo/testsuite/console/DBManagerTest.java
(original)
+++ geronimo/server/trunk/testsuite/console-testsuite/advanced/src/test/java/org/apache/geronimo/testsuite/console/DBManagerTest.java
Thu Oct 11 14:43:54 2007
@@ -38,7 +38,7 @@
             selenium.type("sqlStmts", "create table myTable ( id int primary key );");
             selenium.select("useDB", "label=SystemDatabase");
             selenium.select("useDB", "label=MyUniqueDB");
-            selenium.click("document.Pluto_internalDB_DBManager_row2_col1_p1_DBForm.action[2]");
+            selenium.click("//input[@value = 'Run SQL']");
             selenium.waitForPageToLoad("30000");
             //selenium.click("link=Application");
             selenium.click("//a[contains(@href, 'db=MyUniqueDB')]");
@@ -46,7 +46,7 @@
             assertTrue(selenium.isTextPresent("MYTABLE"));
             selenium.select("deleteDB", "label=SystemDatabase");
             selenium.select("deleteDB", "label=MyUniqueDB");
-            selenium.click("document.Pluto_internalDB_DBManager_row2_col1_p1_DBForm.action[1]");
+            selenium.click("//input[@value = 'Delete']");
             selenium.waitForPageToLoad("30000");
             assertTrue(selenium.getConfirmation().matches("^Are you sure you want to delete
this database[\\s\\S]$"));
             selenium.waitForPageToLoad("30000");

Modified: geronimo/server/trunk/testsuite/console-testsuite/advanced/src/test/java/org/apache/geronimo/testsuite/console/WebServerTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/console-testsuite/advanced/src/test/java/org/apache/geronimo/testsuite/console/WebServerTest.java?rev=583962&r1=583961&r2=583962&view=diff
==============================================================================
--- geronimo/server/trunk/testsuite/console-testsuite/advanced/src/test/java/org/apache/geronimo/testsuite/console/WebServerTest.java
(original)
+++ geronimo/server/trunk/testsuite/console-testsuite/advanced/src/test/java/org/apache/geronimo/testsuite/console/WebServerTest.java
Thu Oct 11 14:43:54 2007
@@ -50,7 +50,7 @@
             String name = "uniquename2";
             addConnector(name, 8082);
 
-            String connectorSelector = "//tr[2]/td[2]/table//tr[td[1] = \"" + name + "\"]";
+            String connectorSelector = "//tr[td[1] = \"" + name + "\"]";
             
             selenium.click(connectorSelector + "/td[5]/a[2]");        
             selenium.waitForPageToLoad("30000");
@@ -82,7 +82,7 @@
             String name = "uniquename3";
             addConnector(name, 8083);
 
-            String connectorSelector = "//tr[2]/td[2]/table//tr[td[1] = \"" + name + "\"]";
+            String connectorSelector = "//tr[td[1] = \"" + name + "\"]";
 
             assertEquals("running", selenium.getText(connectorSelector + "/td[4]"));
             selenium.click(connectorSelector + "/td[5]/a[1]");



Mime
View raw message