| open |
/portal/public/intranet |
|
| windowMaximize |
|
|
| waitForElementPresent |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| click |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| waitForElementPresent |
username |
|
| type |
username |
john |
| waitForElementPresent |
password |
|
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a |
|
| open |
/portal/private/intranet/contact |
|
| pause |
10000 |
|
| echo |
-Share Address Book- |
|
| echo |
-- Share address book |
|
| waitForElementPresent |
//div[@title='My Contacts'] |
|
| mouseOver |
//div[@title='My Contacts'] |
|
| contextMenu |
//div[@title='My Contacts'] |
|
| waitForElementPresent |
link=Share |
|
| click |
link=Share |
|
| waitForElementPresent |
user |
|
| type |
user |
root |
| click |
canEdit |
|
| click |
link=Save |
|
| type |
user |
demo |
| click |
link=Save |
|
| click |
link=Close |
|
| waitForElementPresent |
//div[@class='IconHolder SharedAddressIcon'] |
|
| click |
link=Logout |
|
| echo |
-- Login by root to check shared address book |
|
| open |
/portal/public/intranet |
|
| windowMaximize |
|
|
| waitForElementPresent |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| click |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| waitForElementPresent |
password |
|
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a |
|
| open |
/portal/private/intranet/contact |
|
| pause |
10000 |
|
| waitForElementPresent |
//div[@title='john - My Contacts'] |
|
| mouseOver |
//div[@title='john - My Contacts'] |
|
| contextMenu |
//div[@title='john - My Contacts'] |
|
| waitForElementPresent |
link=Edit |
|
| clickAndWait |
link=Logout |
|
| echo |
-- Login by demo to check shared address book |
|
| open |
/portal/public/intranet |
|
| windowMaximize |
|
|
| waitForElementPresent |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| click |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| waitForElementPresent |
username |
|
| type |
username |
demo |
| waitForElementPresent |
password |
|
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a |
|
| open |
/portal/private/intranet/contact |
|
| pause |
10000 |
|
| waitForElementPresent |
//div[@title='john - My Contacts'] |
|
| click |
//div[@title='john - My Contacts'] |
|
| waitForElementPresent |
link=John Smith |
|
| clickAndWait |
link=Logout |
|
| echo |
-- Login by john to remove share users |
|
| open |
/portal/public/intranet |
|
| windowMaximize |
|
|
| waitForElementPresent |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| click |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| waitForElementPresent |
username |
|
| type |
username |
john |
| waitForElementPresent |
password |
|
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a |
|
| open |
/portal/private/intranet/contact |
|
| pause |
10000 |
|
| mouseOver |
//div[@title='My Contacts'] |
|
| contextMenu |
//div[@title='My Contacts'] |
|
| waitForElementPresent |
//a[@class='ItemIcon ShareIcon'] |
|
| click |
//a[@class='ItemIcon ShareIcon'] |
|
| waitForElementPresent |
//img[@alt='Delete'] |
|
| click |
//img[@alt='Delete'] |
|
| assertConfirmation |
Are you sure you want to remove this permission ? |
|
| waitForElementPresent |
//img[@alt='Delete'] |
|
| click |
//img[@alt='Delete'] |
|
| assertConfirmation |
Are you sure you want to remove this permission ? |
|
| clickAndWait |
link=Logout |
|
| close |
|
|