| open |
/portal/public/intranet |
|
| windowMaximize |
|
|
| waitForElementPresent |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| click |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| waitForElementPresent |
username |
|
| type |
username |
mary |
| waitForElementPresent |
password |
|
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a |
|
| open |
/portal/private/intranet/mail |
|
| pause |
10000 |
|
| echo |
-Attachment- |
|
| echo |
- Check Get Mail |
|
| waitForElementPresent |
link=eXo_Test |
|
| verifyElementPresent |
link=eXo_Test |
|
| echo |
-- Compose mail |
|
| click |
xpath=//div[@class='UIActionBar']//div[@class='IconHolder ComposeIcon'] |
|
| waitForElementPresent |
to |
|
| type |
to |
exotest4@gmail.com |
| type |
subject |
Test29_Attachment_Mail |
| echo |
-- Add attachment file |
|
| click |
//div[2]/div/div/div/div[1]/div/div/div/div/div/div[4]/div/div |
|
| waitForElementPresent |
file |
|
| type |
file |
/home/cong_nguyen/Test_Attachment.html |
| click |
xpath=//img[@class='UploadButton'] |
|
| waitForElementPresent |
xpath=//div[@title='Remove Uploaded'] |
|
| verifyElementPresent |
xpath=//div[@title='Remove Uploaded'] |
|
| click |
link=Save |
|
| waitForElementPresent |
//img[@class='AttachmentIcon'] |
|
| verifyElementPresent |
//img[@class='AttachmentIcon'] |
|
| click |
xpath=//div[@class='UIToolbar']//div[@class='IconHolder SendMailIcon'] |
|
| pause |
5000 |
|
| echo |
-- Check Compose Mail |
|
| click |
link=Sent |
|
| waitForElementPresent |
link=Test29_Attachment_Mail |
|
| verifyElementPresent |
link=Test29_Attachment_Mail |
|
| clickAndWait |
link=Logout |
|
| echo |
-- Verify Mail was sent successfully |
|
| echo |
-Check Mail- |
|
| open |
/portal/public/intranet |
|
| windowMaximize |
|
|
| waitForElementPresent |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| click |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| waitForElementPresent |
username |
|
| type |
username |
demo |
| waitForElementPresent |
password |
|
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a |
|
| open |
/portal/private/intranet/mail |
|
| pause |
10000 |
|
| echo |
-- Check Get Mail |
|
| waitForElementPresent |
xpath=//div[@class='UIActionBar']//div[@class='IconHolder CheckMailIcon'] |
|
| click |
xpath=//div[@class='UIActionBar']//div[@class='IconHolder CheckMailIcon'] |
|
| pause |
20000 |
|
| waitForElementPresent |
link=Test29_Attachment_Mail |
|
| verifyElementPresent |
link=Test29_Attachment_Mail |
|
| clickAndWait |
link=Logout |
|
| close |
|
|