You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@continuum.apache.org by jz...@apache.org on 2010/02/25 09:54:31 UTC

svn commit: r916187 - /continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/parent/AbstractContinuumTest.java

Author: jzurbano
Date: Thu Feb 25 08:54:31 2010
New Revision: 916187

URL: http://svn.apache.org/viewvc?rev=916187&view=rev
Log:
[CONTINUUM-2467] - Selenium test: check for project group SCM update when building projects
* added check for the SCM update before checking the project status


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

Modified: continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/parent/AbstractContinuumTest.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/parent/AbstractContinuumTest.java?rev=916187&r1=916186&r2=916187&view=diff
==============================================================================
--- continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/parent/AbstractContinuumTest.java (original)
+++ continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/parent/AbstractContinuumTest.java Thu Feb 25 08:54:31 2010
@@ -377,7 +377,25 @@
         
         Thread.sleep( 10000 );
         getSelenium().refresh();
+        
+        // check if project group is updating from SCM
+        while ( isElementPresent( "//td/img[@alt='Updating']" ) )
+           {
+            Thread.sleep( 10000 );
+            getSelenium().refresh();
+            waitPage();
+            if ( currentIt > maxIt )
+                {
+                Assert.fail( "Timeout, Can't update project group from SCM" );
+                }
+            currentIt++;
+           }
+        
+        currentIt = 1;
+        Thread.sleep( 10000 );
+        getSelenium().refresh();
 
+        // check if project is building, or updating
         while ( isElementPresent( "//img[@alt='Building']" ) || isElementPresent( "//img[@alt='Updating']" ) )
         {
             Thread.sleep( 10000 );