gatein SVN: r3599 - portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium.
by do-not-reply@jboss.org
Author: hangnguyen
Date: 2010-07-12 03:53:27 -0400 (Mon, 12 Jul 2010)
New Revision: 3599
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_02_02_006_SearchWithInCompletedWordButHasStarCharsToFindTheRightLeft.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_02_03_002_EditFirstNameOfUserInCommunityManagement.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_02_03_003_EditLastNameOfUserInCommunityManagement.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_02_03_004_CheckEditEmailInCommunityManagement.html
Log:
TESTVN-356: Clean and improve
Modified: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_02_02_006_SearchWithInCompletedWordButHasStarCharsToFindTheRightLeft.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_02_02_006_SearchWithInCompletedWordButHasStarCharsToFindTheRightLeft.html 2010-07-12 04:28:53 UTC (rev 3598)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_02_02_006_SearchWithInCompletedWordButHasStarCharsToFindTheRightLeft.html 2010-07-12 07:53:27 UTC (rev 3599)
@@ -78,6 +78,16 @@
</tr>
<tr>
<td>waitForElementPresent</td>
+ <td>searchOption</td>
+ <td></td>
+</tr>
+<tr>
+ <td>select</td>
+ <td>searchOption</td>
+ <td>label=User Name</td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
<td>//form[@id='UISearchForm']/div[2]/a</td>
<td></td>
</tr>
@@ -87,16 +97,11 @@
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIListUsersGird']/table/tbody/tr/td[1]/div</td>
+ <td>verifyTextPresent</td>
<td>demo</td>
+ <td></td>
</tr>
<tr>
- <td>verifyText</td>
- <td>//div[@id='UIListUsersGird']/table/tbody/tr/td[1]/div</td>
- <td>demo</td>
-</tr>
-<tr>
<td>echo</td>
<td>-- Return to user list--</td>
<td></td>
Modified: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_02_03_002_EditFirstNameOfUserInCommunityManagement.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_02_03_002_EditFirstNameOfUserInCommunityManagement.html 2010-07-12 04:28:53 UTC (rev 3598)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_02_03_002_EditFirstNameOfUserInCommunityManagement.html 2010-07-12 07:53:27 UTC (rev 3599)
@@ -592,9 +592,9 @@
<td></td>
</tr>
<tr>
- <td>waitForText</td>
+ <td>waitForElementPresent</td>
<td>//div[3]/div/div/div/div/div[2]</td>
- <td>The user profile has been updated.</td>
+ <td></td>
</tr>
<tr>
<td>verifyText</td>
Modified: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_02_03_003_EditLastNameOfUserInCommunityManagement.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_02_03_003_EditLastNameOfUserInCommunityManagement.html 2010-07-12 04:28:53 UTC (rev 3598)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_02_03_003_EditLastNameOfUserInCommunityManagement.html 2010-07-12 07:53:27 UTC (rev 3599)
@@ -57,6 +57,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=New Staff</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAndWait</td>
<td>link=New Staff</td>
<td></td>
@@ -592,9 +597,9 @@
<td></td>
</tr>
<tr>
- <td>waitForText</td>
+ <td>waitForElementPresent</td>
<td>//div[3]/div/div/div/div/div[2]</td>
- <td>The user profile has been updated.</td>
+ <td></td>
</tr>
<tr>
<td>verifyText</td>
Modified: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_02_03_004_CheckEditEmailInCommunityManagement.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_02_03_004_CheckEditEmailInCommunityManagement.html 2010-07-12 04:28:53 UTC (rev 3598)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_02_03_004_CheckEditEmailInCommunityManagement.html 2010-07-12 07:53:27 UTC (rev 3599)
@@ -227,6 +227,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UIListUsersGird']/table/tbody/tr[1]/td[4]/div</td>
+ <td></td>
+</tr>
+<tr>
<td>verifyText</td>
<td>//div[@id='UIListUsersGird']/table/tbody/tr[1]/td[4]/div</td>
<td>Test_PRL_02_03_003_edit(a)gmail.com</td>
14 years, 5 months
gatein SVN: r3598 - portal/trunk/testsuite/testdefinitions.
by do-not-reply@jboss.org
Author: hangnguyen
Date: 2010-07-12 00:28:53 -0400 (Mon, 12 Jul 2010)
New Revision: 3598
Modified:
portal/trunk/testsuite/testdefinitions/GateIn_v3.1.0_SniffTests.ods
Log:
TESTVN-1020: Complete GTN snifftest review and scope validation
Modified: portal/trunk/testsuite/testdefinitions/GateIn_v3.1.0_SniffTests.ods
===================================================================
(Binary files differ)
14 years, 5 months
gatein SVN: r3597 - in portal/trunk: server/jboss/patch-ear/src/main/jboss/server/default/deploy/gatein.ear/META-INF and 1 other directory.
by do-not-reply@jboss.org
Author: bdaw
Date: 2010-07-08 16:26:09 -0400 (Thu, 08 Jul 2010)
New Revision: 3597
Added:
portal/trunk/component/identity/src/main/java/org/exoplatform/services/organization/idm/CustomMembershipLoginModule.java
Modified:
portal/trunk/server/jboss/patch-ear/src/main/jboss/server/default/deploy/gatein.ear/META-INF/gatein-jboss-beans.xml
Log:
GTNPORTAL-1347 - Mechanism to auto assign users to /platform/users group
Added: portal/trunk/component/identity/src/main/java/org/exoplatform/services/organization/idm/CustomMembershipLoginModule.java
===================================================================
--- portal/trunk/component/identity/src/main/java/org/exoplatform/services/organization/idm/CustomMembershipLoginModule.java (rev 0)
+++ portal/trunk/component/identity/src/main/java/org/exoplatform/services/organization/idm/CustomMembershipLoginModule.java 2010-07-08 20:26:09 UTC (rev 3597)
@@ -0,0 +1,180 @@
+/**
+* Copyright (C) 2009 eXo Platform SAS.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.exoplatform.services.organization.idm;
+
+import javax.security.auth.login.LoginException;
+import org.exoplatform.container.component.ComponentRequestLifecycle;
+import org.exoplatform.container.component.RequestLifeCycle;
+import org.exoplatform.services.log.ExoLogger;
+import org.exoplatform.services.log.Log;
+import org.exoplatform.services.organization.Group;
+import org.exoplatform.services.organization.MembershipType;
+import org.exoplatform.services.organization.OrganizationService;
+import org.exoplatform.services.organization.User;
+import org.exoplatform.services.security.Authenticator;
+import org.exoplatform.services.security.Identity;
+import org.exoplatform.services.security.MembershipEntry;
+import org.exoplatform.services.security.jaas.AbstractLoginModule;
+
+/**
+ * Login module can be used to add authenticated user to some group after successful login.<br>
+ * For example, user can be add as "member" to group "/platform/users" after his login. Group name and Membership
+ * type are configurable and if they are not provided by configuration, then value "member" is used as default
+ * value for membership type and "/platform/users" for group.
+ *
+ * @author <a href="mailto:mposolda@redhat.com">Marek Posolda</a>
+ * @author <a href="mailto:vrockai@redhat.com">Viliam Rockai</a>
+ * @author <a href="mailto:boleslaw.dawidowicz at redhat.com">Boleslaw Dawidowicz</a>
+ */
+public class CustomMembershipLoginModule extends AbstractLoginModule
+{
+ /** Logger. */
+ private static final Log log = ExoLogger.getLogger(CustomMembershipLoginModule.class);
+
+ private static final String OPTION_MEMBERSHIP_TYPE = "membershipType";
+
+ private static final String OPTION_GROUP_ID = "groupId";
+
+ // values obtained from configuration options
+ private String membershipType;
+
+ private String groupId;
+
+ // MembershipEntry with values provided from configuration. We will use it to check if user is not already presented in our group.
+ private MembershipEntry requestedMembershipEntry;
+
+ /**
+ * Read values from configuration. Default values ("member" and "/platform/users") are used if options are missing in configuration.
+ */
+ protected void afterInitialize()
+ {
+ membershipType = options.get(OPTION_MEMBERSHIP_TYPE) != null ? (String)options.get(OPTION_MEMBERSHIP_TYPE) : "member";
+ groupId = options.get(OPTION_GROUP_ID) != null ? (String)options.get(OPTION_GROUP_ID) : "/platform/users";
+ // membershipType is * so we are not checking exact value of membershipType in method login
+ requestedMembershipEntry = new MembershipEntry(groupId);
+ }
+ /**
+ * @see javax.security.auth.spi.LoginModule#login()
+ */
+ @SuppressWarnings("unchecked")
+ public boolean login() throws LoginException
+ {
+ if (log.isDebugEnabled())
+ {
+ log.debug("login invoked!");
+ }
+ try
+ {
+ // get identity set by SharedStateLoginModule in case of succesfful authentication
+ Identity identity = null;
+ if (sharedState.containsKey("exo.security.identity"))
+ {
+ identity = (Identity)sharedState.get("exo.security.identity");
+ }
+ // return if identity is not present (this means that user authentication failed in SharedStateLoginModule)
+ if (identity == null)
+ {
+ return true;
+ }
+ // check if user is already added to our group with given membershipType. If yes, we don't need to do something.
+ if (identity.getMemberships().contains(requestedMembershipEntry))
+ {
+ return true;
+ }
+ // Now add our user to requested group
+ log.info("User " + identity.getUserId() + " will be added to group " + groupId + " as " + membershipType + ".");
+ addUserToPlatformUsers(identity.getUserId());
+ // recreate identity
+ Authenticator authenticator = (Authenticator)getContainer().getComponentInstanceOfType(Authenticator.class);
+ identity = authenticator.createIdentity(identity.getUserId());
+ sharedState.put("exo.security.identity", identity);
+ return true;
+ }
+ catch (Exception e)
+ {
+ LoginException le = new LoginException();
+ le.initCause(e);
+ throw le;
+ }
+ }
+ /**
+ * @see javax.security.auth.spi.LoginModule#commit()
+ */
+ public boolean commit() throws LoginException
+ {
+ return true;
+ }
+ /**
+ * @see javax.security.auth.spi.LoginModule#abort()
+ */
+ public boolean abort() throws LoginException
+ {
+ return true;
+ }
+ /**
+ * @see javax.security.auth.spi.LoginModule#logout()
+ */
+ public boolean logout() throws LoginException
+ {
+ return true;
+ }
+ @Override
+ protected Log getLogger()
+ {
+ return log;
+ }
+ /**
+ * Add given user to our group with given membershipType.
+ *
+ * @param userId
+ */
+ private void addUserToPlatformUsers(String userId) throws Exception
+ {
+ try
+ {
+ OrganizationService orgService = (OrganizationService)getContainer().getComponentInstanceOfType(OrganizationService.class);
+ begin(orgService);
+ User user = orgService.getUserHandler().findUserByName(userId);
+ MembershipType memberType = orgService.getMembershipTypeHandler().findMembershipType(membershipType);
+ Group platformUsersGroup = orgService.getGroupHandler().findGroupById(groupId);
+ orgService.getMembershipHandler().linkMembership(user, platformUsersGroup, memberType, true);
+ end(orgService);
+ }
+ catch (Exception e)
+ {
+ log.error("Failed to add user " + userId + " to group " + groupId + ".", e);
+ // don't rethrow login exception in case of failure.
+ // throw e;
+ }
+ }
+ private void begin(OrganizationService orgService) throws Exception
+ {
+ if (orgService instanceof ComponentRequestLifecycle)
+ {
+ RequestLifeCycle.begin((ComponentRequestLifecycle)orgService);
+ }
+ }
+ private void end(OrganizationService orgService) throws Exception
+ {
+ if (orgService instanceof ComponentRequestLifecycle)
+ {
+ RequestLifeCycle.end();
+ }
+ }
+}
Modified: portal/trunk/server/jboss/patch-ear/src/main/jboss/server/default/deploy/gatein.ear/META-INF/gatein-jboss-beans.xml
===================================================================
--- portal/trunk/server/jboss/patch-ear/src/main/jboss/server/default/deploy/gatein.ear/META-INF/gatein-jboss-beans.xml 2010-07-07 09:15:18 UTC (rev 3596)
+++ portal/trunk/server/jboss/patch-ear/src/main/jboss/server/default/deploy/gatein.ear/META-INF/gatein-jboss-beans.xml 2010-07-08 20:26:09 UTC (rev 3597)
@@ -10,6 +10,18 @@
<module-option name="portalContainerName">portal</module-option>
<module-option name="realmName">gatein-domain</module-option>
</login-module>
+
+ <!-- Uncomment this part to check on each login if user is member of "/platform/users" group and if not
+ create such membership -->
+ <!--
+ <login-module code="org.exoplatform.services.organization.idm.CustomMembershipLoginModule" flag="required">
+ <module-option name="portalContainerName">portal</module-option>
+ <module-option name="realmName">gatein-domain</module-option>
+ <module-option name="membershipType">member</module-option>
+ <module-option name="groupId">/platform/users</module-option>
+ </login-module>
+ -->
+
<login-module code="org.exoplatform.services.security.j2ee.JbossLoginModule" flag="required">
<module-option name="portalContainerName">portal</module-option>
<module-option name="realmName">gatein-domain</module-option>
14 years, 5 months
gatein SVN: r3596 - portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium.
by do-not-reply@jboss.org
Author: vuthelinh
Date: 2010-07-07 05:15:18 -0400 (Wed, 07 Jul 2010)
New Revision: 3596
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_34_ChangeLogo.html
Log:
Modified: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_34_ChangeLogo.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_34_ChangeLogo.html 2010-07-07 07:02:12 UTC (rev 3595)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_34_ChangeLogo.html 2010-07-07 09:15:18 UTC (rev 3596)
@@ -87,6 +87,11 @@
<td></td>
</tr>
<tr>
+ <td>mouseOver</td>
+ <td>//div/div/div[2]/div/div/div/div/div/div/a[1]</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
<td>//div/div/div[2]/div/div/div/div/div/div/a[1]</td>
<td></td>
14 years, 5 months
gatein SVN: r3595 - portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium.
by do-not-reply@jboss.org
Author: hangnguyen
Date: 2010-07-07 03:02:12 -0400 (Wed, 07 Jul 2010)
New Revision: 3595
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_02_02_006_SearchWithInCompletedWordButHasStarCharsToFindTheRightLeft.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_02_04_003_DeleteSpecificUserFormSearchResultInCommunityManagement.html
Log:
TESTVN-356: Clean and improve
Modified: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_02_02_006_SearchWithInCompletedWordButHasStarCharsToFindTheRightLeft.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_02_02_006_SearchWithInCompletedWordButHasStarCharsToFindTheRightLeft.html 2010-07-07 06:46:31 UTC (rev 3594)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_02_02_006_SearchWithInCompletedWordButHasStarCharsToFindTheRightLeft.html 2010-07-07 07:02:12 UTC (rev 3595)
@@ -57,16 +57,11 @@
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
+ <td>clickAndWait</td>
<td>link=Users and groups management</td>
<td></td>
</tr>
<tr>
- <td>click</td>
- <td>link=Users and groups management</td>
- <td></td>
-</tr>
-<tr>
<td>echo</td>
<td>-- Search with in completed word but has * to find the left--</td>
<td></td>
Modified: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_02_04_003_DeleteSpecificUserFormSearchResultInCommunityManagement.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_02_04_003_DeleteSpecificUserFormSearchResultInCommunityManagement.html 2010-07-07 06:46:31 UTC (rev 3594)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_02_04_003_DeleteSpecificUserFormSearchResultInCommunityManagement.html 2010-07-07 07:02:12 UTC (rev 3595)
@@ -267,16 +267,11 @@
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIListUsersGird']/table/tbody/tr[1]/td[1]/div</td>
+ <td>verifyTextPresent</td>
+ <td>Test_PRL_02_04_003</td>
<td></td>
</tr>
<tr>
- <td>verifyText</td>
- <td>//div[@id='UIListUsersGird']/table/tbody/tr[1]/td[1]/div</td>
- <td>Test_PRL_02_04_003</td>
-</tr>
-<tr>
<td>echo</td>
<td>-- Search new user in list --</td>
<td></td>
14 years, 5 months
gatein SVN: r3594 - portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium.
by do-not-reply@jboss.org
Author: vuthelinh
Date: 2010-07-07 02:46:31 -0400 (Wed, 07 Jul 2010)
New Revision: 3594
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_24_EditNavigationAndEditPropertiesAndDeleteInGroupNavigation.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_25_EditPageOfNode.html
Log:
Modified: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_24_EditNavigationAndEditPropertiesAndDeleteInGroupNavigation.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_24_EditNavigationAndEditPropertiesAndDeleteInGroupNavigation.html 2010-07-07 04:16:39 UTC (rev 3593)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_24_EditNavigationAndEditPropertiesAndDeleteInGroupNavigation.html 2010-07-07 06:46:31 UTC (rev 3594)
@@ -258,12 +258,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[2]/div[1]/a</td>
+ <td>xpath=//a[@title='test_grp_label_24']</td>
<td></td>
</tr>
<tr>
<td>mouseDownRight</td>
- <td>//div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[2]/div[1]/a</td>
+ <td>xpath=//a[@title='test_grp_label_24']</td>
<td></td>
</tr>
<tr>
Modified: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_25_EditPageOfNode.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_25_EditPageOfNode.html 2010-07-07 04:16:39 UTC (rev 3593)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_25_EditPageOfNode.html 2010-07-07 06:46:31 UTC (rev 3594)
@@ -193,12 +193,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[2]/div[1]/a</td>
+ <td>xpath=//a[@title='test_grp_label_25']</td>
<td></td>
</tr>
<tr>
<td>mouseDownRight</td>
- <td>//div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[2]/div[1]/a</td>
+ <td>xpath=//a[@title='test_grp_label_25']</td>
<td></td>
</tr>
<tr>
@@ -293,20 +293,15 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[2]/div[1]/a</td>
+ <td>xpath=//a[@title='test_grp_label_25']</td>
<td></td>
</tr>
<tr>
<td>mouseDownRight</td>
- <td>//div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[2]/div[1]/a</td>
+ <td>xpath=//a[@title='test_grp_label_25']</td>
<td></td>
</tr>
<tr>
- <td>pause</td>
- <td>1000</td>
- <td></td>
-</tr>
-<tr>
<td>waitForElementPresent</td>
<td>link=Delete Node</td>
<td></td>
14 years, 5 months
gatein SVN: r3593 - portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium.
by do-not-reply@jboss.org
Author: vuthelinh
Date: 2010-07-07 00:16:39 -0400 (Wed, 07 Jul 2010)
New Revision: 3593
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_25_EditPageOfNode.html
Log:
Modified: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_25_EditPageOfNode.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_25_EditPageOfNode.html 2010-07-07 04:14:29 UTC (rev 3592)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_25_EditPageOfNode.html 2010-07-07 04:16:39 UTC (rev 3593)
@@ -287,6 +287,11 @@
<td></td>
</tr>
<tr>
+ <td>pause</td>
+ <td>1000</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>//div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[2]/div[1]/a</td>
<td></td>
14 years, 5 months
gatein SVN: r3592 - portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium.
by do-not-reply@jboss.org
Author: vuthelinh
Date: 2010-07-07 00:14:29 -0400 (Wed, 07 Jul 2010)
New Revision: 3592
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_24_EditNavigationAndEditPropertiesAndDeleteInGroupNavigation.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_25_EditPageOfNode.html
Log:
Modified: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_24_EditNavigationAndEditPropertiesAndDeleteInGroupNavigation.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_24_EditNavigationAndEditPropertiesAndDeleteInGroupNavigation.html 2010-07-07 04:09:20 UTC (rev 3591)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_24_EditNavigationAndEditPropertiesAndDeleteInGroupNavigation.html 2010-07-07 04:14:29 UTC (rev 3592)
@@ -27,7 +27,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Sign in</td>
<td></td>
</tr>
@@ -48,7 +48,7 @@
</tr>
<tr>
<td>clickAndWait</td>
- <td>xpath=//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
+ <td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
<td></td>
</tr>
<tr>
@@ -122,8 +122,13 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[2]/div/div/div/div/div/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
- <td>xpath=//div[@class='CenterHorizontalTabs']//div[@class='NormalTab']//div[@class='MiddleTab']</td>
+ <td>//div[2]/div/div/div/div/div/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
<td></td>
</tr>
<tr>
@@ -198,15 +203,20 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[@id='UIGroupNavigationGrid']/table[1]//td[@class='ActionBlock']//a[@class='EditProIcon']</td>
+ <td>//div[@id='UIGroupNavigationGrid']/table[1]//td[@class='ActionBlock']//a[@class='EditProIcon']</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>xpath=//div[@id='UIGroupNavigationGrid']/table[1]//td[@class='ActionBlock']//a[@class='EditProIcon']</td>
+ <td>//div[@id='UIGroupNavigationGrid']/table[1]//td[@class='ActionBlock']//a[@class='EditProIcon']</td>
<td></td>
</tr>
<tr>
+ <td>pause</td>
+ <td>3000</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>link=Save</td>
<td></td>
@@ -217,11 +227,16 @@
<td></td>
</tr>
<tr>
- <td>pause</td>
- <td>1000</td>
+ <td>waitForElementPresent</td>
+ <td>link=Edit Navigation</td>
<td></td>
</tr>
<tr>
+ <td>click</td>
+ <td>link=Edit Navigation</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>//td[3]/a[1]</td>
<td></td>
@@ -238,7 +253,7 @@
</tr>
<tr>
<td>pause</td>
- <td>1000</td>
+ <td>3000</td>
<td></td>
</tr>
<tr>
@@ -252,8 +267,13 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Delete Node</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
- <td>xpath=//div[@id='UINavigationNodeSelector']//div[@id='NavigationNodePopupMenu']//a[@class='ItemIcon DeleteNode16x16Icon']</td>
+ <td>link=Delete Node</td>
<td></td>
</tr>
<tr>
Modified: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_25_EditPageOfNode.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_25_EditPageOfNode.html 2010-07-07 04:09:20 UTC (rev 3591)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_25_EditPageOfNode.html 2010-07-07 04:14:29 UTC (rev 3592)
@@ -173,7 +173,7 @@
</tr>
<tr>
<td>pause</td>
- <td>1000</td>
+ <td>3000</td>
<td></td>
</tr>
<tr>
@@ -188,7 +188,7 @@
</tr>
<tr>
<td>pause</td>
- <td>1000</td>
+ <td>3000</td>
<td></td>
</tr>
<tr>
14 years, 5 months
gatein SVN: r3591 - portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium.
by do-not-reply@jboss.org
Author: hangnguyen
Date: 2010-07-07 00:09:20 -0400 (Wed, 07 Jul 2010)
New Revision: 3591
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_02_02_006_SearchWithInCompletedWordButHasStarCharsToFindTheRightLeft.html
Log:
TESTVN-356: Clean and improve
Modified: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_02_02_006_SearchWithInCompletedWordButHasStarCharsToFindTheRightLeft.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_02_02_006_SearchWithInCompletedWordButHasStarCharsToFindTheRightLeft.html 2010-07-07 03:39:30 UTC (rev 3590)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_02_02_006_SearchWithInCompletedWordButHasStarCharsToFindTheRightLeft.html 2010-07-07 04:09:20 UTC (rev 3591)
@@ -92,7 +92,7 @@
<td></td>
</tr>
<tr>
- <td>waitForText</td>
+ <td>waitForElementPresent</td>
<td>//div[@id='UIListUsersGird']/table/tbody/tr/td[1]/div</td>
<td>demo</td>
</tr>
14 years, 5 months
gatein SVN: r3590 - portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium.
by do-not-reply@jboss.org
Author: vuthelinh
Date: 2010-07-06 23:39:30 -0400 (Tue, 06 Jul 2010)
New Revision: 3590
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_05_RememberMyLogin.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_14_ShowOrNotImportApplicationIcon.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_21_ChangeUsingPortal.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_24_EditNavigationAndEditPropertiesAndDeleteInGroupNavigation.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_29_AddAndEditAndDeleteTab.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_30_CreateAndEditPageAndEditSiteLayoutForUser.html
Log:
Modified: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_05_RememberMyLogin.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_05_RememberMyLogin.html 2010-07-07 02:53:13 UTC (rev 3589)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_05_RememberMyLogin.html 2010-07-07 03:39:30 UTC (rev 3590)
@@ -73,7 +73,7 @@
</tr>
<tr>
<td>open</td>
- <td>http://wiki-int.exoplatform.org</td>
+ <td>http://www.google.com</td>
<td></td>
</tr>
<tr>
@@ -83,7 +83,7 @@
</tr>
<tr>
<td>verifyTitle</td>
- <td>Dashboard - eXo Wiki internal</td>
+ <td>Google</td>
<td></td>
</tr>
<tr>
Modified: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_14_ShowOrNotImportApplicationIcon.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_14_ShowOrNotImportApplicationIcon.html 2010-07-07 02:53:13 UTC (rev 3589)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_14_ShowOrNotImportApplicationIcon.html 2010-07-07 03:39:30 UTC (rev 3590)
@@ -48,10 +48,15 @@
</tr>
<tr>
<td>clickAndWait</td>
- <td>xpath=//div[@id='UIPortalLoginFormAction']/div/div/div</td>
+ <td>//div[@id='UIPortalLoginFormAction']/div/div/div</td>
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Application Registry</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAndWait</td>
<td>link=Application Registry</td>
<td></td>
Modified: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_21_ChangeUsingPortal.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_21_ChangeUsingPortal.html 2010-07-07 02:53:13 UTC (rev 3589)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_21_ChangeUsingPortal.html 2010-07-07 03:39:30 UTC (rev 3590)
@@ -229,11 +229,21 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Site</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAndWait</td>
<td>link=Site</td>
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Delete</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAndWait</td>
<td>link=Delete</td>
<td></td>
Modified: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_24_EditNavigationAndEditPropertiesAndDeleteInGroupNavigation.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_24_EditNavigationAndEditPropertiesAndDeleteInGroupNavigation.html 2010-07-07 02:53:13 UTC (rev 3589)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_24_EditNavigationAndEditPropertiesAndDeleteInGroupNavigation.html 2010-07-07 03:39:30 UTC (rev 3590)
@@ -217,6 +217,11 @@
<td></td>
</tr>
<tr>
+ <td>pause</td>
+ <td>1000</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>//td[3]/a[1]</td>
<td></td>
@@ -232,6 +237,11 @@
<td></td>
</tr>
<tr>
+ <td>pause</td>
+ <td>1000</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>//div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[2]/div[1]/a</td>
<td></td>
Modified: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_29_AddAndEditAndDeleteTab.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_29_AddAndEditAndDeleteTab.html 2010-07-07 02:53:13 UTC (rev 3589)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_29_AddAndEditAndDeleteTab.html 2010-07-07 03:39:30 UTC (rev 3590)
@@ -52,6 +52,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Dashboard</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAndWait</td>
<td>link=Dashboard</td>
<td></td>
@@ -187,6 +192,11 @@
<td>\13</td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Site</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAndWait</td>
<td>link=Site</td>
<td></td>
Modified: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_30_CreateAndEditPageAndEditSiteLayoutForUser.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_30_CreateAndEditPageAndEditSiteLayoutForUser.html 2010-07-07 02:53:13 UTC (rev 3589)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_30_CreateAndEditPageAndEditSiteLayoutForUser.html 2010-07-07 03:39:30 UTC (rev 3590)
@@ -302,11 +302,21 @@
<td>label=English</td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[(a)onclick="eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')"]</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
<td>//div[(a)onclick="eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')"]</td>
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Save</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
<td>link=Save</td>
<td></td>
14 years, 5 months