| open |
/socialdemo/public/classic/ |
|
| windowMaximize |
|
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a |
|
| open |
http://localhost:8080/socialdemo/private/classic/NewStaff |
|
| echo |
--Create new user using "New Staff" portlet |
|
| waitForElementPresent |
username |
|
| type |
username |
test_02 |
| type |
password |
userstories2 |
| type |
Confirmpassword |
userstories2 |
| type |
firstName |
hoa |
| type |
lastName |
nguyen |
| type |
email |
test_02@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 |
hoa nguyen |
|
| verifyTextPresent |
hoa nguyen |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|
| open |
/socialdemo/public/classic/ |
|
| echo |
-- Update Profile |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
test_02 |
| type |
password |
userstories2 |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a |
|
| waitForElementPresent |
link=Profile |
|
| click |
link=Profile |
|
| echo |
-- Edit Position |
|
| waitForElementPresent |
link=Edit |
|
| click |
link=Edit |
|
| waitForElementPresent |
position |
|
| type |
position |
Accounter |
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| waitForTextPresent |
Accounter |
|
| verifyTextPresent |
Accounter |
|
| pause |
1000 |
|
| echo |
--Update Basic info-- |
|
| waitForElementPresent |
//div[@id='UITitleBar']/h5/a |
|
| click |
//div[@id='UITitleBar']/h5/a |
|
| waitForElementPresent |
firstName |
Hieu |
| type |
firstName |
Hieu |
| type |
lastName |
trinh |
| type |
email |
hieu@gmail.com |
| waitForElementPresent |
//div[@id='UITitleBar']/h5/a[2] |
|
| click |
//div[@id='UITitleBar']/h5/a[2] |
|
| echo |
--Verify Basic info after edited-- |
|
| waitForTextPresent |
First name : Hieu |
|
| verifyTextPresent |
First name : Hieu |
|
| verifyTextPresent |
Last name : trinh |
|
| verifyTextPresent |
Email : hieu@gmail.com |
|
| 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 |
112223344 |
| pause |
1000 |
|
| click |
//div[@class='UIContactSection']//table[@class='UIFormGrid']/tbody/tr[3]//a |
|
| waitForElementPresent |
2im001 |
|
| type |
2im001 |
flower |
| 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[@id='UITitleBar']/h5/a[2] |
|
| click |
//div[@id='UITitleBar']/h5/a[2] |
|
| echo |
-- Verify Contact information updated |
|
| pause |
2000 |
|
| waitForTextPresent |
Phone : Work: 112223344 |
|
| verifyTextPresent |
Phone : Work: 112223344 |
|
| pause |
1000 |
|
| waitForTextPresent |
Gtalk: flower |
|
| verifyTextPresent |
Gtalk: flower |
|
| 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 Platform |
| type |
//tr[2]/td[2]/input |
Accounter |
| type |
//tr[5]/td[2]/input |
05/05/2010 |
| type |
//tr[6]/td[2]/input[1] |
06/01/2011 |
| waitForElementPresent |
//div[@id='UITitleBar']/h5/a[2] |
|
| click |
//div[@id='UITitleBar']/h5/a[2] |
|
| echo |
-- Verify experience updated |
|
| pause |
1000 |
|
| waitForTextPresent |
Accounter at eXo Platform |
|
| verifyTextPresent |
Accounter at eXo Platform |
|
| verifyTextPresent |
May 5 2010 to June 1 2011 |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|
| echo |
--Delete User |
|
| open |
/socialdemo/public/classic/ |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a |
|
| open |
http://localhost:8080/socialdemo/private/classic/ManagementUser |
|
| waitForTextPresent |
test_02 |
|
| verifyTextPresent |
test_02 |
|
| 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_02 user? |
|
| waitForElementPresent |
link=Directory |
|
| clickAndWait |
link=Directory |
|
| waitForTextNotPresent |
Hieu trinh |
|
| verifyTextNotPresent |
Hieu trinh |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|