Test_SNF_PRL_05_RecoverUserNameOrPassword
open /portal/public/classic/
echo -- Recover your user name or password--
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo -- Add new user --
clickAndWait link=New Staff
waitForElementPresent username
type username Test_SNF_PRL_05
type password Test_SNF_PRL_05
type Confirmpassword Test_SNF_PRL_05
type firstName Test_SNF_PRL_05
type lastName Test_SNF_PRL_05
type email exomailtest@gmail.com
echo -- Choose User Profile --
waitForElementPresent //div[3]/div/div/div[1]/div/div/div/div/div/div/div/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div
click //div[3]/div/div/div[1]/div/div/div/div/div/div/div/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div
waitForElementPresent user.language
select user.language label=English
waitForElementPresent link=Save
click link=Save
waitForTextPresent You have registered a new account.
verifyTextPresent You have registered a new account.
waitForElementPresent //div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a
click //div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a
clickAndWait link=Sign out
echo -- Check Forgot User Name/Password--
click link=Sign in
waitForElementPresent link=exact:Forgot your User Name/Password?
click link=exact:Forgot your User Name/Password?
waitForElementPresent link=Next
click link=Next
waitForElementPresent username
type username Test_SNF_PRL_05
waitForElementPresent link=Send
click link=Send
waitForTextPresent An email has been sent to you.
verifyTextPresent An email has been sent to you.
waitForElementPresent //div[6]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a
click //div[6]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a
waitForElementPresent link=Discard
click link=Discard
echo -- Check mail --
open http://gmail.com
waitForElementPresent Email
type Email exomailtest
type Passwd exoadmin
waitForElementPresent signIn
clickAndWait signIn
selectFrame canvas_frame
verifyTextPresent Password and username reminder
clickAndWait gb_71
open /portal/public/classic/
click link=Sign in
waitForElementPresent username
type username root
type password gtn
click //div[@id='UIPortalLoginFormAction']/div/div/div/a
waitForElementPresent link=Users and groups management
clickAndWait link=Users and groups management
echo -- Search user --
waitForElementPresent searchTerm
type searchTerm Test_SNF_PRL_05
waitForElementPresent //form[@id='UISearchForm']/div[2]/a
click //form[@id='UISearchForm']/div[2]/a
echo -- Delete user --
waitForElementPresent //img[@alt='DeleteUser']
click //img[@alt='DeleteUser']
waitForConfirmationPresent
assertConfirmation Are you sure you want to delete Test_SNF_PRL_05 user?
waitForTextPresent Empty data
verifyTextPresent Empty data
waitForElementPresent link=Sign out
clickAndWait link=Sign out