| open |
/ecmdemo/public/acme/ |
|
| windowMaximize |
|
|
| echo |
-- Log in |
|
| click |
link=Login |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
link=Sign in |
|
| echo |
-- Site Explorer |
|
| waitForElementPresent |
//a[@href='/ecmdemo/private/acme/siteExplorer'] |
|
| clickAndWait |
//a[@href='/ecmdemo/private/acme/siteExplorer'] |
|
| echo |
-- Browse all drives |
|
| waitForElementPresent |
//div[@title='Show Drives'] |
|
| click |
//div[@title='Show Drives'] |
|
| waitForElementPresent |
link=Sites Management |
|
| click |
link=Sites Management |
|
| echo |
-- Go to Admin View |
|
| waitForElementPresent |
//a[@title='Admin View'] |
|
| click |
//a[@title='Admin View'] |
|
| waitForElementPresent |
//div[@id='iconTreeExplorer']/div[2]/a |
|
| click |
//div[@id='iconTreeExplorer']/div[2]/a |
|
| waitForElementPresent |
link=documents |
|
| click |
link=documents |
|
| waitForElementPresent |
link=Actions |
|
| click |
link=Actions |
|
| waitForElementPresent |
link=Add Document |
|
| click |
link=Add Document |
|
| waitForElementPresent |
title |
|
| type |
title |
Test_SNF_ECMS_08 |
| type |
name |
Test_SNF_ECMS_08 |
| waitForElementPresent |
//td[@id='cke_contents_summary']/iframe |
|
| selectFrame |
//td[@id='cke_contents_summary']/iframe |
|
| type |
//html/body |
I hate myself for loving you |
| selectFrame |
relative=top |
|
| selectFrame |
//td[@id='cke_contents_content']/iframe |
|
| type |
//html/body |
Em yeu chi ! Tieu Huong Duong |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Save as Draft |
|
| click |
link=Save as Draft |
|
| pause |
3000 |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|
| echo |
-- Log in John |
|
| waitForElementPresent |
link=Login |
|
| click |
link=Login |
|
| waitForElementPresent |
username |
|
| type |
username |
john |
| type |
password |
gtn |
| clickAndWait |
link=Sign in |
|
| echo |
-- Site Explorer |
|
| waitForElementPresent |
//a[@href='/ecmdemo/private/acme/siteExplorer'] |
|
| clickAndWait |
//a[@href='/ecmdemo/private/acme/siteExplorer'] |
|
| echo |
-- Browse all drives |
|
| waitForElementPresent |
//div[@title='Show Drives'] |
|
| click |
//div[@title='Show Drives'] |
|
| waitForElementPresent |
link=Sites Management |
|
| click |
link=Sites Management |
|
| waitForElementPresent |
//div[@id='iconTreeExplorer']/div[2]/a |
|
| click |
//div[@id='iconTreeExplorer']/div[2]/a |
|
| waitForElementPresent |
link=documents |
|
| click |
link=documents |
|
| waitForElementPresent |
link=Test_SNF_ECMS_08 |
|
| click |
link=Test_SNF_ECMS_08 |
|
| echo |
-- Public document |
|
| waitForElementPresent |
link=Manage Publications |
|
| click |
link=Manage Publications |
|
| waitForElementPresent |
link=Published |
|
| click |
link=Published |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|
| waitForElementPresent |
link=Login |
|
| click |
link=Login |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
link=Sign in |
|
| echo |
-- Check published at home page |
|
| waitForElementPresent |
link=Test_SNF_ECMS_08 |
|
| verifyElementPresent |
link=Test_SNF_ECMS_08 |
|
| waitForTextPresent |
I hate myself for loving you |
|
| verifyTextPresent |
I hate myself for loving you |
|
| echo |
-- Site Explorer |
|
| waitForElementPresent |
//a[@href='/ecmdemo/private/acme/siteExplorer'] |
|
| clickAndWait |
//a[@href='/ecmdemo/private/acme/siteExplorer'] |
|
| waitForElementPresent |
//div[@title='Show Drives'] |
|
| click |
//div[@title='Show Drives'] |
|
| waitForElementPresent |
link=Sites Management |
|
| click |
link=Sites Management |
|
| waitForElementPresent |
//div[@id='iconTreeExplorer']/div[2]/a |
|
| click |
//div[@id='iconTreeExplorer']/div[2]/a |
|
| waitForElementPresent |
link=documents |
|
| click |
link=documents |
|
| waitForElementPresent |
link=Test_SNF_ECMS_08 |
|
| click |
link=Test_SNF_ECMS_08 |
|
| waitForTextPresent |
I hate myself for loving you |
|
| verifyTextPresent |
I hate myself for loving you |
|
| echo |
-- Delete document |
|
| waitForElementPresent |
link=Test_SNF_ECMS_08 |
|
| mouseDownRight |
link=Test_SNF_ECMS_08 |
|
| 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 |
|
| waitForElementNotPresent |
link=Test_SNF_ECMS_08 |
|
| verifyElementNotPresent |
link=Test_SNF_ECMS_08 |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|