| open |
/ecmdemo/public/acme/ |
|
| windowMaximize |
|
|
| echo |
-- Create new drive for content publishing process |
|
| waitForElementPresent |
link=Login |
|
| click |
link=Login |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
link=Sign in |
|
| echo |
-- Site Admin |
|
| waitForElementPresent |
//a[@href='/ecmdemo/private/acme/wcmAdmin'] |
|
| clickAndWait |
//a[@href='/ecmdemo/private/acme/wcmAdmin'] |
|
| echo |
-- Content Presentation |
|
| waitForElementPresent |
//div[@id='UIECMAdminPortlet']//div[contains(text(),'Content Presentation')] |
|
| click |
//div[@id='UIECMAdminPortlet']//div[contains(text(),'Content Presentation')] |
|
| waitForElementPresent |
link=Manage Drives |
|
| click |
link=Manage Drives |
|
| waitForElementPresent |
link=Add Drive |
|
| click |
link=Add Drive |
|
| waitForElementPresent |
name |
|
| type |
name |
Workflow |
| echo |
-- Add path for drive |
|
| select |
workspace |
label=collaboration |
| waitForElementPresent |
//option[@value='collaboration'] |
|
| click |
//option[@value='collaboration'] |
|
| waitForElementPresent |
//img[@title='Add Path'] |
|
| click |
//img[@title='Add Path'] |
|
| waitForElementPresent |
//div[@id='UISelectPathPanel']//a[contains(@href,"Documents")] |
|
| click |
//div[@id='UISelectPathPanel']//a[contains(@href,"Documents")] |
|
| echo |
-- Add permission for drive |
|
| waitForElementPresent |
//img[@title='Add Permission'] |
|
| click |
//img[@title='Add Permission'] |
|
| waitForElementPresent |
//img[@title='Set any Permission'] |
|
| click |
//img[@title='Set any Permission'] |
|
| waitForElementPresent |
viewSideBar |
|
| click |
viewSideBar |
|
| addSelection |
allowCreateFolders |
label=Unstructured folder |
| waitForElementPresent |
//div[text()='Apply Views'] |
|
| click |
//div[text()='Apply Views'] |
|
| click |
admin-view |
|
| click |
icon-view |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|
| pause |
3000 |
|
| echo |
- Create content publishing by normal user |
|
| waitForElementPresent |
link=Login |
|
| click |
link=Login |
|
| waitForElementPresent |
username |
|
| type |
username |
mary |
| type |
password |
gtn |
| clickAndWait |
link=Sign in |
|
| waitForElementPresent |
//a[@href='/ecmdemo/private/acme/siteExplorer'] |
|
| clickAndWait |
//a[@href='/ecmdemo/private/acme/siteExplorer'] |
|
| waitForElementPresent |
//div[@id='UISideBar']//div[@title='Show Drives'] |
|
| click |
//div[@id='UISideBar']//div[@title='Show Drives'] |
|
| waitForElementPresent |
link=Workflow |
|
| click |
link=Workflow |
|
| waitForElementPresent |
link=Validation Requests |
|
| click |
link=Validation Requests |
|
| echo |
-- Create Article document |
|
| waitForElementPresent |
link=Add Document |
|
| click |
link=Add Document |
|
| pause |
5000 |
|
| waitForElementPresent |
title |
|
| type |
title |
Test_SNF_ECMS_79 |
| type |
name |
Test_SNF_ECMS_79 |
| waitForElementPresent |
//td[@id='cke_contents_summary']/iframe |
|
| selectFrame |
//td[@id='cke_contents_summary']/iframe |
|
| type |
//html/body |
Test_SNF_ECMS_79 |
| selectFrame |
relative=top |
|
| selectFrame |
//td[@id='cke_contents_content']/iframe |
|
| type |
//html/body |
Test_SNF_ECMS_79 |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Save as Draft |
|
| click |
link=Save as Draft |
|
| pause |
3000 |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| pause |
3000 |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|
| echo |
-- Manage content publishing |
|
| waitForElementPresent |
link=Login |
|
| click |
link=Login |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
link=Sign in |
|
| waitForElementPresent |
link=Business Process Controller |
|
| clickAndWait |
link=Business Process Controller |
|
| echo |
-- Manage : content-publishing -first |
|
| waitForElementPresent |
link=Manage |
|
| click |
link=Manage |
|
| echo |
-- Publication ends on: |
|
| waitForElementPresent |
//input[@name='endDate'] |
|
| click |
//input[@name='endDate'] |
|
| echo |
-- Choose date time -- |
|
| waitForElementPresent |
//a[@title="Next Month"] |
|
| click |
//a[@title="Next Month"] |
|
| waitForElementPresent |
link=27 |
|
| click |
link=27 |
|
| echo |
-- Approve |
|
| waitForElementPresent |
link=Approve |
|
| click |
link=Approve |
|
| echo |
-- Check where document is stored |
|
| waitForElementPresent |
//a[@href='/ecmdemo/private/acme/siteExplorer'] |
|
| clickAndWait |
//a[@href='/ecmdemo/private/acme/siteExplorer'] |
|
| waitForElementPresent |
//div[@id='UISideBar']//div[@title='Show Drives'] |
|
| click |
//div[@id='UISideBar']//div[@title='Show Drives'] |
|
| waitForElementPresent |
link=Workflow |
|
| click |
link=Workflow |
|
| waitForElementPresent |
link=Live |
|
| click |
link=Live |
|
| echo |
-- Years- |
|
| waitForElementPresent |
//div[2]/div[2]/div/div/div/div[1]/div[2]/div/div[1]/div |
|
| click |
//div[2]/div[2]/div/div/div/div[1]/div[2]/div/div[1]/div |
|
| echo |
-- Month -- |
|
| waitForElementPresent |
//div[2]/div/div[2]/div/div/div/div[2]/a |
|
| click |
//div[2]/div/div[2]/div/div/div/div[2]/a |
|
| echo |
-- Days-- |
|
| waitForElementPresent |
//div[2]/div/div[2]/div/div[2]/div/div/div/div[2]/a |
|
| click |
//div[2]/div/div[2]/div/div[2]/div/div/div/div[2]/a |
|
| pause |
3000 |
|
| waitForTextPresent |
Test_SNF_ECMS_79 |
|
| verifyTextPresent |
Test_SNF_ECMS_79 |
|
| echo |
-- Delete drive |
|
| clickAndWait |
//a[@href='/ecmdemo/private/acme/wcmAdmin'] |
|
| waitForElementPresent |
//div[@id='UIECMAdminPortlet']//div[contains(text(),"Content Presentation")] |
|
| click |
//div[@id='UIECMAdminPortlet']//div[contains(text(),"Content Presentation")] |
|
| waitForElementPresent |
link=Manage Drives |
|
| click |
link=Manage Drives |
|
| waitForElementPresent |
link=3 |
|
| click |
link=3 |
|
| waitForElementPresent |
//div[@id='UIDriveList']//img[contains(@onclick,"Workflow") and @title="Delete"] |
|
| click |
//div[@id='UIDriveList']//img[contains(@onclick,"Workflow") and @title="Delete"] |
|
| assertConfirmation |
Do you really want to delete ? |
|
| clickAndWait |
//a[@href='/ecmdemo/private/acme/siteExplorer'] |
|
| waitForElementPresent |
//div[@title='Show Drives'] |
|
| click |
//div[@title='Show Drives'] |
|
| pause |
5000 |
|
| waitForElementNotPresent |
link=Workflow |
|
| verifyElementNotPresent |
link=Workflow |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|