Author: mvanco(a)redhat.com
Date: 2010-05-04 08:15:31 -0400 (Tue, 04 May 2010)
New Revision: 2973
Modified:
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_07_004_CheckDisplayLanguageOfPortalInPrivateModeWithDemoAccount.html
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_09_009_CreateNewPortalWithPortalNameTheSameWithExistingButDifferentByLowerAndUpperCase.html
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_20_DeletePortal.html
Log:
EPP5 UI Tests: improved tests 07_004, 09_009, SNF_PRL_20
Modified:
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_07_004_CheckDisplayLanguageOfPortalInPrivateModeWithDemoAccount.html
===================================================================
---
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_07_004_CheckDisplayLanguageOfPortalInPrivateModeWithDemoAccount.html 2010-05-04
10:55:07 UTC (rev 2972)
+++
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_07_004_CheckDisplayLanguageOfPortalInPrivateModeWithDemoAccount.html 2010-05-04
12:15:31 UTC (rev 2973)
@@ -22,6 +22,11 @@
<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>
@@ -107,11 +112,6 @@
<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>
@@ -122,6 +122,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>username</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
<td>username</td>
<td>root</td>
@@ -167,8 +172,8 @@
<td></td>
</tr>
<tr>
- <td>open</td>
- <td>/portal/public/classic</td>
+ <td>waitForElementPresent</td>
+ <td>link=Sign in</td>
<td></td>
</tr>
<tr>
@@ -177,6 +182,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>username</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
<td>username</td>
<td>root</td>
@@ -197,6 +207,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Changer la langue</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Changer la langue</td>
<td></td>
@@ -212,6 +227,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Appliquer</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Appliquer</td>
<td></td>
@@ -227,6 +247,11 @@
<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>
@@ -242,8 +267,8 @@
<td></td>
</tr>
<tr>
- <td>open</td>
- <td>/portal/public/classic</td>
+ <td>waitForElementPresent</td>
+ <td>link=Sign in</td>
<td></td>
</tr>
<tr>
@@ -252,6 +277,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>username</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
<td>username</td>
<td>john</td>
@@ -292,6 +322,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Apply</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Apply</td>
<td></td>
@@ -327,11 +362,6 @@
<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>
@@ -377,6 +407,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Abmelden</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Abmelden</td>
<td></td>
@@ -387,8 +422,8 @@
<td></td>
</tr>
<tr>
- <td>open</td>
- <td>/portal/public/classic</td>
+ <td>waitForElementPresent</td>
+ <td>link=Sign in</td>
<td></td>
</tr>
<tr>
@@ -397,6 +432,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>username</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
<td>username</td>
<td>john</td>
@@ -417,6 +457,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Sprache wechseln</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Sprache wechseln</td>
<td></td>
@@ -432,6 +477,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Anwenden</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Anwenden</td>
<td></td>
@@ -462,8 +512,8 @@
<td></td>
</tr>
<tr>
- <td>open</td>
- <td>/portal/public/classic</td>
+ <td>waitForElementPresent</td>
+ <td>link=Sign in</td>
<td></td>
</tr>
<tr>
@@ -472,6 +522,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>username</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
<td>username</td>
<td>demo</td>
@@ -512,6 +567,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Apply</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Apply</td>
<td></td>
@@ -522,16 +582,6 @@
<td></td>
</tr>
<tr>
- <td>waitForTextPresent</td>
- <td>Home</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyTextPresent</td>
- <td>Home</td>
- <td></td>
-</tr>
-<tr>
<td>waitForElementPresent</td>
<td>link=Uscita</td>
<td></td>
@@ -547,11 +597,6 @@
<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>
@@ -582,6 +627,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Uscita</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Uscita</td>
<td></td>
@@ -607,8 +657,8 @@
<td></td>
</tr>
<tr>
- <td>open</td>
- <td>/portal/public/classic</td>
+ <td>waitForElementPresent</td>
+ <td>link=Sign in</td>
<td></td>
</tr>
<tr>
@@ -662,12 +712,22 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Applica</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Applica</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
+ <td>SiteMap</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
<td>Home</td>
<td></td>
</tr>
@@ -677,6 +737,11 @@
<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>
Modified:
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_09_009_CreateNewPortalWithPortalNameTheSameWithExistingButDifferentByLowerAndUpperCase.html
===================================================================
---
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_09_009_CreateNewPortalWithPortalNameTheSameWithExistingButDifferentByLowerAndUpperCase.html 2010-05-04
10:55:07 UTC (rev 2972)
+++
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_09_009_CreateNewPortalWithPortalNameTheSameWithExistingButDifferentByLowerAndUpperCase.html 2010-05-04
12:15:31 UTC (rev 2973)
@@ -13,7 +13,7 @@
</thead><tbody>
<tr>
<td>open</td>
- <td>/portal/public/classic/</td>
+ <td>/portal/public/classic</td>
<td></td>
</tr>
<tr>
@@ -22,6 +22,11 @@
<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>
@@ -83,7 +88,7 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
+ <td>name</td>
<td></td>
</tr>
<tr>
@@ -107,11 +112,21 @@
<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>waitForElementPresent</td>
+ <td>sessionAlive</td>
+ <td></td>
+</tr>
+<tr>
<td>select</td>
<td>sessionAlive</td>
<td>label=On Demand</td>
@@ -122,6 +137,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>xpath=//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>xpath=//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
<td></td>
@@ -202,13 +222,23 @@
<td>exact:*</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>waitForTextNotPresent</td>
+ <td>Portal Setting</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]</td>
+ <td>//td[@class='Content']/div[@class='Label' and
text()='test_por_09_009']</td>
<td></td>
</tr>
<tr>
@@ -252,11 +282,21 @@
<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>waitForElementPresent</td>
+ <td>sessionAlive</td>
+ <td></td>
+</tr>
+<tr>
<td>select</td>
<td>sessionAlive</td>
<td>label=On Demand</td>
@@ -267,6 +307,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>xpath=//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>xpath=//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
<td></td>
@@ -317,8 +362,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>
@@ -337,13 +387,23 @@
<td>exact:*</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>waitForTextNotPresent</td>
+ <td>Portal Setting</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]</td>
+ <td>//td[@class='Content']/div[@class='Label' and
text()='Test_POR_09_009']</td>
<td></td>
</tr>
<tr>
@@ -433,12 +493,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]</td>
+ <td>//a[@class='DeleteIcon' and contains(@href,
'op=DeletePortal&objectId=test_por_09_009')]</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>xpath=//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]</td>
+ <td>//a[@class='DeleteIcon' and contains(@href,
'op=DeletePortal&objectId=test_por_09_009')]</td>
<td></td>
</tr>
<tr>
@@ -468,12 +528,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]</td>
+ <td>//a[@class='DeleteIcon' and contains(@href,
'op=DeletePortal&objectId=Test_POR_09_009')]</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>xpath=//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]</td>
+ <td>//a[@class='DeleteIcon' and contains(@href,
'op=DeletePortal&objectId=Test_POR_09_009')]</td>
<td></td>
</tr>
<tr>
Modified:
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_20_DeletePortal.html
===================================================================
---
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_20_DeletePortal.html 2010-05-04
10:55:07 UTC (rev 2972)
+++
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_20_DeletePortal.html 2010-05-04
12:15:31 UTC (rev 2973)
@@ -13,7 +13,7 @@
</thead><tbody>
<tr>
<td>open</td>
- <td>/portal/public/classic/</td>
+ <td>/portal/public/classic</td>
<td></td>
</tr>
<tr>
@@ -22,6 +22,11 @@
<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>
@@ -47,6 +52,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>
@@ -68,16 +78,6 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[(a)onclick=&quot;eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'PortalSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PortalSetting')"]</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>xpath=//div[(a)onclick=&quot;eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'PortalSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PortalSetting')"]</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
<td>name</td>
<td></td>
</tr>
@@ -147,8 +147,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>
@@ -167,6 +172,11 @@
<td>exact:*</td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Save</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Save</td>
<td></td>
@@ -182,28 +192,58 @@
<td></td>
</tr>
<tr>
+ <td>pause</td>
+ <td>5000</td>
+ <td></td>
+</tr>
+<tr>
<td>echo</td>
<td>--Delete portal</td>
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Site</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAndWait</td>
<td>link=Site</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]</td>
+ <td>link=Home</td>
<td></td>
</tr>
<tr>
+ <td>clickAndWait</td>
+ <td>link=Home</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Site</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>link=Site</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//a[@class='DeleteIcon' and contains(@href,
'op=DeletePortal&objectId=test_portal_name_20')]</td>
+ <td></td>
+</tr>
+<tr>
<td>pause</td>
- <td>5000</td>
+ <td>8000</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>xpath=//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]</td>
+ <td>//a[@class='DeleteIcon' and contains(@href,
'op=DeletePortal&objectId=test_portal_name_20')]</td>
<td></td>
</tr>
<tr>