| open |
/portal/public/default/ |
|
| windowMaximize |
|
|
| clickAndWait |
link=Visit the Acme Website |
|
| echo |
--Login |
|
| waitForElementPresent |
link=Login |
|
| 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 |
--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 |
|
| waitForElementPresent |
link=Add Document |
|
| click |
link=Add Document |
|
| pause |
5000 |
|
| waitForElementPresent |
selectTemplate |
label=File |
| select |
selectTemplate |
label=File |
| pause |
5000 |
|
| waitForElementPresent |
name |
|
| type |
name |
FileTest_SNF_ECMS_25 |
| waitForElementPresent |
//td[@id='cke_contents_contentHtml']/iframe |
|
| selectFrame |
//td[@id='cke_contents_contentHtml']/iframe |
|
| type |
//html/body |
Test_SNF_ECMS_25 |
| selectFrame |
relative=top |
|
| echo |
--Save as Draft |
|
| waitForElementPresent |
link=Save as Draft |
|
| click |
link=Save as Draft |
|
| pause |
5000 |
|
| echo |
--Close the form |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| pause |
5000 |
|
| echo |
--Edit File |
|
| waitForElementPresent |
link=FileTest_SNF_ECMS_25 |
|
| mouseDownRight |
link=FileTest_SNF_ECMS_25 |
|
| waitForElementPresent |
link=Edit |
|
| click |
link=Edit |
|
| waitForElementPresent |
//td[@id='cke_contents_contentHtml']/iframe |
|
| selectFrame |
//td[@id='cke_contents_contentHtml']/iframe |
|
| typeKeys |
//html/body |
EditDeleteFile_ecmdemo |
| selectFrame |
relative=top |
|
| echo |
--Save as Draft |
|
| waitForElementPresent |
link=Save as Draft |
|
| click |
link=Save as Draft |
|
| pause |
3000 |
|
| echo |
--Close the form |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| echo |
--Delete File |
|
| waitForElementPresent |
link=FileTest_SNF_ECMS_25 |
|
| mouseDownRight |
link=FileTest_SNF_ECMS_25 |
|
| waitForElementPresent |
link=Delete |
|
| click |
link=Delete |
|
| waitForElementPresent |
//div[@id='UIPopupWindow']//a[text()='OK'] |
|
| click |
//div[@id='UIPopupWindow']//a[text()='OK'] |
|
| echo |
--Logout |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|