continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r908316 - /continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/parent/AbstractReleaseTest.java
Date Wed, 10 Feb 2010 02:03:12 GMT
Author: ctan
Date: Wed Feb 10 02:03:10 2010
New Revision: 908316

URL: http://svn.apache.org/viewvc?rev=908316&view=rev
Log:
prevent selenium tests from running infinitely when release failed

Modified:
    continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/parent/AbstractReleaseTest.java

Modified: continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/parent/AbstractReleaseTest.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/parent/AbstractReleaseTest.java?rev=908316&r1=908315&r2=908316&view=diff
==============================================================================
--- continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/parent/AbstractReleaseTest.java
(original)
+++ continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/parent/AbstractReleaseTest.java
Wed Feb 10 02:03:10 2010
@@ -111,11 +111,19 @@
     public void assertRelease( boolean success )
         throws Exception
     {
+        int currentIt = 1;
+        int maxIt = 20;
+
         while ( !isButtonWithValuePresent( "Done" ) && !isTextPresent( "Release Error"
) )
         {
             Thread.sleep( 10000 );
+            if ( currentIt > maxIt )
+            {
+                Assert.fail( "Timeout, Can't release project" );
+            }
+            currentIt++;
         }
-    
+
         assertButtonWithValuePresent( "Rollback changes" );
     
         if ( success )



Mime
View raw message