Test_SNF_CS24_CheckMail
open /portal
windowMaximize
echo -Check Mail-
waitForElementPresent //b[contains(text(),'Sign in')]
click //b[contains(text(),'Sign in')]
waitForElementPresent username
type username root
type password gtn
clickAndWait id=UIPortalLoginFormAction
echo -- Add Mail Account
waitForElementPresent link=Mail
click link=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 Test_24_account
type description Test_24_account_description
click link=Next
echo -- Step 2
waitForElementPresent outgoingName
type outgoingName Test_24
type emailAddress exotest3@gmail.com
type emailReply exotest3@gmail.com
type signature Test_24_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 exotest3
type password exovietnam
click link=Next
echo -- Step 5
waitForTextPresent Test_24_account
verifyTextPresent Test_24_account
verifyElementPresent getMail
click getMail
click link=Finish
pause 5000
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
waitForElementNotPresent //div[@class='MessageNotice']
verifyElementNotPresent //div[@class='MessageNotice']
waitForElementPresent link=eXo_Test
verifyElementPresent link=eXo_Test
echo -- Delete Create Account
click //div[@class='UISelectAccount']//div[@title='Manage accounts']
waitForElementPresent link=Delete account
click link=Delete account
waitForTextPresent Test_24_account
verifyTextPresent Test_24_account
waitForElementPresent xpath=//div[@class='UIAccountList']//img[@class='DeleteIcon']
click xpath=//div[@class='UIAccountList']//img[@class='DeleteIcon']
waitForConfirmation Are you sure you want to delete this account?
click //a/div/div/div
echo -- Create POP3 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 Test_24_account
waitForElementPresent description
type description Test_24_account_description
click link=Next
echo -- Step 2
waitForElementPresent outgoingName
type outgoingName Test_24
type emailAddress exotest3@gmail.com
type emailReply exotest3@gmail.com
type signature Test_24_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@gmail.com
type password exovietnam
click link=Next
echo -- Step 5
waitForTextPresent Test_24_account
verifyTextPresent Test_24_account
verifyElementPresent getMail
click getMail
click link=Finish
pause 5000
echo -- Create POP3 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
echo -- Delete Create Account
click //div[@class='UISelectAccount']//div[@title='Manage accounts']
waitForElementPresent link=Delete account
click link=Delete account
waitForTextPresent Test_24_account
verifyTextPresent Test_24_account
waitForElementPresent xpath=//div[@class='UIAccountList']//img[@class='DeleteIcon']
click xpath=//div[@class='UIAccountList']//img[@class='DeleteIcon']
waitForConfirmation Are you sure you want to delete this account?
click //a/div/div/div
clickAndWait link=Logout
close