Test_PRL_05_01_009_AddNewcategoryWithNameLessThan3OrOver30Chars
open /portal/public/classic/
echo -- Add new category with name less than 3 or over 30 characters--
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div
clickAndWait link=Application Registry
echo -- Add new category with name less than 3 characters --
waitForElementPresent //div[1]/div/div/div/div/div/div/div/div[2]/div[2]/div[1]/div[1]/div[1]
click //div[1]/div/div/div/div/div/div/div/div[2]/div[2]/div[1]/div[1]/div[1]
waitForElementPresent name
type name PL
type displayName Test_PLT_05_01_009
type description Test_PLT_05_01_009
echo -- Choose Permission Setting --
waitForElementPresent //div[2]/div[2]/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div
click //div[2]/div[2]/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div
waitForElementPresent link=Add Permission
click link=Add Permission
waitForElementPresent link=Platform
click link=Platform
waitForElementPresent link=Administrators
click link=Administrators
waitForElementPresent link=manager
click link=manager
waitForElementPresent link=Save
click link=Save
waitForTextPresent The length of the text in field "Category name: " must be between "3" and "30" characters.
verifyTextPresent The length of the text in field "Category name: " must be between "3" and "30" characters.
waitForElementPresent //div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a
click //div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a
waitForElementPresent //form[@id='UICategoryForm']/div[3]/div[2]/table/tbody/tr/td/div[2]/div/div/div
click //form[@id='UICategoryForm']/div[3]/div[2]/table/tbody/tr/td/div[2]/div/div/div
echo -- Add new category with name over 30 characters--
waitForElementPresent //div[1]/div/div/div/div/div/div/div/div[2]/div[2]/div[1]/div[1]/div[1]
click //div[1]/div/div/div/div/div/div/div/div[2]/div[2]/div[1]/div[1]/div[1]
waitForElementPresent name
type name Test_PLT_05_01_009Test_PLT_05_01_009Test_PLT_05_01_009Test_PLT_05_01_009
type displayName Test_PLT_05_01_009
type description Test_PLT_05_01_009
echo -- Choose Permission Setting --
waitForElementPresent //div[2]/div[2]/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div
click //div[2]/div[2]/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div
waitForElementPresent link=Add Permission
click link=Add Permission
waitForElementPresent //div[@id='ListPermissionSelector']/div/div[2]/div/div[2]/div/div/div[3]/div/a
click //div[@id='ListPermissionSelector']/div/div[2]/div/div[2]/div/div/div[3]/div/a
waitForElementPresent link=Communication
click link=Communication
waitForElementPresent link=manager
click link=manager
waitForElementPresent link=Save
click link=Save
waitForTextPresent The length of the text in field "Category name: " must be between "3" and "30" characters.
verifyTextPresent The length of the text in field "Category name: " must be between "3" and "30" characters.
waitForElementPresent //div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a
click //div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a
waitForElementPresent //form[@id='UICategoryForm']/div[3]/div[2]/table/tbody/tr/td/div[2]/div/div/div
click //form[@id='UICategoryForm']/div[3]/div[2]/table/tbody/tr/td/div[2]/div/div/div
waitForElementPresent link=Sign out
clickAndWait link=Sign out