Author: hangnguyen
Date: 2010-11-04 03:06:58 -0400 (Thu, 04 Nov 2010)
New Revision: 4936
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_01_001_CreateNewAccountWithValidValues.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_01_013_CreateNewAccountWithPasswordAndConfirmPasswordLessThan6Characters.html
Log:
TestVN-356:Clean and Improve existing Selenium for GateIn
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_01_001_CreateNewAccountWithValidValues.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_01_001_CreateNewAccountWithValidValues.html 2010-11-04
06:36:29 UTC (rev 4935)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_01_001_CreateNewAccountWithValidValues.html 2010-11-04
07:06:58 UTC (rev 4936)
@@ -102,8 +102,23 @@
<td></td>
</tr>
<tr>
+ <td>waitForTextPresent</td>
+ <td></td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>You have registered a new account.</td>
+ <td></td>
+</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</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
- <td>//div[3]/div/div/div[1]/div/div/div/div/div/div/div/div[2]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a</td>
+ <td>//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div</td>
<td></td>
</tr>
<tr>
@@ -227,7 +242,7 @@
<td></td>
</tr>
<tr>
- <td>click</td>
+ <td>clickAndWait</td>
<td>link=Sign out</td>
<td></td>
</tr>
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_01_013_CreateNewAccountWithPasswordAndConfirmPasswordLessThan6Characters.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_01_013_CreateNewAccountWithPasswordAndConfirmPasswordLessThan6Characters.html 2010-11-04
06:36:29 UTC (rev 4935)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_01_013_CreateNewAccountWithPasswordAndConfirmPasswordLessThan6Characters.html 2010-11-04
07:06:58 UTC (rev 4936)
@@ -132,33 +132,23 @@
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>//div[2]/div[2]/div/div/div/div[1]/div[2]</td>
+ <td>verifyTextPresent</td>
<td>The length of the text in field "Password:" must be between
"6" and "30" characters.</td>
+ <td></td>
</tr>
<tr>
- <td>verifyText</td>
- <td>//div[2]/div[2]/div/div/div/div[1]/div[2]</td>
+ <td>verifyTextPresent</td>
<td>The length of the text in field "Password:" must be between
"6" and "30" characters.</td>
+ <td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//div[2]/div/div/div/div[2]/div[2]</td>
- <td>The length of the text in field "Confirm Password:" must be
between "6" and "30" characters.</td>
-</tr>
-<tr>
- <td>verifyText</td>
- <td>//div[2]/div/div/div/div[2]/div[2]</td>
- <td>The length of the text in field "Confirm Password:" must be
between "6" and "30" characters.</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[3]/div/div/div[1]/div/div/div/div/div/div/div/div[2]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a</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></td>
</tr>
<tr>
<td>click</td>
- <td>//div[3]/div/div/div[1]/div/div/div/div/div/div/div/div[2]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a</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></td>
</tr>
<tr>
@@ -166,11 +156,6 @@
<td>link=Sign out</td>
<td></td>
</tr>
-<tr>
- <td>close</td>
- <td></td>
- <td></td>
-</tr>
</tbody></table>
</body>