Test_SNF_PRL_26_ChangeApplicationInPortal
open /portal/classic/
echo --Change container in portal--
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']
echo -- Add new portal --
waitForElementPresent link=Site
clickAndWait link=Site
waitForElementPresent link=Add New Portal
click link=Add New Portal
waitForElementPresent name
type name Test_SNF_PRL_26
echo -- Choose Portal Template --
waitForElementPresent //div[text()='Portal Templates']
click //div[text()='Portal Templates']
waitForElementPresent //div[text()='Basic Portal']
click //div[text()='Basic Portal']
echo -- Choose Properties--
waitForElementPresent //div[text()='Properties']
click //div[text()='Properties']
echo -- Choose Permisison Setting --
waitForElementPresent //div[text()='Permission Setting']
click //div[text()='Permission Setting']
echo -- Access Permission Setting --
waitForElementPresent link=Add Permission
click link=Add Permission
waitForElementPresent link=Platform
click link=Platform
waitForElementPresent link=Administrators
click link=Administrators
waitForElementPresent link=exact:*
click link=exact:*
echo -- Edit Permission Setting --
waitForElementPresent link=Edit Permission Setting
click link=Edit Permission Setting
waitForElementPresent link=Select Permission
click link=Select Permission
waitForElementPresent link=Platform
click link=Platform
waitForElementPresent //div[@id='PermissionSelector']//a[@title="manager"]
click //div[@id='PermissionSelector']//a[@title="manager"]
waitForElementPresent link=Save
clickAt link=Save
echo -- Choose new portal and click edit layout--
waitForElementPresent //a[contains(@href,'Test_SNF_PRL_26')]/preceding-sibling::a[text()='Edit Layout']
click //a[contains(@href,'Test_SNF_PRL_26')]/preceding-sibling::a[text()='Edit Layout']
echo -- View layout of portal before Change application in portal--
waitForElementPresent link=Switch View Mode
click link=Switch View Mode
waitForElementPresent //div[@class='VIEW-PORTAL VIEW-BLOCK']
verifyElementPresent //div[@class='VIEW-PORTAL VIEW-BLOCK']
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]
dragAndDropToObject //div[@id='Gadgets/Calculator']/div/div/div[1]/div[1] //div[@class='LAYOUT-BLOCK LAYOUT-PORTLET']
echo -- View application after drag & drop in portal--
waitForElementPresent link=Switch View Mode
click link=Switch View Mode
waitForElementPresent //div[@class='VIEW-PORTAL VIEW-BLOCK']
verifyElementPresent //div[@class='VIEW-PORTAL VIEW-BLOCK']
echo --Edit application --
mouseOver //div[@class='VIEW-PORTAL VIEW-BLOCK']
waitForElementPresent //a[@title="Edit Portlet"]
click //a[@title="Edit Portlet"]
waitForElementPresent title
type title Test_SNF_PRL_26
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
echo -- Move position of application --
waitForElementPresent //div[@class='LAYOUT-BLOCK LAYOUT-PORTLET']
mouseOver //div[@class='LAYOUT-BLOCK LAYOUT-PORTLET']
waitForElementPresent //div[@class='DragControlArea']
dragAndDropToObject //div[@class='DragControlArea'] UIPageBody
waitForElementPresent link=Switch View Mode
click link=Switch View Mode
waitForElementPresent link=Switch View Mode
click link=Switch View Mode
echo -- Delete application --
waitForElementPresent //div[@class='PortletIcon AcrobatFile']
mouseOver //div[@class='PortletIcon AcrobatFile']
click //div[4]/div/div[2]/div/div/div[2]/div/div/div/div/div/div/a[2]
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 -- Delete portal --
waitForElementPresent //a[contains(@href,'Test_SNF_PRL_26')]/following-sibling::a[text()='Delete']
click //a[contains(@href,'Test_SNF_PRL_26')]/following-sibling::a[text()='Delete']
waitForConfirmationPresent
assertConfirmation Are you sure you want to delete this portal?
waitForTextNotPresent Test_SNF_PRL_26
verifyTextNotPresent Test_SNF_PRL_26
waitForElementPresent link=Sign out
clickAndWait link=Sign out