Test_SNF_SOC_11_Demo_AddandDeleteApplication
open /socialdemo/public/classic/
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a
waitForElementPresent link=Spaces
clickAndWait link=Spaces
echo -- Add a new Space
waitForElementPresent link=Add New Space
click link=Add New Space
waitForElementPresent name
type name Space11
type description This is description for Space_11
waitForElementPresent link=Create
click link=Create
pause 2000
echo -- Verify space created
waitForElementPresent link=Space11
verifyElementPresent link=Space11
click link=Space11
waitForTextPresent Space11 was created
verifyTextPresent Space11 was created
echo -- Add Application
verifyElementPresent link=Space Settings
click link=Space Settings
waitForElementPresent //div[@id='UISpaceSettingPortlet']//div[@class='TabsContainer']/div[4]//div[@class='MiddleTab']
click //div[@id='UISpaceSettingPortlet']//div[@class='TabsContainer']/div[4]//div[@class='MiddleTab']
waitForElementPresent //div[@class='AddAplicationButton']
click //div[@class='AddAplicationButton']//div[@class='IconButton']
waitForElementPresent //div[@title='Gadget Wrapper Portlet']//div[@class='AplicationButton InstallApplicationButton']
click //div[@title='Gadget Wrapper Portlet']//div[@class='AplicationButton InstallApplicationButton']
pause 2000
echo -- Check Application added
click //div[@id='AddApplication']//div[@class='CloseButton']
verifyText //div[@id='UISpaceMenu']/div/div[4]/a/span Gadget Wrapper
pause 500
echo -- Delete Application
waitForElementPresent link=2
click link=2
pause 1000
waitForElementPresent //div[@class='CenterButton RemoveButton']
click //div[@class='CenterButton RemoveButton']
waitForElementNotPresent link=Gadget Wrapper Portlet
verifyElementNotPresent link=Gadget Wrapper Portlet
echo -- Delete Space created
waitForElementPresent link=Spaces
click link=Spaces
waitForElementPresent //a[@title='Delete Space']
click //a[@title='Delete Space']
waitForConfirmation Are you sure to delete this space? This can not be undone. All page navigations and this group will be deleted, too.
echo -- Verify space deleted
waitForTextNotPresent Space11
verifyTextNotPresent Space11
waitForElementPresent link=Sign out
clickAndWait link=Sign out