| echo |
-- SNF_CS_70_Delegate an email account to specific user |
|
| open |
/csdemo/public/classic/ |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| waitForElementPresent |
//a[contains(@onclick,'login')] |
|
| click |
//a[contains(@onclick,'login')] |
|
| pause |
2000 |
|
| echo |
-- access mail app |
|
| waitForElementPresent |
link=Mail |
|
| click |
link=Mail |
|
| echo |
-- add new account |
|
| waitForElementPresent |
css=div.IconHolder.AccountSettingIcon |
|
| click |
css=div.IconHolder.AccountSettingIcon |
|
| echo |
-- Step 1 |
|
| waitForElementPresent |
accountName |
|
| type |
accountName |
Test_account |
| type |
description |
Test_account_description |
| click |
link=Next |
|
| echo |
-- Step 2 |
|
| waitForElementPresent |
outgoingName |
|
| type |
outgoingName |
Test_Mail |
| type |
emailAddress |
exomailtest@gmail.com |
| type |
emailReply |
exomailtest@gmail.com |
| type |
signature |
Test_Mail_Signature |
| click |
link=Next |
|
| echo |
-- Step 3 |
|
| waitForElementPresent |
incomingServer |
imap.gmail.com |
| verifyElementPresent |
incomingServer |
imap.gmail.com |
| click |
link=Next |
|
| echo |
-- Step 4 |
|
| waitForElementPresent |
userName |
|
| type |
userName |
exomailtest@gmail.com |
| type |
password |
exoadmin |
| click |
link=Next |
|
| echo |
-- Step 5 |
|
| waitForTextPresent |
Test_account |
|
| verifyTextPresent |
Test_account |
|
| click |
link=Finish |
|
| 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 |
---- 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=Sign out |
|
| click |
link=Sign out |
|
| echo |
-- Demo check delegate account without FULL |
|
| open |
/csdemo/public/classic/ |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
demo |
| type |
password |
gtn |
| waitForElementPresent |
//a[contains(@onclick,'login')] |
|
| click |
//a[contains(@onclick,'login')] |
|
| pause |
1000 |
|
| echo |
-- access Mail ap |
|
| waitForElementPresent |
link=Mail |
|
| click |
link=Mail |
|
| echo |
--- Edit account |
|
| waitForElementPresent |
css=div.IconHolder.AccountSettingIcon |
|
| click |
css=div.IconHolder.AccountSettingIcon |
|
| echo |
-- verify text appear |
|
| click |
link=OK |
|
| echo |
-- check 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 |
|
| pause |
500 |
|
| verifyTextPresent |
You must add an account first. |
|
| click |
link=OK |
|
| pause |
1000 |
|
| clickAndWait |
link=Sign out |
|
| open |
/csdemo/public/classic/ |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
john |
| type |
password |
gtn |
| waitForElementPresent |
//a[contains(@onclick,'login')] |
|
| click |
//a[contains(@onclick,'login')] |
|
| pause |
1000 |
|
| echo |
-- access Mail app |
|
| waitForElementPresent |
link=Mail |
|
| click |
link=Mail |
|
| echo |
--- edit account |
|
| waitForElementPresent |
css=div.IconHolder.AccountSettingIcon |
|
| click |
css=div.IconHolder.AccountSettingIcon |
|
| echo |
-- verify text appear |
|
| 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=Sign out |
|
| echo |
-- Root delete account |
|
| open |
/csdemo/public/classic/ |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| waitForElementPresent |
//a[contains(@onclick,'login')] |
|
| click |
//a[contains(@onclick,'login')] |
|
| pause |
1000 |
|
| echo |
-- access Mail app |
|
| waitForElementPresent |
link=Mail |
|
| click |
link=Mail |
|
| echo |
-- Delete account |
|
| waitForElementPresent |
css=div.IconHolder.AccountSettingIcon |
|
| clickAt |
css=div.IconHolder.AccountSettingIcon |
2,2 |
| pause |
20000 |
|
| waitForElementPresent |
//a[@title='Delete Account']/div |
|
| click |
//a[@title='Delete Account']/div |
|
| verifyConfirmation |
Are you sure to delete this account with all associated emails? |
|
| clickAndWait |
link=Sign out |
|
| verifyElementPresent |
link=Sign in |
|