continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mbac...@apache.org
Subject svn commit: r805651 - /continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/UserRolesManagementTest.java
Date Wed, 19 Aug 2009 03:32:10 GMT
Author: mbaclay
Date: Wed Aug 19 03:32:09 2009
New Revision: 805651

URL: http://svn.apache.org/viewvc?rev=805651&view=rev
Log:
[CONTINUUM-2245] Continuum User Roles Tests
removed the workaround (selenium test) scripts for redback issue that has been already fixed
and applied in trunk

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

Modified: continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/UserRolesManagementTest.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/UserRolesManagementTest.java?rev=805651&r1=805650&r2=805651&view=diff
==============================================================================
--- continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/UserRolesManagementTest.java
(original)
+++ continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/UserRolesManagementTest.java
Wed Aug 19 03:32:09 2009
@@ -32,17 +32,13 @@
         createUser( username, fullname, getUserEmail(), getUserRolePassword(), true );
         assertCreatedUserInfo( username );
         checkUserRoleWithValue( fullname );
-		clickButtonWithValue( "Submit" );
-
+	clickButtonWithValue( "Submit" );
         clickLinkWithText( "Logout" );
 
         login( username, getUserRolePassword() );
         changePassword( getUserRolePassword(), getUserRoleNewPassword() );
-        // this section will be removed if issue from redback after changing password will
be fixed.
-        getSelenium().goBack();
-        waitPage();
+	assertTextPresent( "Password successfully changed" );        
         clickLinkWithText( "Logout" );
-        // assertTextPresent("You are already logged in.");
     }
 
     @Test( dependsOnMethods = { "testAddUserWithGuestRole" } )
@@ -79,9 +75,8 @@
 
         login( username, getUserRolePassword() );
         changePassword( getUserRolePassword(), getUserRoleNewPassword() );
-        // this section will be removed if issue from redback after changing password will
be fixed.
-        getSelenium().goBack();
-        waitPage();
+	assertTextPresent( "Password successfully changed" );
+
         clickLinkWithText( "Logout" );
         // assertTextPresent("You are already logged in.");
     }
@@ -123,10 +118,8 @@
 
         login( username, getUserRolePassword() );
         changePassword( getUserRolePassword(), getUserRoleNewPassword() );
+	assertTextPresent( "Password successfully changed" );
 
-        // this section will be removed if issue from redback after changing password will
be fixed.
-        getSelenium().goBack();
-        waitPage();
         clickLinkWithText( "Logout" );
     }
 
@@ -166,10 +159,8 @@
 
         login( username, getUserRolePassword() );
         changePassword( getUserRolePassword(), getUserRoleNewPassword() );
+	assertTextPresent( "Password successfully changed" );
 
-        // this section will be removed if issue from redback after changing password will
be fixed.
-        getSelenium().goBack();
-        waitPage();
         clickLinkWithText( "Logout" );
     }
     
@@ -221,17 +212,12 @@
         assertCreatedUserInfo( username );
         checkUserRoleWithValue( fullname );
         clickButtonWithValue( "Submit" );
-
-        clickLinkWithText( "Logout" );
+	clickLinkWithText( "Logout" );
 
         login( username, getUserRolePassword() );
         changePassword( getUserRolePassword(), getUserRoleNewPassword() );
-
-        // this section will be removed if issue from redback after changing password will
be fixed.
-        getSelenium().goBack();
-        waitPage();
+	assertTextPresent( "Password successfully changed" );
         clickLinkWithText( "Logout" );
-        // assertTextPresent("You are already logged in.");
     }
 
     @Test( dependsOnMethods = { "testAddUserWithContinuumGroupProjectAdminRole" } )
@@ -348,18 +334,13 @@
         createUser( username, fullname, getUserEmail(), getUserRolePassword(), true );
         assertCreatedUserInfo( username );
         checkUserRoleWithValue( fullname );
-		clickButtonWithValue( "Submit" );
-
+	clickButtonWithValue( "Submit" );
         clickLinkWithText( "Logout" );
 
         login( username, getUserRolePassword() );
         changePassword( getUserRolePassword(), getUserRoleNewPassword() );
-
-        // this section will be removed if issue from redback after changing password will
be fixed.
-        getSelenium().goBack();
-        waitPage();
+	assertTextPresent( "Password successfully changed" );
         clickLinkWithText( "Logout" );
-        // assertTextPresent("You are already logged in.");
 
         login( username, getUserRoleNewPassword() );
         assertLeftNavMenuWithRole( fullname );
@@ -376,18 +357,13 @@
         createUser( username, fullname, getUserEmail(), getUserRolePassword(), true );
         assertCreatedUserInfo( username );
         checkUserRoleWithValue( fullname );
-		clickButtonWithValue( "Submit" );
-
+	clickButtonWithValue( "Submit" );
         clickLinkWithText( "Logout" );
 
         login( username, getUserRolePassword() );
         changePassword( getUserRolePassword(), getUserRoleNewPassword() );
-
-        // this section will be removed if issue from redback after changing password will
be fixed.
-        getSelenium().goBack();
-        waitPage();
+	assertTextPresent( "Password successfully changed" );
         clickLinkWithText( "Logout" );
-        // assertTextPresent("You are already logged in.");
 
         login( username, getUserRoleNewPassword() );
         assertLeftNavMenuWithRole( fullname );
@@ -404,18 +380,13 @@
         createUser( username, fullname, getUserEmail(), getUserRolePassword(), true );
         assertCreatedUserInfo( username );
         checkUserRoleWithValue( fullname );
-		clickButtonWithValue( "Submit" );
-
+	clickButtonWithValue( "Submit" );
         clickLinkWithText( "Logout" );
 
         login( username, getUserRolePassword() );
         changePassword( getUserRolePassword(), getUserRoleNewPassword() );
-
-        // this section will be removed if issue from redback after changing password will
be fixed.
-        getSelenium().goBack();
-        waitPage();
+	assertTextPresent( "Password successfully changed" );	
         clickLinkWithText( "Logout" );
-        // assertTextPresent("You are already logged in.");
 
         login( username, getUserRoleNewPassword() );
         assertLeftNavMenuWithRole( fullname );
@@ -432,18 +403,13 @@
         createUser( username, fullname, getUserEmail(), getUserRolePassword(), true );
         assertCreatedUserInfo( username );
         checkUserRoleWithValue( fullname );
-		clickButtonWithValue( "Submit" );
-
+	clickButtonWithValue( "Submit" );
         clickLinkWithText( "Logout" );
 
         login( username, getUserRolePassword() );
         changePassword( getUserRolePassword(), getUserRoleNewPassword() );
-
-        // this section will be removed if issue from redback after changing password will
be fixed.
-        getSelenium().goBack();
-        waitPage();
+	assertTextPresent( "Password successfully changed" );
         clickLinkWithText( "Logout" );
-        // assertTextPresent("You are already logged in.");
 
         login( username, getUserRoleNewPassword() );
         assertLeftNavMenuWithRole( fullname );
@@ -460,18 +426,13 @@
         createUser( username, fullname, getUserEmail(), getUserRolePassword(), true );
         assertCreatedUserInfo( username );
         checkUserRoleWithValue( fullname );
-		clickButtonWithValue( "Submit" );
-
+	clickButtonWithValue( "Submit" );
         clickLinkWithText( "Logout" );
 
         login( username, getUserRolePassword() );
         changePassword( getUserRolePassword(), getUserRoleNewPassword() );
-
-        // this section will be removed if issue from redback after changing password will
be fixed.
-        getSelenium().goBack();
-        waitPage();
+	assertTextPresent( "Password successfully changed" );
         clickLinkWithText( "Logout" );
-        // assertTextPresent("You are already logged in.");
 
         login( username, getUserRoleNewPassword() );
         assertLeftNavMenuWithRole( fullname );
@@ -488,18 +449,13 @@
         createUser( username, fullname, getUserEmail(), getUserRolePassword(), true );
         assertCreatedUserInfo( username );
         checkUserRoleWithValue( fullname );
-		clickButtonWithValue( "Submit" );
-
+	clickButtonWithValue( "Submit" );
         clickLinkWithText( "Logout" );
 
         login( username, getUserRolePassword() );
         changePassword( getUserRolePassword(), getUserRoleNewPassword() );
-
-        // this section will be removed if issue from redback after changing password will
be fixed.
-        getSelenium().goBack();
-        waitPage();
+	assertTextPresent( "Password successfully changed" );
         clickLinkWithText( "Logout" );
-        // assertTextPresent("You are already logged in.");
 
         login( username, getUserRoleNewPassword() );
         assertLeftNavMenuWithRole( fullname );
@@ -516,18 +472,13 @@
         createUser( username, fullname, getUserEmail(), getUserRolePassword(), true );
         assertCreatedUserInfo( username );
         checkUserRoleWithValue( fullname );
-		clickButtonWithValue( "Submit" );
-
+	clickButtonWithValue( "Submit" );
         clickLinkWithText( "Logout" );
 
         login( username, getUserRolePassword() );
         changePassword( getUserRolePassword(), getUserRoleNewPassword() );
-
-        // this section will be removed if issue from redback after changing password will
be fixed.
-        getSelenium().goBack();
-        waitPage();
+	assertTextPresent( "Password successfully changed" );
         clickLinkWithText( "Logout" );
-        // assertTextPresent("You are already logged in.");
 
         login( username, getUserRoleNewPassword() );
         assertLeftNavMenuWithRole( fullname );
@@ -544,18 +495,13 @@
         createUser( username, fullname, getUserEmail(), getUserRolePassword(), true );
         assertCreatedUserInfo( username );
         checkUserRoleWithValue( fullname );
-		clickButtonWithValue( "Submit" );
-
+	clickButtonWithValue( "Submit" );
         clickLinkWithText( "Logout" );
 
         login( username, getUserRolePassword() );
         changePassword( getUserRolePassword(), getUserRoleNewPassword() );
-
-        // this section will be removed if issue from redback after changing password will
be fixed.
-        getSelenium().goBack();
-        waitPage();
+	assertTextPresent( "Password successfully changed" );
         clickLinkWithText( "Logout" );
-        // assertTextPresent("You are already logged in.");
 
         login( username, getUserRoleNewPassword() );
         assertLeftNavMenuWithRole( fullname );
@@ -572,17 +518,13 @@
         createUser( username, fullname, getUserEmail(), getUserRolePassword(), true );
         assertCreatedUserInfo( username );
         checkUserRoleWithValue( fullname );
-		clickButtonWithValue( "Submit" );
+	clickButtonWithValue( "Submit" );
         clickLinkWithText( "Logout" );
 
         login( username, getUserRolePassword() );
         changePassword( getUserRolePassword(), getUserRoleNewPassword() );
-
-        // this section will be removed if issue from redback after changing password will
be fixed.
-        getSelenium().goBack();
-        waitPage();
+	assertTextPresent( "Password successfully changed" );
         clickLinkWithText( "Logout" );
-        // assertTextPresent("You are already logged in.");
 
         login( username, getUserRoleNewPassword() );
         assertLeftNavMenuWithRole( fullname );
@@ -599,18 +541,13 @@
         createUser( username, fullname, getUserEmail(), getUserRolePassword(), true );
         assertCreatedUserInfo( username );
         checkResourceRoleWithValue( fullname );
-		clickButtonWithValue( "Submit" );
-
+	clickButtonWithValue( "Submit" );
         clickLinkWithText( "Logout" );
 
         login( username, getUserRolePassword() );
         changePassword( getUserRolePassword(), getUserRoleNewPassword() );
-
-        // this section will be removed if issue from redback after changing password will
be fixed.
-        getSelenium().goBack();
-        waitPage();
+	assertTextPresent( "Password successfully changed" );
         clickLinkWithText( "Logout" );
-        // assertTextPresent("You are already logged in.");
 
         login( username, getUserRoleNewPassword() );
         assertLeftNavMenuWithRole( fullname );
@@ -627,18 +564,13 @@
         createUser( username, fullname, getUserEmail(), getUserRolePassword(), true );
         assertCreatedUserInfo( username );
         checkResourceRoleWithValue( fullname );
-		clickButtonWithValue( "Submit" );
-
+	clickButtonWithValue( "Submit" );
         clickLinkWithText( "Logout" );
 
         login( username, getUserRolePassword() );
         changePassword( getUserRolePassword(), getUserRoleNewPassword() );
-
-        // this section will be removed if issue from redback after changing password will
be fixed.
-        getSelenium().goBack();
-        waitPage();
+	assertTextPresent( "Password successfully changed" );
         clickLinkWithText( "Logout" );
-        // assertTextPresent("You are already logged in.");
 
         login( username, getUserRoleNewPassword() );
         assertLeftNavMenuWithRole( fullname );
@@ -655,17 +587,13 @@
         createUser( username, fullname, getUserEmail(), getUserRolePassword(), true );
         assertCreatedUserInfo( username );
         checkResourceRoleWithValue( fullname );
-		clickButtonWithValue( "Submit" );
+	clickButtonWithValue( "Submit" );
         clickLinkWithText( "Logout" );
 
         login( username, getUserRolePassword() );
         changePassword( getUserRolePassword(), getUserRoleNewPassword() );
-
-        // this section will be removed if issue from redback after changing password will
be fixed.
-        getSelenium().goBack();
-        waitPage();
+	assertTextPresent( "Password successfully changed" );
         clickLinkWithText( "Logout" );
-        // assertTextPresent("You are already logged in.");
 
         login( username, getUserRoleNewPassword() );
         assertLeftNavMenuWithRole( fullname );



Mime
View raw message