| open |
/ecmdemo/public/acme/ |
|
| windowMaximize |
|
|
| echo |
-- Log in |
|
| waitForElementPresent |
link=Login |
|
| click |
link=Login |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
link=Sign in |
|
| echo |
-- Site Explorer |
|
| clickAndWait |
//a[@href='/ecmdemo/groups/:platform:web-contributors/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/document |
|
| waitForElementPresent |
link=documents |
|
| click |
link=documents |
|
| echo |
-- Add Documents |
|
| waitForElementPresent |
link=Add Document |
|
| click |
link=Add Document |
|
| waitForElementPresent |
link=Article |
|
| click |
link=Article |
|
| waitForElementPresent |
title |
|
| type |
title |
Test_SNF_ECMS_01 |
| waitForElementPresent |
//td[@id='cke_contents_summary']/iframe[@title='Rich text editor, summary, press ALT 0 for help.'] |
|
| selectFrame |
//td[@id='cke_contents_summary']/iframe[@title='Rich text editor, summary, press ALT 0 for help.'] |
|
| type |
//html/body |
Test_SNF_ECMS_01 |
| selectFrame |
relative=top |
|
| waitForElementPresent |
//td[@id='cke_contents_content']/iframe |
|
| selectFrame |
//td[@id='cke_contents_content']/iframe |
|
| type |
//html/body |
Test_SNF_ECMS_01 |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| pause |
1000 |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| pause |
1000 |
|
| echo |
-- Create new page: Overview |
|
| waitForElementPresent |
link=Overview |
|
| clickAndWait |
link=Overview |
|
| echo |
-- Add New Page |
|
| waitForElementPresent |
link=Add New Page |
|
| click |
link=Add New Page |
|
| echo |
-- Up level 0 |
|
| waitForElementPresent |
//a[@title='Up Level'] |
|
| click |
//a[@title='Up Level'] |
|
| waitForElementPresent |
pageName |
|
| type |
pageName |
ASNFECMS01 |
| echo |
-- Step 2 |
|
| waitForElementPresent |
//a[contains(text(),'Next')] |
|
| click |
//a[contains(text(),'Next')] |
|
| pause |
3000 |
|
| echo |
-- Step 3 |
|
| waitForElementPresent |
//a[contains(text(),'Next')] |
|
| click |
//a[contains(text(),'Next')] |
|
| echo |
-- Contents |
|
| waitForElementPresent |
link=Contents |
|
| click |
link=Contents |
|
| pause |
3000 |
|
| echo |
-- Drag and Drop Content Detail |
|
| waitForElementPresent |
//div[text()='Content Detail'] |
|
| dragAndDropToObject |
//div[text()='Content Detail'] |
//div[@id='UIPagePreview']/div[@class='UIPage']//div[@class='UIComponentBlock'] |
| echo |
-- Edit Portlet |
|
| waitForElementPresent |
//a[@title='Edit Portlet'] |
|
| mouseOver |
//a[@title='Edit Portlet'] |
|
| click |
//a[@title='Edit Portlet'] |
|
| echo |
-- Select folder path |
|
| waitForElementPresent |
//img[@alt='Select folder path'] |
|
| click |
//img[@alt='Select folder path'] |
|
| echo |
-- Select General Drives |
|
| waitForElementPresent |
//a[text()='General drives'] |
|
| click |
//a[text()='General drives'] |
|
| echo |
-- Select General Drives/Managed Sites |
|
| waitForElementPresent |
//a[text()='Sites Management'] |
|
| click |
//a[text()='Sites Management'] |
|
| echo |
-- Select General Drives/Managed Sites/acme |
|
| waitForElementPresent |
//a[@isupload='true' and @name='acme'] |
|
| click |
//a[@isupload='true' and @name='acme'] |
|
| echo |
-- Select documents |
|
| waitForElementPresent |
//a[text()='documents'] |
|
| click |
//a[text()='documents'] |
|
| echo |
-- Select article in document |
|
| waitForElementPresent |
link=testsnfecms01 |
|
| click |
link=testsnfecms01 |
|
| echo |
-- verify value in Content Path |
|
| waitForValue |
UISCVContentPathConfigurationInputBox |
Test_SNF_ECMS_01 |
| verifyValue |
UISCVContentPathConfigurationInputBox |
Test_SNF_ECMS_01 |
| echo |
-- Save |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| echo |
-- Close |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| echo |
-- Save to finish create page |
|
| waitForElementPresent |
//a[@title='Finish'] |
|
| clickAndWait |
//a[@title='Finish'] |
|
| echo |
-- Change Edit mode |
|
| waitForElementPresent |
EditingOptions |
label=Edit |
| select |
EditingOptions |
label=Edit |
| echo |
Verify title page |
|
| waitForTextPresent |
Test_SNF_ECMS_01 |
|
| verifyTextPresent |
Test_SNF_ECMS_01 |
|
| echo |
Verify title Summary |
|
| waitForTextPresent |
Test_SNF_ECMS_01 |
|
| verifyTextPresent |
Test_SNF_ECMS_01 |
|
| echo |
Content |
|
| waitForTextPresent |
Test_SNF_ECMS_01 |
|
| verifyTextPresent |
Test_SNF_ECMS_01 |
|
| echo |
-- Search and delete page |
|
| waitForElementPresent |
link=Pages Manager |
|
| click |
link=Pages Manager |
|
| pause |
1000 |
|
| waitForElementPresent |
pageTitle |
|
| type |
pageTitle |
ASnfEcms01 |
| waitForElementPresent |
searchOption |
|
| select |
searchOption |
label=portal |
| waitForElementPresent |
//a[@title="Quick Search"] |
|
| click |
//a[@title="Quick Search"] |
|
| waitForElementPresent |
//img[@title='Delete Page'] |
|
| click |
//img[@title='Delete Page'] |
|
| assertConfirmation |
Are you sure to delete this page? |
|
| waitForElementPresent |
//div[5]/div[2]/div/div[3]/a |
|
| click |
//div[5]/div[2]/div/div[3]/a |
|
| echo |
-- Delete node |
|
| waitForElementPresent |
link=Site |
|
| clickAndWait |
link=Site |
|
| waitForElementPresent |
link=Edit Navigation |
|
| click |
link=Edit Navigation |
|
| waitForElementPresent |
//a[@title='ASNFECMS01'] |
|
| mouseDownRight |
//a[@title='ASNFECMS01'] |
|
| waitForElementPresent |
link=Delete Node |
|
| click |
link=Delete Node |
|
| assertConfirmation |
Are you sure to delete this node? |
|
| waitForElementNotPresent |
link=ASnfEcms01 |
|
| verifyElementNotPresent |
link=ASnfEcms01 |
|
| pause |
1000 |
|
| click |
link=Save |
|
| echo |
-- Delete document : Go to Site Explorer |
|
| waitForElementPresent |
//a[@href='/ecmdemo/groups/:platform:web-contributors/siteExplorer'] |
|
| clickAndWait |
//a[@href='/ecmdemo/groups/:platform:web-contributors/siteExplorer'] |
|
| waitForElementPresent |
link=Test_SNF_ECMS_01 |
|
| mouseDownRight |
link=Test_SNF_ECMS_01 |
|
| waitForElementPresent |
link=Delete |
|
| click |
link=Delete |
|
| waitForElementPresent |
//div[@id='UIPopupWindow']//a[text()='OK'] |
|
| click |
//div[@id='UIPopupWindow']//a[text()='OK'] |
|
| echo |
-- Logout |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|