| open |
/portal/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 |
|
| waitForElementPresent |
link=Sites Explorer |
|
| clickAndWait |
link=Sites Explorer |
|
| echo |
--Open driver pane |
|
| waitForElementPresent |
//div[@id='UISideBar']/div/div[1]/div[2]/div[1]/div/div/div/a/div |
|
| click |
//div[@id='UISideBar']/div/div[1]/div[2]/div[1]/div/div/div/a/div |
|
| echo |
--Open Public drive |
|
| waitForElementPresent |
link=Public |
|
| click |
link=Public |
|
| echo |
--Go to Detail View |
|
| waitForElementPresent |
//form[@id='UIAddressBar']/div[2]/table/tbody/tr/td[1]/a |
|
| click |
//form[@id='UIAddressBar']/div[2]/table/tbody/tr/td[1]/a |
|
| echo |
-- Go to Action tab |
|
| waitForElementPresent |
link=Actions |
|
| click |
link=Actions |
|
| echo |
--Create a Article document |
|
| waitForElementPresent |
link=Add Document |
|
| click |
link=Add Document |
|
| waitForElementPresent |
selectTemplate |
|
| select |
selectTemplate |
label=Article |
| waitForElementPresent |
title |
|
| type |
title |
Test_SNF_ECMS_45 |
| type |
name |
Test_SNF_ECMS_45 |
| waitForElementPresent |
//td[@id='cke_contents_summary']/iframe |
|
| selectFrame |
//td[@id='cke_contents_summary']/iframe |
|
| typeKeys |
//html/body |
Manchester United |
| selectFrame |
relative=top |
|
| selectFrame |
//td[@id='cke_contents_content']/iframe |
|
| typeKeys |
//html/body |
Manchester United FC |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Save as Draft |
|
| click |
link=Save as Draft |
|
| pause |
3000 |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| pause |
3000 |
|
| echo |
-- Go to Collaboration Tab |
|
| waitForElementPresent |
link=Test_SNF_ECMS_45 |
|
| click |
link=Test_SNF_ECMS_45 |
|
| pause |
3000 |
|
| waitForElementPresent |
link=Collaboration |
|
| click |
link=Collaboration |
|
| echo |
--Open form to add language |
|
| pause |
3000 |
|
| waitForElementPresent |
//div[@id='DMSMenuItemContainer']/div[3]/div/div/div/div/a |
|
| click |
//div[@id='DMSMenuItemContainer']/div[3]/div/div/div/div/a |
|
| echo |
--Go to Add language Tab |
|
| waitForElementPresent |
//div[@onclick="eXo.webui.UIHorizontalTabs.changeTabForUITabPane(this, 'UIMultiLanguageManager', 'UIAddLanguageContainer')"] |
|
| click |
//div[@onclick="eXo.webui.UIHorizontalTabs.changeTabForUITabPane(this, 'UIMultiLanguageManager', 'UIAddLanguageContainer')"] |
|
| select |
typeLang |
label=French |
| click |
//option[@value='fr'] |
|
| waitForElementPresent |
title |
|
| type |
title |
French |
| waitForElementPresent |
//td[@id='cke_contents_summary']/iframe |
|
| selectFrame |
//td[@id='cke_contents_summary']/iframe |
|
| typeKeys |
//html/body |
French |
| selectFrame |
relative=top |
|
| selectFrame |
//td[@id='cke_contents_content']/iframe |
|
| typeKeys |
//html/body |
French |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| pause |
3000 |
|
| echo |
--Go to View language Tab |
|
| click |
//div[@id="UIMultiLanguageManager"]/div/div/div[1]/div/div/div/div/div[1]/div/div/div/div |
|
| waitForElementPresent |
languages |
|
| select |
languages |
label=French |
| waitForElementPresent |
link=View |
|
| click |
link=View |
|
| echo |
-- Back to default language |
|
| waitForElementPresent |
link=Add/Edit localised contents |
|
| click |
link=Add/Edit localised contents |
|
| waitForElementPresent |
languages |
|
| select |
languages |
label=English(default) |
| waitForElementPresent |
link=View |
|
| click |
link=View |
|
| echo |
--Delete article |
|
| waitForElementPresent |
link=Test_SNF_ECMS_45 |
|
| mouseDownRight |
link=Test_SNF_ECMS_45 |
|
| waitForElementPresent |
//div[@class='MenuItem']/a[contains(text(),'Delete')] |
|
| click |
//div[@class='MenuItem']/a[contains(text(),'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 |
|
| pause |
3000 |
|
| echo |
--Logout |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|