Author: hangnguyen
Date: 2010-05-20 02:45:29 -0400 (Thu, 20 May 2010)
New Revision: 3133
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_28_AddDragDropInDashboardInApplicationRegistry.html
Log:
TESTVN-399: Create new GateIn Selenium Scrips
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_28_AddDragDropInDashboardInApplicationRegistry.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_28_AddDragDropInDashboardInApplicationRegistry.html 2010-05-20
06:44:43 UTC (rev 3132)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_28_AddDragDropInDashboardInApplicationRegistry.html 2010-05-20
06:45:29 UTC (rev 3133)
@@ -42,13 +42,23 @@
<td>gtn</td>
</tr>
<tr>
- <td>clickAndWait</td>
+ <td>waitForElementPresent</td>
<td>xpath=//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
<td></td>
</tr>
<tr>
- <td>clickAtAndWait</td>
+ <td>clickAt</td>
+ <td>xpath=//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
<td>link=Dashboard</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Dashboard</td>
<td>1,1</td>
</tr>
<tr>
@@ -68,6 +78,11 @@
</tr>
<tr>
<td>echo</td>
+ <td>--Choose "root" node</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
<td>--By url</td>
<td></td>
</tr>
@@ -82,98 +97,88 @@
<td>1,1</td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>xpath=//div[@class='UIPopupWindow
UIDragObject']//div[@class='CloseButton']</td>
+ <td>verifyElementPresent</td>
+ <td>xpath=//div[@class='GadgetTitle']</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>xpath=//div[@class='UIPopupWindow
UIDragObject']//div[@class='CloseButton']</td>
+ <td>echo</td>
+ <td>-- Close Dashboard Workspace--</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[@class='GadgetTitle']</td>
+ <td>//div[@id='UIDashboard']/div/div/div/div/div/div/div/div[2]</td>
<td></td>
</tr>
<tr>
- <td>verifyElementPresent</td>
- <td>xpath=//div[@class='GadgetTitle']</td>
+ <td>clickAt</td>
+ <td>//div[@id='UIDashboard']/div/div/div/div/div/div/div/div[2]</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Delete gadget--</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[@title='Delete Gadget']</td>
+ <td>//div[2]/div/div[3]/div[1]/div/div[1]/div/div/div/div[1]</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>xpath=//div[(a)onclick='eXo.gadget.UIGadget.deleteGadget(this)']</td>
+ <td>//div[2]/div/div[3]/div[1]/div/div[1]/div/div/div/div[1]</td>
<td></td>
</tr>
<tr>
- <td>waitForConfirmation</td>
+ <td>assertConfirmation</td>
<td>Are you sure to delete this gadget?</td>
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>link=Add Gadgets</td>
+ <td>echo</td>
+ <td>--By drag and drop</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Add Gadgets</td>
<td></td>
</tr>
<tr>
- <td>echo</td>
- <td>--By drag and drop</td>
- <td></td>
-</tr>
-<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[@class='GadgetTitle' and
@title='Calculator']</td>
+ <td>xpath=//div[@class='UIDashboardContainer']/div/div/div[2]</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>xpath=//div[@class='GadgetTitle' and
@title='Calculator']</td>
- <td></td>
-</tr>
-<tr>
<td>dragAndDropToObject</td>
<td>xpath=//div[@class='GadgetTitle' and
@title='Calculator']</td>
<td>xpath=//div[@class='UIDashboardContainer']</td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>xpath=//div[@class='CenterControlBar']//div[@class='GadgetTitle'
and text()='Calculator']</td>
+ <td>clickAt</td>
+ <td>//div[@id='UIDashboard']/div/div/div/div/div/div/div/div[2]</td>
<td></td>
</tr>
<tr>
- <td>verifyElementPresent</td>
- <td>xpath=//div[@class='CenterControlBar']//div[@class='GadgetTitle'
and text()='Calculator']</td>
+ <td>waitForElementPresent</td>
+ <td>xpath=//div[@class='UIDashboardContainer']/div/div/div[3]</td>
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>xpath=//div[@class='CloseGadget IconControl']</td>
- <td></td>
+ <td>dragAndDropToObject</td>
+ <td>//div[@class='GadgetControl']/div/div/div/div[6]</td>
+ <td>xpath=//div[@class='UIDashboardContainer']/div/div/div[3]</td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[@class='UIPopupWindow
UIDragObject']//div[@class='CloseButton']</td>
+ <td>//div[(a)onclick='eXo.gadget.UIGadget.deleteGadget(this)']</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>xpath=//div[@class='UIPopupWindow
UIDragObject']//div[@class='CloseButton']</td>
- <td></td>
-</tr>
-<tr>
<td>click</td>
- <td>xpath=//div[(a)onclick='eXo.gadget.UIGadget.deleteGadget(this)']</td>
+ <td>//div[(a)onclick='eXo.gadget.UIGadget.deleteGadget(this)']</td>
<td></td>
</tr>
<tr>
@@ -187,6 +192,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>
Show replies by date