| open |
/csdemo |
|
| windowMaximize |
|
|
| echo |
-Test Mail- |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
demo |
| type |
password |
gtn |
| clickAndWait |
//a[contains(@onclick,'login')] |
|
| echo |
-- Add Mail Account |
|
| waitForElementPresent |
link=Mail |
|
| clickAndWait |
link=Mail |
|
| echo |
-- Account Settings: Create Account |
|
| waitForElementPresent |
css=div.IconHolder.AccountSettingIcon |
|
| click |
css=div.IconHolder.AccountSettingIcon |
|
| echo |
-- Step 1 : Account Name & Description |
|
| waitForElementPresent |
accountName |
|
| type |
accountName |
Test_account |
| type |
description |
Test_account_description |
| click |
link=Next |
|
| echo |
-- Step 2 : Mail Identity Settings |
|
| 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 : 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 |
exomailtest@gmail.com |
| type |
password |
exoadmin |
| click |
link=Next |
|
| echo |
-- Step 5 : Verify Information |
|
| waitForTextPresent |
Test_account |
|
| verifyTextPresent |
Test_account |
|
| verifyElementPresent |
getMail |
|
| click |
getMail |
|
| click |
link=Finish |
|
| pause |
60000 |
|
| echo |
- Write mail |
|
| waitForElementPresent |
xpath=//div[@class='UIActionBar']//div[@class='IconHolder ComposeIcon'] |
|
| click |
xpath=//div[@class='UIActionBar']//div[@class='IconHolder ComposeIcon'] |
|
| waitForElementPresent |
to |
|
| type |
to |
exomailtest@gmail.com |
| type |
subject |
eXo_Test |
| click |
xpath=//div[@class='UIToolbar']//div[@class='IconHolder SendMailIcon'] |
|
| pause |
60000 |
|
| echo |
-- Check email in Sent Iteams |
|
| waitForElementPresent |
xpath=//div[@class='MailFolderList']//div[3]/a |
|
| click |
xpath=//div[@class='MailFolderList']//div[3]/a |
|
| waitForElementPresent |
link=eXo_Test |
|
| verifyElementPresent |
link=eXo_Test |
|
| clickAndWait |
link=Sign out |
|
| echo |
-Create Test Account-- |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
mary |
| type |
password |
gtn |
| clickAndWait |
//a[contains(@onclick,'login')] |
|
| 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_Account |
| type |
description |
Test_Account_description |
| click |
link=Next |
|
| echo |
-- Step 2 |
|
| waitForElementPresent |
outgoingName |
|
| type |
outgoingName |
Test_Account |
| type |
emailAddress |
exomailtest@gmail.com |
| type |
emailReply |
exomailtest@gmail.com |
| type |
signature |
Test_Account_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 |
|
| verifyElementPresent |
getMail |
|
| click |
getMail |
|
| click |
link=Finish |
|
| pause |
300000 |
|
| waitForElementPresent |
link=Refresh |
|
| click |
link=Refresh |
|
| echo |
-- Create IMAP mail account-- |
|
| waitForElementPresent |
xpath=//div[@class='UIActionBar']//div[@class='IconHolder CheckMailIcon'] |
|
| click |
xpath=//div[@class='UIActionBar']//div[@class='IconHolder CheckMailIcon'] |
|
| pause |
300000 |
|
| click |
link=Refresh |
|
| echo |
-- Check Get Mail |
|
| waitForElementPresent |
link=eXo_Test |
|
| verifyElementPresent |
link=eXo_Test |
|
| echo |
-- Sign out |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|