continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jzurb...@apache.org
Subject svn commit: r916187 - /continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/parent/AbstractContinuumTest.java
Date Thu, 25 Feb 2010 08:54:31 GMT
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 );



Mime
View raw message