| open |
/portal/public/default/ |
|
| windowMaximize |
|
|
| clickAndWait |
link=Visit the Acme Website |
|
| 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='/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[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 |
|
| pause |
3000 |
|
| 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 |
Chua noi voi anh: anh la nguoi khong hoan hao |
| selectFrame |
relative=top |
|
| waitForElementPresent |
//td[@id='cke_contents_content']/iframe |
|
| selectFrame |
//td[@id='cke_contents_content']/iframe |
|
| type |
//html/body |
Nhung anh van biet trong anh co mot thu hoan hao va anh muon danh no cho em |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Save as Draft |
|
| click |
link=Save as Draft |
|
| pause |
3000 |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| 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 |
//div[contains(text(),'Next')] |
|
| click |
//div[contains(text(),'Next')] |
|
| pause |
3000 |
|
| echo |
-- Step 3 |
|
| waitForElementPresent |
//div[contains(text(),'Next')] |
|
| click |
//div[contains(text(),'Next')] |
|
| echo |
-- Contents |
|
| waitForElementPresent |
link=Contents |
|
| click |
link=Contents |
|
| 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()='Managed Sites'] |
|
| click |
//a[text()='Managed Sites'] |
|
| 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 |
Chua noi voi anh: anh la nguoi khong hoan hao |
|
| verifyTextPresent |
Chua noi voi anh: anh la nguoi khong hoan hao |
|
| echo |
Content |
|
| waitForTextPresent |
Nhung anh van biet trong anh co mot thu hoan hao va anh muon danh no cho em |
|
| verifyTextPresent |
Nhung anh van biet trong anh co mot thu hoan hao va anh muon danh no cho em |
|
| echo |
-- Delete node |
|
| clickAndWait |
link=My Sites |
|
| waitForElementPresent |
link=Edit Navigation |
|
| click |
link=Edit Navigation |
|
| waitForElementPresent |
//div[@id='UINavigationNodeSelector']//a[text()='ASNFECMS01'] |
|
| mouseDownRight |
//div[@id='UINavigationNodeSelector']//a[text()='ASNFECMS01'] |
|
| click |
link=Delete Node |
|
| assertConfirmation |
Are you sure you want to delete this node? |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| echo |
-- Delete document : Go to Site Explorer |
|
| waitForElementPresent |
//a[@href='/portal/private/acme/siteExplorer'] |
|
| clickAndWait |
//a[@href='/portal/private/acme/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=Logout |
|
| clickAndWait |
link=Logout |
|