| open |
/csdemo |
|
| windowMaximize |
|
|
| echo |
-Manage Mail Account- |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
id=UIPortalLoginFormAction |
|
| echo |
-- Add Mail Account |
|
| waitForElementPresent |
link=Mail |
|
| clickAndWait |
link=Mail |
|
| echo |
-- Create IMAP mail account-- |
|
| waitForElementPresent |
css=div.IconHolder.AccountSettingIcon |
|
| click |
css=div.IconHolder.AccountSettingIcon |
|
| echo |
-- Step 1 |
|
| waitForElementPresent |
accountName |
|
| type |
accountName |
Test_23_account |
| type |
description |
Test_23_account_description |
| click |
link=Next |
|
| echo |
-- Step 2 |
|
| waitForElementPresent |
outgoingName |
|
| type |
outgoingName |
Test_23 |
| type |
emailAddress |
exotest3@gmail.com |
| type |
emailReply |
exotest3@gmail.com |
| type |
signature |
Test_23_Signature |
| click |
link=Next |
|
| echo |
-- Step 3 : Server Information |
|
| waitForElementPresent |
incomingServer |
imap.gmail.com |
| verifyElementPresent |
incomingServer |
imap.gmail.com |
| click |
link=Next |
|
| echo |
-- Step 4 User Name & Password |
|
| waitForElementPresent |
userName |
|
| type |
userName |
exotest3 |
| type |
password |
exovietnam |
| click |
link=Next |
|
| echo |
-- Step 5 Verify Information |
|
| waitForTextPresent |
Test_23_account |
|
| verifyTextPresent |
Test_23_account |
|
| click |
link=Finish |
|
| echo |
-- Edit Create Account |
|
| waitForElementPresent |
css=div.AddAccountIcon |
|
| click |
css=div.AddAccountIcon |
|
| waitForElementPresent |
link=Edit Account |
|
| click |
link=Edit Account |
|
| waitForElementPresent |
accountName |
|
| type |
accountName |
Test_23_account_Edit |
| type |
display-name |
Test_23_Edit |
| type |
mailSignature |
Test_23_Signature_Edit |
| echo |
-- Incoming |
|
| waitForElementPresent |
//div[text()='Incoming'] |
|
| click |
//div[text()='Incoming'] |
|
| echo |
-- Outgoing |
|
| waitForElementPresent |
//div[text()='Outgoing'] |
|
| click |
//div[text()='Outgoing'] |
|
| echo |
-- Fetch Options |
|
| waitForElementPresent |
//div[text()='Fetch Options'] |
|
| click |
//div[text()='Fetch Options'] |
|
| echo |
-- Save |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| waitForTextPresent |
The account has been updated successfully. |
|
| verifyTextPresent |
The account has been updated successfully. |
|
| echo |
-- confirm OK |
|
| click |
css=div.PopupContent.UIPopupMessages > div.UIAction > a.ActionButton.LightBlueStyle |
|
| waitForTextPresent |
Test_23_account_Edit |
|
| verifyTextPresent |
Test_23_account_Edit |
|
| echo |
-- Delete Create Account |
|
| waitForElementPresent |
css=div.AddAccountIcon |
|
| click |
css=div.AddAccountIcon |
|
| waitForElementPresent |
link=Delete Account |
|
| click |
link=Delete Account |
|
| waitForElementPresent |
xpath=//div[@class='UIAccountList']//img[@class='DeleteIcon'] |
|
| click |
xpath=//div[@class='UIAccountList']//img[@class='DeleteIcon'] |
|
| verifyConfirmation |
Are you sure to delete this account? |
|
| click |
link=Close |
|
| echo |
-- Create POP3 mail account-- |
|
| waitForElementPresent |
css=div.IconHolder.AccountSettingIcon |
|
| click |
css=div.IconHolder.AccountSettingIcon |
|
| echo |
-- Step 1 |
|
| waitForElementPresent |
accountName |
|
| type |
accountName |
Test_23_account |
| type |
description |
Test_23_account_description |
| click |
link=Next |
|
| echo |
-- Step 2 |
|
| waitForElementPresent |
outgoingName |
|
| type |
outgoingName |
Test_23 |
| type |
emailAddress |
exotest3@gmail.com |
| type |
emailReply |
exotest3@gmail.com |
| type |
signature |
Test_23_Signature |
| click |
link=Next |
|
| echo |
-- Step 3 |
|
| waitForElementPresent |
incomingServer |
imap.gmail.com |
| verifyElementPresent |
incomingServer |
imap.gmail.com |
| select |
//select[@name='serverType'] |
label=pop3 |
| click |
//option[@value='pop3'] |
|
| click |
link=Next |
|
| echo |
-- Step 4 |
|
| waitForElementPresent |
userName |
|
| type |
userName |
exotest3 |
| type |
password |
exovietnam |
| click |
link=Next |
|
| echo |
-- Step 5 |
|
| waitForTextPresent |
Test_23_account |
|
| verifyTextPresent |
Test_23_account |
|
| click |
link=Finish |
|
| echo |
-- Delete Create Account |
|
| click |
css=div.AddAccountIcon |
|
| waitForElementPresent |
link=Delete Account |
|
| click |
link=Delete Account |
|
| waitForTextPresent |
Test_23_account |
|
| verifyTextPresent |
Test_23_account |
|
| waitForElementPresent |
xpath=//div[@class='UIAccountList']//img[@class='DeleteIcon'] |
|
| click |
xpath=//div[@class='UIAccountList']//img[@class='DeleteIcon'] |
|
| verifyConfirmation |
Are you sure to delete this account? |
|
| click |
link=Close |
|
| echo |
-- Sign out |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|