| open |
/portal/public/classic/ |
|
| waitForElementPresent |
//b[contains(text(),'Sign in')] |
|
| click |
//b[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| waitForElementPresent |
id=UIPortalLoginFormAction |
|
| click |
id=UIPortalLoginFormAction |
|
| pause |
2000 |
|
| echo |
-- access mail app |
|
| waitForElementPresent |
//div[8]/div/div/div/div/div/div/div/div/div/div/div/div/div/div/a |
|
| click |
//div[8]/div/div/div/div/div/div/div/div/div/div/div/div/div/div/a |
|
| echo |
-- add new account |
|
| waitForElementPresent |
//form[@id='UISelectAccount']/div[2] |
|
| click |
//form[@id='UISelectAccount']/div[2] |
|
| waitForElementPresent |
//form[@id='UISelectAccount']/div[2]/div/div/div/div[2]/div/div/a[1]/div |
|
| click |
//form[@id='UISelectAccount']/div[2]/div/div/div/div[2]/div/div/a[1]/div |
|
| echo |
---- enter all data - step 1 |
|
| waitForElementPresent |
accountName |
|
| type |
accountName |
exomailtest |
| type |
description |
test delegate user |
| echo |
---- step 2 |
|
| waitForElementPresent |
link=Next |
|
| click |
link=Next |
|
| waitForElementPresent |
outgoingName |
|
| type |
outgoingName |
exomailtest |
| type |
emailAddress |
exomailtest@gmail.com |
| type |
emailReply |
exomailtest@gmail.com |
| type |
signature |
exomailtest |
| echo |
---- step 4 |
|
| waitForElementPresent |
link=Next |
|
| click |
link=Next |
|
| waitForElementPresent |
userName |
|
| type |
userName |
exomailtest@gmail.com |
| type |
password |
axoadmin |
| echo |
---- step 5 |
|
| pause |
1000 |
|
| waitForElementPresent |
link=5 |
|
| click |
link=5 |
|
| waitForElementPresent |
link=Finish |
|
| click |
link=Finish |
|
| echo |
-- verify new added account |
|
| echo |
-- add delegate user |
|
| waitForElementPresent |
//div[@id='MailWorkingWorkspace']/div[1]/div/div/div/div/div/div[9]/div |
|
| click |
//div[@id='MailWorkingWorkspace']/div[1]/div/div/div/div/div/div[9]/div |
|
| waitForElementPresent |
link=Delegation |
|
| click |
link=Delegation |
|
| echo |
---- delegate Demo without full |
|
| waitForElementPresent |
delegated-accounts |
|
| type |
delegated-accounts |
demo |
| waitForElementPresent |
//div[@id='account-delegation']/div[1]/table/tbody/tr[3]/td[1]/div/div[3] |
|
| click |
//div[@id='account-delegation']/div[1]/table/tbody/tr[3]/td[1]/div/div[3] |
|
| echo |
---- delegate John with Full |
|
| waitForElementPresent |
delegated-accounts |
|
| type |
delegated-accounts |
john |
| waitForElementPresent |
//input[@name='full-privilege'] |
|
| click |
//input[@name='full-privilege'] |
|
| waitForElementPresent |
//div[@id='account-delegation']/div[1]/table/tbody/tr[3]/td[1]/div/div[3] |
|
| click |
//div[@id='account-delegation']/div[1]/table/tbody/tr[3]/td[1]/div/div[3] |
|
| echo |
---- verify delegate user |
|
| verifyTextPresent |
exomailtest (Default) |
|
| echo |
---- Save delegate user |
|
| waitForElementPresent |
//form[@id='UIMailSettings']/div[3]/div[2]/table/tbody/tr/td/a[1]/div/div/div |
|
| click |
//form[@id='UIMailSettings']/div[3]/div[2]/table/tbody/tr/td/a[1]/div/div/div |
|
| pause |
1000 |
|
| waitForElementPresent |
link=Logout |
|
| click |
link=Logout |
|
| echo |
-- Demo check delegate account without FULL |
|
| open |
/portal/public/classic/ |
|
| click |
//b[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
demo |
| type |
password |
gtn |
| waitForElementPresent |
id=UIPortalLoginFormAction |
|
| click |
id=UIPortalLoginFormAction |
|
| pause |
1000 |
|
| echo |
-- access Mail ap |
|
| waitForElementPresent |
//div[8]/div/div/div/div/div/div/div/div/div/div/div/div/div/div/a |
|
| click |
//div[8]/div/div/div/div/div/div/div/div/div/div/div/div/div/div/a |
|
| verifyTextPresent |
exomailtest (delegated) |
|
| echo |
--- Select manage account |
|
| waitForElementPresent |
//form[@id='UISelectAccount']/div[2] |
|
| click |
//form[@id='UISelectAccount']/div[2] |
|
| echo |
--- Edit account |
|
| waitForElementPresent |
//form[@id='UISelectAccount']/div[2]/div/div/div/div[2]/div/div/a[2]/div |
|
| click |
//form[@id='UISelectAccount']/div[2]/div/div/div/div[2]/div/div/a[2]/div |
|
| echo |
-- verify text appear |
|
| verifyTextPresent |
You have no permission on this delegated account! |
|
| click |
link=OK |
|
| echo |
-- check compose mail |
|
| waitForElementNotPresent |
//div[@id='MailWorkingWorkspace']/div[1]/div/div/div/div/div/div[2]/div |
|
| click |
//div[@id='MailWorkingWorkspace']/div[1]/div/div/div/div/div/div[2]/div |
|
| pause |
500 |
|
| verifyTextPresent |
You must add an account first. |
|
| click |
link=OK |
|
| pause |
1000 |
|
| clickAndWait |
link=Logout |
|
| open |
/portal/public/classic/ |
|
| click |
//b[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
john |
| type |
password |
gtn |
| waitForElementPresent |
id=UIPortalLoginFormAction |
|
| click |
id=UIPortalLoginFormAction |
|
| pause |
1000 |
|
| echo |
-- access Mail app |
|
| waitForElementPresent |
//div[8]/div/div/div/div/div/div/div/div/div/div/div/div/div/div/a |
|
| click |
//div[8]/div/div/div/div/div/div/div/div/div/div/div/div/div/div/a |
|
| echo |
-- check delegated account |
|
| verifyTextPresent |
exomailtest (delegated) |
|
| waitForElementPresent |
//form[@id='UISelectAccount']/div[2] |
|
| click |
//form[@id='UISelectAccount']/div[2] |
|
| echo |
--- edit account |
|
| waitForElementPresent |
//form[@id='UISelectAccount']/div[2]/div/div/div/div[2]/div/div/a[2]/div |
|
| click |
//form[@id='UISelectAccount']/div[2]/div/div/div/div[2]/div/div/a[2]/div |
|
| echo |
-- verify text appear |
|
| verifyTextPresent |
You have no permission on this delegated account! |
|
| click |
link=OK |
|
| echo |
-- compose mail |
|
| waitForElementPresent |
//div[@id='MailWorkingWorkspace']/div[1]/div/div/div/div/div/div[2]/div |
|
| click |
//div[@id='MailWorkingWorkspace']/div[1]/div/div/div/div/div/div[2]/div |
|
| verifyTextPresent |
Compose a new message |
|
| click |
//div[@id='UIPopupWindow']/div/div[1]/div/div/div/div[2] |
|
| pause |
1000 |
|
| clickAndWait |
link=Logout |
|
| echo |
-- Root delete account |
|
| open |
/portal/public/classic/ |
|
| click |
//b[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| waitForElementPresent |
id=UIPortalLoginFormAction |
|
| click |
id=UIPortalLoginFormAction |
|
| pause |
1000 |
|
| echo |
-- access Mail app |
|
| waitForElementPresent |
//div[8]/div/div/div/div/div/div/div/div/div/div/div/div/div/div/a |
|
| click |
//div[8]/div/div/div/div/div/div/div/div/div/div/div/div/div/div/a |
|
| echo |
-- Delete account |
|
| waitForElementPresent |
//form[@id='UISelectAccount']/div[2] |
|
| click |
//form[@id='UISelectAccount']/div[2] |
|
| waitForElementPresent |
//form[@id='UISelectAccount']/div[2]/div/div/div/div[2]/div/div/a[3]/div |
|
| click |
//form[@id='UISelectAccount']/div[2]/div/div/div/div[2]/div/div/a[3]/div |
|
| pause |
500 |
|
| waitForElementPresent |
//div[@id='UIAccountList']/table/tbody/tr/td[5]/div/div/a/img |
|
| click |
//div[@id='UIAccountList']/table/tbody/tr/td[5]/div/div/a/img |
|
| assertConfirmation |
Are you sure you want to delete this account? |
|
| verifyTextNotPresent |
exomailtest (Default) |
|
| click |
//div[@id='UIAccountList']/div[2]/div/table/tbody/tr/td/a/div/div/div |
|
| clickAndWait |
link=Logout |
|