syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmarte...@apache.org
Subject svn commit: r1449759 - in /syncope/trunk: console/src/test/java/org/apache/syncope/console/ core/src/test/java/org/apache/syncope/core/rest/
Date Mon, 25 Feb 2013 16:02:49 GMT
Author: fmartelli
Date: Mon Feb 25 16:02:48 2013
New Revision: 1449759

URL: http://svn.apache.org/r1449759
Log:
SYNCOPE-265 fixes some selenium tests

Modified:
    syncope/trunk/console/src/test/java/org/apache/syncope/console/EditProfileTestITCase.java
    syncope/trunk/console/src/test/java/org/apache/syncope/console/UserTestITCase.java
    syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/RoleTestITCase.java
    syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/TaskTestITCase.java

Modified: syncope/trunk/console/src/test/java/org/apache/syncope/console/EditProfileTestITCase.java
URL: http://svn.apache.org/viewvc/syncope/trunk/console/src/test/java/org/apache/syncope/console/EditProfileTestITCase.java?rev=1449759&r1=1449758&r2=1449759&view=diff
==============================================================================
--- syncope/trunk/console/src/test/java/org/apache/syncope/console/EditProfileTestITCase.java
(original)
+++ syncope/trunk/console/src/test/java/org/apache/syncope/console/EditProfileTestITCase.java
Mon Feb 25 16:02:48 2013
@@ -40,7 +40,7 @@ public class EditProfileTestITCase exten
         selenium.click("css=a.w_close");
 
         // only to have some "Logout" availabe for @After
-        selenium.type("name=userId", "user1");
+        selenium.type("name=userId", "rossini");
         selenium.type("name=password", "password");
         selenium.click("name=:submit");
 
@@ -50,7 +50,7 @@ public class EditProfileTestITCase exten
     @Test
     public void editUserProfile() {
         selenium.open("/syncope-console/");
-        selenium.type("name=userId", "user1");
+        selenium.type("name=userId", "rossini");
         selenium.type("name=password", "password");
         selenium.click("name=:submit");
         selenium.waitForPageToLoad("30000");
@@ -61,7 +61,7 @@ public class EditProfileTestITCase exten
         selenium.click("//div/ul/li[10]/div/div/a/span");
 
         selenium.waitForCondition("selenium.isElementPresent(\"//span[contains(text(),'Attributes')]\");",
"30000");
-        selenium.waitForCondition("selenium.isElementPresent(\"//input[@value='user1']\");",
"30000");
+        selenium.waitForCondition("selenium.isElementPresent(\"//input[@value='rossini']\");",
"30000");
 
         selenium.click("css=a.w_close");
     }

Modified: syncope/trunk/console/src/test/java/org/apache/syncope/console/UserTestITCase.java
URL: http://svn.apache.org/viewvc/syncope/trunk/console/src/test/java/org/apache/syncope/console/UserTestITCase.java?rev=1449759&r1=1449758&r2=1449759&view=diff
==============================================================================
--- syncope/trunk/console/src/test/java/org/apache/syncope/console/UserTestITCase.java (original)
+++ syncope/trunk/console/src/test/java/org/apache/syncope/console/UserTestITCase.java Mon
Feb 25 16:02:48 2013
@@ -49,12 +49,12 @@ public class UserTestITCase extends Abst
 
         selenium.waitForCondition("selenium.isElementPresent(\"//div[@id='tabs']\");", "30000");
 
-        //Edit user3
+        //Edit vivaldi
         selenium.click("//*[@id=\"users-contain\"]//*[div=3]/../td[4]/div/span[9]/a");
 
-        selenium.waitForCondition("selenium.isElementPresent(" + "\"//input[@value='testUsername']\");",
"30000");
+        selenium.waitForCondition("selenium.isElementPresent(" + "\"//input[@value='Antonio
Vivaldi']\");", "30000");
 
-        selenium.waitForCondition("selenium.isElementPresent(" + "\"//input[@value='Doe']\");",
"30000");
+        selenium.waitForCondition("selenium.isElementPresent(" + "\"//input[@value='Vivaldi']\");",
"30000");
 
         selenium.click("//div[@id='tabs']/ul/li[2]/a/span");
         selenium.click("//div[@id='tabs']/ul/li[3]/a/span");

Modified: syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/RoleTestITCase.java
URL: http://svn.apache.org/viewvc/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/RoleTestITCase.java?rev=1449759&r1=1449758&r2=1449759&view=diff
==============================================================================
--- syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/RoleTestITCase.java (original)
+++ syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/RoleTestITCase.java Mon
Feb 25 16:02:48 2013
@@ -296,7 +296,7 @@ public class RoleTestITCase extends Abst
         roleMod.setId(roleTO.getId());
         roleMod.setName("Managing Director");
 
-        // 3. try to update as user3, not owner of role 7 - fail
+        // 3. try to update as verdi, not owner of role 7 - fail
         RoleService roleService2 = setupCredentials(roleService, RoleService.class, "verdi",
ADMIN_PWD);
 
         try {
@@ -308,7 +308,7 @@ public class RoleTestITCase extends Abst
             assertNotNull(e);
         }
 
-        // 4. update as user5, owner of role 7 because owner of role 6 with
+        // 4. update as puccini, owner of role 7 because owner of role 6 with
         // inheritance - success
         RoleService roleService3 = setupCredentials(roleService, RoleService.class, "puccini",
ADMIN_PWD);
 

Modified: syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/TaskTestITCase.java
URL: http://svn.apache.org/viewvc/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/TaskTestITCase.java?rev=1449759&r1=1449758&r2=1449759&view=diff
==============================================================================
--- syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/TaskTestITCase.java (original)
+++ syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/TaskTestITCase.java Mon
Feb 25 16:02:48 2013
@@ -237,8 +237,8 @@ public class TaskTestITCase extends Abst
         inUserTO.addAttribute(attributeTO("surname", "cognome"));
         inUserTO.addAttribute(attributeTO("type", "a type"));
         inUserTO.addAttribute(attributeTO("fullname", "nome cognome"));
-        inUserTO.addAttribute(attributeTO("userId", "user5@syncope.apache.org"));
-        inUserTO.addAttribute(attributeTO("email", "user5@syncope.apache.org"));
+        inUserTO.addAttribute(attributeTO("userId", "puccini@syncope.apache.org"));
+        inUserTO.addAttribute(attributeTO("email", "puccini@syncope.apache.org"));
         inUserTO.addDerivedAttribute(attributeTO("csvuserid", null));
 
         inUserTO = createUser(inUserTO);



Mime
View raw message