| open |
/portal/intranet/ |
|
| windowMaximize |
|
|
| echo |
-Sign in |
|
| click |
//b[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
id=UIPortalLoginFormAction |
|
| echo |
-- Import all Application |
|
| waitForElementPresent |
link=Applications |
|
| click |
link=Applications |
|
| waitForElementPresent |
css=div.IconControl.ImportIcon |
|
| click |
css=div.IconControl.ImportIcon |
|
| assertConfirmation |
This will automatically import all gadgets and portlets into new categories. |
|
| echo |
-- Edit Home Page |
|
| waitForElementPresent |
link=Home |
|
| clickAndWait |
link=Home |
|
| waitForElementPresent |
link=Layout |
|
| click |
link=Layout |
|
| echo |
-- Add Chatbar porlet |
|
| waitForElementPresent |
link=collaboration |
|
| click |
link=collaboration |
|
| waitForElementPresent |
//div[text()='ChatBar Portlet'] |
|
| dragAndDropToObject |
//div[text()='ChatBar Portlet'] |
UIMaskWorkspace |
| echo |
-- Save |
|
| waitForElementPresent |
css=a.EdittedSaveButton |
|
| click |
css=a.EdittedSaveButton |
|
| echo |
-- Log out |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| echo |
-- Sign in by Jack Miller |
|
| waitForElementPresent |
//b[contains(text(),'Sign in')] |
|
| click |
//b[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
demo |
| type |
password |
gtn |
| clickAndWait |
id=UIPortalLoginFormAction |
|
| echo |
-- Add Mail Account |
|
| waitForElementPresent |
//a[@href='/portal/intranet/mail'] |
|
| clickAndWait |
//a[@href='/portal/intranet/mail'] |
|
| waitForElementPresent |
link=Create Account |
|
| click |
link=Create Account |
|
| echo |
-- Step 1: Account Name & Description |
|
| waitForElementPresent |
id=accountName |
|
| type |
id=accountName |
Jack at work |
| type |
description |
Emails at work for testing |
| click |
link=Next |
|
| echo |
-- Step 2: Mail Identity Settings |
|
| waitForElementPresent |
outgoingName |
|
| type |
outgoingName |
Jack Miller |
| type |
emailAddress |
exotest4@gmail.com |
| type |
emailReply |
exotest4@gmail.com |
| type |
signature |
Jack Miller : eXo |
| 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 |
exotest4@gmail.com |
| type |
password |
exovietnam |
| waitForElementPresent |
link=Next |
|
| click |
link=Next |
|
| echo |
-- Step 5: Verify Information |
|
| waitForTextPresent |
exotest4@gmail.com |
|
| verifyTextPresent |
exotest4@gmail.com |
|
| echo |
-- Get Mail |
|
| verifyElementPresent |
getMail |
|
| click |
getMail |
|
| echo |
-- Finish |
|
| click |
link=Finish |
|
| pause |
10000 |
|
| click |
link=Refresh |
|
| 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 |
exotest3@gmail.com |
| type |
subject |
eXo_Test |
| echo |
- Send |
|
| click |
xpath=//div[@class='UIToolbar']//div[@class='IconHolder SendMailIcon'] |
|
| pause |
10000 |
|
| echo |
-- Check mail have sent in SENT BOX |
|
| click |
xpath=//div[@class='MailFolderList']//div[3]/a |
|
| waitForElementPresent |
link=eXo_Test |
|
| verifyElementPresent |
link=eXo_Test |
|
| clickAndWait |
link=Logout |
|
| windowMaximize |
|
|
| echo |
-Create Test Account-- |
|
| waitForElementPresent |
//b[contains(text(),'Sign in')] |
|
| click |
//b[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
mary |
| type |
password |
gtn |
| clickAndWait |
id=UIPortalLoginFormAction |
|
| echo |
-- Add Mail Account |
|
| waitForElementPresent |
//a[@href='/portal/intranet/mail'] |
|
| clickAndWait |
//a[@href='/portal/intranet/mail'] |
|
| echo |
-- Create IMAP mail account-- |
|
| waitForElementPresent |
xpath=//div[@class='UIActionBar']//div[@class='IconHolder AccountSettingIcon'] |
|
| click |
xpath=//div[@class='UIActionBar']//div[@class='IconHolder AccountSettingIcon'] |
|
| echo |
-- Step 1 |
|
| waitForElementPresent |
accountName |
|
| type |
accountName |
Marry at work |
| type |
description |
Emails at work |
| click |
link=Next |
|
| echo |
-- Step 2 |
|
| waitForElementPresent |
outgoingName |
|
| type |
outgoingName |
Mary Simson |
| type |
emailAddress |
exotest3@gmail.com |
| type |
emailReply |
exotest3@gmail.com |
| type |
signature |
Marry from eXo |
| 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 |
exotest3@gmail.com |
| type |
password |
exovietnam |
| click |
link=Next |
|
| echo |
-- Step 5 |
|
| waitForTextPresent |
exotest3@gmail.com |
|
| verifyTextPresent |
exotest3@gmail.com |
|
| verifyElementPresent |
getMail |
|
| click |
getMail |
|
| click |
link=Finish |
|
| pause |
10000 |
|
| 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 |
10000 |
|
| echo |
-- Check Get Mail |
|
| click |
link=Refresh |
|
| waitForElementPresent |
link=eXo_Test |
|
| verifyElementPresent |
link=eXo_Test |
|
| echo |
-- Logout |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|