Author: hangnguyen
Date: 2010-04-14 07:16:14 -0400 (Wed, 14 Apr 2010)
New Revision: 2630
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/ko/Test_POR_09_002_CreateNewPortalWithValidValue.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/ko/Test_POR_09_008_CreateNewPortalWithNameIsTheSameWithExistingOne.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/ko/Test_POR_09_009_CreateNewPortalWithPortalNameTheSameWithExistingButDifferentByLowerAndUpperCase.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/ko/Test_POR_10_002_DeleteCurrentPortalByLegalUser.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/ko/Test_POR_20_023_CreateNewPageForGroupWithValidValues.html
Log:
Clean and improvement Selenium for ko folder
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/ko/Test_POR_09_002_CreateNewPortalWithValidValue.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/ko/Test_POR_09_002_CreateNewPortalWithValidValue.html 2010-04-14
11:15:28 UTC (rev 2629)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/ko/Test_POR_09_002_CreateNewPortalWithValidValue.html 2010-04-14
11:16:14 UTC (rev 2630)
@@ -72,6 +72,11 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Choose Portal Template--</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>xpath=//div[@id='UISiteManagement']//div[@class='UIAction']//div[@class='ActionButton
BlueButton']</td>
<td></td>
@@ -97,13 +102,38 @@
<td>Test_POR_09_002</td>
</tr>
<tr>
+ <td>select</td>
+ <td>locale</td>
+ <td>label=English</td>
+</tr>
+<tr>
+ <td>select</td>
+ <td>skin</td>
+ <td>label=Default</td>
+</tr>
+<tr>
<td>echo</td>
+ <td>--Choose Properties--</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>xpath=//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='LeftTab']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>xpath=//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='LeftTab']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
<td>--Select Permission Setting--</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>xpath=//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[4]//div[@class='MiddleTab']</td>
+ <td>xpath=//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
<td></td>
</tr>
<tr>
@@ -217,11 +247,6 @@
<td></td>
</tr>
<tr>
- <td>refresh</td>
- <td></td>
- <td></td>
-</tr>
-<tr>
<td>waitForElementPresent</td>
<td>link=Site</td>
<td></td>
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/ko/Test_POR_09_008_CreateNewPortalWithNameIsTheSameWithExistingOne.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/ko/Test_POR_09_008_CreateNewPortalWithNameIsTheSameWithExistingOne.html 2010-04-14
11:15:28 UTC (rev 2629)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/ko/Test_POR_09_008_CreateNewPortalWithNameIsTheSameWithExistingOne.html 2010-04-14
11:16:14 UTC (rev 2630)
@@ -129,7 +129,7 @@
<tr>
<td>clickAt</td>
<td>link=Edit Permission Setting</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
@@ -139,7 +139,7 @@
<tr>
<td>clickAt</td>
<td>link=Select Permission</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
@@ -254,7 +254,7 @@
<tr>
<td>clickAt</td>
<td>link=Edit Permission Setting</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
@@ -264,7 +264,7 @@
<tr>
<td>clickAt</td>
<td>link=Select Permission</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
@@ -303,27 +303,27 @@
</tr>
<tr>
<td>verifyTextPresent</td>
- <td>This portal name already exists. </td>
+ <td>This portal name already exists.</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//div[@id='UIPortalApplication']//div[@class='ExoMessageDecorator']//div[@class='MiddleRightSideDecorator']//div[@class='UIPopupMessages']/div[@class='MessageActionBar']//a</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>//div[@id='UIPortalApplication']//div[@class='ExoMessageDecorator']//div[@class='MiddleRightSideDecorator']//div[@class='UIPopupMessages']/div[@class='MessageActionBar']//a</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=Cancel</td>
+ <td>//form[@id='UIPortalForm']/div[3]/div[2]/table/tbody/tr/td//div[2]</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>link=Cancel</td>
+ <td>//form[@id='UIPortalForm']/div[3]/div[2]/table/tbody/tr/td//div[2]</td>
<td></td>
</tr>
<tr>
@@ -354,7 +354,7 @@
<tr>
<td>verifyTextPresent</td>
<td>test_por_09_008</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
@@ -379,7 +379,7 @@
<tr>
<td>verifyTextNotPresent</td>
<td>test_por_09_008</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/ko/Test_POR_09_009_CreateNewPortalWithPortalNameTheSameWithExistingButDifferentByLowerAndUpperCase.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/ko/Test_POR_09_009_CreateNewPortalWithPortalNameTheSameWithExistingButDifferentByLowerAndUpperCase.html 2010-04-14
11:15:28 UTC (rev 2629)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/ko/Test_POR_09_009_CreateNewPortalWithPortalNameTheSameWithExistingButDifferentByLowerAndUpperCase.html 2010-04-14
11:16:14 UTC (rev 2630)
@@ -124,7 +124,7 @@
<tr>
<td>clickAt</td>
<td>link=Edit Permission Setting</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
@@ -134,7 +134,7 @@
<tr>
<td>clickAt</td>
<td>link=Select Permission</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
@@ -244,7 +244,7 @@
<tr>
<td>clickAt</td>
<td>link=Edit Permission Setting</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
@@ -254,7 +254,7 @@
<tr>
<td>clickAt</td>
<td>link=Select Permission</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
@@ -312,6 +312,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Home</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Home</td>
<td></td>
@@ -322,6 +327,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Site</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Site</td>
<td></td>
@@ -389,7 +399,7 @@
<tr>
<td>verifyTextNotPresent</td>
<td>test_por_09_009</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
<td>echo</td>
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/ko/Test_POR_10_002_DeleteCurrentPortalByLegalUser.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/ko/Test_POR_10_002_DeleteCurrentPortalByLegalUser.html 2010-04-14
11:15:28 UTC (rev 2629)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/ko/Test_POR_10_002_DeleteCurrentPortalByLegalUser.html 2010-04-14
11:16:14 UTC (rev 2630)
@@ -77,6 +77,11 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Choose Portal template--</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>xpath=//div[@id='UISiteManagement']//div[@class='UIAction']//div[@class='ActionButton
BlueButton']</td>
<td></td>
@@ -99,130 +104,35 @@
<tr>
<td>type</td>
<td>name</td>
- <td>Test_POR_10_002_01</td>
+ <td>Test_POR_10_002</td>
</tr>
<tr>
- <td>echo</td>
- <td>--Select Permission Setting--</td>
- <td></td>
+ <td>select</td>
+ <td>locale</td>
+ <td>label=English</td>
</tr>
<tr>
- <td>clickAt</td>
- <td>xpath=//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[4]//div[@class='MiddleTab']</td>
- <td></td>
+ <td>select</td>
+ <td>skin</td>
+ <td>label=Default</td>
</tr>
<tr>
- <td>clickAt</td>
- <td>publicMode</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>1,1</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Select Permission</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Select Permission</td>
- <td>1,1</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>waitForText</td>
- <td>xpath=//div[@id='UIPermissionSelector']/div/div[2]/div[1]/div[3]/div[2]</td>
- <td>exact:*</td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Save</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>echo</td>
- <td>-- Add new portal with name is the same with existing one but different with
existing by upper case --</td>
+ <td>--Choose Properties--</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>link=Add New Portal</td>
+ <td>xpath=//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='LeftTab']</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>link=Add New Portal</td>
+ <td>xpath=//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='LeftTab']</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>xpath=//div[@id='UISiteManagement']//div[@class='UIAction']//div[@class='ActionButton
BlueButton']</td>
- <td></td>
-</tr>
-<tr>
<td>echo</td>
- <td>--Choose Portal Setting--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>xpath=//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>xpath=//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>name</td>
- <td>Test_POR_10_002_02</td>
-</tr>
-<tr>
- <td>echo</td>
<td>--Select Permission Setting--</td>
<td></td>
</tr>
@@ -267,8 +177,13 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Administrators</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
- <td>link=Platform</td>
+ <td>link=Administrators</td>
<td></td>
</tr>
<tr>
@@ -298,7 +213,7 @@
</tr>
<tr>
<td>echo</td>
- <td>--Go to Site--</td>
+ <td>--Go to Site to check existing portal list to use--</td>
<td></td>
</tr>
<tr>
@@ -333,52 +248,17 @@
</tr>
<tr>
<td>waitForTextNotPresent</td>
- <td>Test_POR_10_002_01</td>
+ <td>Test_POR_10_002</td>
<td></td>
</tr>
<tr>
<td>verifyTextNotPresent</td>
- <td>Test_POR_10_002_01</td>
+ <td>Test_POR_10_002</td>
<td></td>
</tr>
<tr>
- <td>refreshAndWait</td>
- <td></td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>xpath=//div[@id='UIPortalApplication']/div[@class='UIPopupWindow
UIDragObject']//table[@class='ActionContainer']//a</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>--Return to Site to check existing portals list after deleted--</td>
<td></td>
</tr>
<tr>
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/ko/Test_POR_20_023_CreateNewPageForGroupWithValidValues.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/ko/Test_POR_20_023_CreateNewPageForGroupWithValidValues.html 2010-04-14
11:15:28 UTC (rev 2629)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/ko/Test_POR_20_023_CreateNewPageForGroupWithValidValues.html 2010-04-14
11:16:14 UTC (rev 2630)
@@ -132,6 +132,11 @@
<td>POR_20_023</td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-- Go to Page Layout tab--</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></td>
@@ -142,16 +147,36 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-- Go to Permission Setting tab--</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</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></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></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Choose Access permission Setting--</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Access Permission Setting</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Choose Edit permission setting--</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Edit Permission Setting</td>
<td></td>
@@ -168,6 +193,46 @@
</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>waitForElementPresent</td>
+ <td>searchTerm</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>clickAt</td>
+ <td>xpath=//form[@id='UIPageSearch']/div[2]/a</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
<td>--Edit page--</td>
<td></td>
</tr>
@@ -182,6 +247,11 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--View page properties--</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>link=View Page properties</td>
<td></td>
@@ -192,6 +262,11 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Choose page template tab--</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>xpath=//div[(a)onclick=&quot;eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPageForm',
'Template');javascript:eXo.webui.UIForm.submitEvent('UIPageForm','SelectTab','&objectId=Template')"]</td>
<td></td>
@@ -202,8 +277,8 @@
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</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>echo</td>
+ <td>--Choose Permission setting tab--</td>
<td></td>
</tr>
<tr>
@@ -307,61 +382,31 @@
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>link=Save</td>
+ <td>echo</td>
+ <td>--Save after edit page--</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']/div[1]/div/div/div/a[2]</td>
+ <td>link=Save</td>
<td></td>
</tr>
<tr>
<td>echo</td>
- <td>--Search new page created--</td>
+ <td>--Finish all action--</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>xpath=//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]</td>
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>searchTerm</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>clickAt</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>