| open |
/portal/public/default/ |
|
| windowMaximize |
|
|
| clickAndWait |
link=Visit the Acme Website |
|
| 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='/portal/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 |
|
| pause |
3000 |
|
| waitForElementPresent |
link=2 |
|
| click |
link=2 |
|
| pause |
3000 |
|
| 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='/portal/private/acme/siteExplorer'] |
|
| clickAndWait |
//a[@href='/portal/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[@title='acme '] |
|
| click |
//a[@title='acme '] |
|
| 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 |
lamykhuelinhnhi@gmail.com |
| click |
link=Save |
|
| pause |
3000 |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| pause |
3000 |
|
| echo |
-- Create new configuration |
|
| clickAndWait |
link=Overview |
|
| echo |
-- Contact Us |
|
| clickAndWait |
//a[contains(@href,'/portal/private/acme/contactus')] |
|
| echo |
-- Edit Contact Us page |
|
| waitForElementPresent |
link=Edit Page |
|
| click |
link=Edit Page |
|
| waitForElementPresent |
//div[@id="ContactUSColumnContainerLeftBottom"]//a[@title="Edit Portlet"] |
|
| mouseOver |
//div[@id="ContactUSColumnContainerLeftBottom"]//a[@title="Edit Portlet"] |
|
| click |
//div[@id="ContactUSColumnContainerLeftBottom"]//a[@title="Edit Portlet"] |
|
| waitForElementPresent |
UIFCCMessageFormTextareaInput |
|
| type |
UIFCCMessageFormTextareaInput |
Test_SNF_ECMS_15_FCCPortlet_ecmdemo |
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| pause |
3000 |
|
| 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 |
lamykhue |
| type |
your_phone_numberFieldName |
tieuhuongduong |
| type |
your_messageFieldName |
Hoac em hoac khong ai ca |
| click |
link=Send |
|
| pause |
3000 |
|
| echo |
-- Delete action |
|
| waitForElementPresent |
//a[@href='/portal/public/acme/siteExplorer'] |
|
| clickAndWait |
//a[@href='/portal/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 |
|
| pause |
10000 |
|
| 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 |
|
| 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 |
tieuhuongduong |
|
| verifyTextPresent |
tieuhuongduong |
|
| verifyTextPresent |
lamykhue |
|
| verifyTextPresent |
Hoac em hoac khong ai ca |
|
| 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'] |
|
| echo |
-- Log out |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|