| open |
/socialdemo/public/classic/ |
|
| windowMaximize |
|
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//a[@id='UIPortalLoginFormAction'] |
|
| open |
http://localhost:8080/socialdemo/private/classic/NewStaff |
|
| echo |
--Create new user using "New Staff" portlet |
|
| waitForElementPresent |
username |
|
| type |
username |
test_user_27 |
| type |
password |
test_pwd_27 |
| type |
Confirmpassword |
test_pwd_27 |
| type |
firstName |
eXo |
| type |
lastName |
Test_27 |
| type |
email |
test_user_27@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 |
|
| echo |
--Check display new user in directory-- |
|
| waitForElementPresent |
link=Directory |
|
| clickAndWait |
link=Directory |
|
| waitForTextPresent |
test_user_27 |
|
| verifyTextPresent |
test_user_27 |
|
| echo |
-- Update Profile |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|
| open |
/socialdemo/public/classic/ |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
test_user_27 |
| type |
password |
test_pwd_27 |
| clickAndWait |
//a[@id='UIPortalLoginFormAction'] |
|
| waitForElementPresent |
link=Profile |
|
| clickAndWait |
link=Profile |
|
| echo |
-- Update Position |
|
| waitForElementPresent |
link=Edit |
|
| click |
link=Edit |
|
| waitForElementPresent |
position |
|
| type |
position |
eXo Tester |
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| waitForTextPresent |
eXo Tester |
|
| verifyTextPresent |
eXo Tester |
|
| pause |
1000 |
|
| echo |
-- Update Contact |
|
| waitForElementPresent |
//div[@class='UIContactSection']//a |
|
| click |
//div[@class='UIContactSection']//a |
|
| waitForElementPresent |
gender |
|
| select |
gender |
male |
| waitForElementPresent |
//td[2]/a |
|
| click |
//td[2]/a |
|
| pause |
500 |
|
| waitForElementPresent |
1phone001 |
|
| type |
1phone001 |
123456789 |
| click |
//div[@class='UIContactSection']//table[@class='UIFormGrid']/tbody/tr[3]//a |
|
| echo |
-- Update IM |
|
| waitForElementPresent |
2im001 |
|
| type |
2im001 |
eXo_Test_27 |
| waitForElementPresent |
//div[@class='UIContactSection']//table[@class='UIFormGrid']/tbody/tr[4]//a |
|
| click |
//div[@class='UIContactSection']//table[@class='UIFormGrid']/tbody/tr[4]//a |
|
| waitForElementPresent |
3url001 |
|
| pause |
500 |
|
| type |
3url001 |
http://www.google.com |
| waitForElementPresent |
//div[@id='UITitleBar']/h5/a[2] |
|
| click |
//div[@id='UITitleBar']/h5/a[2] |
|
| 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[@id='UITitleBar']/h5/a[2] |
|
| click |
//div[@id='UITitleBar']/h5/a[2] |
|
| echo |
-- View Friend profile |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|
| open |
/socialdemo/public/classic/ |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//a[@id='UIPortalLoginFormAction'] |
|
| waitForElementPresent |
link=Directory |
|
| click |
link=Directory |
|
| waitForElementPresent |
link=eXo Test_27 |
|
| click |
link=eXo Test_27 |
|
| waitForElementPresent |
//div[@id='UIProfileNavigationPortlet']//a[@class='ProfileIcon'] |
|
| click |
//div[@id='UIProfileNavigationPortlet']//a[@class='ProfileIcon'] |
|
| waitForTextPresent |
User name : test_user_27 |
|
| verifyTextPresent |
User name : test_user_27 |
|
| verifyTextPresent |
Email : test_user_27@gmail.com |
|
| verifyTextPresent |
Gender : male |
|
| verifyTextPresent |
Phone : Work: 123456789 |
|
| verifyTextPresent |
Gtalk: eXo_Test_27 |
|
| verifyTextPresent |
Urls : http://www.google.com |
|
| echo |
--Delete User |
|
| open |
http://localhost:8080/socialdemo/private/classic/ManagementUser |
|
| waitForTextPresent |
test_user_27 |
|
| verifyTextPresent |
test_user_27 |
|
| 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_27 user? |
|
| waitForTextNotPresent |
test_user_27 |
|
| verifyTextNotPresent |
test_user_27 |
|
| echo |
--Check deleted user in Directory-- |
|
| waitForElementPresent |
link=Directory |
|
| clickAndWait |
link=Directory |
|
| waitForTextNotPresent |
eXo_Test_27 |
|
| verifyTextNotPresent |
eXo_Test_27 |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|