| 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/groups/:platform:web-contributors/siteExplorer'] |
|
| echo |
--Open driver pane |
|
| waitForElementPresent |
//div[@title='Show Drives'] |
|
| click |
//div[@title='Show Drives'] |
|
| echo |
--Open Sites Management driver |
|
| waitForElementPresent |
link=Sites Management |
|
| click |
link=Sites Management |
|
| echo |
--Add Article |
|
| waitForElementPresent |
link=Add Document |
|
| click |
link=Add Document |
|
| pause |
1000 |
|
| waitForElementPresent |
link=Article |
|
| click |
link=Article |
|
| waitForElementPresent |
title |
|
| type |
title |
Test_SNF_ECMS_47 |
| waitForElementPresent |
//td[@id='cke_contents_summary']/iframe |
|
| selectFrame |
//td[@id='cke_contents_summary']/iframe |
|
| type |
//html/body |
Test_SNF_ECMS_47 |
| selectFrame |
relative=top |
|
| selectFrame |
//td[@id='cke_contents_content']/iframe |
|
| type |
//html/body |
Test_SNF_ECMS_47 |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Save & Close |
|
| click |
link=Save & Close |
|
| pause |
1000 |
|
| echo |
-- Go to Collaboration tab |
|
| waitForElementPresent |
link=Collaboration |
|
| click |
link=Collaboration |
|
| echo |
--Open form to comment |
|
| waitForElementPresent |
link=Comment this document |
|
| click |
link=Comment this document |
|
| pause |
1000 |
|
| waitForElementPresent |
//td[@id='cke_contents_comment']/iframe |
|
| selectFrame |
//td[@id='cke_contents_comment']/iframe |
|
| type |
//html/body |
Test_SNF_ECMS_47 |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| pause |
1000 |
|
| echo |
-- Show comment to Edit |
|
| waitForElementPresent |
link=Show comments |
|
| click |
link=Show comments |
|
| waitForElementPresent |
//img[@title='Edit this comment'] |
|
| click |
//img[@title='Edit this comment'] |
|
| pause |
1000 |
|
| waitForTextPresent |
Test_SNF_ECMS_47 |
|
| verifyTextPresent |
Test_SNF_ECMS_47 |
|
| echo |
--Open form to edit |
|
| waitForElementPresent |
//td[@id='cke_contents_comment']/iframe |
|
| selectFrame |
//td[@id='cke_contents_comment']/iframe |
|
| type |
//html/body |
Test_SNF_ECMS_47_edit |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| pause |
1000 |
|
| echo |
--Show comment to Delete |
|
| waitForElementPresent |
link=Show comments |
|
| click |
link=Show comments |
|
| waitForTextPresent |
Test_SNF_ECMS_47_edit |
|
| verifyTextPresent |
Test_SNF_ECMS_47_edit |
|
| echo |
-- Remove commnet |
|
| waitForElementPresent |
//img[@title='Remove this comment'] |
|
| click |
//img[@title='Remove this comment'] |
|
| waitForTextNotPresent |
Test_SNF_ECMS_47_edit |
|
| verifyTextNotPresent |
Test_SNF_ECMS_47_edit |
|
| 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']//a[text()="OK"] |
|
| click |
//div[@id='UIPopupWindow']//a[text()="OK"] |
|
| pause |
1000 |
|
| verifyTextNotPresent |
link=Test_SNF_ECMS_47 |
|
| echo |
--Logout |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|