open |
/portal/public/classic/ |
|
echo |
-- Change application when edit layout for group's page -- |
|
windowMaximize |
|
|
click |
link=Sign in |
|
waitForElementPresent |
username |
|
type |
username |
root |
type |
password |
gtn |
clickAndWait |
//div[@id='UIPortalLoginFormAction'] |
|
clickAndWait |
link=Application Registry |
|
echo |
-- Click Add new page on Group editor menu-- |
|
waitForElementPresent |
link=Add New Page |
|
click |
link=Add New Page |
|
waitForElementPresent |
//div[@id='UIPageNodeSelector']//a[@title='Up Level'] |
|
click |
//div[@id='UIPageNodeSelector']//a[@title='Up Level'] |
|
waitForElementPresent |
pageName |
|
type |
pageName |
Test_SNF_PRL_43 |
type |
i18nizedLabel |
Test_SNF_PRL_43 |
echo |
-- Click Next to move step 2-- |
|
waitForElementPresent |
//div[contains(text(),'Next')] |
|
click |
//div[contains(text(),'Next')] |
|
echo |
-- Keep empty layout and click Next move step 3-- |
|
waitForElementPresent |
//div[contains(text(),'Next')] |
|
click |
//div[contains(text(),'Next')] |
|
echo |
-- Click Finish -- |
|
waitForElementPresent |
//a[@title='Finish'] |
|
clickAndWait |
//a[@title='Finish'] |
|
assertLocation |
http://localhost:8080/portal/groups/:platform:administrators/administration/Test_SNF_PRL_43 |
|
echo |
-- Click Edit layout -- |
|
waitForElementPresent |
link=Edit Layout |
|
click |
link=Edit Layout |
|
echo |
-- View layout of page before Change appelication-- |
|
waitForElementPresent |
link=Switch View Mode |
|
click |
link=Switch View Mode |
|
waitForElementPresent |
//div[@id="UIPortalApplication"] |
|
verifyElementPresent |
//div[@id="UIPortalApplication"] |
|
waitForElementPresent |
link=Switch View Mode |
|
click |
link=Switch View Mode |
|
echo |
-- Drag & drop applcation in portal-- |
|
waitForElementPresent |
link=Gadgets |
|
click |
link=Gadgets |
|
waitForElementPresent |
//div[@id='Gadgets/Calculator']/div/div/div[1]/div[1] |
UIPortalApplication |
dragAndDropToObject |
//div[@id='Gadgets/Calculator']/div/div/div[1]/div[1] |
UIPortalApplication |
echo |
-- View application after drag & drop in portal-- |
|
waitForElementPresent |
link=Switch View Mode |
|
click |
link=Switch View Mode |
|
waitForElementPresent |
UIPortalApplication |
|
verifyElementPresent |
UIPortalApplication |
|
echo |
-- Return to normal view -- |
|
waitForElementPresent |
link=Switch View Mode |
|
click |
link=Switch View Mode |
|
echo |
--Edit application -- |
|
mouseOver |
//div[text()='Calculator']/following-sibling::a[@title='Edit Portlet'] |
|
waitForElementPresent |
//div[text()='Calculator']/following-sibling::a[@title='Edit Portlet'] |
|
click |
//div[text()='Calculator']/following-sibling::a[@title='Edit Portlet'] |
|
waitForElementPresent |
title |
|
type |
title |
Test_SNF_PRL_43 |
echo |
-- Choose Select Icon tab -- |
|
waitForElementPresent |
//div[@id='UIMaskWorkspace']//div[text()="Select Icon"] |
|
click |
//div[@id='UIMaskWorkspace']//div[text()="Select Icon"] |
|
waitForElementPresent |
//div[@class='Icon AcrobatFile'] |
|
click |
//div[@class='Icon AcrobatFile'] |
|
echo |
-- Choose Decoration Themes-- |
|
waitForElementPresent |
//div[@id='UIMaskWorkspace']//div[text()="Decoration Themes"] |
|
click |
//div[@id='UIMaskWorkspace']//div[text()="Decoration Themes"] |
|
waitForElementPresent |
//div[@id='UIItemThemeSelector']//div[text()="Pink Simple"] |
|
click |
//div[@id='UIItemThemeSelector']//div[text()="Pink Simple"] |
|
waitForElementPresent |
link=Save And Close |
|
click |
link=Save And Close |
|
echo |
-- View after change something in application -- |
|
waitForElementPresent |
link=Switch View Mode |
|
click |
link=Switch View Mode |
|
waitForTextPresent |
Test_SNF_PRL_43 |
|
verifyTextPresent |
Test_SNF_PRL_43 |
|
echo |
-- Return to normail view -- |
|
waitForElementPresent |
link=Switch View Mode |
|
click |
link=Switch View Mode |
|
echo |
-- Move position of application -- |
|
mouseOver |
//div[text()='Test_SNF_PRL_43']/preceding-sibling::div[@class='DragControlArea'] |
|
dragAndDropToObject |
//div[text()='Test_SNF_PRL_43']/preceding-sibling::div[@class='DragControlArea'] |
css=div[class='LAYOUT-BLOCK LAYOUT-PORTLET'] |
echo |
-- View after change position of application -- |
|
waitForElementPresent |
link=Switch View Mode |
|
click |
link=Switch View Mode |
|
waitForElementPresent |
UIPortalApplication |
|
click |
UIPortalApplication |
|
waitForElementPresent |
link=Switch View Mode |
|
click |
link=Switch View Mode |
|
echo |
-- Delete application -- |
|
mouseOver |
//div[text()='Test_SNF_PRL_43']/following-sibling::a[@title='Delete Portlet'] |
|
waitForElementPresent |
//div[text()='Test_SNF_PRL_43']/following-sibling::a[@title='Delete Portlet'] |
|
click |
//div[text()='Test_SNF_PRL_43']/following-sibling::a[@title='Delete Portlet'] |
|
waitForConfirmationPresent |
|
|
assertConfirmation |
Are you sure you want to delete this portlet? |
|
waitForElementPresent |
//div[@id='UIPortalComposer']//a[@title='Finish'] |
|
click |
//div[@id='UIPortalComposer']//a[@title='Finish'] |
|
echo |
-- Go to Edit Navigation -- |
|
waitForElementPresent |
link=Group |
|
clickAndWait |
link=Group |
|
waitForElementPresent |
link=Edit Navigation |
|
click |
link=Edit Navigation |
|
echo |
-- Delete node -- |
|
waitForElementPresent |
//a[@class='NodeIcon DefaultPageIcon' and @title='Test_SNF_PRL_43'] |
|
mouseDownRight |
//a[@class='NodeIcon DefaultPageIcon' and @title='Test_SNF_PRL_43'] |
|
waitForElementPresent |
link=Delete Node |
|
click |
link=Delete Node |
|
waitForConfirmationPresent |
|
|
assertConfirmation |
Are you sure you want to delete this node? |
|
waitForElementPresent |
link=Save |
|
click |
link=Save |
|
echo |
-- Go to Page Management -- |
|
clickAndWait |
link=Page Management |
|
waitForElementPresent |
pageTitle |
|
type |
pageTitle |
Test_SNF_PRL_43 |
select |
name=searchOption |
label=group |
waitForElementPresent |
//a[@title='Quick Search'] |
|
click |
//a[@title='Quick Search'] |
|
echo |
-- Delete page -- |
|
waitForElementPresent |
//img[@title='Delete Page'] |
|
click |
//img[@title='Delete Page'] |
|
waitForConfirmationPresent |
|
|
assertConfirmation |
Do you want to delete this page? |
|
waitForTextPresent |
No result found. |
|
verifyTextPresent |
No result found. |
|
waitForElementPresent |
//div[contains(@onclick,"action=Close")] |
|
click |
//div[contains(@onclick,"action=Close")] |
|
waitForElementPresent |
link=Sign out |
|
clickAndWait |
link=Sign out |
|