Author: dbaeli
Date: 2010-01-21 22:14:28 -0500 (Thu, 21 Jan 2010)
New Revision: 1413
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/Readme.txt
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_03.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_04.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_05.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_06.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_07.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_08.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_09.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_10.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_15.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_18.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_20.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_27_1.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_27_1.java
Log:
GTNPORTAL-509: Selenium Sniff test
* Update for first tests (comments and data with test id to identify the running test)
* Tests from 11 to 20 updated
* Test_All run tests from 02 to 20 (4 Failures and 2 Errors on GateIn Beta04)
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/Readme.txt
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/Readme.txt 2010-01-22 03:05:14 UTC (rev
1412)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/Readme.txt 2010-01-22 03:14:28 UTC (rev
1413)
@@ -19,3 +19,11 @@
** One Test per Selenium test
** One Test_all.java test which is a all in one (because currently the tests execution
order is important) -- should not be the case
+****************************
+Running the tests in Eclipse
+****************************
+* Install SeleniumRC from
http://seleniumhq.org/download/
+** Probably
http://release.seleniumhq.org/selenium-remote-control/1.0.1/selenium-remo...
+* Start a Selenium Server
+** java -jar selenium-server.jar -interactive
+* In Eclipse run you tests like classical JUnit tests
\ No newline at end of file
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
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/TestSuite_SNF_PRL.html 2010-01-22
03:14:28 UTC (rev 1413)
@@ -1,42 +1,46 @@
-<?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_15.html">SNF_PRL_15</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_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>
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
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_02.html 2010-01-22
03:14:28 UTC (rev 1413)
@@ -17,6 +17,16 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-New Account-</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>--Register new account</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAndWait</td>
<td>link=Register</td>
<td></td>
@@ -24,32 +34,32 @@
<tr>
<td>type</td>
<td>User Name:</td>
- <td>abc123</td>
+ <td>test_user_02</td>
</tr>
<tr>
<td>type</td>
<td>Password:</td>
- <td>121212</td>
+ <td>test_pwd_02</td>
</tr>
<tr>
<td>type</td>
<td>Confirm Password:</td>
- <td>121212</td>
+ <td>test_pwd_02</td>
</tr>
<tr>
<td>type</td>
<td>First Name:</td>
- <td>Aha</td>
+ <td>test_name_first_02</td>
</tr>
<tr>
<td>type</td>
<td>Last Name:</td>
- <td>Nguyen</td>
+ <td>test_name_last_02</td>
</tr>
<tr>
<td>type</td>
<td>Email Address:</td>
- <td>th4nhc0n9z(a)yahoo.com</td>
+ <td>test_user_02(a)yahoo.com</td>
</tr>
<tr>
<td>clickAt</td>
@@ -63,9 +73,89 @@
</tr>
<tr>
<td>echo</td>
- <td>!!! missing assert to check user exists !!!</td>
+ <td>--Verification</td>
<td></td>
</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign in</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>username</td>
+ <td>test_user_02</td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>password</td>
+ <td>test_pwd_02</td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>//div[@id='UIPortalLoginFormAction']//a</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>test_name_first_02 test_name_last_02</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign out</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>--Delete new user</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>clickAt</td>
+ <td>//div[@id='UIPortalLoginFormAction']//a</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Users and groups management</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>link=Users and groups management</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>//div[@class='UIListUsers']//tbody/tr[5]//img[@class='DeleteUserIcon']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForConfirmation</td>
+ <td>Are you sure you want to delete test_user_02 user?</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_03.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_03.html 2010-01-22
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_03.html 2010-01-22
03:14:28 UTC (rev 1413)
@@ -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>ChangeLanguagePublic</title>
+<title>SNF_PRL_03</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1"
colspan="3">ChangeLanguagePublic</td></tr>
+<tr><td rowspan="1"
colspan="3">SNF_PRL_03</td></tr>
</thead><tbody>
<tr>
<td>open</td>
@@ -17,6 +17,11 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-Change Language-</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//a[@class='Language']</td>
<td>1,1</td>
@@ -61,6 +66,11 @@
<td>link=Áp dụng</td>
<td></td>
</tr>
+<tr>
+ <td>verifyElementPresent</td>
+ <td>link=Sign in</td>
+ <td></td>
+</tr>
</tbody></table>
</body>
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_04.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_04.html 2010-01-22
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_04.html 2010-01-22
03:14:28 UTC (rev 1413)
@@ -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="http://localhost:8080" />
-<title>SignInOut</title>
+<title>SNF_PRL_04</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1"
colspan="3">SignInOut</td></tr>
+<tr><td rowspan="1"
colspan="3">SNF_PRL_04</td></tr>
</thead><tbody>
<tr>
<td>open</td>
@@ -17,6 +17,11 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-SignInOut-</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
<td>link=Sign in</td>
<td></td>
@@ -52,7 +57,7 @@
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
+ <td>verifyElementPresent</td>
<td>link=Sign in</td>
<td></td>
</tr>
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_05.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_05.html 2010-01-22
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_05.html 2010-01-22
03:14:28 UTC (rev 1413)
@@ -17,7 +17,12 @@
<td></td>
</tr>
<tr>
- <td>click</td>
+ <td>echo</td>
+ <td>-RememberMyLogin-</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
<td>link=Sign in</td>
<td></td>
</tr>
@@ -32,7 +37,7 @@
<td>gtn</td>
</tr>
<tr>
- <td>click</td>
+ <td>clickAt</td>
<td>rememberme</td>
<td></td>
</tr>
@@ -47,7 +52,7 @@
<td></td>
</tr>
<tr>
- <td>click</td>
+ <td>clickAt</td>
<td>link=Sign out</td>
<td></td>
</tr>
@@ -57,6 +62,11 @@
<td>1,1</td>
</tr>
<tr>
+ <td>echo</td>
+ <td>##"Sign out" resets
"rememberme"</td>
+ <td></td>
+</tr>
+<tr>
<td>verifyChecked</td>
<td>rememberme</td>
<td></td>
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_06.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_06.html 2010-01-22
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_06.html 2010-01-22
03:14:28 UTC (rev 1413)
@@ -17,6 +17,11 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-UserManagement-</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
<td>link=Sign in</td>
<td></td>
@@ -77,6 +82,11 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Edit fields</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//div[@id='UIListUsersGird']//tbody/tr[3]//td[5]//div//img</td>
<td></td>
@@ -89,7 +99,7 @@
<tr>
<td>type</td>
<td>firstName</td>
- <td>exo2</td>
+ <td>test_user_06</td>
</tr>
<tr>
<td>clickAt</td>
@@ -124,22 +134,17 @@
<tr>
<td>type</td>
<td>user.name.given</td>
- <td>test</td>
+ <td>test_name_given_06</td>
</tr>
<tr>
<td>type</td>
- <td>user.name.given</td>
- <td>test05</td>
-</tr>
-<tr>
- <td>type</td>
<td>user.name.family</td>
- <td>test05family</td>
+ <td>test_name_family_06</td>
</tr>
<tr>
<td>type</td>
<td>user.name.nickName</td>
- <td>testnick</td>
+ <td>test_name_nick_06</td>
</tr>
<tr>
<td>clickAt</td>
@@ -167,8 +172,13 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Verify changes</td>
+ <td></td>
+</tr>
+<tr>
<td>verifyTextPresent</td>
- <td>exo2</td>
+ <td>test_user_06</td>
<td></td>
</tr>
<tr>
@@ -177,7 +187,7 @@
<td></td>
</tr>
<tr>
- <td>click</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_07.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_07.html 2010-01-22
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_07.html 2010-01-22
03:14:28 UTC (rev 1413)
@@ -17,6 +17,11 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-GroupManagement-</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
<td>link=Sign in</td>
<td></td>
@@ -37,12 +42,17 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Select "Users and groups management" in menu</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>link=Group</td>
<td></td>
</tr>
<tr>
- <td>click</td>
+ <td>clickAt</td>
<td>link=Group</td>
<td></td>
</tr>
@@ -66,14 +76,22 @@
<td>//div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[2]/div/div/div/div[3]/div/a</td>
<td></td>
</tr>
-<!--Select "Organization" group from group tree-->
<tr>
+ <td>echo</td>
+ <td>--Select "Organization" group from group tree</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//div[@id='UIOrganizationPortlet']//div[3]//div[@class='ExpandIcon']/a</td>
<td></td>
</tr>
-<!--Select "Management group" from group tree-->
<tr>
+ <td>echo</td>
+ <td>--Select "Management group" from group tree</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForTextPresent</td>
<td>Management</td>
<td></td>
@@ -83,8 +101,12 @@
<td>//div[@id='UIOrganizationPortlet']//div[3]//div[@class='ExpandIcon']/a</td>
<td></td>
</tr>
-<!--Click Add new group icon-->
<tr>
+ <td>echo</td>
+ <td>--Click Add new group icon</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//div[@id='UIOrganizationPortlet']//div[@class='TitleBar']/a[@class='TreeActionIcon
AddGroupIcon']</td>
<td></td>
@@ -97,31 +119,39 @@
<tr>
<td>type</td>
<td>groupName</td>
- <td>testgroup</td>
+ <td>test_group_name_07</td>
</tr>
<tr>
<td>type</td>
<td>label</td>
- <td>testgroup label</td>
+ <td>test_group_label_07</td>
</tr>
<tr>
<td>type</td>
<td>description</td>
- <td>testgroup description</td>
+ <td>test_group_description_07</td>
</tr>
-<!--Click "Save" to complete adding new group-->
<tr>
+ <td>echo</td>
+ <td>--Click "Save" to complete adding new group</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//form[@id='UIGroupForm']//div[@class='ActionButton
LightBlueStyle']</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
- <td>testgroup label</td>
+ <td>test_group_label_07</td>
<td></td>
</tr>
-<!--Click "Select User" icon-->
<tr>
+ <td>echo</td>
+ <td>--Click "Select User" icon</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//form[@id='UIGroupMembershipForm']//div[@class='HorizontalLayout']//table[@class='UIFormGrid']//td[@class='FieldComponent']/a</td>
<td></td>
@@ -132,27 +162,31 @@
<td></td>
</tr>
<tr>
- <td>click</td>
+ <td>clickAt</td>
<td>demo</td>
<td></td>
</tr>
<tr>
- <td>click</td>
+ <td>clickAt</td>
<td>john</td>
<td></td>
</tr>
<tr>
- <td>click</td>
+ <td>clickAt</td>
<td>mary</td>
<td></td>
</tr>
<tr>
- <td>click</td>
+ <td>clickAt</td>
<td>root</td>
<td></td>
</tr>
-<!--Click "Add" button-->
<tr>
+ <td>echo</td>
+ <td>--Click "Add" button</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//form[@id='UIUserSelector']//div[@class='UIAction']//a[@class='ActionButton
LightBlueStyle']</td>
<td></td>
@@ -188,7 +222,7 @@
<td></td>
</tr>
<tr>
- <td>click</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_08.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_08.html 2010-01-22
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_08.html 2010-01-22
03:14:28 UTC (rev 1413)
@@ -17,6 +17,11 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-MembershipManagement-</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
<td>link=Sign in</td>
<td></td>
@@ -37,6 +42,11 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Select "Users and groups management" in menu</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>link=Group</td>
<td></td>
@@ -56,21 +66,30 @@
<td>link=Users and groups management</td>
<td></td>
</tr>
-<!--Choose "Memebership Management" tab-->
<tr>
+ <td>echo</td>
+ <td>--Choose "Memebership Management" tab</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//div[@id='UIOrganizationPortlet']//div[@class='ManagementIconContainer']/a[@class='MembershipButton']</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Create new membership</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
<td>name</td>
- <td>demomembership</td>
+ <td>test_name_08</td>
</tr>
<tr>
<td>type</td>
<td>description</td>
- <td>demo scripts</td>
+ <td>test_description_08</td>
</tr>
<tr>
<td>clickAt</td>
@@ -79,18 +98,28 @@
</tr>
<tr>
<td>waitForTextPresent</td>
- <td>demomembership</td>
+ <td>test_name_08</td>
<td></td>
</tr>
<tr>
+ <td>verifyTextPresent</td>
+ <td>test_name_08</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>--Edit membership</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
- <td>//table[@class='UIGrid']//tbody/tr[3]/td[5]//img</td>
+ <td>//table[@class='UIGrid']//tbody/tr[2]/td[5]//img[@class='EditMembershipIcon']</td>
<td>1,1</td>
</tr>
<tr>
<td>type</td>
<td>description</td>
- <td>demo scripts add more text</td>
+ <td>test_description_edit_08</td>
</tr>
<tr>
<td>clickAt</td>
@@ -99,10 +128,30 @@
</tr>
<tr>
<td>waitForTextPresent</td>
- <td>demo scripts add more text</td>
+ <td>test_description_edit_08</td>
<td></td>
</tr>
<tr>
+ <td>verifyTextPresent</td>
+ <td>test_description_edit_08</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>--Delete membership</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>//table[@class='UIGrid']//tbody/tr[2]/td[5]//img[@class='DeleteMembershipIcon']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForConfirmation</td>
+ <td>Are you sure you want to delete this membership?</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAndWait</td>
<td>link=classic</td>
<td></td>
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_09.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_09.html 2010-01-22
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_09.html 2010-01-22
03:14:28 UTC (rev 1413)
@@ -17,7 +17,12 @@
<td></td>
</tr>
<tr>
- <td>click</td>
+ <td>echo</td>
+ <td>-AutoImport-</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
<td>link=Sign in</td>
<td></td>
</tr>
@@ -37,6 +42,11 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Select "Application Registry"</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Application Registry</td>
<td>1,1</td>
@@ -47,8 +57,13 @@
<td></td>
</tr>
<tr>
- <td>chooseOkOnNextConfirmation</td>
+ <td>echo</td>
+ <td>--Auto Import</td>
<td></td>
+</tr>
+<tr>
+ <td>verifyTextNotPresent</td>
+ <td>WSRP Admin Portlet</td>
<td></td>
</tr>
<tr>
@@ -62,8 +77,8 @@
<td></td>
</tr>
<tr>
- <td>echo</td>
- <td>!! missing assert !!</td>
+ <td>verifyTextPresent</td>
+ <td>WSRP Admin Portlet</td>
<td></td>
</tr>
<tr>
@@ -72,7 +87,7 @@
<td></td>
</tr>
<tr>
- <td>click</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_10.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_10.html 2010-01-22
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_10.html 2010-01-22
03:14:28 UTC (rev 1413)
@@ -17,6 +17,11 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-CategoryManagement-</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
<td>link=Sign in</td>
<td></td>
@@ -37,11 +42,21 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Select "Application Registry"</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Application Registry</td>
<td>1,1</td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Add Category</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//div[@id='UIApplicationOrganizer']//div[@class='UIControlbar']/div[1]</td>
<td>1,1</td>
@@ -54,19 +69,24 @@
<tr>
<td>type</td>
<td>name</td>
- <td>category_test</td>
+ <td>test_name_category_10</td>
</tr>
<tr>
<td>type</td>
<td>displayName</td>
- <td>Category test name</td>
+ <td>test_displayname_category_10</td>
</tr>
<tr>
<td>type</td>
<td>description</td>
- <td>category test description</td>
+ <td>test_description_category_10</td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Select permissions</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
<td>//div[@class='WorkingArea']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
<td></td>
@@ -112,6 +132,16 @@
<td></td>
</tr>
<tr>
+ <td>verifyTextPresent</td>
+ <td>test_displayname_category_10</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>--Edit Category</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//div[@id='UIApplicationOrganizer']//a[@class='ControlIcon
EditIcon']</td>
<td>1,1</td>
@@ -124,7 +154,7 @@
<tr>
<td>type</td>
<td>displayName</td>
- <td>category test edit</td>
+ <td>test_displayname_edit_10</td>
</tr>
<tr>
<td>clickAt</td>
@@ -132,11 +162,31 @@
<td></td>
</tr>
<tr>
- <td>waitForTextPresent</td>
- <td>category test edit</td>
+ <td>verifyTextPresent</td>
+ <td>test_displayname_edit_10</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Delete Category</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>//div[@class='SelectedTab']//a[@class='ControlIcon
DeleteIcon']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForConfirmation</td>
+ <td>Are you sure to delete this category and all applications on it?</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextNotPresent</td>
+ <td>test_displayname_edit_10</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>link=Sign out</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
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_11.html 2010-01-22
03:14:28 UTC (rev 1413)
@@ -17,7 +17,12 @@
<td></td>
</tr>
<tr>
- <td>click</td>
+ <td>echo</td>
+ <td>-AddApplicationToCategory-</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
<td>link=Sign in</td>
<td></td>
</tr>
@@ -42,19 +47,29 @@
<td>1,1</td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Add application to Administration Category</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//div[@class='ListContent']//div[@class='SelectedTab']//a[@class='ControlIcon
CreateNewIcon']</td>
<td>1,1</td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Select first application in list</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
- <td>//input[@name='application' and @value='9']</td>
+ <td>//input[@name='application' and @value='1']</td>
<td>1,1</td>
</tr>
<tr>
<td>type</td>
<td>displayName</td>
- <td>test10</td>
+ <td>test_displayname_11</td>
</tr>
<tr>
<td>clickAt</td>
@@ -63,12 +78,17 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>link=category test edit</td>
+ <td>//a[@class='TabLabel' and @title='Administration']</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Edit category permissions</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
- <td>link=category test edit</td>
+ <td>//a[@class='TabLabel' and @title='Administration']</td>
<td>1,1</td>
</tr>
<tr>
@@ -92,17 +112,32 @@
<td>1,1</td>
</tr>
<tr>
- <td>waitForTextPresent</td>
- <td>test10</td>
+ <td>verifyTextPresent</td>
+ <td>test_displayname_11</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Delete application</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>//div[@class='ListContent']//div[@class='UIVTabContent']/div[8]//a[@class='ControlIcon
DeletePortalIcon']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForConfirmation</td>
+ <td>Are you sure to delete this application?</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>link=Sign out</td>
<td></td>
</tr>
<tr>
- <td>click</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_13.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_13.html 2010-01-22
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_13.html 2010-01-22
03:14:28 UTC (rev 1413)
@@ -4,15 +4,50 @@
<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>AddGadget</title>
+<title>SNF_PRL_13</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1"
colspan="3">AddGadget</td></tr>
+<tr><td rowspan="1"
colspan="3">SNF_PRL_13</td></tr>
</thead><tbody>
<tr>
+ <td>open</td>
+ <td>/portal/public/classic/</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-AddGadget-</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>clickAt</td>
+ <td>link=Application Registry</td>
+ <td>1,1</td>
+</tr>
+<tr>
+ <td>clickAt</td>
<td>link=Gadget</td>
<td></td>
</tr>
@@ -34,7 +69,7 @@
<tr>
<td>type</td>
<td>url</td>
- <
td>http://www.google.com/ig/modules/colorjunction.xml</td>
+ <
td>http://www.google.com/ig/modules/datetime.xml</td>
</tr>
<tr>
<td>clickAt</td>
@@ -61,6 +96,16 @@
<td>Gadget Details</td>
<td></td>
</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Sign out</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign out</td>
+ <td></td>
+</tr>
</tbody></table>
</body>
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_15.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_15.html 2010-01-22
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_15.html 2010-01-22
03:14:28 UTC (rev 1413)
@@ -4,78 +4,64 @@
<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>SiteMapAndLinkToPage</title>
+<title>SNF_PRL_15</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1"
colspan="3">SiteMapAndLinkToPage</td></tr>
+<tr><td rowspan="1"
colspan="3">SNF_PRL_15</td></tr>
</thead><tbody>
-<!--tr>
- <td>open</td>
- <td>/portal/private/classic/sitemap</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>link=Sign in</td>
- <td></td>
-</tr-->
<tr>
<td>open</td>
- <td>/portal/private/classic/sitemap</td>
+ <td>/portal/public/classic/</td>
<td></td>
</tr>
-<!--Expand All-->
<tr>
- <td>clickAt</td>
- <td>//div[@id='UISiteMap']//div[@class='ClearFix']/div[2]</td>
- <td>1,1</td>
+ <td>echo</td>
+ <td>-SiteMapAndLinkToPage-</td>
+ <td></td>
</tr>
<tr>
- <td>waitForTextPresent</td>
- <td>Blog</td>
+ <td>clickAt</td>
+ <td>link=Sign in</td>
<td></td>
</tr>
<tr>
- <td>verifyTextPresent</td>
- <td>New Staff</td>
- <td></td>
+ <td>type</td>
+ <td>username</td>
+ <td>root</td>
</tr>
<tr>
- <td>verifyTextPresent</td>
- <td>Application Registry</td>
+ <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>
-<!--Collapse All-->
<tr>
- <td>clickAt</td>
- <td>//div[@id='UISiteMap']//div[@class='ClearFix']/div[1]</td>
- <td>1,1</td>
+ <td>open</td>
+ <td>/portal/private/classic/sitemap</td>
+ <td></td>
</tr>
<tr>
- <td>waitForTextNotPresent</td>
- <td>Blog</td>
+ <td>echo</td>
+ <td>--Expand the first submenu</td>
<td></td>
</tr>
-<!--Expand the first submenu-->
<tr>
<td>clickAt</td>
<td>css=div#UISiteMap div.ExpandIcon</td>
<td>1,1</td>
</tr>
-<!--Select the first link of the first submenu-->
<tr>
+ <td>echo</td>
+ <td>--Select the first link of submenu</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>css=div#UISiteMap div.ChildrenContainer a</td>
<td></td>
@@ -85,11 +71,11 @@
<td>css=div#UISiteMap div.ChildrenContainer a</td>
<td></td>
</tr>
-<!--tr>
- <td>click</td>
- <td>link=Sign out</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_18.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_18.html 2010-01-22
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_18.html 2010-01-22
03:14:28 UTC (rev 1413)
@@ -4,68 +4,90 @@
<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>CreateNewPortal</title>
+<title>SNF_PRL_18</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1"
colspan="3">CreateNewPortal</td></tr>
+<tr><td rowspan="1"
colspan="3">SNF_PRL_18</td></tr>
</thead><tbody>
-<!--tr>
- <td>open</td>
- <td>/portal/private/classic/portalnavigation</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>link=Sign in</td>
- <td></td>
-</tr-->
<tr>
<td>open</td>
+ <td>/portal/public/classic/</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-CreateNewPortal-</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>open</td>
<td>/portal/private/classic/portalnavigation</td>
<td></td>
</tr>
-<!--Click "Add new Portal" button-->
<tr>
+ <td>echo</td>
+ <td>--Add new portal</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//div[@id='UISiteManagement']//div[@class='UIAction']//div[@class='ActionButton
BlueButton']</td>
<td></td>
</tr>
-<!--Select "Portal Settings" tab-->
<tr>
+ <td>echo</td>
+ <td>--Select portal settings</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
<td></td>
</tr>
<tr>
- <td>click</td>
+ <td>clickAt</td>
<td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>name</td>
- <td>New_portal</td>
+ <td>test_portal_18</td>
</tr>
-<!--Select "Permission Setting" tab-->
<tr>
- <td>click</td>
+ <td>echo</td>
+ <td>--Select permission settings</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
<td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[4]//div[@class='MiddleTab']</td>
<td></td>
</tr>
<tr>
- <td>click</td>
+ <td>clickAt</td>
<td>publicMode</td>
<td></td>
</tr>
@@ -111,14 +133,54 @@
</tr>
<tr>
<td>waitForTextPresent</td>
- <td>New_portal</td>
+ <td>test_portal_18</td>
<td></td>
</tr>
-<!--tr>
- <td>click</td>
- <td>link=Sign out</td>
- <td></td>
-</tr-->
+<tr>
+ <td>echo</td>
+ <td>--Verify portal creation</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyElementPresent</td>
+ <td>link=test_portal_18</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>--Delete new portal</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Site</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>Portal Navigation</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>//div[@id='UISiteManagement']/table[2]//a[@class='DeleteIcon']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextNotPresent</td>
+ <td>test_portal_18</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForConfirmation</td>
+ <td>Are you sure you want to delete this portal?</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_19.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_19.html 2010-01-22
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_19.html 2010-01-22
03:14:28 UTC (rev 1413)
@@ -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>EditPortalNavigation</title>
+<title>SNF_PRL_19</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1"
colspan="3">EditPortalNavigation</td></tr>
+<tr><td rowspan="1"
colspan="3">SNF_PRL_19</td></tr>
</thead><tbody>
-<!--tr>
+<tr>
<td>open</td>
<td>/portal/public/classic/</td>
<td></td>
</tr>
<tr>
- <td>click</td>
+ <td>echo</td>
+ <td>-EditPortalNavigation-</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
<td>link=Sign in</td>
<td></td>
</tr>
@@ -30,10 +35,10 @@
<td>type</td>
<td>password</td>
<td>gtn</td>
-</tr-->
+</tr>
<tr>
- <td>open</td>
- <td>/portal/private/classic/</td>
+ <td>clickAndWait</td>
+ <td>//div[@id='UIPortalLoginFormAction']/div/div/div</td>
<td></td>
</tr>
<tr>
@@ -41,8 +46,12 @@
<td>link=Site</td>
<td></td>
</tr>
-<!--Edit Portal layout, currently do not change anything-->
<tr>
+ <td>echo</td>
+ <td>--Edit Portal layout, currently do not change anything</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>link=Edit Layout</td>
<td></td>
@@ -69,7 +78,7 @@
</tr>
<tr>
<td>clickAt</td>
- <td>//div[@id='UIPortalComposer']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']</td>
+ <td>//div[@id='UIPortalComposer']//div[@class='OverflowContainer']/a[@class='CloseButton']</td>
<td>1,1</td>
</tr>
<tr>
@@ -77,8 +86,12 @@
<td>classic</td>
<td></td>
</tr>
-<!--Edit nav: add node, actions ...-->
<tr>
+ <td>echo</td>
+ <td>--Edit nav: add node, actions ...</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Edit Navigation</td>
<td>1,1</td>
@@ -101,15 +114,19 @@
<tr>
<td>type</td>
<td>name</td>
- <td>Node_test</td>
+ <td>test_nodename_19</td>
</tr>
<tr>
<td>type</td>
<td>label</td>
- <td>New node</td>
+ <td>test_node_label_19</td>
</tr>
-<!--Select Page-->
<tr>
+ <td>echo</td>
+ <td>--Select Page</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>css=div#UISiteManagement > div.UIPopupWindow div.TabsContainer
div.NormalTab div.MiddleTab</td>
<td>1,1</td>
@@ -124,8 +141,12 @@
<td>link=Search and Select Page</td>
<td></td>
</tr>
-<!--Select the first page-->
<tr>
+ <td>echo</td>
+ <td>--Select the first page</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>//div[@id='UIRepeater']//table//tbody/tr/td[5]/div[@class='ActionContainer']/img</td>
<td></td>
@@ -135,8 +156,12 @@
<td>//div[@id='UIRepeater']//table//tbody/tr/td[5]/div[@class='ActionContainer']/img</td>
<td></td>
</tr>
-<!--Save-->
<tr>
+ <td>echo</td>
+ <td>--Save</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Save</td>
<td>1,1</td>
@@ -146,8 +171,12 @@
<td>link=Save</td>
<td>1,1</td>
</tr>
-<!--Edit Portal Properties-->
<tr>
+ <td>echo</td>
+ <td>--Edit Portal Properties</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Edit Portal's Properties</td>
<td>1,1</td>
@@ -204,40 +233,94 @@
</tr>
<tr>
<td>clickAt</td>
- <td>link=Platform</td>
+ <td>//div[@id='PermissionSelector']//div[2]/a</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>link=Administrators</td>
+ <td>//form[@id='UIPortalForm']//div[@class='UIAction']//div[@class='ActionButton
LightBlueStyle']</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>//div[@id='PermissionSelector']//div[2]/a</td>
+ <td>open</td>
+ <td>/portal/private/classic/</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Select new node</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
- <td>//form[@id='UIPortalForm']//div[@class='UIAction']//div[@class='ActionButton
LightBlueStyle']</td>
+ <td>link=test_node_label_19</td>
<td></td>
</tr>
<tr>
- <td>open</td>
- <td>/portal/private/classic/</td>
+ <td>verifyElementPresent</td>
+ <td>//div[@class='SelectedNavigationTab']//a</td>
<td></td>
</tr>
-<!--Select new added node to view page-->
+<!--tr>
+ <td>echo</td>
+ <td>---Delete node</td>
+ <td></td>
+</tr>
<tr>
<td>clickAt</td>
- <td>link=New node</td>
+ <td>link=Site</td>
<td></td>
</tr>
-<!--tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Edit Navigation</td>
+ <td></td>
+</tr>
+<tr>
+ <td>contextMenu</td>
+ <td>link=test_node_label_19</td>
+ <td></td>
+</tr>
+<tr>
+ <td>contextMenuAt</td>
+ <td>link=test_node_label_19</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
- <td>//a[(a)onclick='eXo.portal.logout();']</td>
+ <td>link=Delete Node</td>
<td></td>
+</tr>
+<tr>
+ <td>waitForConfirmation</td>
+ <td>Are you sure you want to delete this node?</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>link=Save</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>--Verify Deletion</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>link=Home</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextNotPresent</td>
+ <td>test_node_label_19</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_20.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_20.html 2010-01-22
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_20.html 2010-01-22
03:14:28 UTC (rev 1413)
@@ -4,24 +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>DeletePortal</title>
+<title>SNF_PRL_20</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1"
colspan="3">DeletePortal</td></tr>
+<tr><td rowspan="1"
colspan="3">SNF_PRL_20</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>-DeletePortal-</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>clickAt</td>
<td>link=Site</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Add new portal</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>link=Add New Portal</td>
<td></td>
@@ -39,7 +69,7 @@
<tr>
<td>type</td>
<td>name</td>
- <td>Haha</td>
+ <td>test_portal_name_20</td>
</tr>
<tr>
<td>clickAt</td>
@@ -77,11 +107,6 @@
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>//div[@class='CollapseIcon']</td>
- <td></td>
-</tr>
-<tr>
<td>clickAt</td>
<td>link=exact:*</td>
<td></td>
@@ -92,13 +117,18 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Save</td>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]</td>
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]</td>
+ <td>verifyTextPresent</td>
+ <td>test_portal_name_20</td>
+ <td>1,1</td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>--Delete portal</td>
<td></td>
</tr>
<tr>
@@ -107,10 +137,25 @@
<td></td>
</tr>
<tr>
+ <td>waitForConfirmation</td>
+ <td>Are you sure you want to delete this portal?</td>
+ <td></td>
+</tr>
+<tr>
<td>verifyTextNotPresent</td>
- <td>Haha</td>
+ <td>test_portal_name_20</td>
<td>1,1</td>
</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Sign out</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign out</td>
+ <td></td>
+</tr>
</tbody></table>
</body>
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
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_21.html 2010-01-22
03:14:28 UTC (rev 1413)
@@ -4,38 +4,138 @@
<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>ChangePortal</title>
+<title>SNF_PRL_21</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1"
colspan="3">ChangePortal</td></tr>
+<tr><td rowspan="1"
colspan="3">SNF_PRL_21</td></tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/portal/private/classic/</td>
+ <td>/portal/public/classic/</td>
<td></td>
</tr>
<tr>
- <td>clickAndWait</td>
- <td>link=New_portal</td>
+ <td>echo</td>
+ <td>-ChangePortal-</td>
<td></td>
</tr>
<tr>
- <td>open</td>
- <td>/portal/private/classic/portalnavigation</td>
+ <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>link=New_portal</td>
+ <td>//div[@id='UIPortalLoginFormAction']/div/div/div</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>link=New_portal</td>
+ <td>link=Site</td>
<td></td>
</tr>
+<tr>
+ <td>echo</td>
+ <td>--Add new portal</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Add New Portal</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Add New Portal</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>
+</tr>
+<tr>
+ <td>type</td>
+ <td>name</td>
+ <td>test_portal_name_21</td>
+</tr>
+<tr>
+ <td>clickAt</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>//div[(a)onclick=&quot;eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this,
'UIPortalForm',
'PermissionSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PermissionSetting')"]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>publicMode</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Edit Permission Setting</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Select Permission</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Platform</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Platform</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=exact:*</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Save</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>test_portal_name_21</td>
+ <td>1,1</td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>--View new portal</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=test_portal_name_21</td>
+ <td></td>
+</tr>
</tbody></table>
</body>
Modified:
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_27_1.html
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_27_1.html 2010-01-22
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_27_1.html 2010-01-22
03:14:28 UTC (rev 1413)
@@ -130,7 +130,7 @@
<td>1,1</td>
</tr>
<tr>
- <td>doubleClickAt</td>
+ <td>clickAt</td>
<td>link=Administrators</td>
<td></td>
</tr>
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
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_All.java 2010-01-22
03:14:28 UTC (rev 1413)
@@ -2,1901 +2,1936 @@
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 void setUp() throws Exception {
+setUp("http://localhost:8080/portal/", "*firefox");
+}
- public void testSNF_PRL_02() throws Exception {
- selenium.setSpeed("500");
- selenium.open("/portal/public/classic/");
- selenium.click("link=Register");
- selenium.waitForPageToLoad("30000");
- selenium.type("User Name:", "abc123");
- selenium.type("Password:", "121212");
- selenium.type("Confirm Password:", "121212");
- selenium.type("First Name:", "Aha");
- selenium.type("Last Name:", "Nguyen");
- selenium.type("Email Address:", "th4nhc0n9z(a)yahoo.com");
- selenium.clickAt("link=Subscribe", "1,1");
- selenium.open("/portal/public/classic/");
- System.out.println("!!! missing assert to check user exists !!!");
- }
+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 void testSNF_PRL_03() throws Exception {
- selenium.setSpeed("500");
- selenium.open("/portal/public/classic/");
- 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");
- }
+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 testSNF_PRL_04() throws Exception {
- selenium.setSpeed("500");
- selenium.open("/portal/public/classic/");
- 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");
- for (int second = 0;; second++) {
- if (second >= 30)
- fail("timeout");
- try {
- if (selenium.isElementPresent("link=Sign in"))
- break;
- } catch (Exception e) {
- }
- Thread.sleep(1000);
- }
- }
+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 testSNF_PRL_05() throws Exception {
- selenium.setSpeed("500");
- selenium.open("/portal/public/classic/");
- selenium.click("link=Sign in");
- selenium.type("username", "root");
- selenium.type("password", "gtn");
- selenium.click("rememberme");
-
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.click("link=Sign out");
- selenium.clickAt("link=Sign in", "1,1");
- verifyTrue(selenium.isChecked("rememberme"));
- selenium.clickAt("link=Discard", "1,1");
- }
+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_06() throws Exception {
- selenium.setSpeed("500");
- selenium.open("/portal/public/classic/");
- 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"));
-
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", "exo2");
- 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");
- selenium.type("user.name.given", "test05");
- selenium.type("user.name.family", "test05family");
- selenium.type("user.name.nickName", "testnick");
- 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");
- assertTrue(selenium.isTextPresent("exo2"));
- 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_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_07() throws Exception {
- selenium.setSpeed("500");
- selenium.open("/portal/public/classic/");
- 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");
-
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);
- }
-
selenium.clickAt("//div[@id='UIOrganizationPortlet']//div[3]//div[@class='ExpandIcon']/a",
- "1,1");
- 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");
-
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", "testgroup");
- selenium.type("label", "testgroup label");
- selenium.type("description", "testgroup description");
-
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("testgroup label"))
- break;
- } catch (Exception e) {
- }
- Thread.sleep(1000);
- }
-
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.click("demo");
- selenium.click("john");
- selenium.click("mary");
- selenium.click("root");
-
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.click("link=Sign out");
- }
+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_08() throws Exception {
- selenium.setSpeed("500");
- selenium.open("/portal/public/classic/");
- 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");
-
selenium.clickAt("//div[@id='UIOrganizationPortlet']//div[@class='ManagementIconContainer']/a[@class='MembershipButton']",
- "1,1");
- selenium.type("name", "demomembership");
- selenium.type("description", "demo scripts");
- selenium.clickAt("link=Save", "1,1");
- for (int second = 0;; second++) {
- if (second >= 30)
- fail("timeout");
- try {
- if (selenium.isTextPresent("demomembership"))
- break;
- } catch (Exception e) {
- }
- Thread.sleep(1000);
- }
-
selenium.clickAt("//table[@class='UIGrid']//tbody/tr[3]/td[5]//img",
"1,1");
- selenium.type("description", "demo scripts add more text");
- selenium.clickAt("link=Save", "1,1");
- for (int second = 0;; second++) {
- if (second >= 30)
- fail("timeout");
- try {
- if (selenium.isTextPresent("demo scripts add more text"))
- 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_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_09() throws Exception {
- selenium.setSpeed("500");
- selenium.open("/portal/public/classic/");
- 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");
- for (int second = 0;; second++) {
- if (second >= 30)
- fail("timeout");
- try {
- if (selenium.isTextPresent("Import Applications"))
- break;
- } catch (Exception e) {
- }
- Thread.sleep(1000);
- }
- selenium.chooseOkOnNextConfirmation();
-
selenium.clickAt("//div[@id='UIApplicationOrganizer']//div[@class='UIControlbar']//div[@class='IconControl
ImportIcon']",
- "1,1");
- String autoimport = selenium.getConfirmation();
- System.out.println("!! missing assert !!");
- 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 {
+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_10() throws Exception {
- selenium.setSpeed("500");
- selenium.open("/portal/public/classic/");
- 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");
-
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", "category_test");
- selenium.type("displayName", "Category test name");
- selenium.type("description", "category test description");
-
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);
- }
-
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", "category test edit");
- selenium.clickAt("link=Save", "1,1");
- for (int second = 0;; second++) {
- if (second >= 30)
- fail("timeout");
- try {
- if (selenium.isTextPresent("category test edit"))
- 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.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_11() throws Exception {
-// selenium.setSpeed("500");
-// selenium.open("/portal/public/classic/");
-// 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");
-//
selenium.clickAt("//div[@class='ListContent']//div[@class='SelectedTab']//a[@class='ControlIcon
CreateNewIcon']",
-// "1,1");
-// selenium.clickAt("//input[@name='application' and
@value='9']", "1,1");
-// selenium.type("displayName", "test10");
-// 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("link=category test edit"))
-// break;
-// } catch (Exception e) {
-// }
-// Thread.sleep(1000);
-// }
-// selenium.clickAt("link=category test edit", "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");
-// for (int second = 0;; second++) {
-// if (second >= 30)
-// fail("timeout");
-// try {
-// if (selenium.isTextPresent("test10"))
-// 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.click("link=Sign out");
-// }
+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_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_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_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_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_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_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_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_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 {
+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 {
+//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_13() throws Exception {
-// selenium.setSpeed("500");
-// 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/colorjunction.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"));
-// }
+//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_15() throws Exception {
-// selenium.setSpeed("500");
-// selenium.type("username", "root");
-// selenium.type("password", "gtn");
-// selenium.click("link=Sign in");
-// selenium.waitForPageToLoad("30000");
-// selenium.open("/portal/private/classic/sitemap");
-//
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"));
-//
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);
-// }
-// selenium.clickAt("css=div#UISiteMap div.ExpandIcon", "1,1");
-// 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);
-// }
-// }
+//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_18() throws Exception {
-// selenium.setSpeed("500");
-// selenium.type("username", "root");
-// selenium.type("password", "gtn");
-// selenium.click("link=Sign in");
-// selenium.waitForPageToLoad("30000");
-// selenium.open("/portal/private/classic/portalnavigation");
-//
selenium.clickAt("//div[@id='UISiteManagement']//div[@class='UIAction']//div[@class='ActionButton
BlueButton']",
-// "1,1");
-// 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.click("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']");
-// selenium.type("name", "New_portal");
-//
selenium.click("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[4]//div[@class='MiddleTab']");
-// selenium.click("publicMode");
-// 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("New_portal"))
-// break;
-// } catch (Exception e) {
-// }
-// Thread.sleep(1000);
-// }
-// }
+//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_19() throws Exception {
-// selenium.setSpeed("500");
-// selenium.click("link=Sign in");
-// selenium.type("username", "root");
-// selenium.type("password", "gtn");
-// selenium.open("/portal/private/classic/");
-// selenium.click("link=Site");
-// selenium.waitForPageToLoad("30000");
-// 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='EdittedSaveButton']",
-// "1,1");
-// for (int second = 0;; second++) {
-// if (second >= 30)
-// fail("timeout");
-// try {
-// if (selenium.isTextPresent("classic"))
-// 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", "Node_test");
-// selenium.type("label", "New node");
-// 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");
-// 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");
-// selenium.clickAt("link=Save", "1,1");
-// selenium.clickAt("link=Save", "1,1");
-// 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("link=Platform", "1,1");
-// 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/");
-// selenium.clickAt("link=New node", "1,1");
-// }
+//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_20() throws Exception {
-// selenium.setSpeed("500");
-// selenium.open("/portal/private/classic/");
-// selenium.clickAt("link=Site", "1,1");
-// 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", "Haha");
-//
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");
-// for (int second = 0;; second++) {
-// if (second >= 30)
-// fail("timeout");
-// try {
-// if
(selenium.isElementPresent("//div[@class='CollapseIcon']"))
-// break;
-// } catch (Exception e) {
-// }
-// Thread.sleep(1000);
-// }
-// selenium.clickAt("link=exact:*", "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("//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]"))
-// break;
-// } catch (Exception e) {
-// }
-// Thread.sleep(1000);
-// }
-//
selenium.click("//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]");
-// selenium.waitForPageToLoad("30000");
-// assertFalse(selenium.isTextPresent("Haha"));
-// }
+//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_21() throws Exception {
-// selenium.setSpeed("500");
-// selenium.open("/portal/private/classic/");
-// selenium.click("link=New_portal");
-// selenium.waitForPageToLoad("30000");
-// selenium.open("/portal/private/classic/portalnavigation");
-// selenium.click("link=New_portal");
-// selenium.waitForPageToLoad("30000");
-// selenium.clickAt("link=New_portal", "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_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_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_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_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_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_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_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_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_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("//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_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_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_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_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_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"));
+//}
}
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
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_02.java 2010-01-22
03:14:28 UTC (rev 1413)
@@ -10,17 +10,53 @@
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:", "abc123");
-selenium.type("Password:", "121212");
-selenium.type("Confirm Password:", "121212");
-selenium.type("First Name:", "Aha");
-selenium.type("Last Name:", "Nguyen");
-selenium.type("Email Address:", "th4nhc0n9z(a)yahoo.com");
+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("!!! missing assert to check user exists !!!");
+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");
+}
}
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
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_03.java 2010-01-22
03:14:28 UTC (rev 1413)
@@ -10,6 +10,7 @@
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");
@@ -42,6 +43,7 @@
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"));
}
}
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
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_04.java 2010-01-22
03:14:28 UTC (rev 1413)
@@ -10,6 +10,7 @@
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");
@@ -31,14 +32,7 @@
Thread.sleep(1000);
}
selenium.click("link=Sign out");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Sign in"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
+assertTrue(selenium.isElementPresent("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
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_05.java 2010-01-22
03:14:28 UTC (rev 1413)
@@ -10,10 +10,11 @@
public void testSNF_PRL_05() throws Exception {
selenium.setSpeed("500");
selenium.open("/portal/public/classic/");
-selenium.click("link=Sign in");
+System.out.println("-RememberMyLogin-");
+selenium.clickAt("link=Sign in", "1,1");
selenium.type("username", "root");
selenium.type("password", "gtn");
-selenium.click("rememberme");
+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");
@@ -23,8 +24,9 @@
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.click("link=Sign out");
+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");
}
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
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_06.java 2010-01-22
03:14:28 UTC (rev 1413)
@@ -10,6 +10,7 @@
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");
@@ -45,6 +46,7 @@
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");
@@ -54,7 +56,7 @@
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.type("firstName", "exo2");
+selenium.type("firstName", "test_user_06");
selenium.clickAt("link=Save", "1,1");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
@@ -82,10 +84,9 @@
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.type("user.name.given", "test");
-selenium.type("user.name.given", "test05");
-selenium.type("user.name.family", "test05family");
-selenium.type("user.name.nickName", "testnick");
+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");
@@ -98,7 +99,8 @@
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");
-assertTrue(selenium.isTextPresent("exo2"));
+System.out.println("--Verify changes");
+assertTrue(selenium.isTextPresent("test_user_06"));
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
@@ -107,7 +109,7 @@
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.click("link=Sign out");
+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_07.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_07.java 2010-01-22
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_07.java 2010-01-22
03:14:28 UTC (rev 1413)
@@ -10,11 +10,13 @@
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 {
@@ -23,7 +25,7 @@
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.click("link=Group");
+selenium.clickAt("link=Group", "1,1");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
@@ -43,7 +45,9 @@
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 {
@@ -53,6 +57,7 @@
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");
@@ -62,18 +67,20 @@
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.type("groupName", "testgroup");
-selenium.type("label", "testgroup label");
-selenium.type("description", "testgroup description");
+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("testgroup label"))
+ 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");
@@ -83,10 +90,11 @@
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.click("demo");
-selenium.click("john");
-selenium.click("mary");
-selenium.click("root");
+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"));
@@ -101,7 +109,7 @@
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.click("link=Sign out");
+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_08.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_08.java 2010-01-22
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_08.java 2010-01-22
03:14:28 UTC (rev 1413)
@@ -10,11 +10,13 @@
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 {
@@ -34,29 +36,47 @@
}
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");
-selenium.type("name", "demomembership");
-selenium.type("description", "demo scripts");
+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("demomembership"))
+ if (selenium.isTextPresent("test_name_08"))
break; }
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.clickAt("//table[@class='UIGrid']//tbody/tr[3]/td[5]//img",
"1,1");
-selenium.type("description", "demo scripts add more text");
+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("demo scripts add more text"))
+ 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++) {
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
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_09.java 2010-01-22
03:14:28 UTC (rev 1413)
@@ -10,11 +10,13 @@
public void testSNF_PRL_09() throws Exception {
selenium.setSpeed("500");
selenium.open("/portal/public/classic/");
-selenium.click("link=Sign in");
+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");
@@ -24,10 +26,11 @@
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.chooseOkOnNextConfirmation();
+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();
-System.out.println("!! missing assert !!");
+assertTrue(selenium.isTextPresent("WSRP Admin Portlet"));
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
@@ -36,7 +39,7 @@
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.click("link=Sign out");
+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_10.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_10.java 2010-01-22
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_10.java 2010-01-22
03:14:28 UTC (rev 1413)
@@ -10,12 +10,15 @@
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");
@@ -25,9 +28,10 @@
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.type("name", "category_test");
-selenium.type("displayName", "Category test name");
-selenium.type("description", "category test description");
+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");
@@ -65,6 +69,8 @@
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");
@@ -74,16 +80,23 @@
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.type("displayName", "category test edit");
+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.isTextPresent("category test edit"))
-break; }
- catch (Exception e) {}
+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 {
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
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_11.java 2010-01-22
03:14:28 UTC (rev 1413)
@@ -10,25 +10,29 @@
public void testSNF_PRL_11() throws Exception {
selenium.setSpeed("500");
selenium.open("/portal/public/classic/");
-selenium.click("link=Sign in");
+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");
-selenium.clickAt("//input[@name='application' and @value='9']",
"1,1");
-selenium.type("displayName", "test10");
+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("link=category test edit"))
+ if (selenium.isElementPresent("//a[@class='TabLabel' and
@title='Administration']"))
break; }
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.clickAt("link=category test edit", "1,1");
+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 {
@@ -40,12 +44,18 @@
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.isTextPresent("test10"))
-break; }
- catch (Exception e) {}
+if (selenium.getConfirmation().equals("Are you sure to delete this
application?")) {
+break;
+}
+}
+catch (Exception e) {
+}
Thread.sleep(1000);
}
for (int second = 0;; second++) {
@@ -56,7 +66,7 @@
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.click("link=Sign out");
+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_13.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_13.java 2010-01-22
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_13.java 2010-01-22
03:14:28 UTC (rev 1413)
@@ -9,6 +9,14 @@
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");
@@ -27,7 +35,7 @@
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.type("url",
"http://www.google.com/ig/modules/colorjunction.xml");
+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");
@@ -40,6 +48,15 @@
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");
+}
}
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
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_15.java 2010-01-22
03:14:28 UTC (rev 1413)
@@ -9,33 +9,17 @@
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("link=Sign in");
+selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
selenium.waitForPageToLoad("30000");
selenium.open("/portal/private/classic/sitemap");
-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"));
-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);
-}
+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");
@@ -46,6 +30,7 @@
catch (Exception e) {}
Thread.sleep(1000);
}
+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_18.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_18.java 2010-01-22
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_18.java 2010-01-22
03:14:28 UTC (rev 1413)
@@ -9,12 +9,17 @@
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("link=Sign in");
+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 {
@@ -23,10 +28,11 @@
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.click("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']");
-selenium.type("name", "New_portal");
-selenium.click("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[4]//div[@class='MiddleTab']");
-selenium.click("publicMode");
+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");
@@ -53,11 +59,30 @@
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
- if (selenium.isTextPresent("New_portal"))
+ 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");
+}
}
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
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_19.java 2010-01-22
03:14:28 UTC (rev 1413)
@@ -9,12 +9,16 @@
public void testSNF_PRL_19() throws Exception {
selenium.setSpeed("500");
-selenium.click("link=Sign in");
+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.open("/portal/private/classic/");
+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 {
@@ -41,7 +45,7 @@
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.clickAt("//div[@id='UIPortalComposer']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']",
"1,1");
+selenium.clickAt("//div[@id='UIPortalComposer']//div[@class='OverflowContainer']/a[@class='CloseButton']",
"1,1");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
@@ -50,6 +54,7 @@
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");
@@ -68,8 +73,9 @@
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.type("name", "Node_test");
-selenium.type("label", "New node");
+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");
@@ -80,6 +86,7 @@
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 {
@@ -89,8 +96,10 @@
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");
@@ -137,12 +146,31 @@
Thread.sleep(1000);
}
selenium.clickAt("link=Administrators", "1,1");
-selenium.clickAt("link=Platform", "1,1");
-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/");
-selenium.clickAt("link=New node", "1,1");
+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");
+}
}
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
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_20.java 2010-01-22
03:14:28 UTC (rev 1413)
@@ -9,8 +9,15 @@
public void testSNF_PRL_20() throws Exception {
selenium.setSpeed("500");
-selenium.open("/portal/private/classic/");
+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 {
@@ -21,7 +28,7 @@
}
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", "Haha");
+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");
@@ -29,28 +36,41 @@
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[@class='CollapseIcon']"))
+ if
(selenium.isElementPresent("//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]"))
break; }
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.clickAt("link=exact:*", "1,1");
-selenium.clickAt("link=Save", "1,1");
-selenium.clickAt("link=Save", "1,1");
+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.isElementPresent("//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]"))
+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.click("//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]");
-selenium.waitForPageToLoad("30000");
-assertFalse(selenium.isTextPresent("Haha"));
+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_21.java
===================================================================
---
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_21.java 2010-01-22
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_21.java 2010-01-22
03:14:28 UTC (rev 1413)
@@ -9,13 +9,46 @@
public void testSNF_PRL_21() throws Exception {
selenium.setSpeed("500");
-selenium.open("/portal/private/classic/");
-selenium.click("link=New_portal");
+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.open("/portal/private/classic/portalnavigation");
-selenium.click("link=New_portal");
-selenium.waitForPageToLoad("30000");
-selenium.clickAt("link=New_portal", "1,1");
+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");
+}
}
Modified:
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
03:05:14 UTC (rev 1412)
+++
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_27_1.java 2010-01-22
03:14:28 UTC (rev 1413)
@@ -66,6 +66,7 @@
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");