Author: hangnguyen
Date: 2010-06-14 00:42:55 -0400 (Mon, 14 Jun 2010)
New Revision: 3317
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_06_UsersManagement.html
Log:
TESTVN-356: Clean and improve
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_06_UsersManagement.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_06_UsersManagement.html 2010-06-14
04:42:16 UTC (rev 3316)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_06_UsersManagement.html 2010-06-14
04:42:55 UTC (rev 3317)
@@ -3,7 +3,7 @@
<html
xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
lang="en">
<head
profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"
/>
-<link rel="selenium.base" href="http://localhost:8080/portal"
/>
+<link rel="selenium.base" href="http://localhost:8080" />
<title>Test_SNF_PRL_06_UsersManagement</title>
</head>
<body>
@@ -47,27 +47,17 @@
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
+ <td>clickAndWait</td>
<td>link=Group</td>
<td></td>
</tr>
<tr>
- <td>click</td>
- <td>link=Group</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
+ <td>clickAndWait</td>
<td>link=Users and groups management</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Users and groups management</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForTextPresent</td>
+ <td>verifyTextPresent</td>
<td>User Name</td>
<td></td>
</tr>
@@ -92,7 +82,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//div[@id='UIListUsersGird']//tbody/tr[3]//td[5]//div//img</td>
<td></td>
</tr>
@@ -107,9 +97,9 @@
<td>test_user_06</td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Save</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
@@ -117,17 +107,17 @@
<td></td>
</tr>
<tr>
- <td>verifyElementPresent</td>
+ <td>click</td>
<td>css=div#UIOrganizationPortlet div.ManagementTabContent >
div.UIPopupWindow div.ActionButton</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>css=div#UIOrganizationPortlet div.ManagementTabContent >
div.UIPopupWindow div.ActionButton</td>
- <td>1,1</td>
+ <td>waitForElementPresent</td>
+ <td>xpath=//div[@id='UIListUsersGird']//tbody/tr[3]//td[5]//div//img</td>
+ <td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//div[@id='UIListUsersGird']//tbody/tr[3]//td[5]//div//img</td>
<td></td>
</tr>
@@ -137,13 +127,8 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//div[@id='UIUserManagement']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
- <td>1,1</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>user.name.given</td>
<td></td>
</tr>
<tr>
@@ -182,9 +167,9 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>css=div#UIOrganizationPortlet div.ManagementTabContent >
div.UIPopupWindow div.ActionButton</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
<td>echo</td>
@@ -202,19 +187,24 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>waitForElementPresent</td>
<td>xpath=//div[@id='UIListUsersGird']//tbody/tr[3]//td[5]//div//img</td>
<td></td>
</tr>
<tr>
+ <td>click</td>
+ <td>xpath=//div[@id='UIListUsersGird']//tbody/tr[3]//td[5]//div//img</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>xpath=//div[@id='UIUserManagement']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//div[@id='UIUserManagement']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
@@ -242,18 +232,18 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>firstName</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
<td>firstName</td>
<td>Mary</td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Save</td>
- <td>1,1</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>css=div#UIOrganizationPortlet div.ManagementTabContent >
div.UIPopupWindow div.ActionButton</td>
<td></td>
</tr>
<tr>
@@ -267,7 +257,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>css=div#UIOrganizationPortlet div.ManagementTabContent >
div.UIPopupWindow div.ActionButton</td>
<td>1,1</td>
</tr>
@@ -277,15 +267,10 @@
<td>Mary</td>
</tr>
<tr>
- <td>waitForElementPresent</td>
+ <td>clickAndWait</td>
<td>link=Sign out</td>
<td></td>
</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
</tbody></table>
</body>