| open |
/ecmdemo/public/acme/ |
|
| windowMaximize |
|
|
| echo |
-- Login |
|
| click |
link=Login |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
link=Sign in |
|
| echo |
-- Go to Sites Explorer |
|
| clickAndWait |
//a[@href='/ecmdemo/private/acme/siteExplorer'] |
|
| echo |
-- Show Drives |
|
| waitForElementPresent |
//div[@title='Show Drives'] |
|
| click |
//div[@title='Show Drives'] |
|
| pause |
10000 |
|
| 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 |
|
| pause |
10000 |
|
| waitForElementPresent |
link=Actions |
|
| click |
link=Actions |
|
| pause |
10000 |
|
| echo |
--Add Sample node |
|
| waitForElementPresent |
link=Add Document |
|
| click |
link=Add Document |
|
| pause |
10000 |
|
| waitForElementPresent |
selectTemplate |
label=Sample node |
| select |
selectTemplate |
label=Sample node |
| pause |
10000 |
|
| waitForElementPresent |
title |
|
| type |
title |
Test_SNF_ECMS_46 |
| type |
summary |
Test_SNF_ECMS_46 |
| type |
content |
Test_SNF_ECMS_46 |
| waitForElementPresent |
link=Save as Draft |
|
| click |
link=Save as Draft |
|
| pause |
10000 |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| pause |
10000 |
|
| echo |
--Go to Collaboration Tab |
|
| waitForElementPresent |
link=Collaboration |
|
| click |
link=Collaboration |
|
| waitForElementPresent |
link=Test_SNF_ECMS_46 |
|
| click |
link=Test_SNF_ECMS_46 |
|
| echo |
-- the first Vote : 4 |
|
| waitForElementPresent |
link=Vote for document |
|
| click |
link=Vote for document |
|
| pause |
3000 |
|
| waitForElementPresent |
//div[@title='Excellent/Click to vote'] |
|
| click |
//div[@title='Excellent/Click to vote'] |
|
| echo |
--Avg Rating |
|
| waitForTextPresent |
4.0 |
|
| verifyTextPresent |
4.0 |
|
| echo |
--Delete Sample node |
|
| waitForElementPresent |
link=Test_SNF_ECMS_46 |
|
| mouseDownRight |
link=Test_SNF_ECMS_46 |
|
| click |
link=Delete |
|
| waitForElementPresent |
//div[@id='UIPopupWindow']//a[text()="OK"] |
|
| click |
//div[@id='UIPopupWindow']//a[text()="OK"] |
|
| pause |
3000 |
|
| waitForElementNotPresent |
link=Test_SNF_ECMS_46 |
|
| verifyElementNotPresent |
link=Test_SNF_ECMS_46 |
|
| echo |
--Logout |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|