Test_SNF_PRL_15_AddApplicationIntoCategory
open /portal/public/intranet/
echo -- Add application into category--
windowMaximize
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username root
type password gtn
echo --Login
clickAndWait link=Sign in
echo -- Go to Application Registry--
waitForElementPresent link=Applications Registry
clickAndWait link=Applications Registry
echo -- Add new category--
waitForElementPresent //div[@id='UIApplicationOrganizer']//div[.='Add Category']
click //div[@id='UIApplicationOrganizer']//div[.='Add Category']
waitForElementPresent name
type name Test_SNF_PRL_15
type displayName Test_SNF_PRL_15
type description Test_SNF_PRL_15
echo -- Choose Permission Setting --
waitForElementPresent //div[.='Permission Setting']
click //div[.='Permission Setting']
waitForElementPresent link=Add Permission
click link=Add Permission
waitForElementPresent link=Developers
click link=Developers
waitForElementPresent link=manager
click link=manager
waitForElementPresent link=Save
click link=Save
echo -- Add application into category--
waitForElementPresent link=Test_SNF_PRL_15
click link=Test_SNF_PRL_15
waitForElementPresent //a[@title='Add application to category']
click //a[@title='Add application to category']
waitForElementPresent //input[@name='application' and @value='5']
click //input[@name='application' and @value='5']
waitForElementPresent displayName Test_SNF_PRL_15
type displayName Test_SNF_PRL_15_tmp
waitForElementPresent link=Add
click link=Add
waitForTextPresent Test_SNF_PRL_15_tmp
verifyTextPresent Test_SNF_PRL_15_tmp
echo -- Delete category--
waitForElementPresent //a[@title='Delete category']
click //a[@title='Delete category']
assertConfirmation Are you sure to delete this category and all applications on it?
echo --Logout
waitForElementPresent link=Logout
clickAndWait link=Logout