Author: dbaeli
Date: 2010-01-22 19:10:34 -0500 (Fri, 22 Jan 2010)
New Revision: 1425
Removed:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_27_1.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_35.java
Modified:
portal/trunk/testsuite/ui-tests/GateIn_v3.0_SniffTests.ods
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/TestSuite_SNF_PRL.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_02.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_11.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_13.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_19.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_21.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_22.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_23.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_24.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_25.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_28.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_29.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_30.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_31.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_32.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_34.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_35.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_All.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_02.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_03.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_04.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_05.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_06.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_07.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_08.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_09.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_10.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_11.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_13.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_15.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_18.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_19.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_20.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_21.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_22.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_23.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_24.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_25.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_28.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_29.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_30.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_31.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_32.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_34.java
Log:
GTNPORTAL-509: Selenium Sniff test
* Third Update
* Fix HTML encoding issue in some parameters
* All script reviewed, some selenium tooling is required for some tests
Please have a look in GateIn_v3.0_SniffTests.ods for details
Test_All : Tests run: 33, Failures: 4, Errors: 5, Skipped: 0, Time elapsed: 1,181.484 sec
Modified: portal/trunk/testsuite/ui-tests/GateIn_v3.0_SniffTests.ods
===================================================================
(Binary files differ)
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/TestSuite_SNF_PRL.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/TestSuite_SNF_PRL.html 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/TestSuite_SNF_PRL.html 2010-01-23
00:10:34 UTC (rev 1425)
@@ -1,46 +1,48 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html
xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
lang="en">
-<head>
- <meta content="text/html; charset=UTF-8"
http-equiv="content-type" />
- <title>Test Suite</title>
-</head>
-<body>
-<table id="suiteTable" cellpadding="1" cellspacing="1"
border="1" class="selenium"><tbody>
-<tr><td><b>Test Suite</b></td></tr>
-<tr><td><a
href="Test_SNF_PRL_02.html">SNF_PRL_02</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_03.html">SNF_PRL_03</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_04.html">SNF_PRL_04</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_05.html">SNF_PRL_05</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_06.html">SNF_PRL_06</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_07.html">SNF_PRL_07</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_08.html">SNF_PRL_08</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_09.html">SNF_PRL_09</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_10.html">SNF_PRL_10</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_11.html">SNF_PRL_11</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_13.html">SNF_PRL_13</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_14.html">SNF_PRL_14</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_15.html">SNF_PRL_15</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_16.html">SNF_PRL_16</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_17.html">SNF_PRL_17</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_18.html">SNF_PRL_18</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_19.html">SNF_PRL_19</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_20.html">SNF_PRL_20</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_21.html">SNF_PRL_21</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_22.html">SNF_PRL_22</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_23.html">SNF_PRL_23</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_24.html">SNF_PRL_24</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_25.html">SNF_PRL_25</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_27_1.html">SNF_PRL_27_1</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_27_2.html">SNF_PRL_27_2</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_28.html">SNF_PRL_28</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_29.html">SNF_PRL_29</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_30.html">SNF_PRL_30</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_31.html">SNF_PRL_31</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_32.html">SNF_PRL_32</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_34.html">SNF_PRL_34</a></td></tr>
-<tr><td><a
href="Test_SNF_PRL_35.html">SNF_PRL_35</a></td></tr>
-
-</tbody></table>
-</body>
-</html>
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
lang="en">
+<head>
+ <meta content="text/html; charset=UTF-8"
http-equiv="content-type" />
+ <title>Test Suite</title>
+</head>
+<body>
+<table id="suiteTable" cellpadding="1" cellspacing="1"
border="1" class="selenium"><tbody>
+<tr><td><b>Test Suite</b></td></tr>
+<tr><td><a
href="Test_SNF_PRL_02.html">SNF_PRL_02</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_03.html">SNF_PRL_03</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_04.html">SNF_PRL_04</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_07.html">SNF_PRL_07</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_08.html">SNF_PRL_08</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_09.html">SNF_PRL_09</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_10.html">SNF_PRL_10</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_12.html">SNF_PRL_12</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_13.html">SNF_PRL_13</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_14.html">SNF_PRL_14</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_15.html">SNF_PRL_15</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_16.html">SNF_PRL_16</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_17.html">SNF_PRL_17</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_18.html">SNF_PRL_18</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_20.html">SNF_PRL_20</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_21.html">SNF_PRL_21</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_23.html">SNF_PRL_23</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_24.html">SNF_PRL_24</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_25.html">SNF_PRL_25</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_26.html">SNF_PRL_26</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_27.html">SNF_PRL_27</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_30.html">SNF_PRL_30</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_31.html">SNF_PRL_31</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_32.html">SNF_PRL_32</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_34.html">SNF_PRL_34</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_05.html">SNF_PRL_05</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_06.html">SNF_PRL_06</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_19.html">SNF_PRL_19</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_28.html">SNF_PRL_28</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_29.html">SNF_PRL_29</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_33.html">SNF_PRL_33</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_11.html">SNF_PRL_11</a></td></tr>
+<tr><td><a
href="Test_SNF_PRL_22.html">SNF_PRL_22</a></td></tr>
+
+
+</tbody></table>
+</body>
+</html>
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_02.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_02.html 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_02.html 2010-01-23
00:10:34 UTC (rev 1425)
@@ -97,6 +97,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForTextPresent</td>
+ <td>test_name_first_02 test_name_last_02</td>
+ <td></td>
+</tr>
+<tr>
<td>verifyTextPresent</td>
<td>test_name_first_02 test_name_last_02</td>
<td></td>
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_11.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_11.html 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_11.html 2010-01-23
00:10:34 UTC (rev 1425)
@@ -52,6 +52,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@class='ListContent']//div[@class='SelectedTab']//a[@class='ControlIcon
CreateNewIcon']</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//div[@class='ListContent']//div[@class='SelectedTab']//a[@class='ControlIcon
CreateNewIcon']</td>
<td>1,1</td>
@@ -117,11 +122,26 @@
<td></td>
</tr>
<tr>
+ <td>clickAt</td>
+ <td>//div[@class='IconControl ImportIcon']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForConfirmation</td>
+ <td>This action will automatically create categories and import all the gadgets
and portlets on it.</td>
+ <td></td>
+</tr>
+<tr>
<td>echo</td>
<td>--Delete application</td>
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@class='ListContent']//div[@class='UIVTabContent']/div[8]//a[@class='ControlIcon
DeletePortalIcon']</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//div[@class='ListContent']//div[@class='UIVTabContent']/div[8]//a[@class='ControlIcon
DeletePortalIcon']</td>
<td></td>
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_13.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_13.html 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_13.html 2010-01-23
00:10:34 UTC (rev 1425)
@@ -47,6 +47,11 @@
<td>1,1</td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Gadget</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Gadget</td>
<td></td>
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_19.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_19.html 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_19.html 2010-01-23
00:10:34 UTC (rev 1425)
@@ -261,12 +261,12 @@
<td>//div[@class='SelectedNavigationTab']//a</td>
<td></td>
</tr>
-<!--tr>
+<tr>
<td>echo</td>
- <td>---Delete node</td>
+ <td>--Delete node</td>
<td></td>
</tr>
-<tr>
+<!--tr>
<td>clickAt</td>
<td>link=Site</td>
<td></td>
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_21.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_21.html 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_21.html 2010-01-23
00:10:34 UTC (rev 1425)
@@ -62,6 +62,11 @@
<td></td>
</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></td>
+</tr>
+<tr>
<td>clickAt</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>
@@ -136,6 +141,31 @@
<td>link=test_portal_name_21</td>
<td></td>
</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Site</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>--Delete new portal</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UISiteManagement']/table[2]//td[3]/a[4]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>//div[@id='UISiteManagement']/table[2]//td[3]/a[4]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForConfirmation</td>
+ <td>Are you sure you want to delete this portal?</td>
+ <td></td>
+</tr>
</tbody></table>
</body>
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_22.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_22.html 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_22.html 2010-01-23
00:10:34 UTC (rev 1425)
@@ -4,20 +4,45 @@
<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="http://localhost:8080/portal"
/>
-<title>EditPortalLayOut</title>
+<title>SNF_PRL_22</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1"
colspan="3">EditPortalLayOut</td></tr>
+<tr><td rowspan="1"
colspan="3">SNF_PRL_22</td></tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/portal/private/classic/</td>
+ <td>/portal/public/classic/</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-EditPortalLayout-</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign in</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>username</td>
+ <td>root</td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>password</td>
+ <td>gtn</td>
+</tr>
+<tr>
<td>clickAndWait</td>
+ <td>//div[@id='UIPortalLoginFormAction']/div/div/div</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
<td>link=Site</td>
<td></td>
</tr>
@@ -121,6 +146,76 @@
<td>link=classic</td>
<td>1,1</td>
</tr>
+<tr>
+ <td>echo</td>
+ <td>--Verify</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>link=Site</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Edit Layout</td>
+ <td>1,1</td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Portal Properties</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Portal Properties</td>
+ <td>1,1</td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>locale</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>French (France)</td>
+ <td></td>
+</tr>
+<tr>
+ <td>select</td>
+ <td>locale</td>
+ <td>label=French (France)</td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']//div[3]//div[@class='MiddleTab']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>publicMode</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']</td>
+ <td>1,1</td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=classic</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=classic</td>
+ <td>1,1</td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign out</td>
+ <td>1,1</td>
+</tr>
</tbody></table>
</body>
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_23.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_23.html 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_23.html 2010-01-23
00:10:34 UTC (rev 1425)
@@ -4,40 +4,45 @@
<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>AddNavigation</title>
+<title>SNF_PRL_23</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1"
colspan="3">AddNavigation</td></tr>
+<tr><td rowspan="1"
colspan="3">SNF_PRL_23</td></tr>
</thead><tbody>
-<!--tr>
- <td>open</td>
- <td>/portal/public/NewPortal/</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Sign in</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>username</td>
- <td>root</td>
-</tr>
-<tr>
- <td>type</td>
- <td>password</td>
- <td>gtn</td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
- <td></td>
-</tr-->
<tr>
<td>open</td>
+ <td>/portal/public/classic</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-AddNavigation-</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign in</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>username</td>
+ <td>root</td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>password</td>
+ <td>gtn</td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
+ <td></td>
+</tr>
+<tr>
+ <td>open</td>
<td>/portal/private/classic/</td>
<td></td>
</tr>
@@ -82,29 +87,41 @@
<td></td>
</tr>
<tr>
+ <td>waitForText</td>
+ <td>name</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
<td>name</td>
- <td>grp_node</td>
+ <td>test_grp_node_23</td>
</tr>
<tr>
<td>type</td>
<td>label</td>
- <td>new_grp_node</td>
+ <td>test_grp_label_23</td>
</tr>
-<!--Choose "Page Selector" tab-->
<tr>
+ <td>echo</td>
+ <td>--Choose "Page Selector" tab</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//div[@class='CenterHorizontalTabs']//div[@class='NormalTab']//div[@class='MiddleTab']</td>
<td></td>
</tr>
-<!--Show form to select existing page-->
<tr>
<td>clickAt</td>
<td>link=Search and Select Page</td>
<td>1,1</td>
</tr>
-<!--Select the first page from pages list-->
<tr>
+ <td>echo</td>
+ <td>--Select the first page from pages list</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//div[@id='UIRepeater']//img[@class='SelectPageIcon']</td>
<td></td>
@@ -119,26 +136,31 @@
<td>link=Save</td>
<td>1,1</td>
</tr>
-<!--tr>
- <td>click</td>
- <td>link=Cancel</td>
- <td></td>
-</tr>
-<tr>
- <td>checkAndWait</td>
- <td>//a[(a)onclick='eXo.portal.logout();']</td>
- <td></td>
-</tr-->
<tr>
<td>waitForElementPresent</td>
- <td>link=new_grp_node</td>
+ <td>link=test_grp_label_23</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
- <td>link=new_grp_node</td>
+ <td>link=test_grp_label_23</td>
<td></td>
</tr>
+<tr>
+ <td>echo</td>
+ <td>--Delete new group navigation</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-----------</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign out</td>
+ <td></td>
+</tr>
</tbody></table>
</body>
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_24.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_24.html 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_24.html 2010-01-23
00:10:34 UTC (rev 1425)
@@ -4,15 +4,45 @@
<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>Edit_DeleteNavigation</title>
+<title>SNF_PRL_24</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1"
colspan="3">Edit_DeleteNavigation</td></tr>
+<tr><td rowspan="1"
colspan="3">SNF_PRL_24</td></tr>
</thead><tbody>
<tr>
<td>open</td>
+ <td>/portal/public/classic</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-EditDeleteNavigation-</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign in</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>username</td>
+ <td>root</td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>password</td>
+ <td>gtn</td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
+ <td></td>
+</tr>
+<tr>
+ <td>open</td>
<td>/portal/private/classic/</td>
<td></td>
</tr>
@@ -22,25 +52,150 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Add Navigation</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
- <td>//a[@class='EditProIcon']</td>
+ <td>link=Add Navigation</td>
+ <td>1,1</td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Cancel</td>
<td></td>
</tr>
<tr>
+ <td>clickAt</td>
+ <td>link=Cancel</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Edit Navigation</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Add Node</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Add Node</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForText</td>
+ <td>name</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
+ <td>name</td>
+ <td>test_grp_node_24</td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>label</td>
+ <td>test_grp_label_24</td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>--Choose "Page Selector" tab</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>//div[@class='CenterHorizontalTabs']//div[@class='NormalTab']//div[@class='MiddleTab']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Search and Select Page</td>
+ <td>1,1</td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>--Select the first page from pages list</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>//div[@id='UIRepeater']//img[@class='SelectPageIcon']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Save</td>
+ <td>1,1</td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Save</td>
+ <td>1,1</td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=test_grp_label_24</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>link=test_grp_label_24</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>--Edit navigation properties</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>link=Group</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>//div[@id='UIGroupNavigationGrid']/table[4]//td[@class='ActionBlock']//a[@class='EditProIcon']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
<td>description</td>
- <td>more and more</td>
+ <td>test_description_edit_24</td>
</tr>
<tr>
+ <td>select</td>
+ <td>priority</td>
+ <td>10</td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Save</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
+ <td>Description: test_description_edit_24</td>
<td></td>
- <td>more and more</td>
</tr>
+<tr>
+ <td>echo</td>
+ <td>--Delete new group navigation</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-----------</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign out</td>
+ <td></td>
+</tr>
</tbody></table>
</body>
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_25.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_25.html 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_25.html 2010-01-23
00:10:34 UTC (rev 1425)
@@ -4,20 +4,45 @@
<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="http://localhost:8080/" />
-<title>EditNavActions_Rightclickmenu</title>
+<title>SNF_PRL_25</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1"
colspan="3">EditNavActions_Rightclickmenu</td></tr>
+<tr><td rowspan="1"
colspan="3">SNF_PRL_25</td></tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/portal/private/classic/</td>
+ <td>/portal/public/classic</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-EditNavActions_Rightclickmenu-</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign in</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>username</td>
+ <td>root</td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>password</td>
+ <td>gtn</td>
+</tr>
+<tr>
<td>clickAndWait</td>
+ <td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
<td>link=Group</td>
<td></td>
</tr>
@@ -49,12 +74,12 @@
<tr>
<td>type</td>
<td>name</td>
- <td>Hihizzz</td>
+ <td>test_grp_node_25</td>
</tr>
<tr>
<td>type</td>
<td>label</td>
- <td>Hohohozzz</td>
+ <td>test_grp_label_25</td>
</tr>
<tr>
<td>clickAt</td>
@@ -98,14 +123,24 @@
</tr>
<tr>
<td>clickAt</td>
- <td>link=Hohohozzz</td>
+ <td>link=test_grp_label_25</td>
<td></td>
</tr>
<tr>
- <td>open</td>
- <td>/portal/private/classic/</td>
+ <td>echo</td>
+ <td>--Edit node's page</td>
<td></td>
</tr>
+<tr>
+ <td>echo</td>
+ <td>---Rightclick on link in group</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign out</td>
+ <td></td>
+</tr>
</tbody></table>
</body>
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_28.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_28.html 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_28.html 2010-01-23
00:10:34 UTC (rev 1425)
@@ -4,45 +4,54 @@
<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>ActionsDashboardpage</title>
+<title>SNF_PRL_28</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1"
colspan="3">ActionsDashboardpage</td></tr>
+<tr><td rowspan="1"
colspan="3">SNF_PRL_28</td></tr>
</thead><tbody>
-<!--tr>
- <td>open</td>
- <td>/portal/private/classic/</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>username</td>
- <td>root</td>
-</tr>
-<tr>
- <td>type</td>
- <td>password</td>
- <td>gtn</td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>//div[@id='UIPortalLoginFormAction']/div/div/div</td>
- <td></td>
-</tr-->
<tr>
<td>open</td>
- <td>/portal/private/classic/</td>
+ <td>/portal/public/classic</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-ActionsDashboardpage-</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
+ <td>link=Sign in</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>username</td>
+ <td>root</td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>password</td>
+ <td>gtn</td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
<td>link=Dashboard</td>
<td>1,1</td>
</tr>
-<!--Add gadgets into dashboard page-->
<tr>
+ <td>echo</td>
+ <td>--Add gadgets into dashboard page</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>link=Add Gadgets</td>
<td></td>
@@ -53,9 +62,14 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--By url</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
<td>//input[@id='url']</td>
- <
td>http://hosting.gmodules.com/ig/gadgets/file/112581010116074801021/t...
+ <
td>http://www.google.com/ig/modules/datetime.xml</td>
</tr>
<tr>
<td>clickAt</td>
@@ -67,11 +81,81 @@
<td>//div[@id='UIAddGadgetPopup']//div[@class='CloseButton']</td>
<td></td>
</tr>
-<!--tr>
- <td>click</td>
- <td>//a[(a)onclick='eXo.portal.logout();']</td>
- <td></td>
-</tr-->
+<tr>
+ <td>verifyElementPresent</td>
+ <td>//div[@class='GadgetTitle']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@class='CloseGadget IconControl' and @title='Delete
Gadget']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>//div[@class='CloseGadget IconControl' and @title='Delete
Gadget']</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>link=Add Gadgets</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Add Gadgets</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>--By drag and drop</td>
+ <td></td>
+</tr>
+<tr>
+ <td>dragAndDropToObject</td>
+ <td>//div[@class='GadgetTitle' and
@title='Calculator']</td>
+ <td>//div[@class='UIDashboardContainer']</td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>//div[@id='UIAddGadgetPopup']//div[@class='CloseButton']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyElementPresent</td>
+ <td>//div[@class='GadgetTitle']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@class='CloseGadget IconControl']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>//div[@title='Delete Gadget']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForConfirmation</td>
+ <td>Are you sure to delete this gadget?</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>Drag your gadgets here.</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign out</td>
+ <td></td>
+</tr>
</tbody></table>
</body>
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_29.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_29.html 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_29.html 2010-01-23
00:10:34 UTC (rev 1425)
@@ -11,12 +11,22 @@
<thead>
<tr><td rowspan="1"
colspan="3">SNF_PRL_29</td></tr>
</thead><tbody>
-<!--tr>
+<tr>
<td>open</td>
- <td>/portal/private/classic/</td>
+ <td>/portal/public/classic</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-AddEditPageEditLayoutDashboard-</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign in</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
<td>username</td>
<td>root</td>
@@ -28,11 +38,20 @@
</tr>
<tr>
<td>clickAndWait</td>
- <td>//div[@id='UIPortalLoginFormAction']/div/div/div</td>
- <td></td><br /></tr--><br
/><tr><br /> <td>click</td><br
/> <td>link=Dashboard</td><br
/> <td></td>
-</tr-->
-<!--ADD PAGE: Add new page in dashboard-->
+ <td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
+ <td></td>
+</tr>
<tr>
+ <td>clickAt</td>
+ <td>link=Dashboard</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>--Add new page in dashboard</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>link=Add New Page</td>
<td></td>
@@ -42,8 +61,12 @@
<td>link=Add New Page</td>
<td></td>
</tr>
-<!--Choose "root" node-->
<tr>
+ <td>echo</td>
+ <td>--Choose "root" node</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>pageName</td>
<td></td>
@@ -51,74 +74,108 @@
<tr>
<td>type</td>
<td>pageName</td>
- <td>dashboardpage12</td>
+ <td>test_dashboardpage_29</td>
</tr>
<tr>
<td>type</td>
<td>pageDisplayName</td>
- <td>dashboard new page12</td>
+ <td>test_dashboardpage_name_29</td>
</tr>
-<!--Click Next to move to step 2-->
<tr>
+ <td>echo</td>
+ <td>--Click Next to move to step 2</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]</td>
<td>1,1</td>
</tr>
-<!--Click Next to move to step 3, keep Empty layout-->
<tr>
+ <td>echo</td>
+ <td>--Click Next to move to step 3, keep Empty layout</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]</td>
<td></td>
</tr>
-<!--Open Editor pane-->
<tr>
+ <td>echo</td>
+ <td>--Open Editor pane</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[(a)onclick='eXo.portal.UIPortal.toggleComposer(this)']</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//div[(a)onclick='eXo.portal.UIPortal.toggleComposer(this)']</td>
<td></td>
</tr>
-<!--Click Save to complete adding page-->
<tr>
- <td>click</td>
- <td>//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]</td>
+ <td>echo</td>
+ <td>--Click Save to complete adding page</td>
<td></td>
</tr>
<tr>
- <td>verifyTextPresent</td>
- <td>dashboard new page</td>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]</td>
<td></td>
</tr>
-<!--EDIT PAGE: Edit page in dashboard-->
<tr>
<td>clickAt</td>
- <td>link=Edit Page</td>
- <td>1,1</td>
+ <td>//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]</td>
+ <td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=View Page properties</td>
- <td>1,1</td>
+ <td>waitForTextPresent</td>
+ <td>test_dashboardpage_name_29</td>
+ <td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>title</td>
+ <td>verifyTextPresent</td>
+ <td>test_dashboardpage_name_29</td>
<td></td>
</tr>
<tr>
- <td>type</td>
- <td>title</td>
- <td>new dashboard</td>
+ <td>echo</td>
+ <td>--Edit page in dashboard</td>
+ <td></td>
</tr>
+<!--tr>
+ <td>fireEvent</td>
+ <td>//div[@class='TabsContainer
ClearFix']//div[@class='SelectedTab']//span, doubleClickAt</td>
+ <td></td>
+</tr>
<tr>
- <td>clickAt</td>
- <td>link=Save</td>
- <td>1,1</td>
+ <td>focus</td>
+ <td>//input[@id='1']</td>
+ <td></td>
</tr>
<tr>
+ <td>type</td>
+ <td>1</td>
+ <td>test_dashboardpage_edit_29</td>
+</tr-->
+<tr>
+ <td>echo</td>
+ <td>--Edit Dashboard layout</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
- <td>//div[@id='UIPageEditor']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']</td>
- <td>1,1</td>
+ <td>link=test_dashboardpage_edit_29</td>
+ <td></td>
</tr>
-<!--EDIT LAYOUT: Edit Dashboard layout-->
<tr>
<td>waitForElementPresent</td>
<td>link=Edit Layout</td>
@@ -150,15 +207,40 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']</td>
+ <td>1,1</td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']</td>
<td>1,1</td>
</tr>
-<!--tr>
- <td>click</td>
- <td>//a[(a)onclick='eXo.portal.logout();']</td>
+<tr>
+ <td>echo</td>
+ <td>--Delete page</td>
<td></td>
-</tr-->
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>//div[@class='SelectedTab']//img[@class='CloseIcon']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForConfirmation</td>
+ <td>Really want to remove this dashboard?</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextNotPresent</td>
+ <td>test_dashboardpage_edit_29</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign out</td>
+ <td></td>
+</tr>
</tbody></table>
</body>
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_30.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_30.html 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_30.html 2010-01-23
00:10:34 UTC (rev 1425)
@@ -4,19 +4,54 @@
<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>SiteManagement</title>
+<title>SNF_PRL_30</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1"
colspan="3">SiteManagement</td></tr>
+<tr><td rowspan="1"
colspan="3">SNF_PRL_30</td></tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/portal/private/classic/</td>
+ <td>/portal/public/classic</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-DashboardSiteManagement-</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign in</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>username</td>
+ <td>root</td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>password</td>
+ <td>gtn</td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Dashboard</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>--Add new page in dashboard</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>link=Add New Page</td>
<td></td>
@@ -24,34 +59,44 @@
<tr>
<td>clickAt</td>
<td>link=Add New Page</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIPageNodeSelector']//div[@class='HomeNode']/a</td>
+ <td>echo</td>
+ <td>--Choose "root" node</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>//div[@id='UIPageNodeSelector']//div[@class='HomeNode']/a</td>
- <td>1,1</td>
+ <td>waitForElementPresent</td>
+ <td>pageName</td>
+ <td></td>
</tr>
<tr>
<td>type</td>
<td>pageName</td>
- <td>test9</td>
+ <td>test_dashboardpage_30</td>
</tr>
<tr>
<td>type</td>
<td>pageDisplayName</td>
- <td>test9</td>
+ <td>test_dashboardpage_name_30</td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Click Next to move to step 2</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]</td>
<td>1,1</td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Click Next to move to step 3, keep Empty layout</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]</td>
<td></td>
@@ -59,54 +104,59 @@
<tr>
<td>clickAt</td>
<td>//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Open Editor pane</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
- <td>link=View Page properties</td>
+ <td>//div[(a)onclick='eXo.portal.UIPortal.toggleComposer(this)']</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>link=View Page properties</td>
- <td>1,1</td>
+ <td>//div[(a)onclick='eXo.portal.UIPortal.toggleComposer(this)']</td>
+ <td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>title</td>
+ <td>echo</td>
+ <td>--Click Save to complete adding page</td>
<td></td>
</tr>
<tr>
- <td>type</td>
- <td>title</td>
- <td>test9_changed</td>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]</td>
+ <td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>link=Save</td>
- <td>1,1</td>
+ <td>//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]</td>
+ <td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>css=a.EdittedSaveButton</td>
+ <td>waitForTextPresent</td>
+ <td>test_dashboardpage_name_30</td>
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>link=Edit Page</td>
+ <td>verifyTextPresent</td>
+ <td>test_dashboardpage_name_30</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Edit page in dashboard</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Edit Page</td>
<td>1,1</td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>link=View Page properties</td>
- <td></td>
-</tr>
-<tr>
<td>clickAt</td>
<td>link=View Page properties</td>
<td>1,1</td>
@@ -117,108 +167,99 @@
<td></td>
</tr>
<tr>
- <td>verifyValue</td>
+ <td>type</td>
<td>title</td>
- <td>test9_changed</td>
+ <td>test_dashboardpage_edit_30</td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
- <td></td>
+ <td>clickAt</td>
+ <td>link=Save</td>
+ <td>1,1</td>
</tr>
<tr>
<td>clickAt</td>
- <td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
+ <td>//div[@id='UIPageEditor']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']</td>
<td>1,1</td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>publicMode</td>
+ <td>link=Page Management</td>
<td></td>
</tr>
+<!--tr> <td>verifyText</td>
<td>test_dashboardpage_edit_30</td> <td></td> </tr-->
<tr>
- <td>clickAt</td>
- <td>publicMode</td>
- <td>1,1</td>
+ <td>echo</td>
+ <td>--Edit Dashboard layout</td>
+ <td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>link=Add Permission</td>
- <td>1,1</td>
+ <td>link=test_dashboardpage_name_30</td>
+ <td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>link=Platform</td>
+ <td>link=Edit Layout</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>link=Platform</td>
+ <td>link=Edit Layout</td>
<td>1,1</td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>link=Administrators</td>
- <td></td>
-</tr>
-<tr>
<td>clickAt</td>
- <td>link=Administrators</td>
+ <td>link=Portal Properties</td>
<td>1,1</td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=exact:*</td>
- <td>1,1</td>
+ <td>select</td>
+ <td>locale</td>
+ <td>label=English</td>
</tr>
<tr>
<td>clickAt</td>
- <td>link=Edit Permission Setting</td>
- <td>1,1</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Select Permission</td>
+ <td>//div[(a)onclick=&quot;eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')"]</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>link=Select Permission</td>
- <td>1,1</td>
+ <td>link=Save</td>
+ <td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>link=Platform</td>
- <td></td>
+ <td>//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']</td>
+ <td>1,1</td>
</tr>
<tr>
<td>clickAt</td>
- <td>link=Platform</td>
+ <td>//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']</td>
<td>1,1</td>
</tr>
<tr>
- <td>clickAt</td>
- <td>//div[@id='PermissionSelector']//div[@class='MembershipSelector']//div[@class='OverflowContainer']/div[3]/a</td>
+ <td>echo</td>
+ <td>--Delete page</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>link=Save</td>
- <td>1,1</td>
+ <td>//div[@class='SelectedTab']//img[@class='CloseIcon']</td>
+ <td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>//div[@id='UIPageEditor']//div[@class='TLPortalComposer']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']</td>
- <td>1,1</td>
+ <td>waitForConfirmation</td>
+ <td>Really want to remove this dashboard?</td>
+ <td></td>
</tr>
<tr>
- <td>verifyTextPresent</td>
- <td>test9</td>
+ <td>verifyTextNotPresent</td>
+ <td>test_dashboardpage_name_30</td>
<td></td>
</tr>
<tr>
- <td>open</td>
- <td>/portal/private/classic/</td>
+ <td>clickAt</td>
+ <td>link=Sign out</td>
<td></td>
</tr>
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_31.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_31.html 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_31.html 2010-01-23
00:10:34 UTC (rev 1425)
@@ -4,20 +4,25 @@
<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>ChangeLanguagePrivateMode</title>
+<title>SNF_PRL_31</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1"
colspan="3">ChangeLanguagePrivateMode</td></tr>
+<tr><td rowspan="1"
colspan="3">SNF_PRL_31</td></tr>
</thead><tbody>
-<!--tr>
+<tr>
<td>open</td>
- <td>/portal/public/classic/</td>
+ <td>/portal/public/classic</td>
<td></td>
</tr>
<tr>
- <td>click</td>
+ <td>echo</td>
+ <td>-ChangeLanguagePrivateMode-</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
<td>link=Sign in</td>
<td></td>
</tr>
@@ -35,11 +40,6 @@
<td>clickAndWait</td>
<td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
<td></td>
-</tr-->
-<tr>
- <td>open</td>
- <td>/portal/private/classic/</td>
- <td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
@@ -52,6 +52,11 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Change to French</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>link=French</td>
<td></td>
@@ -67,6 +72,11 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Verify</td>
+ <td></td>
+</tr>
+<tr>
<td>verifyTextPresent</td>
<td>Accueil</td>
<td></td>
@@ -77,6 +87,11 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Change back to English</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>link=anglais</td>
<td></td>
@@ -96,6 +111,11 @@
<td>Home</td>
<td></td>
</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign out</td>
+ <td></td>
+</tr>
</tbody></table>
</body>
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_32.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_32.html 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_32.html 2010-01-23
00:10:34 UTC (rev 1425)
@@ -4,44 +4,44 @@
<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>ChangeDisplaySkin</title>
+<title>SNF_PRL_32</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1"
colspan="3">ChangeDisplaySkin</td></tr>
+<tr><td rowspan="1"
colspan="3">SNF_PRL_32</td></tr>
</thead><tbody>
-<!--tr>
- <td>open</td>
- <td>/portal/public/classic/</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Sign in</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>username</td>
- <td>root</td>
-</tr>
-<tr>
- <td>type</td>
- <td>password</td>
- <td>gtn</td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
- <td></td>
-</tr-->
<tr>
<td>open</td>
- <td>/portal/private/classic/</td>
+ <td>/portal/public/classic</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-ChangeDisplaySkin-</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign in</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>username</td>
+ <td>root</td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>password</td>
+ <td>gtn</td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>link=Change Skin</td>
<td></td>
@@ -61,11 +61,21 @@
<td>//div[@id='UIMaskWorkspace']//div[@class='ActionButton
LightBlueStyle']</td>
<td></td>
</tr>
-<!--tr>
- <td>clickAndWait</td>
- <td>link=Se déconnecter</td>
- <td></td>
-</tr-->
+<tr>
+ <td>echo</td>
+ <td>--Verify</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>---------</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign out</td>
+ <td></td>
+</tr>
</tbody></table>
</body>
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_34.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_34.html 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_34.html 2010-01-23
00:10:34 UTC (rev 1425)
@@ -4,83 +4,98 @@
<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>LogoPortletAccSetting</title>
+<title>SNF_PRL_34</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1"
colspan="3">LogoPortletAccSetting</td></tr>
+<tr><td rowspan="1"
colspan="3">SNF_PRL_34</td></tr>
</thead><tbody>
-<!--tr>
- <td>open</td>
- <td>/portal/public/classic/</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Sign in</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>username</td>
- <td>root</td>
-</tr>
-<tr>
- <td>type</td>
- <td>password</td>
- <td>gtn</td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
- <td></td>
-</tr-->
<tr>
<td>open</td>
- <td>/portal/private/classic/</td>
+ <td>/portal/public/classic</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Root Root</td>
- <td>1,1</td>
+ <td>echo</td>
+ <td>-LogoPortletAccSetting-</td>
+ <td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>email</td>
+ <td>clickAt</td>
+ <td>link=Sign in</td>
<td></td>
</tr>
<tr>
<td>type</td>
- <td>email</td>
- <td>mytest.exo10(a)gmail.com</td>
+ <td>username</td>
+ <td>root</td>
</tr>
<tr>
<td>type</td>
- <td>lastName</td>
- <td>Root</td>
+ <td>password</td>
+ <td>gtn</td>
</tr>
<tr>
+ <td>clickAndWait</td>
+ <td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
- <td>link=Save</td>
- <td>1,1</td>
+ <td>link=Dashboard</td>
+ <td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Edit Logo Picture</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
- <td>link=OK</td>
- <td>1,1</td>
+ <td>link=Edit Layout</td>
+ <td></td>
</tr>
+<!--tr>
+ <td>clickAt</td>
+ <td>//div[@id='UIPortlet-9eec85a7-2589-418c-b7e2-1eacd3aefada']/div/div[3]/div/div/div[2]/div/div/div/div/div/div[1]/a[2]</td>
+ <td></td>
+</tr>
<tr>
<td>clickAt</td>
+ <td>//form[@id='UILogoEditMode']/div[2]/div/div/table/tbody/tr/td/div/div/div/div</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>logoUrl</td>
+ <td>url to define !!</td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Save</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
<td>link=Close</td>
- <td>1,1</td>
+ <td></td>
</tr>
-<!--tr>
- <td>clickAndWait</td>
- <td>//a[(a)onclick='eXo.portal.logout();']</td>
- <td></td>
+<tr>
+ <td>clickAt</td>
+ <td>//div[@id='UIPortalComposer']/div[1]/div/div/div/a[2]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyElementPresent</td>
+ <td>//div[@id='UILogoPortlet']/a/img[(a)src='/eXoResources/skin/sharedImages/DashboardIcon.png']</td>
+ <td></td>
</tr-->
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign out</td>
+ <td></td>
+</tr>
</tbody></table>
</body>
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_35.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_35.html 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_35.html 2010-01-23
00:10:34 UTC (rev 1425)
@@ -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>CreateEditPageAdvance</title>
+<title>SNF_PRL_35</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1"
colspan="3">CreateEditPageAdvance</td></tr>
+<tr><td rowspan="1"
colspan="3">SNF_PRL_35</td></tr>
</thead><tbody>
<!--tr>
<td>open</td>
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_All.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_All.java 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_All.java 2010-01-23
00:10:34 UTC (rev 1425)
@@ -2,1936 +2,2654 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
+
public class Test_All extends SeleneseTestCase {
-public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
-}
+ public String speed = "1000";
-public void testSNF_PRL_02() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-New Account-");
-System.out.println("--Register new account");
-selenium.click("link=Register");
-selenium.waitForPageToLoad("30000");
-selenium.type("User Name:", "test_user_02");
-selenium.type("Password:", "test_pwd_02");
-selenium.type("Confirm Password:", "test_pwd_02");
-selenium.type("First Name:", "test_name_first_02");
-selenium.type("Last Name:", "test_name_last_02");
-selenium.type("Email Address:", "test_user_02(a)yahoo.com");
-selenium.clickAt("link=Subscribe", "1,1");
-selenium.open("/portal/public/classic/");
-System.out.println("--Verification");
-selenium.clickAt("link=Sign in", "1,1");
-selenium.type("username", "test_user_02");
-selenium.type("password", "test_pwd_02");
-selenium.clickAt("//div[@id='UIPortalLoginFormAction']//a",
"1,1");
-assertTrue(selenium.isTextPresent("test_name_first_02 test_name_last_02"));
-selenium.clickAt("link=Sign out", "1,1");
-System.out.println("--Delete new user");
-selenium.clickAt("link=Sign in", "1,1");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.clickAt("//div[@id='UIPortalLoginFormAction']//a",
"1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Users and groups management"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.click("link=Users and groups management");
-selenium.waitForPageToLoad("30000");
-selenium.clickAt("//div[@class='UIListUsers']//tbody/tr[5]//img[@class='DeleteUserIcon']",
"1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
-if (selenium.getConfirmation().equals("Are you sure you want to delete test_user_02
user?")) {
-break;
-}
-}
-catch (Exception e) {
-}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Sign out", "1,1");
-}
+ public String browser = "firefox";
-public void testSNF_PRL_03() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-Change Language-");
-selenium.clickAt("//a[@class='Language']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Vietnamese"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Vietnamese", "1,1");
-selenium.clickAt("link=Apply", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
-if (!selenium.isElementPresent("link=Apply"))
- break;
- }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//a[@class='Language']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//div[@id='UITabContent']//div[2]/a"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='UITabContent']//div[2]/a",
"1,1");
-selenium.click("link=�p d?ng");
-selenium.waitForPageToLoad("30000");
-assertTrue(selenium.isElementPresent("link=Sign in"));
-}
+ public void setSpeed() {
+ selenium.setSpeed(speed);
+ }
-public void testSNF_PRL_04() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-SignInOut-");
-selenium.click("link=Sign in");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("username"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']//a");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Sign out"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.click("link=Sign out");
-assertTrue(selenium.isElementPresent("link=Sign in"));
-}
+ public void setUp() throws Exception {
+ setUp("http://localhost:8080/portal/", "*" + browser);
+ }
-public void testSNF_PRL_05() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-RememberMyLogin-");
-selenium.clickAt("link=Sign in", "1,1");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.clickAt("rememberme", "1,1");
-selenium.clickAt("//div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a",
"1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Sign out"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Sign out", "1,1");
-selenium.clickAt("link=Sign in", "1,1");
-System.out.println("##\"Sign out\" resets
\"rememberme\"");
-verifyTrue(selenium.isChecked("rememberme"));
-selenium.clickAt("link=Discard", "1,1");
-}
+ public void testSNF_PRL_02() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-New Account-");
+ System.out.println("--Register new account");
+ selenium.click("link=Register");
+ selenium.waitForPageToLoad("30000");
+ selenium.type("User Name:", "test_user_02");
+ selenium.type("Password:", "test_pwd_02");
+ selenium.type("Confirm Password:", "test_pwd_02");
+ selenium.type("First Name:", "test_name_first_02");
+ selenium.type("Last Name:", "test_name_last_02");
+ selenium.type("Email Address:", "test_user_02(a)yahoo.com");
+ selenium.clickAt("link=Subscribe", "1,1");
+ selenium.open("/portal/public/classic/");
+ System.out.println("--Verification");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "test_user_02");
+ selenium.type("password", "test_pwd_02");
+ selenium.clickAt("//div[@id='UIPortalLoginFormAction']//a",
"1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("test_name_first_02 test_name_last_02"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("test_name_first_02
test_name_last_02"));
+ selenium.clickAt("link=Sign out", "1,1");
+ System.out.println("--Delete new user");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.clickAt("//div[@id='UIPortalLoginFormAction']//a",
"1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Users and groups management"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=Users and groups management");
+ selenium.waitForPageToLoad("30000");
+
selenium.clickAt("//div[@class='UIListUsers']//tbody/tr[5]//img[@class='DeleteUserIcon']",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.getConfirmation().equals("Are you sure you want to delete
test_user_02 user?")) {
+ break;
+ }
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Sign out", "1,1");
+ }
-public void testSNF_PRL_06() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-UserManagement-");
-selenium.click("link=Sign in");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Group"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.click("link=Group");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Users and groups management"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.click("link=Users and groups management");
-selenium.waitForPageToLoad("30000");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isTextPresent("User Name"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-assertTrue(selenium.isTextPresent("Last Name"));
-assertTrue(selenium.isTextPresent("First Name"));
-assertTrue(selenium.isTextPresent("Email"));
-System.out.println("--Edit fields");
-selenium.clickAt("//div[@id='UIListUsersGird']//tbody/tr[3]//td[5]//div//img",
"1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("firstName"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.type("firstName", "test_user_06");
-selenium.clickAt("link=Save", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("css=div#UIOrganizationPortlet
div.ManagementTabContent > div.UIPopupWindow div.ActionButton"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("css=div#UIOrganizationPortlet div.ManagementTabContent >
div.UIPopupWindow div.ActionButton", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if
(selenium.isElementPresent("//div[@id='UIUserManagement']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='UIUserManagement']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']",
"1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("user.name.given"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.type("user.name.given", "test_name_given_06");
-selenium.type("user.name.family", "test_name_family_06");
-selenium.type("user.name.nickName", "test_name_nick_06");
-selenium.clickAt("link=Save", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("css=div#UIOrganizationPortlet
div.ManagementTabContent > div.UIPopupWindow div.ActionButton"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-assertTrue(selenium.isTextPresent("The user profile has been updated."));
-selenium.clickAt("css=div#UIOrganizationPortlet div.ManagementTabContent >
div.UIPopupWindow div.ActionButton", "1,1");
-selenium.clickAt("link=Cancel", "1,1");
-System.out.println("--Verify changes");
-assertTrue(selenium.isTextPresent("test_user_06"));
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Sign out"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Sign out", "1,1");
-}
+ public void testSNF_PRL_03() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-Change Language-");
+ selenium.clickAt("//a[@class='Language']", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Vietnamese"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Vietnamese", "1,1");
+ selenium.clickAt("link=Apply", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (!selenium.isElementPresent("link=Apply"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//a[@class='Language']", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if
(selenium.isElementPresent("//div[@id='UITabContent']//div[2]/a"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//div[@id='UITabContent']//div[2]/a",
"1,1");
+ selenium.click("link=�p d?ng");
+ selenium.waitForPageToLoad("30000");
+ assertTrue(selenium.isElementPresent("link=Sign in"));
+ }
-public void testSNF_PRL_07() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-GroupManagement-");
-selenium.click("link=Sign in");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-System.out.println("--Select \"Users and groups management\" in
menu");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Group"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Group", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Users and groups management"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.click("link=Users and groups management");
-selenium.waitForPageToLoad("30000");
-selenium.clickAt("//div[@id='UIOrganizationPortlet']//div[@class='ManagementIconContainer']/a[@class='GroupButton']",
"1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if
(selenium.isElementPresent("//div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[2]/div/div/div/div[3]/div/a"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-System.out.println("--Select \"Organization\" group from group
tree");
-selenium.clickAt("//div[@id='UIOrganizationPortlet']//div[3]//div[@class='ExpandIcon']/a",
"1,1");
-System.out.println("--Select \"Management group\" from group tree");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isTextPresent("Management"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='UIOrganizationPortlet']//div[3]//div[@class='ExpandIcon']/a",
"1,1");
-System.out.println("--Click Add new group icon");
-selenium.clickAt("//div[@id='UIOrganizationPortlet']//div[@class='TitleBar']/a[@class='TreeActionIcon
AddGroupIcon']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("groupName"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.type("groupName", "test_group_name_07");
-selenium.type("label", "test_group_label_07");
-selenium.type("description", "test_group_description_07");
-System.out.println("--Click \"Save\" to complete adding new group");
-selenium.clickAt("//form[@id='UIGroupForm']//div[@class='ActionButton
LightBlueStyle']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isTextPresent("test_group_label_07"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-System.out.println("--Click \"Select User\" icon");
-selenium.clickAt("//form[@id='UIGroupMembershipForm']//div[@class='HorizontalLayout']//table[@class='UIFormGrid']//td[@class='FieldComponent']/a",
"1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if
(selenium.isElementPresent("//form[@id='UIUserSelector']/div[2]/div[2]/table/tbody/tr/td/a[1]/div/div/div"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("demo", "1,1");
-selenium.clickAt("john", "1,1");
-selenium.clickAt("mary", "1,1");
-selenium.clickAt("root", "1,1");
-System.out.println("--Click \"Add\" button");
-selenium.clickAt("//form[@id='UIUserSelector']//div[@class='UIAction']//a[@class='ActionButton
LightBlueStyle']", "1,1");
-selenium.clickAt("link=Save", "1,1");
-assertTrue(selenium.isTextPresent("demo"));
-assertTrue(selenium.isTextPresent("john"));
-assertTrue(selenium.isTextPresent("mary"));
-assertTrue(selenium.isTextPresent("root"));
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Sign out"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Sign out", "1,1");
-}
+ public void testSNF_PRL_04() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-SignInOut-");
+ selenium.click("link=Sign in");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("username"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']//a");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Sign out"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=Sign out");
+ assertTrue(selenium.isElementPresent("link=Sign in"));
+ }
-public void testSNF_PRL_08() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-MembershipManagement-");
-selenium.click("link=Sign in");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-System.out.println("--Select \"Users and groups management\" in
menu");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Group"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.click("link=Group");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Users and groups management"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.click("link=Users and groups management");
-selenium.waitForPageToLoad("30000");
-System.out.println("--Choose \"Memebership Management\" tab");
-selenium.clickAt("//div[@id='UIOrganizationPortlet']//div[@class='ManagementIconContainer']/a[@class='MembershipButton']",
"1,1");
-System.out.println("--Create new membership");
-selenium.type("name", "test_name_08");
-selenium.type("description", "test_description_08");
-selenium.clickAt("link=Save", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isTextPresent("test_name_08"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-assertTrue(selenium.isTextPresent("test_name_08"));
-System.out.println("--Edit membership");
-selenium.clickAt("//table[@class='UIGrid']//tbody/tr[2]/td[5]//img[@class='EditMembershipIcon']",
"1,1");
-selenium.type("description", "test_description_edit_08");
-selenium.clickAt("link=Save", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isTextPresent("test_description_edit_08"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-assertTrue(selenium.isTextPresent("test_description_edit_08"));
-System.out.println("--Delete membership");
-selenium.clickAt("//table[@class='UIGrid']//tbody/tr[2]/td[5]//img[@class='DeleteMembershipIcon']",
"1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
-if (selenium.getConfirmation().equals("Are you sure you want to delete this
membership?")) {
-break;
-}
-}
-catch (Exception e) {
-}
-Thread.sleep(1000);
-}
-selenium.click("link=classic");
-selenium.waitForPageToLoad("30000");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Sign out"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.click("link=Sign out");
-}
+ public void testSNF_PRL_07() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-GroupManagement-");
+ selenium.click("link=Sign in");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ System.out.println("--Select \"Users and groups management\" in
menu");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Group"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Group", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Users and groups management"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=Users and groups management");
+ selenium.waitForPageToLoad("30000");
+
selenium.clickAt("//div[@id='UIOrganizationPortlet']//div[@class='ManagementIconContainer']/a[@class='GroupButton']",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if
(selenium.isElementPresent("//div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[2]/div/div/div/div[3]/div/a"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ System.out.println("--Select \"Organization\" group from group
tree");
+
selenium.clickAt("//div[@id='UIOrganizationPortlet']//div[3]//div[@class='ExpandIcon']/a",
+ "1,1");
+ System.out.println("--Select \"Management group\" from group
tree");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("Management"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+
selenium.clickAt("//div[@id='UIOrganizationPortlet']//div[3]//div[@class='ExpandIcon']/a",
+ "1,1");
+ System.out.println("--Click Add new group icon");
+
selenium.clickAt("//div[@id='UIOrganizationPortlet']//div[@class='TitleBar']/a[@class='TreeActionIcon
AddGroupIcon']",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("groupName"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("groupName", "test_group_name_07");
+ selenium.type("label", "test_group_label_07");
+ selenium.type("description", "test_group_description_07");
+ System.out.println("--Click \"Save\" to complete adding new
group");
+
selenium.clickAt("//form[@id='UIGroupForm']//div[@class='ActionButton
LightBlueStyle']", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("test_group_label_07"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ System.out.println("--Click \"Select User\" icon");
+
selenium.clickAt("//form[@id='UIGroupMembershipForm']//div[@class='HorizontalLayout']//table[@class='UIFormGrid']//td[@class='FieldComponent']/a",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if
(selenium.isElementPresent("//form[@id='UIUserSelector']/div[2]/div[2]/table/tbody/tr/td/a[1]/div/div/div"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("demo", "1,1");
+ selenium.clickAt("john", "1,1");
+ selenium.clickAt("mary", "1,1");
+ selenium.clickAt("root", "1,1");
+ System.out.println("--Click \"Add\" button");
+
selenium.clickAt("//form[@id='UIUserSelector']//div[@class='UIAction']//a[@class='ActionButton
LightBlueStyle']",
+ "1,1");
+ selenium.clickAt("link=Save", "1,1");
+ assertTrue(selenium.isTextPresent("demo"));
+ assertTrue(selenium.isTextPresent("john"));
+ assertTrue(selenium.isTextPresent("mary"));
+ assertTrue(selenium.isTextPresent("root"));
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Sign out"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Sign out", "1,1");
+ }
-public void testSNF_PRL_09() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-AutoImport-");
-selenium.clickAt("link=Sign in", "1,1");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-System.out.println("--Select \"Application Registry\"");
-selenium.clickAt("link=Application Registry", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isTextPresent("Import Applications"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-System.out.println("--Auto Import");
-assertFalse(selenium.isTextPresent("WSRP Admin Portlet"));
-selenium.clickAt("//div[@id='UIApplicationOrganizer']//div[@class='UIControlbar']//div[@class='IconControl
ImportIcon']", "1,1");
-String autoimport = selenium.getConfirmation();
-assertTrue(selenium.isTextPresent("WSRP Admin Portlet"));
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Sign out"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Sign out", "1,1");
-}
+ public void testSNF_PRL_08() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-MembershipManagement-");
+ selenium.click("link=Sign in");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ System.out.println("--Select \"Users and groups management\" in
menu");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Group"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=Group");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Users and groups management"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=Users and groups management");
+ selenium.waitForPageToLoad("30000");
+ System.out.println("--Choose \"Memebership Management\" tab");
+
selenium.clickAt("//div[@id='UIOrganizationPortlet']//div[@class='ManagementIconContainer']/a[@class='MembershipButton']",
+ "1,1");
+ System.out.println("--Create new membership");
+ selenium.type("name", "test_name_08");
+ selenium.type("description", "test_description_08");
+ selenium.clickAt("link=Save", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("test_name_08"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("test_name_08"));
+ System.out.println("--Edit membership");
+
selenium.clickAt("//table[@class='UIGrid']//tbody/tr[2]/td[5]//img[@class='EditMembershipIcon']",
+ "1,1");
+ selenium.type("description", "test_description_edit_08");
+ selenium.clickAt("link=Save", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("test_description_edit_08"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("test_description_edit_08"));
+ System.out.println("--Delete membership");
+
selenium.clickAt("//table[@class='UIGrid']//tbody/tr[2]/td[5]//img[@class='DeleteMembershipIcon']",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.getConfirmation().equals("Are you sure you want to delete this
membership?")) {
+ break;
+ }
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=classic");
+ selenium.waitForPageToLoad("30000");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Sign out"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=Sign out");
+ }
-public void testSNF_PRL_10() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-CategoryManagement-");
-selenium.click("link=Sign in");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-System.out.println("--Select \"Application Registry\"");
-selenium.clickAt("link=Application Registry", "1,1");
-System.out.println("--Add Category");
-selenium.clickAt("//div[@id='UIApplicationOrganizer']//div[@class='UIControlbar']/div[1]",
"1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("name"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.type("name", "test_name_category_10");
-selenium.type("displayName", "test_displayname_category_10");
-selenium.type("description", "test_description_category_10");
-System.out.println("--Select permissions");
-selenium.click("//div[@class='WorkingArea']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Add Permission"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Add Permission", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Platform"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Platform", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=manager"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=manager", "1,1");
-selenium.clickAt("link=Save", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if
(selenium.isElementPresent("//div[@id='UIApplicationOrganizer']//a[@class='ControlIcon
EditIcon']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-assertTrue(selenium.isTextPresent("test_displayname_category_10"));
-System.out.println("--Edit Category");
-selenium.clickAt("//div[@id='UIApplicationOrganizer']//a[@class='ControlIcon
EditIcon']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("displayName"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.type("displayName", "test_displayname_edit_10");
-selenium.clickAt("link=Save", "1,1");
-assertTrue(selenium.isTextPresent("test_displayname_edit_10"));
-System.out.println("--Delete Category");
-selenium.clickAt("//div[@class='SelectedTab']//a[@class='ControlIcon
DeleteIcon']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
-if (selenium.getConfirmation().equals("Are you sure to delete this category and all
applications on it?")) {
-break;
-}
-}
-catch (Exception e) {
-}
-Thread.sleep(1000);
-}
-assertFalse(selenium.isTextPresent("test_displayname_edit_10"));
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Sign out"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.click("link=Sign out");
-}
+ public void testSNF_PRL_09() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-AutoImport-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ System.out.println("--Select \"Application Registry\"");
+ selenium.clickAt("link=Application Registry", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("Import Applications"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ System.out.println("--Auto Import");
+ assertFalse(selenium.isTextPresent("WSRP Admin Portlet"));
+
selenium.clickAt("//div[@id='UIApplicationOrganizer']//div[@class='UIControlbar']//div[@class='IconControl
ImportIcon']",
+ "1,1");
+ String autoimport = selenium.getConfirmation();
+ assertTrue(selenium.isTextPresent("WSRP Admin Portlet"));
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Sign out"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Sign out", "1,1");
+ }
-public void testSNF_PRL_11() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-AddApplicationToCategory-");
-selenium.clickAt("link=Sign in", "1,1");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-selenium.clickAt("link=Application Registry", "1,1");
-System.out.println("--Add application to Administration Category");
-selenium.clickAt("//div[@class='ListContent']//div[@class='SelectedTab']//a[@class='ControlIcon
CreateNewIcon']", "1,1");
-System.out.println("--Select first application in list");
-selenium.clickAt("//input[@name='application' and @value='1']",
"1,1");
-selenium.type("displayName", "test_displayname_11");
-selenium.clickAt("css=form#UIAddApplicationForm div.UIAction div.ActionButton",
"1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//a[@class='TabLabel' and
@title='Administration']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-System.out.println("--Edit category permissions");
-selenium.clickAt("//a[@class='TabLabel' and
@title='Administration']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Add Permission"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Add Permission", "1,1");
-selenium.clickAt("//div[@id='ListPermissionSelector']//a[@title='Organization']",
"1,1");
-selenium.clickAt("link=manager", "1,1");
-assertTrue(selenium.isTextPresent("test_displayname_11"));
-System.out.println("--Delete application");
-selenium.clickAt("//div[@class='ListContent']//div[@class='UIVTabContent']/div[8]//a[@class='ControlIcon
DeletePortalIcon']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
-if (selenium.getConfirmation().equals("Are you sure to delete this
application?")) {
-break;
-}
-}
-catch (Exception e) {
-}
-Thread.sleep(1000);
-}
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Sign out"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Sign out", "1,1");
-}
+ public void testSNF_PRL_10() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-CategoryManagement-");
+ selenium.click("link=Sign in");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ System.out.println("--Select \"Application Registry\"");
+ selenium.clickAt("link=Application Registry", "1,1");
+ System.out.println("--Add Category");
+
selenium.clickAt("//div[@id='UIApplicationOrganizer']//div[@class='UIControlbar']/div[1]",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("name"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("name", "test_name_category_10");
+ selenium.type("displayName", "test_displayname_category_10");
+ selenium.type("description", "test_description_category_10");
+ System.out.println("--Select permissions");
+
selenium.click("//div[@class='WorkingArea']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add Permission"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add Permission", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Platform"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Platform", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=manager"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=manager", "1,1");
+ selenium.clickAt("link=Save", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if
(selenium.isElementPresent("//div[@id='UIApplicationOrganizer']//a[@class='ControlIcon
EditIcon']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("test_displayname_category_10"));
+ System.out.println("--Edit Category");
+
selenium.clickAt("//div[@id='UIApplicationOrganizer']//a[@class='ControlIcon
EditIcon']", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("displayName"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("displayName", "test_displayname_edit_10");
+ selenium.clickAt("link=Save", "1,1");
+ assertTrue(selenium.isTextPresent("test_displayname_edit_10"));
+ System.out.println("--Delete Category");
+ selenium.clickAt("//div[@class='SelectedTab']//a[@class='ControlIcon
DeleteIcon']", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.getConfirmation()
+ .equals("Are you sure to delete this category and all
applications on it?")) {
+ break;
+ }
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertFalse(selenium.isTextPresent("test_displayname_edit_10"));
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Sign out"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=Sign out");
+ }
-public void testSNF_PRL_12() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-ViewAllPortlets-");
-selenium.click("link=Sign in");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-selenium.clickAt("link=Application Registry", "1,1");
-System.out.println("--Verify details of Administration>>Application
Registry");
-selenium.clickAt("//div[@class='UIVerticalSlideTabs']//div[@class='UIVTabContent']//div[1]//a",
"1,1");
-assertTrue(selenium.isTextPresent("ApplicationRegistryPortlet"));
-System.out.println("--Verify details of Administration>>Organisation
Management");
-selenium.clickAt("//div[@class='UIVerticalSlideTabs']//div[@class='UIVTabContent']//div[2]//a",
"1,1");
-assertTrue(selenium.isTextPresent("OrganizationPortlet"));
-System.out.println("--Verify details of
Administration>>NewAccount");
-selenium.clickAt("//div[@class='UIVerticalSlideTabs']//div[@class='UIVTabContent']//div[3]//a",
"1,1");
-assertTrue(selenium.isTextPresent("AccountPortlet"));
-System.out.println("--Verify details of Dashboard>>Dashboard
Portlet");
-selenium.clickAt("//div[@class='UIVerticalSlideTabs']/div[2]//a",
"1,1");
-selenium.clickAt("//div[@class='UIVerticalSlideTabs']//div[@class='UIVTabContent']//div[1]//a",
"1,1");
-assertTrue(selenium.isTextPresent("DashboardPortlet"));
-System.out.println("--Verify details of Dashboard>>Gadget Wrapper
Portlet");
-selenium.clickAt("//div[@class='UIVerticalSlideTabs']//div[@class='UIVTabContent']//div[2]//a",
"1,1");
-assertTrue(selenium.isTextPresent("GadgetPortlet"));
-System.out.println("--It is possible to verify all portlets.......");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Sign out"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.click("link=Sign out");
-}
+ public void testSNF_PRL_12() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-ViewAllPortlets-");
+ selenium.click("link=Sign in");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("link=Application Registry", "1,1");
+ System.out.println("--Verify details of Administration>>Application
Registry");
+
selenium.clickAt("//div[@class='UIVerticalSlideTabs']//div[@class='UIVTabContent']//div[1]//a",
+ "1,1");
+ assertTrue(selenium.isTextPresent("ApplicationRegistryPortlet"));
+ System.out.println("--Verify details of Administration>>Organisation
Management");
+
selenium.clickAt("//div[@class='UIVerticalSlideTabs']//div[@class='UIVTabContent']//div[2]//a",
+ "1,1");
+ assertTrue(selenium.isTextPresent("OrganizationPortlet"));
+ System.out.println("--Verify details of
Administration>>NewAccount");
+
selenium.clickAt("//div[@class='UIVerticalSlideTabs']//div[@class='UIVTabContent']//div[3]//a",
+ "1,1");
+ assertTrue(selenium.isTextPresent("AccountPortlet"));
+ System.out.println("--Verify details of Dashboard>>Dashboard
Portlet");
+ selenium.clickAt("//div[@class='UIVerticalSlideTabs']/div[2]//a",
"1,1");
+
selenium.clickAt("//div[@class='UIVerticalSlideTabs']//div[@class='UIVTabContent']//div[1]//a",
+ "1,1");
+ assertTrue(selenium.isTextPresent("DashboardPortlet"));
+ System.out.println("--Verify details of Dashboard>>Gadget Wrapper
Portlet");
+
selenium.clickAt("//div[@class='UIVerticalSlideTabs']//div[@class='UIVTabContent']//div[2]//a",
+ "1,1");
+ assertTrue(selenium.isTextPresent("GadgetPortlet"));
+ System.out.println("--It is possible to verify all portlets.......");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Sign out"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=Sign out");
+ }
-public void testSNF_PRL_13() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-AddGadget-");
-selenium.clickAt("link=Sign in", "1,1");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-selenium.clickAt("link=Application Registry", "1,1");
-selenium.clickAt("link=Gadget", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//div[@class='UIControlbar']/div[1]"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@class='UIControlbar']/div[1]",
"1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("url"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.type("url",
"http://www.google.com/ig/modules/datetime.xml");
-selenium.clickAt("link=Add", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isTextPresent("Gadget Details"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='UIGadgetInfo']//div[@class='UIBreadcumb']/div[@class='DownLoadIcon
ControlIcon']", "1,1");
-System.out.println("https://jira.jboss.org/jira/browse/GTNPORTAL-439");
-assertTrue(selenium.isTextPresent("Gadget Details"));
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Sign out"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Sign out", "1,1");
-}
+ public void testSNF_PRL_13() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-AddGadget-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("link=Application Registry", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Gadget"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Gadget", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if
(selenium.isElementPresent("//div[@class='UIControlbar']/div[1]"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//div[@class='UIControlbar']/div[1]",
"1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("url"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("url",
"http://www.google.com/ig/modules/datetime.xml");
+ selenium.clickAt("link=Add", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("Gadget Details"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+
selenium.clickAt("//div[@id='UIGadgetInfo']//div[@class='UIBreadcumb']/div[@class='DownLoadIcon
ControlIcon']",
+ "1,1");
+
System.out.println("https://jira.jboss.org/jira/browse/GTNPORTAL-439...;
+ assertTrue(selenium.isTextPresent("Gadget Details"));
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Sign out"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Sign out", "1,1");
+ }
-public void testSNF_PRL_14() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-ImportApplicationIcon-");
-selenium.clickAt("link=Sign in", "1,1");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-selenium.clickAt("link=Application Registry", "1,1");
-System.out.println("---Have no idea on how to do this");
-selenium.clickAt("link=Edit Page", "1,1");
-selenium.mouseOver("//div[@class='UIComponentBlock']");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Sign out"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Sign out", "1,1");
-}
+ public void testSNF_PRL_14() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-ImportApplicationIcon-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("link=Application Registry", "1,1");
+ System.out.println("---Have no idea on how to do this");
+ selenium.clickAt("link=Edit Page", "1,1");
+ selenium.mouseOver("//div[@class='UIComponentBlock']");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Sign out"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Sign out", "1,1");
+ }
-public void testSNF_PRL_15() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-SiteMapAndLinkToPage-");
-selenium.clickAt("link=Sign in", "1,1");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-selenium.open("/portal/private/classic/sitemap");
-System.out.println("--Expand the first submenu");
-selenium.clickAt("css=div#UISiteMap div.ExpandIcon", "1,1");
-System.out.println("--Select the first link of submenu");
-selenium.clickAt("css=div#UISiteMap div.ChildrenContainer a",
"1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
-if (!selenium.isElementPresent("css=div#UISiteMap div.ChildrenContainer a"))
- break;
- }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Sign out", "1,1");
-}
+ public void testSNF_PRL_15() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-SiteMapAndLinkToPage-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ selenium.open("/portal/private/classic/sitemap");
+ System.out.println("--Expand the first submenu");
+ selenium.clickAt("css=div#UISiteMap div.ExpandIcon", "1,1");
+ System.out.println("--Select the first link of submenu");
+ selenium.clickAt("css=div#UISiteMap div.ChildrenContainer a",
"1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (!selenium.isElementPresent("css=div#UISiteMap div.ChildrenContainer
a"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Sign out", "1,1");
+ }
-public void testSNF_PRL_16() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-ExpandAll-");
-selenium.clickAt("link=Sign in", "1,1");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-selenium.open("/portal/private/classic/sitemap");
-System.out.println("--Expand All");
-selenium.clickAt("//div[@id='UISiteMap']//div[@class='ClearFix']/div[2]",
"1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isTextPresent("Blog"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-assertTrue(selenium.isTextPresent("New Staff"));
-assertTrue(selenium.isTextPresent("Application Registry"));
-assertFalse(selenium.isElementPresent("//div[@class='ExpandIcon
FloatLeft']"));
-selenium.clickAt("link=Sign out", "1,1");
-}
+ public void testSNF_PRL_16() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-ExpandAll-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ selenium.open("/portal/private/classic/sitemap");
+ System.out.println("--Expand All");
+
selenium.clickAt("//div[@id='UISiteMap']//div[@class='ClearFix']/div[2]",
"1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("Blog"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("New Staff"));
+ assertTrue(selenium.isTextPresent("Application Registry"));
+ assertFalse(selenium.isElementPresent("//div[@class='ExpandIcon
FloatLeft']"));
+ selenium.clickAt("link=Sign out", "1,1");
+ }
-public void testSNF_PRL_17() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-CollapseAll-");
-selenium.click("link=Sign in");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-selenium.open("/portal/private/classic/sitemap");
-System.out.println("--Expand SiteMap tree");
-selenium.clickAt("//div[@id='UISiteMap']//div[@class='ClearFix']/div[2]",
"1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isTextPresent("Blog"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-assertTrue(selenium.isTextPresent("New Staff"));
-assertTrue(selenium.isTextPresent("Application Registry"));
-System.out.println("--Collapse SiteMap Tree");
-selenium.clickAt("//div[@id='UISiteMap']//div[@class='ClearFix']/div[1]",
"1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
-if (!selenium.isElementPresent("Blog"))
- break;
- }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-assertFalse(selenium.isElementPresent("//div[@class='CollapseIcon
FloatLeft']"));
-selenium.click("link=Sign out");
-}
+ public void testSNF_PRL_17() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-CollapseAll-");
+ selenium.click("link=Sign in");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ selenium.open("/portal/private/classic/sitemap");
+ System.out.println("--Expand SiteMap tree");
+
selenium.clickAt("//div[@id='UISiteMap']//div[@class='ClearFix']/div[2]",
"1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("Blog"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("New Staff"));
+ assertTrue(selenium.isTextPresent("Application Registry"));
+ System.out.println("--Collapse SiteMap Tree");
+
selenium.clickAt("//div[@id='UISiteMap']//div[@class='ClearFix']/div[1]",
"1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (!selenium.isElementPresent("Blog"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertFalse(selenium.isElementPresent("//div[@class='CollapseIcon
FloatLeft']"));
+ selenium.click("link=Sign out");
+ }
-public void testSNF_PRL_18() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-CreateNewPortal-");
-selenium.clickAt("link=Sign in", "1,1");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-selenium.open("/portal/private/classic/portalnavigation");
-System.out.println("--Add new portal");
-selenium.clickAt("//div[@id='UISiteManagement']//div[@class='UIAction']//div[@class='ActionButton
BlueButton']", "1,1");
-System.out.println("--Select portal settings");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if
(selenium.isElementPresent("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']",
"1,1");
-selenium.type("name", "test_portal_18");
-System.out.println("--Select permission settings");
-selenium.clickAt("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[4]//div[@class='MiddleTab']",
"1,1");
-selenium.clickAt("publicMode", "1,1");
-selenium.clickAt("link=Edit Permission Setting", "1,1");
-selenium.clickAt("link=Select Permission", "1,1");
-selenium.clickAt("link=Platform", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if
(selenium.isElementPresent("//div[@id='PermissionSelector']//a[@title='Administrators']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='PermissionSelector']//a[@title='Administrators']",
"1,1");
-selenium.clickAt("//div[@id='PermissionSelector']//a[@title='manager']",
"1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
-if (!selenium.isElementPresent("Permission Selector"))
- break;
- }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//form[@id='UIPortalForm']//div[@class='UIAction']//div[@class='ActionButton
LightBlueStyle']//div[@class='ButtonMiddle']/a", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isTextPresent("test_portal_18"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-System.out.println("--Verify portal creation");
-assertTrue(selenium.isElementPresent("link=test_portal_18"));
-System.out.println("--Delete new portal");
-selenium.clickAt("link=Site", "1,1");
-assertTrue(selenium.isTextPresent("Portal Navigation"));
-selenium.clickAt("//div[@id='UISiteManagement']/table[2]//a[@class='DeleteIcon']",
"1,1");
-assertFalse(selenium.isTextPresent("test_portal_18"));
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
-if (selenium.getConfirmation().equals("Are you sure you want to delete this
portal?")) {
-break;
-}
-}
-catch (Exception e) {
-}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Sign out", "1,1");
-}
+ public void testSNF_PRL_18() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-CreateNewPortal-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ selenium.open("/portal/private/classic/portalnavigation");
+ System.out.println("--Add new portal");
+
selenium.clickAt("//div[@id='UISiteManagement']//div[@class='UIAction']//div[@class='ActionButton
BlueButton']",
+ "1,1");
+ System.out.println("--Select portal settings");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if
(selenium.isElementPresent("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+
selenium.clickAt("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']",
+ "1,1");
+ selenium.type("name", "test_portal_18");
+ System.out.println("--Select permission settings");
+
selenium.clickAt("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[4]//div[@class='MiddleTab']",
+ "1,1");
+ selenium.clickAt("publicMode", "1,1");
+ selenium.clickAt("link=Edit Permission Setting", "1,1");
+ selenium.clickAt("link=Select Permission", "1,1");
+ selenium.clickAt("link=Platform", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if
(selenium.isElementPresent("//div[@id='PermissionSelector']//a[@title='Administrators']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+
selenium.clickAt("//div[@id='PermissionSelector']//a[@title='Administrators']",
"1,1");
+
selenium.clickAt("//div[@id='PermissionSelector']//a[@title='manager']",
"1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (!selenium.isElementPresent("Permission Selector"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+
selenium.clickAt("//form[@id='UIPortalForm']//div[@class='UIAction']//div[@class='ActionButton
LightBlueStyle']//div[@class='ButtonMiddle']/a",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("test_portal_18"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ System.out.println("--Verify portal creation");
+ assertTrue(selenium.isElementPresent("link=test_portal_18"));
+ System.out.println("--Delete new portal");
+ selenium.clickAt("link=Site", "1,1");
+ assertTrue(selenium.isTextPresent("Portal Navigation"));
+
selenium.clickAt("//div[@id='UISiteManagement']/table[2]//a[@class='DeleteIcon']",
"1,1");
+ assertFalse(selenium.isTextPresent("test_portal_18"));
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.getConfirmation().equals("Are you sure you want to delete this
portal?")) {
+ break;
+ }
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Sign out", "1,1");
+ }
-public void testSNF_PRL_19() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-EditPortalNavigation-");
-selenium.clickAt("link=Sign in", "1,1");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-selenium.click("link=Site");
-selenium.waitForPageToLoad("30000");
-System.out.println("--Edit Portal layout, currently do not change anything");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Edit Layout"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Edit Layout", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if
(selenium.isElementPresent("css=div#Administration/ApplicationRegistryPortlet"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.dragAndDropToObject("css=div#Administration/ApplicationRegistryPortlet","css=div#Administration/ApplicationRegistryPortlet");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if
(selenium.isElementPresent("//div[@id='UIPortalComposer']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='UIPortalComposer']//div[@class='OverflowContainer']/a[@class='CloseButton']",
"1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isTextPresent("classic"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-System.out.println("--Edit nav: add node, actions ...");
-selenium.clickAt("link=Edit Navigation", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Add Node"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Add Node", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("name"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.type("name", "test_nodename_19");
-selenium.type("label", "test_node_label_19");
-System.out.println("--Select Page");
-selenium.clickAt("css=div#UISiteManagement > div.UIPopupWindow
div.TabsContainer div.NormalTab div.MiddleTab", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Search and Select Page"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Search and Select Page", "1,1");
-System.out.println("--Select the first page");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if
(selenium.isElementPresent("//div[@id='UIRepeater']//table//tbody/tr/td[5]/div[@class='ActionContainer']/img"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.click("//div[@id='UIRepeater']//table//tbody/tr/td[5]/div[@class='ActionContainer']/img");
-System.out.println("--Save");
-selenium.clickAt("link=Save", "1,1");
-selenium.clickAt("link=Save", "1,1");
-System.out.println("--Edit Portal Properties");
-selenium.clickAt("link=Edit Portal's Properties", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if
(selenium.isElementPresent("//div[@id='UIMaskWorkspace']//div[3]//div[@class='MiddleTab']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='UIMaskWorkspace']//div[3]//div[@class='MiddleTab']",
"1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Edit Permission Setting"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Edit Permission Setting", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Select Permission"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Select Permission", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Platform"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Platform", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Administrators"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Administrators", "1,1");
-selenium.clickAt("//div[@id='PermissionSelector']//div[2]/a",
"1,1");
-selenium.clickAt("//form[@id='UIPortalForm']//div[@class='UIAction']//div[@class='ActionButton
LightBlueStyle']", "1,1");
-selenium.open("/portal/private/classic/");
-System.out.println("--Select new node");
-selenium.clickAt("link=test_node_label_19", "1,1");
-assertTrue(selenium.isElementPresent("//div[@class='SelectedNavigationTab']//a"));
-selenium.clickAt("link=Site", "1,1");
-selenium.clickAt("link=Edit Navigation", "1,1");
-selenium.click("link=Delete Node");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
-if (selenium.getConfirmation().equals("Are you sure you want to delete this
node?")) {
-break;
-}
-}
-catch (Exception e) {
-}
-Thread.sleep(1000);
-}
-selenium.click("link=Save");
-System.out.println("--Verify Deletion");
-selenium.click("link=Home");
-assertFalse(selenium.isTextPresent("test_node_label_19"));
-selenium.clickAt("link=Sign out", "1,1");
-}
+ public void testSNF_PRL_20() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-DeletePortal-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("link=Site", "1,1");
+ System.out.println("--Add new portal");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add New Portal"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add New Portal", "1,1");
+
selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'PortalSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PortalSetting')\"]",
+ "1,1");
+ selenium.type("name", "test_portal_name_20");
+
selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')\"]",
+ "1,1");
+
selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'PermissionSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PermissionSetting')\"]",
+ "1,1");
+ selenium.clickAt("publicMode", "1,1");
+ selenium.clickAt("link=Edit Permission Setting", "1,1");
+ selenium.clickAt("link=Select Permission", "1,1");
+ selenium.clickAt("link=Platform", "1,1");
+ selenium.clickAt("link=Platform", "1,1");
+ selenium.clickAt("link=exact:*", "1,1");
+ selenium.clickAt("link=Save", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if
(selenium.isElementPresent("//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("test_portal_name_20"));
+ System.out.println("--Delete portal");
+
selenium.click("//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]");
+ selenium.waitForPageToLoad("30000");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.getConfirmation().equals("Are you sure you want to delete this
portal?")) {
+ break;
+ }
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertFalse(selenium.isTextPresent("test_portal_name_20"));
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Sign out"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Sign out", "1,1");
+ }
-public void testSNF_PRL_20() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-DeletePortal-");
-selenium.clickAt("link=Sign in", "1,1");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-selenium.clickAt("link=Site", "1,1");
-System.out.println("--Add new portal");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Add New Portal"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Add New Portal", "1,1");
-selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'PortalSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PortalSetting')\"]",
"1,1");
-selenium.type("name", "test_portal_name_20");
-selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')\"]",
"1,1");
-selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'PermissionSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PermissionSetting')\"]",
"1,1");
-selenium.clickAt("publicMode", "1,1");
-selenium.clickAt("link=Edit Permission Setting", "1,1");
-selenium.clickAt("link=Select Permission", "1,1");
-selenium.clickAt("link=Platform", "1,1");
-selenium.clickAt("link=Platform", "1,1");
-selenium.clickAt("link=exact:*", "1,1");
-selenium.clickAt("link=Save", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if
(selenium.isElementPresent("//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-assertTrue(selenium.isTextPresent("test_portal_name_20"));
-System.out.println("--Delete portal");
-selenium.click("//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]");
-selenium.waitForPageToLoad("30000");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
-if (selenium.getConfirmation().equals("Are you sure you want to delete this
portal?")) {
-break;
-}
-}
-catch (Exception e) {
-}
-Thread.sleep(1000);
-}
-assertFalse(selenium.isTextPresent("test_portal_name_20"));
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Sign out"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Sign out", "1,1");
-}
+ public void testSNF_PRL_21() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-ChangePortal-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("link=Site", "1,1");
+ System.out.println("--Add new portal");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add New Portal"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add New Portal", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if
(selenium.isElementPresent("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'PortalSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PortalSetting')\"]"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+
selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'PortalSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PortalSetting')\"]",
+ "1,1");
+ selenium.type("name", "test_portal_name_21");
+
selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')\"]",
+ "1,1");
+
selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'PermissionSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PermissionSetting')\"]",
+ "1,1");
+ selenium.clickAt("publicMode", "1,1");
+ selenium.clickAt("link=Edit Permission Setting", "1,1");
+ selenium.clickAt("link=Select Permission", "1,1");
+ selenium.clickAt("link=Platform", "1,1");
+ selenium.clickAt("link=Platform", "1,1");
+ selenium.clickAt("link=exact:*", "1,1");
+ selenium.clickAt("link=Save", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if
(selenium.isElementPresent("//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("test_portal_name_21"));
+ System.out.println("--View new portal");
+ selenium.clickAt("link=test_portal_name_21", "1,1");
+ selenium.clickAt("link=Site", "1,1");
+ System.out.println("--Delete new portal");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if
(selenium.isElementPresent("//div[@id='UISiteManagement']/table[2]//td[3]/a[4]"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+
selenium.clickAt("//div[@id='UISiteManagement']/table[2]//td[3]/a[4]",
"1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.getConfirmation().equals("Are you sure you want to delete this
portal?")) {
+ break;
+ }
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ }
-//public void testSNF_PRL_21() throws Exception {
-//selenium.setSpeed("500");
-//selenium.open("/portal/public/classic/");
-//System.out.println("-ChangePortal-");
-//selenium.clickAt("link=Sign in", "1,1");
-//selenium.type("username", "root");
-//selenium.type("password", "gtn");
-//selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-//selenium.waitForPageToLoad("30000");
-//selenium.clickAt("link=Site", "1,1");
-//System.out.println("--Add new portal");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Add New Portal"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Add New Portal", "1,1");
-//selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'PortalSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PortalSetting')\"]",
"1,1");
-//selenium.type("name", "test_portal_name_21");
-//selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')\"]",
"1,1");
-//selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'PermissionSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PermissionSetting')\"]",
"1,1");
-//selenium.clickAt("publicMode", "1,1");
-//selenium.clickAt("link=Edit Permission Setting", "1,1");
-//selenium.clickAt("link=Select Permission", "1,1");
-//selenium.clickAt("link=Platform", "1,1");
-//selenium.clickAt("link=Platform", "1,1");
-//selenium.clickAt("link=exact:*", "1,1");
-//selenium.clickAt("link=Save", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if
(selenium.isElementPresent("//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//assertTrue(selenium.isTextPresent("test_portal_name_21"));
-//System.out.println("--View new portal");
-//selenium.clickAt("link=test_portal_name_21", "1,1");
-//}
-//
-//public void testSNF_PRL_22() throws Exception {
-//selenium.setSpeed("500");
-//selenium.open("/portal/private/classic/");
-//selenium.click("link=Site");
-//selenium.waitForPageToLoad("30000");
-//selenium.clickAt("link=Edit Layout", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Portal Properties"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Portal Properties", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("locale"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.select("locale", "label=French (France)");
-//selenium.click("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']//div[3]//div[@class='MiddleTab']");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("publicMode"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.click("publicMode");
-//selenium.clickAt("link=Edit Permission Setting", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Select Permission"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Select Permission", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Platform"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Platform", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Users"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Users", "1,1");
-//selenium.clickAt("link=exact:*", "1,1");
-//selenium.clickAt("link=Save", "1,1");
-//selenium.clickAt("//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']",
"1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=classic"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=classic", "1,1");
-//}
-//
-//public void testSNF_PRL_23() throws Exception {
-//selenium.setSpeed("500");
-//selenium.click("link=Sign in");
-//selenium.type("username", "root");
-//selenium.type("password", "gtn");
-//selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
-//selenium.waitForPageToLoad("30000");
-//selenium.open("/portal/private/classic/");
-//selenium.click("link=Group");
-//selenium.waitForPageToLoad("30000");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Add Navigation"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Add Navigation", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Cancel"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Cancel", "1,1");
-//selenium.clickAt("link=Edit Navigation", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Add Node"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Add Node", "1,1");
-//selenium.type("name", "grp_node");
-//selenium.type("label", "new_grp_node");
-//selenium.clickAt("//div[@class='CenterHorizontalTabs']//div[@class='NormalTab']//div[@class='MiddleTab']",
"1,1");
-//selenium.clickAt("link=Search and Select Page", "1,1");
-//selenium.clickAt("//div[@id='UIRepeater']//img[@class='SelectPageIcon']",
"1,1");
-//selenium.clickAt("link=Save", "1,1");
-//selenium.clickAt("link=Save", "1,1");
-//selenium.check("//a[(a)onclick='eXo.portal.logout();']");
-//selenium.waitForPageToLoad("30000");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=new_grp_node"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.click("link=new_grp_node");
-//selenium.waitForPageToLoad("30000");
-//}
-//
-//public void testSNF_PRL_24() throws Exception {
-//selenium.setSpeed("500");
-//selenium.open("/portal/private/classic/");
-//selenium.click("link=Group");
-//selenium.waitForPageToLoad("30000");
-//selenium.clickAt("//a[@class='EditProIcon']", "1,1");
-//selenium.type("description", "more and more");
-//selenium.clickAt("link=Save", "1,1");
-//assertTrue(selenium.isTextPresent(""));
-//}
-//
-//public void testSNF_PRL_25() throws Exception {
-//selenium.setSpeed("500");
-//selenium.open("/portal/private/classic/");
-//selenium.click("link=Group");
-//selenium.waitForPageToLoad("30000");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Edit Navigation"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Edit Navigation", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Add Node"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Add Node", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("name"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.type("name", "Hihizzz");
-//selenium.type("label", "Hohohozzz");
-//selenium.clickAt("css=div#UIGroupNavigationManagement div.UIPopupWindow
div.TabsContainer div.NormalTab div.MiddleTab", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Search and Select Page"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Search and Select Page", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("//img[@title='Select Page']"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("//img[@title='Select Page']", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Save"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Save", "1,1");
-//selenium.clickAt("link=Save", "1,1");
-//selenium.clickAt("link=Hohohozzz", "1,1");
-//selenium.open("/portal/private/classic/");
-//}
-//
-//public void testSNF_PRL_27_1() throws Exception {
-//selenium.setSpeed("500");
-//selenium.open("/portal/private/classic/");
-//selenium.clickAt("link=Page Management", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("//div[@id='UIPageBrowser']"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Add New Page", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("pageName"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.type("pageName", "newpage21211");
-//selenium.type("pageDisplayName", "new page21211");
-//selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]",
"1,1");
-//selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]",
"1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if
(selenium.isElementPresent("//div[@id='Administration/AccountPortlet']"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=View Page properties", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isTextPresent("Show Max Window"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("//div[@id='UIMaskWorkspace']//div[3]//div[@class='MiddleTab']",
"1,1");
-//selenium.clickAt("link=Edit Permission Setting", "1,1");
-//selenium.clickAt("link=Cancel", "1,1");
-//selenium.clickAt("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]",
"1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("//img[@alt='']"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Edit Page", "1,1");
-//selenium.clickAt("link=View Page properties", "1,1");
-//selenium.clickAt("//div[@id='UIMaskWorkspace']//div[3]//div[@class='MiddleTab']",
"1,1");
-//selenium.clickAt("link=Add Permission", "1,1");
-//selenium.clickAt("link=Platform", "1,1");
-//selenium.clickAt("link=Administrators", "1,1");
-//selenium.clickAt("//div[@id='UIPageFormPopupGroupMembershipSelector']//div[@class='MembershipSelector']//a",
"1,1");
-//selenium.clickAt("link=Save", "1,1");
-//selenium.clickAt("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]",
"1,1");
-//}
-//
-//public void testSNF_PRL_27_2() throws Exception {
-//selenium.setSpeed("500");
-//selenium.type("username", "root");
-//selenium.type("password", "gtn");
-//selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-//selenium.waitForPageToLoad("30000");
-//selenium.click("link=Group");
-//selenium.waitForPageToLoad("30000");
-//selenium.open("/portal/private/classic/");
-//selenium.clickAt("link=Edit Layout", "1,1");
-//selenium.clickAt("link=Portal Properties", "1,1");
-//selenium.select("locale", "label=English");
-//selenium.clickAt("//div[@id='UIMaskWorkspace']//div[3]//div[@class='MiddleTab']",
"1,1");
-//selenium.clickAt("publicMode", "1,1");
-//selenium.clickAt("link=Edit Permission Setting", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isTextPresent("Current Permission"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Select Permission", "1,1");
-//selenium.click("link=Select Permission");
-//selenium.clickAt("//div[@id='PermissionSelector']/div/div[2]/div/div[2]/div/div/div[1]/a",
"1,1");
-//selenium.clickAt("link=Platform", "1,1");
-//selenium.clickAt("link=exact:*", "1,1");
-//selenium.clickAt("//div[@id='UIPortalComposer']/div[1]/div/div/div/a[2]",
"1,1");
-//selenium.clickAt("link=Save", "1,1");
-//}
-//
-//public void testSNF_PRL_28() throws Exception {
-//selenium.setSpeed("500");
-//selenium.type("username", "root");
-//selenium.type("password", "gtn");
-//selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-//selenium.waitForPageToLoad("30000");
-//selenium.open("/portal/private/classic/");
-//selenium.clickAt("link=Dashboard", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Add Gadgets"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Add Gadgets", "1,1");
-//selenium.type("//input[@id='url']",
"http://hosting.gmodules.com/ig/gadgets/file/112581010116074801021/treefrog.xml");
-//selenium.clickAt("//img[@class='AddNewNodeIcon']", "1,1");
-//selenium.clickAt("//div[@id='UIAddGadgetPopup']//div[@class='CloseButton']",
"1,1");
-//}
-//
-//public void testSNF_PRL_29() throws Exception {
-//selenium.setSpeed("500");
-//selenium.type("username", "root");
-//selenium.type("password", "gtn");
-//selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-//selenium.waitForPageToLoad("30000");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Add New Page"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Add New Page", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("pageName"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.type("pageName", "dashboardpage12");
-//selenium.type("pageDisplayName", "dashboard new page12");
-//selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]",
"1,1");
-//selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]",
"1,1");
-//selenium.clickAt("//div[(a)onclick='eXo.portal.UIPortal.toggleComposer(this)']",
"1,1");
-//selenium.click("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]");
-//assertTrue(selenium.isTextPresent("dashboard new page"));
-//selenium.clickAt("link=Edit Page", "1,1");
-//selenium.clickAt("link=View Page properties", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("title"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.type("title", "new dashboard");
-//selenium.clickAt("link=Save", "1,1");
-//selenium.clickAt("//div[@id='UIPageEditor']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']",
"1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Edit Layout"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Edit Layout", "1,1");
-//selenium.clickAt("link=Portal Properties", "1,1");
-//selenium.select("locale", "label=English");
-//selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')\"]",
"1,1");
-//selenium.clickAt("link=Save", "1,1");
-//selenium.clickAt("//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']",
"1,1");
-//}
-//
-//public void testSNF_PRL_30() throws Exception {
-//selenium.setSpeed("500");
-//selenium.open("/portal/private/classic/");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Add New Page"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Add New Page", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if
(selenium.isElementPresent("//div[@id='UIPageNodeSelector']//div[@class='HomeNode']/a"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("//div[@id='UIPageNodeSelector']//div[@class='HomeNode']/a",
"1,1");
-//selenium.type("pageName", "test9");
-//selenium.type("pageDisplayName", "test9");
-//selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]",
"1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if
(selenium.isElementPresent("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]",
"1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=View Page properties"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=View Page properties", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("title"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.type("title", "test9_changed");
-//selenium.clickAt("link=Save", "1,1");
-//selenium.clickAt("css=a.EdittedSaveButton", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Edit Page"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Edit Page", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=View Page properties"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=View Page properties", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("title"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//assertEquals("test9_changed", selenium.getValue("title"));
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if
(selenium.isElementPresent("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']",
"1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("publicMode"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("publicMode", "1,1");
-//selenium.clickAt("link=Add Permission", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Platform"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Platform", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Administrators"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Administrators", "1,1");
-//selenium.clickAt("link=exact:*", "1,1");
-//selenium.clickAt("link=Edit Permission Setting", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Select Permission"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Select Permission", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Platform"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Platform", "1,1");
-//selenium.clickAt("//div[@id='PermissionSelector']//div[@class='MembershipSelector']//div[@class='OverflowContainer']/div[3]/a",
"1,1");
-//selenium.clickAt("link=Save", "1,1");
-//selenium.clickAt("//div[@id='UIPageEditor']//div[@class='TLPortalComposer']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']",
"1,1");
-//assertTrue(selenium.isTextPresent("test9"));
-//selenium.open("/portal/private/classic/");
-//}
-//
-//public void testSNF_PRL_31() throws Exception {
-//selenium.setSpeed("500");
-//selenium.click("link=Sign in");
-//selenium.type("username", "root");
-//selenium.type("password", "gtn");
-//selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
-//selenium.waitForPageToLoad("30000");
-//selenium.open("/portal/private/classic/");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Change Language"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Change Language", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=French"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=French", "1,1");
-//selenium.click("link=Apply");
-//selenium.waitForPageToLoad("30000");
-//assertTrue(selenium.isTextPresent("Accueil"));
-//selenium.clickAt("link=Changer la langue", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=anglais"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=anglais", "1,1");
-//selenium.click("link=Appliquer");
-//selenium.waitForPageToLoad("30000");
-//assertTrue(selenium.isTextPresent("Home"));
-//}
-//
-//public void testSNF_PRL_32() throws Exception {
-//selenium.setSpeed("500");
-//selenium.click("link=Sign in");
-//selenium.type("username", "root");
-//selenium.type("password", "gtn");
-//selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
-//selenium.waitForPageToLoad("30000");
-//selenium.open("/portal/private/classic/");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Change Skin"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Change Skin", "1,1");
-//selenium.clickAt("//div[@id='UITabContent']//div[@class='ItemListContainer']//div[@class='ItemList']//div[@class='SelectedItem
Item']", "1,1");
-//selenium.clickAt("//div[@id='UIMaskWorkspace']//div[@class='ActionButton
LightBlueStyle']", "1,1");
-//selenium.waitForPageToLoad("30000");
-//}
-//
-//public void testSNF_PRL_34() throws Exception {
-//selenium.setSpeed("500");
-//selenium.click("link=Sign in");
-//selenium.type("username", "root");
-//selenium.type("password", "gtn");
-//selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
-//selenium.waitForPageToLoad("30000");
-//selenium.open("/portal/private/classic/");
-//selenium.clickAt("link=Root Root", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("email"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.type("email", "mytest.exo10(a)gmail.com");
-//selenium.type("lastName", "Root");
-//selenium.clickAt("link=Save", "1,1");
-//selenium.clickAt("link=OK", "1,1");
-//selenium.clickAt("link=Close", "1,1");
-//}
-//
-//public void testSNF_PRL_35() throws Exception {
-//selenium.setSpeed("500");
-//selenium.type("username", "root");
-//selenium.type("password", "gtn");
-//selenium.clickAt("link=Sign in", "1,1");
-//selenium.open("/portal/private/classic/administration/pageManagement");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("//div[@id='UIPageBrowser']"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("//div[@id='UIPageBrowser']//div[@class='UIAction']//div[@class='ActionButton
LightBlueStyle']", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("name"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.type("name", "user_page1");
-//selenium.type("title", "user_page_title1");
-//selenium.clickAt("link=Save", "1,1");
-//selenium.clickAt("//div[@id='UIPageBrowser']//div[@class='UIAction']//div[@class='ActionButton
LightBlueStyle']", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("//div[@id='UIMaskWorkspace']"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.select("ownerType", "label=portal");
-//selenium.type("name", "portal_page1");
-//selenium.type("title", "portal_page_title1");
-//selenium.clickAt("link=Save", "1,1");
-//selenium.clickAt("//div[@id='UIPageBrowser']//div[@class='UIAction']//div[@class='ActionButton
LightBlueStyle']", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("//div[@id='UIMaskWorkspace']"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.select("ownerType", "label=group");
-//selenium.clickAt("//option[@value='group']", "1,1");
-//selenium.type("name", "group_page1");
-//selenium.type("title", "group_page_title1");
-//selenium.clickAt("link=Save", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if
(selenium.isElementPresent("//div[@id='UIRepeater']//img[@class='EditInfoIcon']"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("//div[@id='UIRepeater']//img[@class='EditInfoIcon']",
"1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if
(selenium.isElementPresent("//div[@id='UIPageEditor']//div[@class='PageProfileIcon']"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("//div[@id='UIPageEditor']//div[@class='PageProfileIcon']",
"1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if
(selenium.isElementPresent("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']//div[3]//div[@class='MiddleTab']"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']//div[3]//div[@class='MiddleTab']",
"1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if
(selenium.isElementPresent("//div[@id='UIListPermissionSelector']//input[@class='checkbox']"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("//div[@id='UIListPermissionSelector']//input[@class='checkbox']",
"1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Save"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Save", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if
(selenium.isElementPresent("//div[@id='UIPageEditor']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("//div[@id='UIPageEditor']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']",
"1,1");
-//assertTrue(selenium.isTextPresent("user_page_title1"));
-//assertTrue(selenium.isTextPresent("group_page_title1"));
-//assertTrue(selenium.isTextPresent("portal_page_title1"));
-//}
+ public void testSNF_PRL_23() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic");
+ System.out.println("-AddNavigation-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
+ selenium.waitForPageToLoad("30000");
+ selenium.open("/portal/private/classic/");
+ selenium.click("link=Group");
+ selenium.waitForPageToLoad("30000");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add Navigation"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add Navigation", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Cancel"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Cancel", "1,1");
+ selenium.clickAt("link=Edit Navigation", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add Node"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add Node", "1,1");
+ selenium.type("name", "test_grp_node_23");
+ selenium.type("label", "test_grp_label_23");
+ System.out.println("--Choose \"Page Selector\" tab");
+
selenium.clickAt("//div[@class='CenterHorizontalTabs']//div[@class='NormalTab']//div[@class='MiddleTab']",
+ "1,1");
+ selenium.clickAt("link=Search and Select Page", "1,1");
+ System.out.println("--Select the first page from pages list");
+
selenium.clickAt("//div[@id='UIRepeater']//img[@class='SelectPageIcon']",
"1,1");
+ selenium.clickAt("link=Save", "1,1");
+ selenium.clickAt("link=Save", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=test_grp_label_23"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=test_grp_label_23");
+ selenium.waitForPageToLoad("30000");
+ System.out.println("--Delete new group navigation");
+ System.out.println("-----------");
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+ public void testSNF_PRL_24() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic");
+ System.out.println("-EditDeleteNavigation-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
+ selenium.waitForPageToLoad("30000");
+ selenium.open("/portal/private/classic/");
+ selenium.click("link=Group");
+ selenium.waitForPageToLoad("30000");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add Navigation"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add Navigation", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Cancel"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Cancel", "1,1");
+ selenium.clickAt("link=Edit Navigation", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add Node"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add Node", "1,1");
+ selenium.type("name", "test_grp_node_24");
+ selenium.type("label", "test_grp_label_24");
+ System.out.println("--Choose \"Page Selector\" tab");
+
selenium.clickAt("//div[@class='CenterHorizontalTabs']//div[@class='NormalTab']//div[@class='MiddleTab']",
+ "1,1");
+ selenium.clickAt("link=Search and Select Page", "1,1");
+ System.out.println("--Select the first page from pages list");
+
selenium.clickAt("//div[@id='UIRepeater']//img[@class='SelectPageIcon']",
"1,1");
+ selenium.clickAt("link=Save", "1,1");
+ selenium.clickAt("link=Save", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=test_grp_label_24"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=test_grp_label_24");
+ selenium.waitForPageToLoad("30000");
+ System.out.println("--Edit navigation properties");
+ selenium.click("link=Group");
+ selenium.waitForPageToLoad("30000");
+
selenium.clickAt("//div[@id='UIGroupNavigationGrid']/table[4]//td[@class='ActionBlock']//a[@class='EditProIcon']",
+ "1,1");
+ selenium.type("description", "test_description_edit_24");
+ selenium.select("priority", "10");
+ selenium.clickAt("link=Save", "1,1");
+ assertTrue(selenium.isTextPresent("Description:
test_description_edit_24"));
+ System.out.println("--Delete new group navigation");
+ System.out.println("-----------");
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
+ public void testSNF_PRL_25() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic");
+ System.out.println("-EditNavActions_Rightclickmenu-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
+ selenium.waitForPageToLoad("30000");
+ selenium.click("link=Group");
+ selenium.waitForPageToLoad("30000");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Edit Navigation"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Edit Navigation", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add Node"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add Node", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("name"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("name", "test_grp_node_25");
+ selenium.type("label", "test_grp_label_25");
+ selenium.clickAt("css=div#UIGroupNavigationManagement div.UIPopupWindow
div.TabsContainer div.NormalTab div.MiddleTab",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Search and Select Page"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Search and Select Page", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//img[@title='Select Page']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//img[@title='Select Page']", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Save"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Save", "1,1");
+ selenium.clickAt("link=Save", "1,1");
+ selenium.clickAt("link=test_grp_label_25", "1,1");
+ System.out.println("--Edit node's page");
+ System.out.println("---Rightclick on link in group");
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
+ public void testSNF_PRL_26() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic");
+ System.out.println("-MoveUp/DownNode-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
+ selenium.waitForPageToLoad("30000");
+ System.out.println("--Create node");
+ selenium.click("link=Group");
+ selenium.waitForPageToLoad("30000");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Edit Navigation"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Edit Navigation", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add Node"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add Node", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("name"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("name", "test_grp_node_26");
+ selenium.type("label", "test_grp_label_26");
+ selenium.clickAt("css=div#UIGroupNavigationManagement div.UIPopupWindow
div.TabsContainer div.NormalTab div.MiddleTab",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Search and Select Page"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Search and Select Page", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//img[@title='Select Page']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//img[@title='Select Page']", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Save"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Save", "1,1");
+ selenium.clickAt("link=Save", "1,1");
+ selenium.clickAt("link=test_grp_label_26", "1,1");
+ System.out.println("--Edit node's position");
+ System.out.println("---Rightclick on link in group");
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
+ public void testSNF_PRL_27() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic");
+ System.out.println("-AddEditGroupPageWizard-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("link=Page Management", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@id='UIPageBrowser']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ System.out.println("--Create new");
+ selenium.clickAt("link=Add New Page", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("pageName"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("pageName", "test_page_27");
+ selenium.type("pageDisplayName", "test_page_name_27");
+ System.out.println("--Click \"Next\" to move to step2 to choose page
layout");
+
selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]",
"1,1");
+ System.out.println("--Keep \"Empty layout\" and Click
\"Next\" to move to step 3");
+
selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]",
"1,1");
+ System.out.println("--Open Page Editor pane");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if
(selenium.isElementPresent("//div[@id='Administration/AccountPortlet']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=View Page properties", "1,1");
+ System.out.println("--Select Permission Setting tab");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("Show Max Window"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+
selenium.clickAt("//div[@id='UIMaskWorkspace']//div[3]//div[@class='MiddleTab']",
"1,1");
+ selenium.clickAt("link=Edit Permission Setting", "1,1");
+ System.out.println("--Do not change anything in Page properties");
+ selenium.clickAt("link=Cancel", "1,1");
+
selenium.clickAt("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]",
"1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//img[@alt='']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ System.out.println("--Click Save to complete adding new page by wizard with no
content (no portlet)");
+ selenium.clickAt("link=Edit Page", "1,1");
+ System.out.println("--Show form to edit page by wizard");
+ selenium.clickAt("link=View Page properties", "1,1");
+ System.out.println("--Select Permission Setting tab");
+
selenium.clickAt("//div[@id='UIMaskWorkspace']//div[3]//div[@class='MiddleTab']",
"1,1");
+ selenium.clickAt("link=Add Permission", "1,1");
+ selenium.clickAt("link=Platform", "1,1");
+ selenium.clickAt("link=Administrators", "1,1");
+
selenium.clickAt("//div[@id='UIPageFormPopupGroupMembershipSelector']//div[@class='MembershipSelector']//a",
+ "1,1");
+ selenium.clickAt("link=Save", "1,1");
+
selenium.clickAt("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]",
"1,1");
+ System.out.println("--Edit layout");
+ selenium.open("/portal/private/classic/");
+ selenium.clickAt("link=Edit Layout", "1,1");
+ selenium.clickAt("link=Portal Properties", "1,1");
+ selenium.select("locale", "label=French (France)");
+ selenium.clickAt("link=Save", "1,1");
+
selenium.clickAt("//div[@id='UIPortalComposer']/div[1]/div/div/div/a[2]",
"1,1");
+ selenium.open("/portal/private/classic/");
+ selenium.clickAt("link=Edit Layout", "1,1");
+ selenium.clickAt("link=Portal Properties", "1,1");
+ assertTrue(selenium.isTextPresent("French (France)"));
+ selenium.clickAt("link=Cancel", "1,1");
+
selenium.clickAt("//div[@id='UIPortalComposer']/div[1]/div/div/div/a[1]",
"1,1");
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
+ public void testSNF_PRL_30() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic");
+ System.out.println("-DashboardSiteManagement-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("link=Dashboard", "1,1");
+ System.out.println("--Add new page in dashboard");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add New Page"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add New Page", "1,1");
+ System.out.println("--Choose \"root\" node");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("pageName"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("pageName", "test_dashboardpage_30");
+ selenium.type("pageDisplayName", "test_dashboardpage_name_30");
+ System.out.println("--Click Next to move to step 2");
+
selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]",
"1,1");
+ System.out.println("--Click Next to move to step 3, keep Empty layout");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if
(selenium.isElementPresent("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+
selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]",
"1,1");
+ System.out.println("--Open Editor pane");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if
(selenium.isElementPresent("//div[(a)onclick='eXo.portal.UIPortal.toggleComposer(this)']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+
selenium.clickAt("//div[(a)onclick='eXo.portal.UIPortal.toggleComposer(this)']",
"1,1");
+ System.out.println("--Click Save to complete adding page");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if
(selenium.isElementPresent("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+
selenium.clickAt("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]",
"1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("test_dashboardpage_name_30"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("test_dashboardpage_name_30"));
+ System.out.println("--Edit page in dashboard");
+ selenium.clickAt("link=Edit Page", "1,1");
+ selenium.clickAt("link=View Page properties", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("title"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("title", "test_dashboardpage_edit_30");
+ selenium.clickAt("link=Save", "1,1");
+
selenium.clickAt("//div[@id='UIPageEditor']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Page Management"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ System.out.println("--Edit Dashboard layout");
+ selenium.clickAt("link=test_dashboardpage_name_30", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Edit Layout"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Edit Layout", "1,1");
+ selenium.clickAt("link=Portal Properties", "1,1");
+ selenium.select("locale", "label=English");
+
selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')\"]",
+ "1,1");
+ selenium.clickAt("link=Save", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if
(selenium.isElementPresent("//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+
selenium.clickAt("//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']",
"1,1");
+ System.out.println("--Delete page");
+
selenium.clickAt("//div[@class='SelectedTab']//img[@class='CloseIcon']",
"1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.getConfirmation().equals("Really want to remove this
dashboard?")) {
+ break;
+ }
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertFalse(selenium.isTextPresent("test_dashboardpage_name_30"));
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
+ public void testSNF_PRL_31() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic");
+ System.out.println("-ChangeLanguagePrivateMode-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
+ selenium.waitForPageToLoad("30000");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Change Language"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Change Language", "1,1");
+ System.out.println("--Change to French");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=French"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=French", "1,1");
+ selenium.click("link=Apply");
+ selenium.waitForPageToLoad("30000");
+ System.out.println("--Verify");
+ assertTrue(selenium.isTextPresent("Accueil"));
+ selenium.clickAt("link=Changer la langue", "1,1");
+ System.out.println("--Change back to English");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=anglais"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=anglais", "1,1");
+ selenium.click("link=Appliquer");
+ selenium.waitForPageToLoad("30000");
+ assertTrue(selenium.isTextPresent("Home"));
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
+ public void testSNF_PRL_32() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic");
+ System.out.println("-ChangeDisplaySkin-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
+ selenium.waitForPageToLoad("30000");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Change Skin"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Change Skin", "1,1");
+
selenium.clickAt("//div[@id='UITabContent']//div[@class='ItemListContainer']//div[@class='ItemList']//div[@class='SelectedItem
Item']",
+ "1,1");
+
selenium.clickAt("//div[@id='UIMaskWorkspace']//div[@class='ActionButton
LightBlueStyle']",
+ "1,1");
+ selenium.waitForPageToLoad("30000");
+ System.out.println("--Verify");
+ System.out.println("---------");
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
+ public void testSNF_PRL_05() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-RememberMyLogin-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.clickAt("rememberme", "1,1");
+
selenium.clickAt("//div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a",
"1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Sign out"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Sign out", "1,1");
+ selenium.clickAt("link=Sign in", "1,1");
+ System.out.println("##\"Sign out\" resets
\"rememberme\"");
+ verifyTrue(selenium.isChecked("rememberme"));
+ selenium.clickAt("link=Discard", "1,1");
+ }
+
+ public void testSNF_PRL_06() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-UserManagement-");
+ selenium.click("link=Sign in");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Group"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=Group");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Users and groups management"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=Users and groups management");
+ selenium.waitForPageToLoad("30000");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("User Name"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("Last Name"));
+ assertTrue(selenium.isTextPresent("First Name"));
+ assertTrue(selenium.isTextPresent("Email"));
+ System.out.println("--Edit fields");
+
selenium.clickAt("//div[@id='UIListUsersGird']//tbody/tr[3]//td[5]//div//img",
"1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("firstName"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("firstName", "test_user_06");
+ selenium.clickAt("link=Save", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("css=div#UIOrganizationPortlet
div.ManagementTabContent > div.UIPopupWindow div.ActionButton"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("css=div#UIOrganizationPortlet div.ManagementTabContent >
div.UIPopupWindow div.ActionButton",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if
(selenium.isElementPresent("//div[@id='UIUserManagement']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+
selenium.clickAt("//div[@id='UIUserManagement']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("user.name.given"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("user.name.given", "test_name_given_06");
+ selenium.type("user.name.family", "test_name_family_06");
+ selenium.type("user.name.nickName", "test_name_nick_06");
+ selenium.clickAt("link=Save", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("css=div#UIOrganizationPortlet
div.ManagementTabContent > div.UIPopupWindow div.ActionButton"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("The user profile has been updated."));
+ selenium.clickAt("css=div#UIOrganizationPortlet div.ManagementTabContent >
div.UIPopupWindow div.ActionButton",
+ "1,1");
+ selenium.clickAt("link=Cancel", "1,1");
+ System.out.println("--Verify changes");
+ assertTrue(selenium.isTextPresent("test_user_06"));
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Sign out"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
+ public void testSNF_PRL_11() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-AddApplicationToCategory-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("link=Application Registry", "1,1");
+ System.out.println("--Add application to Administration Category");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if
(selenium.isElementPresent("//div[@class='ListContent']//div[@class='SelectedTab']//a[@class='ControlIcon
CreateNewIcon']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+
selenium.clickAt("//div[@class='ListContent']//div[@class='SelectedTab']//a[@class='ControlIcon
CreateNewIcon']",
+ "1,1");
+ System.out.println("--Select first application in list");
+ selenium.clickAt("//input[@name='application' and
@value='1']", "1,1");
+ selenium.type("displayName", "test_displayname_11");
+ selenium.clickAt("css=form#UIAddApplicationForm div.UIAction
div.ActionButton", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//a[@class='TabLabel' and
@title='Administration']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ System.out.println("--Edit category permissions");
+ selenium.clickAt("//a[@class='TabLabel' and
@title='Administration']", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add Permission"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add Permission", "1,1");
+
selenium.clickAt("//div[@id='ListPermissionSelector']//a[@title='Organization']",
"1,1");
+ selenium.clickAt("link=manager", "1,1");
+ assertTrue(selenium.isTextPresent("test_displayname_11"));
+ selenium.clickAt("//div[@class='IconControl ImportIcon']",
"1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.getConfirmation()
+ .equals("This action will automatically create categories and
import all the gadgets and portlets on it.")) {
+ break;
+ }
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ System.out.println("--Delete application");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if
(selenium.isElementPresent("//div[@class='ListContent']//div[@class='UIVTabContent']/div[8]//a[@class='ControlIcon
DeletePortalIcon']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+
selenium.clickAt("//div[@class='ListContent']//div[@class='UIVTabContent']/div[8]//a[@class='ControlIcon
DeletePortalIcon']",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.getConfirmation().equals("Are you sure to delete this
application?")) {
+ break;
+ }
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Sign out"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
+ public void testSNF_PRL_19() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-EditPortalNavigation-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ selenium.click("link=Site");
+ selenium.waitForPageToLoad("30000");
+ System.out.println("--Edit Portal layout, currently do not change
anything");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Edit Layout"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Edit Layout", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if
(selenium.isElementPresent("css=div#Administration/ApplicationRegistryPortlet"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+
selenium.dragAndDropToObject("css=div#Administration/ApplicationRegistryPortlet",
+
"css=div#Administration/ApplicationRegistryPortlet");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if
(selenium.isElementPresent("//div[@id='UIPortalComposer']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+
selenium.clickAt("//div[@id='UIPortalComposer']//div[@class='OverflowContainer']/a[@class='CloseButton']",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("classic"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ System.out.println("--Edit nav: add node, actions ...");
+ selenium.clickAt("link=Edit Navigation", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add Node"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add Node", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("name"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("name", "test_nodename_19");
+ selenium.type("label", "test_node_label_19");
+ System.out.println("--Select Page");
+ selenium.clickAt("css=div#UISiteManagement > div.UIPopupWindow
div.TabsContainer div.NormalTab div.MiddleTab",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Search and Select Page"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Search and Select Page", "1,1");
+ System.out.println("--Select the first page");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if
(selenium.isElementPresent("//div[@id='UIRepeater']//table//tbody/tr/td[5]/div[@class='ActionContainer']/img"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+
selenium.click("//div[@id='UIRepeater']//table//tbody/tr/td[5]/div[@class='ActionContainer']/img");
+ System.out.println("--Save");
+ selenium.clickAt("link=Save", "1,1");
+ selenium.clickAt("link=Save", "1,1");
+ System.out.println("--Edit Portal Properties");
+ selenium.clickAt("link=Edit Portal's Properties", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if
(selenium.isElementPresent("//div[@id='UIMaskWorkspace']//div[3]//div[@class='MiddleTab']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+
selenium.clickAt("//div[@id='UIMaskWorkspace']//div[3]//div[@class='MiddleTab']",
"1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Edit Permission Setting"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Edit Permission Setting", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Select Permission"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Select Permission", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Platform"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Platform", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Administrators"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Administrators", "1,1");
+ selenium.clickAt("//div[@id='PermissionSelector']//div[2]/a",
"1,1");
+
selenium.clickAt("//form[@id='UIPortalForm']//div[@class='UIAction']//div[@class='ActionButton
LightBlueStyle']",
+ "1,1");
+ selenium.open("/portal/private/classic/");
+ System.out.println("--Select new node");
+ selenium.clickAt("link=test_node_label_19", "1,1");
+
assertTrue(selenium.isElementPresent("//div[@class='SelectedNavigationTab']//a"));
+ System.out.println("--Delete node");
+ selenium.clickAt("link=Edit Navigation", "1,1");
+ selenium.click("link=Delete Node");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.getConfirmation().equals("Are you sure you want to delete this
node?")) {
+ break;
+ }
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=Save");
+ System.out.println("--Verify Deletion");
+ selenium.click("link=Home");
+ assertFalse(selenium.isTextPresent("test_node_label_19"));
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
+ public void testSNF_PRL_28() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic");
+ System.out.println("-ActionsDashboardpage-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("link=Dashboard", "1,1");
+ System.out.println("--Add gadgets into dashboard page");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add Gadgets"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add Gadgets", "1,1");
+ System.out.println("--By url");
+ selenium.type("//input[@id='url']",
"http://www.google.com/ig/modules/datetime.xml");
+ selenium.clickAt("//img[@class='AddNewNodeIcon']",
"1,1");
+
selenium.clickAt("//div[@id='UIAddGadgetPopup']//div[@class='CloseButton']",
"1,1");
+
assertTrue(selenium.isElementPresent("//div[@class='GadgetTitle']"));
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@class='CloseGadget
IconControl' and @title='Delete Gadget']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//div[@class='CloseGadget IconControl' and
@title='Delete Gadget']", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.getConfirmation().equals("Are you sure to delete this
gadget?")) {
+ break;
+ }
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add Gadgets"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add Gadgets", "1,1");
+ System.out.println("--By drag and drop");
+ selenium.dragAndDropToObject("//div[@class='GadgetTitle' and
@title='Calculator']",
+ "//div[@class='GadgetTitle' and
@title='Calculator']");
+
selenium.clickAt("//div[@id='UIAddGadgetPopup']//div[@class='CloseButton']",
"1,1");
+
assertTrue(selenium.isElementPresent("//div[@class='GadgetTitle']"));
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@class='CloseGadget
IconControl']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//div[@title='Delete Gadget']",
"1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.getConfirmation().equals("Are you sure to delete this
gadget?")) {
+ break;
+ }
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("Drag your gadgets here."));
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
+ public void testSNF_PRL_29() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic");
+ System.out.println("-AddEditPageEditLayoutDashboard-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("link=Dashboard", "1,1");
+ System.out.println("--Add new page in dashboard");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add New Page"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add New Page", "1,1");
+ System.out.println("--Choose \"root\" node");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("pageName"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("pageName", "test_dashboardpage_29");
+ selenium.type("pageDisplayName", "test_dashboardpage_name_29");
+ System.out.println("--Click Next to move to step 2");
+
selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]",
"1,1");
+ System.out.println("--Click Next to move to step 3, keep Empty layout");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if
(selenium.isElementPresent("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+
selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]",
"1,1");
+ System.out.println("--Open Editor pane");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if
(selenium.isElementPresent("//div[(a)onclick='eXo.portal.UIPortal.toggleComposer(this)']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+
selenium.clickAt("//div[(a)onclick='eXo.portal.UIPortal.toggleComposer(this)']",
"1,1");
+ System.out.println("--Click Save to complete adding page");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if
(selenium.isElementPresent("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+
selenium.clickAt("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]",
"1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("test_dashboardpage_name_29"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("test_dashboardpage_name_29"));
+ System.out.println("--Edit page in dashboard");
+ selenium.type("1", "test_dashboardpage_edit_29");
+ System.out.println("--Edit Dashboard layout");
+ selenium.clickAt("link=test_dashboardpage_edit_29", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Edit Layout"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Edit Layout", "1,1");
+ selenium.clickAt("link=Portal Properties", "1,1");
+ selenium.select("locale", "label=English");
+
selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')\"]",
+ "1,1");
+ selenium.clickAt("link=Save", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if
(selenium.isElementPresent("//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+
selenium.clickAt("//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']",
"1,1");
+ System.out.println("--Delete page");
+
selenium.clickAt("//div[@class='SelectedTab']//img[@class='CloseIcon']",
"1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.getConfirmation().equals("Really want to remove this
dashboard?")) {
+ break;
+ }
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertFalse(selenium.isTextPresent("test_dashboardpage_edit_29"));
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
+ public void testSNF_PRL_33() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-AccountSetting-");
+ System.out.println("--Register new account");
+ selenium.clickAt("link=Register", "1,1");
+ selenium.type("User Name:", "test_user_33");
+ selenium.type("Password:", "test_pwd_33");
+ selenium.type("Confirm Password:", "test_pwd_33");
+ selenium.type("First Name:", "test_name_first_33");
+ selenium.type("Last Name:", "test_name_last_33");
+ selenium.type("Email Address:", "test_user_33(a)yahoo.com");
+ selenium.clickAt("link=Subscribe", "1,1");
+ selenium.open("/portal/public/classic/");
+ System.out.println("--Sign in and modify");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "test_user_33");
+ selenium.type("password", "test_pwd_33");
+ selenium.clickAt("//div[@id='UIPortalLoginFormAction']//a",
"1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("test_name_first_33 test_name_last_33"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=test_name_first_33 test_name_last_33",
"1,1");
+ selenium.clickAt("link=Change Password", "1,1");
+ selenium.type("currentpass", "test_pwd_33");
+ selenium.type("newpass", "test_pwd_33_edit");
+ selenium.type("confirmnewpass", "test_pwd_33_edit");
+ selenium.clickAt("link=Save", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=OK"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=OK", "1,1");
+ selenium.clickAt("link=Close", "1,1");
+ selenium.click("link=Sign out");
+ selenium.waitForPageToLoad("30000");
+ System.out.println("--Verify modifications");
+ selenium.clickAt("link=Sign in", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("username"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("username", "test_user_33");
+ selenium.type("password", "test_pwd_33_edit");
+ selenium.clickAt("//div[@id='UIPortalLoginFormAction']//a",
"1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("test_name_first_33 test_name_last_33"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("test_name_first_33
test_name_last_33"));
+ selenium.clickAt("link=Sign out", "1,1");
+ System.out.println("--Delete new user");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.clickAt("//div[@id='UIPortalLoginFormAction']//a",
"1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Users and groups management"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=Users and groups management");
+ selenium.waitForPageToLoad("30000");
+
selenium.clickAt("//div[@class='UIListUsers']//tbody/tr[5]//img[@class='DeleteUserIcon']",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.getConfirmation().equals("Are you sure you want to delete
test_user_33 user?")) {
+ break;
+ }
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
+ public void testSNF_PRL_34() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic");
+ System.out.println("-LogoPortletAccSetting-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("link=Dashboard", "1,1");
+ System.out.println("--Edit Logo Picture");
+ selenium.clickAt("link=Edit Layout", "1,1");
+
selenium.clickAt("//form[@id='UILogoEditMode']/div[2]/div/div/table/tbody/tr/td/div/div/div/div",
+ "1,1");
+ selenium.type("logoUrl", "url to define !!");
+ selenium.clickAt("link=Save", "1,1");
+ selenium.clickAt("link=Close", "1,1");
+
selenium.clickAt("//div[@id='UIPortalComposer']/div[1]/div/div/div/a[2]",
"1,1");
+
assertTrue(selenium.isElementPresent("//div[@id='UILogoPortlet']/a/img[(a)src='/eXoResources/skin/sharedImages/DashboardIcon.png']"));
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
+ public void testSNF_PRL_22() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-EditPortalLayout-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ selenium.click("link=Site");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("link=Edit Layout", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Portal Properties"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Portal Properties", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("locale"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.select("locale", "label=French (France)");
+
selenium.click("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']//div[3]//div[@class='MiddleTab']");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("publicMode"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("publicMode");
+ selenium.clickAt("link=Edit Permission Setting", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Select Permission"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Select Permission", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Platform"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Platform", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Users"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Users", "1,1");
+ selenium.clickAt("link=exact:*", "1,1");
+ selenium.clickAt("link=Save", "1,1");
+
selenium.clickAt("//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']",
"1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=classic"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=classic", "1,1");
+ System.out.println("--Verify");
+ selenium.click("link=Site");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("link=Edit Layout", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Portal Properties"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Portal Properties", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("locale"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("French (France)"));
+ selenium.select("locale", "label=French (France)");
+
selenium.click("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']//div[3]//div[@class='MiddleTab']");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("publicMode"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+
selenium.clickAt("//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']",
"1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=classic"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=classic", "1,1");
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
}
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_02.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_02.java 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_02.java 2010-01-23
00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_02 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_02() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-New Account-");
System.out.println("--Register new account");
@@ -27,6 +33,14 @@
selenium.type("username", "test_user_02");
selenium.type("password", "test_pwd_02");
selenium.clickAt("//div[@id='UIPortalLoginFormAction']//a",
"1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isTextPresent("test_name_first_02 test_name_last_02"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
assertTrue(selenium.isTextPresent("test_name_first_02 test_name_last_02"));
selenium.clickAt("link=Sign out", "1,1");
System.out.println("--Delete new user");
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_03.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_03.java 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_03.java 2010-01-23
00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_03 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_03() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-Change Language-");
selenium.clickAt("//a[@class='Language']", "1,1");
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_04.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_04.java 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_04.java 2010-01-23
00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_04 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_04() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-SignInOut-");
selenium.click("link=Sign in");
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_05.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_05.java 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_05.java 2010-01-23
00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_05 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_05() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-RememberMyLogin-");
selenium.clickAt("link=Sign in", "1,1");
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_06.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_06.java 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_06.java 2010-01-23
00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_06 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_06() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-UserManagement-");
selenium.click("link=Sign in");
@@ -61,12 +67,12 @@
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
- if (selenium.isElementPresent("css=div#UIOrganizationPortlet
div.ManagementTabContent > div.UIPopupWindow div.ActionButton"))
+ if (selenium.isElementPresent("css=div#UIOrganizationPortlet
div.ManagementTabContent > div.UIPopupWindow div.ActionButton"))
break; }
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.clickAt("css=div#UIOrganizationPortlet div.ManagementTabContent >
div.UIPopupWindow div.ActionButton", "1,1");
+selenium.clickAt("css=div#UIOrganizationPortlet div.ManagementTabContent >
div.UIPopupWindow div.ActionButton", "1,1");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
@@ -91,13 +97,13 @@
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
- if (selenium.isElementPresent("css=div#UIOrganizationPortlet
div.ManagementTabContent > div.UIPopupWindow div.ActionButton"))
+ if (selenium.isElementPresent("css=div#UIOrganizationPortlet
div.ManagementTabContent > div.UIPopupWindow div.ActionButton"))
break; }
catch (Exception e) {}
Thread.sleep(1000);
}
assertTrue(selenium.isTextPresent("The user profile has been updated."));
-selenium.clickAt("css=div#UIOrganizationPortlet div.ManagementTabContent >
div.UIPopupWindow div.ActionButton", "1,1");
+selenium.clickAt("css=div#UIOrganizationPortlet div.ManagementTabContent >
div.UIPopupWindow div.ActionButton", "1,1");
selenium.clickAt("link=Cancel", "1,1");
System.out.println("--Verify changes");
assertTrue(selenium.isTextPresent("test_user_06"));
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_07.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_07.java 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_07.java 2010-01-23
00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_07 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_07() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-GroupManagement-");
selenium.click("link=Sign in");
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_08.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_08.java 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_08.java 2010-01-23
00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_08 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_08() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-MembershipManagement-");
selenium.click("link=Sign in");
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_09.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_09.java 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_09.java 2010-01-23
00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_09 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_09() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-AutoImport-");
selenium.clickAt("link=Sign in", "1,1");
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_10.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_10.java 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_10.java 2010-01-23
00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_10 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_10() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-CategoryManagement-");
selenium.click("link=Sign in");
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_11.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_11.java 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_11.java 2010-01-23
00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_11 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_11() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-AddApplicationToCategory-");
selenium.clickAt("link=Sign in", "1,1");
@@ -18,6 +24,14 @@
selenium.waitForPageToLoad("30000");
selenium.clickAt("link=Application Registry", "1,1");
System.out.println("--Add application to Administration Category");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if
(selenium.isElementPresent("//div[@class='ListContent']//div[@class='SelectedTab']//a[@class='ControlIcon
CreateNewIcon']"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
selenium.clickAt("//div[@class='ListContent']//div[@class='SelectedTab']//a[@class='ControlIcon
CreateNewIcon']", "1,1");
System.out.println("--Select first application in list");
selenium.clickAt("//input[@name='application' and @value='1']",
"1,1");
@@ -45,7 +59,27 @@
selenium.clickAt("//div[@id='ListPermissionSelector']//a[@title='Organization']",
"1,1");
selenium.clickAt("link=manager", "1,1");
assertTrue(selenium.isTextPresent("test_displayname_11"));
+selenium.clickAt("//div[@class='IconControl ImportIcon']",
"1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+if (selenium.getConfirmation().equals("This action will automatically create
categories and import all the gadgets and portlets on it.")) {
+break;
+}
+}
+catch (Exception e) {
+}
+Thread.sleep(1000);
+}
System.out.println("--Delete application");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if
(selenium.isElementPresent("//div[@class='ListContent']//div[@class='UIVTabContent']/div[8]//a[@class='ControlIcon
DeletePortalIcon']"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
selenium.clickAt("//div[@class='ListContent']//div[@class='UIVTabContent']/div[8]//a[@class='ControlIcon
DeletePortalIcon']", "1,1");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_13.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_13.java 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_13.java 2010-01-23
00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_13 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_13() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-AddGadget-");
selenium.clickAt("link=Sign in", "1,1");
@@ -17,6 +23,14 @@
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
selenium.waitForPageToLoad("30000");
selenium.clickAt("link=Application Registry", "1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("link=Gadget"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
selenium.clickAt("link=Gadget", "1,1");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_15.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_15.java 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_15.java 2010-01-23
00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_15 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_15() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-SiteMapAndLinkToPage-");
selenium.clickAt("link=Sign in", "1,1");
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_18.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_18.java 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_18.java 2010-01-23
00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_18 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_18() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-CreateNewPortal-");
selenium.clickAt("link=Sign in", "1,1");
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_19.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_19.java 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_19.java 2010-01-23
00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_19 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_19() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-EditPortalNavigation-");
selenium.clickAt("link=Sign in", "1,1");
@@ -76,7 +82,7 @@
selenium.type("name", "test_nodename_19");
selenium.type("label", "test_node_label_19");
System.out.println("--Select Page");
-selenium.clickAt("css=div#UISiteManagement > div.UIPopupWindow
div.TabsContainer div.NormalTab div.MiddleTab", "1,1");
+selenium.clickAt("css=div#UISiteManagement > div.UIPopupWindow div.TabsContainer
div.NormalTab div.MiddleTab", "1,1");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
@@ -152,7 +158,7 @@
System.out.println("--Select new node");
selenium.clickAt("link=test_node_label_19", "1,1");
assertTrue(selenium.isElementPresent("//div[@class='SelectedNavigationTab']//a"));
-selenium.clickAt("link=Site", "1,1");
+System.out.println("--Delete node");
selenium.clickAt("link=Edit Navigation", "1,1");
selenium.click("link=Delete Node");
for (int second = 0;; second++) {
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_20.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_20.java 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_20.java 2010-01-23
00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_20 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_20() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-DeletePortal-");
selenium.clickAt("link=Sign in", "1,1");
@@ -27,10 +33,10 @@
Thread.sleep(1000);
}
selenium.clickAt("link=Add New Portal", "1,1");
-selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'PortalSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PortalSetting')\"]",
"1,1");
+selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'PortalSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PortalSetting')\"]",
"1,1");
selenium.type("name", "test_portal_name_20");
-selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')\"]",
"1,1");
-selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'PermissionSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PermissionSetting')\"]",
"1,1");
+selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')\"]",
"1,1");
+selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'PermissionSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PermissionSetting')\"]",
"1,1");
selenium.clickAt("publicMode", "1,1");
selenium.clickAt("link=Edit Permission Setting", "1,1");
selenium.clickAt("link=Select Permission", "1,1");
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_21.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_21.java 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_21.java 2010-01-23
00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_21 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_21() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-ChangePortal-");
selenium.clickAt("link=Sign in", "1,1");
@@ -27,10 +33,18 @@
Thread.sleep(1000);
}
selenium.clickAt("link=Add New Portal", "1,1");
-selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'PortalSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PortalSetting')\"]",
"1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if
(selenium.isElementPresent("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'PortalSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PortalSetting')\"]"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
+selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'PortalSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PortalSetting')\"]",
"1,1");
selenium.type("name", "test_portal_name_21");
-selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')\"]",
"1,1");
-selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'PermissionSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PermissionSetting')\"]",
"1,1");
+selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')\"]",
"1,1");
+selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'PermissionSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PermissionSetting')\"]",
"1,1");
selenium.clickAt("publicMode", "1,1");
selenium.clickAt("link=Edit Permission Setting", "1,1");
selenium.clickAt("link=Select Permission", "1,1");
@@ -49,6 +63,28 @@
assertTrue(selenium.isTextPresent("test_portal_name_21"));
System.out.println("--View new portal");
selenium.clickAt("link=test_portal_name_21", "1,1");
+selenium.clickAt("link=Site", "1,1");
+System.out.println("--Delete new portal");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if
(selenium.isElementPresent("//div[@id='UISiteManagement']/table[2]//td[3]/a[4]"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
}
+selenium.clickAt("//div[@id='UISiteManagement']/table[2]//td[3]/a[4]",
"1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+if (selenium.getConfirmation().equals("Are you sure you want to delete this
portal?")) {
+break;
+}
+}
+catch (Exception e) {
+}
+Thread.sleep(1000);
+}
+}
}
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_22.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_22.java 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_22.java 2010-01-23
00:10:34 UTC (rev 1425)
@@ -3,13 +3,25 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_22 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_22() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/private/classic/");
+setSpeed();
+selenium.open("/portal/public/classic/");
+System.out.println("-EditPortalLayout-");
+selenium.clickAt("link=Sign in", "1,1");
+selenium.type("username", "root");
+selenium.type("password", "gtn");
+selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+selenium.waitForPageToLoad("30000");
selenium.click("link=Site");
selenium.waitForPageToLoad("30000");
selenium.clickAt("link=Edit Layout", "1,1");
@@ -81,6 +93,49 @@
Thread.sleep(1000);
}
selenium.clickAt("link=classic", "1,1");
+System.out.println("--Verify");
+selenium.click("link=Site");
+selenium.waitForPageToLoad("30000");
+selenium.clickAt("link=Edit Layout", "1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("link=Portal Properties"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
}
+selenium.clickAt("link=Portal Properties", "1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("locale"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
+assertTrue(selenium.isTextPresent("French (France)"));
+selenium.select("locale", "label=French (France)");
+selenium.click("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']//div[3]//div[@class='MiddleTab']");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("publicMode"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
+selenium.clickAt("//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']",
"1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("link=classic"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
+selenium.clickAt("link=classic", "1,1");
+selenium.clickAt("link=Sign out", "1,1");
+}
}
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_23.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_23.java 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_23.java 2010-01-23
00:10:34 UTC (rev 1425)
@@ -3,13 +3,21 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_23 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_23() throws Exception {
-selenium.setSpeed("500");
-selenium.click("link=Sign in");
+setSpeed();
+selenium.open("/portal/public/classic");
+System.out.println("-AddNavigation-");
+selenium.clickAt("link=Sign in", "1,1");
selenium.type("username", "root");
selenium.type("password", "gtn");
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
@@ -45,25 +53,28 @@
Thread.sleep(1000);
}
selenium.clickAt("link=Add Node", "1,1");
-selenium.type("name", "grp_node");
-selenium.type("label", "new_grp_node");
+selenium.type("name", "test_grp_node_23");
+selenium.type("label", "test_grp_label_23");
+System.out.println("--Choose \"Page Selector\" tab");
selenium.clickAt("//div[@class='CenterHorizontalTabs']//div[@class='NormalTab']//div[@class='MiddleTab']",
"1,1");
selenium.clickAt("link=Search and Select Page", "1,1");
+System.out.println("--Select the first page from pages list");
selenium.clickAt("//div[@id='UIRepeater']//img[@class='SelectPageIcon']",
"1,1");
selenium.clickAt("link=Save", "1,1");
selenium.clickAt("link=Save", "1,1");
-selenium.check("//a[(a)onclick='eXo.portal.logout();']");
-selenium.waitForPageToLoad("30000");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
- if (selenium.isElementPresent("link=new_grp_node"))
+ if (selenium.isElementPresent("link=test_grp_label_23"))
break; }
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.click("link=new_grp_node");
+selenium.click("link=test_grp_label_23");
selenium.waitForPageToLoad("30000");
+System.out.println("--Delete new group navigation");
+System.out.println("-----------");
+selenium.clickAt("link=Sign out", "1,1");
}
}
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_24.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_24.java 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_24.java 2010-01-23
00:10:34 UTC (rev 1425)
@@ -3,19 +3,86 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_24 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_24() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
+selenium.open("/portal/public/classic");
+System.out.println("-EditDeleteNavigation-");
+selenium.clickAt("link=Sign in", "1,1");
+selenium.type("username", "root");
+selenium.type("password", "gtn");
+selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
+selenium.waitForPageToLoad("30000");
selenium.open("/portal/private/classic/");
selenium.click("link=Group");
selenium.waitForPageToLoad("30000");
-selenium.clickAt("//a[@class='EditProIcon']", "1,1");
-selenium.type("description", "more and more");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("link=Add Navigation"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
+selenium.clickAt("link=Add Navigation", "1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("link=Cancel"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
+selenium.clickAt("link=Cancel", "1,1");
+selenium.clickAt("link=Edit Navigation", "1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("link=Add Node"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
+selenium.clickAt("link=Add Node", "1,1");
+selenium.type("name", "test_grp_node_24");
+selenium.type("label", "test_grp_label_24");
+System.out.println("--Choose \"Page Selector\" tab");
+selenium.clickAt("//div[@class='CenterHorizontalTabs']//div[@class='NormalTab']//div[@class='MiddleTab']",
"1,1");
+selenium.clickAt("link=Search and Select Page", "1,1");
+System.out.println("--Select the first page from pages list");
+selenium.clickAt("//div[@id='UIRepeater']//img[@class='SelectPageIcon']",
"1,1");
selenium.clickAt("link=Save", "1,1");
-assertTrue(selenium.isTextPresent(""));
+selenium.clickAt("link=Save", "1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("link=test_grp_label_24"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
}
+selenium.click("link=test_grp_label_24");
+selenium.waitForPageToLoad("30000");
+System.out.println("--Edit navigation properties");
+selenium.click("link=Group");
+selenium.waitForPageToLoad("30000");
+selenium.clickAt("//div[@id='UIGroupNavigationGrid']/table[4]//td[@class='ActionBlock']//a[@class='EditProIcon']",
"1,1");
+selenium.type("description", "test_description_edit_24");
+selenium.select("priority", "10");
+selenium.clickAt("link=Save", "1,1");
+assertTrue(selenium.isTextPresent("Description: test_description_edit_24"));
+System.out.println("--Delete new group navigation");
+System.out.println("-----------");
+selenium.clickAt("link=Sign out", "1,1");
+}
}
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_25.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_25.java 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_25.java 2010-01-23
00:10:34 UTC (rev 1425)
@@ -3,13 +3,25 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_25 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_25() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/private/classic/");
+setSpeed();
+selenium.open("/portal/public/classic");
+System.out.println("-EditNavActions_Rightclickmenu-");
+selenium.clickAt("link=Sign in", "1,1");
+selenium.type("username", "root");
+selenium.type("password", "gtn");
+selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
+selenium.waitForPageToLoad("30000");
selenium.click("link=Group");
selenium.waitForPageToLoad("30000");
for (int second = 0;; second++) {
@@ -38,8 +50,8 @@
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.type("name", "Hihizzz");
-selenium.type("label", "Hohohozzz");
+selenium.type("name", "test_grp_node_25");
+selenium.type("label", "test_grp_label_25");
selenium.clickAt("css=div#UIGroupNavigationManagement div.UIPopupWindow
div.TabsContainer div.NormalTab div.MiddleTab", "1,1");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
@@ -69,8 +81,10 @@
}
selenium.clickAt("link=Save", "1,1");
selenium.clickAt("link=Save", "1,1");
-selenium.clickAt("link=Hohohozzz", "1,1");
-selenium.open("/portal/private/classic/");
+selenium.clickAt("link=test_grp_label_25", "1,1");
+System.out.println("--Edit node's page");
+System.out.println("---Rightclick on link in group");
+selenium.clickAt("link=Sign out", "1,1");
}
}
Deleted:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_27_1.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_27_1.java 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_27_1.java 2010-01-23
00:10:34 UTC (rev 1425)
@@ -1,75 +0,0 @@
-package org.exoplatform.portal.selenium;
-
-import com.thoughtworks.selenium.*;
-import java.util.regex.Pattern;
-public class Test_SNF_PRL_27_1 extends SeleneseTestCase {
-public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
-}
-
-public void testSNF_PRL_27_1() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/private/classic/");
-selenium.clickAt("link=Page Management", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//div[@id='UIPageBrowser']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Add New Page", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("pageName"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.type("pageName", "newpage21211");
-selenium.type("pageDisplayName", "new page21211");
-selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]",
"1,1");
-selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]",
"1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if
(selenium.isElementPresent("//div[@id='Administration/AccountPortlet']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=View Page properties", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isTextPresent("Show Max Window"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='UIMaskWorkspace']//div[3]//div[@class='MiddleTab']",
"1,1");
-selenium.clickAt("link=Edit Permission Setting", "1,1");
-selenium.clickAt("link=Cancel", "1,1");
-selenium.clickAt("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]",
"1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//img[@alt='']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Edit Page", "1,1");
-selenium.clickAt("link=View Page properties", "1,1");
-selenium.clickAt("//div[@id='UIMaskWorkspace']//div[3]//div[@class='MiddleTab']",
"1,1");
-selenium.clickAt("link=Add Permission", "1,1");
-selenium.clickAt("link=Platform", "1,1");
-selenium.clickAt("link=Administrators", "1,1");
-selenium.clickAt("//div[@id='UIPageFormPopupGroupMembershipSelector']//div[@class='MembershipSelector']//a",
"1,1");
-selenium.clickAt("link=Save", "1,1");
-selenium.clickAt("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]",
"1,1");
-}
-
-}
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_28.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_28.java 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_28.java 2010-01-23
00:10:34 UTC (rev 1425)
@@ -3,18 +3,27 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_28 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_28() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
+selenium.open("/portal/public/classic");
+System.out.println("-ActionsDashboardpage-");
+selenium.clickAt("link=Sign in", "1,1");
selenium.type("username", "root");
selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
selenium.waitForPageToLoad("30000");
-selenium.open("/portal/private/classic/");
selenium.clickAt("link=Dashboard", "1,1");
+System.out.println("--Add gadgets into dashboard page");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
@@ -24,9 +33,66 @@
Thread.sleep(1000);
}
selenium.clickAt("link=Add Gadgets", "1,1");
-selenium.type("//input[@id='url']",
"http://hosting.gmodules.com/ig/gadgets/file/112581010116074801021/treefrog.xml");
+System.out.println("--By url");
+selenium.type("//input[@id='url']",
"http://www.google.com/ig/modules/datetime.xml");
selenium.clickAt("//img[@class='AddNewNodeIcon']", "1,1");
selenium.clickAt("//div[@id='UIAddGadgetPopup']//div[@class='CloseButton']",
"1,1");
+assertTrue(selenium.isElementPresent("//div[@class='GadgetTitle']"));
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("//div[@class='CloseGadget IconControl' and
@title='Delete Gadget']"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
}
+selenium.clickAt("//div[@class='CloseGadget IconControl' and
@title='Delete Gadget']", "1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+if (selenium.getConfirmation().equals("Are you sure to delete this gadget?"))
{
+break;
+}
+}
+catch (Exception e) {
+}
+Thread.sleep(1000);
+}
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("link=Add Gadgets"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
+selenium.clickAt("link=Add Gadgets", "1,1");
+System.out.println("--By drag and drop");
+selenium.dragAndDropToObject("//div[@class='GadgetTitle' and
@title='Calculator']","//div[@class='GadgetTitle' and
@title='Calculator']");
+selenium.clickAt("//div[@id='UIAddGadgetPopup']//div[@class='CloseButton']",
"1,1");
+assertTrue(selenium.isElementPresent("//div[@class='GadgetTitle']"));
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("//div[@class='CloseGadget
IconControl']"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
+selenium.clickAt("//div[@title='Delete Gadget']", "1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+if (selenium.getConfirmation().equals("Are you sure to delete this gadget?"))
{
+break;
+}
+}
+catch (Exception e) {
+}
+Thread.sleep(1000);
+}
+assertTrue(selenium.isTextPresent("Drag your gadgets here."));
+selenium.clickAt("link=Sign out", "1,1");
+}
}
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_29.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_29.java 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_29.java 2010-01-23
00:10:34 UTC (rev 1425)
@@ -3,16 +3,27 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_29 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_29() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
+selenium.open("/portal/public/classic");
+System.out.println("-AddEditPageEditLayoutDashboard-");
+selenium.clickAt("link=Sign in", "1,1");
selenium.type("username", "root");
selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
selenium.waitForPageToLoad("30000");
+selenium.clickAt("link=Dashboard", "1,1");
+System.out.println("--Add new page in dashboard");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
@@ -22,6 +33,7 @@
Thread.sleep(1000);
}
selenium.clickAt("link=Add New Page", "1,1");
+System.out.println("--Choose \"root\" node");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
@@ -30,29 +42,56 @@
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.type("pageName", "dashboardpage12");
-selenium.type("pageDisplayName", "dashboard new page12");
+selenium.type("pageName", "test_dashboardpage_29");
+selenium.type("pageDisplayName", "test_dashboardpage_name_29");
+System.out.println("--Click Next to move to step 2");
selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]",
"1,1");
+System.out.println("--Click Next to move to step 3, keep Empty layout");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if
(selenium.isElementPresent("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]",
"1,1");
+System.out.println("--Open Editor pane");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if
(selenium.isElementPresent("//div[(a)onclick='eXo.portal.UIPortal.toggleComposer(this)']"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
selenium.clickAt("//div[(a)onclick='eXo.portal.UIPortal.toggleComposer(this)']",
"1,1");
-selenium.click("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]");
-assertTrue(selenium.isTextPresent("dashboard new page"));
-selenium.clickAt("link=Edit Page", "1,1");
-selenium.clickAt("link=View Page properties", "1,1");
+System.out.println("--Click Save to complete adding page");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
- if (selenium.isElementPresent("title"))
+ if
(selenium.isElementPresent("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]"))
break; }
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.type("title", "new dashboard");
-selenium.clickAt("link=Save", "1,1");
-selenium.clickAt("//div[@id='UIPageEditor']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']",
"1,1");
+selenium.clickAt("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]",
"1,1");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
+ if (selenium.isTextPresent("test_dashboardpage_name_29"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
+assertTrue(selenium.isTextPresent("test_dashboardpage_name_29"));
+System.out.println("--Edit page in dashboard");
+selenium.type("1", "test_dashboardpage_edit_29");
+System.out.println("--Edit Dashboard layout");
+selenium.clickAt("link=test_dashboardpage_edit_29", "1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
if (selenium.isElementPresent("link=Edit Layout"))
break; }
catch (Exception e) {}
@@ -61,9 +100,32 @@
selenium.clickAt("link=Edit Layout", "1,1");
selenium.clickAt("link=Portal Properties", "1,1");
selenium.select("locale", "label=English");
-selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')\"]",
"1,1");
+selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')\"]",
"1,1");
selenium.clickAt("link=Save", "1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if
(selenium.isElementPresent("//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
selenium.clickAt("//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']",
"1,1");
+System.out.println("--Delete page");
+selenium.clickAt("//div[@class='SelectedTab']//img[@class='CloseIcon']",
"1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+if (selenium.getConfirmation().equals("Really want to remove this dashboard?"))
{
+break;
}
+}
+catch (Exception e) {
+}
+Thread.sleep(1000);
+}
+assertFalse(selenium.isTextPresent("test_dashboardpage_edit_29"));
+selenium.clickAt("link=Sign out", "1,1");
+}
}
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_30.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_30.java 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_30.java 2010-01-23
00:10:34 UTC (rev 1425)
@@ -3,13 +3,27 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_30 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_30() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/private/classic/");
+setSpeed();
+selenium.open("/portal/public/classic");
+System.out.println("-DashboardSiteManagement-");
+selenium.clickAt("link=Sign in", "1,1");
+selenium.type("username", "root");
+selenium.type("password", "gtn");
+selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
+selenium.waitForPageToLoad("30000");
+selenium.clickAt("link=Dashboard", "1,1");
+System.out.println("--Add new page in dashboard");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
@@ -19,18 +33,20 @@
Thread.sleep(1000);
}
selenium.clickAt("link=Add New Page", "1,1");
+System.out.println("--Choose \"root\" node");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
- if
(selenium.isElementPresent("//div[@id='UIPageNodeSelector']//div[@class='HomeNode']/a"))
+ if (selenium.isElementPresent("pageName"))
break; }
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.clickAt("//div[@id='UIPageNodeSelector']//div[@class='HomeNode']/a",
"1,1");
-selenium.type("pageName", "test9");
-selenium.type("pageDisplayName", "test9");
+selenium.type("pageName", "test_dashboardpage_30");
+selenium.type("pageDisplayName", "test_dashboardpage_name_30");
+System.out.println("--Click Next to move to step 2");
selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]",
"1,1");
+System.out.println("--Click Next to move to step 3, keep Empty layout");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
@@ -40,43 +56,37 @@
Thread.sleep(1000);
}
selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]",
"1,1");
+System.out.println("--Open Editor pane");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
- if (selenium.isElementPresent("link=View Page properties"))
+ if
(selenium.isElementPresent("//div[(a)onclick='eXo.portal.UIPortal.toggleComposer(this)']"))
break; }
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.clickAt("link=View Page properties", "1,1");
+selenium.clickAt("//div[(a)onclick='eXo.portal.UIPortal.toggleComposer(this)']",
"1,1");
+System.out.println("--Click Save to complete adding page");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
- if (selenium.isElementPresent("title"))
+ if
(selenium.isElementPresent("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]"))
break; }
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.type("title", "test9_changed");
-selenium.clickAt("link=Save", "1,1");
-selenium.clickAt("css=a.EdittedSaveButton", "1,1");
+selenium.clickAt("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]",
"1,1");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
- if (selenium.isElementPresent("link=Edit Page"))
+ if (selenium.isTextPresent("test_dashboardpage_name_30"))
break; }
catch (Exception e) {}
Thread.sleep(1000);
}
+assertTrue(selenium.isTextPresent("test_dashboardpage_name_30"));
+System.out.println("--Edit page in dashboard");
selenium.clickAt("link=Edit Page", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=View Page properties"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
selenium.clickAt("link=View Page properties", "1,1");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
@@ -86,69 +96,56 @@
catch (Exception e) {}
Thread.sleep(1000);
}
-assertEquals("test9_changed", selenium.getValue("title"));
+selenium.type("title", "test_dashboardpage_edit_30");
+selenium.clickAt("link=Save", "1,1");
+selenium.clickAt("//div[@id='UIPageEditor']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']",
"1,1");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
- if
(selenium.isElementPresent("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']"))
+ if (selenium.isElementPresent("link=Page Management"))
break; }
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.clickAt("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']",
"1,1");
+System.out.println("--Edit Dashboard layout");
+selenium.clickAt("link=test_dashboardpage_name_30", "1,1");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
- if (selenium.isElementPresent("publicMode"))
+ if (selenium.isElementPresent("link=Edit Layout"))
break; }
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.clickAt("publicMode", "1,1");
-selenium.clickAt("link=Add Permission", "1,1");
+selenium.clickAt("link=Edit Layout", "1,1");
+selenium.clickAt("link=Portal Properties", "1,1");
+selenium.select("locale", "label=English");
+selenium.clickAt("//div[(a)onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')\"]",
"1,1");
+selenium.clickAt("link=Save", "1,1");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
- if (selenium.isElementPresent("link=Platform"))
+ if
(selenium.isElementPresent("//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']"))
break; }
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.clickAt("link=Platform", "1,1");
+selenium.clickAt("//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']",
"1,1");
+System.out.println("--Delete page");
+selenium.clickAt("//div[@class='SelectedTab']//img[@class='CloseIcon']",
"1,1");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
- if (selenium.isElementPresent("link=Administrators"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
+if (selenium.getConfirmation().equals("Really want to remove this dashboard?"))
{
+break;
}
-selenium.clickAt("link=Administrators", "1,1");
-selenium.clickAt("link=exact:*", "1,1");
-selenium.clickAt("link=Edit Permission Setting", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Select Permission"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
}
-selenium.clickAt("link=Select Permission", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Platform"))
-break; }
- catch (Exception e) {}
+catch (Exception e) {
+}
Thread.sleep(1000);
}
-selenium.clickAt("link=Platform", "1,1");
-selenium.clickAt("//div[@id='PermissionSelector']//div[@class='MembershipSelector']//div[@class='OverflowContainer']/div[3]/a",
"1,1");
-selenium.clickAt("link=Save", "1,1");
-selenium.clickAt("//div[@id='UIPageEditor']//div[@class='TLPortalComposer']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']",
"1,1");
-assertTrue(selenium.isTextPresent("test9"));
-selenium.open("/portal/private/classic/");
+assertFalse(selenium.isTextPresent("test_dashboardpage_name_30"));
+selenium.clickAt("link=Sign out", "1,1");
}
}
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_31.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_31.java 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_31.java 2010-01-23
00:10:34 UTC (rev 1425)
@@ -3,18 +3,25 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_31 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_31() throws Exception {
-selenium.setSpeed("500");
-selenium.click("link=Sign in");
+setSpeed();
+selenium.open("/portal/public/classic");
+System.out.println("-ChangeLanguagePrivateMode-");
+selenium.clickAt("link=Sign in", "1,1");
selenium.type("username", "root");
selenium.type("password", "gtn");
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
selenium.waitForPageToLoad("30000");
-selenium.open("/portal/private/classic/");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
@@ -24,6 +31,7 @@
Thread.sleep(1000);
}
selenium.clickAt("link=Change Language", "1,1");
+System.out.println("--Change to French");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
@@ -35,8 +43,10 @@
selenium.clickAt("link=French", "1,1");
selenium.click("link=Apply");
selenium.waitForPageToLoad("30000");
+System.out.println("--Verify");
assertTrue(selenium.isTextPresent("Accueil"));
selenium.clickAt("link=Changer la langue", "1,1");
+System.out.println("--Change back to English");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
@@ -49,6 +59,7 @@
selenium.click("link=Appliquer");
selenium.waitForPageToLoad("30000");
assertTrue(selenium.isTextPresent("Home"));
+selenium.clickAt("link=Sign out", "1,1");
}
}
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_32.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_32.java 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_32.java 2010-01-23
00:10:34 UTC (rev 1425)
@@ -3,18 +3,25 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_32 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_32() throws Exception {
-selenium.setSpeed("500");
-selenium.click("link=Sign in");
+setSpeed();
+selenium.open("/portal/public/classic");
+System.out.println("-ChangeDisplaySkin-");
+selenium.clickAt("link=Sign in", "1,1");
selenium.type("username", "root");
selenium.type("password", "gtn");
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
selenium.waitForPageToLoad("30000");
-selenium.open("/portal/private/classic/");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
@@ -27,6 +34,9 @@
selenium.clickAt("//div[@id='UITabContent']//div[@class='ItemListContainer']//div[@class='ItemList']//div[@class='SelectedItem
Item']", "1,1");
selenium.clickAt("//div[@id='UIMaskWorkspace']//div[@class='ActionButton
LightBlueStyle']", "1,1");
selenium.waitForPageToLoad("30000");
+System.out.println("--Verify");
+System.out.println("---------");
+selenium.clickAt("link=Sign out", "1,1");
}
}
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_34.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_34.java 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_34.java 2010-01-23
00:10:34 UTC (rev 1425)
@@ -3,32 +3,35 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_34 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_34() throws Exception {
-selenium.setSpeed("500");
-selenium.click("link=Sign in");
+setSpeed();
+selenium.open("/portal/public/classic");
+System.out.println("-LogoPortletAccSetting-");
+selenium.clickAt("link=Sign in", "1,1");
selenium.type("username", "root");
selenium.type("password", "gtn");
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
selenium.waitForPageToLoad("30000");
-selenium.open("/portal/private/classic/");
-selenium.clickAt("link=Root Root", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("email"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.type("email", "mytest.exo10(a)gmail.com");
-selenium.type("lastName", "Root");
+selenium.clickAt("link=Dashboard", "1,1");
+System.out.println("--Edit Logo Picture");
+selenium.clickAt("link=Edit Layout", "1,1");
+selenium.clickAt("//form[@id='UILogoEditMode']/div[2]/div/div/table/tbody/tr/td/div/div/div/div",
"1,1");
+selenium.type("logoUrl", "url to define !!");
selenium.clickAt("link=Save", "1,1");
-selenium.clickAt("link=OK", "1,1");
selenium.clickAt("link=Close", "1,1");
+selenium.clickAt("//div[@id='UIPortalComposer']/div[1]/div/div/div/a[2]",
"1,1");
+assertTrue(selenium.isElementPresent("//div[@id='UILogoPortlet']/a/img[(a)src='/eXoResources/skin/sharedImages/DashboardIcon.png']"));
+selenium.clickAt("link=Sign out", "1,1");
}
}
Deleted:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_35.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_35.java 2010-01-22
22:39:11 UTC (rev 1424)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_35.java 2010-01-23
00:10:34 UTC (rev 1425)
@@ -1,122 +0,0 @@
-package org.exoplatform.portal.selenium;
-
-import com.thoughtworks.selenium.*;
-import java.util.regex.Pattern;
-public class Test_SNF_PRL_35 extends SeleneseTestCase {
-public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
-}
-
-public void testSNF_PRL_35() throws Exception {
-selenium.setSpeed("500");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.clickAt("link=Sign in", "1,1");
-selenium.open("/portal/private/classic/administration/pageManagement");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//div[@id='UIPageBrowser']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='UIPageBrowser']//div[@class='UIAction']//div[@class='ActionButton
LightBlueStyle']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("name"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.type("name", "user_page1");
-selenium.type("title", "user_page_title1");
-selenium.clickAt("link=Save", "1,1");
-selenium.clickAt("//div[@id='UIPageBrowser']//div[@class='UIAction']//div[@class='ActionButton
LightBlueStyle']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//div[@id='UIMaskWorkspace']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.select("ownerType", "label=portal");
-selenium.type("name", "portal_page1");
-selenium.type("title", "portal_page_title1");
-selenium.clickAt("link=Save", "1,1");
-selenium.clickAt("//div[@id='UIPageBrowser']//div[@class='UIAction']//div[@class='ActionButton
LightBlueStyle']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//div[@id='UIMaskWorkspace']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.select("ownerType", "label=group");
-selenium.clickAt("//option[@value='group']", "1,1");
-selenium.type("name", "group_page1");
-selenium.type("title", "group_page_title1");
-selenium.clickAt("link=Save", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if
(selenium.isElementPresent("//div[@id='UIRepeater']//img[@class='EditInfoIcon']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='UIRepeater']//img[@class='EditInfoIcon']",
"1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if
(selenium.isElementPresent("//div[@id='UIPageEditor']//div[@class='PageProfileIcon']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='UIPageEditor']//div[@class='PageProfileIcon']",
"1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if
(selenium.isElementPresent("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']//div[3]//div[@class='MiddleTab']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']//div[3]//div[@class='MiddleTab']",
"1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if
(selenium.isElementPresent("//div[@id='UIListPermissionSelector']//input[@class='checkbox']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='UIListPermissionSelector']//input[@class='checkbox']",
"1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Save"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Save", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if
(selenium.isElementPresent("//div[@id='UIPageEditor']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='UIPageEditor']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']",
"1,1");
-assertTrue(selenium.isTextPresent("user_page_title1"));
-assertTrue(selenium.isTextPresent("group_page_title1"));
-assertTrue(selenium.isTextPresent("portal_page_title1"));
-}
-
-}