Author: hangnguyen
Date: 2010-07-05 05:30:22 -0400 (Mon, 05 Jul 2010)
New Revision: 3564
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_03_07_003_CheckMembershipOfUserInUserProfileAfterRemovedFromSpecificGroup.html
Log:
TESTVN-356: Clean and improve
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_03_07_003_CheckMembershipOfUserInUserProfileAfterRemovedFromSpecificGroup.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_03_07_003_CheckMembershipOfUserInUserProfileAfterRemovedFromSpecificGroup.html 2010-07-05
09:27:22 UTC (rev 3563)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_03_07_003_CheckMembershipOfUserInUserProfileAfterRemovedFromSpecificGroup.html 2010-07-05
09:30:22 UTC (rev 3564)
@@ -52,16 +52,36 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-- Go to User and Group management--</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAndWait</td>
<td>link=Users and groups management</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-- Choose Group management--</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Group Management</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
<td>link=Group Management</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-- Select group --</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>//div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[2]/div/div/div/div[3]/div/a</td>
<td></td>
@@ -82,6 +102,11 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-- Search user to add into group--</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>//form[@id='UIGroupMembershipForm']/div[2]/div/table/tbody/tr[1]/td[2]/a</td>
<td></td>
@@ -102,11 +127,21 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>//form[@id='UIUserSelector']/div[2]/div[2]/table/tbody/tr/td/a[1]/div/div/div</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
<td>//form[@id='UIUserSelector']/div[2]/div[2]/table/tbody/tr/td/a[1]/div/div/div</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-- Select membership-</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>membership</td>
<td></td>
@@ -117,11 +152,21 @@
<td>label=manager</td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Save</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
<td>link=Save</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-- Delete user in this group --</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>//img[@alt='DeleteUser']</td>
<td></td>
@@ -137,6 +182,11 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-- Choose User Management</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>//div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[1]/div[2]</td>
<td></td>
@@ -147,17 +197,42 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-- Search user--</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
- <td>//div[@id='UIListUsersGird']/table/tbody/tr[3]/td[5]/div/img[1]</td>
+ <td>searchTerm</td>
<td></td>
</tr>
<tr>
+ <td>type</td>
+ <td>searchTerm</td>
+ <td>mary</td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//form[@id='UISearchForm']/div[2]/a</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
- <td>//div[@id='UIListUsersGird']/table/tbody/tr[3]/td[5]/div/img[1]</td>
+ <td>//form[@id='UISearchForm']/div[2]/a</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
+ <td>//img[@alt='ViewUserInfo']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//img[@alt='ViewUserInfo']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
<td>//div[@id='UIUserManagement']/div[1]/div/div/div/div/div/div/div/div/div[3]/div/div/div/div</td>
<td></td>
</tr>
@@ -167,6 +242,21 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='MembershipGrid']/table/thead/tr/th[2]</td>
+ <td>Group Id</td>
+</tr>
+<tr>
+ <td>verifyText</td>
+ <td>//div[@id='MembershipGrid']/table/thead/tr/th[2]</td>
+ <td>Group Id</td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Cancel</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
<td>link=Cancel</td>
<td></td>
@@ -176,6 +266,11 @@
<td>link=Sign out</td>
<td></td>
</tr>
+<tr>
+ <td>close</td>
+ <td></td>
+ <td></td>
+</tr>
</tbody></table>
</body>