[gatein-commits] gatein SVN: r2820 - portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium.
do-not-reply at jboss.org
do-not-reply at jboss.org
Tue Apr 27 06:12:18 EDT 2010
Author: hangnguyen
Date: 2010-04-27 06:12:17 -0400 (Tue, 27 Apr 2010)
New Revision: 2820
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_13_AddRemoteAndCreateNewGadget.html
Log:
Change script for Test_SNF_PRL_13_AddRemoteAndCreateNewGadget.html
Modified: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_13_AddRemoteAndCreateNewGadget.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_13_AddRemoteAndCreateNewGadget.html 2010-04-27 09:52:13 UTC (rev 2819)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_13_AddRemoteAndCreateNewGadget.html 2010-04-27 10:12:17 UTC (rev 2820)
@@ -4,12 +4,12 @@
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="" />
-<title>Test_SNF_PRL_13</title>
+<title>Test_SNF_PRL_13_AddRemoteAndCreateNewGadget</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1" colspan="3">Test_SNF_PRL_13</td></tr>
+<tr><td rowspan="1" colspan="3">Test_SNF_PRL_13_AddRemoteAndCreateNewGadget</td></tr>
</thead><tbody>
<tr>
<td>open</td>
@@ -47,11 +47,21 @@
<td>gtn</td>
</tr>
<tr>
- <td>clickAndWait</td>
+ <td>clickAt</td>
<td>//div[@id='UIPortalLoginFormAction']/div/div/div</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Go to Application registry--</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Application Registry</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Application Registry</td>
<td>1,1</td>
@@ -67,6 +77,11 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Add a remote gadget--</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>//div[@class='IconControl AddNewIcon']</td>
<td></td>
@@ -87,6 +102,11 @@
<td>http://www.google.com/ig/modules/datetime.xml</td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Add</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Add</td>
<td>1,1</td>
@@ -107,6 +127,11 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Delete remote gadget--</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//div[@class='SelectedItem ItemContent']/a[2]</td>
<td></td>
@@ -127,7 +152,62 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Add a new gadget--</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
+ <td>//div[@onclick="javascript:ajaxGet('/portal/private/classic/administration/registry?portal:componentId=bf8f4620-4e76-4423-b3b9-836883e47806&portal:type=action&uicomponent=UIGadgetManagement&op=AddLocalGadget&ajaxRequest=true')"]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>//div[@onclick="javascript:ajaxGet('/portal/private/classic/administration/registry?portal:componentId=bf8f4620-4e76-4423-b3b9-836883e47806&portal:type=action&uicomponent=UIGadgetManagement&op=AddLocalGadget&ajaxRequest=true')"]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>name</td>
+ <td>SNF_PRL_13</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>waitForTextPresent</td>
+ <td>Gadget Details</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//a[@onclick="javascript:if(confirm('Are you sure to delete this gadget?'))ajaxGet('/portal/private/classic/administration/registry?portal:componentId=bf8f4620-4e76-4423-b3b9-836883e47806&portal:type=action&uicomponent=UIGadgetManagement&op=RemoveGadget&objectId=SNF_PRL_13&ajaxRequest=true')"]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>//a[@onclick="javascript:if(confirm('Are you sure to delete this gadget?'))ajaxGet('/portal/private/classic/administration/registry?portal:componentId=bf8f4620-4e76-4423-b3b9-836883e47806&portal:type=action&uicomponent=UIGadgetManagement&op=RemoveGadget&objectId=SNF_PRL_13&ajaxRequest=true')"]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForConfirmation</td>
+ <td>Are you sure to delete this gadget?</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@class='SelectedItem ItemContent']/a[@title='Calculator']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
<td>link=Sign out</td>
<td></td>
</tr>
More information about the gatein-commits
mailing list