Author: hangnguyen
Date: 2011-02-18 05:24:40 -0500 (Fri, 18 Feb 2011)
New Revision: 5911
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_06_CreateNewAccount.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_07_UsersManagement.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_08_SearchUser.html
Log:
TESTVN-2565 - Daily tests on GateIn - Clean and improve scripts
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_06_CreateNewAccount.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_06_CreateNewAccount.html 2011-02-18
03:17:50 UTC (rev 5910)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_06_CreateNewAccount.html 2011-02-18
10:24:40 UTC (rev 5911)
@@ -148,12 +148,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a</td>
+ <td>//div[@id="UIAccountPortlet"]//a[text()="OK"]</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a</td>
+ <td>//div[@id="UIAccountPortlet"]//a[text()="OK"]</td>
<td></td>
</tr>
<tr>
@@ -273,12 +273,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
+ <td>//form[@id='UISearchForm']//a[@title="Quick
Search"]</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
+ <td>//form[@id='UISearchForm']//a[@title="Quick
Search"]</td>
<td></td>
</tr>
<tr>
@@ -302,6 +302,26 @@
<td></td>
</tr>
<tr>
+ <td>waitForTextPresent</td>
+ <td>No result found.</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>No result found.</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[contains(@onclick,"action=Close")]//a[text()="OK"]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[contains(@onclick,"action=Close")]//a[text()="OK"]</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForTextNotPresent</td>
<td>Test_SNF_PRL_06</td>
<td></td>
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_07_UsersManagement.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_07_UsersManagement.html 2011-02-18
03:17:50 UTC (rev 5910)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_07_UsersManagement.html 2011-02-18
10:24:40 UTC (rev 5911)
@@ -92,7 +92,32 @@
<td>Test_SNF_PRL_07(a)gmail.com</td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-- Choose User Profile --</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
+ <td>//div[text()='User Profile']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[text()='User Profile']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>user.language</td>
+ <td></td>
+</tr>
+<tr>
+ <td>select</td>
+ <td>user.language</td>
+ <td>label=English</td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
<td>link=Save</td>
<td></td>
</tr>
@@ -113,12 +138,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a</td>
+ <td>//div[@id="UIAccountPortlet"]//a[text()="OK"]</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a</td>
+ <td>//div[@id="UIAccountPortlet"]//a[text()="OK"]</td>
<td></td>
</tr>
<tr>
@@ -133,11 +158,6 @@
</tr>
<tr>
<td>echo</td>
- <td>--
https://jira.jboss.org/browse/GTNPORTAL-1598 --</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
<td>-- Users list is shown properly--</td>
<td></td>
</tr>
@@ -203,12 +223,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
+ <td>//form[@id='UISearchForm']//a[@title="Quick
Search"]</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
+ <td>//form[@id='UISearchForm']//a[@title="Quick
Search"]</td>
<td></td>
</tr>
<tr>
@@ -263,12 +283,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a</td>
+ <td>//div[@id="UIOrganizationPortlet"]//a[text()="OK"]</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a</td>
+ <td>//div[@id="UIOrganizationPortlet"]//a[text()="OK"]</td>
<td></td>
</tr>
<tr>
@@ -278,12 +298,22 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
+ <td>searchTerm</td>
<td></td>
</tr>
<tr>
+ <td>type</td>
+ <td>searchTerm</td>
+ <td>Test_SNF_PRL_07</td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//form[@id='UISearchForm']//a[@title="Quick
Search"]</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
+ <td>//form[@id='UISearchForm']//a[@title="Quick
Search"]</td>
<td></td>
</tr>
<tr>
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_08_SearchUser.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_08_SearchUser.html 2011-02-18
03:17:50 UTC (rev 5910)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_08_SearchUser.html 2011-02-18
10:24:40 UTC (rev 5911)
@@ -88,12 +88,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
+ <td>//form[@id='UISearchForm']//a[@title="Quick
Search"]</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
+ <td>//form[@id='UISearchForm']//a[@title="Quick
Search"]</td>
<td></td>
</tr>
<tr>
@@ -123,12 +123,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
+ <td>//form[@id='UISearchForm']//a[@title="Quick
Search"]</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
+ <td>//form[@id='UISearchForm']//a[@title="Quick
Search"]</td>
<td></td>
</tr>
<tr>
@@ -158,12 +158,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
+ <td>//form[@id='UISearchForm']//a[@title="Quick
Search"]</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
+ <td>//form[@id='UISearchForm']//a[@title="Quick
Search"]</td>
<td></td>
</tr>
<tr>
@@ -193,12 +193,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
+ <td>//form[@id='UISearchForm']//a[@title="Quick
Search"]</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
+ <td>//form[@id='UISearchForm']//a[@title="Quick
Search"]</td>
<td></td>
</tr>
<tr>
@@ -228,12 +228,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
+ <td>//form[@id='UISearchForm']//a[@title="Quick
Search"]</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
+ <td>//form[@id='UISearchForm']//a[@title="Quick
Search"]</td>
<td></td>
</tr>
<tr>
@@ -263,12 +263,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
+ <td>//form[@id='UISearchForm']//a[@title="Quick
Search"]</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
+ <td>//form[@id='UISearchForm']//a[@title="Quick
Search"]</td>
<td></td>
</tr>
<tr>
@@ -298,12 +298,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
+ <td>//form[@id='UISearchForm']//a[@title="Quick
Search"]</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
+ <td>//form[@id='UISearchForm']//a[@title="Quick
Search"]</td>
<td></td>
</tr>
<tr>
@@ -328,12 +328,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
+ <td>//form[@id='UISearchForm']//a[@title="Quick
Search"]</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
+ <td>//form[@id='UISearchForm']//a[@title="Quick
Search"]</td>
<td></td>
</tr>
<tr>
@@ -346,7 +346,6 @@
<td>link=Sign out</td>
<td></td>
</tr>
-
</tbody></table>
</body>
</html>