geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r615909 - /geronimo/server/trunk/testsupport/testsupport-selenium/src/main/java/org/apache/geronimo/testsupport/console/ConsoleTestSupport.java
Date Mon, 28 Jan 2008 15:12:24 GMT
Author: gawor
Date: Mon Jan 28 07:12:23 2008
New Revision: 615909

URL: http://svn.apache.org/viewvc?rev=615909&view=rev
Log:
log html body for debugging purposes

Modified:
    geronimo/server/trunk/testsupport/testsupport-selenium/src/main/java/org/apache/geronimo/testsupport/console/ConsoleTestSupport.java

Modified: geronimo/server/trunk/testsupport/testsupport-selenium/src/main/java/org/apache/geronimo/testsupport/console/ConsoleTestSupport.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsupport/testsupport-selenium/src/main/java/org/apache/geronimo/testsupport/console/ConsoleTestSupport.java?rev=615909&r1=615908&r2=615909&view=diff
==============================================================================
--- geronimo/server/trunk/testsupport/testsupport-selenium/src/main/java/org/apache/geronimo/testsupport/console/ConsoleTestSupport.java
(original)
+++ geronimo/server/trunk/testsupport/testsupport-selenium/src/main/java/org/apache/geronimo/testsupport/console/ConsoleTestSupport.java
Mon Jan 28 07:12:23 2008
@@ -46,6 +46,11 @@
     }
     
     protected void logout() throws Exception {
+        // log body for debugging purposes
+        if (!selenium.isElementPresent("//a[contains(@href, '/console/logout.jsp')]")) {
+            System.out.println(selenium.getBodyText());
+        }
+
         selenium.click("//a[contains(@href, '/console/logout.jsp')]");
         selenium.waitForPageToLoad("30000");
         assertEquals("Geronimo Console Login", selenium.getTitle());



Mime
View raw message