| 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 Sites 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'] |
|
| pause |
10000 |
|
| echo |
-- Go to Action tab |
|
| waitForElementPresent |
link=Actions |
|
| click |
link=Actions |
|
| pause |
10000 |
|
| echo |
--Create a Article document |
|
| waitForElementPresent |
link=Add Document |
|
| click |
link=Add Document |
|
| pause |
10000 |
|
| waitForElementPresent |
title |
|
| type |
title |
Test_SNF_ECMS_48 |
| type |
name |
Test_SNF_ECMS_48 |
| waitForElementPresent |
//td[@id='cke_contents_summary']/iframe |
|
| selectFrame |
//td[@id='cke_contents_summary']/iframe |
|
| type |
//html/body |
Manchester United |
| selectFrame |
relative=top |
|
| selectFrame |
//td[@id='cke_contents_content']/iframe |
|
| type |
//html/body |
Manchester United FC |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Save as Draft |
|
| click |
link=Save as Draft |
|
| pause |
10000 |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| pause |
30000 |
|
| echo |
--Open Add Category form |
|
| waitForElementPresent |
link=Test_SNF_ECMS_48 |
|
| click |
link=Test_SNF_ECMS_48 |
|
| echo |
-- Go to Admin tab |
|
| pause |
10000 |
|
| waitForElementPresent |
link=Admin |
|
| click |
link=Admin |
|
| pause |
10000 |
|
| waitForElementPresent |
link=Manage Categories |
|
| click |
link=Manage Categories |
|
| echo |
--Go to Select category Tab |
|
| waitForElementPresent |
//div[@id='UICategoryManager']/div/div/div[1]/div[1]/div/div/div/div/div[2]/div/div/div/div |
|
| click |
//div[@id='UICategoryManager']/div/div/div[1]/div[1]/div/div/div/div/div[2]/div/div/div/div |
|
| echo |
-- Choose Category |
|
| waitForElementPresent |
//img[@title='Add root node'] |
|
| click |
//img[@title='Add root node'] |
|
| pause |
10000 |
|
| echo |
--Delete category |
|
| waitForElementPresent |
//img[@title='Delete'] |
|
| click |
//img[@title='Delete'] |
|
| assertConfirmation |
Do you really want to delete this reference? |
|
| waitForElementNotPresent |
//img[@title='Delete'] |
|
| verifyElementNotPresent |
//img[@title='Delete'] |
|
| click |
link=Close |
|
| echo |
-- Delete document |
|
| waitForElementPresent |
link=Test_SNF_ECMS_48 |
|
| mouseDownRight |
link=Test_SNF_ECMS_48 |
|
| click |
link=Delete |
|
| 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 |
|
| echo |
--Delete yes or No ? |
|
| pause |
10000 |
|
| waitForTextNotPresent |
Test_SNF_ECMS_48 |
|
| verifyTextNotPresent |
Test_SNF_ECMS_48 |
|
| echo |
--Logout |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|