Author: hangnguyen
Date: 2010-09-17 05:13:01 -0400 (Fri, 17 Sep 2010)
New Revision: 4236
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/issues/Test_POR_14_01_044_CheckWhenHaveRightToEditPage.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/issues/Test_POR_14_01_045_CheckWhenUserDoesNotHaveRightToEditPage.html
Log:
TestVN-356:Clean and Improve existing Selenium for GateIn
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/issues/Test_POR_14_01_044_CheckWhenHaveRightToEditPage.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/issues/Test_POR_14_01_044_CheckWhenHaveRightToEditPage.html 2010-09-17
09:11:10 UTC (rev 4235)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/issues/Test_POR_14_01_044_CheckWhenHaveRightToEditPage.html 2010-09-17
09:13:01 UTC (rev 4236)
@@ -4,12 +4,12 @@
<head
profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"
/>
<link rel="selenium.base" href="" />
-<title>Test_POR_14_01_045_CheckWhenHaveRightToEditPage</title>
+<title>Test_POR_14_01_044_CheckWhenHaveRightToEditPage</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1"
colspan="3">Test_POR_14_01_045_CheckWhenHaveRightToEditPage</td></tr>
+<tr><td rowspan="1"
colspan="3">Test_POR_14_01_044_CheckWhenHaveRightToEditPage</td></tr>
</thead><tbody>
<tr>
<td>open</td>
@@ -297,11 +297,21 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Search and Select Page</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
<td>link=Search and Select Page</td>
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>//img[@title='Select Page']</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
<td>//img[@title='Select Page']</td>
<td></td>
@@ -367,6 +377,16 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--
https://jira.jboss.org/browse/GTNPORTAL-1304 --</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//img[@title='Edit Page']</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
<td>//img[@title='Edit Page']</td>
<td></td>
@@ -612,6 +632,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Delete Node</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
<td>link=Delete Node</td>
<td></td>
@@ -647,6 +672,11 @@
<td>POR_TEST_14_01_045</td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>//form[@id='UIPageSearch']/div[2]/a</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
<td>//form[@id='UIPageSearch']/div[2]/a</td>
<td></td>
@@ -657,16 +687,31 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>//img[@title='Delete Page']</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
<td>//img[@title='Delete Page']</td>
<td></td>
</tr>
<tr>
+ <td>waitForConfirmationPresent</td>
+ <td></td>
+ <td></td>
+</tr>
+<tr>
<td>assertConfirmation</td>
<td>Do you want to delete this page?</td>
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[4]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
<td>//div[4]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div</td>
<td></td>
@@ -712,6 +757,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForConfirmationPresent</td>
+ <td></td>
+ <td></td>
+</tr>
+<tr>
<td>assertConfirmation</td>
<td>Are you sure you want to delete POR_TEST_14_01_045 user?</td>
<td></td>
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/issues/Test_POR_14_01_045_CheckWhenUserDoesNotHaveRightToEditPage.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/issues/Test_POR_14_01_045_CheckWhenUserDoesNotHaveRightToEditPage.html 2010-09-17
09:11:10 UTC (rev 4235)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/issues/Test_POR_14_01_045_CheckWhenUserDoesNotHaveRightToEditPage.html 2010-09-17
09:13:01 UTC (rev 4236)
@@ -107,14 +107,14 @@
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>//div[3]/div/div/div/div/div[2]</td>
+ <td>waitForTextPresent</td>
+ <td>You have registered a new account.</td>
<td></td>
</tr>
<tr>
- <td>verifyText</td>
- <td>//div[3]/div/div/div/div/div[2]</td>
+ <td>verifyTextPresent</td>
<td>You have registered a new account.</td>
+ <td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
@@ -417,6 +417,16 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--
https://jira.jboss.org/browse/GTNPORTAL-1304 --</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//img[@title='Edit Page']</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
<td>//img[@title='Edit Page']</td>
<td></td>
@@ -622,6 +632,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>username</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
<td>username</td>
<td>root</td>
@@ -787,12 +802,12 @@
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
+ <td>waitForTextPresent</td>
<td>//div[3]/div/div/div/div/div[2]</td>
<td></td>
</tr>
<tr>
- <td>verifyText</td>
+ <td>verifyTextPresent</td>
<td>//div[3]/div/div/div/div/div[2]</td>
<td>No result found.</td>
</tr>