| open |
/portal/public/intranet/ |
|
| windowMaximize |
|
|
| echo |
-- My relation list |
|
| click |
//b[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
id=UIPortalLoginFormAction |
|
| waitForElementPresent |
link=Find People |
|
| clickAndWait |
link=Find People |
|
| echo |
-- Send invitation to a user : James |
|
| waitForElementPresent |
//div[contains(text(),'james.davis@acme.exoplatform.com')]/following-sibling::ul//a[@title='Invite'] |
|
| click |
//div[contains(text(),'james.davis@acme.exoplatform.com')]/following-sibling::ul//a[@title='Invite'] |
|
| echo |
-- Send invitation to a user : John |
|
| waitForElementPresent |
//div[contains(text(),'john.smith@acme.exoplatform.com')]/following-sibling::ul//a[@title='Invite'] |
|
| click |
//div[contains(text(),'john.smith@acme.exoplatform.com')]/following-sibling::ul//a[@title='Invite'] |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| echo |
-- Accept Invitation |
|
| click |
//b[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
james |
| type |
password |
gtn |
| clickAndWait |
id=UIPortalLoginFormAction |
|
| waitForElementPresent |
link=My Network |
|
| clickAndWait |
link=My Network |
|
| waitForElementPresent |
link=Received Invitations |
|
| clickAndWait |
link=Received Invitations |
|
| waitForElementPresent |
//a[text()='Root Root']/following-sibling::ul//a[@title='Accept'] |
|
| click |
//a[text()='Root Root']/following-sibling::ul//a[@title='Accept'] |
|
| echo |
-- Verify Accept successful |
|
| waitForElementPresent |
link=Network |
|
| clickAndWait |
link=Network |
|
| waitForElementPresent |
link=Root Root |
|
| verifyElementPresent |
link=Root Root |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| echo |
-- John Deny |
|
| click |
//b[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
john |
| type |
password |
gtn |
| clickAndWait |
id=UIPortalLoginFormAction |
|
| waitForElementPresent |
link=My Network |
|
| clickAndWait |
link=My Network |
|
| waitForElementPresent |
link=Received Invitations |
|
| clickAndWait |
link=Received Invitations |
|
| waitForElementPresent |
//a[text()='Root Root']/following-sibling::ul//a[@title='Deny'] |
|
| click |
//a[text()='Root Root']/following-sibling::ul//a[@title='Deny'] |
|
| waitForElementPresent |
link=Network |
|
| clickAndWait |
link=Network |
|
| waitForElementNotPresent |
link=Root Root |
|
| verifyElementNotPresent |
link=Root Root |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| echo |
-- Verify friend list |
|
| click |
//b[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
id=UIPortalLoginFormAction |
|
| waitForElementPresent |
link=My Network |
|
| clickAndWait |
link=My Network |
|
| waitForElementPresent |
link=Network |
|
| clickAndWait |
link=Network |
|
| echo |
-- Exist James |
|
| waitForElementPresent |
link=James Davis |
|
| verifyElementPresent |
link=James Davis |
|
| waitForElementPresent |
//a[text()='James Davis']/following-sibling::ul//a[@title='Delete'] |
|
| click |
//a[text()='James Davis']/following-sibling::ul//a[@title='Delete'] |
|
| echo |
-- Not Exist John |
|
| waitForElementNotPresent |
link=John Smith |
|
| verifyElementNotPresent |
link=John Smith |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|