Author: hangnguyen
Date: 2010-09-17 06:44:34 -0400 (Fri, 17 Sep 2010)
New Revision: 4240
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_20_013_CreateNewUserPageWithExistingPageNameForTheSameUser.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_20_015_CreateNewUsersPageWithExistingGroupsPage.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_20_016_CreateNewUsersPageWithExistingPortalsPage.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_20_017_CreateNewPageForUserWithValidValues.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_20_019_CreateSameNameGroupPagesInSameGroup.html
Log:
TestVN-356:Clean and Improve existing Selenium for GateIn
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_20_013_CreateNewUserPageWithExistingPageNameForTheSameUser.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_20_013_CreateNewUserPageWithExistingPageNameForTheSameUser.html 2010-09-17
10:42:38 UTC (rev 4239)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_20_013_CreateNewUserPageWithExistingPageNameForTheSameUser.html 2010-09-17
10:44:34 UTC (rev 4240)
@@ -4,12 +4,12 @@
<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>POR_20_013</title>
+<title>Test_POR_20_013_CreateNewUserPageWithExistingPageNameForTheSameUser</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1"
colspan="3">POR_20_013</td></tr>
+<tr><td rowspan="1"
colspan="3">Test_POR_20_013_CreateNewUserPageWithExistingPageNameForTheSameUser</td></tr>
</thead><tbody>
<tr>
<td>open</td>
@@ -22,6 +22,11 @@
<td></td>
</tr>
<tr>
+ <td>windowMaximize</td>
+ <td></td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
<td>link=Sign in</td>
<td></td>
@@ -29,7 +34,7 @@
<tr>
<td>waitForElementPresent</td>
<td>username</td>
- <td>root</td>
+ <td></td>
</tr>
<tr>
<td>type</td>
@@ -57,7 +62,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Page Management</td>
<td></td>
</tr>
@@ -67,7 +72,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//div[@id='UIPageBrowser']/div[2]/table/tbody/tr/td/div/div/div/div/a</td>
<td></td>
</tr>
@@ -79,12 +84,12 @@
<tr>
<td>type</td>
<td>name</td>
- <td>POR_20_013</td>
+ <td>Test_POR_20_013</td>
</tr>
<tr>
<td>type</td>
<td>title</td>
- <td>POR_20_013</td>
+ <td>Test_POR_20_013</td>
</tr>
<tr>
<td>waitForElementPresent</td>
@@ -92,7 +97,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//div[(a)onclick=&quot;eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPageForm',
'UIPageTemplateOptions');javascript:eXo.webui.UIForm.submitEvent('UIPageForm','SelectTab','&objectId=UIPageTemplateOptions')"]</td>
<td></td>
</tr>
@@ -107,11 +112,16 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>waitForElementPresent</td>
<td>xpath=//div[@id='UIPageBrowser']/div[2]/table/tbody/tr/td/div/div/div/div/a</td>
<td></td>
</tr>
<tr>
+ <td>click</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>name</td>
<td></td>
@@ -119,25 +129,30 @@
<tr>
<td>type</td>
<td>name</td>
- <td>POR_20_013</td>
+ <td>Test_POR_20_013</td>
</tr>
<tr>
<td>type</td>
<td>title</td>
- <td>POR_20_013</td>
+ <td>Test_POR_20_013</td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>waitForElementPresent</td>
<td>xpath=//div[(a)onclick=&quot;eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPageForm',
'UIPageTemplateOptions');javascript:eXo.webui.UIForm.submitEvent('UIPageForm','SelectTab','&objectId=UIPageTemplateOptions')"]</td>
<td></td>
</tr>
<tr>
+ <td>click</td>
+ <td>xpath=//div[(a)onclick=&quot;eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPageForm',
'UIPageTemplateOptions');javascript:eXo.webui.UIForm.submitEvent('UIPageForm','SelectTab','&objectId=UIPageTemplateOptions')"]</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>link=Save</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Save</td>
<td></td>
</tr>
@@ -147,8 +162,13 @@
<td></td>
</tr>
<tr>
+ <td>waitForTextPresent</td>
+ <td>This page name already exists.</td>
+ <td></td>
+</tr>
+<tr>
<td>verifyTextPresent</td>
- <td>This page name already exists. </td>
+ <td>This page name already exists.</td>
<td></td>
</tr>
<tr>
@@ -157,7 +177,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//div[@id='UIPortalApplication']/div[@class='UIPopupWindow
UIDragObject']//div[@class='MiddleLeftSideDecorator']//div[@class='UIPopupMessages']/div[@class='MessageActionBar']//a</td>
<td></td>
</tr>
@@ -167,7 +187,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Cancel</td>
<td></td>
</tr>
@@ -179,7 +199,7 @@
<tr>
<td>type</td>
<td>searchTerm</td>
- <td>POR_20_013</td>
+ <td>Test_POR_20_013</td>
</tr>
<tr>
<td>select</td>
@@ -192,12 +212,17 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//form[@id='UIPageSearch']/div[2]/a</td>
<td></td>
</tr>
<tr>
<td>echo</td>
+ <td>--
https://jira.jboss.org/browse/GTNPORTAL-1304 --</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
<td>--Delete page created--</td>
<td></td>
</tr>
@@ -207,7 +232,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//img[@title='Delete Page']</td>
<td></td>
</tr>
@@ -222,7 +247,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//div[@id='UIPortalApplication']/div[@class='UIPopupWindow
UIDragObject']//div[@class='MiddleLeftSideDecorator']//div[@class='UIPopupMessages']/div[@class='MessageActionBar']//a</td>
<td></td>
</tr>
@@ -232,7 +257,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>clickAndWait</td>
<td>link=Sign out</td>
<td></td>
</tr>
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_20_015_CreateNewUsersPageWithExistingGroupsPage.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_20_015_CreateNewUsersPageWithExistingGroupsPage.html 2010-09-17
10:42:38 UTC (rev 4239)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_20_015_CreateNewUsersPageWithExistingGroupsPage.html 2010-09-17
10:44:34 UTC (rev 4240)
@@ -4,12 +4,12 @@
<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_20_015_CreateNewUser'sPageWithExistingGroup'sPage</title>
+<title>Test_POR_20_015_CreateNewUsersPageWithExistingGroupsPage</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1"
colspan="3">Test_POR_20_015_CreateNewUser'sPageWithExistingGroup'sPage</td></tr>
+<tr><td rowspan="1"
colspan="3">Test_POR_20_015_CreateNewUsersPageWithExistingGroupsPage</td></tr>
</thead><tbody>
<tr>
<td>open</td>
@@ -22,7 +22,12 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>windowMaximize</td>
+ <td></td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
<td>link=Sign in</td>
<td></td>
</tr>
@@ -57,7 +62,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Page Management</td>
<td></td>
</tr>
@@ -72,7 +77,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//div[@id='UIPageBrowser']/div[2]/table/tbody/tr/td/div/div/div/div/a</td>
<td></td>
</tr>
@@ -92,11 +97,16 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//option[@value='group']</td>
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>ownerId</td>
+ <td></td>
+</tr>
+<tr>
<td>select</td>
<td>ownerId</td>
<td>label=/organization/operations</td>
@@ -107,7 +117,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//option[@value='/organization/operations']</td>
<td></td>
</tr>
@@ -119,56 +129,81 @@
<tr>
<td>type</td>
<td>name</td>
- <td>POR_20_015</td>
+ <td>Test_POR_20_015</td>
</tr>
<tr>
<td>type</td>
<td>title</td>
- <td>POR_20_015</td>
+ <td>Test_POR_20_015</td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-- choose Page Layout --</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[(a)onclick=&quot;eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPageForm',
'UIPageTemplateOptions');javascript:eXo.webui.UIForm.submitEvent('UIPageForm','SelectTab','&objectId=UIPageTemplateOptions')"]</td>
+ <td>//div[@id='UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>xpath=//div[(a)onclick=&quot;eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPageForm',
'PermissionSetting');javascript:eXo.webui.UIForm.submitEvent('UIPageForm','SelectTab','&objectId=PermissionSetting')"]</td>
+ <td>click</td>
+ <td>//div[@id='UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Access Permission Setting</td>
+ <td>echo</td>
+ <td>-- Choose Permission Setting --</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Edit Permission Setting</td>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[3]/div/div/div/div</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>xpath=//div[(a)onclick=&quot;eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPageForm',
'UIPageTemplateOptions');javascript:eXo.webui.UIForm.submitEvent('UIPageForm','SelectTab','&objectId=UIPageTemplateOptions')"]</td>
+ <td>click</td>
+ <td>//div[@id='UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[3]/div/div/div/div</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-- Access Permisison Setting --</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>Access Permission Setting</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>Access Permission Setting</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-- Edit Permisison Setting --</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
- <td>link=Save</td>
+ <td>link=Edit Permission Setting</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Save</td>
+ <td>click</td>
+ <td>link=Edit Permission Setting</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>link=Page Management</td>
+ <td>link=Save</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Page Management</td>
+ <td>click</td>
+ <td>link=Save</td>
<td></td>
</tr>
<tr>
@@ -182,7 +217,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//div[@id='UIPageBrowser']/div[2]/table/tbody/tr/td/div/div/div/div/a</td>
<td></td>
</tr>
@@ -194,21 +229,26 @@
<tr>
<td>type</td>
<td>name</td>
- <td>POR_20_015</td>
+ <td>Test_POR_20_015</td>
</tr>
<tr>
<td>type</td>
<td>title</td>
- <td>POR_20_015</td>
+ <td>Test_POR_20_015</td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-- Choose Page Layout --</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[(a)onclick=&quot;eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPageForm',
'UIPageTemplateOptions');javascript:eXo.webui.UIForm.submitEvent('UIPageForm','SelectTab','&objectId=UIPageTemplateOptions')"]</td>
+ <td>//div[@id='UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>xpath=//div[(a)onclick=&quot;eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPageForm',
'UIPageTemplateOptions');javascript:eXo.webui.UIForm.submitEvent('UIPageForm','SelectTab','&objectId=UIPageTemplateOptions')"]</td>
+ <td>click</td>
+ <td>//div[@id='UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
<td></td>
</tr>
<tr>
@@ -217,7 +257,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Save</td>
<td></td>
</tr>
@@ -227,11 +267,21 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>searchTerm</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
<td>searchTerm</td>
- <td>POR_20_015</td>
+ <td>Test_POR_20_015</td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>searchOption</td>
+ <td></td>
+</tr>
+<tr>
<td>select</td>
<td>searchOption</td>
<td>label=Title</td>
@@ -242,12 +292,22 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>waitForElementPresent</td>
<td>xpath=//form[@id='UIPageSearch']/div[2]/a</td>
<td></td>
</tr>
<tr>
+ <td>click</td>
+ <td>xpath=//form[@id='UIPageSearch']/div[2]/a</td>
+ <td></td>
+</tr>
+<tr>
<td>echo</td>
+ <td>--
https://jira.jboss.org/browse/GTNPORTAL-1304 --</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
<td>--Delete page of user--</td>
<td></td>
</tr>
@@ -257,7 +317,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//img[@title='Delete Page']</td>
<td></td>
</tr>
@@ -272,7 +332,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//div[@id='UIPortalApplication']/div[@class='UIPopupWindow
UIDragObject']//div[@class='MiddleLeftSideDecorator']//div[@class='UIPopupMessages']/div[@class='MessageActionBar']//a</td>
<td></td>
</tr>
@@ -287,7 +347,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//img[@title='Delete Page']</td>
<td></td>
</tr>
@@ -302,7 +362,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//div[@id='UIPortalApplication']/div[@class='UIPopupWindow
UIDragObject']//div[@class='MiddleLeftSideDecorator']//div[@class='UIPopupMessages']/div[@class='MessageActionBar']//a</td>
<td></td>
</tr>
@@ -312,7 +372,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>clickAndWait</td>
<td>link=Sign out</td>
<td></td>
</tr>
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_20_016_CreateNewUsersPageWithExistingPortalsPage.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_20_016_CreateNewUsersPageWithExistingPortalsPage.html 2010-09-17
10:42:38 UTC (rev 4239)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_20_016_CreateNewUsersPageWithExistingPortalsPage.html 2010-09-17
10:44:34 UTC (rev 4240)
@@ -22,14 +22,19 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>windowMaximize</td>
+ <td></td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
<td>link=Sign in</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>username</td>
- <td>root</td>
+ <td></td>
</tr>
<tr>
<td>type</td>
@@ -57,7 +62,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Page Management</td>
<td></td>
</tr>
@@ -72,7 +77,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//div[@id='UIPageBrowser']/div[2]/table/tbody/tr/td/div/div/div/div/a</td>
<td></td>
</tr>
@@ -112,7 +117,7 @@
<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>
@@ -127,58 +132,53 @@
<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>
<tr>
<td>echo</td>
- <td>--Choose Access permission setting</td>
+ <td>-- Access permission setting --</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Access Permission Setting</td>
+ <td>waitForTextPresent</td>
+ <td>Access Permission Setting</td>
<td></td>
</tr>
<tr>
- <td>echo</td>
- <td>--Choose Edit permission setting</td>
+ <td>verifyTextPresent</td>
+ <td>Access Permission Setting</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Edit Permission Setting</td>
+ <td>echo</td>
+ <td>--Choose Edit permission setting</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>link=Save</td>
+ <td>link=Edit Permission Setting</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Save</td>
+ <td>click</td>
+ <td>link=Edit Permission Setting</td>
<td></td>
</tr>
<tr>
- <td>echo</td>
- <td>--Add new page for user--</td>
- <td></td>
-</tr>
-<tr>
<td>waitForElementPresent</td>
- <td>link=Page Management</td>
+ <td>link=Save</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Page Management</td>
+ <td>click</td>
+ <td>link=Save</td>
<td></td>
</tr>
<tr>
<td>echo</td>
- <td>--Page Setting--</td>
+ <td>--Add new page for user--</td>
<td></td>
</tr>
<tr>
@@ -187,7 +187,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//div[@id='UIPageBrowser']/div[2]/table/tbody/tr/td/div/div/div/div/a</td>
<td></td>
</tr>
@@ -213,12 +213,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[(a)onclick=&quot;eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPageForm',
'UIPageTemplateOptions');javascript:eXo.webui.UIForm.submitEvent('UIPageForm','SelectTab','&objectId=UIPageTemplateOptions')"]</td>
+ <td>//div[@id='UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>xpath=//div[(a)onclick=&quot;eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPageForm',
'UIPageTemplateOptions');javascript:eXo.webui.UIForm.submitEvent('UIPageForm','SelectTab','&objectId=UIPageTemplateOptions')"]</td>
+ <td>click</td>
+ <td>//div[@id='UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
<td></td>
</tr>
<tr>
@@ -227,7 +227,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Save</td>
<td></td>
</tr>
@@ -237,11 +237,21 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>searchTerm</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
<td>searchTerm</td>
<td>Test_POR_20_016</td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>searchOption</td>
+ <td></td>
+</tr>
+<tr>
<td>select</td>
<td>searchOption</td>
<td>label=Title</td>
@@ -252,12 +262,17 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//form[@id='UIPageSearch']/div[2]/a</td>
<td></td>
</tr>
<tr>
<td>echo</td>
+ <td>--
https://jira.jboss.org/browse/GTNPORTAL-1304 --</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
<td>--Delete page of user--</td>
<td></td>
</tr>
@@ -267,7 +282,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//img[@title='Delete Page']</td>
<td></td>
</tr>
@@ -282,7 +297,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//div[@id='UIPortalApplication']/div[@class='UIPopupWindow
UIDragObject']//div[@class='MiddleLeftSideDecorator']//div[@class='UIPopupMessages']/div[@class='MessageActionBar']//a</td>
<td></td>
</tr>
@@ -297,7 +312,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//img[@title='Delete Page']</td>
<td></td>
</tr>
@@ -312,7 +327,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//div[@id='UIPortalApplication']/div[@class='UIPopupWindow
UIDragObject']//div[@class='MiddleLeftSideDecorator']//div[@class='UIPopupMessages']/div[@class='MessageActionBar']//a</td>
<td></td>
</tr>
@@ -322,7 +337,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>clickAndWait</td>
<td>link=Sign out</td>
<td></td>
</tr>
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_20_017_CreateNewPageForUserWithValidValues.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_20_017_CreateNewPageForUserWithValidValues.html 2010-09-17
10:42:38 UTC (rev 4239)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_20_017_CreateNewPageForUserWithValidValues.html 2010-09-17
10:44:34 UTC (rev 4240)
@@ -4,12 +4,12 @@
<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_20_017</title>
+<title>Test_POR_20_017_CreateNewPageForUserWithValidValues</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1"
colspan="3">Test_POR_20_017</td></tr>
+<tr><td rowspan="1"
colspan="3">Test_POR_20_017_CreateNewPageForUserWithValidValues</td></tr>
</thead><tbody>
<tr>
<td>open</td>
@@ -22,14 +22,19 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>windowMaximize</td>
+ <td></td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
<td>link=Sign in</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>username</td>
- <td>root</td>
+ <td></td>
</tr>
<tr>
<td>type</td>
@@ -57,7 +62,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Page Management</td>
<td></td>
</tr>
@@ -72,7 +77,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//div[@id='UIPageBrowser']/div[2]/table/tbody/tr/td/div/div/div/div/a</td>
<td></td>
</tr>
@@ -84,21 +89,26 @@
<tr>
<td>type</td>
<td>name</td>
- <td>POR_20_017</td>
+ <td>Test_POR_20_017</td>
</tr>
<tr>
<td>type</td>
<td>title</td>
- <td>POR_20_017</td>
+ <td>Test_POR_20_017</td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-- Choose Page Layout --</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[(a)onclick=&quot;eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPageForm',
'UIPageTemplateOptions');javascript:eXo.webui.UIForm.submitEvent('UIPageForm','SelectTab','&objectId=UIPageTemplateOptions')"]</td>
+ <td>//div[@id='UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>xpath=//div[(a)onclick=&quot;eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPageForm',
'UIPageTemplateOptions');javascript:eXo.webui.UIForm.submitEvent('UIPageForm','SelectTab','&objectId=UIPageTemplateOptions')"]</td>
+ <td>click</td>
+ <td>//div[@id='UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
<td></td>
</tr>
<tr>
@@ -107,7 +117,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Save</td>
<td></td>
</tr>
@@ -122,11 +132,21 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>searchTerm</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
<td>searchTerm</td>
- <td>POR_20_017</td>
+ <td>Test_POR_20_017</td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>searchOption</td>
+ <td></td>
+</tr>
+<tr>
<td>select</td>
<td>searchOption</td>
<td>label=Title</td>
@@ -137,12 +157,17 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//form[@id='UIPageSearch']/div[2]/a</td>
<td></td>
</tr>
<tr>
<td>echo</td>
+ <td>--
https://jira.jboss.org/browse/GTNPORTAL-1304 --</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
<td>--Delete page of user--</td>
<td></td>
</tr>
@@ -152,7 +177,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//img[@title='Delete Page']</td>
<td></td>
</tr>
@@ -167,7 +192,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//div[@id='UIPortalApplication']/div[@class='UIPopupWindow
UIDragObject']//div[@class='MiddleLeftSideDecorator']//div[@class='UIPopupMessages']/div[@class='MessageActionBar']//a</td>
<td></td>
</tr>
@@ -177,7 +202,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>clickAndWait</td>
<td>link=Sign out</td>
<td></td>
</tr>
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_20_019_CreateSameNameGroupPagesInSameGroup.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_20_019_CreateSameNameGroupPagesInSameGroup.html 2010-09-17
10:42:38 UTC (rev 4239)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_20_019_CreateSameNameGroupPagesInSameGroup.html 2010-09-17
10:44:34 UTC (rev 4240)
@@ -4,12 +4,12 @@
<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_20_019</title>
+<title>Test_POR_20_019_CreateSameNameGroupPagesInSameGroup</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1"
colspan="3">Test_POR_20_019</td></tr>
+<tr><td rowspan="1"
colspan="3">Test_POR_20_019_CreateSameNameGroupPagesInSameGroup</td></tr>
</thead><tbody>
<tr>
<td>open</td>
@@ -22,6 +22,11 @@
<td></td>
</tr>
<tr>
+ <td>windowMaximize</td>
+ <td></td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
<td>link=Sign in</td>
<td></td>
@@ -57,7 +62,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Page Management</td>
<td></td>
</tr>
@@ -67,7 +72,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//div[@id='UIPageBrowser']/div[2]/table/tbody/tr/td/div/div/div/div/a</td>
<td></td>
</tr>
@@ -77,6 +82,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>ownerType</td>
+ <td></td>
+</tr>
+<tr>
<td>select</td>
<td>ownerType</td>
<td>label=group</td>
@@ -89,44 +99,94 @@
<tr>
<td>type</td>
<td>name</td>
- <td>POR_20_019</td>
+ <td>Test_POR_20_019</td>
</tr>
<tr>
<td>type</td>
<td>title</td>
- <td>POR_20_019</td>
+ <td>Test_POR_20_019</td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-- Choose Page Layout --</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[(a)onclick=&quot;eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPageForm',
'UIPageTemplateOptions');javascript:eXo.webui.UIForm.submitEvent('UIPageForm','SelectTab','&objectId=UIPageTemplateOptions')"]</td>
+ <td>//div[@id='UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>xpath=//div[(a)onclick=&quot;eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPageForm',
'PermissionSetting');javascript:eXo.webui.UIForm.submitEvent('UIPageForm','SelectTab','&objectId=PermissionSetting')"]</td>
+ <td>click</td>
+ <td>//div[@id='UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Access Permission Setting</td>
+ <td>echo</td>
+ <td>-- Choose Permisison Setting --</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[3]/div/div/div/div</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[@id='UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[3]/div/div/div/div</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-- Access Permission Setting --</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>Access Permission Setting</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>Access Permission Setting</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-- Edit Permission Setting --</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
<td>link=Edit Permission Setting</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>xpath=//div[(a)onclick=&quot;eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPageForm',
'UIPageTemplateOptions');javascript:eXo.webui.UIForm.submitEvent('UIPageForm','SelectTab','&objectId=UIPageTemplateOptions')"]</td>
+ <td>click</td>
+ <td>link=Edit Permission Setting</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>waitForTextPresent</td>
+ <td>Edit Permission Setting</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>Edit Permission Setting</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>
+</tr>
+<tr>
<td>echo</td>
<td>-- Create same name group pages in the same group--</td>
<td></td>
@@ -137,7 +197,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//div[@id='UIPageBrowser']/div[2]/table/tbody/tr/td/div/div/div/div/a</td>
<td></td>
</tr>
@@ -147,6 +207,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>ownerType</td>
+ <td></td>
+</tr>
+<tr>
<td>select</td>
<td>ownerType</td>
<td>label=group</td>
@@ -159,25 +224,30 @@
<tr>
<td>type</td>
<td>name</td>
- <td>POR_20_019</td>
+ <td>Test_POR_20_019</td>
</tr>
<tr>
<td>type</td>
<td>title</td>
- <td>POR_20_019</td>
+ <td>Test_POR_20_019</td>
</tr>
<tr>
- <td>clickAt</td>
- <td>xpath=//div[(a)onclick=&quot;eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPageForm',
'UIPageTemplateOptions');javascript:eXo.webui.UIForm.submitEvent('UIPageForm','SelectTab','&objectId=UIPageTemplateOptions')"]</td>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
<td></td>
</tr>
<tr>
+ <td>click</td>
+ <td>//div[@id='UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>link=Save</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Save</td>
<td></td>
</tr>
@@ -202,7 +272,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//div[@id='UIPortalApplication']/div[@class='UIPopupWindow
UIDragObject']//div[@class='MiddleLeftSideDecorator']//div[@class='UIPopupMessages']/div[@class='MessageActionBar']//a</td>
<td></td>
</tr>
@@ -212,7 +282,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Cancel</td>
<td></td>
</tr>
@@ -229,9 +299,14 @@
<tr>
<td>type</td>
<td>searchTerm</td>
- <td>POR_20_019</td>
+ <td>Test_POR_20_019</td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>searchOption</td>
+ <td></td>
+</tr>
+<tr>
<td>select</td>
<td>searchOption</td>
<td>label=Title</td>
@@ -242,12 +317,17 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//form[@id='UIPageSearch']/div[2]/a</td>
<td></td>
</tr>
<tr>
<td>echo</td>
+ <td>--
https://jira.jboss.org/browse/GTNPORTAL-1304 --</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
<td>--Delete page created--</td>
<td></td>
</tr>
@@ -257,7 +337,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>xpath=//img[@title='Delete Page']</td>
<td></td>
</tr>
@@ -272,17 +352,37 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</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>waitForTextPresent</td>
+ <td>No result found.</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>No result found.</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
+ <td>//div[4]/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>click</td>
+ <td>//div[4]/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>waitForElementPresent</td>
<td>link=Sign out</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>clickAndWait</td>
<td>link=Sign out</td>
<td></td>
</tr>