continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r918304 - in /continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test: MavenTwoProjectTest.java parent/AbstractContinuumTest.java
Date Wed, 03 Mar 2010 01:55:21 GMT
Author: brett
Date: Wed Mar  3 01:55:21 2010
New Revision: 918304

URL: http://svn.apache.org/viewvc?rev=918304&view=rev
Log:
make move project group test resistant to checkout timing

Modified:
    continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/MavenTwoProjectTest.java
    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/MavenTwoProjectTest.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/MavenTwoProjectTest.java?rev=918304&r1=918303&r2=918304&view=diff
==============================================================================
--- continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/MavenTwoProjectTest.java
(original)
+++ continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/MavenTwoProjectTest.java
Wed Mar  3 01:55:21 2010
@@ -236,6 +236,8 @@
 
         assertPage( "Continuum - Project Group" );
         assertTextPresent( M2_PROJ_GRP_SCM_ROOT_URL );
+
+        // TODO: this doesn't always seem to work, perhaps because of changes in the way
icons are displayed
         // wait for project to finish checkout
         waitForProjectCheckout();
 

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=918304&r1=918303&r2=918304&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
Wed Mar  3 01:55:21 2010
@@ -595,7 +595,22 @@
         throws Exception
     {
         showProjectGroup( groupName, groupId, groupDescription );
-        clickButtonWithValue( "Edit" );
+        String id = getFieldValue( "name=projectGroupId" );
+        String url = baseUrl + "/editProjectGroup.action?projectGroupId=" + id;
+        getSelenium().open( url );
+        waitPage();
+
+        // TODO: it would be better if the project checkout was part of the corresponding
"add project" test to
+        // ensure it was in place
+        int count = 0;
+        while ( isTextPresent( "Projects that are members of this project group are still
being checked out" ) &&
+            count < 120 )
+        {
+            Thread.sleep( 1000 );
+            getSelenium().open( url );
+            waitPage();
+            count ++;
+        }
 
         assertTextPresent( "Move to Group" );
         String xPath = "//preceding::th/label[contains(text(),'" + projectName + "')]//following::select";



Mime
View raw message