archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1172551 - in /archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test: ArtifactManagementTest.java parent/AbstractArtifactManagementTest.java
Date Mon, 19 Sep 2011 10:09:04 GMT
Author: olamy
Date: Mon Sep 19 10:09:04 2011
New Revision: 1172551

URL: http://svn.apache.org/viewvc?rev=1172551&view=rev
Log:
start fixing selenium tests, faster tests with no wait when testing javascript form validation

Modified:
    archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/ArtifactManagementTest.java
    archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/parent/AbstractArtifactManagementTest.java

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/ArtifactManagementTest.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/ArtifactManagementTest.java?rev=1172551&r1=1172550&r2=1172551&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/ArtifactManagementTest.java
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/ArtifactManagementTest.java
Mon Sep 19 10:09:04 2011
@@ -27,13 +27,13 @@ public class ArtifactManagementTest
     extends AbstractArtifactManagementTest
 {
 
-    @Test( alwaysRun = true )
+    @Test( alwaysRun = true, dependsOnGroups = "about")
     public void testAddArtifactNullValues()
     {
         goToAddArtifactPage();
-        clickButtonWithValue( "Submit" );
-        assertTextPresent( "Please add a file to upload." );
-        assertTextPresent( "Invalid version." );
+        clickButtonWithValue( "Submit", false );
+        //assertTextPresent( "Please add a file to upload." );
+        assertTextPresent( "You must enter a version." );
         assertTextPresent( "You must enter a groupId." );
         assertTextPresent( "You must enter an artifactId." );
         assertTextPresent( "You must enter a version" );

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/parent/AbstractArtifactManagementTest.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/parent/AbstractArtifactManagementTest.java?rev=1172551&r1=1172550&r2=1172551&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/parent/AbstractArtifactManagementTest.java
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/parent/AbstractArtifactManagementTest.java
Mon Sep 19 10:09:04 2011
@@ -72,6 +72,6 @@ public abstract class AbstractArtifactMa
         setFieldValue( "artifactId", artifactId );
         setFieldValue( "version", version );
         selectValue( "repositoryId", repositoryId );
-        clickButtonWithValue( "Submit" );
+        clickButtonWithValue( "Submit", false );
     }
 }



Mime
View raw message