Author: hangnguyen
Date: 2010-04-27 05:40:50 -0400 (Tue, 27 Apr 2010)
New Revision: 2818
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_22_019_ChangeEditRightOnPortalPageWhileEditingPortalPageProperties.html
Log:
Change script for
Test_POR_22_019_ChangeEditRightOnPortalPageWhileEditingPortalPageProperties.html
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_22_019_ChangeEditRightOnPortalPageWhileEditingPortalPageProperties.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_22_019_ChangeEditRightOnPortalPageWhileEditingPortalPageProperties.html 2010-04-27
09:11:22 UTC (rev 2817)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_22_019_ChangeEditRightOnPortalPageWhileEditingPortalPageProperties.html 2010-04-27
09:40:50 UTC (rev 2818)
@@ -18,7 +18,7 @@
</tr>
<tr>
<td>echo</td>
- <td>-Change edit right on portal page-</td>
+ <td>--Create new page for Portal--</td>
<td></td>
</tr>
<tr>
@@ -48,328 +48,203 @@
</tr>
<tr>
<td>echo</td>
- <td>--Create new page</td>
+ <td>-- Go to Page Management on menu item--</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>link=Site</td>
+ <td>link=Page Management</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>link=Site</td>
+ <td>link=Page Management</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Choose Page Setting</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
- <td>link=Edit Navigation</td>
+ <td>xpath=//div[@id='UIPageBrowser']/div[2]/table/tbody/tr/td/div/div/div/div/a</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>link=Edit Navigation</td>
+ <td>xpath=//div[@id='UIPageBrowser']/div[2]/table/tbody/tr/td/div/div/div/div/a</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>link=Add Node</td>
+ <td>ownerType</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Add Node</td>
- <td></td>
+ <td>select</td>
+ <td>ownerType</td>
+ <td>label=portal</td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>name</td>
+ <td>xpath=//option[@value='portal']</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>name</td>
- <td>POR_22_019_name</td>
+ <td>Test_POR_22_019</td>
</tr>
<tr>
<td>type</td>
- <td>label</td>
- <td>POR_22_019_label</td>
+ <td>title</td>
+ <td>Test_POR_22_019</td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>xpath=//div[@id='UISiteManagement']/div[@class='UIPopupWindow
UIDragObject']//div[@class='TabsContainer']//div[2]//div[@class='MiddleTab']</td>
+ <td>echo</td>
+ <td>--Choose Page Layout--</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>xpath=//div[@id='UISiteManagement']/div[@class='UIPopupWindow
UIDragObject']//div[@class='TabsContainer']//div[2]//div[@class='MiddleTab']</td>
- <td></td>
-</tr>
-<tr>
<td>waitForElementPresent</td>
- <td>pageName</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>type</td>
- <td>pageTitle</td>
- <td>POR_22_019_title</td>
-</tr>
-<tr>
- <td>type</td>
- <td>pageName</td>
- <td>POR_22_019_page</td>
-</tr>
-<tr>
<td>clickAt</td>
- <td>link=Create Page</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>waitForText</td>
- <td>xpath=//div[@id='UIPageSelector2']/div[2]/div/div/table/tbody/tr[1]/td[2]</td>
- <td>exact:portal::classic::POR_22_019_page</td>
-</tr>
-<tr>
- <td>verifyText</td>
- <td>xpath=//div[@id='UIPageSelector2']/div[2]/div/div/table/tbody/tr[1]/td[2]</td>
- <td>exact:portal::classic::POR_22_019_page</td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Save</td>
+ <td>echo</td>
+ <td>--Choose Page Setting--</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[@id='UISiteManagement']/div[@class='UIPopupWindow
UIDragObject']//div[@id='UINavigationManagement']//div[@class='UIAction']//td[2]//div[contains(@onclick,'Save')]</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>xpath=//div[@id='UISiteManagement']/div[@class='UIPopupWindow
UIDragObject']//div[@id='UINavigationManagement']//div[@class='UIAction']//td[2]//div[contains(@onclick,'Save')]</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>waitForElementPresent</td>
- <td>link=POR_22_019_label</td>
+ <td>echo</td>
+ <td>--Choose Access Permission Setting--</td>
<td></td>
</tr>
<tr>
- <td>open</td>
- <td>/portal/private/classic/POR_22_019_name</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementNotPresent</td>
- <td>link=Add New Portal</td>
- <td></td>
-</tr>
-<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[@class='SelectedNavigationTab']//a[contains(@href,'POR_22_019')]</td>
+ <td>link=Access Permission Setting</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>link=Edit Page</td>
+ <td>link=Access Permission Setting</td>
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>link=View Page properties</td>
+ <td>echo</td>
+ <td>--Choose Edit Permission Setting--</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=View Page properties</td>
- <td></td>
-</tr>
-<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[contains(@onclick,'PermissionSetting')]</td>
+ <td>link=Edit Permission Setting</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>xpath=//div[contains(@onclick,'PermissionSetting')]</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>publicMode</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
<td>link=Edit Permission Setting</td>
<td></td>
</tr>
<tr>
- <td>verifyTextPresent</td>
- <td>/platform/administrators</td>
+ <td>echo</td>
+ <td>--Click Save to Finish --</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>waitForElementPresent</td>
<td>link=Save</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>xpath=//div[@id='UIPageEditor']//a[@class='EdittedSaveButton']</td>
+ <td>link=Save</td>
<td></td>
</tr>
<tr>
- <td>waitForTextPresent</td>
- <td>Root Root</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
-<tr>
<td>echo</td>
- <td>--Login with user without edit permission on page</td>
+ <td>--Search new page created--</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>type</td>
- <td>username</td>
- <td>demo</td>
+ <td>searchTerm</td>
+ <td>Test_POR_22_019</td>
</tr>
<tr>
<td>type</td>
- <td>password</td>
- <td>gtn</td>
+ <td>searchOption</td>
+ <td>label=Title</td>
</tr>
<tr>
- <td>clickAt</td>
- <td>xpath=//div[@id='UIPortalLoginFormAction']/div/div/div</td>
- <td></td>
-</tr>
-<tr>
<td>waitForElementPresent</td>
- <td>link=POR_22_019_label</td>
+ <td>xpath=//form[@id='UIPageSearch']/div[2]/a</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>link=POR_22_019_label</td>
+ <td>xpath=//form[@id='UIPageSearch']/div[2]/a</td>
<td></td>
</tr>
<tr>
- <td>verifyElementNotPresent</td>
- <td>link=Edit Page</td>
+ <td>echo</td>
+ <td>-- Edit this page--</td>
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>link=Sign out</td>
+ <td>click</td>
+ <td>//img[@title='Edit Page']</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
-<tr>
<td>echo</td>
- <td>--Login with user with edit permission on page</td>
+ <td>-- Go to editing portal page's properties--</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>//div[@id='UIPageEditor']/div[3]/div/div/div[1]/table/tbody/tr/td/div[1]/div/div/div/div</td>
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>username</td>
+ <td>echo</td>
+ <td>--Choose Permission Setting tab--</td>
<td></td>
</tr>
<tr>
- <td>type</td>
- <td>username</td>
- <td>john</td>
-</tr>
-<tr>
- <td>type</td>
- <td>password</td>
- <td>gtn</td>
-</tr>
-<tr>
<td>clickAt</td>
- <td>xpath=//div[@id='UIPortalLoginFormAction']/div/div/div</td>
+ <td>//div[(a)onclick=&quot;eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPageForm',
'PermissionSetting');javascript:eXo.webui.UIForm.submitEvent('UIPageForm','SelectTab','&objectId=PermissionSetting')"]</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=POR_22_019_label</td>
+ <td>echo</td>
+ <td>--Choose Edit Permission Setting--</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>link=Edit Page</td>
+ <td>link=Edit Permission Setting</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>xpath=//a[@class='ItemIcon EditPageIcon']</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=View Page properties</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=View Page properties</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>xpath=//div[contains(@onclick,'PermissionSetting')]</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>xpath=//div[contains(@onclick,'PermissionSetting')]</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>publicMode</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>--Choose permission to let only Guests edit this page</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
<td>link=Edit Permission Setting</td>
- <td></td>
+ <td>1,1</td>
</tr>
<tr>
<td>waitForElementPresent</td>
@@ -379,7 +254,7 @@
<tr>
<td>clickAt</td>
<td>link=Select Permission</td>
- <td></td>
+ <td>1,1</td>
</tr>
<tr>
<td>waitForElementPresent</td>
@@ -393,176 +268,61 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>link=Guests</td>
+ <td>link=Administrators</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>link=Guests</td>
+ <td>link=Administrators</td>
<td></td>
</tr>
<tr>
- <td>verifyElementPresent</td>
- <td>xpath=//a[contains(@href,'objectId=/platform/guests')]</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=member</td>
- <td></td>
-</tr>
-<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[@class='OverflowContainer']/div[@class='Info']</td>
+ <td>link=manager</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>link=Save</td>
+ <td>link=manager</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>xpath=//a[@class='EdittedSaveButton']</td>
- <td></td>
+ <td>waitForText</td>
+ <td>xpath=//div[@id='UIPermissionSelector']/div/div[2]/div[1]/div[3]/div[2]</td>
+ <td>exact:manager</td>
</tr>
<tr>
- <td>echo</td>
- <td>--Verify User doesn't have edit rights anymore for this page</td>
- <td></td>
-</tr>
-<tr>
<td>waitForElementPresent</td>
- <td>link=Site Editor</td>
+ <td>link=Save</td>
<td></td>
</tr>
<tr>
- <td>verifyElementNotPresent</td>
- <td>link=Edit Page</td>
- <td></td>
-</tr>
-<tr>
<td>clickAt</td>
- <td>link=Sign out</td>
+ <td>link=Save</td>
<td></td>
</tr>
<tr>
<td>echo</td>
- <td>--Login with Guest profile - with edit permission on page</td>
+ <td>--Click Finish--</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>//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]</td>
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>username</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>username</td>
- <td>demo</td>
-</tr>
-<tr>
- <td>type</td>
- <td>password</td>
- <td>gtn</td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>xpath=//div[@id='UIPortalLoginFormAction']/div/div/div</td>
- <td></td>
-</tr>
-<tr>
<td>echo</td>
- <td>--Verify Guest has edit rights</td>
+ <td>--Delete page--</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=POR_22_019_label</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyTitle</td>
- <td>POR_22_019*</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Edit Page</td>
- <td></td>
-</tr>
-<tr>
<td>waitForElementPresent</td>
- <td>link=View Page properties</td>
+ <td>xpath=//img[@title='Delete Page']</td>
<td></td>
</tr>
<tr>
- <td>verifyElementPresent</td>
- <td>link=View Page properties</td>
- <td></td>
-</tr>
-<tr>
<td>clickAt</td>
- <td>xpath=//a[@class='SaveButton']</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>--Delete Page</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>root</td>
-</tr>
-<tr>
- <td>type</td>
- <td>password</td>
- <td>gtn</td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>xpath=//div[@id='UIPortalLoginFormAction']/div/div/div</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Page Management</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForTextPresent</td>
- <td>Access Permission</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
<td>xpath=//img[@title='Delete Page']</td>
<td></td>
</tr>
@@ -572,46 +332,21 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Site</td>
- <td></td>
-</tr>
-<tr>
<td>waitForElementPresent</td>
- <td>link=Edit Navigation</td>
+ <td>xpath=//div[@id='UIPortalApplication']/div[@class='UIPopupWindow
UIDragObject']//div[@class='MiddleLeftSideDecorator']//div[@class='UIPopupMessages']/div[@class='MessageActionBar']//a</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>link=Edit Navigation</td>
+ <td>xpath=//div[@id='UIPortalApplication']/div[@class='UIPopupWindow
UIDragObject']//div[@class='MiddleLeftSideDecorator']//div[@class='UIPopupMessages']/div[@class='MessageActionBar']//a</td>
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>//a[@title='POR_22_019_label']</td>
+ <td>echo</td>
+ <td>--Sign out--</td>
<td></td>
</tr>
<tr>
- <td>componentExoContextMenu</td>
- <td>//a[@title='POR_22_019_label']</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Delete Node</td>
- <td></td>
-</tr>
-<tr>
- <td>assertConfirmation</td>
- <td>Are you sure you want to delete this node?</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Save</td>
- <td></td>
-</tr>
-<tr>
<td>waitForElementPresent</td>
<td>link=Sign out</td>
<td></td>