| open |
/ecmdemo/public/acme/ |
|
| windowMaximize |
|
|
| echo |
--Login |
|
| waitForElementPresent |
link=Login |
|
| click |
link=Login |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
link=Sign in |
|
| echo |
--Go to Site explorer |
|
| clickAndWait |
//a[@href='/ecmdemo/private/acme/siteExplorer'] |
|
| echo |
--Open driver pane |
|
| waitForElementPresent |
//div[@title='Show Drives'] |
|
| click |
//div[@title='Show Drives'] |
|
| echo |
--Open Private driver |
|
| waitForElementPresent |
link=Private |
|
| click |
link=Private |
|
| echo |
-Go to Admin View |
|
| waitForElementPresent |
//a[@title='Admin View'] |
|
| click |
//a[@title='Admin View'] |
|
| echo |
-- Go to Action tab |
|
| waitForElementPresent |
link=Actions |
|
| click |
link=Actions |
|
| echo |
--Add Article |
|
| waitForElementPresent |
link=Add Document |
|
| click |
link=Add Document |
|
| pause |
3000 |
|
| waitForElementPresent |
title |
|
| type |
title |
Test_SNF_ECMS_47 |
| waitForElementPresent |
link=Save as Draft |
|
| click |
link=Save as Draft |
|
| pause |
10000 |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| pause |
10000 |
|
| echo |
-- Go to Collaboration tab |
|
| waitForElementPresent |
link=Collaboration |
|
| click |
link=Collaboration |
|
| echo |
--Open form to comment |
|
| waitForElementPresent |
link=Comment this document |
|
| click |
IconListHideElement |
|
| waitForElementPresent |
link=Comment this document |
|
| click |
link=Comment this document |
|
| pause |
10000 |
|
| waitForElementPresent |
//td[@id='cke_contents_comment']/iframe |
|
| selectFrame |
//td[@id='cke_contents_comment']/iframe |
|
| type |
//html/body |
I love eXo |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| pause |
10000 |
|
| echo |
-- Show comment to Edit |
|
| waitForElementPresent |
link=Show comments |
|
| click |
link=Show comments |
|
| pause |
10000 |
|
| waitForTextPresent |
I love eXo |
|
| verifyTextPresent |
I love eXo |
|
| echo |
--Open form to edit |
|
| waitForElementPresent |
//img[@title='Edit this comment'] |
|
| click |
//img[@title='Edit this comment'] |
|
| waitForElementPresent |
//td[@id='cke_contents_comment']/iframe |
|
| selectFrame |
//td[@id='cke_contents_comment']/iframe |
|
| type |
//html/body |
I love eXo and I love her, My baby |
| selectFrame |
relative=top |
|
| click |
link=Save |
|
| pause |
10000 |
|
| echo |
--Show comment to Delete |
|
| waitForElementPresent |
link=Show comments |
|
| click |
link=Show comments |
|
| waitForTextPresent |
I love eXo and I love her, My baby |
|
| verifyTextPresent |
I love eXo and I love her, My baby |
|
| echo |
-- Remove commnet |
|
| waitForElementPresent |
//img[@title='Remove this comment'] |
|
| click |
//img[@title='Remove this comment'] |
|
| waitForTextNotPresent |
I love eXo and I love her, My baby |
|
| verifyTextNotPresent |
I love eXo and I love her, My baby |
|
| assertConfirmation |
Do you want to delete this comment? |
|
| echo |
--Delete Article |
|
| waitForElementPresent |
link=Test_SNF_ECMS_47 |
|
| mouseDownRight |
link=Test_SNF_ECMS_47 |
|
| waitForElementPresent |
link=Delete |
|
| click |
link=Delete |
|
| echo |
-- comfirm deleting |
|
| waitForElementPresent |
//div[@id='UIPopupWindow']/div/div[2]/div/div/div/div/div/div/div/div[2]/table/tbody/tr/td/div[1]/div/div/div/a |
|
| click |
//div[@id='UIPopupWindow']/div/div[2]/div/div/div/div/div/div/div/div[2]/table/tbody/tr/td/div[1]/div/div/div/a |
|
| pause |
5000 |
|
| verifyTextNotPresent |
link=Test_SNF_ECMS_47 |
|
| echo |
--Logout |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|