Author: arthurpeltier
Date: 2010-03-12 03:59:52 -0500 (Fri, 12 Mar 2010)
New Revision: 2198
Removed:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/design/Test_POR_20_023.html
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/design/Test_POR_09_009.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/design/Test_POR_10_002.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/design/Test_POR_14_01_006.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/design/Test_POR_22_019.html
Log:
GTNPORTAL-775 : * Correct tests in /design folder
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/design/Test_POR_09_009.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/design/Test_POR_09_009.html 2010-03-12
08:31:06 UTC (rev 2197)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/design/Test_POR_09_009.html 2010-03-12
08:59:52 UTC (rev 2198)
@@ -43,7 +43,7 @@
</tr>
<tr>
<td>clickAt</td>
- <td>//div[@id='UIPortalLoginFormAction']//a</td>
+ <td>xpath=//div[@id='UIPortalLoginFormAction']//a</td>
<td></td>
</tr>
<tr>
@@ -147,11 +147,6 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Platform</td>
- <td></td>
-</tr>
-<tr>
<td>waitForElementPresent</td>
<td>link=Administrators</td>
<td></td>
@@ -217,7 +212,7 @@
<td></td>
</tr>
<tr>
- <td>clickAndWait</td>
+ <td>clickAt</td>
<td>xpath=//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
<td></td>
</tr>
@@ -292,7 +287,7 @@
<td>exact:*</td>
</tr>
<tr>
- <td>clickAndWait</td>
+ <td>clickAt</td>
<td>link=Save</td>
<td></td>
</tr>
@@ -317,6 +312,56 @@
<td></td>
</tr>
<tr>
+ <td>clickAt</td>
+ <td>link=Home</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>The Best of eXo and JBoss Portal</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Site</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>Portal Navigation</td>
+ <td></td>
+</tr>
+<tr>
+ <td>refreshAndWait</td>
+ <td></td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>test_por_09_009</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>test_por_09_009</td>
+ <td></td>
+</tr>
+<tr>
+ <td>refreshAndWait</td>
+ <td></td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>Test_POR_09_009</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>Test_POR_09_009</td>
+ <td></td>
+</tr>
+<tr>
<td>echo</td>
<td>--Delete portal with name is lower case--</td>
<td></td>
@@ -337,12 +382,12 @@
<td></td>
</tr>
<tr>
- <td>waitForTextPresent</td>
+ <td>waitForTextNotPresent</td>
<td>test_por_09_009</td>
<td></td>
</tr>
<tr>
- <td>verifyTextPresent</td>
+ <td>verifyTextNotPresent</td>
<td>test_por_09_009</td>
<td>1,1</td>
</tr>
@@ -352,13 +397,18 @@
<td></td>
</tr>
<tr>
+ <td>clickAt</td>
+ <td>link=Site</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[@id='UISiteManagement']/table[3]/tbody/tr/td[3]/a[4]</td>
+ <td>xpath=//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]</td>
<td></td>
</tr>
<tr>
- <td>clickAndWait</td>
- <td>xpath=//div[@id='UISiteManagement']/table[3]/tbody/tr/td[3]/a[4]</td>
+ <td>clickAt</td>
+ <td>xpath=//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]</td>
<td></td>
</tr>
<tr>
@@ -374,7 +424,7 @@
<tr>
<td>verifyTextNotPresent</td>
<td>Test_POR_09_009</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/design/Test_POR_10_002.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/design/Test_POR_10_002.html 2010-03-12
08:31:06 UTC (rev 2197)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/design/Test_POR_10_002.html 2010-03-12
08:59:52 UTC (rev 2198)
@@ -43,7 +43,7 @@
</tr>
<tr>
<td>clickAt</td>
- <td>//div[@id='UIPortalLoginFormAction']//a</td>
+ <td>xpath=//div[@id='UIPortalLoginFormAction']//a</td>
<td></td>
</tr>
<tr>
@@ -147,11 +147,6 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Platform</td>
- <td></td>
-</tr>
-<tr>
<td>waitForElementPresent</td>
<td>link=Administrators</td>
<td></td>
@@ -292,7 +287,7 @@
<td>exact:*</td>
</tr>
<tr>
- <td>clickAndWait</td>
+ <td>clickAt</td>
<td>link=Save</td>
<td></td>
</tr>
@@ -312,7 +307,7 @@
<td></td>
</tr>
<tr>
- <td>clickAndWait</td>
+ <td>clickAt</td>
<td>link=Site</td>
<td></td>
</tr>
@@ -337,16 +332,51 @@
<td></td>
</tr>
<tr>
- <td>waitForTextPresent</td>
- <td>Test_POR_10_001</td>
+ <td>waitForTextNotPresent</td>
+ <td>Test_POR_10_002_01</td>
<td></td>
</tr>
<tr>
- <td>verifyTextPresent</td>
- <td>Test_POR_10_001</td>
- <td>1,1</td>
+ <td>verifyTextNotPresent</td>
+ <td>Test_POR_10_002_01</td>
+ <td></td>
</tr>
<tr>
+ <td>clickAt</td>
+ <td>link=Site</td>
+ <td></td>
+</tr>
+<tr>
+ <td>refreshAndWait</td>
+ <td></td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>xpath=//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>xpath=//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForConfirmation</td>
+ <td>Are you sure you want to delete this portal?</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextNotPresent</td>
+ <td>Test_POR_10_002_02</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextNotPresent</td>
+ <td>Test_POR_10_002_02</td>
+ <td></td>
+</tr>
+<tr>
<td>echo</td>
<td>--Return to Site--</td>
<td></td>
@@ -357,7 +387,7 @@
<td></td>
</tr>
<tr>
- <td>clickAndWait</td>
+ <td>clickAt</td>
<td>link=Site</td>
<td></td>
</tr>
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/design/Test_POR_14_01_006.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/design/Test_POR_14_01_006.html 2010-03-12
08:31:06 UTC (rev 2197)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/design/Test_POR_14_01_006.html 2010-03-12
08:59:52 UTC (rev 2198)
@@ -157,8 +157,13 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>xpath=//a[@title='POR_14_01_006']</td>
+ <td></td>
+</tr>
+<tr>
<td>componentExoContextMenu</td>
- <td>xpath=//a[@title='test_por_14_01_006']</td>
+ <td>xpath=//a[@title='POR_14_01_006']</td>
<td></td>
</tr>
<tr>
Deleted:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/design/Test_POR_20_023.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/design/Test_POR_20_023.html 2010-03-12
08:31:06 UTC (rev 2197)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/design/Test_POR_20_023.html 2010-03-12
08:59:52 UTC (rev 2198)
@@ -1,392 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<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="" />
-<title>Test_POR_20_023</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-<thead>
-<tr><td rowspan="1"
colspan="3">Test_POR_20_023</td></tr>
-</thead><tbody>
-<tr>
- <td>open</td>
- <td>/portal/public/classic/</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>--Go to Page Management--</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Sign in</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>username</td>
- <td>root</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>xpath=//div[@id='UIPortalLoginFormAction']/div/div/div</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>--Select Page Mangement on menu item--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Page Management</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Page Management</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>--Add new page for group --</td>
- <td></td>
-</tr>
-<tr>
- <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>clickAt</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>ownerType</td>
- <td></td>
-</tr>
-<tr>
- <td>select</td>
- <td>ownerType</td>
- <td>label=group</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>xpath=//option[@value='group']</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>xpath=//option[@value='group']</td>
- <td></td>
-</tr>
-<tr>
- <td>select</td>
- <td>ownerId</td>
- <td>label=/organization/operations</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>xpath=//option[@value='/organization/operations']</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>xpath=//option[@value='/organization/operations']</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>name</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>name</td>
- <td>POR_20_023</td>
-</tr>
-<tr>
- <td>type</td>
- <td>title</td>
- <td>POR_20_023</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></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></td>
-</tr>
-<tr>
- <td>clickAt</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=Access Permission Setting</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Edit Permission Setting</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Save</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Save</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>--Edit page--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//img[@title='Edit Page']</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>//img[@title='Edit Page']</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>//div[(a)onclick=&quot;eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPageForm',
'Template');javascript:eXo.webui.UIForm.submitEvent('UIPageForm','SelectTab','&objectId=Template')"]</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>//div[(a)onclick=&quot;eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPageForm',
'Template');javascript:eXo.webui.UIForm.submitEvent('UIPageForm','SelectTab','&objectId=Template')"]</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</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>waitForElementPresent</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>//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=Add Permission</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Add Permission</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Platform</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Platform</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Administrators</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Administrators</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=exact:*</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=exact:*</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Edit Permission Setting</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Edit Permission Setting</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Delete Permission</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Select Permission</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>//div[@id='PermissionSelector']/div/div[2]/div/div[2]/div/div/div[4]/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Administrators</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Administrators</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='PermissionSelector']/div/div[3]/div/div[2]/div[4]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>//div[@id='PermissionSelector']/div/div[3]/div/div[2]/div[4]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Save</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Save</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>--Search new page created--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Page Management</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Page Management</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>searchTerm</td>
- <td>POR_20_023</td>
-</tr>
-<tr>
- <td>select</td>
- <td>searchOption</td>
- <td>label=Title</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>xpath=//form[@id='UIPageSearch']/div[2]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>xpath=//form[@id='UIPageSearch']/div[2]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>--Delete page of group--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>xpath=//img[@title='Delete Page']</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>xpath=//img[@title='Delete Page']</td>
- <td></td>
-</tr>
-<tr>
- <td>assertConfirmation</td>
- <td>Do you want to delete this page?</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</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>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>link=Sign out</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
-
-</tbody></table>
-</body>
-</html>
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/design/Test_POR_22_019.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/design/Test_POR_22_019.html 2010-03-12
08:31:06 UTC (rev 2197)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/design/Test_POR_22_019.html 2010-03-12
08:59:52 UTC (rev 2198)
@@ -363,7 +363,7 @@
</tr>
<tr>
<td>verifyElementPresent</td>
- <td>//a[contains(@href,'objectId=/platform/guests')]</td>
+ <td>xpath=//a[contains(@href,'objectId=/platform/guests')]</td>
<td></td>
</tr>
<tr>
@@ -373,7 +373,7 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//div[@class='OverflowContainer']/div[@class='Info']</td>
+ <td>xpath=//div[@class='OverflowContainer']/div[@class='Info']</td>
<td></td>
</tr>
<tr>