Test_PRL_03_02_010_AddNewGroupWithLabelLessThan3OrOver30Chars
open /portal/public/classic/
echo -- Add new group with label 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/a
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 with label 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 Test_PRL_03_02_010
type label PR
type description Test_PRL_03_02_010
waitForElementPresent //form[@id='UIGroupForm']/div[2]/div/div/table/tbody/tr/td/div[1]/div/div/div
click //form[@id='UIGroupForm']/div[2]/div/div/table/tbody/tr/td/div[1]/div/div/div
waitForTextPresent The length of the text in field "Label" must be between "3" and "30" characters.
verifyTextPresent The length of the text in field "Label" 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
click //div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div
waitForElementPresent link=Cancel
click link=Cancel
echo -- Add new group with label 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_010
type label Test_PRL_03_02_010 Test_PRL_03_02_010 Test_PRL_03_02_010 Test_PRL_03_02_010
type description Test_PRL_03_02_010
waitForElementPresent //form[@id='UIGroupForm']/div[2]/div/div/table/tbody/tr/td/div[1]/div/div/div
click //form[@id='UIGroupForm']/div[2]/div/div/table/tbody/tr/td/div[1]/div/div/div
waitForTextPresent
verifyTextPresent The length of the text in field "Label" 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
click //div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div
waitForElementPresent link=Cancel
click link=Cancel
clickAndWait link=Sign out