| open |
/ecmdemo/public/acme/ |
|
| windowMaximize |
|
|
| echo |
-- Log in |
|
| click |
link=Login |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
link=Sign in |
|
| echo |
-- Add action for view |
|
| clickAndWait |
//a[@href='/ecmdemo/private/acme/wcmAdmin'] |
|
| echo |
-- Content Presentation |
|
| waitForElementPresent |
//div[contains(text(),'Content Presentation')] |
|
| click |
//div[contains(text(),'Content Presentation')] |
|
| echo |
-- Manage View |
|
| waitForElementPresent |
link=Manage View |
|
| click |
link=Manage View |
|
| waitForElementPresent |
link=2 |
|
| click |
link=2 |
|
| echo |
-- Choose wcm-view |
|
| waitForElementPresent |
//div[@id='UIViewList']/table/tbody/tr[2]/td[5]/div/img[2] |
|
| click |
//div[@id='UIViewList']/table/tbody/tr[2]/td[5]/div/img[2] |
|
| echo |
-- Publication |
|
| waitForElementPresent |
link=Publication |
|
| click |
link=Publication |
|
| echo |
-- Check Manage Action |
|
| waitForElementPresent |
manageActions |
|
| check |
manageActions |
|
| echo |
save1 |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| pause |
3000 |
|
| echo |
-- Save2 |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| pause |
3000 |
|
| waitForElementPresent |
//a[@href='/ecmdemo/private/acme/siteExplorer'] |
|
| clickAndWait |
//a[@href='/ecmdemo/private/acme/siteExplorer'] |
|
| echo |
-- Browse all drives |
|
| waitForElementPresent |
//div[@title='Show Drives'] |
|
| click |
//div[@title='Show Drives'] |
|
| echo |
-- Sites Management |
|
| waitForElementPresent |
link=Sites Management |
|
| click |
link=Sites Management |
|
| echo |
-- acme |
|
| waitForElementPresent |
//a[text()='acme' and @style='cursor: pointer;'] |
|
| click |
//a[text()='acme' and @style='cursor: pointer;'] |
|
| echo |
-- acme/documents |
|
| waitForElementPresent |
link=documents |
|
| click |
link=documents |
|
| echo |
-- Manage Actions |
|
| waitForElementPresent |
link=Manage Actions |
|
| click |
link=Manage Actions |
|
| echo |
-- Add Action tab |
|
| waitForElementPresent |
//div[text()='Add Action'] |
|
| click |
//div[text()='Add Action'] |
|
| pause |
5000 |
|
| waitForElementPresent |
actionType |
|
| select |
actionType |
label=exo:sendMailAction |
| type |
actionName |
Test_SNF_ECMS_15 |
| addSelection |
lifecycle |
label=User Action |
| waitForElementPresent |
to |
|
| type |
to |
catbien@gmail.com |
| click |
link=Save |
|
| pause |
3000 |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| echo |
-- Create new configuration |
|
| clickAndWait |
link=Overview |
|
| clickAndWait |
//a[text()='Contact Us'] |
|
| echo |
-- Edit Contact Us page |
|
| waitForElementPresent |
link=Edit Page |
|
| click |
link=Edit Page |
|
| waitForElementPresent |
//a[@title='Edit Portlet'] |
|
| mouseOver |
//a[@title='Edit Portlet'] |
|
| click |
//a[@title='Edit Portlet'] |
|
| pause |
3000 |
|
| waitForElementPresent |
UIFCCMessageFormTextareaInput |
|
| type |
UIFCCMessageFormTextareaInput |
Test_SNF_ECMS_15_FCCPortlet_ecmdemo |
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| echo |
-- OK |
|
| waitForElementPresent |
//div/div/div/div/div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a |
|
| click |
//div/div/div/div/div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a |
|
| echo |
-- Close |
|
| waitForElementPresent |
Close |
|
| click |
Close |
|
| echo |
-- Close |
|
| waitForElementPresent |
//a[@title='Finish'] |
|
| click |
//a[@title='Finish'] |
|
| pause |
3000 |
|
| echo |
-- Create new document using new configuration |
|
| waitForElementPresent |
your_nameFieldName |
|
| type |
your_nameFieldName |
Nhi |
| type |
your_addressFieldName |
Thai Ha - Ha Noi |
| type |
your_email_addressFieldName |
caibien@linhnhi.com |
| type |
your_phone_numberFieldName |
0909090909 |
| type |
your_messageFieldName |
Cuối chân trời sao với biển hôn nhau Bờ lặng lẽ cúi đầu không dám khóc Xưa biển hứa ngàn lần yêu bờ Cát Nhưng muôn đời biển có lặng lẽ đâu |
| waitForElementPresent |
link=Send |
|
| click |
link=Send |
|
| pause |
3000 |
|
| echo |
-- Delete action |
|
| waitForElementPresent |
//a[@href='/ecmdemo/public/acme/siteExplorer'] |
|
| clickAndWait |
//a[@href='/ecmdemo/public/acme/siteExplorer'] |
|
| waitForElementPresent |
link=Manage Actions |
|
| click |
link=Manage Actions |
|
| waitForElementPresent |
//img[@title='Delete'] |
|
| click |
//img[@title='Delete'] |
|
| assertConfirmation |
Do yo really want to delete this action? |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| echo |
-- Refresh to file display |
|
| waitForElementPresent |
//a[@title='Refresh'] |
|
| click |
//a[@title='Refresh'] |
|
| echo |
-- Refresh to file display |
|
| waitForElementPresent |
//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a |
|
| click |
//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a |
|
| pause |
3000 |
|
| echo |
-- Delete created document |
|
| waitForElementPresent |
//div[4]/div[2]/div[1]/div/div/div[2]/a |
|
| click |
//div[4]/div[2]/div[1]/div/div/div[2]/a |
|
| echo |
-- Verify Result |
|
| waitForTextPresent |
caibien@linhnhi.com |
|
| verifyTextPresent |
caibien@linhnhi.com |
|
| verifyTextPresent |
Cuối chân trời sao với biển hôn nhau Bờ lặng lẽ cúi đầu không dám khóc Xưa biển hứa ngàn lần yêu bờ Cát Nhưng muôn đời biển có lặng lẽ đâu |
|
| verifyTextPresent |
0909090909 |
|
| mouseDownRight |
//div[4]/div[2]/div[1]/div/div/div[2]/a |
|
| waitForElementPresent |
link=Delete |
|
| click |
link=Delete |
|
| waitForElementPresent |
//div[@id='UIPopupWindow']//a[text()='OK'] |
|
| click |
//div[@id='UIPopupWindow']//a[text()='OK'] |
|
| pause |
3000 |
|
| echo |
-- Log out |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|