| 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 |
--Add Free layout webcontent |
|
| waitForElementPresent |
link=Add Document |
|
| click |
link=Add Document |
|
| pause |
10000 |
|
| waitForElementPresent |
selectTemplate |
label=Free layout webcontent |
| select |
selectTemplate |
label=Free layout webcontent |
| waitForElementPresent |
title |
|
| type |
title |
Test_SNF_ECMS_31 |
| type |
name |
Test_SNF_ECMS_31 |
| waitForElementPresent |
//td[contains(@id,'cke_contents_htmlData')]/iframe |
|
| selectFrame |
//td[contains(@id,'cke_contents_htmlData')]/iframe |
|
| type |
//html/body |
Test_SNF_ECMS_31 |
| selectFrame |
relative=top |
|
| echo |
--Save as draft |
|
| waitForElementPresent |
//div[contains(text(),'Save as Draft')] |
|
| click |
//div[contains(text(),'Save as Draft')] |
|
| pause |
10000 |
|
| echo |
--Close the form |
|
| waitForElementPresent |
//div[contains(text(),'Close')] |
|
| click |
//div[contains(text(),'Close')] |
|
| pause |
10000 |
|
| echo |
--Edit Free layout webcontent |
|
| waitForElementPresent |
link=Test_SNF_ECMS_31 |
|
| click |
link=Test_SNF_ECMS_31 |
|
| waitForElementPresent |
link=Edit Document |
|
| click |
link=Edit Document |
|
| pause |
10000 |
|
| echo |
--Edit data |
|
| waitForElementPresent |
title |
|
| type |
title |
Test_SNF_ECMS_31_Edit |
| waitForElementPresent |
//td[contains(@id,'cke_contents_htmlData')]/iframe |
|
| selectFrame |
//td[contains(@id,'cke_contents_htmlData')]/iframe |
|
| type |
//html/body |
http://mp3.zing.vn/mp3/nghe-bai-hat/Song-from-a-secret-garden.IW6C78Z7.html |
| selectFrame |
relative=top |
|
| echo |
--Save as draft |
|
| waitForElementPresent |
link=Save as Draft |
|
| click |
link=Save as Draft |
|
| pause |
10000 |
|
| echo |
--Close the form |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| pause |
10000 |
|
| echo |
--Check result is updated |
|
| waitForTextPresent |
http://mp3.zing.vn/mp3/nghe-bai-hat/Song-from-a-secret-garden.IW6C78Z7.html |
|
| verifyTextPresent |
http://mp3.zing.vn/mp3/nghe-bai-hat/Song-from-a-secret-garden.IW6C78Z7.html |
|
| echo |
--Delete Free layout webcontent |
|
| waitForElementPresent |
link=Test_SNF_ECMS_31_Edit |
|
| mouseDownRight |
link=Test_SNF_ECMS_31_Edit |
|
| waitForElementPresent |
link=Delete |
|
| click |
link=Delete |
|
| echo |
-- Display Ok |
|
| waitForElementPresent |
//div[@id='UIPopupWindow']//a[text()='OK'] |
|
| click |
//div[@id='UIPopupWindow']//a[text()='OK'] |
|
| pause |
1000 |
|
| verifyTextNotPresent |
Test_SNF_ECMS_31_Edit |
|
| waitForTextNotPresent |
Test_SNF_ECMS_31_Edit |
|
| echo |
--Logout |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|