Author: hangnguyen
Date: 2010-09-14 22:52:18 -0400 (Tue, 14 Sep 2010)
New Revision: 4203
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_09_001_CheckAddNewPortalForm.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_09_002_CreateNewPortalWithValidValue.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_09_003_CreateNewPortalWithBlankName.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_09_009_CreateNewPortalSameAsExistingButDifferentByLowerAndUpperCase.html
Log:
TestVN-356:Clean and Improve existing Selenium for GateIn
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_09_001_CheckAddNewPortalForm.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_09_001_CheckAddNewPortalForm.html 2010-09-14
23:10:35 UTC (rev 4202)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_09_001_CheckAddNewPortalForm.html 2010-09-15
02:52:18 UTC (rev 4203)
@@ -98,17 +98,77 @@
</tr>
<tr>
<td>echo</td>
+ <td>-- Choose Portal Template --</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[5]/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[1]/div/div/div/div</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[5]/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[1]/div/div/div/div</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>Sample Portal Template preview</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>Sample Portal Template preview</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//form[@id='UIPortalForm']/div[3]/div[1]/div[1]/div/div/div[1]/div[2]/div[1]/div/div/div</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyElementPresent</td>
+ <td>//form[@id='UIPortalForm']/div[3]/div[1]/div[1]/div/div/div[1]/div[2]/div[1]/div/div/div</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>Basic Portal</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>Basic Portal</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//form[@id='UIPortalForm']/div[3]/div[1]/div[1]/div/div/div[1]/div[2]/div[2]/div/div/div</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyElementPresent</td>
+ <td>//form[@id='UIPortalForm']/div[3]/div[1]/div[1]/div/div/div[1]/div[2]/div[2]/div/div/div</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>Classic Portal</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
<td>-- Choose Properties --</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//div[2]/div/div/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
+ <td>//div[2]/div/div/div/div/div/div/div/div/div/div/div/div[3]/div/div/div/div</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>//div[2]/div/div/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
+ <td>//div[2]/div/div/div/div/div/div/div/div/div/div/div/div[3]/div/div/div/div</td>
<td></td>
</tr>
<tr>
@@ -123,12 +183,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//div[2]/div/div/div/div/div/div/div/div/div/div/div/div[3]/div/div/div/div</td>
+ <td>//div[2]/div/div/div/div/div/div/div/div/div/div/div/div[4]/div/div/div/div</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>//div[2]/div/div/div/div/div/div/div/div/div/div/div/div[3]/div/div/div/div</td>
+ <td>//div[2]/div/div/div/div/div/div/div/div/div/div/div/div[4]/div/div/div/div</td>
<td></td>
</tr>
<tr>
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_09_002_CreateNewPortalWithValidValue.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_09_002_CreateNewPortalWithValidValue.html 2010-09-14
23:10:35 UTC (rev 4202)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_09_002_CreateNewPortalWithValidValue.html 2010-09-15
02:52:18 UTC (rev 4203)
@@ -83,15 +83,10 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//div[(a)onclick=&quot;eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'PortalSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PortalSetting')"]</td>
+ <td>name</td>
<td></td>
</tr>
<tr>
- <td>click</td>
- <td>//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>type</td>
<td>name</td>
<td>Test_POR_09_002</td>
@@ -108,17 +103,47 @@
</tr>
<tr>
<td>echo</td>
+ <td>-- Choose Portal Template --</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[5]/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[1]/div/div/div/div</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[5]/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[1]/div/div/div/div</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-- Choose Properties --</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[3]/div/div/div/div</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[@id='UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[3]/div/div/div/div</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
<td>--Select Permission Setting--</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='LeftTab']</td>
+ <td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[4]//div[@class='LeftTab']</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
+ <td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[4]//div[@class='MiddleTab']</td>
<td></td>
</tr>
<!--=============-->
@@ -134,12 +159,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//div[@onclick="javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','ChangeNode','&subComponentId=TreeListPermissionSelector&objectId=/platform')"]</td>
+ <td>link=Platform</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>//div[@onclick="javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','ChangeNode','&subComponentId=TreeListPermissionSelector&objectId=/platform')"]</td>
+ <td>link=Platform</td>
<td></td>
</tr>
<tr>
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_09_003_CreateNewPortalWithBlankName.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_09_003_CreateNewPortalWithBlankName.html 2010-09-14
23:10:35 UTC (rev 4202)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_09_003_CreateNewPortalWithBlankName.html 2010-09-15
02:52:18 UTC (rev 4203)
@@ -259,9 +259,14 @@
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>//div[@class='PopupMessage']</td>
+ <td>waitForConfirmationPresent</td>
+ <td></td>
+ <td></td>
+</tr>
+<tr>
+ <td>assertConfirmation</td>
<td>The field "Portal Name :" is required.</td>
+ <td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_09_009_CreateNewPortalSameAsExistingButDifferentByLowerAndUpperCase.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_09_009_CreateNewPortalSameAsExistingButDifferentByLowerAndUpperCase.html 2010-09-14
23:10:35 UTC (rev 4202)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_09_009_CreateNewPortalSameAsExistingButDifferentByLowerAndUpperCase.html 2010-09-15
02:52:18 UTC (rev 4203)
@@ -108,17 +108,32 @@
</tr>
<tr>
<td>echo</td>
+ <td>-- Choose Portal Template --</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[1]/div/div/div/div</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[@id='UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[1]/div/div/div/div</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
<td>--Choose Properties--</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
+ <td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
+ <td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
<td></td>
</tr>
<tr>
@@ -133,12 +148,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
+ <td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[4]//div[@class='MiddleTab']</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
+ <td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[4]//div[@class='MiddleTab']</td>
<td></td>
</tr>
<tr>
@@ -159,32 +174,32 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//div[@onclick="javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','ChangeNode','&subComponentId=TreeListPermissionSelector&objectId=/platform')"]</td>
+ <td>link=Platform</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>//div[@onclick="javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','ChangeNode','&subComponentId=TreeListPermissionSelector&objectId=/platform')"]</td>
+ <td>link=Platform</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//a[contains(text(),'Administrators')]</td>
+ <td>link=Administrators</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>//a[contains(text(),'Administrators')]</td>
+ <td>link=Administrators</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//a[contains(text(),'*')]</td>
+ <td>link=exact:*</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>//a[contains(text(),'*')]</td>
+ <td>link=exact:*</td>
<td></td>
</tr>
<!--------------------------->
@@ -295,12 +310,32 @@
</tr>
<tr>
<td>echo</td>
+ <td>-- Choose Portal Template --</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[1]/div/div/div/div</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[@id='UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[1]/div/div/div/div</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
<td>--Choose Properties--</td>
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
- <td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
+ <td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
<td></td>
</tr>
<tr>
@@ -315,12 +350,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
+ <td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[4]//div[@class='MiddleTab']</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
+ <td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[4]//div[@class='MiddleTab']</td>
<td></td>
</tr>
<tr>
@@ -476,7 +511,7 @@
<td></td>
</tr>
<tr>
- <td>waitForConfirmation</td>
+ <td>assertConfirmation</td>
<td>Are you sure you want to delete this portal?</td>
<td></td>
</tr>
@@ -516,7 +551,7 @@
<td></td>
</tr>
<tr>
- <td>waitForConfirmation</td>
+ <td>assertConfirmation</td>
<td>Are you sure you want to delete this portal?</td>
<td></td>
</tr>