Test_SNF_SOC_26_ChangeUserProfile
open /portal/public/intranet/
windowMaximize
echo -- Update Profile
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a
open http://localhost:8080/portal/private/intranet/NewStaff
echo --Create new user using "New Staff" portlet
waitForElementPresent username
type username test_user_26
type password test_pwd_26
type Confirmpassword test_pwd_26
type firstName eXo
type lastName Test_26
type email test_user_26@gmail.com
waitForElementPresent link=Save
click link=Save
waitForElementPresent //div[@id='UIAccountPortlet']//div[@class='UIPopupWindow UIDragObject']//a
click //div[@id='UIAccountPortlet']//div[@class='UIPopupWindow UIDragObject']//a
waitForElementPresent link=Logout
clickAndWait link=Logout
open /portal/public/intranet/
echo -- Update Profile
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username test_user_26
type password test_pwd_26
clickAndWait //div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a
waitForElementPresent link=Profile
click link=Profile
echo -- Update Position
waitForElementPresent link=Edit
click link=Edit
waitForElementPresent position
type position eXo Tester
waitForElementPresent link=Save
click link=Save
pause 1000
echo -- Update Contact
waitForElementPresent //div[@class='UIContactSection']//a
click //div[@class='UIContactSection']//a
waitForElementPresent gender
select gender label=female
pause 1000
click //td[2]/a
pause 1000
type 1phone001 123456789
pause 1000
click //div[@class='UIContactSection']//table[@class='UIFormGrid']/tbody/tr[3]//a
waitForElementPresent 2im001
type 2im001 eXo_Test_26
waitForElementPresent //div[@class='UIContactSection']//table[@class='UIFormGrid']/tbody/tr[4]//a
click //div[@class='UIContactSection']//table[@class='UIFormGrid']/tbody/tr[4]//a
pause 1000
type 3url001 http://www.google.com
waitForElementPresent //div[@class='UIContactSection']
click //div[@class='UIContactSection']//a[@class='SaveIcon']
echo -- Verify Contact information updated
pause 2000
waitForTextPresent Phone : Work: 123456789
verifyTextPresent Phone : Work: 123456789
pause 1000
waitForTextPresent Gtalk: eXo_Test_26
verifyTextPresent Gtalk: eXo_Test_26
pause 1000
waitForTextPresent Urls : http://www.google.com
verifyTextPresent Urls : http://www.google.com
pause 1000
echo -- Update Experiences
waitForElementPresent //div[@class='experience']//a
click //div[@class='experience']//a
waitForElementPresent //div[@class='experience']//table[@class='UIFormGrid']//a
click //div[@class='experience']//table[@class='UIFormGrid']//a
waitForElementPresent //td[2]/input
type //td[2]/input eXo Sea
type //tr[2]/td[2]/input Tester eXo
type //tr[5]/td[2]/input 05/05/2010
type //tr[6]/td[2]/input[1] 06/01/2010
waitForElementPresent //div[@class='experience']
click //div[@class='experience']//a[@class='SaveIcon']
echo -- Verify experience updated
pause 1000
waitForTextPresent Tester eXo at eXo Sea
verifyTextPresent Tester eXo at eXo Sea
verifyTextPresent May 5 2010 to June 1 2010
waitForElementPresent link=Logout
clickAndWait link=Logout
echo --Delete User
open /portal/public/intranet/
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a
open http://localhost:8080/portal/private/intranet/ManagementUser
waitForTextPresent test_user_26
verifyTextPresent test_user_26
waitForElementPresent xpath=//div[@class='UIListUsers']//tbody/tr[5]//img[@class='DeleteUserIcon']
click xpath=//div[@class='UIListUsers']//tbody/tr[5]//img[@class='DeleteUserIcon']
waitForConfirmation Are you sure you want to delete test_user_26 user?
waitForElementPresent link=Logout
clickAndWait link=Logout