Author: mvanco(a)redhat.com
Date: 2010-05-03 05:03:33 -0400 (Mon, 03 May 2010)
New Revision: 2930
Modified:
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_20_023_CreateNewPageForGroupWithValidValues.html
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_20_028_CreateNewPortalPageWithNameIsTheSameWithExistingGroupPage.html
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_04_SignInAndSignOut.html
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_12_Portlet.html
Log:
EPP5 UI Tests: improved tests POR_20_023, POR_20_028, SNF_PRL_04, SNF_PRL_12
Modified:
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_20_023_CreateNewPageForGroupWithValidValues.html
===================================================================
---
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_20_023_CreateNewPageForGroupWithValidValues.html 2010-05-03
08:59:18 UTC (rev 2929)
+++
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_20_023_CreateNewPageForGroupWithValidValues.html 2010-05-03
09:03:33 UTC (rev 2930)
@@ -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>
@@ -92,8 +97,8 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>xpath=//option[@value='group']</td>
+ <td>pause</td>
+ <td>3000</td>
<td></td>
</tr>
<tr>
@@ -112,11 +117,6 @@
<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>
@@ -167,6 +167,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Access Permission Setting</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Access Permission Setting</td>
<td></td>
@@ -177,6 +182,11 @@
<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>
@@ -192,6 +202,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForTextNotPresent</td>
+ <td>Page Setting</td>
+ <td></td>
+</tr>
+<tr>
<td>echo</td>
<td>--Search new page created--</td>
<td></td>
@@ -287,11 +302,6 @@
<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>
@@ -332,38 +342,53 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Delete Permission</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Delete Permission</td>
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Select Permission</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Select Permission</td>
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UIPermissionSelector']//a[text()='Platform']</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
- <td>xpath=//div[@id='PermissionSelector']/div/div[2]/div/div[2]/div/div/div[4]/div/a</td>
+ <td>//div[@id='UIPermissionSelector']//a[text()='Platform']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>link=Administrators</td>
+ <td>//div[@id='UIPermissionSelector']//a[text()='Administrators']</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>link=Administrators</td>
+ <td>//div[@id='UIPermissionSelector']//a[text()='Administrators']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[@id='PermissionSelector']/div/div[3]/div/div[2]/div[1]/a</td>
+ <td>//div[@id='UIPermissionSelector']//a[text()='member']</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>xpath=//div[@id='PermissionSelector']/div/div[3]/div/div[2]/div[1]/a</td>
+ <td>//div[@id='UIPermissionSelector']//a[text()='member']</td>
<td></td>
</tr>
<tr>
@@ -382,11 +407,21 @@
<td></td>
</tr>
<tr>
+ <td>waitForTextNotPresent</td>
+ <td>Page Setting</td>
+ <td></td>
+</tr>
+<tr>
<td>echo</td>
<td>--Finish all action--</td>
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>xpath=//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>xpath=//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]</td>
<td></td>
@@ -407,7 +442,7 @@
<td></td>
</tr>
<tr>
- <td>assertConfirmation</td>
+ <td>waitForConfirmation</td>
<td>Do you want to delete this page?</td>
<td></td>
</tr>
@@ -422,6 +457,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForTextNotPresent</td>
+ <td>POR_20_023</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</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_20_028_CreateNewPortalPageWithNameIsTheSameWithExistingGroupPage.html
===================================================================
---
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_20_028_CreateNewPortalPageWithNameIsTheSameWithExistingGroupPage.html 2010-05-03
08:59:18 UTC (rev 2929)
+++
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_20_028_CreateNewPortalPageWithNameIsTheSameWithExistingGroupPage.html 2010-05-03
09:03:33 UTC (rev 2930)
@@ -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>
@@ -152,6 +157,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForTextNotPresent</td>
+ <td>Page Setting</td>
+ <td></td>
+</tr>
+<tr>
<td>echo</td>
<td>--Select Page Mangement on menu item--</td>
<td></td>
@@ -197,11 +207,16 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>xpath=//option[@value='group']</td>
+ <td>waitForElementPresent</td>
+ <td>ownerId</td>
<td></td>
</tr>
<tr>
+ <td>pause</td>
+ <td>5000</td>
+ <td></td>
+</tr>
+<tr>
<td>select</td>
<td>ownerId</td>
<td>label=/organization/operations</td>
@@ -212,11 +227,6 @@
<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>
@@ -247,11 +257,21 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Access Permission Setting</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Access Permission Setting</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>
@@ -267,11 +287,21 @@
<td></td>
</tr>
<tr>
+ <td>waitForTextNotPresent</td>
+ <td>Page Setting</td>
+ <td></td>
+</tr>
+<tr>
<td>echo</td>
<td>--Search new page created--</td>
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>searchTerm</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
<td>searchTerm</td>
<td>POR_20_028</td>
@@ -307,21 +337,11 @@
<td></td>
</tr>
<tr>
- <td>assertConfirmation</td>
+ <td>waitForConfirmation</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>echo</td>
<td>--Delete page of portal--</td>
<td></td>
@@ -337,7 +357,7 @@
<td></td>
</tr>
<tr>
- <td>assertConfirmation</td>
+ <td>waitForConfirmation</td>
<td>Do you want to delete this page?</td>
<td></td>
</tr>
@@ -352,6 +372,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForTextNotPresent</td>
+ <td>POR_20_028</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</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_SNF_PRL_04_SignInAndSignOut.html
===================================================================
---
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_04_SignInAndSignOut.html 2010-05-03
08:59:18 UTC (rev 2929)
+++
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_04_SignInAndSignOut.html 2010-05-03
09:03:33 UTC (rev 2930)
@@ -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>click</td>
<td>link=Sign in</td>
<td></td>
Modified:
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_12_Portlet.html
===================================================================
---
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_12_Portlet.html 2010-05-03
08:59:18 UTC (rev 2929)
+++
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_12_Portlet.html 2010-05-03
09:03:33 UTC (rev 2930)
@@ -13,7 +13,7 @@
</thead><tbody>
<tr>
<td>open</td>
- <td>/portal/public/classic/</td>
+ <td>/portal/public/classic</td>
<td></td>
</tr>
<tr>