From do-not-reply at jboss.org Thu Aug 5 06:33:50 2010
Content-Type: multipart/mixed; boundary="===============4462659440600571194=="
MIME-Version: 1.0
From: do-not-reply at jboss.org
To: gatein-commits at lists.jboss.org
Subject: [gatein-commits] gatein SVN: r3756 -
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest.
Date: Thu, 05 Aug 2010 06:33:50 -0400
Message-ID: <201008051033.o75AXoL9027304@svn01.web.mwc.hst.phx2.redhat.com>
--===============4462659440600571194==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: hangnguyen
Date: 2010-08-05 06:33:49 -0400 (Thu, 05 Aug 2010)
New Revision: 3756
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/por=
tal/selenium/NewSnifftest/Test_SNF_PRL_05_RecoverUserNameOrPassword.html
Log:
TESTVN-356: Clean and improve
Modified: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatf=
orm/portal/selenium/NewSnifftest/Test_SNF_PRL_05_RecoverUserNameOrPassword.=
html
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/po=
rtal/selenium/NewSnifftest/Test_SNF_PRL_05_RecoverUserNameOrPassword.html 2=
010-08-05 08:22:56 UTC (rev 3755)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/po=
rtal/selenium/NewSnifftest/Test_SNF_PRL_05_RecoverUserNameOrPassword.html 2=
010-08-05 10:33:49 UTC (rev 3756)
@@ -3,7 +3,7 @@
-
+
Test_SNF_PRL_05_RecoverUserNameOrPassword
@@ -103,12 +103,12 @@
waitForTextPresent |
- You have registered a new account. |
+ You have registered a new account. |
|
verifyTextPresent |
- You have registered a new account. |
+ You have registered a new account. |
|
@@ -127,8 +127,8 @@
|
- open |
- /portal/public/classic/ |
+ echo |
+ -- Check Forgot User Name/Password-- |
|
@@ -178,12 +178,12 @@
waitForTextPresent |
- An email has been sent to you. |
+ An email has been sent to you. |
|
verifyTextPresent |
- An email has been sent to you. |
+ An email has been sent to you. |
|
@@ -207,6 +207,11 @@
|
+ echo |
+ -- Check mail -- |
+ |
+
+
open |
http://gmail.com |
|
@@ -232,10 +237,255 @@
|
- click |
+ clickAndWait |
signIn |
|
+
+ selectFrame |
+ canvas_frame |
+ |
+
+
+ clickAt |
+ //*[@id=3D":pg"] |
+ |
+
+
+ waitForElementPresent |
+ //html/body/div/div[2]/div/div[2]/div/div[3]/div/div/div/div[2]/div/d=
iv/div/div/div[2]/div/div[2]/div/table/tr/td/div[2]/div[2]/div/div[2]/div/d=
iv/div/div/div[2]/div/div/div[2]/div[5]/div/a(a)href |
+ |
+
+
+ storeAttribute |
+ //html/body/div/div[2]/div/div[2]/div/div[3]/div/div/div/div[2]/div/d=
iv/div/div/div[2]/div/div[2]/div/table/tr/td/div[2]/div[2]/div/div[2]/div/d=
iv/div/div/div[2]/div/div/div[2]/div[5]/div/a(a)href |
+ resetPas |
+
+
+ waitForElementPresent |
+ //html/body/div/div[2]/div/div/div/div[2]/div/div[4]/div/nobr/a[2]
+ | |
+
+
+ clickAt |
+ //html/body/div/div[2]/div/div/div/div[2]/div/div[4]/div/nobr/a[2]
+ | |
+
+
+ echo |
+ -- Change password-- |
+ |
+
+
+ open |
+ ${resetPas} |
+ |
+
+
+ type |
+ newpassword |
+ 123456 |
+
+
+ waitForElementPresent |
+ newpassword |
+ |
+
+
+ type |
+ confirmnewpassword |
+ 123456 |
+
+
+ waitForElementPresent |
+ link=3DSave |
+ |
+
+
+ click |
+ link=3DSave |
+ |
+
+
+ waitForElementPresent |
+ //div[4]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/=
div/div/div/div/a |
+ |
+
+
+ click |
+ //div[4]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/=
div/div/div/div/a |
+ |
+
+
+ echo |
+ -- Login by new user after change password-- |
+ |
+
+
+ open |
+ /portal/public/classic/ |
+ |
+
+
+ click |
+ link=3DSign in |
+ |
+
+
+ waitForElementPresent |
+ username |
+ |
+
+
+ type |
+ username |
+ Test_SNF_PRL_05 |
+
+
+ type |
+ password |
+ 123456 |
+
+
+ clickAndWait |
+ //div[@id=3D'UIPortalLoginFormAction']/div/div/div/a |
+ |
+
+
+ waitForElementPresent |
+ link=3DTest_SNF_PRL_05 Test_SNF_PRL_05 |
+ |
+
+
+ verifyElementPresent |
+ link=3DTest_SNF_PRL_05 Test_SNF_PRL_05 |
+ |
+
+
+ clickAndWait |
+ link=3DSign out |
+ |
+
+
+ echo |
+ -- Delete user -- |
+ |
+
+
+ click |
+ link=3DSign in |
+ |
+
+
+ waitForElementPresent |
+ username |
+ |
+
+
+ type |
+ username |
+ root |
+
+
+ type |
+ password |
+ gtn |
+
+
+ click |
+ //div[@id=3D'UIPortalLoginFormAction']/div/div/div/a |
+ |
+
+
+ waitForElementPresent |
+ link=3DUsers and groups management |
+ |
+
+
+ clickAndWait |
+ link=3DUsers and groups management |
+ |
+
+
+ echo |
+ -- Search user -- |
+ |
+
+
+ waitForElementPresent |
+ searchTerm |
+ |
+
+
+ type |
+ searchTerm |
+ Test_SNF_PRL_05 |
+
+
+ waitForElementPresent |
+ //form[@id=3D'UISearchForm']/div[2]/a |
+ |
+
+
+ click |
+ //form[@id=3D'UISearchForm']/div[2]/a |
+ |
+
+
+ echo |
+ -- Delete user -- |
+ |
+
+
+ waitForElementPresent |
+ //img[@alt=3D'DeleteUser'] |
+ |
+
+
+ click |
+ //img[@alt=3D'DeleteUser'] |
+ |
+
+
+ waitForConfirmationPresent |
+ |
+ |
+
+
+ assertConfirmation |
+ Are you sure you want to delete Test_SNF_PRL_05 user? |
+ |
+
+
+ waitForTextPresent |
+ No result found. |
+ |
+
+
+ verifyTextPresent |
+ No result found. |
+ |
+
+
+ waitForElementPresent |
+ //div[4]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/=
div/div/div/div/a |
+ |
+
+
+ click |
+ //div[4]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/=
div/div/div/div/a |
+ |
+
+
+ clickAndWait |
+ link=3DSign out |
+ |
+
+
+ open |
+ /portal/public/classic/ |
+ |
+
=
--===============4462659440600571194==--