Author: hangnguyen
Date: 2010-07-02 04:07:56 -0400 (Fri, 02 Jul 2010)
New Revision: 3548
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/ko/Test_POR_14_01_043_CheckShowSiteEditorMenu.html
Log:
TESTVN-356: Clean and improve
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/ko/Test_POR_14_01_043_CheckShowSiteEditorMenu.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/ko/Test_POR_14_01_043_CheckShowSiteEditorMenu.html 2010-07-02
06:59:54 UTC (rev 3547)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/ko/Test_POR_14_01_043_CheckShowSiteEditorMenu.html 2010-07-02
08:07:56 UTC (rev 3548)
@@ -4,119 +4,149 @@
<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="" />
-<title>Test_POR_14_043</title>
+<title>Test_POR_14_01_043_CheckShowSiteEditorMenu</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1"
colspan="3">Test_POR_14_043</td></tr>
+<tr><td rowspan="1"
colspan="3">Test_POR_14_01_043_CheckShowSiteEditorMenu</td></tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/portal/public/classic/register</td>
+ <td>/portal/public/classic/</td>
<td></td>
</tr>
<tr>
+ <td>windowMaximize</td>
+ <td></td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>link=Sign in</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>username</td>
+ <td>root</td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>password</td>
+ <td>gtn</td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
+ <td></td>
+</tr>
+<tr>
<td>echo</td>
- <td>--Register New Account-</td>
+ <td>-- Go to New Staff--</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
- <td>link=Register</td>
+ <td>link=New Staff</td>
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>username</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
<td>username</td>
- <td>POR_14_043</td>
+ <td>Test_POR_14_043</td>
</tr>
<tr>
<td>type</td>
<td>password</td>
- <td>111111</td>
+ <td>Test_POR_14_043</td>
</tr>
<tr>
<td>type</td>
- <td>confirmPassword</td>
- <td>111111</td>
+ <td>Confirmpassword</td>
+ <td>Test_POR_14_043</td>
</tr>
<tr>
<td>type</td>
<td>firstName</td>
- <td>POR_14_043</td>
+ <td>Test_POR_14_043</td>
</tr>
<tr>
<td>type</td>
<td>lastName</td>
- <td>POR_14_043</td>
+ <td>Test_POR_14_043</td>
</tr>
<tr>
<td>type</td>
- <td>emailAddress</td>
- <td>por_14_043(a)yahoo.com</td>
+ <td>email</td>
+ <td>Test_POR_14_043(a)gmail.com</td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Subscribe</td>
- <td>1,1</td>
-</tr>
-<tr>
<td>echo</td>
- <td>--Login in portal--</td>
+ <td>-- Choose User Profile--</td>
<td></td>
</tr>
<tr>
- <td>open</td>
- <td>/portal/public/classic</td>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UIAccountPortlet']/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Sign in</td>
+ <td>click</td>
+ <td>//div[@id='UIAccountPortlet']/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>username</td>
+ <td>user.language</td>
<td></td>
</tr>
<tr>
- <td>type</td>
- <td>username</td>
- <td>root</td>
+ <td>select</td>
+ <td>user.language</td>
+ <td>label=Vietnamese</td>
</tr>
<tr>
- <td>type</td>
- <td>password</td>
- <td>gtn</td>
+ <td>waitForElementPresent</td>
+ <td>link=Save</td>
+ <td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>xpath=//div[@id='UIPortalLoginFormAction']//a</td>
+ <td>click</td>
+ <td>link=Save</td>
<td></td>
</tr>
<tr>
- <td>echo</td>
- <td>--GroupManagement--</td>
+ <td>waitForElementPresent</td>
+ <td>//div[3]/div/div/div/div/div[2]</td>
<td></td>
</tr>
<tr>
- <td>echo</td>
- <td>--Select User and group managent in menu--</td>
- <td></td>
+ <td>verifyText</td>
+ <td>//div[3]/div/div/div/div/div[2]</td>
+ <td>You have registered a new account.</td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>link=Group</td>
+ <td>//div[3]/div/div/div[1]/div/div/div/div/div/div/div/div[2]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Group</td>
+ <td>click</td>
+ <td>//div[3]/div/div/div[1]/div/div/div/div/div/div/div/div[2]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Select User and group managent in menu--</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>link=Users and groups management</td>
<td></td>
@@ -127,6 +157,11 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-- Choose Group Management --</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>xpath=//div[@id='UIOrganizationPortlet']//div[@class='ManagementIconContainer']/a[@class='GroupButton']</td>
<td></td>
@@ -137,22 +172,17 @@
<td>1,1</td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>xpath=//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>
-</tr>
-<tr>
<td>echo</td>
<td>-select group from the tree-</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>waitForElementPresent</td>
<td>link=Platform</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Platform</td>
<td></td>
</tr>
@@ -162,16 +192,11 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Administrators</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Administrators</td>
- <td></td>
-</tr>
-<tr>
<td>waitForElementPresent</td>
<td>xpath=//form[@id='UIGroupMembershipForm']//div[@class='HorizontalLayout']//table[@class='UIFormGrid']//td[@class='FieldComponent']/a</td>
<td></td>
@@ -183,12 +208,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>xpath=//form[@id='UIUserSelector']/div[2]/div[2]/table/tbody/tr/td/a[1]/div/div/div</td>
+ <td>Test_POR_14_043</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>POR_14_043</td>
+ <td>Test_POR_14_043</td>
<td></td>
</tr>
<tr>
@@ -207,37 +232,32 @@
<td></td>
</tr>
<tr>
- <td>select</td>
+ <td>waitForElementPresent</td>
<td>membership</td>
- <td>label=manager</td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Save</td>
<td></td>
</tr>
<tr>
- <td>echo</td>
- <td>--Page Management--</td>
- <td></td>
+ <td>select</td>
+ <td>membership</td>
+ <td>label=manager</td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>link=Group</td>
+ <td>link=Save</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Group</td>
+ <td>click</td>
+ <td>link=Save</td>
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>link=Page Management</td>
+ <td>echo</td>
+ <td>--Page Management--</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>clickAndWait</td>
<td>link=Page Management</td>
<td></td>
</tr>
@@ -268,36 +288,46 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>xpath=//option[@value='portal']</td>
+ <td>name</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>name</td>
- <td>por_14_043</td>
+ <td>Test_POR_14_043</td>
</tr>
<tr>
<td>type</td>
<td>title</td>
- <td>por_14_043</td>
+ <td>Test_POR_14_043</td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-- Page Layout--</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>xpath=//div[@id='UIPortalApplication']/div[@id='UIMaskWorkspace']/div[@class='MiddleLeftDecorator']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//div[@id='UIPortalApplication']/div[@id='UIMaskWorkspace']/div[@class='MiddleLeftDecorator']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-- Permission Setting--</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>xpath=//div[@id='UIPortalApplication']/div[@id='UIMaskWorkspace']/div[@class='MiddleLeftDecorator']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//div[@id='UIPortalApplication']/div[@id='UIMaskWorkspace']/div[@class='MiddleLeftDecorator']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
<td></td>
</tr>
@@ -349,12 +379,12 @@
<tr>
<td>type</td>
<td>name</td>
- <td>POR_14_043</td>
+ <td>Test_POR_14_043</td>
</tr>
<tr>
<td>type</td>
<td>label</td>
- <td>POR_14_043</td>
+ <td>Test_POR_14_043</td>
</tr>
<tr>
<td>echo</td>
@@ -362,44 +392,69 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>waitForElementPresent</td>
<td>xpath=//div[@class='CenterHorizontalTabs']//div[@class='NormalTab']//div[@class='MiddleTab']</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
+ <td>xpath=//div[@class='CenterHorizontalTabs']//div[@class='NormalTab']//div[@class='MiddleTab']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
<td>link=Search and Select Page</td>
<td></td>
</tr>
<tr>
+ <td>click</td>
+ <td>link=Search and Select Page</td>
+ <td></td>
+</tr>
+<tr>
<td>echo</td>
<td>--Select page created from page lists--</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Search and Select Page</td>
+ <td>waitForElementPresent</td>
+ <td>//img[@title='Select Page']</td>
<td></td>
</tr>
<tr>
+ <td>click</td>
+ <td>//img[@title='Select Page']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-- Save to finish add new node--</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
- <td>xpath=//img[contains(@onclick,'por_14_043')]</td>
+ <td>link=Save</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>xpath=//img[contains(@onclick,'por_14_043')]</td>
+ <td>click</td>
+ <td>link=Save</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>echo</td>
+ <td>-- Save to close Navigation Management--</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
<td>link=Save</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Save</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
<td>echo</td>
@@ -417,58 +472,68 @@
<td></td>
</tr>
<tr>
+ <td>open</td>
+ <td>/portal/public/classic/</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Sign in</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Sign in</td>
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>username</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
<td>username</td>
- <td>POR_14_043</td>
+ <td>Test_POR_14_043</td>
</tr>
<tr>
<td>type</td>
<td>password</td>
- <td>111111</td>
+ <td>Test_POR_14_043</td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>clickAndWait</td>
<td>xpath=//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
<td></td>
</tr>
<tr>
- <td>echo</td>
- <td>--Sign out--</td>
+ <td>clickAndWait</td>
+ <td>//div[@id='PortalNavigationTopContainer']/div[1]/div/div/div/div/div/div/a</td>
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>link=Sign out</td>
+ <td>mouseOver</td>
+ <td>link=Site Editor</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
-<tr>
<td>echo</td>
- <td>--Sign In by root--</td>
+ <td>--Sign out--</td>
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>link=Sign in</td>
+ <td>clickAndWait</td>
+ <td>link=Đăng xuất</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Sign in</td>
+ <td>echo</td>
+ <td>--Sign In by root--</td>
<td></td>
</tr>
<tr>
<td>open</td>
- <td>/portal/public/classic</td>
+ <td>/portal/public/classic/</td>
<td></td>
</tr>
<tr>
@@ -477,7 +542,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Sign in</td>
<td></td>
</tr>
@@ -497,32 +562,17 @@
<td>gtn</td>
</tr>
<tr>
- <td>waitForElementPresent</td>
+ <td>clickAndWait</td>
<td>xpath=//div[@id='UIPortalLoginFormAction']//a</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>xpath=//div[@id='UIPortalLoginFormAction']//a</td>
- <td></td>
-</tr>
-<tr>
<td>echo</td>
<td>- Go to Manage page again--</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>link=Group</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Group</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
<td>link=Page Management</td>
<td></td>
</tr>
@@ -537,21 +587,16 @@
<td></td>
</tr>
<tr>
- <td>type</td>
+ <td>waitForElementPresent</td>
<td>searchTerm</td>
- <td>por_14_043</td>
+ <td></td>
</tr>
<tr>
- <td>select</td>
- <td>searchOption</td>
- <td>label=Title</td>
+ <td>type</td>
+ <td>searchTerm</td>
+ <td>Test_POR_14_043</td>
</tr>
<tr>
- <td>click</td>
- <td>xpath=//form[@id='UIPageSearch']/div[2]/a</td>
- <td></td>
-</tr>
-<tr>
<td>select</td>
<td>searchOption</td>
<td>label=Title</td>
@@ -619,12 +664,12 @@
<tr>
<td>type</td>
<td>searchTerm</td>
- <td>POR_14_043</td>
+ <td>Test_POR_14_043</td>
</tr>
<tr>
- <td>select</td>
- <td>searchOption</td>
- <td>label=User Name</td>
+ <td>waitForElementPresent</td>
+ <td>xpath=//form[@id='UISearchForm']/div[2]/a</td>
+ <td></td>
</tr>
<tr>
<td>click</td>
@@ -632,11 +677,6 @@
<td></td>
</tr>
<tr>
- <td>pause</td>
- <td>5000</td>
- <td></td>
-</tr>
-<tr>
<td>waitForElementPresent</td>
<td>xpath=//img[@alt='DeleteUser']</td>
<td></td>
@@ -652,22 +692,27 @@
<td></td>
</tr>
<tr>
- <td>pause</td>
- <td>5000</td>
+ <td>waitForElementPresent</td>
+ <td>//div[3]/div/div/div/div/div[2]</td>
<td></td>
</tr>
<tr>
- <td>waitForTextNotPresent</td>
- <td>POR_14_043</td>
- <td></td>
+ <td>verifyText</td>
+ <td>//div[3]/div/div/div/div/div[2]</td>
+ <td>No result found.</td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>link=Sign out</td>
+ <td>//div[4]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
+ <td>//div[4]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
<td>link=Sign out</td>
<td></td>
</tr>