| open |
/portal/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 |
|
| waitForElementPresent |
link=Sites Explorer |
|
| click |
link=Sites Explorer |
|
| echo |
--Open driver pane |
|
| waitForElementPresent |
//div[@id='UISideBar']/div/div[1]/div[2]/div[1]/div/div/div/a/div |
|
| click |
//div[@id='UISideBar']/div/div[1]/div[2]/div[1]/div/div/div/a/div |
|
| echo |
--Open Public drive |
|
| waitForElementPresent |
link=Public |
|
| click |
link=Public |
|
| echo |
--Go to Detail View |
|
| waitForElementPresent |
//form[@id='UIAddressBar']/div[2]/table/tbody/tr/td[1]/a |
|
| click |
//form[@id='UIAddressBar']/div[2]/table/tbody/tr/td[1]/a |
|
| echo |
-- Go to Action tab |
|
| pause |
5000 |
|
| waitForElementPresent |
//div[3]/div/div/div/div/a |
|
| click |
//div[3]/div/div/div/div/a |
|
| pause |
5000 |
|
| echo |
--Add Article |
|
| waitForElementPresent |
link=Add Document |
|
| click |
link=Add Document |
|
| waitForElementPresent |
selectTemplate |
|
| select |
selectTemplate |
label=Article |
| waitForElementPresent |
title |
|
| type |
title |
Test_SNF_ECMS_47 |
| waitForElementPresent |
link=Save as Draft |
|
| click |
link=Save as Draft |
|
| pause |
5000 |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| echo |
-- Go to Collaboration tab |
|
| waitForElementPresent |
link=Test_SNF_ECMS_47 |
|
| click |
link=Test_SNF_ECMS_47 |
|
| 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 |
3000 |
|
| waitForElementPresent |
//td[@id='cke_contents_comment']//iframe |
|
| selectFrame |
//td[@id='cke_contents_comment']//iframe |
|
| typeKeys |
//html/body |
ManageComment_ecmdemo |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| echo |
-- Show comment to Edit |
|
| pause |
3000 |
|
| waitForElementPresent |
link=Show comments |
|
| click |
link=Show comments |
|
| pause |
3000 |
|
| 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 |
|
| typeKeys |
//html/body |
comment edit |
| selectFrame |
relative=top |
|
| click |
link=Save |
|
| pause |
3000 |
|
| echo |
--Show comment to Delete |
|
| waitForElementPresent |
link=Show comments |
|
| click |
link=Show comments |
|
| waitForElementPresent |
//img[@title='Remove this comment'] |
|
| click |
//img[@title='Remove this comment'] |
|
| assertConfirmation |
Do you want to delete this comment? |
|
| echo |
--Delete Article |
|
| waitForElementPresent |
link=Test_SNF_ECMS_47 |
|
| mouseDownRight |
link=Test_SNF_ECMS_47 |
|
| waitForElementPresent |
//div[@class='MenuItem']/a[contains(text(),'Delete')] |
|
| click |
//div[@class='MenuItem']/a[contains(text(),'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=Logout |
|
| clickAndWait |
link=Logout |
|