Author: mvanco(a)redhat.com
Date: 2010-05-05 09:59:35 -0400 (Wed, 05 May 2010)
New Revision: 2984
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_008_CreateNewPortalWithNameIsTheSameWithExistingOne.html
Log:
EPP5 UI test: improved tests 09_008, 07_004
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-05
11:57:07 UTC (rev 2983)
+++
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_07_004_CheckDisplayLanguageOfPortalInPrivateModeWithDemoAccount.html 2010-05-05
13:59:35 UTC (rev 2984)
@@ -53,6 +53,11 @@
</tr>
<tr>
<td>waitForElementPresent</td>
+ <td>link=Site</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
<td>link=Change Language</td>
<td></td>
</tr>
@@ -77,11 +82,16 @@
<td></td>
</tr>
<tr>
- <td>clickAndWait</td>
+ <td>waitForElementPresent</td>
<td>link=Apply</td>
<td></td>
</tr>
<tr>
+ <td>click</td>
+ <td>link=Apply</td>
+ <td></td>
+</tr>
+<tr>
<td>echo</td>
<td>--Verify</td>
<td></td>
@@ -208,6 +218,11 @@
</tr>
<tr>
<td>waitForElementPresent</td>
+ <td>link=Site</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
<td>link=Changer la langue</td>
<td></td>
</tr>
@@ -298,6 +313,11 @@
</tr>
<tr>
<td>waitForElementPresent</td>
+ <td>link=Site</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
<td>link=Change Language</td>
<td></td>
</tr>
@@ -392,6 +412,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Site</td>
+ <td></td>
+</tr>
+<tr>
<td>echo</td>
<td>--Verify</td>
<td></td>
@@ -452,6 +477,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Site</td>
+ <td></td>
+</tr>
+<tr>
<td>echo</td>
<td>--Change back to English</td>
<td></td>
@@ -543,6 +573,11 @@
</tr>
<tr>
<td>waitForElementPresent</td>
+ <td>link=Site</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
<td>link=Change Language</td>
<td></td>
</tr>
@@ -687,6 +722,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Site</td>
+ <td></td>
+</tr>
+<tr>
<td>echo</td>
<td>--Change back to English</td>
<td></td>
Modified:
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_09_008_CreateNewPortalWithNameIsTheSameWithExistingOne.html
===================================================================
---
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_09_008_CreateNewPortalWithNameIsTheSameWithExistingOne.html 2010-05-05
11:57:07 UTC (rev 2983)
+++
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_09_008_CreateNewPortalWithNameIsTheSameWithExistingOne.html 2010-05-05
13:59:35 UTC (rev 2984)
@@ -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>
@@ -82,8 +87,8 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>xpath=//div[@id='UISiteManagement']//div[@class='UIAction']//div[@class='ActionButton
BlueButton']</td>
+ <td>waitForTextPresent</td>
+ <td>Portal Setting</td>
<td></td>
</tr>
<tr>
@@ -147,6 +152,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>publicMode</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>publicMode</td>
<td></td>
@@ -218,7 +228,7 @@
</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_008']</td>
<td></td>
</tr>
<tr>
@@ -237,16 +247,11 @@
<td></td>
</tr>
<tr>
- <td>echo</td>
- <td>--Choose Portal Setting--</td>
+ <td>waitForTextPresent</td>
+ <td>Portal Setting</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>waitForElementPresent</td>
<td>name</td>
<td></td>
@@ -282,6 +287,11 @@
<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>
@@ -307,6 +317,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>publicMode</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>publicMode</td>
<td></td>
@@ -348,6 +363,16 @@
</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>
@@ -372,6 +397,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForTextPresent</td>
+ <td>This portal name already exists.</td>
+ <td></td>
+</tr>
+<tr>
<td>verifyTextPresent</td>
<td>This portal name already exists.</td>
<td></td>
@@ -428,12 +458,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_008')]</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_008')]</td>
<td></td>
</tr>
<tr>