| open |
/portal/public/default/ |
|
| windowMaximize |
|
|
| clickAndWait |
link=Visit the Acme Website |
|
| echo |
-- Log in |
|
| click |
link=Login |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
link=Sign in |
|
| echo |
-- Site Explorer |
|
| clickAndWait |
//a[@href='/portal/private/acme/siteExplorer'] |
|
| echo |
-- Browse all drives |
|
| waitForElementPresent |
//div[@title='Show Drives'] |
|
| click |
//div[@title='Show Drives'] |
|
| echo |
-- Sites Management |
|
| waitForElementPresent |
link=Sites Management |
|
| click |
link=Sites Management |
|
| echo |
-- acme |
|
| waitForElementPresent |
//a[text()='acme' and @style='cursor: pointer;'] |
|
| click |
//a[text()='acme' and @style='cursor: pointer;'] |
|
| echo |
-- acme/documents |
|
| waitForElementPresent |
link=documents |
|
| click |
link=documents |
|
| echo |
-- Add Document |
|
| waitForElementPresent |
link=Add Document |
|
| click |
link=Add Document |
|
| pause |
3000 |
|
| 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 |
|
| pause |
3000 |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| 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 |
|
| clickAndWait |
//a[@href='/portal/private/acme/siteExplorer'] |
|
| echo |
-- Browse all drives |
|
| waitForElementPresent |
//div[@title='Show Drives'] |
|
| click |
//div[@title='Show Drives'] |
|
| echo |
-- Sites Management |
|
| waitForElementPresent |
link=Sites Management |
|
| click |
link=Sites Management |
|
| echo |
-- acme |
|
| waitForElementPresent |
//a[text()='acme' and @style='cursor: pointer;'] |
|
| click |
//a[text()='acme' and @style='cursor: pointer;'] |
|
| echo |
-- Acme/documents |
|
| 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 |
|
| open |
/portal/public/default/ |
|
| clickAndWait |
link=Visit the Acme Website |
|
| echo |
-- Check the public content in CLV |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| echo |
-- Login by Root |
|
| waitForElementPresent |
link=Login |
|
| click |
link=Login |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
link=Sign in |
|
| 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 |
-- Delete document |
|
| echo |
-- Site Explorer |
|
| clickAndWait |
//a[@href='/portal/private/acme/siteExplorer'] |
|
| echo |
-- Browse all drives |
|
| waitForElementPresent |
//div[@title='Show Drives'] |
|
| click |
//div[@title='Show Drives'] |
|
| echo |
-- Sites Management |
|
| waitForElementPresent |
link=Sites Management |
|
| click |
link=Sites Management |
|
| echo |
-- acme |
|
| waitForElementPresent |
//a[text()='acme' and @style='cursor: pointer;'] |
|
| click |
//a[text()='acme' and @style='cursor: pointer;'] |
|
| echo |
-- Acme/documents |
|
| waitForElementPresent |
link=documents |
|
| click |
link=documents |
|
| waitForElementPresent |
link=Test_SNF_ECMS_08 |
|
| mouseDownRight |
link=Test_SNF_ECMS_08 |
|
| click |
link=Delete |
|
| waitForElementPresent |
//div[@id='UIPopupWindow']//a[text()='OK'] |
|
| click |
//div[@id='UIPopupWindow']//a[text()='OK'] |
|
| echo |
-- Log out |
|
| waitForElementNotPresent |
link=Test_SNF_ECMS_08 |
|
| verifyElementNotPresent |
link=Test_SNF_ECMS_08 |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|