| open |
/ecmdemo/public/acme/ |
|
| windowMaximize |
|
|
| echo |
--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_61 |
| waitForElementPresent |
//td[@id='cke_contents_summary']/iframe |
|
| selectFrame |
//td[@id='cke_contents_summary']/iframe |
|
| type |
//html/body |
Test_SNF_ECMS_61 |
| selectFrame |
relative=top |
|
| waitForElementPresent |
//td[@id='cke_contents_content']/iframe |
|
| selectFrame |
//td[@id='cke_contents_content']/iframe |
|
| type |
//html/body |
Test_SNF_ECMS_61 |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Save as Draft |
|
| click |
link=Save as Draft |
|
| pause |
3000 |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| echo |
-- Go to root path |
|
| waitForElementPresent |
//div[@title='Private'] |
|
| click |
//div[@title='Private'] |
|
| echo |
-- Open Search tab |
|
| waitForElementPresent |
//div[@title='Saved Searches'] |
|
| click |
//div[@title='Saved Searches'] |
|
| echo |
-- Open advanced search form |
|
| waitForElementPresent |
//div[@title='Advance Search'] |
|
| click |
//div[@title='Advance Search'] |
|
| echo |
-- Open form to create query |
|
| waitForElementPresent |
//div[@id='UIECMSearch']//div[text()='New Query'] |
|
| click |
//div[@id='UIECMSearch']//div[text()='New Query'] |
|
| waitForElementPresent |
name |
|
| type |
name |
zzNew |
| type |
query |
select * from exo:article |
| click |
//form[@id='UIJCRAdvancedSearch']//a[text()='Save'] |
|
| echo |
-- Execute new query |
|
| waitForElementPresent |
//div[@id='UISavedQuery']//img[contains(@onclick, "zzNew") and @title="Execute"] |
|
| click |
//div[@id='UISavedQuery']//img[contains(@onclick, "zzNew") and @title="Execute"] |
|
| echo |
-- View content of document |
|
| waitForTextPresent |
/sites content/live/acme/web contents/NewEvents/a-revolution-in-the-multi-touch-displays |
|
| verifyTextPresent |
/sites content/live/acme/web contents/NewEvents/a-revolution-in-the-multi-touch-displays |
|
| echo |
-- Delete query |
|
| waitForElementPresent |
//div[text()='Saved Query'] |
|
| click |
//div[text()='Saved Query'] |
|
| waitForElementPresent |
//img[@title='Delete'] |
|
| click |
//img[@title='Delete'] |
|
| assertConfirmation |
Do you really want to delete this query? |
|
| echo |
-- Close Form |
|
| waitForElementPresent |
//div[@id='UIPopupWindow']//div[contains(@onclick,"ClosePopup") and @title="Close Window"] |
|
| click |
//div[@id='UIPopupWindow']//div[contains(@onclick,"ClosePopup") and @title="Close Window"] |
|
| waitForElementPresent |
//div[@id='UISideBar']//div[@title='File explorer'] |
|
| click |
//div[@id='UISideBar']//div[@title='File explorer'] |
|
| echo |
--Delete Article |
|
| waitForElementPresent |
link=Test_SNF_ECMS_61 |
|
| mouseDownRight |
link=Test_SNF_ECMS_61 |
|
| click |
link=Delete |
|
| echo |
-- comfirm deleting |
|
| waitForElementPresent |
//div[@id='UIPopupWindow']//a[text()='OK'] |
|
| click |
//div[@id='UIPopupWindow']//a[text()='OK'] |
|
| echo |
--Logout |
|
| waitForElementNotPresent |
link=Test_SNF_ECMS_61 |
|
| verifyTextNotPresent |
link=Test_SNF_ECMS_61 |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|