Test_PRL_02_03_008_AddNewGroupWIthNameLessThan3OrOver30chars
open /portal/public/classic/
echo -- Add new group when 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
echo -- Go to User and group management--
clickAndWait link=Users and groups management
echo Choose Group management --
waitForElementPresent link=Group Management
click link=Group Management
echo -- Add new group when name less than 3 characters--
waitForElementPresent //div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/a[3]
click //div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/a[3]
waitForElementPresent groupName
type groupName PR
type label Test_PRL_03_02_008
type description Test_PRL_03_02_008
waitForElementPresent link=Save
click link=Save
waitForTextPresent The length of the text in field "Group Name" must be between "3" and "30" characters.
verifyTextPresent The length of the text in field "Group 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 link=Cancel
click link=Cancel
echo -- Add new group when name over 30 characters--
waitForElementPresent //div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/a[3]
click //div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/a[3]
waitForElementPresent groupName
type groupName Test_PRL_03_02_008 Test_PRL_03_02_008 Test_PRL_03_02_008 Test_PRL_03_02_008
type label Test_PRL_03_02_008
type description Test_PRL_03_02_008
waitForElementPresent link=Save
click link=Save
waitForTextPresent
verifyTextPresent The length of the text in field "Group 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 link=Cancel
click link=Cancel
waitForElementPresent link=Sign out
clickAndWait link=Sign out